pax_global_header00006660000000000000000000000064145525433440014523gustar00rootroot0000000000000052 comment=d7dfa50402c40a2f2bf1aef33fc7e98283f35b3a Gyoto-2.0.2/000077500000000000000000000000001455254334400126255ustar00rootroot00000000000000Gyoto-2.0.2/.gitignore000066400000000000000000000010031455254334400146070ustar00rootroot00000000000000*.fits ./gyoto bin/gyoto *.lo *.o ywrap.c Makefile autom4te.cache .libs config.log config.status doc/html/ doc/latex *.la .deps *.pc *.so *~ libtool config.h include/GyotoConfig.h include/stamp-h2 stamp-h1 yorick/stdplug/polishfit.i yorick/yorick yorick/setpaths.i yorick/gyoto.info yorick/yorick1 doc/user_guide/GyotoManual.aux doc/user_guide/GyotoManual.bbl doc/user_guide/GyotoManual.blg doc/user_guide/GyotoManual.log doc/user_guide/GyotoManual.out doc/user_guide/GyotoManual.pdf doc/user_guide/GyotoManual.toc Gyoto-2.0.2/AUTHORS000066400000000000000000000013101455254334400136700ustar00rootroot00000000000000Gyoto has been written starting in 2008 primarily by: Frédéric Vincent [1, 2] Thibaut Paumard [1] Nicolas Aimar [1] Additional contributors: Odele Straub [1] Frédéric Lamy [2] Irene Urso [1] The development team at Observatoire de Paris also includes: Éric Gourgoulhon [2] Guy Perrin [1] Affiliations: [1] Laboratoire d'études spatiales et d'instrumentation en astrophysique (LESIA), Observatoire de Paris, CNRS, Université Pierre et Maris Curie, Université Paris Diderot 5 place Jules Janssen, F-92190 MEUDON, FRANCE [2] Laboratoire Univers et théories (LUTH), Observatoire de Paris, CNRS, Université Paris Diderot 5 place Jules Janssen, F-92190 MEUDON, FRANCE Gyoto-2.0.2/BUGS.md000066400000000000000000000041121455254334400137050ustar00rootroot00000000000000# Known bugs affecting This file is to list known bugs in Gyoto or its dependencies that significantly affect Gyoto but are not easy to fix or workaround in Gyoto. ## Boost.multiprecision 1.62.0 (other nearby versions presumably affected): A bug makes multiprecision acos() never return in some circumstances. This has caused gyoto hanging. As of writing, this is fixed in the Boost development tree and worked around in the Debian package for Gyoto. For further details and workarounds, see: - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844490 - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844495 - https://svn.boost.org/trac/boost/ticket/12625 -- Thibaut Paumard, Thu Dec 08 2016. ## Clang/LLVM compiler (all versions), possibly other compilers: Gyoto relies on proper delivery of SIGFPE when arithmetic errors occur (division by zero, floating point overflows...). It does so by enabling the right exceptions using feenableexcept from GNU fenv.h. However, some compilers (clang/llvm, in particular) do not support setting the floating-point environment and will happily optimize code assuming that it is safe to divide by zero. We recommend staying away from these compilers until this issue is fixed: - https://llvm.org/bugs/show_bug.cgi?id=23707 - https://llvm.org/bugs/show_bug.cgi?id=8100 Alternatively, you may try to reconfigure Gyoto to not use fenv.h and/or to not use any optimization: make clean ./configure --without-fenv CFLAGS="-g -O0" CXXFLAGS="-g -O0" make and see whether it works better for you. If you experience such spurious SIGFPE inside the Yorick plug-in, an ugly workaround is to call gyoto.fedisableexcept() right before the offending Gyoto call. If at all possible, consider recompiling Gyoto as explained above. Note that loading some plug-ins (e.g. the lorene plug-in) may change or reset the default floating-point environment. This is the case if the plug-in, or one of the libraries it links with, has been compiled with optimizations such as -ffast-math or gfortran. -- Thibaut Paumard, Thu Dec 08 2016. Gyoto-2.0.2/COPYING000066400000000000000000001045131455254334400136640ustar00rootroot00000000000000 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 . Gyoto-2.0.2/ChangeLog000066400000000000000000012552021455254334400144060ustar00rootroot00000000000000commit unknown Author: Thibaut Paumard Date: Fri, 19 Jan 2024 17:45:07 +0100 Releasing 2.0.2 commit 8930000c1be754b985b2bbe78dd5615a0601ea12 Author: Thibaut Paumard Date: Fri Jan 19 16:32:21 2024 +0100 Update citations and copyright commit d807210ac24dddb823a896bb35c881b0c8a4bc1f Author: Thibaut Paumard Date: Fri Jan 19 15:58:45 2024 +0100 Fix typos commit 5a276eba656d3aa7c91df4bf1033a4d140f8cfb5 Author: Thibaut Paumard Date: Fri Jan 19 15:40:38 2024 +0100 Remove CXXFLAGS from Cflags in gyoto.pc Those flags are needed to compile Gyoto itself, not codes based on Gyoto, and may contain information that breaks reproducible builds on Debian. commit f65c4b60b4ef1d8af9f4010eafcbaeff20958538 Author: Thibaut Paumard Date: Fri Jan 19 15:11:22 2024 +0100 Fix libtool/autotools links Copy libtool/autotools stuff in the gyoto base source, and link to this version in plugins/python and plugins/null. commit 9e89c85ceeddfc13a18c0e851fecafe49f78d74a Author: Thibaut Paumard Date: Thu Jan 18 17:14:44 2024 +0100 Fix python test Come back to calling python3 setup.py test from python/, trying to call the tests from build/lib.xxx leads to madness commit 5dc86a16c41ea474f1f42404fb3d431d2b25ddb7 Author: Thibaut Paumard Date: Wed Jan 17 23:02:13 2024 +0100 Releasing 2.0.1 commit 38c25deba22a28a54e57dcd456fbb9f3877ea3cb Author: Thibaut Paumard Date: Wed Jan 17 21:54:49 2024 +0100 Fix Python warning "is" with a literal commit fa9c4f0109359946271687189b5eb0dcb570c099 Author: Thibaut Paumard Date: Wed Jan 17 21:49:39 2024 +0100 Update autotools commit 8f3cd0f6a3825b1cc661083f1b9dc1cd1a7ada08 Author: Thibaut Paumard Date: Wed Jan 17 21:38:45 2024 +0100 Update configure.ac and gyoto.m4 commit 31f883e3b66a2e0439f1a637491e7fd75173de6d Author: Thibaut Paumard Date: Wed Jan 17 21:26:51 2024 +0100 Eigen is required. Docuùent it more clearly in INSTALL.Gyoto.md and error out of configure if not found. commit f95342829c01aff99cf3a8f746f184a3d53dc19f Author: Thibaut Paumard Date: Wed Jan 17 21:11:03 2024 +0100 Update configure for flint3 Look for ARBLIB in -lflint, -lflint-arb and -larb. If --with-arblib-headers is not provided, look for acb.h in /usr/include/flint if not in default path. Modified GYOTO_ARG_LIB to allow that. commit f95e7e35648beea99101992045a254c0640ad51e Author: Doug Torrance Date: Wed Jan 17 14:19:39 2024 -0500 Include acb.h (necessary for building with FLINT 3) (#16) commit de00106652e3089cdf6c27a311b95a5d376d9398 Author: Irene Urso Date: Tue Jan 9 19:57:05 2024 +0100 lib/ThinDiskProfile.C: Rezzolla-Zhidenko metric + Generalised synchrotron emission lib/Scenery.C: bug fix lib/WorldlineIntegState.C: bug fix python/gyoto/util.py: bug fix ThinDiskProfile: getVelocity for the Rezzolla-Zhidenko metric (cf. Rezzolla&Zhidenko2014) + Emission generalised (cf. eq B4 in Vincent+2022) Scenery: reinitialisation of nb_cross_eqplane in operator(a,d) WorldlineIntegState: reset theta in [0;pi] in Boost::nextStep util: second condition for User1 removed in rayTrace commit bb0497357e8794b751c7c60e4a1201add7897887 Author: naimar-pro Date: Tue Jan 2 13:51:31 2024 +0100 Realease GYOTO 2.0.0 commit a38226d53fc5a98318c7150e2a2b3511f09d97dc Author: naimar-pro Date: Wed Dec 13 20:03:48 2023 +0100 Adding an N-dimensional linear interpolation function commit 1bd8594917d99993a4948162ef7684cd58441102 Author: naimar-pro Date: Wed Nov 29 16:32:45 2023 +0100 Optimization update photon transmission commit 771dbaca5ccb9d836b9562a1a29de85437a371df Author: naimar-pro Date: Wed Nov 29 14:22:25 2023 +0100 Patch FreeStar to pass make check commit 41a76a925a3eaca6ea052f6a246d875d1cfae130 Author: naimar-pro Date: Fri Nov 17 12:07:49 2023 +0100 Update the polar exemple notebook commit f68ab972b0a9bb0d4daa94420d89244b299bb258 Author: naimar-pro Date: Tue Nov 14 16:26:06 2023 +0100 Add a jupyter notebook as an exemple for the Polarization commit 2a51c49c48c0b504a39d0561c03a7bef78cbd63a Author: naimar-pro Date: Fri Oct 20 17:18:21 2023 +0200 comment printing stuff commit 111084fa0ca4249680149da1658b19183995fbe9 Author: naimar-pro Date: Mon Oct 2 17:16:22 2023 +0200 Releasing Polarised version of Gyoto commit f06bba3aeb00f764a6b82dff255b9c96ffb1a6be Author: naimar-pro Date: Mon Oct 2 16:08:13 2023 +0200 Computation of 4-vector magnetic field in Astrobj::Generic to avoid multiple implementation and cleanning commit e48b108a02dd1567f462e2d2a187a9df61bf493e Author: naimar-pro Date: Sat Sep 2 01:36:24 2023 +0200 Cleaning stuff for merging with master + resolving conflicts commit 8d9150ef08fe43103e21ab0b9c50e91ff5b67b13 Author: Frederic Vincent Date: Mon Aug 28 10:43:51 2023 +0200 Blob: update to allow Minkowski metric while still checking that spin=0 for Kerr commit f84f89d28460f0dedcdff8108cdaf17b467774ce Author: Frederic Vincent Date: Mon Aug 28 10:00:58 2023 +0200 Blob: add power-law distribution and start implementing ipole formalism in case needed for checks commit ac12a26d5cc83821b480f49ef3393f544959fdfe Author: Frederic Vincent Date: Mon Aug 28 09:50:38 2023 +0200 ThickDisk: check that spin is zero when IPOLE formalism used. commit 6a1f836bb1180fe5abf91ec81e382adc5003c184 Author: Frederic Vincent Date: Fri Aug 25 06:56:07 2023 +0200 ThickDisk: adding magnetic field config for radial 4-velocity commit e159c6ef4662a90dc05f24d5b6462cb949d1da2f Author: Frederic Vincent Date: Thu Jul 20 12:08:04 2023 +0200 ThickDisk: magnetic field config coded whatever spin for circular velocity commit 68e7ec46eb9b83801763df0f0c0588fb3b03423c Author: Frederic Vincent Date: Wed Jul 19 16:15:47 2023 +0200 ThickDisk: adding all 3 magnetic field config as in Blob commit 27f4645607799a0bdd94bb7b339cab36daf4a0e3 Author: Frederic Vincent Date: Wed Jul 5 17:45:38 2023 -0400 Blob: electronDistribution keyword and B definition - add electronDistribution_ property to be able to easily switch - remove the exponential modulation of the B field in polarized radiativeQ, given that B is defined from density, which is already modulated. commit c62628a7c00a33904606c48736e99436620d90af Author: Frederic Vincent Date: Sat Jul 1 14:39:51 2023 -0400 Astrobj/Screen: correct by in Etheta definition. Astrobj: remove multiplication by -1 of Stokes U params, the need was coming from the bug below. Screen: multiply by -1 the definiton of Etheta in getRayTriad, previous implementation was wrong. commit e2df962cd725da918a82c6586514e254689f35f8 Author: Frederic Vincent Date: Sat Jul 1 14:38:31 2023 -0400 ThickDisk: update a comment on USE_IPOLE_FORMALISM variable commit 91be34264e3c8a615707dede541297db74a3b6bc Author: Frederic Vincent Date: Sat Jul 1 14:36:37 2023 -0400 ThermalSynchrotron: replacing useVos parameter by USE_IPOLE_FORMALISM global variable commit 8a93f502d1057aa9dcef9ee1bbc3fb137944385c Author: Frederic Vincent Date: Tue Jun 27 15:01:32 2023 +0200 Blob: reimplement non-polarized Blob time modulation that was removed by mistake. commit 747677a45719b60ab564b039d7f54b18cd1a46be Author: Frederic Vincent Date: Fri Jun 16 17:09:55 2023 +0200 Blob: adding proper magnetic field and removing Vos formalism. commit 2e1caaa948e814d8ac7e3d4e53817296bca19eb9 Author: naimar-pro Date: Fri Jun 9 14:20:10 2023 +0200 Config pour tester l abscence des coefficients de rotation et Stokes V commit 3b2c806f11847b418800f0966c4c6aa9c1c5dbc2 Author: Frederic Vincent Date: Fri Jun 2 15:16:10 2023 +0200 ThickDisk: global variable USE_IPOLE_FORMALISM to switch properly between ipole and Vincent+22 formalisms commit f9dd8e8ffa14892cb687d0003bbc8b351439e033 Author: Frederic Vincent Date: Fri Jun 2 15:10:30 2023 +0200 Astrobj.C: in polarized processHitQuantities, properly define transmission commit 54ec22ee84faed9e56060f0a9f81b2d7d08d89f9 Author: Frederic Vincent Date: Fri May 5 13:58:20 2023 +0200 ThickDisk: correct typo in g_det, remove floor on number_density commit f7c5406d084e99abf61dcb499bc1cf504bd9f17b Author: Frederic Vincent Date: Fri May 5 13:55:23 2023 +0200 Astrobj modifs on Stokes U, Pmatrix, Omatrix -Stokes U: multiply by -1 all coefs to comply with IAU convention -Omatrix: correct typo in Lambda1, Lambda2 -add Pmatrix following Moscibrodzka+19 ipole paper, not used, to debug commit 321f480d86ba155dfcd715dfab19fbee1ab1837c Author: Frederic Vincent Date: Thu May 4 07:48:55 2023 +0200 ThermalSynchrotron: using Gyoto constants rather than ipole constants For electron mass, charge, and c commit 2a977551dd62a45f939276c0ea7d276f7295dd44 Author: Frederic Vincent Date: Fri Apr 7 08:28:40 2023 +0200 Blob: take care of Gaussian radial extension from Vos+ model commit 64db65289e61309e8d0ae5f5c7499ebaa4bc766b Author: Frederic Vincent Date: Wed Apr 5 19:01:40 2023 +0200 Blob: using the same setup as in ThickDisk for comparison to Vos+ commit 71903cc106db3b2bfdc1cd7e5a230aa9d01caf92 Author: Frederic Vincent Date: Wed Apr 5 18:59:37 2023 +0200 Astrobj: EVPA in -90,90 commit 014487ff3db8058b2832940d75f7c75643c1ed90 Author: Frederic Vincent Date: Mon Apr 3 17:03:50 2023 +0200 Screen::getRayCoord updated to getRayTriad - getRayCoord takes a bool that checks whether parallel transport is ON or not - polar basis Ephi and Etheta is dealt with in getRayCoord - getRayCoord is renamed getRayTriad - so the 2 previous functions getRayCoord and getRayTriad are now replaced by getRayTriad that takes care of all cases - few updates in yorick and python plugins to take care of this change. commit 0799260b0d1a7e32b2d3f4bff92e097803b2681d Author: naimar-pro Date: Mon Apr 3 13:27:15 2023 +0200 UNFINISHED correction of computation of polarisation basis at screen. Change the prototype of function GetRayTriad(). Segmentation error for unpolarised case commit 0799ceecbcdc167c4bbb68bae07d8e34084ea4a1 Author: Frederic Vincent Date: Fri Mar 24 15:45:49 2023 +0100 ThinDiskProfile: add model parameters Adding to class the vector model_param containing an arbitrary number of params used to define the emitted intensity. commit b2cde36d7696877e2824686f714eee41ee40bd62 Author: naimar-pro Date: Tue Jan 17 00:04:31 2023 +0100 Update Makefile commit 6a172fee0a8e4eae5a2591ceea9d528dd5258c02 Author: naimar-pro Date: Mon Jan 16 23:00:19 2023 +0100 Add new astrob FreeStar commit 2d7cecc3553ff62fc183bae89c84a3d52180a472 Author: naimar-pro Date: Mon Jan 16 17:02:37 2023 +0100 Change name to be more coherent to their function and sanity checks commit eadaa8c385386bc0a889ac1d9add45c58e5ba8a9 Author: naimar-pro Date: Mon Jan 16 16:59:41 2023 +0100 add computation of coefficients identical to ipole for tests (with flag) commit aa3b1828e03b205e3086dc98fdeb94ccfd0a6300 Author: naimar-pro Date: Mon Jan 16 16:58:00 2023 +0100 Change the polarize RadiaveQ for comparison with Vos+22 (adding flag for tthese tests commit 4392d340d97c1707c112e1011188ce7b952f243e Author: Thibaut Paumard Date: Sun Nov 27 19:07:36 2022 +0100 Use getfullargspec instead of getargspec getargspec was deprecated since Python 3.0 and removed in Python3.11 commit fbf249429d6e7d8ed6499a3c9f5d6c4a5ab7b0ad Author: Thibaut Paumard Date: Sun Nov 27 19:02:19 2022 +0100 Replace _from by .from in several places in the Python examples and helpers The right form is .from... That _from used to work is a bug. commit 028802f4d524546b6b440e56ca850efc89c5312d Author: Thibaut Paumard Date: Sat Nov 26 18:32:40 2022 +0100 FIx: Converting Unit to Python string was failing on arm64, mipsel and s390x commit 3933fb1a1c633548ae2fa3e3e92baa1a77d664f6 Author: Frederic Vincent Date: Fri Nov 18 17:12:26 2022 +0100 SphericalAccretion: adding a density slope parameter commit 7e0f82576aa3878a5979e2339de190de17d591c4 Author: Frederic Vincent Date: Fri Nov 18 17:10:04 2022 +0100 ThickDisk: adding test that inner radius is put at the horizon, which is effectively assumed given that the operator() function returns -1. commit 26477aad0b11f5fc5f1107b29b90612d6b1124e6 Author: Thibaut Paumard Date: Wed Nov 9 18:30:58 2022 +0100 Photon::hit: Fix segfault when data is NULL commit b59a1708bbd826859d7f6e87cec65fb704d0fc22 Author: Frederic Vincent Date: Wed Nov 9 10:46:13 2022 +0100 SphericalAccretion: decrease tolerance norm of 4-velocity commit 25e1dc5a86397323959bb61ce6c37c6bd02d6415 Author: naimar-pro Date: Tue Sep 27 16:49:46 2022 +0200 invert sign of Q and U coefficients to be in the correct convention commit 7967af2308737924bb0cc80200bb27008e2ee9f0 Author: naimar-pro Date: Tue Sep 27 15:47:55 2022 +0200 * Correction in the compuation of the O matrix to follow the correct convention * Changing the prototype of getChi (and getSinCosChi): the four vector provided could be the magnetic filed vector (by default) or the electric field (set the flag elec to true) It still returns the EVPA i.e. Chi commit d3f1545fa51e36fefc8852e45481939fd1b372db Author: naimar-pro Date: Tue Sep 27 15:46:45 2022 +0200 Use of rotateJs instead of manual computation of Stokes emission coefficients commit 408e28f10aa1336cc1d3078102a811bb17c6343a Author: Frederic Vincent Date: Tue Sep 27 06:45:45 2022 +0200 In EquatorialHotspot: add polarized radiativeQ commit 7719146baddf493c8086b9931247e2c036b0cded Author: Frederic Vincent Date: Tue Sep 27 06:44:58 2022 +0200 In PageThorne: polarized radiativeQ update commit b04bec915a21ab6fcebf274c48232894af8d17fd Author: Frederic Vincent Date: Tue Sep 27 06:43:34 2022 +0200 In Astrobj: rewrite getChi and Xhi->Chi in Astrobj.h commit d1a3d7449baffa6d2a0f1df2bd6228870de8197e Author: naimar-pro Date: Mon Sep 5 16:25:13 2022 +0200 compute correctly the tetrad (K,Ephi,Etetha) to be orthonormal for the compute of Chi & multiple sanity checks commit 26cb11acdff41c8004fe7b30d0a235de9959b266 Author: naimar-pro Date: Mon Sep 5 16:22:00 2022 +0200 change name of variable Xhi->Chi commit 15a5bde9e0ff5ba106af0ca86791707a697ed761 Author: naimar-pro Date: Mon Sep 5 16:20:59 2022 +0200 change name of variable Xhi->Chi commit 86ca542a599a5ae980c3ab1679f1b4473b27fe8f Author: Thibaut Paumard Date: Wed Aug 31 17:41:48 2022 +0200 Mention MPI in the context of the Python plug-in in the Manual commit ee38dc77ff37f9fae8bddfd168018eda70dd53ca Author: naimar-pro Date: Tue Aug 30 18:05:26 2022 +0200 Change RadiativeQ(polarised) to serve as exemple commit ebd0921120da7bfb4fdcff50f9c8633ad8ebd19f Author: naimar-pro Date: Tue Aug 30 18:04:31 2022 +0200 Add comment for documentation for polarised RadiativeQ commit 751722043b52f654f3548403bce0211d40c788ec Author: naimar-pro Date: Tue Aug 30 15:47:01 2022 +0200 corrections for tests commit e4d45914cee0690c1849e5eb32ead8c8077f2491 Author: naimar-pro Date: Tue Aug 30 15:44:27 2022 +0200 Add sanity check and better error message commit 963641e1a6ef9f921a9f02f3639d35f375209249 Author: naimar-pro Date: Tue Aug 30 15:43:17 2022 +0200 Changing the error message to be more explicit commit 95e7b2ac97499292114003cddbe5a891fe8d3e2e Author: naimar-pro Date: Fri Jul 22 15:33:31 2022 +0200 implement the polarised RadiativeQ for test commit 3931796a11549ed7851e980aee24f5256878e201 Author: Thibaut Paumard Date: Fri Jul 22 10:16:52 2022 +0200 Fix yprime in Worldline::getCartesian commit 8cf8e267fca1910444df8f62fc90e6481ed16f32 Author: naimar-pro Date: Thu Jul 21 14:10:04 2022 +0200 cleaning and comments commit 5add30728d9d9159dd51b4dcd905fb743702cc2b Author: naimar-pro Date: Mon Jul 18 14:21:35 2022 +0200 helical motion for hot spot commit afe2aee360f8b340936c9acf3665e721307225e3 Author: naimar-pro Date: Tue Jul 5 15:21:58 2022 +0200 Update NEWS: contain the add of the Plasmoid & dependences + modification of FlareDiskSynchrotron + corrections in Kappa & PL commit 1481f0a140a4f66b33a7319f9b94f4147d4225ab Author: Thibaut Paumard Date: Fri Jun 3 16:37:37 2022 +0200 fixup commit 0a7892c9ecb29bf55b19e37d84b5732865af7062 Author: Thibaut Paumard Date: Fri Jun 3 16:36:25 2022 +0200 fix plugins\python\README.md commit e1809ba46017e97aa57bf5dc86985e99a5f3d2de Author: Thibaut Paumard Date: Fri Jun 3 16:34:42 2022 +0200 readd plugins/python/README.md commit 289004597171d2c1c11762bde0bcaa4418386f62 Author: Thibaut Paumard Date: Fri Jun 3 16:32:22 2022 +0200 Improve */python/README.md commit bcc244f7163962b28025a248bdeeaf4dffbc4f6e Author: Thibaut Paumard Date: Wed Jun 1 10:23:48 2022 +0200 add python/README.md commit abcd541f2ef46305501409fcefdcfff3a2ef65ac Author: Thibaut Paumard Date: Tue May 31 11:33:58 2022 +0200 Update plugins/python/README commit 29ce8fa8e87ce08417a023700e8878c7e0fa43c4 Author: Thibaut Paumard Date: Wed May 11 14:30:36 2022 +0200 Fix deprecation and other warnings in Python plug-in commit e2a8e7e0eb74d7be2c47d2923dc2f1ad93523e77 Author: Thibaut Paumard Date: Wed May 11 14:09:27 2022 +0200 Fully support ad-hoc properties of type "spectrum" in Python plug-in commit bcf47eca895206f358bd38c741c3e846b21f8395 Author: Thibaut Paumard Date: Tue May 10 23:23:12 2022 +0200 Python plug-in start supporting spectrum properties (not from XML yet) commit 8bf307a2325a2601206c2a31c5cbb3c41d7d562e Author: Thibaut Paumard Date: Tue May 10 11:40:10 2022 +0200 Support vector_double properties in Python plug-in commit 3ef64888b0f965e0898219eb92e73ad284aede1f Author: Thibaut Paumard Date: Tue May 10 10:33:40 2022 +0200 Document depencency of AngMomRinner on Spin in Polishdoughnut example commit 8be7b59bec59524ae112fcd99d2e54c47beb25a6 Author: Thibaut Paumard Date: Fri May 6 10:20:47 2022 +0200 Python plug-in: support ad-hoc properties in all classes commit 70fdd3877e712c82275343bb7db3a246a6d55be2 Author: Thibaut Paumard Date: Fri May 6 10:19:50 2022 +0200 Provide kind() accessors in Object setter is protected commit 22bc45bb999038d426480e2a36f6fe400bcdfc5e Author: Thibaut Paumard Date: Fri May 6 08:20:46 2022 +0200 Python plug-in: move Object API implementation from Meric to template So it will be reusable in the other classes. commit 10b4e359c4eccb2b6082b729475503532958ed94 Author: Thibaut Paumard Date: Thu May 5 20:15:25 2022 +0200 Support ad hoc properties in Python plug-in commit cbed6fd8e852b6ab01c3453b1d70696ca8a2e8fa Author: Thibaut Paumard Date: Thu May 5 19:20:09 2022 +0200 Make Object::get and Object::set virtual In order to override them in Python plug-in commit bb1818751d5256031f19c7b7fb87cc0c551db617 Author: Thibaut Paumard Date: Mon May 2 17:50:40 2022 +0200 Fix Python build system make check: skip setup.py to call tests, run them from built tree make clean: prepare in make all so they are not created by root in make install and can be deleted by user in make clean. commit ec48528e18c48882508a30cc93f498b4b5df48c0 Author: Thibaut Paumard Date: Fri Apr 29 18:33:36 2022 +0200 Implement Gyoto::Metric::Python::circularVelocity commit 73e2cf04af65a72b9889af26c891f75d8a6458fa Author: Thibaut Paumard Date: Fri Apr 29 17:19:50 2022 +0200 Implement Gyoto::Python::Metric::isStopCondition commit 93d6c9f053c2bc7adb2aa5afb8d7917197323df2 Author: Thibaut Paumard Date: Fri Apr 29 16:16:00 2022 +0200 Don't use boost and std namespaces in the same translation unit Don't do this: using namespace std using namespace boost::math This causes ambiguous statements when new Boost functions make it into std. commit 1e27f5b365456b1fa13deb59ceecf5daeeba777b Author: Thibaut Paumard Date: Fri Apr 29 16:01:15 2022 +0200 Improve error message handling in Python plug-in commit add2f058ffa36f00fd7fff5680802c751359ce31 Author: Thibaut Paumard Date: Fri Apr 29 13:08:21 2022 +0200 Improve error message handling in Gyoto::Python::Metric commit 559de7171a8e187988a55c8821a188bedcf4d311 Author: Thibaut Paumard Date: Fri Apr 29 11:40:32 2022 +0200 Debug and complement the Python KerrBL implementation commit 0ea007dc98227d7ba355f13544f0fb917cb2a7e6 Author: Thibaut Paumard Date: Thu Apr 28 22:44:42 2022 +0200 Add Metric::Python::getRms, getRmb, pGetSpecificAngularMomentum commit 0945db4ea8aabeb51dbfb7b5ea8e9f050e76cf47 Author: Thibaut Paumard Date: Thu Apr 28 17:06:09 2022 +0200 Implement Python:Metric:getPotential() commit f739ba902a1ab3946b67f422778661010e30442e Author: Frederic Vincent Date: Mon Jan 31 16:12:08 2022 +0100 ThickDisk: adding slopes for density and temperature profiles commit 29db4705154e72c3f7de4254b94f10c1566538c3 Author: Frederic Vincent Date: Mon Jan 31 16:10:26 2022 +0100 ThinDiskProfile: adding a flag for switching circular motion / radial fall commit b0088229ee6f8d8c9f505a4eacb4f3d64696706c Author: Frederic Vincent Date: Mon Jan 31 14:42:49 2022 +0100 SphericalAccretion: flag for self absorption UseSelfAbsorption allows to switch on and off absorption Expose the astrobj in python commit 61bf9895519f1e96c71e4126cc56767be19cfbce Author: naimar-pro Date: Wed Oct 27 17:13:06 2021 +0200 Correction error in calcul of tl & tu and adding security check on ratio in the interpolation commit e1157d168d7f1ae2b1f3ab40a235d2128ab4e25c Author: Thibaut Paumard Date: Sat Oct 16 12:43:42 2021 +0200 StarTrace: always initialise tmin_ and tmax_ to finite value (0.) commit 64ff9c800833c188ce0e3af8be1ee0af9b5cf6fd Author: Thibaut Paumard Date: Fri Oct 15 19:04:03 2021 +0200 Support swig4.0 in configure commit 6cb39e0e7b881efe593c3da30addff3722bad4a1 Author: Thibaut Paumard Date: Fri Oct 15 19:00:57 2021 +0200 Fix year in gyoto.C commit d5b9cfbe80c1e52a4db358c645da1c177d74c507 Author: Thibaut Paumard Date: Fri Oct 15 18:52:03 2021 +0200 Support GCC 11 GCC 11 implements C++17, which introduced std::data, breaking some code that uses `data' as a variable name together with "using namespace std". commit 9e07b64b2f5b46b14f46428668987670d0667a9c Author: naimar-pro Date: Tue Oct 12 14:57:05 2021 +0200 update for the test of polarisation commit c60c3c387a61558f8b31ab81274eb88a6630ccfb Author: naimar-pro Date: Tue Oct 12 14:56:27 2021 +0200 Use of the reset functions at beginning of hit commit 7b63a435d4b1cd4e53f781832d3e72695af20922 Author: naimar-pro Date: Tue Oct 12 14:54:00 2021 +0200 correction calcul of Xhi commit bcd14d8aef71ac9a92a258b604701d4cb78e7dfc Author: naimar-pro Date: Mon Sep 27 15:05:08 2021 +0200 small corrections in formula commit 3a95dc1d81505ad1ee6eb7b6a8366ce256e28254 Author: naimar-pro Date: Wed Sep 22 16:35:39 2021 +0200 testing PTdisk for polarisation (not complete) commit b30339da1275821ea2d1e4f76a1b5be2ec56082b Author: Thibaut Paumard Date: Tue Sep 21 15:45:06 2021 +0200 Adapt for autoreconf 2.70 Thus fix bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=978831 commit 201a18c48b142a984394f7a495e54bc17a698e31 Author: Thibaut Paumard Date: Tue Sep 21 14:37:49 2021 +0200 python/tests: share a TODO list commit be149c6435cea280be0a363fada94ca4f4659e2b Author: naimar-pro Date: Mon Sep 13 11:44:04 2021 +0200 changes for testing polarisation commit 88205443a7b0af5914ed9fe3151a170c2c3d4e64 Author: naimar-pro Date: Mon Sep 13 11:43:12 2021 +0200 minnor correction commit 2ece55a32649d69c149a4265ee5fe4f4bb677cae Author: naimar-pro Date: Mon Sep 13 11:42:13 2021 +0200 use the correct bessel function for fixing an issue + update comments commit f3c1decd1df7dec86267fe9633871bbc1c031d19 Author: naimar-pro Date: Fri Sep 10 15:58:51 2021 +0200 Quick Tests commit 886c8be39d12a022cd8cb9617f7efe083677ccd1 Author: naimar-pro Date: Fri Sep 10 15:58:01 2021 +0200 rename function from transfert to transfer and update the getTransmissionMax() to account for the polarisation commit 41770fd41ff7a25ce38e2cf98f322538e1194183 Author: naimar-pro Date: Fri Sep 10 15:54:05 2021 +0200 Add 2 new prototypes for Omatrix Add a new function that return sin2Xhi and cos2Xhi rename of transfer function Add security to the computation of Omatrix to avoid nan/inf Add the function rotateJs commit f4325684283fd1db8ea268000b86c8ef33c2f7c8 Author: naimar-pro Date: Fri Sep 10 15:52:17 2021 +0200 Add 2 new prototype for Omatrix and one new for the compute of Xhi commit c95b8a698b344942dcb31d0760877e259cb90d06 Author: naimar-pro Date: Thu Sep 9 10:32:17 2021 +0200 use of rotaeJs in polar radiativeQ of Blob commit 5a0b43f609802722e62d7cbbf9ad3b5e5ee72742 Author: naimar-pro Date: Thu Sep 9 10:31:13 2021 +0200 Add function rotateJs in Astrobj::Generic commit 04fb21a909f33d1bb9fa738e74ec6ea113994595 Author: naimar-pro Date: Wed Sep 8 11:32:04 2021 +0200 update the installing instructions with the Eigen3 library commit 571e83897845ce52904f09e011fdb57f17fadacb Author: naimar-pro Date: Sat Sep 4 01:31:48 2021 +0200 add comment commit 97d9ead6c45653830301540fd99ba6d6a6b25d85 Author: naimar-pro Date: Sat Sep 4 01:31:00 2021 +0200 change prototype of radiativeQ commit d5a0782f1553940f4ce0fbb192c981707d9cfccc Author: naimar-pro Date: Fri Sep 3 13:27:18 2021 +0200 complete transmit and transfert functions commit 14369158235cb2e0357522240f8cca13f5b61e82 Author: naimar-pro Date: Fri Sep 3 11:31:56 2021 +0200 Changes prototypes of polar radiativeQ which return the O matrix instead of coefficients Adapt the rest of the code with these changes commit f462150a3d57066cfe13964d5a5b35f3a047cb4f Author: naimar-pro Date: Fri Sep 3 11:29:36 2021 +0200 Add temporary implementation of polar radiativeQ with arbitrary magnetic field config commit 9ccdee0cc8ba496139ff23fd574072718251b330 Author: naimar-pro Date: Fri Sep 3 11:28:22 2021 +0200 remove temporary implementation of polar radiativeQ, not adapted for Plasmoid Object commit 7169787f1708e142454443b04c5e9b85db4e11db Author: naimar-pro Date: Wed Sep 1 16:36:56 2021 +0200 Adding the eigen library in the compilation commit 0e669f29b650672e9dec2ffcf63d4e466335fe2b Author: naimar-pro Date: Wed Sep 1 16:35:25 2021 +0200 update Photon and Astrobj with Eigen library; use of Matrix4d type instead of 4x4 arrays commit 4c6b5171557fa28e66d9a2d2ae60df4e43e40b5a Author: naimar-pro Date: Tue Aug 31 16:19:43 2021 +0200 Adding the transmissionMatrix Table and transmissionMatrix_freqobs and all the allocate/reset/get functions commit 5da7e6ad013ef0e8ae9f1a8f14ba835a69356333 Author: naimar-pro Date: Tue Aug 31 16:11:31 2021 +0200 Changes for Polarisation: -Prototype of polarised version of RadiativeQ change to also return Xhi -Prototype of transfert delete the arguments Inu, Qnu, Unu, and Vnu (to avoid to compute them twice with RadiativeQ) This function ONLY update the transmisssion Matrix -in ProcessHItQuantities : update the call of previous functions -Omatrix and getXhi are now public to be used by Photon.C commit 924124b3a1bf41f8177f5ef60d09a3f2bb1893b7 Author: naimar-pro Date: Thu Aug 26 16:36:39 2021 +0200 Delete the temporary definion of the Omatrix, moved to Astrobj::Generic commit f8ab21384fa3be5feaa4c206dbf992a483ca6921 Author: naimar-pro Date: Thu Aug 26 16:34:45 2021 +0200 Adding to Generic the computation of the Omatrix and the Xhi angle for polarization commit 520b8ec186a8f8797973b8ca970674b8145c0f15 Author: naimar-pro Date: Thu Aug 26 16:31:44 2021 +0200 In the 3 SynchroSpectrum, adding the Polarized RadiativeQ and the functions to compute all the Stokes coefficients commit 7793aa053b4f25df34a8d1a95b1fa905cd28bbf3 Author: Frederic Vincent Date: Thu Aug 26 15:31:37 2021 +0200 Photon: big update of image order tracking Take care of image order tracking along two lines, (i) either the already implemented tracking of theta turning points (ii) or the Kerr-specific Mino time computation (rather involved in terms of formalism) Both methods agree, but are tested only at low inclination so far. commit 2b3409fd6380be1666db2a1ef47eb13f1bcee0b5 Author: Frederic Vincent Date: Thu Aug 26 15:29:01 2021 +0200 ThickDisk: taking care of very low density Rather than using a special treatment only when density=0, use it for density=max/1e10 commit 9da85e5fd46786b7583316ddcdf8e45d03113760 Author: Frederic Vincent Date: Thu Aug 26 15:21:31 2021 +0200 ThinDisk: adding a flag to store impact coords user1, user2, user3 were used for all ThinDisks but I need these quantities for image order tracking. All these quantities should be renamed anyway if kept. commit c7954b558ef47a722c3c0b0a335dd73b5e7a5b99 Author: naimar-pro Date: Thu Aug 19 16:21:13 2021 +0200 add the kind of object in constructor for a proper copy in XML commit c6a6881d9578d13a7f71d5b027c6399d8f0f580e Author: naimar-pro Date: Thu Aug 19 16:19:54 2021 +0200 Corrections for MPI : overload of FillElement() to account the directory and not the filename, add the kind of the object for a proper copy in child XML and better initialisation of direname_ commit d86d25a8ed6f0d8ca4ec73f32ebe0f89c52fb162 Author: naimar-pro Date: Tue Aug 17 17:56:32 2021 +0200 Correction of conversion approximation of the distance in fillProperty. Now use the Units::FromMeter commit 7274beaa8f51c8af61b2fec65e3213d3f8f73c1b Author: naimar-pro Date: Tue Aug 17 10:27:50 2021 +0200 Correction "get" polytrpicIndex: return the correct value + freeing memory Bvector in destructor commit 1bee404f897fcab0c1029f4b4249ffacbd8324b6 Author: naimar-pro Date: Mon Aug 2 11:43:56 2021 +0200 Correction compilation error : there is no function dt in GridData2D, the dt in computated in tmin tmax and nt commit a14def517e649dc612b167c3eae40e7199498772 Author: Frederic Vincent Date: Mon Jul 19 15:12:20 2021 +0200 New class ThinDiskGridIntensity First commit of a class meant to manage equatorial disks in Kerr with an intensity profile specified in a 2D grid, managed through GridData2D commit 95c7465cb2d3a5ecc5bf87c4dccd81cbad54c572 Author: naimar-pro Date: Thu Jul 8 20:31:43 2021 +0200 time_array is now an optional argument or retrocompatibility. By default, the time step is constant commit 13e0bec0dcb2996a6856e7ffc5ac9f7873ec8928 Author: naimar-pro Date: Mon Jun 28 15:44:59 2021 +0200 Plasmoid V1.1.1 : correction of impact function which was not using the correct injection time commit 1c8e98acb485e09fc2e3f5da95307b75134f848c Author: naimar-pro Date: Mon Jun 28 11:06:27 2021 +0200 Plasmoid Version 1.2 : jnu and anu computed thanks to PIC sim during both heating and cooling phases commit 23d7fce3fd5ceea5f97648967546909236053237 Author: naimar-pro Date: Fri Jun 18 15:46:29 2021 +0200 Correction of the step factor in the integration over theta of jnu and anu commit a91806819ec0a13a8f1dc5407fc8b73e061f40a7 Author: naimar-pro Date: Tue Jun 15 15:15:27 2021 +0200 Plasmoid V1.1: t_inj is now a free paramater commit 0ac8ad72fe91b183b4f14f7ace7f669cce50dd4f Author: Frederic Vincent Date: Fri Jun 11 07:53:21 2021 +0200 Photon.C: update again higher-order image tracking - image order changes when an equatorial plane crossing is followed by a theta turning point (allows to get rid of coordinte-related turning points) - keep track of the various image orders in user1, user2, user3 commit d8bc8e62b6060727fdae302d9d7086b729368c61 Author: naimar-pro Date: Fri Jun 4 15:39:08 2021 +0200 Remove the correction of 4pi in Plasmoid object. The correction is apply in the data before GYOTO commit 65a12f73bb1920f1f869b66351daa7bd747e1d58 Author: Frederic Vincent Date: Thu Jun 3 18:33:14 2021 +0200 Adding Metric SchwarzschildHarmonic Schwarzschild metric in harmonic coordinates commit 138554ba7f3508be85ffd6a80760224cde144d08 Author: naimar-pro Date: Wed Jun 2 15:36:57 2021 +0200 Correction to pass all test of make check (pb with betaAtMax) commit 7e0f86d1023c2d14628dfb2b71a4e4077c0eff6b Author: naimar-pro Date: Wed May 12 16:18:23 2021 +0200 Delete unused variable commit 2f3c7694be5c6a4e6b01939b26748dad2739ec3d Author: naimar-pro Date: Wed May 12 15:54:45 2021 +0200 Update Notes about the need of hypergeometric function (not only Jet) commit 882cc9343d40b962a5e52d971728c9c3f0885997 Author: naimar-pro Date: Wed May 12 14:44:50 2021 +0200 Spectrum PowerLaw gamma_min and gamma_max are now private variables which could be changed commit 739c77c73ab84293945e5baf116b9d480b81c86c Author: naimar-pro Date: Wed May 12 13:09:25 2021 +0200 correction calculation of B from 8pi->4pi commit 18930399da8547f5f0ab824b46e6c867ffa1cc76 Author: naimar-pro Date: Wed May 12 13:07:59 2021 +0200 restore of Makefile.in commit 15b08d0b536bc63d91f59e3ab734e8592bb29aef Author: naimar-pro Date: Wed May 12 11:28:36 2021 +0200 Add correction *4pi for jnu and anu from PIC data commit 243f607a832cf9170d907d55fc545fb196bee1e9 Author: naimar-pro Date: Wed May 12 11:19:02 2021 +0200 [Complete feature] FlaredDiskSynchrotron, magnetic field could be read and angle_B_perm_ could be computed (not only averaged) commit 7488c28330f6c3d9f8498d6fa34ba4fb98d10be2 Author: naimar-pro Date: Tue May 4 19:48:36 2021 +0200 model kappa-Psaltis complete commit 26d3057eaf4d096fd80b106f35adcaf4be7f5c30 Author: naimar-pro Date: Tue May 4 17:11:53 2021 +0200 Correct integration over theta commit 7ee3bd815aaa59bdd45c5d1d54f7d89b13ffc813 Author: naimar-pro Date: Tue May 4 17:10:48 2021 +0200 adding function writeParams and security on freq_array commit fa61ca380d4f0eb01eefa075fdfa19676ed51cc4 Author: naimar-pro Date: Tue May 4 17:08:57 2021 +0200 Update python Interface; Complete PIC/Plasmoid model commit 602f3808483d7a364a51581d61d4bd900a052953 Author: Frederic Vincent Date: Mon May 3 17:34:37 2021 +0200 PowerLaw- and KappaSynchrotron: fixed bug in averaging jnu and anu Param jnusinprev was not updated commit d48e5349a331aa67827281961d0419e1602fe446 Author: Frederic Vincent Date: Fri Apr 30 08:29:17 2021 +0200 Photon.C: update higher-order image tracking - implement theta turning points counting - remove condition on leaving object (not adapted to ThickDisk and object dependent) - remove rlim - current implementation depends only on geometry commit e1ae1d41439af037d17115c34d3e5b6b641ce4ca Author: Frederic Vincent Date: Wed Apr 28 17:42:01 2021 +0200 ThickDisk: adding accessors - thickDiskZGaussianSigma for the Gaussian modulation in z - veloParam for the alpha and beta parameters used to define the mixed circular-radial 4-velocity - useSelfAbsorption to switch on or off the absorption commit e626f51782ed5b173cd201be2dd731c7a45cde4a Author: naimar-pro Date: Wed Apr 28 17:22:29 2021 +0200 updated Makefile.in commit f1067b314bd47e216507cebac7bec8fc48f313b5 Author: naimar-pro Date: Wed Apr 28 17:19:44 2021 +0200 Correct a segmentation fault ! ! ! commit 503b0fc6d6a42b18e7943d19b16845a80abaf7b7 Author: naimar-pro Date: Wed Apr 28 17:17:50 2021 +0200 change from string to char* for moving to HUD name commit 04e28a637683ab5bb8f3777d4f083cb1b814ef0a Author: naimar-pro Date: Wed Apr 28 17:13:35 2021 +0200 updates comments commit febb607b6ed849e4cd3c11082e05c3d45f6293b8 Author: naimar-pro Date: Wed Apr 28 17:12:35 2021 +0200 removing the functions TimeStep which was causing crashes commit cb3b5ec7375f58e9e1971da2fb053eadea342866 Author: naimar-pro Date: Fri Apr 23 17:33:59 2021 +0200 adding new Object FitsRW commit 9cfeafe03d328742411ef55f793a6dc56babb131 Author: naimar-pro Date: Fri Apr 23 17:32:50 2021 +0200 change the treament of the cooling : jnu and anu are now read from fits files (results of PIC simulations commit 31e66773a17a7b8307a448c45b3626c04cee9469 Author: naimar-pro Date: Fri Apr 23 17:30:58 2021 +0200 adding new object FitsRW used by Pasmoid to read jnu and anu from fits file for cooloing commit 1273a716a8e8a6f76a53e3b6b142080676d63bc9 Author: Frederic Vincent Date: Wed Apr 21 07:56:34 2021 +0200 ThickDisk: big update - matter is everywhere - adding vertical Gaussian dependence of density - velocity is a combination of circular and radial profiles commit 797f1edcb366caef4fba071f9f07fe52d8a2abda Author: Frederic Vincent Date: Thu Apr 15 13:51:45 2021 +0200 Expose ThinDiskProfile in python commit 2cf1912ad41da3a7b414e41e4758bc5643dd3ee6 Author: Frederic Vincent Date: Thu Apr 15 13:50:30 2021 +0200 ThinDiskProfile: properly deal with the necessity to be in KerrBL commit 14a2c8a6ca7afce2846f57bc3f6691509a353acb Author: Frederic Vincent Date: Thu Apr 15 13:49:18 2021 +0200 Worldline: add possibility to cout the conserved angular momentum commit 247bcc3ead55dadfdd6d9c646b2c86cdace1e10d Author: Frederic Vincent Date: Thu Apr 15 13:47:44 2021 +0200 SphericalAccretion: comments and checks commit 0ab565f266a66a5cfc7c3632206c8dd581741cf4 Author: naimar-pro Date: Wed Mar 31 11:48:52 2021 +0200 mise a jour GridData2D 31/03/2021 : correction bug prototype de fonction commit dbd834552784f031e83179c12000ffda576ff2a3 Author: naimar-pro Date: Wed Mar 24 16:51:48 2021 +0100 change spectrum 2PL (not working) commit 92e0c6fd204a73e8f269de5cba0cb203a64e7625 Author: naimar-pro Date: Wed Mar 24 16:49:50 2021 +0100 Ajout lecture/ecriture B4Vector Time_array commit 639579c4789fd03ca71dda5e151de3df15c5446d Author: naimar-pro Date: Wed Mar 24 16:48:25 2021 +0100 ajout gestion pas de temps non constant commit 4c9d5daab757c526668baa26e8a420bdfb2f4cb4 Author: naimar-pro Date: Mon Mar 15 16:45:10 2021 +0100 Change the distribution into two PowerLaw commit da5b07150bcdfe0626eb1ed1a2edf5fd5ce13096 Author: Frederic Vincent Date: Mon Mar 15 11:17:17 2021 +0100 Pushing configure to solve autotools-related bug commit 9d6fe2b3929dc259943d344851a77875ad684110 Author: naimar-pro Date: Tue Feb 23 14:11:52 2021 +0100 correction for selection Varying/Constant radius commit a3e61e45e23217d282823be9944634b3997885da Author: naimar-pro Date: Tue Feb 23 10:27:53 2021 +0100 adding variable and functions to selecte if the radius is constant or varying commit 2fae5c09c677a3ab4aae69994510cfa22cc1495b Author: Frederic Vincent Date: Thu Feb 11 09:44:54 2021 +0100 ThickDisk: update getVelocity profile commit 6a0ed236fd2ea835884b20bb39ce03f9d2e39bd4 Author: naimar-pro Date: Fri Feb 5 10:38:05 2021 +0100 model with time varying Radius commit 3b514a07a5d84467ec4c66d9babf035b9356f80d Author: naimar-pro Date: Fri Feb 5 10:35:44 2021 +0100 Correction errors for multithreading, model with constant Radius commit 820745281edd6a020792c15869aedbbc47ee1fb7 Author: Frederic Vincent Date: Wed Feb 3 14:58:00 2021 +0100 New Astrobj: SphericalAccretion commit 080b0f165c047973dd82d776d13756b3375b6eb6 Author: Frederic Vincent Date: Tue Feb 2 15:18:36 2021 +0100 ThinDiskProfile typo correction commit cdc7837c6d5c62f8073ea2bbfd2e317bc16b7909 Author: Frederic Vincent Date: Tue Feb 2 15:15:57 2021 +0100 ThinDiskProfile: comment in formula commit 2f04bc6a84014a8831301d1a552c10e783433326 Author: Frederic Vincent Date: Tue Feb 2 13:55:06 2021 +0100 ThickDisk: change velocity prescription below ISCO commit a0e6e61010bafc562513ef8423b70ae319d2b947 Author: naimar-pro Date: Wed Jan 27 10:43:34 2021 +0100 Radius of Plasmoid now increase linearly until radiusMax_ during the injection phase commit 38a1446c9af771f730e73faa8fa9a34157ec6729 Author: naimar-pro Date: Wed Jan 13 17:19:37 2021 +0100 restore previous jnuCGS & alphanuCGS and add two new fonction returning the 4 Stokes coefficients for emission & absorption. Moreover, create an overloading of RadiativeQ to compute the 4 Stokes coefficients commit 28700e3dd3b0d560c7976dbddf084b6dcf27aa49 Author: naimar-pro Date: Wed Jan 13 11:48:02 2021 +0100 Adding the computaton of the polarization throught Stokes values placed in arguments of jnuCGS and alphanuCGS commit 3c75bf753c84d158233d017af0938b407cfcc005 Author: naimar-pro Date: Wed Jan 13 11:45:48 2021 +0100 correction of the name of a variable for Stokes values commit 810178c1b611c83462277c11ea1ce502785925d0 Author: naimar-pro Date: Tue Jan 12 15:30:55 2021 +0100 Adding the possibility to ask the QUV stokes parameters for jnu commit f13a01a074c317ee648e51cda6179ee739388470 Author: naimar-pro Date: Tue Jan 12 15:28:54 2021 +0100 Adding a linear increase of the temperature during heating phase commit a989692dd418b3e6f687379a151c1b9c2b8cda4f Author: naimar-pro Date: Wed Dec 9 14:56:49 2020 +0100 t_inj=L/v_A istead of L/v_rec & rename posIni_ + fourveldt_ commit c0ac154e8086a53d819fb91a87b50d507059f232 Author: Thibaut Paumard Date: Wed Dec 9 12:04:11 2020 +0100 Mark Metric::Complex as WIP commit 8d63f98b69fd3b9398e7c55f4e46f703fcbf0f76 Author: Thibaut Paumard Date: Wed Dec 9 11:35:47 2020 +0100 fixup: Run autoreconf commit a189fe797016e882060c486971879d410927f2e9 Author: Frederic Vincent Date: Wed Dec 9 07:46:01 2020 +0100 ThinDiskProfile: commenting fudge factor for later use commit fd758413c510a2c126d7528cf5f236f19d46e80f Author: Frederic Vincent Date: Tue Dec 8 20:24:08 2020 +0100 ThickDisk: allow only Cunningham75 4-velocity below ISCO commit 3eeeb1048245e6d6e7cd3d97b13e9d824e0fc8b9 Author: Frederic Vincent Date: Tue Dec 8 15:28:22 2020 +0100 NumericalMetricLorene: big code cleaning, removing outdated functions commit 35bcbe84b84aabbeee61942d5b1d9b011b5093eb Author: Frederic Vincent Date: Fri Dec 4 19:14:02 2020 +0100 ThinDiskProfile: Cunningham75 profile below ISCO commit 42eaaafbb6fdd9bbdc53ef44506a0e8a9ff838ab Author: naimar-pro Date: Wed Dec 2 14:58:26 2020 +0100 comment cout commit faeb6590394676f1529cad25ef40a5fd9225932d Author: naimar-pro Date: Wed Dec 2 14:49:40 2020 +0100 model Plasmoid thermal (Psaltis) finished commit 46da544b95eb9889f0c425851d3d70d1e1af8888 Author: Frederic Vincent Date: Mon Nov 30 10:07:52 2020 +0100 New Astrobj ThinDiskProfile Useful to implement some particular equatorial disk emission profile, typically for comparison with other models. commit 2b8e88280032179636d8dc118f795b7f81c74ec5 Author: naimar-pro Date: Fri Nov 27 11:14:56 2020 +0100 correctif 27/11 commit 6f7771f772d7f2b5f29ebaf059a05283b3dc2635 Author: naimar-pro Date: Thu Nov 26 10:21:15 2020 +0100 search of pb v>c commit 2a6d59d71d4079e2eb73c2a92feef7e9b8dfba54 Author: naimar-pro Date: Fri Nov 20 09:47:43 2020 +0100 patch getCartesian getVelocity for Plasmoid commit 2f7b56adc72f5240f338bdb8203f8caa76fdf87f Author: naimar-pro Date: Thu Nov 19 15:05:21 2020 +0100 Change inherit from Star to UniformSphere for Plasmoid and allow Helicoidal motion commit 76e62c87d390980d7d035f50d9f43790f2bd9cb9 Author: Frederic Vincent Date: Tue Nov 17 11:56:00 2020 +0100 NumericalMetricLorene: special treatment for axisym circular spacetimes 3+1 integration is handled in an optimized way for axisym circular spacetimes, if the flag axisymCirc_ is True. commit 52bc19cd940ad58504805e7dea2ef0e23c1e4eeb Author: Frederic Vincent Date: Tue Nov 17 10:47:00 2020 +0100 NumericalMetricLorene: implementing the general 3+1 geodesic equation The previous assumptions on axisymmetry and spacetime circularity are removed. commit e1e76aea4c81e99415ba0cd114c95b1b102aa57b Author: Frederic Vincent Date: Tue Nov 17 10:45:52 2020 +0100 THermalSynchroSpec: typo in a comment commit f7b870a648e9830f52e9779e206ded1cdd7c2ae9 Author: naimar-pro Date: Tue Nov 10 16:04:11 2020 +0100 correctif Plasmoid synch thermique commit a81d46308f502730a3c0191386058a771727d094 Author: Frederic Vincent Date: Tue Nov 10 07:32:25 2020 +0100 ThickDisk: add interpolation of velocity between ISCO and horizon commit 6903c576b521ce07d5ce3cfd11283a0158243dbd Author: naimar-pro Date: Fri Nov 6 10:08:44 2020 +0100 Plasmoid Psaltis model commit e573c40ae1132989b8f52d3f5f54d5752395f617 Author: naimar Date: Mon Nov 2 14:57:52 2020 +0100 Plasmoid identique a Psaltis commit a1edc607f9716ae890bfb33dfe6e75dfc570f63d Author: naimar Date: Fri Oct 23 17:09:19 2020 +0200 Adding new AstrObj Plasmoid and update KappaDistribution commit 7be125a2b0bcc76deb6bf11c6084e22a740d5794 Author: Frederic Vincent Date: Thu Oct 15 18:16:29 2020 +0200 3+1 Integration update Update Worldline and WorldlineIntegState to support the 3+1 integration through boost by adding the integ31 flag. Add Metric::diff31 (fails if no sub-implementation), KerrBL::diff31 (for testing), and NML::diff31. commit 7f56a2db38b7fe4720d432d8a16923042299f320 Author: Frederic Vincent Date: Thu Oct 15 18:10:46 2020 +0200 In Jet.C: correct operator() distance, and jet velocity commit e697da5c80216920a2bbfa345da49ce5c51bd97d Author: Frederic Vincent Date: Thu Oct 15 18:08:16 2020 +0200 In ThickDisk::getVelocity: correct expression of Vr below ISCO commit 1b7ab88497f61858e5238bdcb5a68eba41cd6744 Author: Frederic Vincent Date: Thu Oct 15 18:04:01 2020 +0200 In OscilTorus: adding comment on mode naming convention commit 33838435a9c7167516fab7442b5730f163ddb0b6 Author: naimar Date: Tue Oct 13 14:32:07 2020 +0200 adding object Plasmoid and update PowerLowSynchrotron with overloading operators commit ba196ce61a4ee05c5cced41db72f421067347caa Author: Frederic Vincent Date: Tue Aug 4 16:28:33 2020 +0200 NumericalMetricLorene: start implement jacobian for Complex metrics commit eee30ba6285534587af30cbbcf539873312de7b1 Author: Thibaut Paumard Date: Sun Jul 5 19:03:48 2020 +0200 Add Shift metric commit b4431863609a42de00d15a00334f9f6ef5d47965 Author: Thibaut Paumard Date: Sun Jul 5 17:58:36 2020 +0200 Metric: make void Generic::mass(value [, unit]) virtual commit 0218989eaa971978deef85b0308f4b17d18d9f47 Author: Thibaut Paumard Date: Fri Jul 3 17:37:02 2020 +0200 KerrKS: optimize gmunu_up, jacobian and gmunu_up_and_jacobian Remove the specific version of christoffel that used to compute the jacobian etc. Test Metric::Complex with KerrKS. commit 14c83f86abc38305dd84039f77eb2fa7d7e79524 Author: Thibaut Paumard Date: Fri Jul 3 11:22:58 2020 +0200 ComplexMetric: add isStopCondition, usingGeneric::Gmunu, add test suite commit b94adba8c46eaf3afe0a4c968c77cc03881dae2d Author: Thibaut Paumard Date: Fri Jul 3 10:02:27 2020 +0200 bugfix: set cst_ to NULL in Worldline::Worldline(orig, i0, dir_step_max) Else this pointer can be erroneously freed later in the destructor. commit c9f2499be14d35fc176605dd6a9c97065cd648f1 Author: Thibaut Paumard Date: Tue Jun 30 23:16:50 2020 +0200 Add Metric::Complex Allows summing metrics. The covariant coefficients and Jacobian are summed, while the contravariant coefficients are determined by inverting the covariant matrix. commit d1c5672f0a08d8ec956ab71057c830a251f4ef9c Author: Thibaut Paumard Date: Tue Jun 30 17:11:33 2020 +0200 Metric: add gmunu_up_and_jacobian, provide default (numerical) christoffel Metric: * new interfaces jacobian and gmunu_up_and_jacobian * jacobbian has a default numerical implementation * this provides a default implementation for christoffel Tests: test all flavors of gmunu*, jacobian and christoffel for all std metrics Util: new function matrix4CircularInvert ChernSimons: * wrap Generic::christoffel (previously erroneously called KerrBL) * rewrite gmunu_up based on matrix4CircularInvert (previusly buggy) KerrKS: more Pythonic jacobian() commit 6acdba2e09bec979b7d680218a1c44756ec7a903 Author: Thibaut Paumard Date: Mon Jun 29 12:00:06 2020 +0200 Python: revert Python changes from a2518c722bb7ddb555622d2b8e22eaf3cf452db8 Revert most of recent commit. Since christoffel returns an int, it's currently best to keep the two flavors G=metric.cristoffel(pos) and retval=metric.christoffel(G, pos) commit 1d599727da0fc7037bf1a03d1aa3ae2109750362 Author: Thibaut Paumard Date: Mon Jun 29 11:26:14 2020 +0200 Python: improve Worldline.getCartesian commit a2518c722bb7ddb555622d2b8e22eaf3cf452db8 Author: Thibaut Paumard Date: Sun Jun 28 11:55:06 2020 +0200 Python: remove christoffel glue and make interface more Pythonic This is a Python API breaking change in that the signature is now: retval, Gamma=metric.christoffel(pos) where it used to be either Gamma=metric.christoffel(pos) or retval=metric.christoffel(Gamma, pos) This change should increase the maintainability of the Python bindings. commit b60801c6cc8efa256b2b0620753760a356df2aac Author: Thibaut Paumard Date: Sun Jun 28 00:45:45 2020 +0200 Metric: ensure both versions of gmunu_up return the same thing + fix Hayward::gmunu_up(pos, mu, nu) which had a wrong sign + make sure both flavours of gmunu_up are consistently callable in a pythonic manner for all metrics in stdplug + make the two generic flavours call each other and default to inverting gmunu + test that the two flavours in every stdplug metric do the same thing commit d9c7b7c846e381a93fe588fdb49cc2350a641a2f Author: Thibaut Paumard Date: Sat Jun 27 22:57:00 2020 +0200 Metric: ensure consistency between gmunu versions and gmunu_up Add tests for all metrics in stdplug to check that both versions of gmunu are equivalent and the inverse of gmunu_up. Make sure all these methods are callable from Python in a Python and consistent fashion. Add a flavour of gmunu to ChernSimons for which the KerrBL implementation was previously exposed. commit 62e471fd11fa3cce9abd28450db0fc63dce9c56e Author: Thibaut Paumard Date: Sat Jun 27 22:48:11 2020 +0200 python/: rebuild gyoto.std and gyoto.lorene when the header files change commit ea0810d1e4d29695c2f11d191f8c2e829f1a9d8d Author: Thibaut Paumard Date: Sat Jun 27 10:37:12 2020 +0200 Metric: add generic gmunu_up based on matrix inversion Util.C: add Gyoto::matrix4Inverse() Metric.C: add gmunu_up() commit f502336101db12af79a0f4083d77d4c4fa573268 Author: Thibaut Paumard Date: Thu Jun 25 16:21:33 2020 +0200 Python: nicer syntax for gmunu and christoffel, test Christoffels A more Pythonic syntax was already in place for Metric::Generic::gmunu (and others). Here we make sure this nicer syntax remains available in metrics that reimplement these methods. Add two functions (christoffel_numerical and check_christoffel) in gyoto.metric to ease testing of Christoffel symbols. Use check_christoffel to test all the metrics in stdplug and RotStar3_1 in lorene. commit 721fc608e04de72495596a4c31ab4f2d7a0b16af Author: Thibaut Paumard Date: Mon Jun 22 15:11:43 2020 +0200 Worldline: add constantsOfMotion() to access cst_ from Python commit 0a6e0c9c7e50da33321e0c07de35cc22d9c6180f Author: Thibaut Paumard Date: Tue Jun 9 11:02:56 2020 +0200 Remove unused Newton.C commit 2a9fe687358e9e4547937b0a8ccdbfc24a676e63 Author: Thibaut Paumard Date: Tue Jun 9 10:54:21 2020 +0200 CompexAstrobj: fix rMax for cardinal_= 0; yorick: fix matte-painting commit caa895b6c069c2ac92ac496227c16fc9597c7635 Author: Thibaut Paumard Date: Wed Apr 22 11:45:59 2020 +0200 python: improve Worldline::getCoord/getCartesian interface add possibility to not pass any parameters (in which case all coordinates a returned) add possibility to pass scalar t (in which case single coordinate is returned. t can be integer index or real date. commit 0787af17941474777f3b8ca209aa3665fc1002ba Author: Thibaut Paumard Date: Wed Apr 22 11:19:01 2020 +0200 Worldline: copy stopcond in copy constructor commit ed2ba5697f556e487cce865b6220a8a3e41435f7 Author: Thibaut Paumard Date: Wed Apr 22 11:18:36 2020 +0200 some documentation commit 9df8f53ab66e6ca7035df80ac754b6f6927c32d4 Author: Thibaut Paumard Date: Wed Apr 22 11:18:01 2020 +0200 Utils: imlement cartesianToSpherical/sphericalToCartesian commit 6cb5b5577e806d6103280e65705474022187c215 Author: Thibaut Paumard Date: Wed Apr 22 11:15:29 2020 +0200 small improvement in Screen + support dmax in Cartesian case; + support geometrical units in coordToSky; + implement skyToCoord. commit b0f8fc294baed86ace601a364df1f25ce65836fa Author: Frederic Vincent Date: Thu May 28 19:27:15 2020 +0200 EquatorialHotspot: using the same definition for Gaussian emission as Schnittman and Bertschinger commit 08770964dd44ca52f9e9e7f35c9afe6215264892 Author: Frederic Vincent Date: Thu May 28 19:02:42 2020 +0200 Photon.C: adain updating maxCrossEqPlane treatment commit 46fbbc440dd78714719eaec52fab3426441508a4 Author: Frederic Vincent Date: Thu Apr 30 17:38:03 2020 +0200 Photon::maxCrossEqPlane update. Geodesics are cut after maxCross hittings of equat plane AND once they have left the astrobj. commit 93bd12ad7a36e2dc4bff4bcd9bc5691a9a6e0f49 Author: Frederic Vincent Date: Wed Apr 29 15:57:16 2020 +0200 Update Photon.C maxCrossEqplane treatment. Before the pixel flux was put to zero when the nb of crossings of the equat plane reached maxCross, now the flux is let unchanged, the geodesic is just cut. commit b1efae64f510c07e9519d093ad5bd0aa19a5cc71 Author: Thibaut Paumard Date: Thu Mar 19 11:18:00 2020 +0100 Minkowski::diff: implement Newtonian motion in spherical coordinates Change variables to use Cartesian coordinates. commit a5205f4cc28040c0f9dd9436730687d1c20f0929 Author: Thibaut Paumard Date: Fri Mar 13 13:53:17 2020 +0100 Minkowski::diff(): remove useless recalculation of dxdt[4] commit d02e6d4dd1d4376856627521ce6b252b09cd7e26 Author: Thibaut Paumard Date: Wed Mar 11 14:03:41 2020 +0100 Minkowski: reimplement diff() to integrate Newton's law of motion If keplerian_ is true, integrate Newton's law instead of geodesic equation for massive particles. Only implemented in Cartesian coordinates so far. commit 9a8e1db041d75183f3f1a8af6be97a7579bf71fe Author: Thibaut Paumard Date: Wed Mar 11 13:40:35 2020 +0100 Worldline::diff: new parameter double mass This will allow derived classes to use a distinct equation of motion for massive particles and photons. Since the mass is not known in the Worldline base constructor, state_->init() cannot be called there. This call was moved to nextStep() and doStep(). commit c1a8ab247a3a2e98631a6a5eda584b47a3535674 Author: Thibaut Paumard Date: Thu Mar 5 19:22:54 2020 +0100 FlaredDiskSynchrotron: use dt_ in fitsRead So it does not matter whether File or TimeTranslation_inMunit is set first. commit 7a824ad1a58ff7c3fe683f1e611d8b5fc6bb6db8 Author: Thibaut Paumard Date: Thu Mar 5 17:12:43 2020 +0100 FlaredDiskSynchrotron: add missing accessor commit 227beb2ee81421282d6de01f81596e994468b8cd Author: Thibaut Paumard Date: Tue Mar 3 15:53:52 2020 +0100 Add NbCrossEqPlane quantity Was stored in User5 since a few commits commit c93a8f26693b9fa7ca4187270810733d5d053d2b Author: Thibaut Paumard Date: Fri Feb 28 20:19:43 2020 +0100 Releasing 1.4.4 commit 8042b896850ed0e28d56101d0c574bd530b3bbb9 Author: Thibaut Paumard Date: Fri Feb 28 14:03:20 2020 +0100 Fix typo refered -> referred (cherry picked from commit 034ca81045cd4c1c07a1fab649f0ec52508fca4b) commit 68b22662b0188f8cd882180438006a1052276313 Author: Thibaut Paumard Date: Thu Feb 27 14:09:39 2020 +0100 Python: rework refernce counting issues Add test suite for reference counting, modify interface to fix issues (cherry picked from commit ec066ab7ba73a88e5fcd0165abf127f9170ee1c3) commit a81fed23d0e2eb6adc2d78623c06652b481a5aac Author: Thibaut Paumard Date: Thu Feb 27 13:31:53 2020 +0100 Python: add gyoto.spectrometer.Uniform = gyoto.spectrometer.UniformSpectrometer (cherry picked from commit 6530372e2cef1261ae32d70dbf06a5131db4b5c0) commit 03e9aff1c4dc12f25ad0b649a01eb78c0c9aee15 Author: Thibaut Paumard Date: Thu Feb 27 13:10:01 2020 +0100 Fix classes so cloning always works Some classes where expecting to be somehow initialized. Cloning/printing should always work. Turn some errors into severe warnings. (cherry picked from commit 0c3183059db190e0c67057c71e71d0d44d9a5ec7) commit 0c33673c9d7d6106ed0f0444316c7fbb6f582632 Author: Frederic Vincent Date: Mon Feb 24 14:32:37 2020 +0100 Scenery: correct small typo in print in destructor (cherry picked from commit 95204b829f0628f99550e5363f15f8928400bd3c) commit 3c3084ed67e37b62690abc983e55bb6ec0109735 Author: Thibaut Paumard Date: Tue Feb 18 20:09:09 2020 +0100 Factory.C: print Screen section only once (cherry picked from commit 7c46c94d8c26ba0c577587cb37c510d6899167f2) commit f7ce04b1000032b91aeecb760edcf82622e099e9 Author: Frederic Vincent Date: Thu Feb 13 14:03:15 2020 +0100 PolishDoughnut: put default bremsstrahlung_ to False (cherry picked from commit a4bd341888388e167eb92116c2419c5a33312e9e) commit 542208a412c72bf37343178224c893d7ca698c8a Author: Frederic Vincent Date: Wed Feb 5 16:39:19 2020 +0100 KerrBL: replace christoffels by exactly equivalent expressions, easier to read, tested with SageMath (cherry picked from commit 6cad755646222a729ba9446813d2dd7e37de7479) commit bbdbb5abcfe76c7e4941babcc837d5b0da1a0a6b Author: Frederic Vincent Date: Wed Feb 5 16:24:23 2020 +0100 ThickDisk: bug in radial velocity below ISCO corrected (cherry picked from commit 4a58ba6a77d5b2a703cfe7c96a697ca9e635c249) commit fd48e486da4f560f130b06fb37942a4bc6c55956 Author: Thibaut Paumard Date: Tue Feb 4 16:05:51 2020 +0100 Always use C locale when writing doubles to XML (cherry picked from commit abb343d1e0719329257ca1620d6c276cfa954075) commit 6bfeedf07d04e14b4061a474b8bb4c153bec63d1 Author: Thibaut Paumard Date: Tue Feb 4 15:20:23 2020 +0100 Set LC_NUMERIC to 'C' before calling std::atof Gyoto always assumes that decimal_point is '.' and ignore whatever the locale says. We always set LC_NUMERIC to 'C' in Gyoto::atof. All instances of std::atof in Gyoto should be replaced by calls to Gyoto::atof. (cherry picked from commit bf5b09fc8b1cf5006582cf52bee9a3a77eafb5bc) commit 3fc34ec5e5a1bfba54f62c9f19acea1c909ed21c Author: Frederic Vincent Date: Thu Jan 30 13:36:55 2020 +0100 Expose ThickDisk to python (cherry picked from commit 4ade08e5e87451c0f99810b2520ac397bebed951) commit 8d9d12407e9371be212b2a720e478c20459f2593 Author: Frederic Vincent Date: Thu Jan 23 10:49:52 2020 +0100 Adding doc/example/example-thick-disk.xml (cherry picked from commit 21e2b8a6b574c81070c95875a55185d843af2e1f) commit 9313b41c336e83e2dd745ceaa802bc59028203cf Author: Eric Gourgoulhon Date: Thu Jan 23 10:21:42 2020 +0100 Small corrections in the install instructions (cherry picked from commit c63cb8fdba455df51b3144ae486b8ee66d0d17ff) commit ee17672a27e99b814e5e1ced1dd13668ee71545b Author: Thibaut Paumard Date: Wed Dec 18 14:13:47 2019 +0100 null plugin: load "null", not "obspm". (cherry picked from commit 8b76d5495ed53d0f593bc9832c1c4ebcfad4a85f) commit 1a14943931b87d3b252e7674bbc437c1c7cfe183 Author: Thibaut Paumard Date: Tue Oct 29 14:03:00 2019 +0100 Drop Python 2.7 support It was lost a some point during summer 2019, and we don't plan on reintroducing it. (cherry picked from commit 0fe9301eea584980861576ee8f5b911ea47a893e) commit ee6f8e57ad603d2cfe56e0db5eee18a2aaf9bba1 Author: Frederic Vincent Date: Mon Nov 18 16:25:43 2019 +0100 In ThickDisk.C: adding basic stuff for quick-check of non-axisymmetric structures (cherry picked from commit 00e81b108d634a36f44f3a6ebcda95a905454e09) commit 034ca81045cd4c1c07a1fab649f0ec52508fca4b Author: Thibaut Paumard Date: Fri Feb 28 14:03:20 2020 +0100 Fix typo refered -> referred commit ec066ab7ba73a88e5fcd0165abf127f9170ee1c3 Author: Thibaut Paumard Date: Thu Feb 27 14:09:39 2020 +0100 Python: rework refernce counting issues Add test suite for reference counting, modify interface to fix issues commit 6530372e2cef1261ae32d70dbf06a5131db4b5c0 Author: Thibaut Paumard Date: Thu Feb 27 13:31:53 2020 +0100 Python: add gyoto.spectrometer.Uniform = gyoto.spectrometer.UniformSpectrometer commit 0c3183059db190e0c67057c71e71d0d44d9a5ec7 Author: Thibaut Paumard Date: Thu Feb 27 13:10:01 2020 +0100 Fix classes so cloning always works Some classes where expecting to be somehow initialized. Cloning/printing should always work. Turn some errors into severe warnings. commit 95204b829f0628f99550e5363f15f8928400bd3c Author: Frederic Vincent Date: Mon Feb 24 14:32:37 2020 +0100 Scenery: correct small typo in print in destructor commit 7c46c94d8c26ba0c577587cb37c510d6899167f2 Author: Thibaut Paumard Date: Tue Feb 18 20:09:09 2020 +0100 Factory.C: print Screen section only once commit eb73bc1792b7b0584f99ec716689af9cdc271771 Author: Frederic Vincent Date: Thu Feb 13 15:03:45 2020 +0100 Photon: adding nb of eqplane crossings in data->user5 commit a4bd341888388e167eb92116c2419c5a33312e9e Author: Frederic Vincent Date: Thu Feb 13 14:03:15 2020 +0100 PolishDoughnut: put default bremsstrahlung_ to False commit b6a45021b464ea8c58fca0fea73f5fe44d7f78c5 Author: Frederic Vincent Date: Wed Feb 5 16:44:32 2020 +0100 PageThorne: add mdot field in xml for cgs-unit computations commit 6cad755646222a729ba9446813d2dd7e37de7479 Author: Frederic Vincent Date: Wed Feb 5 16:39:19 2020 +0100 KerrBL: replace christoffels by exactly equivalent expressions, easier to read, tested with SageMath commit 4a58ba6a77d5b2a703cfe7c96a697ca9e635c249 Author: Frederic Vincent Date: Wed Feb 5 16:24:23 2020 +0100 ThickDisk: bug in radial velocity below ISCO corrected commit abb343d1e0719329257ca1620d6c276cfa954075 Author: Thibaut Paumard Date: Tue Feb 4 16:05:51 2020 +0100 Always use C locale when writing doubles to XML commit bf5b09fc8b1cf5006582cf52bee9a3a77eafb5bc Author: Thibaut Paumard Date: Tue Feb 4 15:20:23 2020 +0100 Set LC_NUMERIC to 'C' before calling std::atof Gyoto always assumes that decimal_point is '.' and ignore whatever the locale says. We always set LC_NUMERIC to 'C' in Gyoto::atof. All instances of std::atof in Gyoto should be replaced by calls to Gyoto::atof. commit 4ade08e5e87451c0f99810b2520ac397bebed951 Author: Frederic Vincent Date: Thu Jan 30 13:36:55 2020 +0100 Expose ThickDisk to python commit 21e2b8a6b574c81070c95875a55185d843af2e1f Author: Frederic Vincent Date: Thu Jan 23 10:49:52 2020 +0100 Adding doc/example/example-thick-disk.xml commit c63cb8fdba455df51b3144ae486b8ee66d0d17ff Author: Eric Gourgoulhon Date: Thu Jan 23 10:21:42 2020 +0100 Small corrections in the install instructions commit 8b76d5495ed53d0f593bc9832c1c4ebcfad4a85f Author: Thibaut Paumard Date: Wed Dec 18 14:13:47 2019 +0100 null plugin: load "null", not "obspm". commit 218919ce8496c7f69c73023252ebd1f3b57d3feb Author: Frederic Vincent Date: Tue Dec 10 13:23:18 2019 +0100 Hayward: code cleaning removed getRms and getRmb that were copied from KerrBL and thus wrong added circularVelocity in ThickDisk: imposing isco radius to 0 fro Hayward (not clean, but ok) commit ef60b15023ea5a23e3c6aa89a1ea22528a9341fa Author: Frederic Vincent Date: Tue Dec 10 11:52:50 2019 +0100 Photon.C: restrain equatorial plane crossing counting to the inner spacetime commit 0fe9301eea584980861576ee8f5b911ea47a893e Author: Thibaut Paumard Date: Tue Oct 29 14:03:00 2019 +0100 Drop Python 2.7 support It was lost a some point during summer 2019, and we don't plan on reintroducing it. commit 029c0ad4b47b391a6e8c0ddecdc2efc32f49778e Author: Frederic Vincent Date: Mon Nov 18 16:51:52 2019 +0100 Implement maximum equatorial plane crossings Adding a flag that counts the number of crossings of equatorial plane (theta=pi/2 in BL coordinates) and cancel photons that cross the equatorial plane more than some specific number specified in XML. commit 00e81b108d634a36f44f3a6ebcda95a905454e09 Author: Frederic Vincent Date: Mon Nov 18 16:25:43 2019 +0100 In ThickDisk.C: adding basic stuff for quick-check of non-axisymmetric structures commit 8cd0d5857b92ab43830852a6b29f14a5c5dc514d Author: Thibaut Paumard Date: Fri Oct 25 16:59:04 2019 +0200 Releasing 1.4.3 commit 3708134bd0c822415d20c9dcb89bdd5ad6b2724e Author: Thibaut Paumard Date: Fri Oct 25 15:54:25 2019 +0200 m4/python.m4: bugfix (actually support Python >=3.8) commit c13df3d4f8fb5086ccca98097b1214279db2f33c Author: Thibaut Paumard Date: Fri Oct 25 15:24:05 2019 +0200 Releasing 1.4.2 commit ea20fb536aae58f008a282feaa12868e72ce78d9 Author: Thibaut Paumard Date: Fri Oct 25 14:33:14 2019 +0200 plugins/python: support Python 3.8 With Python 3.8, modules are no longer link with libpython by default. Therefore codes that are meant for embedding Python must pass --embed to python-configure in order to get the complete set of flags to do so. commit d9fe7496b7172f28c22760627ff201ab5595c9e1 Author: Thibaut Paumard Date: Thu Oct 24 12:29:08 2019 +0200 EquatorialHotSpot: fix "==" that was meant to be "=" In XML backward compatibility code. commit 557f90287d0c4225f960ba035409ab7a85b8d01b Author: Thibaut Paumard Date: Thu Oct 24 12:26:10 2019 +0200 GridData2D: explicitly convert size_t to long Implicit narrowing conversion is an error for some compilers. commit 9f912f8233fc1cc42c05bd4338eec2fd8085a5fa Author: Thibaut Paumard Date: Wed Oct 23 16:48:04 2019 +0200 Releasing 1.4.1 commit cc9d56c22497e93579c3c2487fc02adea859536f Author: Thibaut Paumard Date: Wed Oct 23 16:41:43 2019 +0200 make check: use all files in doc/examples commit 1be1303f98b95386071479bd3398d29224e7f96e Author: Thibaut Paumard Date: Wed Oct 23 15:29:25 2019 +0200 Scenery: bugfix in mpiWorker Fix computation of number of quantities to store. Previously, parenthesis were missing and the result was always 16. commit b0ae812addbd9b8ae4c6815484e5ff366bd05016 Author: Thibaut Paumard Date: Tue Oct 22 12:52:57 2019 +0200 Preparing to release 1.4.0 commit eb1da8b77098bbb8ac8035312c3634079aea9e9c Author: Thibaut Paumard Date: Tue Oct 22 12:50:35 2019 +0200 Fix documentation in Register and Scenery commit 1e30036d8d4b216ea25cb2a35fe1367d8ea3f7c9 Author: Thibaut Paumard Date: Sat Aug 3 09:13:51 2019 +0200 Releasing 1.3.5 commit 31195c8f583085d36911ae0b567019a90d83c108 Author: Thibaut Paumard Date: Fri Aug 2 22:37:38 2019 +0200 Releasing 1.3.4 (fix merge in master) commit d75a030dec028dd4f6f44e478db56d666d9d502f Author: Thibaut Paumard Date: Fri Aug 2 20:53:30 2019 +0200 Releasing 1.3.3 (fix import in master) commit 904c849c86fd9552837d1bd55efad9fb5b88cd06 Author: Thibaut Paumard Date: Fri Sep 27 16:04:19 2019 +0200 Releasing 1.3.6 commit 703ead1f392b1ff2c92fbba04d566c4f5b6dd2da Author: Thibaut Paumard Date: Fri Sep 27 16:02:00 2019 +0200 Fix copy constructor of RezzollaZhidenko and PolishDoughnut commit 3ee9b4e25f26c65ab162d64c61a5bcd66c86a78f Author: Thibaut Paumard Date: Tue Sep 10 10:25:36 2019 +0200 GyotoDefs.h: give derived constants to machine precision Some constants like GYOTO_G_OVER_C_SQUARED where only given to the same precision as the constant they derive from (GYOTO_G in this case). While it is correct that e.g. G is known only to 1e5, mixiin guses of GYOTO_G and GYOTO_G_OVER_C_SQUARED both specified only to that precision leads to additional errors. GYOTO_G_OVER_C_SQUARE, GYOTO_G_OVER_C_SQUARE_CGS, GYOTO_PLANCK_OVER_C_SQUARE and GYOTO_PLANCK_OVER_BOLTZMANN are now given with many more places so that GYOTO_G/GYOTO_G_OVER_C_SQUARE actually yields GYOTO_C^2. commit a60e859cfc4ecbf7768b519c7b59e565ac5676c8 Author: Thibaut Paumard Date: Fri Sep 27 14:37:09 2019 +0200 Fix example.py after changing Worldline.getCoord commit ae6b2131a1bbe7ebdbfc757070985c395aa29787 Author: Frederic Vincent Date: Fri Sep 27 08:49:35 2019 +0200 ThickDisk: commiting proper versions of StdPlug and lib/Makefile.in commit c2ec8e22fed7319d3599fb0401cd598fec03a96e Author: Frederic Vincent Date: Fri Sep 27 08:20:25 2019 +0200 New Astrobj ThickDisk This is a geometrically thick, optically thin disk, described by its opening angle (between BH spin axis and outer disk surface), and its inner radius. It emits thermal synchrotron parametrized by an inner temperature, inner density, and a magnetization. Its velocity is Keplerian outside ISCO, and can be tuned inside ISCO (see VelocityBelowIsco) commit d74acb8469a716a77a9b56b2b9fa4af9aaffbc98 Author: Frederic Vincent Date: Fri Sep 27 08:15:18 2019 +0200 Jet: add a Thermal Synchrotron spectrum and change jet velocity to (Vphi,Vr) Velocity stuff: previous implementation was assuming pure radial velocity in jet. Now a suerimposition of azimuthal and radial is allowed with Vphi/Vr chosen in xml commit f230d7fb226911fe5679fc166fef3f82536d08c8 Author: Frederic Vincent Date: Fri Sep 27 08:11:31 2019 +0200 in Torus: add a Thermal Synchrotron spectrum and a radiativeQ() recipe to allow realistic astrophysics commit f277f6ebf3cc3810c7b56bd0b779540723272545 Author: Thibaut Paumard Date: Sun Aug 25 19:32:33 2019 +0200 gyoto.util: make getCoord(double t, stat_t coord) work again commit 0dda0c96b3d35725f8221a40305c727128480e5c Author: Thibaut Paumard Date: Fri Aug 16 09:32:15 2019 +0200 Python: make sure Worldline.getCoord works both with NumPy and C arrays commit 3277ebedd6d095a6f85c928ced59a680f8e90337 Author: Thibaut Paumard Date: Thu Aug 15 22:35:51 2019 +0200 Python: make sure Worldline.getCartesian works both with NumPy and C arrays commit 11b1a6016db823a39d42f993432a8271aee86ede Author: Thibaut Paumard Date: Thu Aug 15 09:01:36 2019 +0200 gyoto.util.rayTrace: return arrays or the right dimension if j and/or i are scalars, decrease dimension of output arrays commit e1209889d5511fe9061f7c25155578a44f76e73c Author: Thibaut Paumard Date: Wed Aug 14 21:22:25 2019 +0200 gyoto.util.rayTrace: reorder parameters The order j, i is more Pythonic than i.j. This ways, sc[j, i]['Quantity'] == sc[:,:]['Quantity'][j,i]. Having height and width last allows writing: sc[j, i, core.Bucket, None] skipping height and width to remove progress output. commit c4af46c430bb0cd73c6230571d3530146b0f126d Author: Thibaut Paumard Date: Wed Aug 14 14:31:42 2019 +0200 Gyoto::Screen::Coord1dSet: copy beffur in Indices and Angles Much safer in Python commit 6614509bccc4937123963c96011af8955fa04a51 Author: Thibaut Paumard Date: Sun Aug 11 14:07:43 2019 +0200 gyoto.util: improve doc comments commit f92a846193e3bd3cfa2adc5a04371d82b5158156 Author: Thibaut Paumard Date: Sun Aug 11 14:00:19 2019 +0200 gyoto.util.rayTrace/Scenery_getitem: improve dimensionality - Scenery_getitem accepts all rayTrace parameters - return 1D array when the Coord2dSet is 1D commit 18d2c3dfd3cd53e228b8ed0c91572a6232c07d04 Author: Thibaut Paumard Date: Sun Aug 11 07:53:12 2019 +0200 gyoto.util: support angles in rayTrace commit 7852e47d204d4b6f87032abc36179a4cb23f479b Author: Thibaut Paumard Date: Sun Aug 11 07:45:42 2019 +0200 gyoto.core.Scenery: add __getitem__ method shortcut for rayTrace commit 7d86c285b0b9fb095bbcb102fb39fdc0f96e076d Author: Thibaut Paumard Date: Sun Aug 11 07:21:59 2019 +0200 gyoto.util.rayTrace: support indices, ranges and list of indices commit a0f2db907499a768e9d0c8322bd87386d5326b0a Author: Thibaut Paumard Date: Sun Aug 11 06:21:56 2019 +0200 gyoto.util.rayTrace: accept paremeters i and j commit 049e1daad6fb52b9beb6be40f9778c733b9755c1 Author: Thibaut Paumard Date: Fri Aug 9 09:37:16 2019 +0200 python: install util.rayTrace as Scenery.rayTrace commit a71e2ef9f529a9c0e49a662d90b8fedf969d5a07 Author: Thibaut Paumard Date: Tue Sep 10 10:25:36 2019 +0200 GyotoDefs.h: give derived constants to machine precision Some constants like GYOTO_G_OVER_C_SQUARED where only given to the same precision as the constant they derive from (GYOTO_G in this case). While it is correct that e.g. G is known only to 1e5, mixiin guses of GYOTO_G and GYOTO_G_OVER_C_SQUARED both specified only to that precision leads to additional errors. GYOTO_G_OVER_C_SQUARE, GYOTO_G_OVER_C_SQUARE_CGS, GYOTO_PLANCK_OVER_C_SQUARE and GYOTO_PLANCK_OVER_BOLTZMANN are now given with many more places so that GYOTO_G/GYOTO_G_OVER_C_SQUARE actually yields GYOTO_C^2. commit 933632b26e4138b1f9c6ac11dde3ea53eb89aaf9 Author: Thibaut Paumard Date: Thu Sep 5 10:41:17 2019 +0200 doc/user_guide: correct example about setting the observer tetrad commit aa0c11e9953f89c687be267548f5152757e13e76 Author: Thibaut Paumard Date: Sun Aug 25 19:36:06 2019 +0200 Worldline: fix bug introduced with proper time_ was not properly upated after xExpand (or xFill, which calls xExpand) commit 770de5b9e28c7490e6e3297fec4337e7609fe4c6 Author: Thibaut Paumard Date: Sun Aug 25 19:33:48 2019 +0200 GyotoDefs.h: introduce GYOTO_DEBUG_THIS and GYOTO_DEBUG_THIS_EXPR Those versions output unconditionnally and are meant for temporary use during debugging sessions. commit 59b68193fcb2947bdb80c47ddc9debd3403448dc Author: Thibaut Paumard Date: Sun Aug 25 19:32:33 2019 +0200 gyoto.util: make getCoord(double t, stat_t coord) work again commit 9f7d8453019f49efba9fb466b0c359eef2d62a5a Author: Thibaut Paumard Date: Fri Aug 16 09:32:15 2019 +0200 Python: make sure Worldline.getCoord works both with NumPy and C arrays commit 930d25d714354771e4b5ff2380905991fd22f52a Author: Thibaut Paumard Date: Thu Aug 15 22:35:51 2019 +0200 Python: make sure Worldline.getCartesian works both with NumPy and C arrays commit c77a243dbe042703afe59eb51b4a5ffda65b9baa Author: Thibaut Paumard Date: Thu Aug 15 09:01:36 2019 +0200 gyoto.util.rayTrace: return arrays or the right dimension if j and/or i are scalars, decrease dimension of output arrays commit 13ab900e9371bfe34dc389d69e53bda3da12d089 Author: Thibaut Paumard Date: Wed Aug 14 21:22:25 2019 +0200 gyoto.util.rayTrace: reorder parameters The order j, i is more Pythonic than i.j. This ways, sc[j, i]['Quantity'] == sc[:,:]['Quantity'][j,i]. Having height and width last allows writing: sc[j, i, core.Bucket, None] skipping height and width to remove progress output. commit ec2095da7da28c171f639d4a25e93b8b97b8eb25 Author: Thibaut Paumard Date: Wed Aug 14 14:31:42 2019 +0200 Gyoto::Screen::Coord1dSet: copy beffur in Indices and Angles Much safer in Python commit 7f685adf5b748ef908709f170957846ecf0984b3 Author: Thibaut Paumard Date: Sun Aug 11 14:07:43 2019 +0200 gyoto.util: improve doc comments commit b010c42ef536885d3096d54206ba797b1b2c3d93 Author: Thibaut Paumard Date: Sun Aug 11 14:00:19 2019 +0200 gyoto.util.rayTrace/Scenery_getitem: improve dimensionality - Scenery_getitem accepts all rayTrace parameters - return 1D array when the Coord2dSet is 1D commit 6da372f854ce2146a9093f122b58300df1644abf Author: Thibaut Paumard Date: Sun Aug 11 07:53:12 2019 +0200 gyoto.util: support angles in rayTrace commit 0fd2ad270afc7616408211439e5bc8d6b23ad216 Author: Thibaut Paumard Date: Sun Aug 11 07:45:42 2019 +0200 gyoto.core.Scenery: add __getitem__ method shortcut for rayTrace commit 7094bfe1607f0b9ad8be4d49c9d3487718204c80 Author: Thibaut Paumard Date: Sun Aug 11 07:21:59 2019 +0200 gyoto.util.rayTrace: support indices, ranges and list of indices commit 194b3c919b1d7a050b2c69bbd6a11541656458ca Author: Thibaut Paumard Date: Sun Aug 11 06:21:56 2019 +0200 gyoto.util.rayTrace: accept paremeters i and j commit 15d6d9ccaa0050267b8b823d62f9ba685eb16d36 Author: Thibaut Paumard Date: Fri Aug 9 09:37:16 2019 +0200 python: install util.rayTrace as Scenery.rayTrace commit bb7ce60adc3c9f476dafb0429b35df57ae99fe0a Author: Thibaut Paumard Date: Sat Aug 3 09:13:51 2019 +0200 Releasing 1.3.5 commit 8c856ac2c397c52e1f37e82be239122e72cfeb72 Author: Thibaut Paumard Date: Sat Aug 3 08:52:47 2019 +0200 gyoto.util: support Python 2 commit 5267613c227a8e923134a4135d166b935a50b14e Author: Thibaut Paumard Date: Fri Aug 2 22:37:38 2019 +0200 Releasing 1.3.4 commit 8d8122d2089c554c9d6c50f2b17f48eca1b1c723 Author: Thibaut Paumard Date: Fri Aug 2 22:35:03 2019 +0200 fix gyoto.util.rayTrace to work in the stable branch commit 6b45c338432a6dd2516b0ddede0b1382f2776327 Author: Thibaut Paumard Date: Fri Aug 2 20:53:30 2019 +0200 Releasing 1.3.3 commit 8f90c3fca9fb4aef2597dde57622a8457b7b85bd Author: Thibaut Paumard Date: Fri Aug 2 15:52:28 2019 +0200 Releasing 1.3.2 commit 2dd5b72560246688b3a75599423d507078dafb35 Author: Thibaut Paumard Date: Fri Aug 2 14:54:31 2019 +0200 Fix printing issues during ray-tracing, mostly visible in Python - Make sure cout is flushed after Scenery::rayTrace finishes - Screen::Grid now keeps a copy of the prefix string - util.rayTrace fmt defaults to "\r j = " commit 956439e3288d367bc89f30fa3bf5dba19cbb5fbd Author: Thibaut Paumard Date: Tue Jul 30 16:22:38 2019 +0200 doc: warn in the user guide that the Yorick plug-in should not be used The Yorick plug-in will not see new features. It's maintained for gyotoy only. commit 75c871959a20586b5cd4116f1cca5510a22a1f16 Author: Thibaut Paumard Date: Mon Jul 29 17:15:38 2019 +0200 Metric: fix bug in Generic::cartesianVelocity Was only correct in the equatorial plane commit d6c93d927498be9bbfedb57e76cd62c3a9445fb8 Author: Thibaut Paumard Date: Fri Jul 26 22:51:13 2019 +0200 ThinDisk::sphericalPhi: return value between 0 and 2 pi commit 3c5b8c00dd1f031c08ad950c675043c15629e5a7 Author: Thibaut Paumard Date: Fri Jul 26 22:49:35 2019 +0200 gyoto.util: add readScenery and writeObject commit 4d88d3dfde2032a9b9badb9edf8ff1d773c0155d Author: Thibaut Paumard Date: Fri Jul 26 15:35:19 2019 +0200 python: new module gyoto.util containing rayTrace() rayTrace is a utility function to hide the complexity of calling Scenery.rayTrace commit 38812941bf5b1bb350616c25c8280ce9e1c4db11 Author: Thibaut Paumard Date: Wed Jul 24 13:48:40 2019 +0200 python: call setup.py build instead of build_ext commit 6664b5bb0bc49d2855f266619110a4e83146275e Author: Thibaut Paumard Date: Sat Jul 13 00:31:35 2019 +0200 Screen.C: change definition of dangle(1|2) for anglekind != spherical Older definition only works for spherical angles (at most?) This definition actually rotates the camera. commit 765324d90d1f7df659a73ae32cfc244ec5b35cb6 Author: Thibaut Paumard Date: Fri Jul 12 10:06:34 2019 +0200 python: fix segfault in gyoto.lorene numpy was not properly initialized in gyoto_lorene.i commit dd9edd1ac4495c9c8a03400a0f91c9d3893baa5f Author: Thibaut Paumard Date: Thu Jul 11 21:10:46 2019 +0200 python: fix segfault in gyoto.std numpy was not properly initialized in gyoto_std.i commit 45632d45677d1b0f8a558eaf699454ae8135c5a6 Author: Thibaut Paumard Date: Wed Jan 31 17:59:12 2018 +0100 Bugfix: add time-did-not-evolve check in Worldline::xFill() Same test as in Photon::hit(). commit 77d509f1726ff668fc74d1acb77ccc171ae1fea8 Author: Thibaut Paumard Date: Thu Jan 25 11:31:02 2018 +0100 Fixup: specify encoding in python/tests/core.py commit 1998eb3b8ef1e69f5f047fbd7b100ec2639e5e73 Author: Thibaut Paumard Date: Fri Aug 2 14:54:31 2019 +0200 Fix printing issues during ray-tracing, mostly visible in Python - Make sure cout is flushed after Scenery::rayTrace finishes - Screen::Grid now keeps a copy of the prefix string - util.rayTrace fmt defaults to "\r j = " commit 6ab168f94799ef8c668c665d452dfa3564a128ab Author: Thibaut Paumard Date: Fri Aug 2 14:24:12 2019 +0200 Screen.C: apply PALN also for other observerKinds commit 93e49c0fef6ccdd5dc6753b00d34d33ec095c3bb Author: Thibaut Paumard Date: Thu Aug 1 13:56:29 2019 +0200 gyoto.animate: add static_screen video kind commit 964d581ded5c73c46dc11d6d5cbe3de429dae25a Author: Thibaut Paumard Date: Wed Jul 31 15:32:34 2019 +0200 doc/user_guide: document how to set observer tetrad commit 073d516079a50966cdf712e8e075111cc71a6768 Author: Thibaut Paumard Date: Tue Jul 30 16:54:55 2019 +0200 doc: update documentation on the Python modules commit e1a2779bd7e4bdc7b611cac0f5a04fe906495ba3 Author: Thibaut Paumard Date: Tue Jul 30 16:22:38 2019 +0200 doc: warn in the user guide that the Yorick plug-in should not be used The Yorick plug-in will not see new features. It's maintained for gyotoy only. commit ee82c057d2208306b33a403156a6179ff388c7cf Author: Thibaut Paumard Date: Tue Jul 30 15:50:11 2019 +0200 gyoto.animate: add NullVideoWriter, roll angle in _forward commit a46ff58d3da3f6569fc3437974e1d03681a378c9 Author: Thibaut Paumard Date: Tue Jul 30 11:54:31 2019 +0200 mk_video.C: actually include it in git commit 68024b0dabfd75c61e541ca9717ff9fdaf087fc6 Author: Thibaut Paumard Date: Tue Jul 30 11:42:48 2019 +0200 gyoto.animate: improve projection in orbiting_screen_forward commit 84a70b3fb343f69a72f83a189ee337e7bb9d8c9e Author: Thibaut Paumard Date: Mon Jul 29 17:17:25 2019 +0200 gyoto.animate: add orbiting_screen_forward commit 4b046b5bc964ff3823818555e3a62c54cccc9459 Author: Thibaut Paumard Date: Mon Jul 29 17:15:38 2019 +0200 Metric: fix bug in Generic::cartesianVelocity Was only correct in the equatorial plane commit 3ffdef6805430eef2b6f60185b51d6bf0773464a Author: Thibaut Paumard Date: Mon Jul 29 14:44:35 2019 +0200 Metric: fix projectFourVect again Previous fix was worse than original bug. Also introduce test case in python/tests commit 1e80b1de6c001d637105effd050fe51664d772df Author: Thibaut Paumard Date: Sun Jul 28 22:21:52 2019 +0200 Metric.C: remove debugging cerr commit 2337fd3ac575dddaa1271f63f5c9f5de78e581d3 Author: Thibaut Paumard Date: Sun Jul 28 19:59:18 2019 +0200 Metric: fix zamoVelocity and projectFourVect zamoVelocity should now be correct in all cases. We now take (1, 0, 0, 0) and project it onto the hyperplan orthogonal to ephi. projectFourVect had a bug and pnly worked when u2 had norm a norm of + or -1. Fixed. commit 512e484ae84dc78597791ccdcdeeee5c3f862271 Author: Thibaut Paumard Date: Fri Jul 26 22:52:28 2019 +0200 Metric: make observerTetrad work for any metric + Metric: new helper methods norm, multiplyFourVect, addFourVect, projectFourVect, GramSchmidt; renormalize fourvel in observerTetrad. + KerrBL: renormalize 4-velocity in observerTetrad commit 6dac2074a07b8d2fb47b2d674b08ef0f0ae087f4 Author: Thibaut Paumard Date: Fri Jul 26 22:51:13 2019 +0200 ThinDisk::sphericalPhi: return value between 0 and 2 pi commit 5fe2b21be1957a426a29a7fee8d09765c1a72e4b Author: Thibaut Paumard Date: Fri Jul 26 22:50:19 2019 +0200 Python: debug some methods in Worldline commit 250d256006d30bea6b6db5e74a8760093e18c4a8 Author: Thibaut Paumard Date: Fri Jul 26 22:49:35 2019 +0200 gyoto.util: add readScenery and writeObject commit 7316ec87d22a57d4dda85db79c86bda2b34cd0b3 Author: Thibaut Paumard Date: Fri Jul 26 15:37:05 2019 +0200 python: gyoto.animate.rayTraceFrame: width/height override resolution commit 214ca5466b1830cbe3f11c9f31f719fa28b91fb1 Author: Thibaut Paumard Date: Fri Jul 26 15:35:19 2019 +0200 python: new module gyoto.util containing rayTrace() rayTrace is a utility function to hide the complexity of calling Scenery.rayTrace commit 0f935bd7712502886f5999620703c8eddad0b294 Author: Thibaut Paumard Date: Thu Jul 25 14:34:11 2019 +0200 gyoto.C: allow making movies directly from the gyoto command line gyoto mk-video [options] will try to load the Python plug-in and use it to run code in the gyoto.animate module. commit 7f3649ebea23be6d38a40eca656732a39714d667 Author: Thibaut Paumard Date: Wed Jul 24 15:03:08 2019 +0200 animate.py: add PyAVVideoWriter, add cmap option commit c34397fce9d01c2bb5bacde0373152aa319bcfee Author: Thibaut Paumard Date: Wed Jul 24 13:48:40 2019 +0200 python: call setup.py build instead of build_ext commit 83495797cbb52e50617cb34ca2263db39ff46bf9 Author: Thibaut Paumard Date: Wed Jul 24 12:34:28 2019 +0200 Screen: observerkind is now stored internally as an unsigned int commit e4c077a0eeeca6064e33ef527ab1a3dcc5c2af0a Author: Thibaut Paumard Date: Wed Jul 24 12:33:52 2019 +0200 ThinDisk: add VelocityKind property to choose between Keplerian and ZAMO commit 7202aced515b5e4eaa505a55c7bdcb58ef075e4a Author: Thibaut Paumard Date: Wed Jul 24 10:47:53 2019 +0200 Metric: add normalizeFourVel Also fix a bug with normalization in Screen commit 6741faf27ea4e4d02c4768e2c11ffb6e754213ac Author: Thibaut Paumard Date: Tue Jul 23 20:35:32 2019 +0200 animate.py: pass nframes to func commit e7a5e281b402f71a96bf46ee438355834ad508a2 Author: Thibaut Paumard Date: Tue Jul 23 16:06:35 2019 +0200 Astrobj: allow changing deltaMax inside rMax commit facb69c9d1d16b018b5a8f84d686e17c5f5e1899 Author: Thibaut Paumard Date: Mon Jul 22 21:49:17 2019 +0200 animate.py: add growing mass, change rin to 0 commit 6a5d56304ea35d42abf816fec4263ae8bdbf1c0c Author: Thibaut Paumard Date: Fri Jul 19 17:16:46 2019 +0200 Keep track of proper time in integration * Worldline: + New member tau_ with accessor get_tau; + xStore take additional argument tau; + Methods that take time as argument take new argument 'proper': various versions of getCoord, xFill. * Worldline::IntegState: + nextStep takes additionnal parameter tau and updates it (not implemented for Legacy integrator). * Metric::Generic: + renormalize fourvel in observerTetrad as it may now come from an integration to later be able to check orthonormality of the tetrad + turn orthonormality check from error to warning. * Photon: + integrate and store affine parameter in hit. commit d8bd05b2c85b2a1b7b5be6860500ec57f8fcfa03 Author: Thibaut Paumard Date: Tue Jul 16 19:37:41 2019 +0200 python: new module gyoto.animate for creating Gyoto-based movies commit f822f4dd72176daf5507b0ea1cf47c1ef87181be Author: Thibaut Paumard Date: Tue Jul 16 19:35:12 2019 +0200 bugfix: fix norm of ephi in KerrBL::observerTetrad commit d5100e96e353b1ef7f0f2cd426b37b0829fa3e66 Author: Thibaut Paumard Date: Sun Jul 14 12:08:22 2019 +0200 Support computing Screen tetrad from arbitrary velocity * Metric: + new API zamoVelocity(), default assumes null 3-velocity. + new method dualOneForm(). + new API observerTetrad(in pos, in fourvel, out screen1,2,3), default throws an Error. * KerrBL: + implement zamoVelocity(); + remove observerTetrad(obskind...); + implement observerTetrad(pos, fourvel, ...) for any fourvel. * Screen: supports two new obskinds: VelocitySpecified and FullySpecified. commit 032dcc8851fe40d62b0090c978e8bca302420c9f Author: Thibaut Paumard Date: Sat Jul 13 00:31:35 2019 +0200 Screen.C: change definition of dangle(1|2) for anglekind != spherical Older definition only works for spherical angles (at most?) This definition actually rotates the camera. commit 6f60d0318d522dbd119b803d575e27bb5afae2b3 Author: Thibaut Paumard Date: Fri Jul 12 10:06:34 2019 +0200 python: fix segfault in gyoto.lorene numpy was not properly initialized in gyoto_lorene.i commit 71501663d3d5d7baa6208ae437de82df9f3726aa Author: Thibaut Paumard Date: Thu Jul 11 21:10:46 2019 +0200 python: fix segfault in gyoto.std numpy was not properly initialized in gyoto_std.i commit 8d3a7b2c308581ff4406f519337c09c0bf317006 Author: Thibaut Paumard Date: Thu Jul 11 15:26:54 2019 +0200 python: add example-patterndisk.py commit 0f16e0cb2c8ab9bd5b96e3053b0868325403c1c7 Author: Frederic Vincent Date: Thu May 16 15:44:25 2019 +0200 Blob.C: update signature of radiativeQ commit ab742924fcb73e0234cceee38324a926d1825f89 Author: Thibaut Paumard Date: Mon May 6 11:51:19 2019 +0200 Update INSTALL.Gyoto.md with some information specific to Debian derivatives commit 652932021efef69d6266873bb03db3c0c8acb47e Author: Frederic Vincent Date: Tue Apr 16 15:57:44 2019 +0200 Website update for Picture Gallery commit 281c1619d50d538854e0e33b3cecf88d66765c06 Author: Frederic Vincent Date: Tue Apr 16 15:55:04 2019 +0200 Again website update for Picture Gallery commit feeb8b475b91a8feb3b2fd1293a7c5200f3d1c6b Author: Frederic Vincent Date: Tue Apr 16 15:51:32 2019 +0200 Website update for Picture Gallery commit a55baa2b5b2e315b466801166bfa6a59411c0965 Author: Frederic Vincent Date: Tue Apr 16 15:37:54 2019 +0200 Update website with picture gallery commit e38618af5d599b12f74f905aa40a373e12016594 Author: Frederic Vincent Date: Tue Mar 26 14:40:35 2019 +0100 FlaredDiskSynchro: adding z variation of density and temperature commit 8ea563747715c34734f2c01cb45aec9b79bb97a1 Author: Frederic Vincent Date: Fri Mar 1 16:19:15 2019 +0100 FlaredDisk: correct copy constructor for multithreading commit c8b09e7f9dc1d7fef4404f409196d1eae7b07516 Author: Frederic Vincent Date: Thu Feb 28 14:16:07 2019 +0100 GridData2D: bilinear interpolation outside time domain commit 965a467aa329d07f495302013bdf4e351b9f3e05 Author: Frederic Vincent Date: Thu Feb 28 12:09:37 2019 +0100 Adding Makefiles and configure commit d75c68b8bd521adb2af5c7aa4d2b3bc73c6a2c1e Author: Frederic Vincent Date: Thu Feb 28 11:54:10 2019 +0100 FlaredDisk: adding time translation and temperature variation commit 8b369a20483639b283060c5ef22206254318592b Author: Frederic Vincent Date: Wed Feb 27 16:40:08 2019 +0100 GridData2D: adding interpolating function commit 68a39f6e653e350f976b6c2a3126563e64304bd4 Author: Frederic Vincent Date: Fri Feb 22 09:59:24 2019 +0100 Correct Makefiles in lib commit bde487c5159375d76fb9518c36a84127bbc623f5 Author: Frederic Vincent Date: Thu Feb 21 18:11:06 2019 +0100 New class GridData2D and subclass FlaredDiskSynchrotron GridData2D: allows to deal with 2D (r,phi) data in a grid with time dependence. The class can read and write from and to FITS files with a python interface. The data are supposed to be on a regular grid in all dimensions. FlaredDiskSynchrotron: very preliminary submission of a class using GridData2D to read density and velocity from a 2D grid in the equatorial plane. The density will be analytically prescribed in the z dimension, with a specified aspect ratio z/r. The flared disk will emit optically thin synchrotron radiation. Not ready yet for doing physics. commit 3534961b0a31f2e2975e3786391dc78407cd956f Author: Thibaut Paumard Date: Tue Jan 22 14:03:23 2019 +0100 Releasing 1.3.1 commit 30a7a026c8becc7ee39338a07a25302cf01a3673 Author: Thibaut Paumard Date: Tue Jan 22 13:29:16 2019 +0100 Remove python/_*.so in clean commit 7f5884c9c6ebaa76762ed5103a6ce46453e1caa2 Author: Thibaut Paumard Date: Mon Jan 21 23:55:49 2019 +0100 Fix in ThemalBremstrahlung: return infinity upon div by zero Instead of throwing an error. Returning infinity is better here as it will correctly yield zero transmission. commit 09ccb9fb73fd491c9603a098a1a67aa3673dc5dc Author: Thibaut Paumard Date: Mon Jan 21 19:01:04 2019 +0100 Fix error message prefix in gyoto-mpi-worker commit 5a728a93932d9154bca84d3028ba295161f9c937 Author: Thibaut Paumard Date: Mon Jan 21 17:33:02 2019 +0100 New macro GYOTO_ERROR around throwError This macro prepends the error message with __FILE__:__LINE__ in __PRETTY_FUNCTION__ commit f31bec703a0170eca81ec69bd427612d92707df3 Author: Thibaut Paumard Date: Mon Jan 21 17:33:02 2019 +0100 New macro GYOTO_ERROR around throwError This macro prepends the error message with __FILE__:__LINE__ in __PRETTY_FUNCTION__ commit 0e9850d9c08f94b8cceae99562c1d57825fc225e Author: Thibaut Paumard Date: Mon Jan 21 15:05:01 2019 +0100 UniformSphere: deprecate Alpha This was a tweak to implement the same thing as integrateEmission more efficiently in a specific situation. The more generic implementation still works. commit 31caeab224aa42eb5ed1ff5f3e689aa04d2e034f Author: Thibaut Paumard Date: Sat Jan 19 13:54:10 2019 +0100 Astrobj: let emission/transmission/radiativeQ communicate The default implementations of these methods call each-other and use a private member to cache whether each method is the default implementation. transmission() has now the same signature as emission(). commit 987ebfe0b233dff3814d512831b6bb77dcdf2d62 Author: Thibaut Paumard Date: Thu Jan 17 14:07:39 2019 +0100 Fixup: make sure 'polar' compiles after merging 'master' commit 7de5ee601f1ac18e95d4f2d11414976e0937d73e Author: Thibaut Paumard Date: Wed Jan 16 11:21:46 2019 +0100 Fix bug in Python plug-in commit 96e63e15264416d84915a65de25b122e8d31c604 Author: Thibaut Paumard Date: Wed Jan 16 10:38:17 2019 +0100 Fix typos in include files commit 8ff7bbc23b12cf094439b1e6e917298856091a37 Author: Thibaut Paumard Date: Tue Jan 15 11:26:44 2019 +0100 Make branch 'stable'$ identical to 'master' commit c015e577e3a9fb0f31ea41166b4f26818341396f Author: Thibaut Paumard Date: Tue Jan 15 11:20:10 2019 +0100 Releasing 1.3.0 commit 13474592c163ba4b0786dd8c085a1f92f2eec246 Author: Thibaut Paumard Date: Tue Jan 15 10:37:59 2019 +0100 Update Yorick interface for PatternDisk The PatternDisk smeantics have changed during this release cycle. This commit updates the Yoric kinterface and test suite accordingly. commit 58b1289f5919f1761be4fd547a0343e87093b235 Author: Thibaut Paumard Date: Mon Jan 14 11:47:18 2019 +0100 Releasing 1.3.0~rc1 commit 42baab26fe1d477b9d005bfd5b4875622091921a Author: Thibaut Paumard Date: Mon Jan 14 10:43:44 2019 +0100 Fix yorick/check-patterndisk.i This version works but PatternDisk seems a little buggy. commit bb242d0e656a1b0910882b63f6099cf154d8d790 Author: Thibaut Paumard Date: Mon Jan 14 11:47:18 2019 +0100 Releasing 1.3.0~rc1 commit 42353a6513778fe7b7102f7e4f41842f520aacd0 Author: Thibaut Paumard Date: Mon Jan 14 10:43:44 2019 +0100 Fix yorick/check-patterndisk.i This version works but PatternDisk seems a little buggy. commit ee722e43e1e631cd4ba868b83638580c0bbc65ab Author: Frederic Vincent Date: Mon Jan 14 09:11:52 2019 +0100 Update check-directional-disk.i which was outdated commit ca5f3aa59e2eef83a4add0dd80270a69549a579c Author: Thibaut Paumard Date: Thu Jan 10 18:42:45 2019 +0100 Remove RadiativeQ property. RadiativeQ is now always used. commit bd034eb860ba418ef7bbe8882731056287461e5e Author: Thibaut Paumard Date: Thu Jan 10 18:07:00 2019 +0100 Fix binSpectrum, in particular for PolishDoughnut Actually update the transmission in processHitQuantities when computing only binspectrum; Add transmission() and the two vestions of emission() to PolishDoughnut as wrappers around radiativeQ(). commit f85b64c0e88ddc6ce0fa35793f714a1dad4b128f Author: Thibaut Paumard Date: Thu Jan 10 17:59:17 2019 +0100 Update doc for release 1.3.0 commit b100123de9bbdc539b105531f464cfadd2b5c20e Author: Thibaut Paumard Date: Thu Jan 10 10:22:13 2019 +0100 Fix Python test suite when LORNE support is not compiled commit 80cd58097b39d243ec29c98c619b2c8ac8941b8c Author: Thibaut Paumard Date: Thu Jan 10 10:09:46 2019 +0100 Fix lib/Makefile.in commit b7e50dccc665fa50fba90bfd8b6c63f2d7b2b965 Author: Frederic Vincent Date: Tue Jan 8 16:16:12 2019 +0100 Adding lib/Makefile.in for Blob commit d03d35fece48867997c03f87fa6fe0a4927b4a53 Author: Frederic Vincent Date: Tue Jan 8 16:03:31 2019 +0100 Add new Astrobj Blob Synchrotron-emitting optically-thin sphere in timelike orbit commit 3adaa296a9f7776a5b991f913aeee2dd13a71a0c Author: Frederic Vincent Date: Tue Jan 8 16:00:23 2019 +0100 In Jet PolishDoughnut: change name of magneticParticleEquipartitionRatio to magnetizationParameter commit cf2e95a5d5e20901b1e27b786cdf94f86b6956fd Author: Frederic Vincent Date: Mon Dec 10 16:23:42 2018 +0100 Updating example files for Jet and TorusJet commit 62f6982edf02683a2885dc0a47566db3c262e6dd Author: Frederic Vincent Date: Mon Dec 10 15:15:44 2018 +0100 Adding example and plotting tools for the torus+jet paper commit 7c222f9c41fcc9ba0f4b49ae17a6a0c3b59adba5 Author: Thibaut Paumard Date: Wed Nov 21 16:40:52 2018 +0100 python: set Kind when constructing Uniform spectrometer commit b0cd8993d588c14cd0ba06ac9dd791728b0c4237 Author: Frederic Vincent Date: Wed Nov 21 14:49:32 2018 +0100 Expose Jet in python commit 42faa914cc66880250118399202450cd594388d4 Author: Frederic Vincent Date: Tue Nov 13 16:43:46 2018 +0100 UniformSphere: adding units to times and number density commit 980916599d745daecc8ac6cd8aca24a48fff146a Author: Frederic Vincent Date: Tue Nov 13 16:42:32 2018 +0100 Jet: adding units to number density commit d2c6b3afa33b44746aac0cc0f059565caaed57d8 Author: Frederic Vincent Date: Wed Nov 7 14:11:38 2018 +0100 UniformSphere: adding hotspot machinery Allows a uniform sphere to emit optically thin kappa-distribution synchrotron at a density and temperature varying as a temporal Gaussian around some specified value commit 985596ec7c7455686e5d24c45a0532e8d1b7bd25 Author: Thibaut Paumard Date: Wed Nov 7 14:03:27 2018 +0100 Bugfix: fix rule check-lorene-mpi-clean This rule was removing the wrong files. commit 5c4bba5bdfcf69a357b722b28bcd2ba24d194fa0 Author: Thibaut Paumard Date: Wed Nov 7 12:25:55 2018 +0100 Fix GCC warnings + make sure all non-void functions always return a value in a manner that is obvious to the compiler + change python work-around to please the compiler. commit ab0272b566ffb142d52c5b926f4c27cb1fc319c9 Author: Frederic Vincent Date: Wed Nov 7 11:06:33 2018 +0100 In PolishDoughnut: add magneticParticlesEquipartitionRatio_ To be compatible with the same quantity in Jet.C for torus+jet simulation commit 398ce05af01d6cd3b8eb6f411bdbbe76345774f4 Author: Frederic Vincent Date: Wed Nov 7 11:04:03 2018 +0100 Utils.C and Jet.C: move hypergeometric function definition from Jet to Utils commit d69e102f6c43102cd2dffeb6dfd7aa946b2f21ab Author: Frederic Vincent Date: Wed Nov 7 10:18:05 2018 +0100 In lib/KappaDistributionSynchrotronSpectrum.C and lib/ThermalSynchrotronSpectrum.C: increase integration number of steps for angle-averaging commit d69fefc4eb5a96ff853bcfbcba2ae56ab5e4fb26 Author: Thibaut Paumard Date: Tue Nov 6 17:46:39 2018 +0100 Bugfix: Some lines in Scenery lacked an HAVE_MPI protection commit d0543bf2b3795147ba01b071a1cc1adf8921c0d8 Author: Thibaut Paumard Date: Fri Oct 12 13:44:29 2018 +0200 MPI: a little more info output (use -v10 to show) commit 7ae78b9563497cf62999a243fe1f7baaf2fae628 Author: Thibaut Paumard Date: Fri Oct 12 11:26:21 2018 +0200 fixup: change --with-python also in plugins/python commit 06bc28fdd99a29b15b940def5e9a5cb1b957d048 Author: Thibaut Paumard Date: Fri Oct 12 10:47:24 2018 +0200 configure.ac: improve --with-python, default to python3 It is now possible to specify the python interpreter in --with-python: ./configure --with-python=python2 ./configure --with-python=/usr/bin/python3.7 If not specified, the preference list is now: python3 python python2 python3.x ... python2.x .. commit bbf173384166bb4aa67598faa3b2eb301a576917 Author: Thibaut Paumard Date: Thu Oct 11 17:49:28 2018 +0200 Improve MPI support: gyoto can now be called like a SIMD process Also exposed in the Python interface. mpirun -np N gyoto ... now should work whatever the MPI implementation. commit 071b75ea41875e7c33ab86037784a9611cfce9fa Author: Frederic Vincent Date: Thu Oct 11 16:01:41 2018 +0200 Converters.C: adding unit in Error message commit 9d1fa3b75110b5840c9c0c075db9860c96e4f60d Author: Frederic Vincent Date: Thu Oct 11 15:50:35 2018 +0200 configure: make sure pkg-config's variables are propagate to Makefiles commit b94ec8559aa774229aacc674ff3b0d21acaf8026 Author: Thibaut Paumard Date: Wed Oct 10 12:26:22 2018 +0200 fixup (fix flint-arb being forecfully linked to) commit aeadc3303d33e7102bb60526320f68c1edc61baf Author: Thibaut Paumard Date: Wed Oct 10 12:04:19 2018 +0200 Bugfix: don't link with flint-arb when not available commit 4761a53ecfd5ce4dc59c345412e184f6b9aebbf1 Author: Thibaut Paumard Date: Thu Oct 4 17:57:05 2018 +0200 python: make Astrobj::Complex iterable commit 88e8b32eec83e01243c240fc5349d30504ed16c0 Author: Thibaut Paumard Date: Thu Oct 4 17:03:13 2018 +0200 python: extend core classes with __str__ This way print() and str() yield the XML representation of an object: \#include gyoto.core as gy sc=gy.Scenery() print(sc) string=str(sc) print(string) commit e516da5188fc407a4b8df8e04066ea9be8d74d7b Author: Thibaut Paumard Date: Thu Oct 4 12:20:30 2018 +0200 minor: fix python examples for recent Gyoto and Python developments + Gyoto::Astrobj::Complex::rMax(double) has been removed + os.execlp now need a non-empty string as second argument, provide " " instead of "" commit 71e6a5494097ec0eaefd8997469d6e638993f620 Author: Thibaut Paumard Date: Thu Oct 4 12:03:09 2018 +0200 API: changes Factory get methods * Changed API: for consistency, rename Factory::getScenery to Factory::scenery and Factory::getPhoton to Factory::photon. * Changed API: Factory::metric(), astrobj() etc. don't throw an error anymore when then XML file does not contain the relevant entity but return a NULL smartpointer instead commit 84072b3bbc2e5faf3563c8f124f2c2b636325c7f Author: Thibaut Paumard Date: Tue Oct 2 17:42:25 2018 +0200 Fixup: only include array_wrapper for Boost versions that are known to have it commit bde7eb40c1fb14ea7c6e16c3c95cef69bd427b2f Author: Thibaut Paumard Date: Tue Oct 2 15:31:55 2018 +0200 Bugfix: implement copy constructor for various spectra All spectra that have a spectrumBB_ member need to clone it in their copy constructor. commit 0b3e37d414ffb42b1d23e27e30c42283b3d7533a Author: Thibaut Paumard Date: Tue Oct 2 08:26:52 2018 +0200 fixup: also fix ldflags for arblib commit 58326b158071bce62b425363be73cb8a8cf56c55 Author: Thibaut Paumard Date: Tue Oct 2 08:24:04 2018 +0200 bugfix: wrong ldflags when not using pkg-config commit 788638e8c08957e4f9e14916ff9d90ffacc309ad Author: Thibaut Paumard Date: Tue Oct 2 08:24:04 2018 +0200 bugfix: wrong ldflags when not using pkg-config commit f608231588392b329ba5f0182f4bb02b9656be26 Author: Thibaut Paumard Date: Mon Oct 1 16:35:07 2018 +0200 configure.ac: use GYOTO_ARG_LIB for ARBLIB commit fecff0f4f0d895d5851565d614b3ef365f476d04 Author: Thibaut Paumard Date: Mon Oct 1 15:12:34 2018 +0200 configure.ac: simplify and uniformize Introduce an M4 macro (m4/gyoto.m4) for factorizing for between udunits, xerces and cfitsio. Deprecate --with-udunits-(inc|lib) in favour of --with-udunits-(headers|libs). In --with-*-(headers|lib), accept both colon-sparated paths and list of flags. commit 1a5b5c199ec65643c6f6ebae0d864599db4de3e0 Author: Thibaut Paumard Date: Sat Sep 29 07:36:04 2018 +0200 Support AEAE in addition to ARBLIB for hypergeom in Astrobj::Jet commit e096aedacca6f3c49ce1020a8f54472acb207bba Author: Thibaut Paumard Date: Thu Sep 27 17:33:17 2018 +0200 Bugfix: add using namespace std before including Michel & Stoitsov lib commit f8e56e99af2bb8c9685c2d03c560daaf3a65d288 Author: Thibaut Paumard Date: Thu Sep 27 14:55:37 2018 +0200 Remove Michel Stoitsov hypergeometric functions library and use ARBLIB instead. commit beef8559c2641d1bdf6365dbf22975d1ca416cba Author: Thibaut Paumard Date: Mon Sep 24 11:29:08 2018 +0200 Replace C++ MPI calls with their C equivalent commit 3733343050d8523a76dd292badb2e64b5478349c Author: Frederic Vincent Date: Fri Sep 21 10:42:07 2018 +0200 Typo in Standard for deltaInObj commit cfc7e79f55f556d883beb0953dbf5b3e193464e9 Author: Frederic Vincent Date: Fri Sep 21 08:42:49 2018 +0200 Standard: add deltaInObj for integration step in object commit dabd6546a1711eb3b3fe9ab14508bc691b028d9d Author: Thibaut Paumard Date: Thu Sep 20 10:19:34 2018 +0200 Fix plugins/python/configure when PKG_CONFIG_PATH is set commit 042ff579cbde0278f518819f418cd0a02dd6e592 Author: Thibaut Paumard Date: Thu Sep 20 10:17:15 2018 +0200 Support KerrKS in gyotoy commit 87df6e9e3ed97871dd2f0440cc8b654bb0ac9566 Author: Frederic Vincent Date: Fri Sep 7 10:13:10 2018 +0200 In ComplexAstrobj add rMax() commit c85a3456770c61dcda77a72a158f7da118704a69 Author: Frederic Vincent Date: Fri Jul 27 10:18:02 2018 +0200 In WolrdlineIntegState add For some reason tycho needs it. commit 7c1481c195356c47b79702f149fc12eecdd7749f Author: Frederic Vincent Date: Fri Jul 27 10:06:15 2018 +0200 Update Jet to use Kappa-distribution synchrotron commit 44e8f9b7e2173c7d26212f91ec14fa10c9aa2012 Author: Frederic Vincent Date: Fri Jul 27 10:03:56 2018 +0200 Add Kappa-distribution synchrotron radiation Kappa-distribution is a mix of thermal distribution at low Lorentz factor and power-law distribution at high Lorentz factor. The formulas are from Pandya et al., ApJ, 822, 34 (2016) commit a78115cfa0d97f2223a206107bbaa2149abe99dd Author: Frederic Vincent Date: Fri Jul 27 10:01:54 2018 +0200 Add Michel-Stoitsov code for computing hypergeometric function commit 7e85934059012dd14bf21150fde135de34790129 Author: Frederic Vincent Date: Mon Jul 16 10:27:36 2018 +0200 Thermal/PowerLaw Synchrotron: add Pandya et al. (2016) formula commit bd9aae89edff7deafbb96c675f2980742aed462c Author: Frederic Vincent Date: Mon Jul 2 10:40:15 2018 +0200 In Jet: double-sided jet; typo in velocity commit 386190d7675d21032fd1e326ec7b65f0d3a70a0f Author: Frederic Vincent Date: Wed Jun 27 18:55:31 2018 +0200 Jet: big code update and simplification commit 41d257b98224a8b81bb944ad075af0e2b5cf53e7 Author: Frederic Vincent Date: Wed Jun 27 09:53:54 2018 +0200 ThermalBrems: code cleaning and typos commit 0e8ce8612156e8e856aef8f52e80a41c5c0ffa7f Author: Frederic Vincent Date: Wed Apr 18 10:29:26 2018 +0200 Typo in webpage commit 5a7e6f04b4613b1ded4462d0618d5a807976b7e4 Author: Frederic Vincent Date: Tue Apr 17 18:26:27 2018 +0200 Important code cleaning in PatternDisk PatternDisk: implement radial interpolation for axisym grid; implement case when phi is out of phi-grid bounds; correction of bugs with rin, rout, rmax; allows grid with nphi=1 (axisym) PatternDiskBB: remove risco and all calls to Kerr; can support any metric now commit c1d0b95d6b95037398dee5f009b4b7ac7b472030 Author: Frederic Vincent Date: Tue Apr 17 18:22:29 2018 +0200 RezzollaZhidenko: implement circularVelocity commit 4f0f1a3f0ac6f0e0771866631f5afc88924cb7a5 Author: Frederic Vincent Date: Wed Apr 11 11:25:10 2018 +0200 Unable PageThorne to allow ChernSimons metric commit f4d81f6efc710cd81af6c0d2ab773c83bcb2ce84 Author: Thibaut Paumard Date: Mon Apr 9 11:40:11 2018 +0200 RezzollaZhidenko: add copy constructor and example commit 4bfc75e4f587472b622008f984175bc68a35b215 Author: Frederic Vincent Date: Thu Mar 1 11:45:15 2018 +0100 Update in Rezzolla-Zhidenko metric Correct some typos, remove diff and circularVelocity (useless), add an example xml file. commit aab64a71ce72d118f4d1fee6d3bdb04f7db2249c Author: Frederic Vincent Date: Thu Mar 1 11:43:19 2018 +0100 Add a test after calculation of r_centre_ in doughnut commit 41711610bc6eecd23ce24cb96ca364ee8bbbc051 Author: LamyFrederic <36230914+LamyFrederic@users.noreply.github.com> Date: Tue Feb 13 18:52:11 2018 +0100 Update Hayward.C Modification of getSpecificAngularMomentum() commit b2b0991b7a384071966efc2b38e588ff7f61383d Author: Frederic Vincent Date: Fri Feb 9 10:27:15 2018 +0100 Update Inu and Taunu in Doughnut and Jet Use std::expm1 for small local optical depth commit 1cb1353de2e2e07c79a066d76237ae5f91c782ae Author: Frederic Vincent Date: Thu Feb 8 19:02:56 2018 +0100 Typo in ThermalSynchrotron commit f3e25dd8e5e5007c2d90a995288619a34ef57b7d Author: Thibaut Paumard Date: Thu Feb 8 09:24:54 2018 +0100 Bugfix: Hopefully fix cgs->SI convertion for previouos commit commit a5f71b68072172365d2695a86b2c2952e3c0b0e7 Author: Thibaut Paumard Date: Thu Feb 8 08:23:19 2018 +0100 Implement order 1 integration in PolishDoughnut and Jet and use SI in spectra::radiativeQ commit 6cd1095714f840b73a2e4382eb5b478cb0fd772a Author: LamyFrederic <36230914+LamyFrederic@users.noreply.github.com> Date: Wed Feb 7 15:33:04 2018 +0100 Update GyotoHayward.h (#6) Expression of the metric + addition of references commit f17329cbd076710042f6aaf3ed1f774f7ff03f17 Author: Frederic Vincent Date: Wed Feb 7 14:12:44 2018 +0100 Update in Jet Similarly to Doughnut, compute emission in external Spectrum class commit 36eb73f98daaebe0d35b4f38368a954277f0e7f0 Author: Frederic Vincent Date: Wed Feb 7 12:35:56 2018 +0100 Major update in PolishDoughnut - remove all code relative to outdated 2012 model - remove call to getRms in angmomrinner - call to external spectra (synchro ther, synchro PL, brems), so remove all spectrum computation inside PolishDoughnut commit b906b92245cbfb0b4fe778417140191d7bd73297 Author: Frederic Vincent Date: Wed Feb 7 12:32:47 2018 +0100 Major update in Spectrum - Add ThermalSynchrotron and PowerLawSynchrotron - Add radiativeQ method to compute emission and absorption coef - Edit ThermalBresstrahlung to use a different model depending on temperature commit 3f1b16cfa51c64fedfeeb923a6e200456d1ae644 Author: Frederic Vincent Date: Wed Feb 7 12:29:08 2018 +0100 Add bessel functions in Utils Much quicker than boost implementation, and very accurate. commit 09b102b33427534a31bbb2dfdfa3ac8e59c98453 Author: Thibaut Paumard Date: Wed Feb 7 10:32:13 2018 +0100 Add astro-ph link to Hayward commit 18951e9434295596a66f05810ab962a885733cf1 Author: Thibaut Paumard Date: Tue Feb 6 10:39:48 2018 +0100 Remove Hayward::circularVelocity() and observerTetrad() which yield only Kerr approximations commit bf4b061a3bd998be33f83bfdf5b1dd56936c1c73 Author: Thibaut Paumard Date: Mon Feb 5 21:53:01 2018 +0100 Remove unsused methods from Hayward metric commit 6d067d381fbba4a5c3bf8b5efa393faf818c3073 Author: Thibaut Paumard Date: Mon Feb 5 20:15:03 2018 +0100 New Metric: Hayward commit 85b51d6cfa24db506025066fc8529563dbcfd23d Author: Thibaut Paumard Date: Wed Jan 31 17:59:25 2018 +0100 Test suite: test conservation of base vector orthogonality and norm In Python-based test suite. commit 85975855b5bad310807deb94266d09dbe177a381 Author: Thibaut Paumard Date: Wed Jan 31 17:59:12 2018 +0100 ugfix: add time-did-not-evolve check in Worldline::xFill() Same test as in Photon::hit(). commit 8d11cd22c20668155c5a6e9370599438b12a073a Author: Thibaut Paumard Date: Wed Jan 31 11:14:16 2018 +0100 Replace CutOffIneV by CutOff (in Hz) in Spectrum::PowerLaw Rationale: all Gyoto APIs should be in SI. Besides, Band in Spectrometer is in Hz by default. Cut-off frequencies should be in the same unit. The new interface supports unit, so it is still possible to use eV but also any unit convertible to Hz, m or eV. The user may replace 1 2 with 1 2 In addition, document the properties. commit 41617e97b73a831e8df15935db816fc8972af9f5 Author: Thibaut Paumard Date: Tue Jan 30 10:51:14 2018 +0100 Bugfix: make PolishDoughnut::emission() and radiativeQ() equivalent Previously emission() worked only for komissarov_==false and radiativeQ only for komissarov_==true. commit 41390244ecb74ca9942e2d65c11fb09cb166c453 Author: Thibaut Paumard Date: Tue Jan 30 00:12:24 2018 +0100 Bugfix: wrong allocated size for Inu in PolishDoughnut::integrateEmission commit 74bda170afb5721aa9caf1d73773abaf39120308 Author: Thibaut Paumard Date: Tue Jan 30 11:15:55 2018 +0100 Draft polarized radiative transfer in Astrobj::Generic and Photon Provide new interface for polarized radiative transfer (overload of radiativeQ()). The default implementation calls the unpolarized implementation to provide consistent unpolarized emission and polarization-neutral transmission. Provide new interface Photon::transfer() to both perform polarized transfer from the volume element of the emitter to the observer and accumulate the transfer function of this element into the light-ray transfer function. This draft implementation actually only treats the unpolarized case. Depending on ph -> ParallelTransport, Astrobj::Generic::processHitQuantitive() calls either this new polarized Astrobj::Generic::radiativeQ() and Photon::transfer() or use the older unpolarized implementation (calling unpolarized radiativeQ and Photon::transmit()). commit 3a15113c3fb48ae248b3554be94670ceb7da165e Author: Thibaut Paumard Date: Tue Jan 30 10:51:14 2018 +0100 Bugfix: make PolishDoughnut::emission() and radiativeQ() equivalent Previously emission() worked only for komissarov_==false and radiativeQ only for komissarov_==true. commit 4974282751a8aa3900de8c79812115d4ffc60300 Author: Thibaut Paumard Date: Tue Jan 30 09:58:33 2018 +0100 fixup: correct indices in Worldline::getCoord(double t, state_t &coord) commit 05820f1131f7e96a8393585158ad187b893ba929 Author: Thibaut Paumard Date: Tue Jan 30 00:12:24 2018 +0100 Bugfix: wrong allocated size for Inu in PolishDoughnut::integrateEmission commit ea910af29e3752e63a09bccd17ecb4f2b760a2ce Author: Thibaut Paumard Date: Mon Jan 29 13:52:37 2018 +0100 Prepare Astrobj interface for polarization * Change prototype of processHitQuantities; * Change type of photon coordinate from double[8] to state_t in all emission/transmission methods; * Make more parameters const; * Change typedefs to use a single Gyoto::state_t typedef. commit 1966012b9827462be5462edb535fd318ce288928 Author: Thibaut Paumard Date: Thu Jan 25 22:30:40 2018 +0100 Implement initialization of parallel transport Raytracing one of the STOKES quantities should perform parallel transport. commit 2f2196f18d0487dd49c2903ad71a8e8408ffe1f8 Author: Thibaut Paumard Date: Thu Jan 25 12:27:47 2018 +0100 Implement parallel transport of additional vectors commit 1d626ad19c22941210b01002d178e5bc70c64586 Author: Thibaut Paumard Date: Thu Jan 25 11:33:07 2018 +0100 Fixup: change sign of precision in assertAlmostEqual commit 634ecab4e2629861a2d17b43da872b9089f965b7 Author: Thibaut Paumard Date: Thu Jan 25 11:31:02 2018 +0100 Fixup: specify encoding in python/tests/core.py commit 69442966bac040b6d905f0099c10da268147249f Author: Frederic Vincent Date: Wed Jan 24 18:07:19 2018 +0100 Implement the polarization basis (Ephi, Etheta) in Screen The polarization basis (Ephi, Etheta, k) will be parallel-transported along the ray. Ephi and Etheta are glued to the observer's screen orientation. Also added a corresponding test in python/test/core.py to check the orthonormality of the polarization basis. commit 73e2580761ac70a772463a6ec22b8c4de6fb0193 Author: Thibaut Paumard Date: Wed Jan 24 11:33:12 2018 +0100 Implement memory allocation for parallel transport of base vectors * add ep0_ ... et3_ tables in Worldline; * implement logic to allocate/deallocate them depending on parallel_transport_; * implement parallel transport property, acessibel through e.g. XML. commit b942096fac9dac492a6f0ca212ef81143f7e2b97 Author: Thibaut Paumard Date: Wed Jan 24 10:54:55 2018 +0100 Fixup: add parantheses around the definition of compound quantities GYOTO_QUANTITY_SPECTRAL and GYOTO_QUANTITY_STOKES. commit 628026ad297aac81df74d2437452370634e28086 Author: Thibaut Paumard Date: Tue Jan 23 17:40:02 2018 +0100 Add quantities for Stokes parameters Add new constants GYOTO_QUANTITY_SPECTRUM_STOKES_Q, U and V, support them in Scenery and gyoto. Still not implemeted in processHitQuantities. commit f9ba59e19cf5d8dc581ed65714d5f1ba63878bb4 Author: Thibaut Paumard Date: Mon Jan 22 14:38:39 2018 +0100 Start implementing parallel transport of local tetrad commit 02ead454357ccdbc25c6cda8597eaeb139deaf8d Author: Frederic Vincent Date: Wed Dec 20 15:01:15 2017 +0100 Minor update in XillverReflection. Using timelampphizero in emission() commit 6765d38b27d398c1d8d5ea25b695329e18275585 Author: Frederic Vincent Date: Tue Dec 19 17:30:56 2017 +0100 Add new astrobj XillverReflection This astrobj contains two fits table. The first one gives the illumination over a thin disk as a function of r and phi, that should be computed externally for a lamp in Keplerian rotation at some radius rlamp. The second one is a direct translation of the reflection spectra computed with Javier Garcia's Xillver code, see https://hea-www.cfa.harvard.edu/~javier/xillver/. The output is the ray-traced reflection spectrum, with the self-consistent rotating lamp illumination. commit 763b6b3ac856bab0f9756be6f7c3bd7bf2eae1a5 Author: Thibaut Paumard Date: Mon Nov 20 20:31:35 2017 +0100 Support Boost >= 1.64 serialization/boost/array.hpp has been split in Boost 1.64. Load the various pieces as needed. commit c61f62e04e16878cd533a874ac012e5d19f7075d Author: Eric Gourgoulhon Date: Fri Sep 29 17:07:49 2017 +0200 Correct typo in plugins/null/README commit ff466ea3b1f446a7628c1eaf34e69d2e91b7da2c Author: Frederic Vincent Date: Thu Sep 14 16:58:23 2017 +0200 Correct typo in example-page-thorne-disk-BL-with-basis commit d81327d1f7b876cc59e8312aac0741141b40fb87 Author: Frederic Vincent Date: Mon Sep 11 19:31:51 2017 +0200 Add color-correction to BlackBody Adding the parameter colorcor_ to the BlackBody spectrum to model a color-corrected blackbody as defined in Suleimanov+11, AA 527 A139 commit 011db244f6a3fdcaf243b285d4e11061037a32dc Author: Frederic Vincent Date: Mon Sep 4 15:53:38 2017 +0200 Code cleaning and more comments in NeutroStarModelAtmosphere commit f2b4abcd16bf437d0fa4fd2169efdf15072b25b4 Author: Frederic Vincent Date: Mon Sep 4 15:23:13 2017 +0200 Expand description of FixedStar::rotating_ commit c45bf44c99861f6f9aeaa13a1ef4ff9a25348ea5 Author: Frederic Vincent Date: Mon Sep 4 15:18:26 2017 +0200 Typo in Screen copy constructor commit 067957197cc1003bba6a6ec269768b205f3568dc Author: Frederic Vincent Date: Mon Sep 4 15:10:19 2017 +0200 Update fov orientation in Screen Rename Alpha0 and Delta0 to Dangle1 and Dangle2 to be useable also in SphericalAngles Add Screen::azimuthal_fov_, the fov along the azimuthal direction in the rest frame of the observer in SphericalAngles (assumed to be 2*pi in the past). commit 1dc1531f2016d33d837065aaab2d28e2da23c2c5 Author: Frederic Vincent Date: Fri Jul 21 17:08:58 2017 +0200 Add new astrobj Jet Implement the analytical jet model of Zdziarski, Stawarz & Sikora (2017 ; in prep at the time of writing). This is a simple jet implementation that takes into account a parabolic or conical jet geometry, and computes the synchrotron radiation emitted by non-thermal electrons. commit 92da625a48200a7e4ebb9028c67763d68a3e82a7 Author: Frederic Vincent Date: Fri Jul 21 17:07:07 2017 +0200 Add new quantities in GyotoDefs.h for cgs computations. commit f741b4730b416ee849958963836131b6f375cfbe Author: Frederic Vincent Date: Tue Jul 11 17:34:17 2017 +0200 In PatternDisk/PatternDiskBB/DynamicalDisk: updating code with python interface In ThinDiskPL: code cleaning to fit today's needs commit ae8cde9acc8c14e821ab830eb3f2dcf6d4cff95d Author: Frederic Vincent Date: Wed Jun 28 12:09:04 2017 +0200 n StandardAstrobj: small bug in integration inside object commit e0f158268fff8ac756bdf7fbf8e5c079b1d287e5 Author: Frederic Vincent Date: Fri May 5 11:36:52 2017 +0200 NumericalMetricLorene and NeutronStarModelAtm: adding normal vector to surface commit fba7ca3c160bf678f21f209d27b5a9b39a838c22 Author: Thibaut Paumard Date: Thu May 4 15:31:11 2017 +0200 Worldline::getCoord() must accept NULL pointers Fix bug that would segfault in case of spherical coordinates when only some coordinates are requested. commit 4a29d45fd7fadc3fd7a4fc9eb011d39a9ffd78b8 Author: Thibaut Paumard Date: Thu May 4 15:27:33 2017 +0200 Handle case where Photon goes in and out of standard astrobj In Astrobj::Starard::Impact(), don't assume that the object is convex relative to geodesics. Check whether each section of geodesic is within the object. commit 7e4418934a19b4dbd2301293cdffd8075c5221d1 Author: Thibaut Paumard Date: Fri Apr 14 15:57:04 2017 +0200 Provide namespaces in Python Provide e.g. gyoto.astrobj to hold Astrobjs from gyoto.core, gyoto.std and gyoto.lorene, to mimic C++ organization and as a convenience for users. Same goes for gyoto.metric, gyoto.spectrum and gyoto.spectrometer. commit 680d7a9a7157619e0583f9257c23c50eb94ff49d Author: Frederic Vincent Date: Fri Apr 14 15:14:23 2017 +0200 New astrobj NeutronStarModelAtmosphere, still in development commit c5e72a4363061b5345ca946a0c6c8ab5a6a441c1 Author: Frederic Vincent Date: Fri Apr 14 14:00:51 2017 +0200 Use absolute import in python/gyoto/__init__.py Python 3 requires it. commit 955f419d891f34867a2f71c90a0795491250e981 Author: Frederic Vincent Date: Fri Apr 14 12:01:49 2017 +0200 Split NeutronStar into a base plus NeutronStarAnalyticEmission In preparation for upcoming NeutronStarModelAtmosphere. Also re-ran autoreconf. commit 40b5d2626e4e316a6faaa249fa29b200d87cbfa5 Author: Thibaut Paumard Date: Wed Apr 12 18:16:05 2017 +0200 Don't unconditionally init the registers in the Python extension The registers must be initialized only once. Loading the Python extension (gyoto.core) from within the python plug-in had the side effect of always re-initializing the registers. In addition, had some debug information in Register.C. commit 6d55fc0826daf10c877e40954b9413a40d1d4f8e Author: Thibaut Paumard Date: Wed Apr 12 17:19:53 2017 +0200 Rename the Python extensions gyoto -> gyoto.core gyoto_std -> gyoto.std gyoto_lorene -> gyoto.lorene The old names are still accessible but are deprecated and may be removed in a future release. The Python extension build system is also simplified. commit 475bae9fd3d33e00b65062f54ebe43aa47b89de5 Author: Thibaut Paumard Date: Tue Apr 11 12:00:49 2017 +0200 Load the necessary plug-ins in gyoto_std and gyoto_lorene gyoto_std.py and gyoto_lorene.py take care of calling gyoto.requirePlugin() as necessary before loading the Python bindings for each plug-in. The examples and tests have been fixed to reflect this simplification. commit 5f98133c9564a6874b3f3bb87f8562de01941476 Author: Thibaut Paumard Date: Tue Apr 11 09:36:20 2017 +0200 Add Astrobj::NeutronStar commit ed9c48d85dfc77334b25e68e55f0a03366314d08 Author: Thibaut Paumard Date: Sun Feb 5 15:29:02 2017 +0100 gyotoy: prefer x11 over wayland Gyotoy embeds an Yorick X11 window in a Gtk widget. This does not work if the Gtk window uses the Wayland backend. Use gdk_set_allowed_backends() to specify that gyotoy prefers the x11 backend. This works only if gyotoy is started stand-alone. commit 736002e7a869c8c99a86c9d6599b44e09f492f49 Author: Thibaut Paumard Date: Sun Feb 5 15:29:02 2017 +0100 gyotoy: prefer x11 over wayland Gyotoy embeds an Yorick X11 window in a Gtk widget. This does not work if the Gtk window uses the Wayland backend. Use gdk_set_allowed_backends() to specify that gyotoy prefers the x11 backend. This works only if gyotoy is started stand-alone. commit 498e42bc71a5451be5e226a2f3c9b0763d6a4bb2 Author: Thibaut Paumard Date: Mon Dec 12 14:24:15 2016 +0100 Releasing 1.2.0 commit 1561f09fa182726270c7861183354669fbdff76f Author: Thibaut Paumard Date: Mon Dec 12 12:57:47 2016 +0100 Add --version option to gyoto command-line tool commit b3052c5f8663e4b6c49256b5041bcd67a91c2d85 Author: Thibaut Paumard Date: Mon Dec 12 12:57:47 2016 +0100 Add --version option to gyoto command-line tool commit 340875ee303e950dfbd2bfd53d3b52846e2d1df5 Author: Thibaut Paumard Date: Mon Dec 12 10:45:37 2016 +0100 Support enroling MPI_COMM_WORLD in python/example-mpi.py Apply the same heuristics and algorithm as in bin/gyoto.C to support mpirun starting the worker process itself. commit 6ca591a2660e1293b559af6c1e86015d7be0bd48 Author: Thibaut Paumard Date: Mon Dec 12 10:45:37 2016 +0100 Support enroling MPI_COMM_WORLD in python/example-mpi.py Apply the same heuristics and algorithm as in bin/gyoto.C to support mpirun starting the worker process itself. commit abf51da9a8ced305f1c597cf2b9ac7d1f03f2805 Author: Thibaut Paumard Date: Sun Dec 11 20:46:35 2016 +0100 Correctly handle empty stry case in OscilTorus::emittingArea() commit 87e8567f6c9bcd263a874bc1f11811556770c276 Author: Thibaut Paumard Date: Sun Dec 11 20:46:35 2016 +0100 Correctly handle empty stry case in OscilTorus::emittingArea() commit 09a179b9d5d070c949d0969221cc4efc0bdcc989 Author: Thibaut Paumard Date: Sun Dec 11 20:08:45 2016 +0100 Remove spurious cerr commit 63632ea68aee0e6ff3d2e58d13991ce2148ece06 Author: Thibaut Paumard Date: Sun Dec 11 19:33:11 2016 +0100 Implement thread-safety declaration Thread-unsafe classes declare themselves as such, so that NThreads is ignored when multi-threading would cause erroneous results. commit b524fef7147c66ec16190b4c8f7e31adbaa1e64c Author: Thibaut Paumard Date: Sat Dec 10 20:44:57 2016 +0100 NumericalMetricalLorene is mature: not WIP anymore Stop inheriting from WIP commit 22d3e7f974b8f52dbe40b3776bdb2c90d7e9261c Author: Thibaut Paumard Date: Sat Dec 10 18:11:35 2016 +0100 Releasing 1.1.2 commit 039f3b98a6ddfa3a99470f2a9b50b9bfcabc97e3 Author: Thibaut Paumard Date: Sat Dec 10 15:53:19 2016 +0100 Change subcontractor APIs to use a vector It is now possible to specify several plugins for loading an object. Useful when a plug-in depends on another one. In XML: Plugins are loaded in order and looked into in reverse order for the class. commit 78608e5a49a349166d15b570ffcec5c9a2754571 Author: Thibaut Paumard Date: Sat Dec 10 13:15:06 2016 +0100 Store plug-in name as given by user When plu-gin name is actually a file name, loadPlugin() determines the actual plug-in name to find out the intilialization function. Nevertherless we prefer to store the file name in that case so users can load several versions of the same plug-in e.g. for testing purposes. commit 5f35070ab4371ab0829de38585b635bd3d0cf51f Author: Thibaut Paumard Date: Sat Dec 10 12:34:15 2016 +0100 Merging branch master into track-plugin commit b0413450c29b5a2fca5af1ac30c30954e23f4da8 Author: Thibaut Paumard Date: Fri Dec 9 19:18:24 2016 +0100 Rename the breathing modes in OscilTorus BreathingMinus -> Plus BreathingPlus -> Breathing commit eb117650ade102b30eae37f62f6669c366c12776 Author: Thibaut Paumard Date: Fri Dec 9 18:47:52 2016 +0100 Correct style in Deformed Torus Use an enum and strin property for perturb_kind_, rename r_center_ to c_ and Rcenter to LargeRadius like the other torii, rename Param* properties to just *. commit 9d68e18c39fb952b932390f35445ecf6d1f53d9c Author: Thibaut Paumard Date: Fri Dec 9 16:43:25 2016 +0100 New Astrobj: OscilTorus commit 4811d8dc0bcba755415ebdf03040177c2b2b36cf Author: Thibaut Paumard Date: Fri Dec 9 16:39:51 2016 +0100 New convenience macros in GyotoProperty.h GYOTO_PROPERTY_ACCESSORS_SPECIAL GYOTO_PROPERTY_ACCESSORS_GEOMETRICAL_SPECIAL GYOTO_PROPERTY_ACCESSORS_UNIT commit a187bcf6aa168acfcd1bf9c965726624668f79f6 Author: Thibaut Paumard Date: Thu Dec 8 16:59:25 2016 +0100 New Astrobj: InflateStar commit e349992c3d98a2b04563a655195760b3a55eca06 Author: Thibaut Paumard Date: Thu Dec 8 15:28:06 2016 +0100 New Astrobj: EquatorialHotSpot commit 031d97346f3e53780b59d0d3e442096749e6a1f2 Author: Thibaut Paumard Date: Thu Dec 8 15:17:17 2016 +0100 Fix memory management in DynamicalDisk Actually free all memory in the destructor and before reading new files; initialize pointers to NULL and only delete them when they are not NULL. commit ed3f2912cb667043bce77208b0d2e5d12053a04d Author: Thibaut Paumard Date: Thu Dec 8 13:05:33 2016 +0100 New Astrobj: DynamicalDiskBolometric commit b350fd5f5551aef5262e05c2ba1eab3f8d81505a Author: Thibaut Paumard Date: Thu Dec 8 12:10:35 2016 +0100 Rename property ModifCS to DzetaCS in Metric::ChernSimons commit 65af14b090e3f639a70bd8749894f1a25068856f Author: Thibaut Paumard Date: Thu Dec 8 12:05:55 2016 +0100 New Astrobj: DeformedTorus commit 925fe15b6d6c2ab0e5d4bf66d91a31b60c9a01d3 Author: Thibaut Paumard Date: Thu Dec 8 11:34:37 2016 +0100 Use AM_INIT_AUTOMAKE([foreign]) in configure.ac This way the fact that README is called README.md does not trigger an error. commit ee0010f3a53d1b7d51a49ba1f4d6f3d618fa79ea Author: Thibaut Paumard Date: Thu Dec 8 11:19:35 2016 +0100 Add link to homepage in README.md commit f4b30574e12948917f8cab75b3804f2fd8eb79fb Author: Thibaut Paumard Date: Thu Dec 8 11:16:28 2016 +0100 fixup README.md commit ca95a5d3a4c96c4033b621cb18ade42d74faee99 Author: Thibaut Paumard Date: Thu Dec 8 11:12:24 2016 +0100 Update README and rename it README.md Also fix broken links to BUGS.md in INSTALL.Gyoto.md commit 59f31b293055bef1716a4867f91daf32106e698a Author: Thibaut Paumard Date: Thu Dec 8 09:51:54 2016 +0100 Enhance user documentation about known bugs and to-do list commit 78818a4c1101a65f18a9a596823442501216e09e Author: Thibaut Paumard Date: Thu Dec 8 08:54:32 2016 +0100 NumericalMetricLorene is mature Use WIP("") in constructor to not issue the warning. With the next ABI change, we should stop inherinting from WIP entirely. commit 561872afd56cfd5bd84bd3f7f5552193649bbd25 Author: Thibaut Paumard Date: Wed Dec 7 22:27:05 2016 +0100 Allow loading plug-in from path e.g. gyoto -p./libgyoto-foo.so -l commit 5c9fdfdeca8cfcd804a85e9199cbe2a595024361 Author: Thibaut Paumard Date: Wed Dec 7 21:49:36 2016 +0100 Issue a useful message when a plug-in cannot be loaded Gyoto tries to load plug-ins from several places. When a plug-in could not be loaded, Gyoto used to issue the error message of only the last attempt, which was often "no such file or directory". With the patch, the error messages of all the attempts are displayed. commit 0c18e20e0a5978f3a9468d106b34172206d7c8d0 Author: Thibaut Paumard Date: Wed Dec 7 21:29:31 2016 +0100 New Metric: RezzollaZhidenko commit fe84646be29f65cdca27a1bf808df3935b8f527f Author: Thibaut Paumard Date: Wed Dec 7 18:39:25 2016 +0100 New Metric: ChernSimons commit 9c37464e7c317a0edd685e8bd80588a910516be0 Author: Thibaut Paumard Date: Tue Dec 6 22:43:19 2016 +0100 Support colon syntax for mpirun Support spawning gyoto-mpi-worker directly from mpirun on any MPI implementation (that supports the MIMD model), for any Gyoto interface (gyoto, Python, Yorick...). Just start the processes with something like: mpirun -np 1 : -np 8 gyoto-mpi-worker. In the process, use Scenery::mpiSpawn(-1) to use the processes available in the WORLD communicator instead of spawning new ones. 'gyoto' still needs to know that it has to use MPI parallelisation, so use of the -P option is still mandatory (except under Open MPI): mpirun -np 1 gyoto -P1 : -np 8 gyoto-mpi-worker. commit e46518508a1ffbd62f5d7bf4a16025b3929c32fd Author: Thibaut Paumard Date: Tue Dec 6 18:01:57 2016 +0100 gyoto: Support -np option in Open MPI MPI support in Gyoto has been implemented using the singleton approach, where a single processess exists at start-up and spawns its worker as needed using MPI_Comm_spawn(). With this commit, the gyoto command line tool also supports the more traditional approach where N processes are started directly by mpirun. This is only for the gyoto command-line tool (so, not for the Python or Yorick interfaces), and only for Open MPI (not e.g. MPICH). commit eeaf74670926be5a2e2e2e4db1b10745fb5caf85 Author: Thibaut Paumard Date: Fri Nov 4 11:24:04 2016 +0100 Update documentation commit 5ec7cc1587c00c1eaf0d50e96683387e04824f70 Author: Thibaut Paumard Date: Fri Nov 4 11:09:13 2016 +0100 Update INSTALL.Gyoto.md commit ea49cda36b6d6de133546fc298c80c36f2143c1b Author: Thibaut Paumard Date: Fri Nov 4 11:08:22 2016 +0100 Update INSTAL.Gyoto.md commit 153aaf51016fd471ff540dd31cdb497bfd207b3a Author: Thibaut Paumard Date: Fri Nov 4 11:04:28 2016 +0100 Update INSTALL.Gyoto and move is to INSTALL.Gyoto.md commit debdbe925d59a5c4be43d71e40200f7fd224a940 Author: Thibaut Paumard Date: Mon Oct 31 11:08:12 2016 +0100 Releasing 1.1.1 commit f4af3a5198d87ce4113a90fb7cf753b3731044ae Author: Thibaut Paumard Date: Mon Oct 31 10:02:08 2016 +0100 Update copyright years and other cosmetic changes for next release commit c28648aff060bbda5c9dce2588c8666d181fa98e Author: Thibaut Paumard Date: Sun Oct 30 10:03:30 2016 +0100 Use only major library version in GYOTO_PLUGDIR Up to know, the versioned directory for plug-ins used the full libtool versinfo, changing with each new library soname revision. From know onwards, it is only the major number, which is kept for backward-compatible changes. Users will not need to recompile their plug-ins when upgrading to a backwarsd-compatible version of Gyoto. commit 00d66f0a3279b336280240bb19a2b3b0a86c2a76 Author: Thibaut Paumard Date: Sat Oct 29 16:42:01 2016 +0200 Introduce localpkglibdir to install plug-ins - lib/Register.C: look for plug-ins in localpkglibdir; - configure.ac: determine a sensible value for localpkglibdir; - lib/gyoto.pc.in: store this information; - plugins/null: examplify how to install there safely; - doc/user_guide: document this change. commit ebb0ef13dced5c31984f166d99aa6c26390824b2 Author: Thibaut Paumard Date: Fri Oct 28 22:12:28 2016 +0200 plugins/null/configure: check for MPICXX and CXX from gyoto.pc commit aa6594aab69059bf72d38c79ee77c0a1e722d91c Author: Thibaut Paumard Date: Sat Oct 29 16:42:01 2016 +0200 Introduce localpkglibdir to install plug-ins - lib/Register.C: look for plug-ins in localpkglibdir; - configure.ac: determine a sensible value for localpkglibdir; - lib/gyoto.pc.in: store this information; - plugins/null: examplify how to install there safely; - doc/user_guide: document this change. commit 1a903a7440a529639bba80d10e9407ff40ad711c Author: Thibaut Paumard Date: Fri Oct 28 22:12:28 2016 +0200 plugins/null/configure: check for MPICXX and CXX from gyoto.pc commit 6e1c6aa8104cd11ef11982868bac63e785c3cf12 Author: Thibaut Paumard Date: Fri Oct 28 19:43:48 2016 +0200 Commit autoreconf products and update git-post-merge script (cherry picked from commit 63b5bf61f21d0e1b425795737ec1d2bd3cf570c8) Conflicts: plugins/null/aclocal.m4 commit 988ebdb08d4ba4c2d6caaf39ff5719731c3519ec Author: Thibaut Paumard Date: Fri Oct 28 19:06:49 2016 +0200 Add CXX variable to gyoto*.pc commit d6bb1a07f5f4edc01ef3696e19bb0fcf4d59e52d Author: Thibaut Paumard Date: Fri Oct 28 17:14:02 2016 +0200 plugins/null: don't use mpic++; don't use LORENE. commit 72ad9b06b6be7cbfc725ceaed04a26f551d0ed65 Author: Frédéric Vincent Date: Thu Oct 27 18:00:44 2016 +0200 Fix copy constructor of Page-Thorne disk commit a7ffea424d32afc247465c33900fe8a64f2ad93c Author: Frédéric Vincent Date: Thu Oct 27 18:00:44 2016 +0200 Fix copy constructor of Page-Thorne disk commit 63b5bf61f21d0e1b425795737ec1d2bd3cf570c8 Author: Thibaut Paumard Date: Thu Oct 27 16:21:03 2016 +0200 Commit autoreconf products and update git-post-merge script commit 4dde0a63601316839d433d4560ce15fb23c5f0c5 Author: Thibaut Paumard Date: Thu Oct 13 22:45:34 2016 +0200 Improve plug-in example in plugins/null and document it in the user manual. commit 6bbadeaa2af76014d83c99090af1271148adf49e Author: Thibaut Paumard Date: Thu Oct 13 18:15:26 2016 +0200 Add null plug-in as an example commit ece3df86a402d1c0d02d31706a344b32c32d5f88 Author: Thibaut Paumard Date: Mon Oct 3 11:27:05 2016 +0200 NEXT 2016/10/03 BUG * Yorick: actually implement `picture' painter for the matte_paint framework. Allow using any two or three-dimensional image or stack of images in the `picture' and `panorama' painters. commit 649d76dce7a90a15d55ec444a9d7b50f5868a6f8 Author: Thibaut Paumard Date: Wed Sep 28 12:21:32 2016 +0200 NEXT 2016/09/28 API * New functionality: the plug-in from which each subcontractor is registered is now tracked, so that it becomes possible to look for a subcontractor matching a specific kind and plug-in. We introduce the function Gyoto::requirePlugin() in addition to Gyoto::loadPlugin(). The subcontractor signature is changed to accept a second parameter, which breaks the API. commit 22c8c78b2388b987ee5afca27706e2d54c4a3c0a Author: Thibaut Paumard Date: Thu Sep 15 22:22:29 2016 +0200 * configure --enable-hardening now also activates -fPIE and -pie for executables commit 633157529a837b21ee38373928f6c32a75554769 Author: Thibaut Paumard Date: Thu Sep 15 18:32:01 2016 +0200 * Use setuptools also in setup_lorene.py commit acbcd37ef3a83d609d36008029c6d50e2b9e02df Author: Thibaut Paumard Date: Thu Sep 15 18:27:42 2016 +0200 * Fix typos detected by lintian commit d53a546a2bea1799cf129405e8657dfb66c20e4b Author: Thibaut Paumard Date: Mon Sep 12 19:20:28 2016 +0200 Releasing 1.1.0 commit 5f9eb5090a5734847f89fb86510aa0324ae14b85 Author: Thibaut Paumard Date: Mon Sep 12 19:10:50 2016 +0200 python: fix make check commit 18b2c623da3c8abe7c808ef6eeb850eba58f2dd5 Author: Thibaut Paumard Date: Wed Sep 7 15:10:54 2016 +0200 Make sure make check works even when built out-of-tree; Remove more files generated by "make install" in "make clean". commit f066d3f67b77fcf898e7632f71c853f7749b28b0 Author: Thibaut Paumard Date: Wed Sep 7 11:14:46 2016 +0200 Fix bug in bin/Makefile.am so that make check-*mpi works again commit 1fff8875649cfe652a88c3206e0395e7ec2ffa01 Author: Thibaut Paumard Date: Wed Sep 7 10:56:45 2016 +0200 python: use setuptools' mechanism for specifying libraries as passing them in LDFLAGS sometimes fails (LDFLAGS being before gyoto_wrap.o on the linker command line) commit 8c6328b0a5aa9cc4742b7cae6dfea1ff62a6dd2e Author: Thibaut Paumard Date: Fri Sep 2 16:20:34 2016 +0200 Add git-post-merge script commit a13256722b9354bd88cf8c373e1d1d604fb37c67 Author: Frederic Date: Thu Mar 24 18:39:51 2016 +0100 Photon.C: adding a flag to highligh the shadow region in a strong-field image commit 6d8ee111650d52a03bb341a0e195610c63153ffb Author: Frederic Date: Thu Mar 17 18:15:55 2016 +0100 PowerLawSpectrum: Adding cut-offs commit 67dc38bcaba46606f51fc62ecda177093d643603 Author: Thibaut Paumard Date: Wed Feb 10 23:08:28 2016 +0100 Hardcode last change date in the user manual and recall in README.Developpers to update it before releasing. commit 9006be3211f0daeaf32f1ff49a4b8accb1e7eb48 Author: Thibaut Paumard Date: Wed Feb 10 23:06:42 2016 +0100 Add lib/.libs to LD_LIBRARY_PATH of CHECK_CMD in bin/Makefile.am to let the test suite run through even when the libtool wrapper does not do it already. commit 4441de41ede5e6260c8fa4f0fbcf4e5702a24d74 Author: Frederic Date: Tue Jan 26 17:40:54 2016 +0100 DirectionalDisk: adding cutoff in lamp/disk frames commit 6eba7e9ab94e1d54f36403a3e68a1b0b00f86bc7 Author: Frederic Date: Mon Oct 19 12:20:56 2015 +0200 NumericalMetricLorene::setMetricSource: restoring the change of dzpuis, finally needed... commit f2a85f66db21f2269dcb063172c444c9443e4926 Author: Frederic Date: Fri Oct 16 14:44:58 2015 +0200 NumericalMetricLorene::setMetricSource: removing the change of dzpuis on Kij, needed in outdated version of astrobjs, not needed now commit 7eb378ab45c5983ee4f2282bc2275702cade212c Author: Frederic Date: Wed Sep 16 15:47:23 2015 +0200 KerrKS.C: changing condition in stopcondition commit 492b350e36cdb680323c3c5d5d59e753e2db4e36 Author: Frederic Date: Wed Sep 16 15:05:53 2015 +0200 Worldline::xFill: adding a test on the metric stop condition commit 877a717a85eb53b9a5f52d2a96443b397ea47983 Author: Thibaut Paumard Date: Fri Jul 31 14:19:37 2015 +0200 Fix memory leak in Worldline::setInitCoord Previously, setInitCoord would always reset i0_ to 0 for massive particles. This lead to memory leak when using a Star instance repeatedly for integrating backward in time. The fix consists in not changing i0_ if the Worldline is effectively reset. commit 12e57fffdc93163197c985cefe0db30ed7610cab Author: Thibaut Paumard Date: Fri Jul 31 14:12:25 2015 +0200 Fix StarTrace, broken by recent changes in Worldline Changes in constness of array parameters in virtual Worldline methods were not propagated to their StarTrace implementation. commit 392a409e057437c9434df749c59ced6bee095c78 Author: Thibaut Paumard Date: Wed Jul 29 18:21:54 2015 +0200 Fix exception support in Python 3 commit f99b60e1ba31ff873207f554e5a0076cb1a9c91c Author: Thibaut Paumard Date: Wed Jul 29 18:20:47 2015 +0200 Mostly fix out-of-tree build of Python extension 'make check' requires making a symling to the test directory commit d452384477957d84c5b61181597ad1083ef29ee2 Author: Thibaut Paumard Date: Wed Jul 29 15:06:07 2015 +0200 Add debug output in Worldline::xExpand() commit 1a5aea72fbe2f53f85b09443d9d7385e221daefe Author: Thibaut Paumard Date: Wed Jul 29 15:00:55 2015 +0200 House-keeping + Fix const-ness of input arrays in Metric classes to get a nicer default Python interface + Make a virtual destructor in Functors + Fix a couple of typos and doc formatting in NulmericalMetricLorene + Add nicer Python interfaces for some Metric APIs that return an array commit 0e457b87f68d2bf565fd17ee5292d37687cf9951 Author: Thibaut Paumard Date: Wed Jul 8 21:22:28 2015 +0200 Support ARGOUT_ARRAY1 arguments for Worldline in Python commit 734fee255b3d96eebade444dd0a379d979c21471 Author: Thibaut Paumard Date: Wed Jul 8 20:47:36 2015 +0200 Worldline::setInitCoord and friends take const arguments commit cb7a7eb50abf40ac0fe0ce989072e7f9fd3fc68e Author: Thibaut Paumard Date: Tue Jul 7 13:12:24 2015 +0200 Fix retrieveing PALN, Argument and Inclination with unit Setting has always been correct. Retrieving was applying conversion from unit to radians instead of the reverse. commit 3979b28c8286998ba5ba6ba0c09e8a7a0c33a52f Author: Thibaut Paumard Date: Mon Jul 6 14:58:54 2015 +0200 Fix FTBFS when NumPy headers are in odd directories commit 1fe99f451a04f70824d0a58bb0cc0cc5ed0bfaaf Author: Thibaut Paumard Date: Mon Jul 6 14:57:35 2015 +0200 Fix FTBFS with some compilers due to implicit narrowing conversion commit 65de725cf92b249483a5b298a9f238ea38a344ce Author: Thibaut Paumard Date: Mon Jul 6 14:56:26 2015 +0200 Start unit testing of Metric un Python and fix Python example commit cbc00e903baf43e5e3c17258b7f343caf9bdeeb9 Author: Thibaut Paumard Date: Mon Jul 6 14:55:06 2015 +0200 Fix compiler warning concerning ambiguous alse statement in KerrKS.C commit 0032899bc30066d753dc63dacfcefd47c59c8cb3 Author: Thibaut Paumard Date: Fri Jul 3 15:22:34 2015 +0200 Add Python unit tests around Property commit 16ebb312912352ec2456c6486442773be8f7e4ed Author: Thibaut Paumard Date: Fri Jul 3 15:19:36 2015 +0200 Improve documentation Fix typo in include/GyotoSpectrometer.h; add or improve Property doc strings in Worldline, Astrobj, FixedStar, KerrBL, KerrKS, Metric, Minkowski, Screen, Spectrometer, StarTrace, ThinDisk, Torus, UniformSpectrometer and UniformSphere. commit c530a42a9f6495a0013882c3e15a9893367f76bc Author: Thibaut Paumard Date: Fri Jul 3 15:17:15 2015 +0200 Add stringification macro in GyotoDefs.h commit 4b01b1d34523c7c31b4250d3cc115044beb66cf5 Author: Thibaut Paumard Date: Thu Jul 2 19:28:53 2015 +0200 Test Gyoto::Value in Python extension. Add toScreen and toSizeT, fix toVULong. commit 7ab5bd943f7d93cf8b46056aa1c6033a190e685e Author: Thibaut Paumard Date: Thu Jul 2 14:25:20 2015 +0200 Python extension: add conversion Unit -> str, add test suite commit 0200284c1bfb66ff24a248e5dd854d3af99d878f Author: Thibaut Paumard Date: Thu Jul 2 11:12:55 2015 +0200 Add test_getErrcode(self) in python/tests/test_error.py commit 190ea276ea63a974800a65d573d2eeb387cc4787 Author: Frederic Date: Thu Jul 2 11:16:42 2015 +0200 PolishDoughnut: adding computation of r_torus_outer in angmomrinner() commit e3b9013d46d5505bb31fe2380124caf041b135bb Author: Thibaut Paumard Date: Thu Jul 2 08:55:24 2015 +0200 Introduce python/gyoto_swig.h and gyoto_std_swig.h This simplifies the maintenance of Python extensions for external plug-ins: instead of hardcoding the #includes and function prototpes needed to import gyoto.i and gyoto_std.i, one can just #include the corresponding header. At some point it would be great to find how to preprocess the information directly from the .i files, if that is possible. commit 89a093351b54c6f33c69badb75eae4c3912affc1 Author: Thibaut Paumard Date: Wed Jul 1 17:14:27 2015 +0200 In Python extension, actually raise gyoto.Error exceptions throwError() in C++ code will result in gyoto.Error being raised in a catchable fashion in Python code. Test this functionality in the test suite. commit 3466428d85eac95beb6788d7cd8e3d5b33094c5c Author: Thibaut Paumard Date: Tue Jun 30 12:02:36 2015 +0200 Fix check-* targets In bin, fix check-lorene* which where recently broken. In yorick/, fix check-mpi which worked only with gyoto installed. commit 08a94afcbe14b82370c8d0c194359cdc0c3399db Author: Thibaut Paumard Date: Tue Jun 30 12:00:53 2015 +0200 Implement test suite in Python extension Use setuptools instead of distutils and start implementing a test suite using it. commit f9fda308079dcde793225c75b5c000f2c23300ba Author: Thibaut Paumard Date: Tue Jun 30 11:59:13 2015 +0200 Remove declaration of PolishDoughnut::operator=() It was never implemented and we don't intend on implementing it. commit de1cf5da65aaf7e6ceb44ca30cbcf2fd218bbb55 Author: Thibaut Paumard Date: Tue Jun 30 11:57:58 2015 +0200 Remove macro GYOTO_USE_LORENE It is useless: the base code should not behave differently depending on whether or not the lorene plug-in is compiled, as it can be compiled separately. commit 703ed2e369a10f22cd84bdf71affda90fc0e70f0 Author: Thibaut Paumard Date: Mon Jun 29 16:00:11 2015 +0200 Copy GNU INSTALL file instead of using symlink commit 5d09f067d7c00c5c6bd7a954533c2fc968088996 Author: Thibaut Paumard Date: Fri Jun 26 09:29:10 2015 +0200 Releasing 1.0.2 commit a7d75d39b03b42d195dbc5b5bc44ad4813cfe827 Author: Thibaut Paumard Date: Fri Jun 26 08:13:05 2015 +0200 Few more lines in python/example.py commit daaa062477347a09855a3e493e212e7e9fd6ffc9 Author: Thibaut Paumard Date: Thu Jun 25 22:13:24 2015 +0200 Allows passing NULL to Scenery::Subcontractor(fmp) commit 73d30a082991cfb3f515dce3116ee1988c4c6a0e Author: Thibaut Paumard Date: Thu Jun 25 19:07:42 2015 +0200 Use NumpY arrays as much as possible in Python extension: checked Worldline and Screen commit 713bba4ae0e3c4c8c15ecf0e79663897dcddbc60 Author: Thibaut Paumard Date: Wed Jun 24 20:50:38 2015 +0200 Add flared disk Python example commit 3f4224fef02464f1406cc7af1ba4ad7764bb5428 Author: Thibaut Paumard Date: Wed Jun 24 18:10:19 2015 +0200 Always check whether a link is necessary in python plugin Follow symlinks recursively. Use canonical name as plug-in nam, make symlink if differenct from basename $PYTHON. commit e08b3090bfcb4a732304c73878897d1086a3e41f Author: Thibaut Paumard Date: Wed Jun 24 17:39:22 2015 +0200 If Python module contains only one class, use it by default. commit 08b32d2a25fae966f9faad047fbdf64187ebe038 Author: Thibaut Paumard Date: Wed Jun 24 16:18:24 2015 +0200 Make InlineModule more elegant and effective for Python 3.4 commit 867dd7151c10362c43eab739e39c083fc0133171 Author: Thibaut Paumard Date: Wed Jun 24 13:56:58 2015 +0200 Support InlineModule in python2.7 plug-in commit f676e0e83a673e1df1f3ce2e22a715dc89a6ff63 Author: Thibaut Paumard Date: Tue Jun 23 15:03:43 2015 +0200 Fix make uninstall to remove the python extension commit 877c1e6becc6356cf9c616d9fc975952d777647f Author: Thibaut Paumard Date: Tue Jun 23 14:04:00 2015 +0200 Do not use versionned sonames for delopend plug-ins commit 06d6c425df78028ab32388baaefdbd4d98a4c396 Author: Thibaut Paumard Date: Mon Jun 22 18:09:01 2015 +0200 Fix CPPFLAGS for GCC 5 (add -P flag) commit 4d482e24db6b8d26f74b13b1bfd5320f2db0fb68 Author: Thibaut Paumard Date: Mon Jun 22 14:32:11 2015 +0200 Improve doxygen documentation commit 68336a864d1f8a14f70df3f7900a4baef2ab2966 Author: Thibaut Paumard Date: Mon Jun 22 11:40:42 2015 +0200 Document the python plug-in in the Gyoto manual commit ab8d0dae9e93a2057939e266034d53bf55e3b1cc Author: Thibaut Paumard Date: Mon Jun 22 10:30:28 2015 +0200 Include GyotoPython.h in the doxygen documentation commit e99cdb8496b2846ba5ab45a515aef95e33550423 Author: Thibaut Paumard Date: Sun Jun 21 21:47:35 2015 +0200 Link python plugin to default, numbered version commit 7b09d1189fa847f4c9ad2c9f036dbfc2c1d8e118 Author: Thibaut Paumard Date: Sun Jun 21 18:25:20 2015 +0200 Fix import_array call in plugin/python to compile fine with Python < 3 commit 29946aaa3317f67145545cf57b255a5e0a91e115 Author: Thibaut Paumard Date: Sun Jun 21 12:41:09 2015 +0200 Configure and build Python extension automatically commit eea0b6365b9b0ef6ac9861e5de138df22436e414 Author: Thibaut Paumard Date: Sun Jun 21 11:45:34 2015 +0200 Configure and build plugins/python automatically Pass --without-python to disable. commit 9952138c789f85308aae4b777539ded41be6f22a Author: Thibaut Paumard Date: Sat Jun 20 19:43:19 2015 +0200 Enhance documentation in GyotoPython.h commit 4e45039dfba85fdbdc136a40e0f39426bacd3dee Author: Thibaut Paumard Date: Sat Jun 20 14:40:12 2015 +0200 In python plug-in, store spherical and mass as attributes rather than items commit 154407301f45d4e7fb0345ac648cd3978ead08ba Author: Thibaut Paumard Date: Sat Jun 20 02:08:34 2015 +0200 Set `this' in Python classes (python plug-in) commit 18af369b2153ab8c975f9976e01af1d5327b2918 Author: Thibaut Paumard Date: Sat Jun 20 02:06:52 2015 +0200 Move Astrobj::Standard to the main library commit 22d6e99794f4ee8874ef8e42dd1fee517d582b9c Author: Thibaut Paumard Date: Fri Jun 19 03:04:05 2015 +0200 Add examples for Astrobj::Python::* And remove blanck characters in plugins/python/lib/ThinDisk.C commit ac832c7c053934bf60e4417bf1d85835b021d47f Author: Thibaut Paumard Date: Fri Jun 19 02:57:55 2015 +0200 Add Astrobj::Python::ThinDisk commit 6d879c0dbca7a347f2f3aa1ee46b1b5cfabc2e24 Author: Thibaut Paumard Date: Fri Jun 19 02:50:18 2015 +0200 Remove Astrobj::ThinDisk::emission, which was never called It had the wrong signature and the implementation in Generic was used. commit a69ee5e49256c2b05d8cbad9cad2a79d97e1461a Author: Thibaut Paumard Date: Fri Jun 19 02:01:56 2015 +0200 Fixup: add plugins/python/lib/Standard.C commit 8c3310b2c15ef0f8dba9ba803deb32136dd47523 Author: Thibaut Paumard Date: Fri Jun 19 01:50:20 2015 +0200 Use helper functions consistently in python plug-in commit 52fa25bb2a46f6a81a7f45bcc5af29165d318d10 Author: Thibaut Paumard Date: Fri Jun 19 01:37:49 2015 +0200 Implement Astrobj::Python::Standard commit 1915083cb82cf79b12177d48903de5267fcaf04c Author: Thibaut Paumard Date: Thu Jun 18 17:41:23 2015 +0200 Add "." to python path in libgyoto-python commit 23e74e39575bd99ce4cf216a61ed9c46fcba6aa7 Author: Thibaut Paumard Date: Thu Jun 18 17:18:40 2015 +0200 Implement Gyoto::Metric::Python, document the Python plug-in commit d9ac54ea9cc17a149bb6d5ca7dddda39b4d472b7 Author: Thibaut Paumard Date: Wed Jun 17 22:41:45 2015 +0200 Allow overloading Spectrum::operator() in python plug-in By checking whether __call__ accepts the vararg *args. commit 3d9babaf98453fab0c528d3e87e8ed44ff437f3e Author: Thibaut Paumard Date: Wed Jun 17 21:36:28 2015 +0200 Replace setParameters by __setitem__ in python plug-in Also adapt the examples to show a minimal example (BlackBody6000) and a maximal example (PowerLaw). commit 2011feb60b77ab5adecd498cece6d2d434c3b721 Author: Thibaut Paumard Date: Wed Jun 17 19:38:20 2015 +0200 In python plug-in, store __call__ reference In order to not look for it at each iteraction. Ought to be slightly faster. commit 068387ab15457ca9d36633d2a39fb8c5dd373120 Author: Thibaut Paumard Date: Wed Jun 17 18:28:04 2015 +0200 Add optional integrate method to Spectrum::Python, add examples commit b154942ce6a81d18fc29c6c20c410ccc2abbe1af Author: Thibaut Paumard Date: Wed Jun 17 12:53:38 2015 +0200 Allow versionned name for the Python plug-in E.g. if $PYTHON is python3.4, then the plug-in will also be called python3.4 (as in libgyoto-python3.4.so). This way we can build and install several versions of the plug-in, that will run in the various interpreters. Note that the plug will not run in python2.7 if compiled with python3.4. commit 0fb7f3003deafdc728609b88802bb906ed077873 Author: Thibaut Paumard Date: Wed Jun 17 12:49:31 2015 +0200 Look for second, symbol constant name for plugin initialization Look for __GyotoPluginInit in addition to __GyotoInit. This allows to contain characters not acceptables in function names, e.g. 'python3.4'. commit a6f21548c3dfa027a40b2a76a79f56334365fc0a Author: Thibaut Paumard Date: Wed Jun 17 12:25:00 2015 +0200 Make the python plug-in work with both python2.7 and 3.4 commit cf6a087e6e1e346354ddc6c37b766b843484699e Author: Thibaut Paumard Date: Wed Jun 17 04:17:29 2015 +0200 Add online documentation for Spectrum::Python commit 90a7174cb624e0704cc89a74b423b264c7448555 Author: Thibaut Paumard Date: Wed Jun 17 04:13:03 2015 +0200 Implement thread-safety in the Python plugin commit 5129d29bcf602053cd4ed8d14ad07dad5f7b8bb5 Author: Thibaut Paumard Date: Wed Jun 17 03:38:28 2015 +0200 Use a class instead of a function in Spectrum::Python commit afdea0e15f660c3e007511eeca25052fdfe7cd7d Author: Thibaut Paumard Date: Wed Jun 17 02:06:14 2015 +0200 Initial work on Python plug-in Already allows to write spectra in Python. commit 265339a2c67dfc90bbd2c167f0f9bcce944cb17f Author: Thibaut Paumard Date: Tue Jun 16 14:56:18 2015 +0200 Split INSTALL into specific INSTALL.Gyoto and generic INSTALL commit 597b22bc66564cd6c118d305290cbb2744857db5 Author: Thibaut Paumard Date: Tue Jun 16 13:01:49 2015 +0200 Fix GYOTO_PROPERTY_LONG macro and includes in Utils.C commit f0282ed61db0442d1c16c33b40b2c7b3fccce525 Author: Thibaut Paumard Date: Tue Jun 16 12:48:38 2015 +0200 Simplify setting arbitrary parameters from the command line Object::setParameter(name, content, unit) is made recursive: if name contains "::" (e.g. Astrobj::Spectrum::Temperature), the component before the first occurence of "::" (here, "Astrobj") is interpreted as a path. A property by that name in the curent object is sought. If it is found, setParameter is called on this child object with the remainder of the string (here "Spectrum::Temperature") and the other parameters unchanged (content and unit). On the command-line, replace the bunch of --TYPE-parameter options with a single --parameter option, which applies to the root (Scenery) level and uses this facility to access members in the Astrobj, Screen etc. commit b8766a3a4549e409b42663db881638b66a833223 Author: Thibaut Paumard Date: Mon Jun 15 22:20:04 2015 +0200 Do not interpret empty Mask as current directory in Screen commit 00d3c9a48696f9b63f1dc4550c6d4f4461ad73b0 Author: Thibaut Paumard Date: Mon Jun 15 22:20:04 2015 +0200 Do not interpret empty Mask as current directory in Screen commit 2675d0e1018f976b2c2d2775bfc1a4c5e5017872 Author: Thibaut Paumard Date: Mon Jun 15 22:14:24 2015 +0200 Differentiate as much as possible size_t from unsigned int commit 33c4e6440fa8bdcf580ea95e70da5c9672789a52 Author: Thibaut Paumard Date: Mon Jun 15 20:47:58 2015 +0200 Fix Screen::Subcontractor to parse Mask as a filename commit 98c978d52dc0c9f80a42b9fa5470f6001c2f7c37 Author: Thibaut Paumard Date: Mon Jun 15 20:47:58 2015 +0200 Fix Screen::Subcontractor to parse Mask as a filename commit ce80b25cb2e4683fc9baf6dd6ac9ecb1539f2b1e Author: Thibaut Paumard Date: Mon Jun 15 20:11:42 2015 +0200 Access object help from command line Add Gyoto::help() in Utils.C, expose it from gyoto.C. Document it in manpage. Also document in Yorick. commit 91e3e249a8dd888921f936f85d201f05548f8644 Author: Thibaut Paumard Date: Mon Jun 15 16:36:41 2015 +0200 Accept doc strings for all types of Properties And add help method to all objects in Yorick. commit 7d11c2ed576b3920ae3a86c445ea9dddf91d3376 Author: Thibaut Paumard Date: Mon Jun 15 09:25:12 2015 +0200 Support autodocumentation of properties Add describeProperty and help methods to Object. commit eca21878cacf3dbcb18eedba0ccf22c3d47579a3 Author: Thibaut Paumard Date: Fri Jun 12 17:03:06 2015 +0200 Issue a more usefull progress status (j = n/N) Ratonale: it was weird to have the progress indicate e.g. "128/3... 129/3... 1000/3". Now the count always progess by increment of one over the actual number of columns that will be integrated. Add Screen::Coord1dSet::index() method, display this index instead of raw "j" value. commit 33322681880e01d04449b1e3e0cb8d2070ab310c Author: Thibaut Paumard Date: Fri Jun 12 13:51:20 2015 +0200 Remove KerrKS specific integrator It has never been proven to work, contrary to the generic integrator which behaves very well with either the Legacy or Boost integrators. Remove: * SpecificIntegrator/GenericIntegrator property; * generic_integrator_ data member; * genericIntegrator accessors; * nullifyCoord, MakeCst, myrk4, mrk4_adaptive, diff, setParticleProperties methods. Add: * setParameter method, to filter out SpecificIntegrator/GenericIntegrator and warn when they are used. commit a2288b60a34c86cd97f5d09ddc0837fc45c48d70 Author: Thibaut Paumard Date: Thu Jun 11 16:25:49 2015 +0200 fenv.h functions in the Yorick plug-in * Add more functions to control the floating-point environment from Yorick. * Note in README.SIGFPE to loading a plug-in can change the floating-point environment. * More debugging in Register::init(). commit 02e025b33efdc3c908feb3eedeb40647c2989448 Author: Thibaut Paumard Date: Fri Jun 12 10:56:39 2015 +0200 Fix copyright years for KerrKS commit 32722870c929dc888d1b796fb7f37ee3a1e9774d Author: Thibaut Paumard Date: Fri Jun 12 10:56:39 2015 +0200 Fix copyright years for KerrKS commit 0f60e1b78582c05307dc6a394425b4a6e571c7df Author: Thibaut Paumard Date: Fri Jun 12 10:47:27 2015 +0200 KerrKS is mature Stop inheriting from WIP. This is an ABI-breaking change, only for master for now. commit 33dc967ffbaf0bb5c33e96731ab8ce924f976f77 Author: Thibaut Paumard Date: Fri Jun 12 10:33:36 2015 +0200 KerrKS is not WIP anymore Modify the WIP (work in progress) class constructor to not issue a warning if passed the empty string instead of a class name. Use this facility to stop issuing the warning for KerrKS, which has grown in maturity. This is an ABI-safe change. Next step is to stop inheriting from WIP, but this will break the ABI and is not for the stable branch. The warning when using the specific integrator is now severe. This is the part that really is still buggy in KerrKS. commit 238b83d61030c2f2509039cb59513e89b8c05925 Author: Thibaut Paumard Date: Fri Jun 12 10:33:36 2015 +0200 KerrKS is not WIP anymore Modify the WIP (work in progress) class constructor to not issue a warning if passed the empty string instead of a class name. Use this facility to stop issuing the warning for KerrKS, which has grown in maturity. This is an ABI-safe change. Next step is to stop inheriting from WIP, but this will break the ABI and is not for the stable branch. The warning when using the specific integrator is now severe. This is the part that really is still buggy in KerrKS. commit c5c30a9edc6234c25f3472bb6980c37ca42aaed9 Author: Thibaut Paumard Date: Thu Jun 11 16:25:49 2015 +0200 fenv.h functions in the Yorick plug-in * Add more functions to control the floating-point environment from Yorick. * Note in README.SIGFPE to loading a plug-in can change the floating-point environment. * More debugging in Register::init(). commit 0e2ef8c237ff80574e9631326f2f80f42f7709ca Author: Frederic Date: Wed Jun 10 16:08:57 2015 +0200 PolishDoughnut: Adding central_temperature_ parameter commit 17cc24485252ccef252fd6eefa9b6e5fce89d6d1 Author: Thibaut Paumard Date: Wed Jun 10 13:50:35 2015 +0200 Fix build failure when not using fenv.h commit 6cdf9242e25263e9232d7bba8680980372e17597 Author: Thibaut Paumard Date: Wed Jun 10 12:07:18 2015 +0200 Fix warnings (incl. undefined behavior) and some optimization * pass 'make CPPFLAGS="-Wall -Werror -DGYOTO_NO_DEPRECATED \ -Wno-error=literal-suffix -Wno-error=unknown-pragmas"' * some code optimization in NumericalMetricLorene commit 3fd7a08f6d2a22f996317ef14399ed4b989216fc Author: Thibaut Paumard Date: Tue Jun 9 17:32:06 2015 +0200 Update documentation and test suite + update manpage and gyoto -h + update test suite to use short options and mpirun + update copyright statement in binary commit c62b5619bc7693123ccb87c2032ec7855174bd87 Author: Thibaut Paumard Date: Tue Jun 9 12:15:54 2015 +0200 Add and/or document parameters to gyoto utility --ispec, --jspec, --astrobj|metric|scenery|screen|spectrometer-parameter, --unit, --xmlwrite commit e5dae98b13fae0b1b71ecdfbd792a5fc6713759d Author: Thibaut Paumard Date: Tue Jun 9 12:15:54 2015 +0200 Add and/or document parameters to gyoto utility --ispec, --jspec, --astrobj|metric|scenery|screen|spectrometer-parameter, --unit, --xmlwrite commit 08ca7552f739f28a4460b710661b34ca20763eb6 Author: Thibaut Paumard Date: Tue Jun 9 01:57:12 2015 +0200 Rewrite gyoto.C option parsing using optionparser.h. commit 913c7ddc07097712fbb15e7e78cf2dbcfce15518 Author: Thibaut Paumard Date: Mon Jun 8 16:34:28 2015 +0200 Document --no-sigfpe in manpage; update synopsys in usage() in bin/gyoto.C commit e188a2624a2444d796d01214686c10a70c0286a6 Author: Thibaut Paumard Date: Tue Jun 9 01:57:12 2015 +0200 Rewrite gyoto.C option parsing using optionparser.h. commit 5097acfeeec1282cf07de1211c0dcfddc988915c Author: Thibaut Paumard Date: Mon Jun 8 16:34:28 2015 +0200 Document --no-sigfpe in manpage; update synopsys in usage() in bin/gyoto.C commit 62b4bb62aa0b94b92d31841839d6c6a0cc736605 Author: Frederic Date: Mon Jun 8 16:26:32 2015 +0200 NML.C: changed computation of Keplerian angular momentum. Doughnut: adding definition of rcusp and rintorus for all cases. commit efc0f53daf24b88c8c76c1690aaefeb7ed6c2dac Author: Thibaut Paumard Date: Mon Jun 8 14:57:50 2015 +0200 Fix spurious SIGFPE + initialize all members of Value instances do avoid bad (NAN) random values; + hold FP exceptions when makeing boost stepper as make_controlled can raise. commit 7ce95331587e2951d202fa2cb1baf6ae1a3d735a Author: Thibaut Paumard Date: Mon Jun 8 14:57:50 2015 +0200 Fix spurious SIGFPE + initialize all members of Value instances do avoid bad (NAN) random values; + hold FP exceptions when makeing boost stepper as make_controlled can raise. commit d069bb5d5ab279608a5a646568c7200fe4330937 Author: Thibaut Paumard Date: Fri Jun 5 16:04:58 2015 +0200 Fix GYOTO_PROPERTY_SIZE_T to work on 32-bit architectures. On 32 bit system, size_t and unsigned double are identical but distinct types. commit 4015547ad848caa33dfbf60fa1781e485a811902 Author: Thibaut Paumard Date: Fri Jun 5 16:04:58 2015 +0200 Fix GYOTO_PROPERTY_SIZE_T to work on 32-bit architectures. On 32 bit system, size_t and unsigned double are identical but distinct types. commit a5a1ae7165e010e7cec820f974f739706d977ecc Author: Thibaut Paumard Date: Tue Jun 2 15:03:56 2015 +0200 fenv.h support: by default, enable SIGFPE exceptions. Provide mechanisms to disable it. See README.SIGFPE. commit af37c64da82edf5c43c356728372eed9b14e16b2 Author: Thibaut Paumard Date: Tue Jun 2 15:03:56 2015 +0200 fenv.h support: by default, enable SIGFPE exceptions. Provide mechanisms to disable it. See README.SIGFPE. commit cad7c2040d5d80d9fd98d1011c8fb614c6a8881f Author: Thibaut Paumard Date: Mon Jun 1 12:06:21 2015 +0200 Discourage compiling with clang in INSTALL. commit cbcdffb2048ce9a2f78718c7c9b2d69c1ef096df Author: Thibaut Paumard Date: Fri May 29 13:01:43 2015 +0200 Small improvements triggered by clang warnings commit 3cb08ede61007eeacaa057dca76589dadc7dc8da Author: Thibaut Paumard Date: Wed May 27 16:19:00 2015 +0200 Remove unconditional throwError from GyotoScreen.h commit faae244af48a65782123b0034389aca1ec79f439 Author: Thibaut Paumard Date: Wed May 27 11:34:02 2015 +0200 Releasing 1.0.1 (1984 release) + add Odele to AUTHORS + update NEWS, ChangeLog and configure*. commit 2292f1d74eaa9968ea9ec64bd00fdc150d8fe8b1 Author: Thibaut Paumard Date: Wed May 27 11:17:14 2015 +0200 Simplify python detection and add --without-python to make it possible to build Gyoto when python is installed but with wrong version. commit 041c5fc40ee736afb183d693d93bca3b5fcdc1d5 Author: Thibaut Paumard Date: Wed May 27 10:06:52 2015 +0200 python/doxy2swig.py: add 3rd clause of BSD license per request of original author commit 21dba0161760650512abd8507cfcfa7be27b5e22 Author: Thibaut Paumard Date: Wed May 27 08:45:11 2015 +0200 Fix (bin|lib)/Makefile.am to use BOOST_*_LIBS instead of hardcoding the library name. This allows compiling with MPI support under at least macports. commit 27fc03fe981bbcd3e6f919120a6b43bc6fc62a62 Author: Thibaut Paumard Date: Mon May 25 17:06:24 2015 +0200 Releasing 1.0.0 (Youhou!) + add a note about --enable-release in README + add README.Developers to remember how to make a release... + update NEWS, ChangeLog and configure.ac. commit aa035f96465a0a45dd910de47281e7652dffb44e Author: Thibaut Paumard Date: Mon May 25 15:46:10 2015 +0200 * Update python/numpy.i * Put BSD license in python/doxyfile.py * Update copyright notice in every file edited in 2015 commit ca1979527bb018d77ad40cc9749b27e8d9bd4148 Author: Thibaut Paumard Date: Sun May 24 10:23:25 2015 +0200 Clean *CFLAGS and *LDFLAGS and link always with CFITSIO which is now needed by Screen commit 603f961fba9a796cf57bd7427cdd7b504db93e3e Author: Thibaut Paumard Date: Sat May 23 13:56:25 2015 +0200 Don't .gitignore all gyoto files commit 1f40e4053f01633839dbdb6b74b3e806663fbded Author: Thibaut Paumard Date: Sat May 23 13:50:16 2015 +0200 fix spelling errors commit 752026d3bc4d4bd5c4fdf3e74c2e6c6d8170d887 Author: Thibaut Paumard Date: Sat May 23 09:31:29 2015 +0200 * clean leftover files from doxygen * use pkglibdir instead of asuming it is prefix/lib/yorick commit 11c4faa047b9eb172281c62ff366e9bf741d0831 Author: Thibaut Paumard Date: Fri May 22 12:07:06 2015 +0200 Fix Disk3D::repeatPhi() to avoid SIGFPE when nphi_ is 0 commit d50df30e31cf0c89eb51744564f145859f6b280e Author: Thibaut Paumard Date: Fri May 22 11:50:34 2015 +0200 fixup polishdoughnut warnings commit 3339bf7115e2b9769fa05bd18fd0be6b702c7d8e Author: Thibaut Paumard Date: Fri May 22 11:42:48 2015 +0200 Fix PolishDoughnut to export either Lambda or AngMomRinner to XML, but not both. commit 56a4548398a87c01e34893ed38426a8b13ff7bf9 Author: Frederic Date: Thu May 7 15:06:56 2015 +0200 PolishDOughnut: few couts forgotten commit e8ddcf706e7f80481bcf017ca356940ab86dd5b2 Author: Frederic Date: Thu May 7 15:05:09 2015 +0200 NML: adding the rico() Property read by Polish Doughnut commit 4c47e67456caafb80fff8489f639c563d352cbfa Author: Frederic Date: Thu May 7 11:53:49 2015 +0200 PolishDoughnut: adding a test such that lamnda and angmomrinner can't be defined together commit 9127af4e64a6f9296c437621a14a130d3cfd29cc Author: Frederic Date: Thu May 7 10:42:26 2015 +0200 NML: hopefully correct expression for 4D christoffels from 3+1 quantities commit 3d2021646a177981e737c8b1777ae52633f30423 Author: Frederic Date: Thu May 7 10:35:00 2015 +0200 PolishDoughnut: adding the possibility to define a doughnut by specifying the angular momentum and inner radius, so no longer limited to Roche-lobe-filling tori. commit 8efb25243c99776ed1cd49777385d20b69cf69e9 Author: Thibaut Paumard Date: Wed Apr 8 08:00:08 2015 +0200 yorick: fix bug bug in dimension calculation of impactcoords when addressing sceneray with angles commit 70b36cea4a91b1bed1f582f28312fb096d7c6112 Author: Thibaut Paumard Date: Fri Mar 27 16:53:24 2015 +0100 fixup commit c764b58ed8e4b55c4172d03080e8a3fbac43b647 Author: Thibaut Paumard Date: Fri Mar 27 16:49:37 2015 +0100 Be more specific about which part of Boost is needed in each file (we use boost::array, Boost.multiprecision, Boost.odeint, Boost.mpi) commit 17aca8b349c38a4e5ef2355422feadd781414c63 Author: Thibaut Paumard Date: Fri Mar 27 12:45:42 2015 +0100 Improve Boost.mpi detection. Slightly tuned to ObsPM cluster... commit b7511de0edd86a6c6596465673a757d1df6e253d Author: Thibaut Paumard Date: Thu Mar 26 18:16:10 2015 +0100 Fix Boost.mpi detection commit 26c95ca9f32dfb5c4627203e470c571a17000fa8 Author: Thibaut Paumard Date: Thu Mar 26 12:39:30 2015 +0100 Change impactcoords to always return the first (backwards) encounter with the object commit cba8e4e56314432dee6e0ea1a6fbc1a4fccb9dd4 Author: Thibaut Paumard Date: Wed Mar 18 13:17:12 2015 +0100 Scenery: add updatePhoton and clonePhoton(i, j) APIs to get Photon with all tuning parameters from the Scenery Photon: fix findMin to work also when time is too large commit a3b908914d273f7effb527e0f71c5d0a83fda0e3 Author: Thibaut Paumard Date: Wed Feb 18 10:28:58 2015 +0100 Fix sunradius unit, which was set to 1 meter commit 6d80547e5b7f145afddfae05bd3df3bc5b238735 Author: Thibaut Paumard Date: Tue Feb 17 16:40:10 2015 +0100 * Expose MinimumTime as a property in Worldline; * yorick: + support setting Properties in the generic way for Photon; + support setting Properties of object kind (Astrobj, Metric)... to 0. * gyotoy: make gyotoy_warning an alias to error (it was undefined). commit b79baab9367f5951d3e433bc4304cc095a3a940a Author: Frederic Date: Thu Jan 29 11:51:11 2015 +0100 NML.C: adding boson star circular velocity commit 3e45810d24fc4b3f9212d9e34b51c0bc500286b2 Author: Frederic Date: Wed Jan 21 16:44:18 2015 +0100 Adding the Disk3D to yorick test suit commit 650fe87d89e4a14a745c413683b84fe31e403d9f Author: Frederic Date: Wed Jan 21 16:24:27 2015 +0100 DynaDisk3D: adding File Property commit be07f7f26c39a452120103924f5a17f976c324c5 Author: Frederic Date: Mon Jan 19 18:12:47 2015 +0100 NumericalMetricLorene: adding 4D Christoffels commit 4783d49d394efad393ee3ffe75c2dea7e70c8384 Author: Frederic Date: Mon Jan 19 18:11:13 2015 +0100 ThinDisk: adding a trivial constant emission for simple visualization commit 5ea26ab877df2421529b5a571c4eb06fa1a99d48 Author: Thibaut Paumard Date: Thu Jan 15 11:47:20 2015 +0100 configure: look for swig3.0 as alternative for SWIG commit b3d3a31520cd9dc00d7638384ce15377c261b635 Author: Thibaut Paumard Date: Wed Jan 14 19:31:14 2015 +0100 Puthon: small adjustments (incl. ignore Photon::Refined) to compile with Swig 3.0 commit ca3d163e0780d3ad171d51ed37d07fa770fbf230 Author: Thibaut Paumard Date: Wed Jan 14 16:05:13 2015 +0100 Python: make Swig interface file language agnostic (by including NumPy lines only conditionaly) commit 42c4e894b6e7ba2d0c5f0f5a97651edab62eae69 Author: Thibaut Paumard Date: Wed Jan 14 15:52:58 2015 +0100 + Gyoto::Value: make operator bool deal with long_t and unsigned_long_t + Python: make %typemap(in) Gyoto::Value target-language-agnostic commit da505ec0da17ad3dc8507dca3261819ed1d6c74d Author: Thibaut Paumard Date: Wed Jan 14 12:52:05 2015 +0100 + Add Gyoto::Object::get/set(std::string const &property_name ...) + Gyoto::Value::operator [unsigned] long() work also if the other type of long was set + Python: * bugfix: avoid segfault when outputting a NULL SmartPointer; * new typemaps around Gyoto::Value commit 8f8a3aa5a61663848e19b8067b574a222fba52f0 Author: Thibaut Paumard Date: Tue Jan 13 13:16:44 2015 +0100 Python: make swig file a little less dependent on python commit 9832ccbf6af0d53a050ff0b9cac8cdcce458c2cd Author: Thibaut Paumard Date: Mon Jan 12 15:05:57 2015 +0100 Python: support building without boost commit e8642a125992918c08ed1569eb6fc83a16b65bc2 Author: Thibaut Paumard Date: Mon Jan 12 13:44:16 2015 +0100 Python: support out-of-tree builds commit 1cf513c3acb4a2df3b83644f08f5e3079295a186 Author: Thibaut Paumard Date: Mon Jan 12 10:59:15 2015 +0100 Python: patch gyoto_doc.i doc accomodate for renamed nested classed in Screen commit b75734f061eed2241b952e0708e0715b3b33ff6a Author: Thibaut Paumard Date: Sat Jan 10 22:42:26 2015 +0100 Python: expose GYOTO_ARRAY::operator[]() commit ad176cbeb4fea6d6079c879c6eebbaa58264955c Author: Thibaut Paumard Date: Sat Jan 10 15:20:00 2015 +0100 Python: support NumPy arrays *in addition* to low level C arrays in Coord1dSets Indices and Angles commit edeec3e193af94c5b948ce93d878022d7d01992b Author: Thibaut Paumard Date: Fri Jan 9 15:19:35 2015 +0100 Provide casting from NumPy ndarray to gyoto.array_double. All Gyoto methods take the latter as argument. commit 608982f15f0bbb2aecb91be51259c143ed6c6778 Author: Thibaut Paumard Date: Fri Jan 9 11:17:02 2015 +0100 Add typemaps for Worldline::IntegState, Astrobj::Properties and SmartPointee commit 1f85f55834b543671e4f8bb6ef41d26385951ac5 Author: Thibaut Paumard Date: Fri Jan 9 10:44:02 2015 +0100 Python: correctly support Gyoto::Quantity_t as a integer type commit aa91388eef6c4f7b0d6d77bb9f85232fec356ba8 Author: Thibaut Paumard Date: Thu Jan 8 14:43:48 2015 +0100 Add python/example-mpi.py showing how to use MPI commit 66a26bb1cf3c26f836ca98b940e7cf2bedb21dfe Author: Thibaut Paumard Date: Thu Jan 8 13:53:38 2015 +0100 Document Python extension in the user guide commit 30f655752a852dfeb6a92c4f4d3a7c98635bc535 Author: Thibaut Paumard Date: Wed Jan 7 19:58:07 2015 +0100 Python: Expose Gyoto::Property (ignore constructors) commit 3dcf970c10046d2302b90af217f8f3d0ffd4e939 Author: Thibaut Paumard Date: Wed Jan 7 17:40:19 2015 +0100 Python: + don't ignore any class (only constructors for abstract classes and some other methods) + work around a swig bug that makes "help()" fail + expose the Unit and Converters system commit 1c495fdf30f3cd973b86d8bf58c8c36feb520a88 Author: Thibaut Paumard Date: Wed Jan 7 14:47:54 2015 +0100 small tweaks in Python build-system commit e8ba9a5ebfdd7b2987213d5c468dd8e024135d2d Author: Thibaut Paumard Date: Wed Jan 7 14:01:05 2015 +0100 Python: expose normal pointers (with reference counting) rather than SmartPointers. commit afcfaef4bd1ac997186522cacbda5766d0981e7c Author: Thibaut Paumard Date: Mon Jan 5 18:07:00 2015 +0100 Check for Swig in configure, fix glitches so python extension compiles under MacOS (w/ macports) commit c84d32b4eab3d3c1a721218cd5a8329cfcd3400a Author: Thibaut Paumard Date: Mon Jan 5 15:51:45 2015 +0100 Minor fixes in Python docstring generation commit 46e73509da11e0f0ac1b52970689773ce186b4ed Author: Thibaut Paumard Date: Mon Jan 5 15:26:56 2015 +0100 Use doxygen to provide docstrings in the python bindings (based on doxy2swig) commit 78b9c99ea2c79f54a3bd045c2d9c77845ba7a959 Author: Thibaut Paumard Date: Mon Jan 5 09:56:46 2015 +0100 Install enough material to build python extensions around 3rd party Gyoto plugins commit 97601b0c1e2be46355a41c1e49fad0a7ae4bd4d7 Author: Thibaut Paumard Date: Tue Dec 30 09:18:22 2014 +0100 Add python/setup_lorene.py.in commit 8557a8fa22832152f0e70629bfada1945f38d440 Author: Thibaut Paumard Date: Mon Dec 29 12:39:44 2014 +0100 * Value: make sure only the member that was set can be retrieved. * Python: rename Properties to AstrobjProperties commit 333a61c9fc961ddf5888c701bbcda585b9f71c69 Author: Thibaut Paumard Date: Sun Dec 28 17:26:14 2014 +0100 Screen::Coord1D/2DSet destructor is now public virtual commit 4d8dd3151d84c5ee8def7c6fdc7703bf7d8f891e Author: Thibaut Paumard Date: Sun Dec 28 16:14:28 2014 +0100 + include/GyotoWorldline.h: remove prototypes for operators that were never implemented + python/: fix warnings about unkown base classes and cast operators commit 6c31bc7424062db02573da7b0f4273f95ccb9eaa Author: Thibaut Paumard Date: Sun Dec 21 20:37:50 2014 +0100 Fix operator[] to return reference in (Astrobj|Spectrometer)::Complex, use it to implemet r/w item access in Python commit e45e108aa696ba959b02af937c660437a179d5b0 Author: Thibaut Paumard Date: Sun Dec 21 16:23:39 2014 +0100 Support getting/setting element in Astrobj::Complex, including in python commit 80974d03b5a251bdb6730ce28b38469fec484f30 Author: Thibaut Paumard Date: Sun Dec 21 10:21:36 2014 +0100 Python: ignore SmartPointer::operator() to give access to T::operator() commit 1b064a9fcd21e588ead7e4f7860c72695bdab375 Author: Thibaut Paumard Date: Sat Dec 20 22:39:04 2014 +0100 Remove NumericalMetricLorene::getFileName(); complete gyoto_lorene Python extension. commit fe94dbfb9fdc278eeabed0f2e978216c55302cfd Author: Thibaut Paumard Date: Fri Dec 19 20:20:19 2014 +0100 Oups, commit gyoto_lorene.i commit 618076c72c47251ca62c2735c6ab9021e3aec754 Author: Thibaut Paumard Date: Fri Dec 19 20:18:10 2014 +0100 Python: new extension gyoto_loren (wraps only RotStar3_1 so far) commit b9f6e31e39057fcf175b112e19f79f7676b70001 Author: Thibaut Paumard Date: Fri Dec 19 16:18:37 2014 +0100 Python: add second python extension, gyoto_std, wrapping libgyoto-stdplug commit f104a3bf96f73c4ee1fb8fa15f24a931b0962b67 Author: Thibaut Paumard Date: Fri Dec 19 13:18:19 2014 +0100 Fix Screen::Bucket::Bucket to work with pixel-type Coord2dSets; more Python examples commit 478041e13458fa968d0cb964ce071dce44052c81 Author: Thibaut Paumard Date: Thu Dec 18 22:04:30 2014 +0100 Python: add some doc; examplify ray-tracing with Spectrum commit 0f27551c51a02fffebc3a4dfa3d4030bde9941f6 Author: Thibaut Paumard Date: Thu Dec 18 17:34:55 2014 +0100 Add Python example, revert spurious changes in Screen (some unconditional debug output) commit ca66c51021487fd1e7ccf39a0f09ec1a3451dd18 Author: Thibaut Paumard Date: Thu Dec 18 17:31:35 2014 +0100 Document Python interface in INSTALL commit aa5b211a11b3729bee63f39512757faa69a16108 Author: Thibaut Paumard Date: Thu Dec 18 17:20:37 2014 +0100 Python: catch Gyoto exceptions correctly commit 417b5c3e64dea8afac0ff0188b51377b0feec897 Author: Thibaut Paumard Date: Thu Dec 18 16:58:58 2014 +0100 Python: hide base classes, make "Class" a sucontractor for that class commit e35255bf64a9fa8f30838826cca3419105c8b2d5 Author: Thibaut Paumard Date: Thu Dec 18 13:15:22 2014 +0100 Python: basic (but sufficient) support for tracing intidivual geodesics commit 506d66f6aa45e3c129cc9893f700d08cec9408af Author: Thibaut Paumard Date: Wed Dec 17 19:45:08 2014 +0100 Python: set flags for dlopen in gyoto.py; wrap all Astrobj::Properties members. commit 455b96296e7974e0879c69fda662dd1c870dad8c Author: Thibaut Paumard Date: Wed Dec 17 17:10:51 2014 +0100 Build system for the Python extension commit fdde55aebd59b2011082e9ecbd36a3b1c63901ca Author: Thibaut Paumard Date: Wed Dec 17 12:52:13 2014 +0100 Python: fix Scenery interface so ray-tracing is possible. Implement a way to connect a buffer to Astrobj::intensity. commit 3f2426ba0cb206a36d2c030e46215653986cd993 Author: Thibaut Paumard Date: Tue Dec 16 18:08:23 2014 +0100 Initial attempt at Python interface commit 24a436d4ed82043a588489aab75da41416df1041 Author: Thibaut Paumard Date: Mon Dec 15 15:22:25 2014 +0100 + Bugfix: fix Star::rMax() to not SIGFPE and to compute the right thing. + Bugfix: v=Worldine::initCoord(): make sure v[4] is 0 if initial coordinate was not set. commit 6a9859c7668a51a0cf8714dbdc46888a6659b665 Author: Thibaut Paumard Date: Mon Dec 15 11:54:34 2014 +0100 Fix Scenery to ccompile correctly with --without-udunits commit 57e2d588adc6dfc0f44be8d28edacd14a2a00be2 Author: Thibaut Paumard Date: Fri Dec 12 14:48:03 2014 +0100 Yorick: support setting/getting Properties with the eval operator in all object types. commit cc2c3fdfae3cbc6ecf8d0e08b4ec43d15710c5e6 Author: Thibaut Paumard Date: Fri Dec 12 14:23:38 2014 +0100 Yorick: parse Properties in eval, only for Scenery. commit c82d2af0a41698357c4579d618560d3efb51363d Author: Thibaut Paumard Date: Thu Dec 11 22:13:34 2014 +0100 UniformSphere::deltaMax(pos): don't use operator() if pos is outside rmax_, as this can lead to extremely lon integration in case of moving Star commit 5be938b22ea54e0c8405a0ce98e110cde922ca5b Author: Frederic Date: Thu Dec 11 19:25:00 2014 +0100 Adding 3+1 metric functions necessary for PolishDoughnut commit 0f553cc2e466d78a7b2cfcb9753ef8003848b38c Author: Thibaut Paumard Date: Thu Dec 11 12:59:05 2014 +0100 More macros in Object a, Property to easily declare and define accessors. commit 4900995e52f403f006a1b88fb386e233e330ca61 Author: Thibaut Paumard Date: Wed Dec 10 16:49:42 2014 +0100 ThinDiskIronLine: don't assume coordinate system is spherical commit fb57a49ada9b85019e08a18623d76d237e28b276 Author: Thibaut Paumard Date: Wed Dec 10 16:43:18 2014 +0100 ThinDiskIronLine: Fix bug in LineFreq conversion, support unit in LineFreq and CutRadius commit 478139baf50b295eeb6265673b2c3496c82ef725 Author: Thibaut Paumard Date: Wed Dec 10 15:33:10 2014 +0100 New Property type: vector Documentation in Worldline commit fb5078b9c3c295ac72c0b1e5c76962cb269489ec Author: Thibaut Paumard Date: Tue Dec 9 17:43:19 2014 +0100 document Property and Value commit bca056121fdfa7d741fa2ef84fc8a61c1c63dda8 Author: Thibaut Paumard Date: Tue Dec 9 14:27:56 2014 +0100 Document Object class commit 4cd3a4069075c18cc440b50617c946487feadd68 Author: Thibaut Paumard Date: Tue Dec 9 11:04:16 2014 +0100 Finish converting Scenery to Object/Property commit 59c4103f87cb6e920b90ada84fa4047c9f1b8a9b Author: Thibaut Paumard Date: Mon Dec 8 10:28:18 2014 +0100 Start converting Scenery to Object/Property commit 20149de74409aa429cf07f4ba9090224ad796f43 Author: Thibaut Paumard Date: Mon Dec 8 10:13:39 2014 +0100 Object and Factory: don't create SmartPointer sections if NULL commit 8d94ccd9491ad00037c3353045675a9f704d856d Author: Thibaut Paumard Date: Sun Dec 7 18:21:06 2014 +0100 Implement Astrobj, Spectrometer and Screen as possible Value and Property. Finish converting Screen. commit 932197f354913c2b0dd27dc5208c09adbd8ec5d9 Author: Thibaut Paumard Date: Fri Dec 5 22:30:52 2014 +0100 Convert Screen to Object/Property (spectrometer remains to be done) commit 4876907c001532a7a6a2685800fc47de8d94f42e Author: Thibaut Paumard Date: Fri Dec 5 17:01:34 2014 +0100 Convert Spectrommeter::Generic and ::Uniform to Object/Property; rename Spectrometer::Generic::kind_ to kindid_; remove kind_ from Spectrum::Generic commit 6de673c39658f27fa04f75aaf53d3e185b600119 Author: Frederic Date: Fri Dec 5 15:02:40 2014 +0100 Typos in user guide commit 6abd4422798979f5474faa5524ceb4fbb800d9ee Author: Thibaut Paumard Date: Thu Dec 4 18:09:44 2014 +0100 Convert all Spectra to Object/Property commit 7a3e7857c06a6532e02895c49559016c20dfa0a7 Author: Thibaut Paumard Date: Wed Dec 3 17:04:33 2014 +0100 Convert all the remaining Astrobj classes to Object/Property mechanism commit 116d62889340f0a067f7479ce82b524b9f501aa1 Author: Thibaut Paumard Date: Tue Dec 2 15:29:50 2014 +0100 Fix bug in WorldLineIntegState, which failed to update gg_ in init() commit f3e9aef11264e4c141a05aba8acc9fb4284ccc75 Author: Thibaut Paumard Date: Tue Dec 2 15:19:23 2014 +0100 Use strtoul and strtol instead of atoi when parsing longs/unsigned longs from XML commit 020d8486c265ef169bee8d0ddaf836d22a367141 Author: Thibaut Paumard Date: Tue Dec 2 12:20:16 2014 +0100 Change Object/Property API to use arrays (with "links") rather than chained lists. Much easier to understand and to read. commit 9e0d71b4eea1926d72573245caff6999ca5d5d75 Author: Thibaut Paumard Date: Mon Dec 1 11:29:46 2014 +0100 Move Object API out of Worldline and into Star and Photon commit 3dfa0fd17208be7f95947062271ac9148763b3d1 Author: Thibaut Paumard Date: Fri Nov 28 14:57:14 2014 +0100 * Make SmartPointee not and Object, but most of its descendents. * New Value/Property type: unsigned long * Convert Worldline to Object/Property commit a3c32d0cff9cadcadf4adf97cc972dd1664a13ba Author: Thibaut Paumard Date: Thu Nov 27 21:09:12 2014 +0100 Convert Torus to Object/Property commit e843260a99b0863c828064383bb451a1836cb057 Author: Thibaut Paumard Date: Thu Nov 27 19:50:28 2014 +0100 Convert FixedStar to Object/Property commit f5659d915d3f4b462b286dbe4b24cfe2109a517c Author: Thibaut Paumard Date: Thu Nov 27 18:42:00 2014 +0100 * New Value/Property type: spectrum; * Converted UniformSphere to Object/Property metaphor commit d7912a1152d7d265381829e78a8f996f62912631 Author: Thibaut Paumard Date: Thu Nov 27 17:21:39 2014 +0100 Split GyotoObject.h and Object.C in Object, Property and Value; Move Gyoto::Property::Value to Gyoto::Value; Add Metric member to Gyoto::Value; Make metric a Property in Astrobj::Generic. commit 30a2278267e2130611faee81126582a0a3eaef1a Author: Thibaut Paumard Date: Thu Nov 27 12:05:00 2014 +0100 Simplify introspection code by using new class Property::Value commit c307c5caea29a9d21575157020ce6967fa0d0016 Author: Thibaut Paumard Date: Thu Nov 27 09:33:41 2014 +0100 Convert Astrobj::Standard to Object/Property (safetyValue) commit a6130803e3155ea5e6f28db86a0b14d84f96063c Author: Thibaut Paumard Date: Thu Nov 27 09:19:37 2014 +0100 Rename GYOTO_PROPERTY to GYOTO_OBJECT, change GYOTO_PROPERTY_FINALIZE to accept a Property* rather than a Property commit a8b849a195f85546a6179d891de7d55de7e580a6 Author: Thibaut Paumard Date: Wed Nov 26 23:09:50 2014 +0100 Bug fix in Photon::hit(), where Astrobj::Generic::Impact() was called with bogus indices commit 714d24bb9bbb90be2e875be2c9b3579654564ce0 Author: Thibaut Paumard Date: Wed Nov 26 23:02:51 2014 +0100 Convert Astrobj::Generic to Object/Property paradigm commit f4996d72f9cc03a1ab27fa6b4d6108ad246348de Author: Thibaut Paumard Date: Wed Nov 26 16:11:34 2014 +0100 New Property type: std::vector (used in NumericalMetricLorene) commit 3ab767866961fcbd5f54f304bfa057da4f26422e Author: Thibaut Paumard Date: Wed Nov 26 14:58:49 2014 +0100 Convert most of NumericalMetricLorene to the Object/Property paradigm. commit 8b7cb7e5c7b290e999abf67cbb3299ad7dd976ec Author: Thibaut Paumard Date: Wed Nov 26 09:21:40 2014 +0100 yorick: don't use a wrpper called "yorick", this confuses the build system (use yorick1 instead) commit d42c33c4bb514ecffa7816f9de62bf0fec5f94a6 Author: Thibaut Paumard Date: Tue Nov 25 17:59:43 2014 +0100 support string and filename Property types in Yorick commit e5ed94416615058394c582c560f426c611c3a688 Author: Thibaut Paumard Date: Tue Nov 25 17:44:50 2014 +0100 Add new Property types string_t and filename_t, convert KerrKS, Minkowski and RotStar3_1 to Property-based objects commit b1f25ac8408bd7c7e4acfa8b038f13c9b96fffb8 Author: Thibaut Paumard Date: Tue Nov 25 15:13:05 2014 +0100 Implmented Properties in KerrBL and Yorick commit ea26db033dfbf301f11d217ba0fb8fd62bb91d6a Author: Thibaut Paumard Date: Tue Nov 25 09:16:54 2014 +0100 Start working on introspection framework: new classes 'Object' and 'Property', properties can be set and retrieved by name. Metric::Generic converted to this framework. commit 6f7f809a06a58b304d99decacd62d5c2570949c3 Author: Thibaut Paumard Date: Fri Nov 21 14:50:11 2014 +0100 Use the integrator set in state_ when refining geodesic in Worldline::getCoord() commit ea6cb0c53cd95fed2d0421d4fdd4a83b12c7a98e Author: Thibaut Paumard Date: Fri Nov 21 11:49:41 2014 +0100 make fullPath able to interpret `pwd`/ commit 2b88bd410a3cde049512099854c270123675e2bd Author: Thibaut Paumard Date: Thu Nov 20 21:36:31 2014 +0100 remove KerrBL gg_ from PolishDoughnut commit 72e87b0e4d6c64eef8ff2826237f6c6aa7490ddf Author: Frederic Date: Thu Nov 20 17:44:07 2014 +0100 PolishDoughnut is no longer KerrBL-dependent (1) commit 0f1fc51888fbc968d5fa270224fec8ac12af840f Author: Thibaut Paumard Date: Thu Nov 20 17:19:50 2014 +0100 Distribute our own yorick/Makepkg. Out-of-tree builds uninstall is buggy in the Yorick-distributed version. commit 232eab11b9f82f29503fd548540124160bc0f155 Author: Thibaut Paumard Date: Thu Nov 20 12:55:08 2014 +0100 out-of-tree builds: 'make', 'make check', 'make check-mpi' and 'make install' all work. commit e0b58d5f40e97ee6eee1e4d6708dd232c3561a0c Author: Thibaut Paumard Date: Wed Nov 19 17:26:34 2014 +0100 implement 'make check-lorene' and 'make check-lorene-mpi' commit af0810339362462079fd66339aaca2509692b2ba Author: Thibaut Paumard Date: Wed Nov 19 16:04:47 2014 +0100 First step into checking lorene in make check commit ad1ba1329fc6174c3d5584613afa635783e3b6ad Author: Thibaut Paumard Date: Wed Nov 19 15:07:36 2014 +0100 yorick/gyoto.i: fix gyoto_painters_panorama_eval() for partial panoramas commit 9fd5a3941bd862652f93642809e9dba2dbe9a5f8 Author: Thibaut Paumard Date: Wed Nov 19 14:53:19 2014 +0100 Screen::fitsReadMask(): if file can't be openned, just issue a warning. commit bc4190910c8c2f8e6222a06c9672580d2e1da5ce Author: Thibaut Paumard Date: Wed Nov 19 14:43:31 2014 +0100 Separate MPI tests in 'make check-mpi' to avoid hanging the computer when not plugged to the network commit 2dbcf363aa2ea2487e1ca538ffeacad4a9d1a2db Author: Thibaut Paumard Date: Tue Nov 18 18:14:42 2014 +0100 Remove spurious cerr introduced in development; streamline debug output commit ead9bccc7b5b1bcd21ef8741b94295c801927be3 Author: Thibaut Paumard Date: Tue Nov 18 17:49:44 2014 +0100 Write up NumericalMetricLorene::fillElement() commit 6946b14a1c645ec324efd2276c8df1769e72feb5 Author: Thibaut Paumard Date: Tue Nov 18 16:25:15 2014 +0100 Put MPICXX in gyoto.pc, only if HAVE_MPI. Also update autoconf-generated stuff. commit 40cf1c2b9b65942fafa02259209aa92d29c2791b Author: Thibaut Paumard Date: Tue Nov 18 15:38:23 2014 +0100 New API: FactoryMessenger::parseArray(). Use it instead of direct calls to strtod everywhere. commit 12ac38e0093a24e14728883dc9a5f40bae11f03d Author: Frederic Date: Fri Nov 7 17:48:14 2014 +0100 Small error in ThermalBrems commit f1d40ddc477ee70270914e442475a34711b16882 Author: Frederic Date: Fri Nov 7 17:33:04 2014 +0100 Updating ThermalBrems commit 579960ae455c568a1678325a02198b7c8f478ebb Author: Frederic Date: Fri Nov 7 13:32:32 2014 +0100 Adding Thermal Bremsstrahlung spectrum commit 409df1d00db643a9b9c0bd9aa7bad3ef33c313f3 Author: Thibaut Paumard Date: Thu Nov 6 17:17:01 2014 +0100 Changed the anglekind API and "Rectilinear" option, better suited for photo-realistic ray-tracing. commit b708cf11be0d6bcf76d356ac824a90bb3e87a7d9 Author: Thibaut Paumard Date: Tue Nov 4 19:32:01 2014 +0100 exchange pitch and roll in gyoto_matte_paint commit 185edcb99782a5ed0138a3ca4a53966245403a8f Author: Thibaut Paumard Date: Tue Nov 4 18:35:04 2014 +0100 put most of the matte_painting machinery in gyoto.i commit d0d9f0540ffe7af9ff98d415e83d206169e04543 Author: Thibaut Paumard Date: Sat Nov 1 18:14:52 2014 +0100 yorick: new example script "matte-painting.i" commit eb6b70cec3421fdb47bafcc6ddd83f7a3027070e Author: Thibaut Paumard Date: Sat Nov 1 17:56:55 2014 +0100 yorick: expose Metric::coordKind() commit 72464f30fe3113a3f187e675e7a71bfa30113e5b Author: Thibaut Paumard Date: Sat Nov 1 17:51:46 2014 +0100 Only call setParameters in template subcontractors if fmp in not NULL commit c355db11137993d482295cec1838f05f530296b1 Author: Thibaut Paumard Date: Fri Oct 31 19:34:43 2014 +0100 Photon::metric() also sets the metric in the astrobj. Works also for Scenery::metric(). commit f6f711ff8201bea086fa36f4fbc1e2dd2ed39ef4 Author: Thibaut Paumard Date: Fri Oct 31 19:06:01 2014 +0100 Store coordinates of escaping photons in impactcoords commit 5835d8497e5dcf28f82cfc419e79d6577d515e0a Author: Thibaut Paumard Date: Fri Oct 31 09:44:34 2014 +0100 fix trick yo yorick/Makefile.in that's sometimes needed for linking under OSX (with clang?) commit 2a2fe9dda180ddd79392e36161ea9c417303979d Author: Thibaut Paumard Date: Thu Oct 30 12:27:11 2014 +0100 Bug fix: build yorick plug-in successfully also without MPI support commit 69522f0aad85d65531c3d30131a4af12b70c99b9 Author: Thibaut Paumard Date: Thu Oct 30 12:12:30 2014 +0100 Change SONAME depending on built-in features and by default add "-unreleased" to the SONAME. commit 9ac7d4aeaf91ff1ded73de320699bfb73da60e37 Author: Thibaut Paumard Date: Wed Oct 22 16:36:53 2014 +0200 Set an MPI error handler in Yorick (only attached to MPI_COMM_WORLD atm.) commit 9dbb7c5c9d97ef3918dbb6b565ca0ef33ceb615d Author: Thibaut Paumard Date: Wed Oct 22 16:06:39 2014 +0200 Scenery::mpiSpawn(): issue warnings when MPI is not available/not initialized/finalized commit b83fc4f4052b4fb8fc976ae01c224f9c7e7abca2 Author: Thibaut Paumard Date: Wed Oct 22 15:17:05 2014 +0200 Change GYOTO_ARRAY if Boost is not available to compile fine with C++98 (e.g. gcc-4.4) commit b52fbedb1d0973e7d75dc24fb1b10a957eb9fb09 Author: Thibaut Paumard Date: Wed Oct 22 13:17:10 2014 +0200 lib/Utils.C: #include commit 5a357b4860d007163f0c38dd17e2b20741863088 Author: Thibaut Paumard Date: Wed Oct 22 12:17:14 2014 +0200 yorick: rename gyoto.mpi* to gyoto.MPI_*, matching the normal C language name of the API. commit 6f076286911da439a75bb3bd843854464d1a10d6 Author: Frederic Date: Tue Oct 21 18:35:47 2014 +0200 NumericalMetricLorene: correcting gmunu_up_dr commit 705cd88d901a4de50d348da020082d3d1b577732 Author: Thibaut Paumard Date: Tue Oct 21 15:24:41 2014 +0200 fix format of NEWS file commit c582a2e37be6059c9cf9c90ad4428573aaadfdee Author: Thibaut Paumard Date: Tue Oct 21 15:06:52 2014 +0200 update NEWS, which was left behind when releasing 0.2.3 commit a2ddb8efe5733c8fc371b2063fef4d7a39e6de63 Author: Thibaut Paumard Date: Tue Oct 21 14:15:34 2014 +0200 Release 0.2.3 * Fix minor memory-management bug in yorick-gyoto_Scenery.C Signed-off-by: Thibaut Paumard commit 97a0e08cea0bb46c408f6d956d875fe4b2c3723d Author: Thibaut Paumard Date: Tue Oct 21 13:03:36 2014 +0200 yorick: when raytracing, support using arbitraty size arrays as indices. commit ec667993caf716fb285e7a6e427ca8ab8b9ec43e Author: Thibaut Paumard Date: Mon Oct 20 16:11:38 2014 +0200 clean gyoto-mpi-worker.*.1 (manpage copy), hide more files in .gitignore commit fb035b8ec215a6e14bd87231645c70b9bd0729ed Author: Thibaut Paumard Date: Thu Oct 16 16:15:01 2014 +0200 * New API: Screen::Coord1dSet & Coord2dSet * Change Scenery::rayTrace() API tu use a Coord2dSet instead of i/jmin/max * Make Astrobj::Properties::alloc a simple bool * Fix PATH in yorick/yorick1.in * Got rid of yorick-specific multi-thread code. * Support ray-tracing of a bunch of angle-specified directions, including in wYorick, and in parallel commit d0374b75093a82f6dfa419fac880a99ee70217cf Author: Frederic Date: Wed Oct 15 19:04:09 2014 +0200 Implementing specific moving observers for KerrBL/Minkowski. Screen: getRayCoord calls Metric::observerTetrad; new keywords in XML Metric: Metric::observerTetrad checks the normalization KerrBL and Minkowski: observerTetrad implements Keplerian observer KerrBL: obserTetrad implements ZAMO observer commit e790df753b30ef038308ada1170e8e5ed6121272 Author: Thibaut Paumard Date: Wed Oct 15 17:53:01 2014 +0200 * install gyoto-mpi-worker as ${bindir}/gyoto-mpi-worker.SOVERS * change dots in SOVERS to underscores * make sure MPI support build and works --without-cfitsio * add manpage for gyoto-mpi-worker.SOVERS commit 25a54daaaeb49d8ab96f972e7a8921424f44ae64 Author: Thibaut Paumard Date: Wed Oct 15 16:23:17 2014 +0200 Add yorick/check-mpi.i commit efce82c20bd798296cc4b08499b582a3ac860bcd Author: Thibaut Paumard Date: Wed Oct 15 15:03:45 2014 +0200 document MPI functionality in the user guide. commit 8d1fa3df6b40b55f236ae0d0b865b6e575c53632 Author: Thibaut Paumard Date: Wed Oct 15 14:26:37 2014 +0200 PolishDoughnut: turn cout message into debug message commit b7cb430940d7961fbb69ffcf3c749ed90de5bfc2 Author: Thibaut Paumard Date: Wed Oct 15 14:25:49 2014 +0200 MPI: give work to the workers before copying data commit feee6118168ba2ac1a4c8766dd30745909247c02 Author: Thibaut Paumard Date: Wed Oct 15 13:50:04 2014 +0200 also check that mpi was not terminated when chacking that is has been initialized commit b59317d408f3e08a5c834d64533b1890d6f01c7e Author: Thibaut Paumard Date: Wed Oct 15 13:06:05 2014 +0200 Do not run MPI_Init automatically, instead check that it has been done and fall-back to non-MPI behaviour if it has not. commit 1556512862b395ddbef9d1da056db22fbda0b1b2 Author: Frederic Date: Wed Oct 15 12:04:11 2014 +0200 Screen: add the x -> -x transformation for SphericalAngles commit 6d902aa3ff440f9543e1133bbacfb4543644707a Author: Thibaut Paumard Date: Tue Oct 14 17:59:41 2014 +0200 Better control of when MPI_Initialize() and MPI_Finalize() are called. commit 8c1a676e776387e3617c7468f17f7c361d244dfe Author: Thibaut Paumard Date: Tue Oct 14 16:19:52 2014 +0200 Support di and dj arguments, route yorick Scenery ray-tracing through Scenery::rayTrace when possible. The case that remains is when i_idx or j_idx is a list. commit 3745ef35f95051d4f52089eb7706afd8c37a9eb9 Author: Thibaut Paumard Date: Tue Oct 14 11:01:25 2014 +0200 Basic support for MPI functionality in the yorick plug-in: * mpispawn=, mpiclone=; * gyoto.Scenery_rayTrace() support was automatic; * new functions haveMPI(), havePTHREAD(). commit ec9accf5215558b315f5a7fb05773cc6d9217056 Author: Thibaut Paumard Date: Mon Oct 13 21:53:38 2014 +0200 Port to current Lorene (with namespace), remove linking against liblorenef77 commit f34c98c482c836d36fce9635b4ab276eb9732824 Author: Thibaut Paumard Date: Mon Oct 13 17:45:15 2014 +0200 add example slurm batch file (extremely basic) commit 52f654bab80cf092c318b3e1de597153abcd5371 Author: Thibaut Paumard Date: Mon Oct 13 17:09:25 2014 +0200 fix bug in MPI rayTrace (invalid write) commit f7d82e73926d276504576a8bd3114ec2d6e3a071 Author: Thibaut Paumard Date: Mon Oct 13 14:01:23 2014 +0200 add gyoto.in, needed to generate local wrapper commit 7b1e3a433b633ae92823a9b8fe11cdbbf10dc453 Author: Thibaut Paumard Date: Mon Oct 13 09:12:08 2014 +0200 * rename Scenery::is_worker to am_worker * give raytrace task earlier in Scenery::raytrace() * merge workers and manager into a team, use broadcast instead of P2P whenever appropriate commit bb16b57f3f3175c267fd2378a3ed78603d644bac Author: Thibaut Paumard Date: Mon Oct 13 09:06:59 2014 +0200 MPI: broadcast XML data instead of sequential send commit 4ebc4d5eed25ad1f9e52368a61e54dd77dd69557 Author: Thibaut Paumard Date: Sun Oct 12 20:19:07 2014 +0200 * provide wrapper script directly in the root of the source directory (sets $PATH) * update man page * accept (but ignore) --nprocesses when gyoto was built without MPI commit 92b56464dfba00e5c025d752a9f18c65db5e928c Author: Thibaut Paumard Date: Sun Oct 12 16:27:08 2014 +0200 gyoto executable supports --nprocesses option; fill PolishDoughnut::fillElement commit d935adb36db5ac409692f0b5585ae6c97d35a15a Author: Thibaut Paumard Date: Sun Oct 12 12:18:34 2014 +0200 Better detection and error handling of MPI prerequisites commit 5c5313403eb2bd214c934c2f7defa753395b3f31 Author: Thibaut Paumard Date: Sat Oct 11 23:25:52 2014 +0200 Document MPI dependencies in INSTALL commit b27967a8590b6bf15f0dd53f7d753aaaf83571a3 Author: Thibaut Paumard Date: Sat Oct 11 18:20:20 2014 +0200 MPI: install gyoto-mpi-worker in ${soversdir} commit 5865d2bc68ac6f5992be80b1737a208763a8c1b1 Author: Thibaut Paumard Date: Sat Oct 11 16:37:06 2014 +0200 MPI: compile (and run) fine with and without MPI commit 924eaad2df7b5e9a5e6039e69ec3a255253fa66e Author: Thibaut Paumard Date: Sat Oct 11 13:20:49 2014 +0200 MPI: support computing impactcoords commit 82a24f08b062eac91741703d1bda199c681788e9 Author: Thibaut Paumard Date: Sat Oct 11 12:53:11 2014 +0200 MPI: Get requested quantities from data pointer instead of Scenery. commit ab278de34b78e5f80db2b0fa4a6567a9fe122e15 Author: Thibaut Paumard Date: Sat Oct 11 12:39:25 2014 +0200 Add typecast from Astrobj::Properties to Quantity_t commit 4fe110b735e93d6dee4afc4020b2613f04f1903e Author: Thibaut Paumard Date: Fri Oct 10 20:54:52 2014 +0200 MPI: support using provided impactcoords commit 405957cad35d8adc662b01862c0c90b8e364381e Author: Thibaut Paumard Date: Fri Oct 10 17:21:38 2014 +0200 MPI: support all the quantities except impactcoords commit 2e4f125ce57e1e746c79ae78687ba1b0e3bb76dc Author: Thibaut Paumard Date: Fri Oct 10 17:02:17 2014 +0200 MPI: works as long as gyoto-mpi-worker is in the PATH, which is the case by default. commit 9020a896378525685268cb77691a390233fdfb5f Author: Thibaut Paumard Date: Fri Oct 10 16:38:34 2014 +0200 MPI: use a buffer instead of a temporary file when cloning remotely commit 5f99e28e9df677b5097233e6a924777623750c72 Author: Thibaut Paumard Date: Fri Oct 10 16:35:38 2014 +0200 Factory: allow constructing an object from in-memory XML data. commit 2232e31bac6a76f729ff0ebe8c1207c5fd9157dc Author: Thibaut Paumard Date: Fri Oct 10 15:45:16 2014 +0200 MPI: move all the raytrace logic into Scenery::rayTrace commit 64d65a086a1238557e68b8fff0b595d5062ed538 Author: Thibaut Paumard Date: Thu Oct 9 21:20:37 2014 +0200 Allow fixed star to be "rotating", i.e. velocity is given by Metric::circularVelocity() commit 87e22922c0b79bad3ba4163476824b237a9d7e03 Author: Thibaut Paumard Date: Wed Oct 8 18:17:28 2014 +0200 MPI actually working, at least for quantity "intensity". commit bb1816d21691d2c3c5fb0f570ed5cb458ab50662 Author: Thibaut Paumard Date: Wed Oct 8 15:11:37 2014 +0200 Initial MPI version. Dummy implementation: calls are made to parallelize Scenery::rayTrace, but no raytracing actually occurs. commit f1d58b489da853785c2f75f5ec0fd5070f3116f3 Author: Frederic Date: Fri Sep 26 14:20:40 2014 +0200 Migrating omegaPattern_ and tPattern_ from DynaDisk3D to Disk3D where they belong commit 95e32fc78f9ce8018ba63164708dab89beb8696f Author: Thibaut Paumard Date: Tue Sep 23 11:05:04 2014 +0200 fix lib/gyoto-uninstalled.pc.in top hopfully support C++11 commit 8ec7314dcc217a3e56f0b312f390694daf7f1333 Author: Frederic Date: Mon Sep 22 15:04:15 2014 +0200 Astrobj: adding noredshift_ keyword commit 224c254a314a346940f61986e766c44548cb7778 Author: Frederic Date: Mon Sep 22 12:20:08 2014 +0200 DynaDisk3D: adding rotation velocity keyword and Minkowski integration commit fa5c38593c5d49d35ad6744522beb011477c57ea Author: Thibaut Paumard Date: Fri Sep 19 14:47:33 2014 +0200 Release 0.2.2 Signed-off-by: Thibaut Paumard commit 4925c06002b51049873f8a7b2581d514579931f1 Author: Frederic Date: Fri Sep 12 12:26:17 2014 +0200 PolishDoughnut: still cleaning commit c9aaafa1e7b8934ed8c7cc0bd745a9c28de1f256 Author: Frederic Date: Wed Sep 10 16:01:20 2014 +0200 PolishDoughnut: still code cleaning... commit 5c0dc7a5e9e4ecda0c780433b20055f3fcf14f45 Author: Frederic Date: Wed Sep 10 14:45:44 2014 +0200 PolishDoughnut: again code cleaning commit a82ce262e2cf389c88f21eb1441ef4a8702e89e4 Author: Frederic Date: Wed Sep 10 11:57:31 2014 +0200 PolishDoughnut: again some code cleaning commit 44a8a2536af0e51e50831c8f151432d9f83fe24f Author: Thibaut Paumard Date: Tue Sep 9 11:22:24 2014 +0200 Correct also the generic implementation of circularVelocity() Conflicts: lib/PolishDoughnut.C commit ecedb397dde61cf787c4bc2e86eea9c61e2a660e Author: Thibaut Paumard Date: Tue Sep 9 11:38:18 2014 +0200 Correct KerrBL::circularVelocity() commit f9f33402a22908cd25d1d0b71ac6a40f2317489d Author: Thibaut Paumard Date: Tue Sep 9 11:22:24 2014 +0200 Correct also the generic implementation of circularVelocity() commit 4b184b1a2332530ac51014bf3a368efd86214088 Author: Frederic Date: Tue Sep 9 10:36:50 2014 +0200 KerrBL: correct Keplerian velocity PolishDoughnut: few changes to ADAF commit f3f9823316668dabe55c21ebb4b4e781494c3dae Author: Frederic Date: Mon Sep 8 14:20:17 2014 +0200 PolishDoughnut: Adding ADAF Yuan+03 model for comparison commit 8815ed58a4ceeacf5e2ca53c6563351bcccd5f07 Author: Frederic Date: Wed Sep 3 16:22:27 2014 +0200 Code cleaning commit 65e3700fa71ad2510fb42149db7e9fb3cc630cf8 Author: Frederic Date: Wed Sep 3 16:07:55 2014 +0200 Removing DS_Store file commit cc6269f9e3c98577f6c0cad545ba1112cc872c2d Author: Frederic Date: Wed Sep 3 15:11:12 2014 +0200 Photon.C: coming back to transmission limit of 1e-6 to stop integration commit 98ddf275b8bd0e2b66952215e700f77624f21d7e Author: Frederic Date: Wed Sep 3 15:08:01 2014 +0200 Updating DirectionalDisk, adding angle averaging keyword commit cf161aee564f25a7fc193c5245d4d93ff64b773a Author: Frederic Date: Wed Jul 23 20:05:32 2014 +0200 PolishDoughnut: a bit more updates commit ed286e1ef49258408e0d6d5e3c3c7b5d4666446f Author: Frederic Date: Wed Jul 23 18:36:09 2014 +0200 Astrobj: introducing radiativeq for radiative transfer Doughnut: major update commit 2658641fbcad32179df074f80ee59671b57e914c Author: Frederic Date: Wed Jul 23 17:58:12 2014 +0200 Updating DynamicalDisk3D commit b57d70da05b3348dcaa9898851ee04bbb16eb660 Author: Thibaut Paumard Date: Tue Jul 22 13:41:16 2014 +0200 Released 0.2.1: - update version info; - New function Gyoto::atof() which supports the special values DBL_MAX, DBL_MIN, -DBL_MAX and -DBL_MIN; - Factory also outputs those special strings when needed; - increase buffer size in Factory to avoid overflow; - remove obsolete and useless files (yorick/config*, .deps...). commit 09b1de055eedadad328531a267e70ce29edee9a5 Author: Thibaut Paumard Date: Tue Jul 22 13:41:16 2014 +0200 Released 0.2.1: - update version info; - New function Gyoto::atof() which supports the special values DBL_MAX, DBL_MIN, -DBL_MAX and -DBL_MIN; - Factory also outputs those special strings when needed; - increase buffer size in Factory to avoid overflow; - remove obsolete files (yorick/config*). commit d4ea8da5e4ab740a50627c86e7c982695ba99e1b Author: Thibaut Paumard Date: Mon Jul 21 11:39:27 2014 +0200 Released 0.2.0 commit 9377e247c866095da355060bbd6d10cd79c8c28f Author: Thibaut Paumard Date: Fri Jul 18 17:38:30 2014 +0200 Prepare for releasing 0.2.0: - update build system - move ChangeLog to NEWS - output git changelog into ChangeLog - remove obsolete files (VERSION, Makefile.old, local_settings) commit e9cb96aae0fd402903a8f7b45aecdf7c68447802 Author: Thibaut Paumard Date: Fri Jul 18 15:53:40 2014 +0200 yorick/gyotoy.i: fix SAVE button label in export dialog, reorder buttons in import dialg commit fa24dd06f48dd63f00d7afcf2df45297958b224c Author: Frederic Date: Wed Jul 16 19:15:38 2014 +0200 Adding risco_ and rmb_ in NumericalMetricLorene commit bf81397b3623882047d6d38cbc57093bbdb9582b Author: Thibaut Paumard Date: Sat Jun 21 18:50:07 2014 +0200 use boost::multiprecision in Screen::getRayCoord() to avoid loosing information due to the trigonometric functions commit de3a2b3cb763e097c0170547cfeeced0bab5805f Author: Thibaut Paumard Date: Sat Jun 21 12:22:32 2014 +0200 Don't hide parameters with default values in fillElement, this way the user have almost a complete view of the parameters they might want to set when printing an object. commit 4d1829e391e02257c0fb62b3421bce17ec0572d8 Author: Thibaut Paumard Date: Sat Jun 21 11:51:48 2014 +0200 fix minor bugs in yorick check files commit f4093019883f1bccdca8e69842753875db44b34a Author: Thibaut Paumard Date: Sat Jun 21 09:48:25 2014 +0200 yorick: rename "accessor" to "closure", improve on_print method commit 840a4c5ed222a9aa8f87d3ab4c9c1567ea40943e Author: Thibaut Paumard Date: Fri Jun 20 22:43:45 2014 +0200 * remove const spcifier from Astrobj::rMax() * improve doxygen doc commit 12b0002d89043608eff93bb4b36a692869b7275e Author: Thibaut Paumard Date: Fri Jun 20 22:27:14 2014 +0200 document Worldline and Worldline::IntegState commit 924773995e2ac4504d163a484ce333ce0a04c087 Author: Thibaut Paumard Date: Fri Jun 20 15:42:44 2014 +0200 split ygyoto_private.h out of ygyoto.h commit d690b09d60f29ee3b6c9bb761f3832e809c9f246 Author: Thibaut Paumard Date: Fri Jun 20 15:25:31 2014 +0200 remove doc/user_guide/.gitignore commit 493650058308da935411d040ad65745598e82770 Author: Thibaut Paumard Date: Fri Jun 20 15:21:15 2014 +0200 yorick: improve dot operator to support everything the () operator supports; improve doc commit 0981ff0c73420c42e239a7c780bf78390abd5fc1 Author: Thibaut Paumard Date: Fri Jun 20 15:20:10 2014 +0200 fix lib/BlackBodySpectrum.C to compile with the minimal feature-set (--disable-xerces etc) commit c9a87c06ea0da00a9bb777e418847f7ac8e2ff1a Author: Thibaut Paumard Date: Thu Jun 19 16:03:08 2014 +0200 Change dot operator syntax in Yorick plug-in. Warning: this may break existing code. commit e118820888b4822fad88ab727de594e8c5ed1a9f Author: Thibaut Paumard Date: Thu Jun 19 09:21:22 2014 +0200 doc build system: * build ref only if DOXYGEN is available; * build user guide only if all the necessary LaTeX bits are found commit 7d4f236c4bf6b304b4a5a822dcfe7da646d6b711 Author: Thibaut Paumard Date: Wed Jun 18 17:13:07 2014 +0200 Document how to extend Gyoto in the user guide. commit af3dafa2069750343d4610f8ac5cd4612fcfe3d4 Author: Thibaut Paumard Date: Wed Jun 18 11:10:57 2014 +0200 Update manual: * some documentation on Yorick and gyotoy; * provide build system; * change aa.bst to kluwer.bst, which is free and available in texlive-bibtex-extra commit f19633ff8149b09c9ea0cd9e24f5c9d4c368419f Author: Thibaut Paumard Date: Tue Jun 17 22:17:47 2014 +0200 reorder configure script commit 8bf325f08d67d92f5c0ea8c92e872b26e87e8af0 Author: Thibaut Paumard Date: Tue Jun 17 22:07:05 2014 +0200 add configure option --disable-c++11 commit df35b4773c7e6823ff4ee5d53dbfbb001dbe72ca Author: Thibaut Paumard Date: Tue Jun 17 21:43:32 2014 +0200 fix more warnings commit 5b7a834364631a370c84401ba59b4d0af740beb6 Author: Thibaut Paumard Date: Tue Jun 17 17:45:38 2014 +0200 more pedantic warnings commit 3349ed36907b54cffc4a098c35fe1c8f97b44f6f Author: Thibaut Paumard Date: Tue Jun 17 17:41:21 2014 +0200 fix many pedantic warnings (--enable-hardening) commit 0c275dd0e840f6719244ff707e5faf0496128deb Author: Thibaut Paumard Date: Tue Jun 17 14:11:02 2014 +0200 repair building *with* cfitsio (!) commit 34730f710625606dd48e4798ff997594fb528102 Author: Thibaut Paumard Date: Tue Jun 17 14:00:38 2014 +0200 repair support building and checking without cfitsio commit d33bc82240b0de477cac0b353b13eced87a2b4e1 Author: Frederic Date: Tue Jun 17 13:52:52 2014 +0200 Debug check-directionaldisk commit 87dafa1d0cb126c7c2579718f149d4ed22e63520 Author: Thibaut Paumard Date: Tue Jun 17 13:02:28 2014 +0200 ensure Gyoto builds and make check works even without xerces. commit b338cb057f7e424ab28bb312a4a545ebfb4d2b92 Author: Thibaut Paumard Date: Tue Jun 17 10:52:50 2014 +0200 * yorick: add haveUDUNITS() * make sure the check suite passes even without UDUNITS commit f298d400995c1dc5939991bb99ac94d136e10c47 Author: Thibaut Paumard Date: Mon Jun 16 18:24:21 2014 +0200 fix bug in getRayCoord commit b60a37c080aab4789e8feeef0feeb9f7321870b6 Author: Thibaut Paumard Date: Mon Jun 16 18:11:57 2014 +0200 fix getRayCoord to work better for very small angle increments commit 34f7f763f330605fd3002928bddb91cc64047877 Author: Thibaut Paumard Date: Mon Jun 16 16:29:50 2014 +0200 Document and compare the integrators in the user guide commit 728ab77261498a0f0c44e777210e7ffe1f885503 Author: Frederic Date: Mon Jun 16 12:21:08 2014 +0200 Biblio manual added commit 7f056100051aad17d6169156155070c19f72669c Author: Thibaut Paumard Date: Mon Jun 16 10:07:11 2014 +0200 * Fix bug that would break adaptive integration for the Legacy integrator in multi-threaded operation * yorick: add gyoto_haveBoost() * make check now works even without boost support commit df6d2c8eced475ae850f888e9a02be30f5de1932 Author: Thibaut Paumard Date: Sat Jun 14 15:43:57 2014 +0200 improve configure to error out if boost was requested but C++11 or Boost not found commit 36fdd3a700085dc104d13e8e3b59e6e3779d88b4 Author: Thibaut Paumard Date: Sat Jun 14 10:27:00 2014 +0200 ensure the right compiler is used with compiling the yorick plug-in, and document how to select a compiler in INSTALL commit 9f5b70986d6654f22506063327aa7299debb3e9e Author: Frederic Date: Fri Jun 13 17:57:35 2014 +0200 DirectionalDisk: implemented trilinear interpolation in emission() commit 08e91914060ce90a9e9bd6f5d3eff9a6989365c0 Author: Frederic Date: Thu Jun 12 17:00:30 2014 +0200 Add new astrobj: DirectionalDisk commit fbf69f4563942725acce1b80f1b7651f87298fa2 Author: Thibaut Paumard Date: Wed Jun 11 21:35:00 2014 +0200 Fix bug in Photon that would initialize the coordinate when it's supposed to remain uninitialized. Give access to Scenery::clonePhoton() commit cc7f8f00f1441119155909a9c70356319379c017 Author: Thibaut Paumard Date: Wed Jun 11 14:57:31 2014 +0200 update configure to test for more flags to enable C++11, and to chicken out if none work. commit 37fc1c2e887d30add8ef6a9b598ae19d6364af39 Author: Thibaut Paumard Date: Wed Jun 11 11:40:35 2014 +0200 include in GyotoWorldline.h commit 38b7b7c9cd48141eaf577008113e83fb77cf2168 Author: Thibaut Paumard Date: Wed Jun 11 11:01:28 2014 +0200 Don't store Photon parameters in the Scenery object, but directly in the Photon template it holds. This avoids getting out-of-sync. commit 579311b32b91b11c1cdf6bd969579d77e3595eeb Author: Thibaut Paumard Date: Tue Jun 10 23:05:18 2014 +0200 clone Scenery internal photon when ray-tracing in Yorick commit 768d6780f669dd617d0a4a0005e2b08feaaf4e3a Author: Thibaut Paumard Date: Tue Jun 10 20:42:13 2014 +0200 abide by delta_max_over_r_ in generic myrk4_adaptive, fix bug in Metric::Generic::deltaMax(pos, h) in case of Cartesian coordinates commit aaa1fc1d4d537411dc212b25bb2be4062a7f4610 Author: Thibaut Paumard Date: Tue Jun 10 14:26:33 2014 +0200 Few fixes for compilation under MacOS: - default value for DeltaMaxOverR is now 1. to avoid overflow which triggers SIGFPE on MacOS - make the "install" target phony - check for the availability of -rdynamic in configure commit a412ba0b2b912ce069e8b62f5468065ccf083e2f Author: Thibaut Paumard Date: Mon Jun 9 19:21:42 2014 +0200 give access to the new integrator tuning parameters in yorick/Photon and Star commit 44296bc1ee7be5749d6db5a5d08c42fe911e102d Author: Thibaut Paumard Date: Sat Jun 7 19:38:11 2014 +0200 put CXXFLAGS in gyoto.pc to convey -std=c++11 commit 6d11ab03a8323014c9d1f5c452648894507d1106 Author: Thibaut Paumard Date: Sat Jun 7 19:31:33 2014 +0200 put BOOST_CPPFLAGS in pkg-config file commit 933e1e7a5077be5b1a08672f3e2e3b68faf00b80 Author: Thibaut Paumard Date: Sat Jun 7 19:27:33 2014 +0200 support compiling without boost commit 267f69c3354b89886a4f07fd9c51141a5e150ffb Author: Thibaut Paumard Date: Sat Jun 7 16:16:08 2014 +0200 store boost integrator kind in an enum instead of a string commit f042b3b68fe258e9a2f6f9d117fe731883bc8772 Author: Thibaut Paumard Date: Sat Jun 7 15:48:26 2014 +0200 implement non-adaptive boost steppers commit 296521a1cad702139fb8e1772b480ecc46064213 Author: Thibaut Paumard Date: Sat Jun 7 14:37:29 2014 +0200 fix Worldline constructors and initializers to clone/init the IntegState when appropriate commit 00af1d197d18c76351755c43f7da74a1fc36f8bc Author: Thibaut Paumard Date: Sat Jun 7 11:56:15 2014 +0200 allow setting abstol and reltol in new integrators commit 54664768985636cf00922dda98eedf495cd2f8c8 Author: Thibaut Paumard Date: Sat Jun 7 11:29:57 2014 +0200 improve new integrators (initialize minimally) commit 99fa623fc61788791b28f911070c9a78a3efe82c Author: Thibaut Paumard Date: Fri Jun 6 22:14:48 2014 +0200 access new integrator in Scenery from yorick commit 1b276a0e6e94805930c809338dfec5ea7a2d77a1 Author: Thibaut Paumard Date: Fri Jun 6 21:31:07 2014 +0200 provide deltaMax, deltaMin and deltaMaxOverR interface directly in Worldline and Scenery for the new integrators. change default values of deltaMin (DBL_MIN) and deltaMaxOverR (DBL_MAX). fix bug in Torus::deltaMax(). commit 7a18bef6c48efbe70eb8e11e75bb31e78dd81d68 Author: Thibaut Paumard Date: Fri Jun 6 17:17:17 2014 +0200 Support the 4 Boost Runge-Kutta integrators commit 6a41ecb5fa71254630905c6db8cd888e1190aeea Author: Thibaut Paumard Date: Fri Jun 6 16:34:43 2014 +0200 Add support for Boost ODEint integrators. Adds new build dependency on Boost. commit b0f9d62d26d9ce2256714986b4d97d2a1759f9df Author: Frederic Date: Fri May 30 12:01:29 2014 +0200 ThinDiskPL: just remove Rmin and Rmax, they shadow InnerRadius and OuterRadius! commit e1c870d8ef55397d70f86f4a618595ca67b7e6ba Author: Frederic Date: Fri May 30 11:23:20 2014 +0200 Astrobj: add "const" keyword to rMax() ThinDiskPL: rename Rmin, Rmax to Rinner, Router PolishDoughnut: redefine r_cusp_ to solve high spin problem ; new correct version of p_mag implemented in Komissarov commit 9faae660da6f547d89af76cc273e6cf0f5a9a96f Author: Thibaut Paumard Date: Tue May 20 17:19:33 2014 +0200 ensure gyoto.so is compiled before gyoto_std.so, which needs it on MacOS X commit 95fe4c951593469a132eeb1f20a79ac1407af7ad Author: Thibaut Paumard Date: Wed May 14 16:24:08 2014 +0200 avoid div by zero in yorick/check-helpers.i commit 54642a5ab6a8fd1c48110d35125feec97a607cb4 Author: Thibaut Paumard Date: Wed May 7 18:27:35 2014 +0200 Allow setting FixedStar spectrum and opacity in the yorick plug-in commit baf94b96a940e40de28fcc9382c0a3382b3f4a4f Author: Thibaut Paumard Date: Wed May 7 17:25:23 2014 +0200 KerrBL: allow using the generic integrator. commit 038d036a513becca89bb2010433a9dcc04347a87 Author: Thibaut Paumard Date: Wed May 7 15:27:58 2014 +0200 Implement KerrBL::christoffel(dst, pos) commit 35c1e1bae837abe22ad48f26710f43f8accc4b7c Author: Thibaut Paumard Date: Wed May 7 12:10:28 2014 +0200 add some eye-candy in test suite commit d836302bf9d2f99e5c679fc60c9ddc23f3de9385 Author: Thibaut Paumard Date: Wed May 7 10:22:26 2014 +0200 Provide a proper system for running the yorick plug-in from the built source tree. Just use the script yorick/yorick which is generated at configure time. commit a84b8dc68cb01271d65f7fa90df36063b655939d Author: Thibaut Paumard Date: Tue May 6 15:52:22 2014 +0200 Include new metric (WIP): NumericalMetricLorene commit 1e3ff63fafb7797445f4f042a1981eb7fc8c3779 Author: Thibaut Paumard Date: Tue May 6 15:39:53 2014 +0200 + KerrKS: make it actually work, with the generic integrator. Using the specific integrator is an option, but it is currently broken. + The christoffel method may now set a stop condition. + myrk4_adaptive does not ignore the stop condition set by myrk4 anymore. + Conversions To/From seconds may now be done from/to distances using GYOTO_C as a conversion factor + Fix Torus, which was completely broken in Cartesian coordinates. commit 3a0e3e7a200be6c840cf24141cb1acc46453154c Author: Thibaut Paumard Date: Wed Apr 30 13:30:56 2014 +0200 Add Keplerian keyword in order to get circulartVelocity to return the Keplerian velocity commit 03b79c344c7b3cc88dcf39f277aa0aa29f348b39 Author: Thibaut Paumard Date: Tue Apr 29 17:11:37 2014 +0200 code cleanup: remove useless constructors and destructors (in Metrics), protect kind(string) and coordKind(int) which should generally not be used. commit 6e3e17a69ad368178b0a86243ed710ca78752332 Author: Thibaut Paumard Date: Tue Apr 29 11:03:23 2014 +0200 move delta_max_over_r_ machinery to Metric::Generic commit c6c149455ddd56ab2c5c22722706368a90c75dbc Author: Thibaut Paumard Date: Tue Apr 29 01:07:15 2014 +0200 add WIP, use single call gmunu() in Metric::Generic and KerrBL (10% speed gain) commit 02f034e8d9c029b635b76ac22ab16c5a531938b7 Author: Frederic Date: Tue Apr 22 16:55:00 2014 +0200 Add doc/user_guide commit 483b941a54c1902ee459e44a0f926c5774cd25ec Author: Thibaut Paumard Date: Tue Apr 22 13:29:55 2014 +0200 Add work-in-progress (WIP) class Add Minkowski metric class commit cfe128aab7efe99fc9bf91da141a410ee1c36f45 Author: Thibaut Paumard Date: Thu Apr 17 14:16:32 2014 +0200 Update configure script. Add "--enable-deprecated" option. The code should never be pushed when enabling this option is required to build the code. commit 4e3abda54a6d31d484b4dcdc978cba28562d1c9b Author: Thibaut Paumard Date: Thu Apr 17 14:05:51 2014 +0200 update autotools scripts, include new "compile" script. commit bb0c4990b396b835c2e3f2b385310f4464bce462 Author: Thibaut Paumard Date: Thu Apr 17 13:25:45 2014 +0200 rename set intensity/spectrum/binSpectrumConverter in Astrobj and Scenery commit 21dea0f9e97279702b47fa7fbd0cd2eb605033a3 Author: Thibaut Paumard Date: Sat Mar 29 21:00:41 2014 +0100 add alpha0, delta0 in the doc of gyoto.Screen in the Yorick plug-in commit 36ad61d232fc960c33351546368b327ea06f48cf Author: Thibaut Paumard Date: Sat Mar 29 20:45:49 2014 +0100 get/set alpha0 and delta0 in Screen support in Yorick, support unit commit df78a088bde6ed4bc02b5dc471854b17f9a99b08 Author: Thibaut Paumard Date: Sat Mar 29 18:02:55 2014 +0100 rename get/SetFlag_radtransf -> opticallyThin, nThreads, resolution, nSamples, spectralOversampling commit 23daf50d49497d41b27474bb07cc9c2ec2d86977 Author: Thibaut Paumard Date: Sat Mar 29 17:45:10 2014 +0100 rename get/set lambda, centralTempOverVirial, beta, constant, exponent commit 852ef12998deab0ae2c7a7135e19ad2f84ed13df Author: Thibaut Paumard Date: Sat Mar 29 17:11:03 2014 +0100 rename get/setRadius/SmallRadius/LargeRadius/CentralDensity -> radius/smallRadius/largeRadius/centralDensity commit 457bef5c21a594bf81b30d3d8600ec07b8c53b80 Author: Thibaut Paumard Date: Sat Mar 29 16:31:01 2014 +0100 rename get/setDelta/Delta0/Alpha0 -> delta/delta0/alpha0 commit 0564a4fa0625edc915eae835ae1894b3400517b5 Author: Thibaut Paumard Date: Sat Mar 29 16:18:42 2014 +0100 rename get/setSpectrum -> spectrum and get/setOpacity -> opacity commit 6a5776c5d36aa35ccad87df33afb2e02238ae2e8 Author: Thibaut Paumard Date: Sat Mar 29 15:52:43 2014 +0100 rename get/setSpectrometer -> spectrometer commit 2682d2c581dd472e998df1719c06dc38e7908b96 Author: Thibaut Paumard Date: Sat Mar 29 14:02:24 2014 +0100 rename set/getAstrobj -> astrobj commit 9b1a7ab89b0d088303f99b0fab10a953ea6133ce Author: Thibaut Paumard Date: Sat Mar 29 08:44:31 2014 +0100 rename set/getKind -> kind everywhere, make sure Gyoto compiles with and withoug GYOTO_NO_DEPRECATED commit 8a1accc56a2c4a32bbba632980537eee841a3a43 Author: Thibaut Paumard Date: Sat Mar 29 08:27:41 2014 +0100 Add some API compatibility deprecation code commit 54beda5617f259a540e339de4e962d3b73a43944 Author: Thibaut Paumard Date: Sat Mar 29 08:07:55 2014 +0100 rename methods set/getScreen -> screen, fix last remaining warning commit 8cbef78a57040fc4855564631e8395ebee2a55cc Author: Thibaut Paumard Date: Fri Mar 28 22:33:08 2014 +0100 get/setMetric->metric, get/setRmax->rMax commit fcd7f6bea42d258a6175b58ba9046ad983538f20 Author: Frederic Date: Fri Mar 28 16:48:02 2014 +0100 PolishDoughnut: erased Impact_ ; directional and angle-averaged synchrotron in Komissarov commit 8a8e16e126fcb27bf384ea7575bb33550d438946 Author: Frederic Date: Wed Mar 26 17:20:08 2014 +0100 Code cleaning in PolishDoughnut/Komissarov commit 62853366512a56bd0e5305e1f12f088e081aa9ea Author: Thibaut Paumard Date: Wed Mar 26 17:03:42 2014 +0100 fix "../include/GyotoPolishDoughnut.h:251: error: a class-key must be used when declaring a friend " commit 61681551ab7faa42568cc68c80e48fa4f7ca7072 Author: Thibaut Paumard Date: Tue Mar 25 17:59:22 2014 +0100 Simplify interaction between PolishDoughnut and PolishDoughnut::intesection and commit 2253c42c813220ea646a39b0ea7b2da47c6f3296 Author: Thibaut Paumard Date: Fri Mar 14 21:56:49 2014 +0100 change method names in Screen: inclination, PALN, argument, distance commit c4e1bffa50cc51a29454836ae7db3b01c7f071b7 Author: Thibaut Paumard Date: Wed Mar 12 15:35:26 2014 +0100 rename RotStar3_1::integKind, RotStar3_1::fileName. Make sure compilation goes fine with HOME_LORENE set. commit 968b109cfe50da2bb14c7cbd717773624c04253b Author: Thibaut Paumard Date: Wed Mar 12 15:26:34 2014 +0100 * rename functions from setMass/getMass style to mass()/mass() style. Are concerned the following (new names): Metric::mass, Metric::coordKind, Metric::kind, Screen::coordKind, KerrBL::spin, KerrKS::spin commit d6ab1f233265dabe15a02075dedaa50b80021ecb Author: Thibaut Paumard Date: Mon Mar 10 17:01:36 2014 +0100 add DiffTol and DeltaMaxOverR attributes to some of KerrBL, KerrKS and RotStar31 commit 1f929ddad2d933489f9c2e3b40d4c8f4a003d4fe Author: Thibaut Paumard Date: Mon Mar 10 14:45:04 2014 +0100 Add DeltaMin and DeltaMax attributes to Metric::Generic, support it in KerrBL commit 67f56565152b3a4cf0ed43354a0cd6fe205bb011 Author: Frederic Date: Wed Mar 5 12:03:55 2014 +0100 Code cleaning in KerrBL. In KerrBL::myrk4_adaptive, redefined difftol depending on metric kind commit 7b80e9cbf2ddd203ec084e85259ae7bc1928e0a0 Author: Frederic Date: Thu Feb 13 11:04:16 2014 +0100 PolishDoughnut::emission: temperature calculation changed, previous was buggy PolishDoughnut::emission_komissarov: added Komissarov model for doughnuts commit 4bdf87445d39fd570f2845825cb5d0c5a6b962b0 Author: Thibaut Paumard Date: Sat Feb 8 18:58:11 2014 +0100 Make Gyoto work for large distances: * use mathematical approximation for small angles in Screen::getRayCoord which numerically more accurate than the exact trigonometry, this makes Gyoto work for the Galactic Center case without using the dmax rescaling trick; * make dmax and h1max default to DBL_MAX; * in KerrBL::myrk4_adaptive(), set difftol to 1e-6 (this makes Gyoto more reliable for an object far behind the BH). commit ea573ac4c1efb3864b5ce0e7822087ffe8c689ee Author: Thibaut Paumard Date: Fri Feb 7 16:13:28 2014 +0100 use "approximate" formula in getRayCoord for small angles, this is numerically more accurate than the mathematically exact expression. Set h1max to 1e10, but it could be even bigger. commit cb1672c1b9dca9b49677e564b7a82e98f1a13d01 Author: Frederic Date: Fri Jan 17 12:20:10 2014 +0100 Still updating website commit 9740df78064f45c6430132f2d49eab522b4a10cc Author: Frederic Date: Fri Jan 17 12:18:17 2014 +0100 Still updating website commit eb7c9ca31b5a82d55484fe67f7201c564af1c65b Author: Frederic Date: Fri Jan 17 12:14:04 2014 +0100 Website update commit bfd6777dcc785daba59eb8bc90f9fe3a8cb01c18 Author: Frederic Date: Thu Jan 16 12:36:26 2014 +0100 Website changing commit a0dce5a9b1fb7d2657393abd811d411b166a5086 Author: Frederic Date: Thu Jan 16 12:32:34 2014 +0100 Website change commit 0a55959d78a2daeacf1dd4af8f18e7b514e869d5 Author: Frederic Date: Fri Dec 20 13:10:04 2013 +0100 RotStar3_1: updated myrk4_ada to follow the change in WlIntegState commit 6f19033b72fda5d4321d87f04e37e3a696332399 Author: Frederic Date: Thu Dec 19 15:44:06 2013 +0100 UniformSphere: added spectral dependence (photon index) commit a9ade35e59be97f802631ebeb42dd3977e004136 Author: Frederic Date: Thu Dec 19 11:22:45 2013 +0100 UniformSphere.C: add optically thin case for isotropic_=1 in emission commit 57f4dfb92913b7a4d407d4b556bf2a415e8c76ac Author: Thibaut Paumard Date: Thu Dec 12 14:19:51 2013 +0100 yorick/mk-movie*.i: precompute mask, set aspect ratio to 4:3 commit 9458329ae80b99c6d2606d90c8832d845255a391 Author: Frederic Date: Wed Dec 11 17:55:58 2013 +0100 WorldlineIntegState: still updating warning message commit aa9b92e6590b43977f3837741d54783ea5698b94 Author: Frederic Date: Wed Dec 11 17:53:31 2013 +0100 WorldlineIntegState: update in warning message commit 4dd0875012fd862cead1e3909491fe719bf48118 Author: Thibaut Paumard Date: Wed Nov 27 14:56:24 2013 +0100 KerrBL::CheckCons: make limarg relative to KK commit a4002f53533abc4865d6c82f015b87b084efd341 Author: Thibaut Paumard Date: Wed Nov 27 14:55:28 2013 +0100 yorick/gyoto_Scenery.C: bugfix in maxiter keyword commit d618ef47079ef759b73ec67629c6681eee9e2b82 Author: Thibaut Paumard Date: Sun Nov 24 21:10:36 2013 +0100 document StarTrace in Yorick plug-in commit 2e9080f5a97909d3f9060905d31eadb3c2819831 Author: Thibaut Paumard Date: Sun Nov 24 20:48:54 2013 +0100 Make sure an Intensity FITS file can bre readiy used as a mask. Warning: run configure after pulling this commit. commit 316e34022311ca93145d33db7ab46c3d0b950da0 Author: Thibaut Paumard Date: Sat Nov 23 23:03:11 2013 +0100 some doc in include/GyotoStarTrace.h commit 6193560ddb63baf58c23fda80859206f0ce7491f Author: Thibaut Paumard Date: Sat Nov 23 22:01:18 2013 +0100 make star from startrace in yorick commit dbad2ee8a7ab4365c312fba059e0dcf7e15e147a Author: Thibaut Paumard Date: Sat Nov 23 21:51:48 2013 +0100 make startrace from star check-startrace.i commit bade5b68b272c9c52dd292790c4aa1aacfa675ad Author: Thibaut Paumard Date: Sat Nov 23 20:22:09 2013 +0100 yorick interface for StarTrace commit 8479f542e19e5456cb6dfa57bc34feaf44bc21a0 Author: Thibaut Paumard Date: Sat Nov 23 19:39:59 2013 +0100 optimize StarTrace commit 20bd44161e6b938988ae859367b9ba829c0211f5 Author: Thibaut Paumard Date: Fri Nov 22 18:10:01 2013 +0100 automatically check startrace. set resolution to 32 and nthreads to 8 in Makefiel for make check commit 6b0661f84eeef4fcf43db6d0476d7f63e3815466 Author: Thibaut Paumard Date: Fri Nov 22 18:00:52 2013 +0100 New astrobj StarTrace, currently too slow. commit a2b2856cec0e3a11f868a07687d7c0eb9a51a66b Author: Thibaut Paumard Date: Fri Nov 22 08:56:12 2013 +0100 add members and accessors to UniformSphere to fine tune getDelta from XML or Yorick code commit 863c2fd857a1e89ca34ade8ac42030f486a5f419 Author: Thibaut Paumard Date: Thu Nov 21 17:16:12 2013 +0100 implement deltaMAx for UniformSphere and Torus commit bfc90f5c920fe7e3470205eefbc008b311c76651 Author: Thibaut Paumard Date: Thu Nov 21 17:03:22 2013 +0100 make sure h1max >= h1min commit d40a0007b700b4a81deda1b6fbad5ce72c9ef9a8 Author: Thibaut Paumard Date: Thu Nov 21 15:55:56 2013 +0100 implement Astrobj::Complex::deltaMax() commit 7cb526b968b7cb0aa056cd9e511ddc8b3ecf7eeb Author: Thibaut Paumard Date: Thu Nov 21 15:38:16 2013 +0100 * change Worldline::Integstate::nextStep() and Metric::*::myrk4_adaptive() to accept h1max parameter * add Astrobj::*::deltaMax() to ask astrobj how to not miss it, provide Generic and FixedStar implementation commit 638a3f739dd004a31c2b2f0355c4a19155487748 Author: Frederic Date: Wed Nov 20 17:19:43 2013 +0100 In KerrBL::diff changed derlim_hor from 1e5 to 1e4. Previous value leads to error due to bad z-axis pb treatment close to horizon. commit 9740b41455c04dbdf896b6ca32e07aa2d1b8ce12 Author: Frederic Date: Tue Nov 12 11:31:19 2013 +0100 DynamicalDisk3D: added novel_ flag to ignore velocity when emitter velocity is not provided. commit 22887c725dc45b0d02aa1e907823188bfd64790e Author: Thibaut Paumard Date: Sat Nov 9 09:58:17 2013 +0100 update data pointer correctly to make tracing a subset of the field correct commit 202a5be4d8743df3fcd8fe70ec56b33c12ee86d9 Author: Frederic Date: Fri Nov 8 19:20:19 2013 +0100 Disk3D: changing value of deltat inside object to constant value commit 09ee9813c619e0a574d3f4af45e57d14b2ffb0e0 Author: Thibaut Paumard Date: Fri Nov 8 15:05:28 2013 +0100 implement mask in screen to compute only parts of an image commit 50b108e91e1da87e444fcfe26a0905ff20c42678 Author: Thibaut Paumard Date: Wed Nov 6 18:04:58 2013 +0100 errmode should be 0 by default in Spectrometer as well commit e8299ba1ca56ede7180ebc0c41bf7be1ad165b7b Author: Thibaut Paumard Date: Wed Nov 6 18:00:26 2013 +0100 Fix Astrobj::getSubcontractor to throw error by default when kind is not found commit 2299fc943410d56165c3065e082fabee414d6343 Author: Frederic Date: Wed Nov 6 17:14:17 2013 +0100 DynamicalDisk3D: code cleaning, proper implementation of radiative transfer for the non-blackbody case. commit 7cf9d8ac6cf8132eef8b3c7fb188eab8ba4fd63f Author: Frederic Date: Wed Nov 6 15:34:07 2013 +0100 Added Makefile.in commit e79aded502727313414d4fff14785bac06e3e4cb Author: Frederic Date: Wed Nov 6 15:28:40 2013 +0100 Disk3D_BB -> DynamicalDisk3D This is only a change of name. commit e8b7aec3f98198c74ac259bcd8d65cd4beac77c1 Author: Frederic Date: Wed Nov 6 13:03:39 2013 +0100 Disk3D: Adding default value of opacity_ in constructor. commit 93176a0c30abf645c6cc85e75d16497424063f2e Author: Thibaut Paumard Date: Tue Nov 5 16:39:25 2013 +0100 add copyopacity= keyword to yorick/stdplug/gyoto_Disk3D.C commit d56536cdcd8a4b5636c50b95f91ec77be5187f13 Author: Thibaut Paumard Date: Tue Nov 5 15:01:28 2013 +0100 Implement reading opacity extension in Disk3D. Beware: read, but not use. commit 241d24a05fdbc621e279d3217faa6926c43fe77e Author: Frederic Date: Wed Oct 30 17:35:42 2013 +0100 In Disk3D_BB: Updated radiative transfer treatment commit 2392f0fc1093be46f068a5019a24e3836843999b Author: Frederic Date: Thu Oct 24 12:17:14 2013 +0200 UniformSphere: added possibility to emit isotropic constant emission commit a5b80a131a5245eda51cfa4ef224556516cfb3ca Author: Frederic Date: Tue Oct 22 18:19:16 2013 +0200 Disk3D, Disk3D_BB: code cleaning + added flags to allow raytracing on a grid where intensity is provided, not temperature commit 441a7c6c356aed8018a502f0f3b2986d00c9e0df Author: Frederic Date: Tue Oct 22 16:17:35 2013 +0200 ThinDiskIronLine: changed default velocity when emission=0 commit 85f54bbf4ab217794933e902b28daeca026d4a24 Author: Frederic Date: Wed Oct 9 11:49:40 2013 +0200 Added the possibility to raytrace only primary image of astrobj. Put in Scenery environment. commit 05a1a19db7320212793cf6c95d1e676087941171 Author: Frederic Date: Fri Sep 20 15:12:26 2013 +0200 KerrBL: Modified z-axis tretment in myrk4, necessary for high spin. Added display of r value when Warnings are launched. commit 29448ece43f5eb2229b6a8533eeeb774a67e78c1 Author: Frederic Date: Wed Aug 21 19:56:52 2013 +0200 PatternDisk: implemented bilinear interpol for getVelocity() and emission() PatternDiskBB: code cleaning commit 0cdea91b781daf264ef637497638c663c36620f6 Author: Frederic Date: Mon Aug 19 12:59:18 2013 +0200 Added ThinDiskIronLine astrobj to compute iron line profiles of thin disk commit e3ef7aa0c3fc431e2415e1d6d89a9fb139c230be Author: Frederic Date: Tue Jul 30 11:10:17 2013 +0200 PageThorne: added the possibility to compute observed blackbody spectrum; [removed rednoise_ option, now useless] commit 7dadb8c5be20b02861eab63b04b78a9f7c49210a Author: Thibaut Paumard Date: Sat Jul 27 11:14:20 2013 +0200 Prepare for releasing 0.1.0 commit a99c3e47c06370f9a6211c73db15bf68c2dae76e Author: Frederic Date: Mon Jul 22 17:29:01 2013 +0200 Worldline: bug corrected in getCoord PageThorneDisk: added possibility to use with CS metric commit 458ef15bc83edefbdad4d5cef8441ab20370af43 Author: Frederic Date: Mon Jul 15 16:42:48 2013 +0200 In KerrBL: removed all references to Chern-Simons, virtualized some functions to allow ChernSimons to be a KerrBK subclass commit 65fa9b9ab2f3d6b93fbef5e4a4cb89f6822f7002 Author: Frederic Date: Fri Jul 5 11:56:48 2013 +0200 Removed PatternDiskBB::rmax_ that shadows Astrobj::rmax_..... commit 2a79baa386cc2be2fffbfaa0a985a46528f5156b Author: Frederic Date: Fri Jun 28 18:34:03 2013 +0200 Changed spherical angle limit in Screen commit 1ff9c36de34e221983173d26269dc9e378040ea6 Author: Frederic Date: Wed Jun 26 12:18:33 2013 +0200 gyoto.C: added test on indices value KerrBL.C: added condition on z-axis problem solving, to be fine tuned commit f02f8e9e5b93f9f615b756bae9fb028f1d539051 Author: Frederic Date: Tue Jun 25 10:41:07 2013 +0200 Removed modification of z-axis problem treatment in KerrBL, leads to bad behavior. commit 96cc334d0825cf65987b2b1de6a3c18027b0880c Author: Frederic Date: Wed Jun 19 16:46:40 2013 +0200 Few comments on orientation stuff in Screen.C commit 07621118f38781f5a96c6938309109d6b15f9844 Author: Frederic Date: Mon Jun 17 17:39:01 2013 +0200 In KerrBL added test in z-axis problem loop of myrk4_ada. Integration is stopped is modified step gets > than 2 times initial step. commit bc678dffa500e97b8d4279fdb8e22a949f5d7073 Author: Frederic Date: Fri Jun 14 12:11:28 2013 +0200 Update PatternDiskBB.C commit d2341117f5960ac2eb445e0a860ab856b2b447c2 Author: Frederic Date: Thu Jun 13 16:50:58 2013 +0200 One more line of comment in Disk3D.h commit c471ec1085bd12fcca2f2d1e94c10dde3cbdc63a Author: Thibaut Paumard Date: Wed Jun 12 15:36:29 2013 +0200 make gyotoy compatible with both gy stable and gy git. commit a1a20baf792f3b66889aba9d04741bb2c037102a Author: Thibaut Paumard Date: Tue Jun 11 16:41:17 2013 +0200 gyotoy: sync wihth gy development commit 04cd6eca266edd6a42bfdc21be29477179a3b29c Author: Thibaut Paumard Date: Fri Jun 7 12:47:31 2013 +0200 SysPrimeToTdot: return 0 if v>c instead of error commit fd3533ed317d39c0dcd9501fc89c776fc30128f0 Author: Thibaut Paumard Date: Fri Jun 7 00:12:14 2013 +0200 update relative to gy commit 2ca253ab36e720fb2cb693669bee63272db76253 Author: Thibaut Paumard Date: Thu Jun 6 17:45:34 2013 +0200 minor bug fixes in gyotoy commit f852c841de77b5390e7fc608722f21cb3790d5f7 Author: Thibaut Paumard Date: Wed Jun 5 17:06:03 2013 +0200 Port gyotoy to yorick-gy, getting rid of Python. commit cae2bf0b0f169c65b296e6fc75767ced20a6d304 Author: Thibaut Paumard Date: Wed May 29 14:42:13 2013 +0200 increase max mass to 1e20 sunmass in gyotoy commit 43f1316219c9a590cbf9d8fe20cd6a1c9eb669f8 Author: Thibaut Paumard Date: Tue May 28 15:30:43 2013 +0200 Document required yorick version commit e55ccd9fce21fb71a1790e2cfe382720a58cf763 Author: Frederic Date: Mon Apr 29 17:59:14 2013 +0200 Added UniFlux flag to PageThorne.C Impose flux=1, useful when only interest is silhouette commit 80c716739f06b1cf7cad0ead5cae4b4b21dc9516 Author: Frederic Date: Mon Apr 29 15:58:45 2013 +0200 Added Chern-Simons modification at first order to KerrBL commit a08841edc6daad29f637435942711ac2c5bde836 Author: Frederic Date: Wed Apr 24 10:48:09 2013 +0200 Correct flux in PageThirne.C + rednoised emission commit ec3874b59b18545d3a6ce259d1ed724873dfed81 Author: Thibaut Paumard Date: Fri Apr 19 22:27:43 2013 +0200 yorick: use dot notation in che*.i files and document it commit 3e89b6d68e3cc3a0a6574dbd3f17b5ca3692f2a3 Author: Thibaut Paumard Date: Fri Apr 19 18:26:34 2013 +0200 yorick: make object.member wrap around object(member=) commit 8fffe94a1a910dbd98c1dc76ce06886c688caecd Author: Thibaut Paumard Date: Thu Apr 11 19:19:42 2013 +0200 increase number of digits in gyotoy commit 2eaf338ef09a0f4e3063cdfbedefcec83fd9b82e Author: Thibaut Paumard Date: Mon Apr 8 15:28:28 2013 +0200 Bug fix: WorldlineIntegState::nextStep made no evolution in case of non-adaptive step commit b5918923e9fa19edbf8093b89e2afd4fc4cd65fa Author: Thibaut Paumard Date: Sat Apr 6 01:14:36 2013 +0200 Finish doc review commit 290562c9adacd42da9298f5408274eff10f2713f Author: Thibaut Paumard Date: Fri Apr 5 11:58:25 2013 +0200 Rework Worldline::IntegState and Gyoto::Error Improve doc commit 225cd70b19272953b7d4b659528504240b388849 Author: Thibaut Paumard Date: Thu Apr 4 21:15:16 2013 +0200 fix FTBFS introduced in last commit improve doc commit 134640f1f7381e64179f8529b8a16ee0f6377ab5 Author: Thibaut Paumard Date: Thu Apr 4 16:23:06 2013 +0200 Improve doc commit 7a4eef96f9c54226a15591fcfc36b271d063613f Author: Thibaut Paumard Date: Wed Apr 3 19:48:13 2013 +0200 Remove FocalPlane, it's not used anywhere. commit 03d1aefbf75a82fa52656910b0f516fcc3f650c4 Author: Thibaut Paumard Date: Wed Apr 3 19:40:04 2013 +0200 Improve doc commit 6a229b22b0cc1ed1329b8d0fce911f5f2b9721a8 Author: Thibaut Paumard Date: Wed Apr 3 01:03:18 2013 +0200 imrove doc rename ScenerySubcontractor -> Scenery::Subcontractor, likewise Photon implement PageThorneDisk::getDefautQuantities() to return User4 commit e15250cc0c8d8932cdd02bf01d2699b884d7b293 Author: Thibaut Paumard Date: Tue Apr 2 22:33:20 2013 +0200 Improve doc commit 08767ea24f6186bff8d9978de8cb9ba174e7cad3 Author: Thibaut Paumard Date: Tue Apr 2 17:33:26 2013 +0200 Improve doc commit c15947781f7dcd56036e5f47f0b915f6bb3513c7 Author: Thibaut Paumard Date: Tue Apr 2 14:21:38 2013 +0200 Add icon to gyotoy commit 64110ee96f2bc2dc95afa6004c48627ab8ee2a14 Author: Thibaut Paumard Date: Tue Apr 2 00:17:16 2013 +0200 improve tooltips in gyotoy commit 286d97b34eec57b3a70e14dd6471731f5cc65b55 Author: Thibaut Paumard Date: Mon Apr 1 23:38:19 2013 +0200 update gyotoy screenshot commit aa0d245f9c573786db17b2b07f47760135296f49 Author: Thibaut Paumard Date: Mon Apr 1 22:15:42 2013 +0200 improve doc commit b4d499cba4f4b7a20987dd54aad0a415ce75f989 Author: Thibaut Paumard Date: Mon Apr 1 18:59:44 2013 +0200 yorick: small bug fix in Star commit b8ef1545389e702a38d429e63130254e1a2a1c48 Author: Thibaut Paumard Date: Mon Apr 1 18:02:34 2013 +0200 improve doc commit a7db416a2a6a09ba2c66d1b7bf503b47707609b2 Author: Thibaut Paumard Date: Mon Apr 1 12:49:04 2013 +0200 improve doc commit 7f0bc5602a677cf2bd098613ae84d71d513ba08e Author: Thibaut Paumard Date: Mon Apr 1 12:04:28 2013 +0200 Add MaxIter parameter to Worldline (Photon, Star) and Scenery commit d4abd288deaa8d8e7689c8c877caad0bd841ea27 Author: Thibaut Paumard Date: Mon Apr 1 11:05:15 2013 +0200 fix gyotoy bug in dat output commit af655d31a2dda90d950c635da0a443b27f1c68c9 Author: Thibaut Paumard Date: Sun Mar 31 22:57:27 2013 +0200 avoid percentage > 100% in gyotoy commit 0971b5474b7448a819cb77664aefe208a741c6d2 Author: Thibaut Paumard Date: Sun Mar 31 22:14:08 2013 +0200 gyotoy: display pecentage with many digit in progressbar commit cc1106d3a783ec6cb2d2bfccddf96692c76a35c5 Author: Thibaut Paumard Date: Sun Mar 31 21:05:29 2013 +0200 Implement non-adaptive step for ray-tracing, fix bug with non-adaptive integration in the past commit 3567e23d2eb743a97d14ed212df99c449303a92a Author: Thibaut Paumard Date: Sun Mar 31 00:54:19 2013 +0100 Improve rewind button behaviour in gyotoy commit 2dd31722afe059dcbd1d63176208f7f6192442ef Author: Thibaut Paumard Date: Sat Mar 30 20:26:54 2013 +0100 Worldline (Star, Photon): use in XML to disable adaptive step Improve doc commit 0476d394c1e70889498948c5fa8dc209e8e78a74 Author: Thibaut Paumard Date: Fri Mar 29 18:36:37 2013 +0100 Re-add --tmin option to gyoto tool, install gyoto manpage, fix Spectrum doc. commit 4e5e1c715bea0997d56c69365c69db1d57504a83 Author: Thibaut Paumard Date: Fri Mar 29 09:37:01 2013 +0100 update .gitignore to ignore ./configure output commit d6f7fcf0e6e013f6db0f37707af659d2895a0d49 Author: Thibaut Paumard Date: Mon Jan 1 03:07:33 2001 +0100 bug fixes in gyotoy commit 753427147a72f976006b3b1d12124d6abab9f429 Author: Thibaut Paumard Date: Thu Jan 1 18:59:59 1981 +0100 gyotoy: add play/pause/stop buttons, fix minor bugs commit ef2da581fbedb4b28bbdd9fb3de6427542067624 Author: Thibaut Paumard Date: Wed Mar 27 11:11:08 2013 +0100 Enhance gyotoy: divide integration in nsteps commit 75a29a4253bd2617e7a102af869247e423d858ae Author: Thibaut Paumard Date: Tue Mar 26 09:57:24 2013 +0100 add scalaprod metrod to Metric in yorick plug-in commit 94e0ea1ad1e5bf81db678e2d72da318526fe25d6 Author: Thibaut Paumard Date: Tue Mar 26 08:10:43 2013 +0100 small gyotoy fixes commit f183cecdc01bf24e641d1d7ab3832665d52f8213 Author: Thibaut Paumard Date: Tue Mar 26 08:00:32 2013 +0100 yorick plug-in: clean more remove obsolete Star functions introduce namespace object commit 54ff7864eb569150727aadf9e61113b1b5f0e10c Author: Thibaut Paumard Date: Mon Mar 25 16:48:42 2013 +0100 finish (?) streamlining main yorick plug-in commit 9ea6ad2a75918898254876e0b2f5628bdad8fef6 Author: Thibaut Paumard Date: Mon Mar 25 14:52:25 2013 +0100 Work on gyotoy bugs when loading star from XML file commit 8275749c7e75ded99bc2fb3acd8f556849f068e1 Author: Thibaut Paumard Date: Mon Mar 25 11:39:13 2013 +0100 Fix recent bug in yorick constructors Streamline yorick/Scenery commit 7e3b05e52e596db57c628c0e516d124ecb01e6c3 Author: Thibaut Paumard Date: Sun Mar 24 17:18:59 2013 +0100 more yorick simplification and uniformization commit fe8f888b413843fd6ff12ae6e7dbad4d9067ae74 Author: Thibaut Paumard Date: Fri Mar 22 21:30:45 2013 +0100 clean yotick/Photon code commit 31fb658bac3412393657f7c6187bfc5d90d8a99b Author: Thibaut Paumard Date: Fri Mar 22 16:18:08 2013 +0100 Clean spectrum in yorick commit 1b7e6f000c96e20c71a011685db29877140f21e7 Author: Thibaut Paumard Date: Fri Mar 22 15:52:52 2013 +0100 clean yorick spectro commit 9ec305fb709fc04d24fda6de2a6d74cb3fd4b776 Author: Thibaut Paumard Date: Mon Jan 1 01:25:28 2001 +0100 Try harder finding python3 in gyotoy. commit 1e8c70a58ca3200b950b502292b671cbfd3ee71c Author: Thibaut Paumard Date: Fri Mar 22 11:28:57 2013 +0100 clean yorick code (Astrobj, Metric) commit 29758060763dbe231b0e6064232cbd898cb4122f Author: Thibaut Paumard Date: Fri Mar 22 10:50:18 2013 +0100 Still clarify yorick Astrobj workers based on macros commit 94e5d9d3f5085d635247feebe595b61e68ef90c2 Author: Thibaut Paumard Date: Thu Mar 21 21:29:00 2013 +0100 clarify yorick/gyoto_Astrobj.C commit 1506e7bb42464f1252c027fc6c2e2e21243599f0 Author: Thibaut Paumard Date: Thu Mar 21 13:56:03 2013 +0100 clarify yorick plug-in with preprocessor macros commit 7c143252cf9f104753899baffc8b00593140f605 Author: Thibaut Paumard Date: Thu Mar 21 10:40:27 2013 +0100 expose Screen fourvel, screen# in yorick plug-in commit 3a264e2fa242bf1fb3f9c35b6004fb2f99adece7 Author: Thibaut Paumard Date: Wed Mar 20 21:35:46 2013 +0100 fix gyotoy bugs commit 41bdbe7c68a9827a24a8dd8aecc5f1f29abe67da Author: Thibaut Paumard Date: Wed Mar 20 16:42:51 2013 +0100 suppress extraneous output in gyotoy commit ba57d52364a1b4d4dcb54feeda00955d0c388af9 Author: Thibaut Paumard Date: Wed Mar 20 16:26:33 2013 +0100 More documentation about gyotoy commit 98fafbbb7bc363e7b5fe5cc8fafa85c58bb46845 Author: Thibaut Paumard Date: Wed Mar 20 13:54:03 2013 +0100 fix documentation on python 3 and PyGObject commit 718979621af0a47beca5ccc655f42f62f9635646 Author: Thibaut Paumard Date: Wed Mar 20 13:40:52 2013 +0100 Gyotoy: port to python3 commit 26da5715240feabafc52e43a3754c7aa23ff58f8 Author: Thibaut Paumard Date: Wed Mar 20 12:59:17 2013 +0100 Gyotoy: * Port to Gtk3 (a.k.a. PyGObject) * Add possibiility to load metric from XML * Various bug fixes commit ff478ad9bc5f6103c98f5f2a61bafa5cc06067f9 Author: Thibaut Paumard Date: Tue Mar 19 16:16:26 2013 +0100 implement possibility to change delta in Star and Photon from the yorick plug-in commit aaf8e5ae0fadbfa06f8dba9012a95f8db10262b2 Author: Thibaut Paumard Date: Tue Mar 19 15:49:07 2013 +0100 implement setParameter for Spectrometers, export ABI in Yorick Supplier commit 42d56b527809580752474cf88409319294392e46 Author: Thibaut Paumard Date: Tue Mar 19 15:04:28 2013 +0100 fix freqObs usage in PageThorneDisk::processHitQuantities commit 89308d3d0fb58f389e591c3e63b51764693fbb2b Author: Thibaut Paumard Date: Tue Mar 19 14:49:26 2013 +0100 Enable changing freqObs commit 1b619a75a758eeb91e4e431bad653bae2b64f358 Author: Thibaut Paumard Date: Tue Mar 19 11:02:17 2013 +0100 PageThorneDisk: bolometricEmission doesn't need a freq, remove from Yorick plug-in as it can be instanciated with gyoto_Astrobj and updatespin is now useless thanks to the Teller/Listener system. commit 3649da1e7097614ba73818ecb0f0aec057669591 Author: Thibaut Paumard Date: Mon Mar 18 17:17:15 2013 +0100 remove bolometric case from Astrobj. PAgeThorneDisk implements that as User4 commit 6dbdab9f84937cf8252251c86ac355ea1f3f623e Author: Thibaut Paumard Date: Thu Mar 14 22:01:48 2013 +0100 Fix "error: 'Gyoto::Register' is not a function," namespace conflict in Spectrometer.C commit 3be921ec5fa74463bbced2b0bc8dfb22006d2e12 Author: Thibaut Paumard Date: Thu Mar 14 13:26:14 2013 +0100 imporve polishdoughnut doc in yorick commit 5a360e2236cd466a231fa54c1a39294d34d2a9b8 Author: Thibaut Paumard Date: Thu Mar 14 12:39:20 2013 +0100 * Split yorick/gyoto_SpectroUniform.C out of gyoto_Spectrometer.C * Document Spectrometers in gyoto.i * Support units in Spectrometer::getWidths(), getMidpoints(), getChannelBoundaries() * Support reading spectrometer from file commit c73613777e37c8f5ba3a0aa215b4a8edf1f548d4 Author: Thibaut Paumard Date: Wed Mar 13 17:52:31 2013 +0100 Split Spectrometer.C and .h into two files, clean API, update doc commit fd40012fed4d11c1b021c5dfdbaa019ace79a85f Author: Thibaut Paumard Date: Tue Mar 12 18:07:16 2013 +0100 support creating empty Spectrometer::Complex in Yorick commit 7e2480dbad67ad0c733cc6e4c68196856345a081 Author: Thibaut Paumard Date: Tue Mar 12 18:04:32 2013 +0100 implement SpectroComplex in Yorick commit 057d16fb8f5f3d8366ba95fbb03ca7c27c025aad Author: Thibaut Paumard Date: Tue Mar 12 17:04:23 2013 +0100 separate Spectrometer and SpectroUniform in Yorick plug-in commit 90d6e082dc3eb8ebc2f48f373e2b0e9699d26d8c Author: Thibaut Paumard Date: Tue Mar 12 14:34:52 2013 +0100 add missing files commit 784e7adc01ae60cf6f6b22d45582f891b9e1188f Author: Thibaut Paumard Date: Tue Mar 12 14:32:08 2013 +0100 fix yorick plug-in commit d4fb64d8fcf54892466b0c081314a046c94f4ea4 Author: Thibaut Paumard Date: Tue Mar 12 14:10:07 2013 +0100 New Spectrometer Kind: Complex commit 6ca5b14840be29b990063013a9a7313ad33476bd Author: Thibaut Paumard Date: Tue Mar 12 10:27:04 2013 +0100 use a register for spectrometer kinds commit 59a8966cd991e0a3bc5f5e5c01a613a0d04ae5e4 Author: Thibaut Paumard Date: Mon Mar 11 22:12:18 2013 +0100 split Spectrometer into a Generic base and a Uniform subclass commit a8d9ae7ab7df5781544d1a1b1401c6b99c8c17bf Author: Thibaut Paumard Date: Mon Mar 11 11:33:39 2013 +0100 Spectrometer channels may or may not be contiguous. commit 4573ce1ee64af76a594f4fffac6a8b666883a03a Author: Frederic Date: Thu Feb 28 10:50:05 2013 +0100 - Added the Bolometric keyword for Astrobj when bolometric (and not specific) intensity is returned by emission - Astrobj::process deals with boloemtric or specific intensity - Corrected all PageThorne examples that should be bolometric commit 7311719c49bce27058551d543fcb10d42c546891 Author: Frederic Date: Thu Feb 28 10:00:30 2013 +0100 Typo in Scenery commit 61a46b82e211b3e671b4672d75f2e937b7ffac93 Author: Frederic Date: Tue Feb 26 14:32:39 2013 +0100 Updated Photon.C to always store 1 in freq_obs_ This quantity is useless and will be deleted in the future commit 4ffc983cbe9aabb65e15e5da23caab84bfc3ffc2 Author: Frederic Date: Tue Feb 26 13:06:39 2013 +0100 Come back to pre-doppler commit commit a85b3b16d7c4f2171900764c62d71c4f3b487406 Author: Thibaut Paumard Date: Thu Feb 21 18:02:39 2013 +0100 Fix buggy Doppler factor when observer moves commit 691f44db5879ba91f2a78de8f77dc619ae3341b9 Author: Thibaut Paumard Date: Thu Feb 21 11:59:29 2013 +0100 Listeners must unhook from all Tellers in their destructor commit 220cbd7c80bb9103a32fd470b37a981040b9378b Author: Frederic Date: Fri Feb 15 15:08:30 2013 +0100 Typo in Screen. commit cd4019015ab2468e72f6cf04fdaaacc9f7601121 Author: Frederic Date: Fri Feb 15 14:29:15 2013 +0100 Implemented Screen with spherical angles commit 11a82d9f934acf610e9186cb4d3122b984a6236d Author: Frederic Date: Mon Feb 4 18:23:42 2013 +0100 Corrected checkPhiTheta in Worldline.C with modifs in Photon.C accordingly commit c9fe23a0e80574217dc9c1cfd5e79030501553db Author: Frederic Date: Wed Jan 30 17:16:04 2013 +0100 Typo in example file. commit 1b5a5012cc4788c892bf11a041ea62bc9b7265df Author: Frederic Date: Wed Jan 30 16:34:59 2013 +0100 Example file for integration with a given local frame for observer commit 413c242e342c999c454e57c90e1db9a498c00d67 Author: Frederic Date: Wed Jan 30 16:32:59 2013 +0100 Implemented definition of observer's local frame given in XML input file --> allows to properly account for any kind of observer's motion commit 749abccd4378a5eaecb509dfc2cf6ede35a33a14 Author: Frederic Date: Thu Jan 17 17:51:47 2013 +0100 Screen::getRayCoord updated to allow screen orientation through Screen::alpha0_ and Screen::delta0_ Corrected computation of spherical_angle_2 to be OK for not small alpha, delta commit cfb4855f3ce04cb0f5ca910d0e270e515196d529 Author: Frederic Date: Wed Dec 19 16:29:21 2012 +0100 Updated test for norm conservation, passed to norm/tdot conservation commit 6b67e12aa272510530a2734f61be8a2cc1add54b Author: Frederic Vincent Date: Thu Dec 6 16:03:12 2012 +0100 Moved checkPhiTheta from Astrobj to Worldline Added call to checkPhiTheta in Worldline::getCoord commit 47a6cd46cbbca22b1a657211405d8b0f24eb99a4 Author: Frederic Vincent Date: Wed Dec 5 16:59:55 2012 +0100 In KerrBL.C contravariant metric in a more readable form commit 294d3335fdbdee7ae230e330170cb6f3d4ac019f Author: Frederic Vincent Date: Wed Nov 28 15:57:36 2012 +0100 Add contravariant Kerr metric commit 78d30c895db0ca362ac249852e73cf89e23a4b67 Author: Thibaut Paumard Date: Tue Nov 20 21:57:08 2012 +0100 Document Hooks commit 2acab338da5598f280f2a7ec3c156f79cc1356c6 Author: Thibaut Paumard Date: Tue Nov 20 20:55:37 2012 +0100 Fix in Worldline::tell(): must reset particle properties (Metric::Generic::setParticleProperties()) commit 7c0215c075416a599a2f0865295162405da87355 Author: Thibaut Paumard Date: Tue Nov 20 18:33:42 2012 +0100 Hook worldline to metric (using Hook::Teller/Listener) commit 8573cb991072749fc27e60c0c909afaec288749c Author: Thibaut Paumard Date: Tue Nov 20 16:36:17 2012 +0100 Move Hook::ListenerItem to Hook::Teller::ListenerItem and hide it. It's an implementation detail. commit fc0fad546a9513b5c3b0d33280de9e0452fad668 Author: Thibaut Paumard Date: Tue Nov 20 09:19:38 2012 +0100 Photon::clone(): reattach Metric to Astrobj commit 8c9db127d5314e018c9ee30d15eae278978cce51 Author: Thibaut Paumard Date: Mon Nov 19 11:36:07 2012 +0100 Fix RotStar3_1 copy constructor to get example-fixedstar-rotstar3_1.xml working commit 815112c00ccb398cf5ff8de3c87bb1c0e10c7259 Author: Thibaut Paumard Date: Mon Nov 19 10:41:31 2012 +0100 Implement hook system so that a Metric can warn objects when it changes commit 14a1447878cdff5f93ea46129f3f5626332d3976 Author: Thibaut Paumard Date: Mon Nov 12 18:05:04 2012 +0100 Use the setParameter(s) paradigm for Metrics as well. Ability to instanciate any Metric from the Yorick plug-in. Fixes in RotStar3_1. commit 0ec6dad93d122e2f0d0db1504f75f62f0398998f Author: Thibaut Paumard Date: Mon Nov 12 15:52:37 2012 +0100 Ability to instanciate any Astrobj of Spectrum in Yorick commit 4c3593e417c01146f92a5106e8a89197e66df4c9 Author: Thibaut Paumard Date: Mon Nov 12 11:43:55 2012 +0100 * Spectrum: + use a templated subcontractor + accept unit in seParameter(not used yet) + ability to instanciate arbitrary Spectrum in yorick: sp = gyoto_Spectrum(kind) sp, setparameter=name, content commit f463d49635774ac0264fc4692ade84c8a7caf395 Author: Thibaut Paumard Date: Mon Nov 5 15:51:37 2012 +0100 PolishDoughnut: allow setting the spectral oversampling used in integrateEmission() commit 75d8d882ec877fa8eeb40d608f7d9c125be5688a Author: Thibaut Paumard Date: Sun Nov 4 21:27:29 2012 +0100 * Astrobj: integrateEmission takes arrays as input/output * PolishDoughnut: integrateEmission() uses emission() and oversampling commit dc0a065da77ac8ab094a7f09e498e9b61cef90cf Author: Thibaut Paumard Date: Sat Nov 3 16:51:59 2012 +0100 PoishDoughnut: Try secant method for finding root of transcendental functor. Use Ritter's method as a fallback. Clean PolishDoughnut from now unused code. Make math functions static members. commit 8af3691bed67f7ddbea8ea8a6e175e5ad0967537 Author: Thibaut Paumard Date: Sat Nov 3 16:51:04 2012 +0100 Implement Gyoto::Functor::Double_Double_const::secant() root-finding method commit dd54ef81e3e485a205b26b3006b3b4977c2443a8 Author: Thibaut Paumard Date: Sat Nov 3 12:37:33 2012 +0100 Use Ridders' root-finding method instead of bisection*(). Implement intersection() as a Functor. commit 5d04756735cfcc67054cab10de1c08967798aa68 Author: Thibaut Paumard Date: Sat Nov 3 12:35:24 2012 +0100 * New source: lib/Functors.C * Implement Ridders' root-finding method for Functors::Double_Double_const commit 2fad938cb9005f6b4a96d6e87c9ea2bf167c38f6 Author: Thibaut Paumard Date: Fri Oct 26 20:57:35 2012 +0200 support for im=sc(,,"Intensity[unit]") in yorick plug-in commit 1b10cf4f583723bc529bda14bebcf8b02e5c42ab Author: Thibaut Paumard Date: Fri Oct 26 15:30:14 2012 +0200 fix grave bug in Spectrometer::setBand(band, unit): only band[0] was converted commit ad7e980fa13cdf7cc967f4a9c950077a9520aa0a Author: Thibaut Paumard Date: Fri Oct 26 15:17:27 2012 +0200 * implement multithreading in Yorick plug-in's gyoto_Scenery operator () * fix PolishDoughnut's copy operator which prevented the PolishDoughnut from working in a multi-threaded environment commit 2f05e3368958919bb717181860c2ceeb10f6e3a8 Author: Thibaut Paumard Date: Thu Oct 25 21:38:16 2012 +0200 * improve configure tricks to read Lorene's local_settings * protect make check from GYOTO_PLUGINS environment variable commit dc0b79b4fcf54de431f2d4535e255284fa370f34 Author: Thibaut Paumard Date: Thu Oct 25 21:14:52 2012 +0200 * make configure more resilient on make behavior variations commit 4f7e08a39bb3e4fdf210a58dfad80a623626f1b7 Author: Frederic Vincent Date: Thu Oct 25 18:09:32 2012 +0200 Warnings in Disk3D_BB commit d9a86c165635fdd4733f81f53a6d9d83d87ffb6d Author: Thibaut Paumard Date: Thu Oct 25 12:59:27 2012 +0200 * minor optimizations * many warning fixes (--enable-hardening) commit 2cff2879a0a9975b6dd121586b4b9e474eec36da Author: Thibaut Paumard Date: Thu Oct 25 10:01:09 2012 +0200 * implement Units::Converter::reset() * implement default Converter constructor (trivial converter) * fix warnings in Screen commit 960430153b1ddd65b47fa4d9a97dcf91ce489f17 Author: Thibaut Paumard Date: Wed Oct 24 22:18:17 2012 +0200 clean Converter API commit e1b15d0146cde835a7ebd0dcdc841995de9b41ab Author: Thibaut Paumard Date: Wed Oct 24 19:52:27 2012 +0200 use "make -s" instead of "make" to retrieve Lorene configuration commit ded0931e8bbbaa4ca17210d6028a21b296b35857 Author: Thibaut Paumard Date: Wed Oct 24 17:59:55 2012 +0200 * add unit support to Spactometer::setBand() * implement Units::To/FromHerz * To/FromHerz and To/FromMeters can convert between length, duration and frequency commit b656125cb3b2b735aed8d6178cd7ce37761df5b9 Author: Thibaut Paumard Date: Wed Oct 24 11:27:32 2012 +0200 * interpret units as UTF-8 instead of ASCII * (re)introduce units: as, mas, µas, °, kyr * implement To/FromGeometricalTime() * re-work PolishDoughnut example to be closer to observation commit 6a163a70902942343fc3bbca45bcaf32594ae29e Author: Thibaut Paumard Date: Tue Oct 23 21:37:51 2012 +0200 fix Scenery constructor commit 330cc0cc367cc943fa7a2540d56ffc54930872fe Author: Thibaut Paumard Date: Tue Oct 23 21:18:02 2012 +0200 (double) linking yorick plug-in with xerces-c is actually needed (under Darwin) commit d0da753a5007372643f3d0788944b3f98e56e175 Author: Thibaut Paumard Date: Tue Oct 23 20:42:06 2012 +0200 Don't link the yorick plug-in with xerces-c, cfitsio or udunits2: this is unnecessary double linking which sometimes prevents the plug-in from running with strange behavior (seen under Mac OS X). commit 0d1faa78acbda296c0a66e8960f5bf54db6991be Author: Thibaut Paumard Date: Tue Oct 23 14:37:11 2012 +0200 Document include/GyotoConverters.h commit dd78b821d2113df93aa5f6dea6fc81412dfda2ae Author: Thibaut Paumard Date: Tue Oct 23 11:46:36 2012 +0200 support for units in Metric::set/getMass and unitLength() commit f21b60f26b426ce903fcd4621649ba4ce1d5c1cb Author: Thibaut Paumard Date: Tue Oct 23 11:00:31 2012 +0200 * support for "pix" unit in Quantities: pix is the angle covered by a Screen pixel * support for units in Scenery::set/getDelta() and set/getTmin() commit 10a25cce8d868270d63039fb52d02018a47f4f96 Author: Thibaut Paumard Date: Mon Oct 22 19:17:56 2012 +0200 fix syntax error in yorick/check.i commit b1e0d4d99821f76ab1a0cd84947bb40e55bb60ed Author: Thibaut Paumard Date: Mon Oct 22 17:48:50 2012 +0200 fix missing -ludunits2 in some cases in configure commit 1eba0ab051cb1ef782f22877669b63085792974d Author: Thibaut Paumard Date: Mon Oct 22 17:38:06 2012 +0200 * Support for units in Screen properties * new APIs: To/FromSeconds and others commit a4441eb1a5c6f5d0cb1dd97d33771af4242f4ab1 Author: Thibaut Paumard Date: Mon Oct 22 14:11:12 2012 +0200 udunits support in Screen::fov_ commit f39df39152ce2f118acfaf7e1fb22ba2927c2cc9 Author: Thibaut Paumard Date: Mon Oct 22 13:22:15 2012 +0200 Add unit support for many Astrobj properties commit 2e5eddd4cb048d5c78c864fcc260c4787cb86a19 Author: Thibaut Paumard Date: Mon Oct 22 11:33:40 2012 +0200 * start supporting units from Astrobj objects in Yorick plug-in * fix Astrobj::Standard::fillElement to call Astrobj::Generic::fillElement commit fb23f29eb9a6f8a22e833a4d38aa6a934a407659 Author: Thibaut Paumard Date: Mon Oct 22 09:04:23 2012 +0200 add --with-udunits-inc and --with-udunits-lib configure options commit e2b4fd7f7aef7d080c9a8656524d2e9486e50d1f Author: Thibaut Paumard Date: Fri Oct 19 20:22:58 2012 +0200 Generic support for units in XML files, in particular for Astrobj commit b742b53e8555bc989131139a420d429518f1d7ba Author: Thibaut Paumard Date: Fri Oct 19 11:43:11 2012 +0200 * Add copyright to polishdoughnut * PolishDoughnut::emission() returns SI * Use udunits par défaut commit 5a99a140418ba894347a9842fb8c65382a061de8 Author: Thibaut Paumard Date: Thu Oct 18 19:23:23 2012 +0200 Import PolishDoughnut commit 3f8a034141ab89586837c1f73c79528dfd37aa4e Author: Thibaut Paumard Date: Thu Oct 18 16:45:45 2012 +0200 Support converter for Intensity and Spectrum (--with-udunits) commit b2d1323067831e75d2d1c09777c3fd7a851a2ab8 Author: Thibaut Paumard Date: Thu Oct 18 11:27:49 2012 +0200 work towards unit converters: introduce lib/Converters.C and include/GyotoConverters.h commit 96bcae6a43a48db80372b3232f7369e26686e88d Author: Frederic Vincent Date: Thu Oct 18 16:47:04 2012 +0200 Updated include/GyotoDisk3D_BB.h and lib/Disk3D_BB.C to take into account Bremsstrahlung emission + absorption. commit 4930726d6ca2996d94e6bf56010a4598de96a5d4 Author: Thibaut Paumard Date: Wed Oct 17 17:27:51 2012 +0200 Implement Photon::getTransmissionMax() commit 9ec6d52c3dec0cf41773be3ae83b45c3f7add7d5 Author: Thibaut Paumard Date: Wed Oct 17 16:31:51 2012 +0200 experimental support for units using libudunits (enable with --with-udunits) commit d3423fcdabeab2818e87c7bbc31f0985fbca5799 Author: Thibaut Paumard Date: Wed Oct 17 09:41:05 2012 +0200 fixup! AC_SUBST SYS and plugin_sfx, used under Darwin for yorick/stdplug commit c23c8ec52d12bf97eaba6ad5e2a11ca91b39db57 Author: Thibaut Paumard Date: Tue Oct 16 21:53:05 2012 +0200 AC_SUBST SYS and plugin_sfx, used under Darwin for yorick/stdplug commit 95194fcddd800924fb28d28564f3764c8b457aff Author: Thibaut Paumard Date: Tue Oct 16 21:36:47 2012 +0200 yorick/check-scenery.i: #include "util_fr.i" commit 78308f00b4a2e867af3f218720319720edc9a8c5 Author: Thibaut Paumard Date: Tue Oct 16 17:34:45 2012 +0200 make --enable-pthreads the default commit f02fa3606ea1e0a34397d190c03a682124f4c978 Author: Thibaut Paumard Date: Tue Oct 16 16:45:49 2012 +0200 improve thread-safety (add SmartPointee::mutex_) commit f27966ee32aeeff1efa0c5f07de0b6115d2d32c1 Author: Thibaut Paumard Date: Tue Oct 16 11:35:43 2012 +0200 include GyotoConfig.h in ygyoto.h commit 9f1e83ede206dde39ad2e6703cc0ca762a63b88e Author: Thibaut Paumard Date: Tue Oct 16 11:09:55 2012 +0200 Store configuration in include/GyotoConfig.h commit 01c60fb2ddd55440ba58558f1485bc92b916c7aa Author: Thibaut Paumard Date: Mon Oct 15 18:02:11 2012 +0200 add @DEFS@ to *.pc so gyoto-obspm knows about HAVE_SINCOS commit 136afeeb0161daeb77821c297d66797ef1bf1edf Author: Thibaut Paumard Date: Mon Oct 15 17:38:49 2012 +0200 (Re-)enable building without xerces but warn about the consequences commit b61ea79247a62f33f1255edbf78987fe790c102f Author: Thibaut Paumard Date: Mon Oct 15 11:26:35 2012 +0200 improve HOME_LORENE checking commit 840da4c2a279e4feeb98e29c4b046337e6dc3520 Author: Thibaut Paumard Date: Mon Oct 15 10:44:05 2012 +0200 * Simplify configure.ac by using m4/ macros for --enable-(native|hardening) * Make --enable-(native|hardening) also add there flags when CXXFLAGS and/or CPPFLAGS where set * Clean configure help strings commit 35ae196a80b42af37e94dc108be9700fad7333ff Author: Thibaut Paumard Date: Mon Oct 15 09:11:51 2012 +0200 Make sure configure fails if --with-(xerces-cfitsio)* is set but the corresponding library is not found. commit 6a2f8acf1bbe341efe6de00fd11e4b4c2b5a3fae Author: Thibaut Paumard Date: Sun Oct 14 21:22:42 2012 +0200 test hardening flags before before adding them commit b404b5e771f1ee7a38e2dd54f09e7211f243cb2f Author: Thibaut Paumard Date: Sun Oct 14 11:25:12 2012 +0200 Check whether compiler supports -march=native before adding it to CXXFLAGS commit d25ef5acb39cb91e6ad2e6b7e8ce3847618d4669 Author: Thibaut Paumard Date: Sat Oct 13 15:44:09 2012 +0200 Revert --disable-native -> --enable static and --disable-hardening -> --enable-hardening commit 19650c84c6234658029c6b8fd003c35bc55ea8c4 Author: Thibaut Paumard Date: Sat Oct 13 15:26:37 2012 +0200 Test for sincos in configure. Implement it as a macro in GyotoDefs.h if missing. Remove other unused configure tests. commit 2f2663d2b983d184fd31391ad198d5737ab55e6d Author: Thibaut Paumard Date: Fri Oct 12 16:28:38 2012 +0200 typo fix in configure.ac: -I -> -L in cfitsio_lib=-L$with_cfitsio_libs commit 72f9ef70fdc7688affb49a5e8e04c6463ff658b5 Author: Thibaut Paumard Date: Thu Oct 11 10:17:02 2012 +0200 Optimize KerrBL::diff() (and others) to avoid multiple divisions and pow() calls. commit 737c15138375d5fa86bdb32e7cd1f0bcff6c7bf4 Author: Thibaut Paumard Date: Wed Oct 10 16:40:57 2012 +0200 Add pedantic warnings and hardening flags to default CPP/CXXFLAGS. Use --disable-hardening to disable. commit c3bddf272bc8445d17abbdabe770d67d4b95ec68 Author: Thibaut Paumard Date: Wed Oct 10 14:00:35 2012 +0200 Don't build static libraries by default commit c17041083a06f26ff968b710e8b557354c8fc918 Author: Thibaut Paumard Date: Wed Oct 10 11:37:07 2012 +0200 add -march=native to the default CXXFLAGS commit 7317458529bb3a0c5d7338b5df3f77b7b248a537 Author: Thibaut Paumard Date: Tue Oct 9 16:56:09 2012 +0200 10-fold speed gain by not calling tan()! commit 5d5376f69b35e355f5d4c8367705afb1bf763415 Author: Thibaut Paumard Date: Tue Oct 9 16:08:05 2012 +0200 add GYOTO_*DEBUG* macros; add --disable-debugging configure flag which save a marginal amount of computing time commit fc528a3f1e7d3e7359d114860ac439849b9bab6c Author: Thibaut Paumard Date: Mon Oct 8 14:24:37 2012 +0200 store pthread flags in gyoto*.pc commit 50bbc6618fe7983b20df9cf9664bb132948eaa2e Author: Thibaut Paumard Date: Fri Oct 5 23:04:03 2012 +0200 build with -pthread again commit 9800f962b37537ef1173d50bc2b5e5e150fc6291 Author: Thibaut Paumard Date: Thu Oct 4 22:23:58 2012 +0200 add --enable-pthreads configure option commit e8fd135e2aa4efdd0adea066d461255ee673bce8 Author: Thibaut Paumard Date: Wed Oct 3 10:49:12 2012 +0200 add --disable-doc option to configure commit a3ceec86062d16591bf150f8613e1e48c9a29410 Author: Thibaut Paumard Date: Wed Oct 3 09:55:58 2012 +0200 disable yorick in lib/gyoto-uninstalled.pc.in commit 23aaaf5aca44c6159e2da5123572c8ab65589cd7 Author: Thibaut Paumard Date: Mon Oct 1 21:57:11 2012 +0200 throwError in Screen::getRayCoord() when on z-axis in spherical coordinates commit 54f0a0bc412c41b639bb3da4cec936b44d618792 Author: Thibaut Paumard Date: Mon Oct 1 14:34:33 2012 +0200 rename tlim->tmin in Worldline, Photon and Scenery. Default value is -DBL_MAX commit f15de6b70c52455749edae83b6802a7b4c2db251 Author: Thibaut Paumard Date: Sat Sep 29 08:53:02 2012 +0200 add .gitignore commit e19e026afc04fbcd0abaf82bc2b53c730578c92a Author: Thibaut Paumard Date: Sat Sep 29 08:43:02 2012 +0200 update ChangeLog commit 5b80bbfa6e864e90cfb26254fe9dcdb44a54e410 Author: Thibaut Paumard Date: Sat Sep 29 08:22:53 2012 +0200 fixup! * add --plugins parameter to gyoto executable; * add plugin attribute to Metric, Astrobj and Spectrum XML entities commit 250fa2dfbe3a759673114ec96c035afba6c28eba Author: Thibaut Paumard Date: Sat Sep 29 08:13:42 2012 +0200 * add --plugins parameter to gyoto executable; * add plugin attribute to Metric, Astrobj and Spectrum XML entities commit 88cab19bf71bc204053c5c0ab4c38793a1d8cf9c Author: Thibaut Paumard Date: Fri Sep 28 19:49:33 2012 +0200 * add nofail keyword to gyoto_loadPlugin * load stdplug plug-in in gyoto_std.i commit c32e7b43c3d61593c4c6a3e1131a65eb7393d81c Author: Thibaut Paumard Date: Fri Sep 28 17:52:50 2012 +0200 expose Gyoto::loadPlugin() to Yorick commit 87f87ab03fdfd7ab60ff63ef1a3211a865566173 Author: Thibaut Paumard Date: Fri Sep 28 14:32:36 2012 +0200 add GYOTO variable to lib/*.pc commit 67ace2662805e061e13be804d7c5fdaf0a43d0f8 Author: Thibaut Paumard Date: Thu Sep 27 22:04:08 2012 +0200 actually link lorene module with lorene! commit 48ac3463a89f9933b8b9a600a1075309c1649a6b Author: Thibaut Paumard Date: Thu Sep 27 16:47:13 2012 +0200 add -DGYOTO_USE_LORENE to LORENECPPFLAGS when appropriate commit 07439a5fcbd0f369adacf2ecd4189a0c013fc44d Author: Thibaut Paumard Date: Thu Sep 27 16:28:06 2012 +0200 add lib/gyoto-uninstalled.pc.in to ease building plug-ins from uninstalled gyoto commit 6fb54ab79bdb882411433035b065230723e02ce6 Author: Thibaut Paumard Date: Thu Sep 27 15:50:14 2012 +0200 add m4/pkg.m4 (pkg-config) commit 977db71169513c319ede6cbaba23e49c1165de06 Author: Thibaut Paumard Date: Thu Sep 27 15:49:45 2012 +0200 Better integrate lorene build commit 1ac339c17c8698f8ec3ce25f394765ad97a41c32 Author: Thibaut Paumard Date: Thu Sep 27 14:31:33 2012 +0200 implement Astrobj::emission(double Inu[], double nuem[], nbnu,...) commit ffa38dc40ee1c34a922e1df028f337d269d26f1e Author: Thibaut Paumard Date: Thu Sep 27 14:30:19 2012 +0200 Use pkg-config if available for xerces-c and cfitsio and process gyoto.pc accordingly commit 35330aa7cde02ff2f19264adb08cdda758b97872 Author: Thibaut Paumard Date: Tue Sep 25 15:08:32 2012 +0200 add -lfftw3 to lorene ldflags commit 7373839eb94c3b617d2f50ce4165777ec5f52587 Author: Thibaut Paumard Date: Tue Sep 25 15:02:51 2012 +0200 By default, install yorick plug-in under ${prefix} even if Yorick is not there. commit 797c88873ce50cb2dfd519d77c4e26b084dc291e Author: Thibaut Paumard Date: Mon Sep 24 15:56:01 2012 +0200 PatternDisk: minor edit in debug output lib/automakefile*: link libgyoto-stdplug with cfitsio commit f336bd0990c7307caa916ee38ef8b81ac8b7cfe5 Author: Thibaut Paumard Date: Wed Sep 19 10:54:36 2012 +0200 * INSTALL: document additional Yorick packages * gyoto.pc: use GYOTO_ prefix in variables commit ece1730f89f9b8df1e1a2991e7f75d089dd4fdcb Author: Thibaut Paumard Date: Tue Sep 18 13:51:18 2012 +0200 Specify $(XEERCESLDFLAGS) in bin/Makefile* instead of (or rather in addition to) relying on libtool to keep its promises commit 9ca8955bd796f96ed11a40bc47903ea55871b1d6 Author: Thibaut Paumard Date: Tue Sep 18 10:47:50 2012 +0200 * ship m4/* files instead of symlinks * don't use "VERSION" file in configure * includes are in srcdir, not builddir commit 33a25f7a05f5741589d0dde5fcf3b86861830610 Author: Thibaut Paumard Date: Thu Sep 13 00:19:26 2012 +0200 Revamp the build system based on the autotools commit 101db9603c1b18d43ab922ba666cfb63c32e4f1f Author: Eric Gourgoulhon Date: Tue Sep 11 23:41:42 2012 +0200 Suppressed the reference to local_settings_ubuntu in the file INSTALL.ubuntu commit 31d27b9676a5f278c0b1a1667cad00e4a549c837 Author: Eric Gourgoulhon Date: Tue Sep 11 23:36:58 2012 +0200 Suppressed the newly added local_settings_ubuntu commit 692dad1ec8d3d5ae1849ab6c80b5ba9dfcea912c Author: Eric Gourgoulhon Date: Tue Sep 11 21:43:15 2012 +0200 Re-added the template file local_settings_ubuntu commit a97de6ca50664160c2fe459ca56b75571bcdc5ec Author: Thibaut Paumard Date: Mon Sep 10 21:11:21 2012 +0200 make mk-movie*.i scripts executable commit 7b5c5313948b07bc7ee289d803b9fed021b0d64e Author: Thibaut Paumard Date: Mon Sep 10 20:52:08 2012 +0200 bin/Makefile: put gyoto.o in front of the libraries when linking (matters for some linkers) commit 63f2e6a5860ace1b5f3d8d650dce003f5d76180f Author: Thibaut Paumard Date: Tue Jul 3 15:07:46 2012 +0200 Mention prepackaged binaries in INSTALL commit f83341793968069e0ca68aadc80699b448f3886b Author: Thibaut Paumard Date: Sun Jun 24 11:13:07 2012 +0200 * fix buffer overflow in lib/Factory.C * update paper ref in bin/gyoto.C * take environment (CXX|CPP|LD)FLAGS into account in local_settings * harden CXXFLAGS by default, may not work for all arches commit 6db2175d4955247ea307a96eaaaaee0b26740cdd Author: Thibaut Paumard Date: Sun Jun 24 08:44:12 2012 +0200 Add Spectrum::Generic::~Generic() virtual destructor commit 58db9308dcfff681fa850f113c0d4ed82088edb6 Author: Thibaut Paumard Date: Thu May 10 17:55:46 2012 +0200 yorick: put -L../lib and -I../include in front of COPTS commit dab4e175a691990be136aefd9984a5155eb50c39 Author: Frederic Vincent Date: Wed Jun 20 13:22:05 2012 +0200 In Disk3D_BB.C: computation of Sem, Vem updated commit 1dbb3a3ef4517cc861a8093b03c3825575b68b89 Author: Frederic Vincent Date: Wed Jun 13 11:57:29 2012 +0200 Disk3D_BB.C: updated computation of Sem, Vem commit 9f7ba8d9f6517986f0b0b36c9b49b077144ad1b2 Author: Thibaut Paumard Date: Thu May 10 17:55:46 2012 +0200 yorick: put -L../lib and -I../include in front of COPTS commit be59e67e53c1c741b4dd10ab5870111feac3e979 Author: Thibaut Paumard Date: Thu May 10 17:24:26 2012 +0200 bin: clean bin/Makefile, rm gyoto.o in make clean, add includes for getpid() in gyoto.C commit 3bd00b018b0b35d632df060ca1240284be6e69bd Author: Thibaut Paumard Date: Tue May 1 18:08:09 2012 +0200 fixup (s/CFITSIO_PATH/CFITSIO_LDFLAGS/ local_settings) commit e78c12fd42456df8f852dbef8df1852f23479f22 Author: Thibaut Paumard Date: Tue May 1 13:41:58 2012 +0200 0.0.3 release commit 26c93688c912bf6397298b39cdbbc16fa4eba12d Author: Thibaut Paumard Date: Tue May 1 12:59:08 2012 +0200 + initialize PatternDisk's phimin_/phimax_ to 0 and 2*pi + use standard flags CXXFLAGS/LDFLAGS/LDLIBS commit f8e9303ecb43db03c1e0e7083f61f0765ea595dd Author: Thibaut Paumard Date: Thu Apr 26 11:22:11 2012 +0200 add github URLs in mk-movie-fork-raytracing.i commit 6fa5d65349fd6df471a6ba7b37f6da013ab76003 Author: Thibaut Paumard Date: Thu Apr 26 11:04:12 2012 +0200 document mk-movie-fork-raytracing.i commit b1a612f121d01e89453485a46eb2402a02eff7d1 Author: Thibaut Paumard Date: Wed Apr 25 21:18:24 2012 +0200 * use gettimeofday() for profiling * clone Photon in _each_ thread, including the parent (when nthreads_ > 1) * include mk-movie*.i commit 26a32b02b49a77a5a3b38229a09c99470d92aebc Author: Thibaut Paumard Date: Mon Apr 23 20:17:42 2012 +0200 implement explicit KerrBL copy constructor SceneryThreadWorker returns NULL commit 8fd8ed3ad732e914d81da36e782a8edea756606a Author: Thibaut Paumard Date: Sat Apr 21 23:16:10 2012 +0200 + bugfix: initialize xnthreads in bin/gyoto.C + add gyoto_verbose() in yorick/gyoto_utils.C + improve informative output in Scnery::rayTrace() commit 565a9b031f2d1dc2985f6e967bb17ab1f457c35b Author: Thibaut Paumard Date: Sat Apr 21 00:47:47 2012 +0200 provide an actual API for Scnery::nthreads_ rework yorick/gyoto_Scenery to render gyoto_Scenery_rayTace usable, it is the only way use nthreads from within yorick commit a9728a0136cc4bbf0e36f9277a2e3ca009ad8921 Author: Thibaut Paumard Date: Fri Apr 20 15:20:42 2012 +0200 initial attempt at a multi-threaded Scenery::rayTrace commit c69f75261bbc942adcbd9b9d46fddef62af29ba6 Author: Thibaut Paumard Date: Thu Apr 19 10:00:47 2012 +0200 add ChangLog, update copyright commit f8472f174108cb6cae554f89da3fab7cc7557d33 Author: Thibaut Paumard Date: Thu Apr 19 09:34:56 2012 +0200 install include files in include/Gyoto/ commit 41485117bcb304cdc6633c9b8efc1be539ae5e7f Author: Thibaut Paumard Date: Mon Apr 16 14:09:47 2012 +0200 remove NULL default argument to Spectrum::Subcontractor_t, which is useless and makes build fail with icc. commit e62b6e834e5007b8f34e50aac6d96df502ba29bc Author: Thibaut Paumard Date: Sun Apr 15 15:33:50 2012 +0200 add GYOTO_INC to PKG_CFLAGS in yorick Makefiles commit 5138519bc68382105637ecbaec2094532704c31a Author: Frederic Vincent Date: Fri Apr 13 12:16:05 2012 +0200 Code cleaning in WorllineIntegState. commit 29a2d7436ea852cb744ee45305c8bd7b722edab9 Author: Frederic Vincent Date: Tue Apr 3 17:25:19 2012 +0200 Corrected typo in local_settings: INC->GYOTO_INC in section "Path for the include files" commit 56c32b3195281cdb03d4281e23fb90e77a1b7e60 Author: Frederic Vincent Date: Tue Mar 13 12:38:16 2012 +0100 Simplifying expression of Vem in Disk3D_BB.C commit eb59bb0da7a84da7510d0a8b5298e3e85d68fa68 Author: Frederic Vincent Date: Tue Mar 13 11:48:49 2012 +0100 Modified jnu computation in Disk3D_BB.C commit b276815f865231983c117dad76693d8fb255dd94 Author: Frederic Vincent Date: Wed Feb 29 11:54:17 2012 +0100 * Added test on val in StandardAstrobj::Impact before going to process commit c4ba43a80101b5c11e8f937cd76b35a388b9631d Author: Frederic Vincent Date: Tue Feb 28 18:19:25 2012 +0100 * Modified computation of jnu in Disk3D_BB commit 68d60d856e3c932d1dce73c4a84ad4aa0be586c2 Author: Frederic Vincent Date: Fri Feb 24 09:10:57 2012 +0100 * Changed computation of jnu in Disk3D_BB * Changed computation of T in PatternDiskBB and ThinDiskPL commit d70f6d45dda64e513687fd620e675e968ec87546 Author: Frederic Vincent Date: Wed Feb 22 19:02:40 2012 +0100 * Changed i[1] computation in getIndices in Disk3D and PatternDisk * Error message for jnu computation in Disk3D_BB commit fddb718998a6210d1b083bcf4ef5f43f24be3e32 Author: Frederic Vincent Date: Wed Feb 22 17:55:03 2012 +0100 * Added impact time for data in Disk3D * Changed computation of jnu in Disk3D_BB * Changed definition of rmax_ in PatternDiskBB commit a8e4ac4360d9164c7fc2a47ef1f81590d171d861 Author: Frederic Vincent Date: Wed Feb 22 10:34:44 2012 +0100 * Computation of nr_, nphi_, nz_ in PatternDisk, Disk3D is updated * Added phimin_ and phimax_ in PatternDisk, Disk3D * Added ThinDiskPL class for powerlaw thin disk commit 35617c762a1039471796e6f05e11863c4fb5c833 Author: Frederic Vincent Date: Thu Feb 16 18:02:40 2012 +0100 + Add call to checkPhiTheta in ThinDisk.C commit b1d851c6712ddef01a3819023a31ca90e2086659 Author: Frederic Vincent Date: Thu Feb 16 13:10:50 2012 +0100 + Added null tests in PatternDisk and Disk3D commit 4700b0e6918dfd2dfcf993bbe94f5e86abefdae4 Author: Frederic Vincent Date: Mon Feb 13 19:22:08 2012 +0100 * Changed treatment for power law part of disk commit 43e5cc37efee709f4f86368d4328a4b06f4182aa Author: Frederic Vincent Date: Tue Feb 7 18:32:32 2012 +0100 * Moved giveDelta() to StandardAstrobj * Implemented non-adaptive integration inside optically thin object in Standard::Impact() + Added many csts in GyotoDefs.h for PolishDoughnut physics commit 84de159c9ce52e279cb48f319b20859b4fd851a1 Author: Frederic Vincent Date: Mon Feb 6 17:19:53 2012 +0100 + Add Generic::giveDelta to implement integration inside optically thin object + Modified Photon::hit to take giveDelta into account + Add call to checkPhiTheta in StdAstrobj::Impact commit 5d05cb0a06e93ceea9d701b28c122c64a37b698a Author: Eric Gourgoulhon Date: Sun Feb 5 16:38:51 2012 +0100 Installation instructions for Linux Ubuntu. commit 77b0f6177eae0570db9fbefd3917457740e6ba42 Author: Eric Gourgoulhon Date: Sat Feb 4 18:45:19 2012 +0100 -- Added template local_settings file for Linux/Ubuntu systems -- Change in lib/Makefile to fix a link issue on Ubuntu 11.10 commit dc078a643ef14ccf014fb6279bcce9375d17279d Author: Frederic Vincent Date: Fri Feb 3 17:00:58 2012 +0100 * Added {} in switch calls in Disk3D.C commit 96519bb02c9adb70f0a03648b411c2a4845ba698 Author: Frederic Vincent Date: Fri Feb 3 08:03:09 2012 +0100 * Put some {...} in Astrobj::checkPhiTheta commit 98d19668e3d62ae6f6c5cd200e1de1fc88661d63 Author: Frederic Vincent Date: Thu Feb 2 19:31:47 2012 +0100 + Add Disk3D_BB subclass with implementation of black body emission for 3D disk and dynamical evolution taken into account + Add function checkPhiTheta in Astrobj to insure theta and phi are in the correct range commit 6c91c6c772ef873c5241266965b037ffbe67e412 Author: Frederic Vincent Date: Wed Feb 1 20:37:16 2012 +0100 + Add Disk3D class, also in yorick plug-in First version, compiles, runs, but not to be used for physics yet... commit 955536e5cd9217aea01ec7a97a8820bc1ca73832 Author: Frederic Vincent Date: Fri Jan 27 12:08:16 2012 +0100 + Add special treatment when impact point is below ISCO in PatternDiskBB + Add setprecision in WorldlinIntegState for display of current position in nextStep() commit 3745d3bb2a2659fbe9b4fbd5041e983b9be35a36 Author: Frederic Vincent Date: Fri Jan 20 16:48:26 2012 +0100 * Typo in DynamicalDisk::setParameter commit d58f6c5b4b7da7886cba11884f9156871d28f800 Author: Frederic Vincent Date: Fri Jan 20 16:44:57 2012 +0100 * Bug fixed in DynamicalDisk::setParameter commit ab712dc4d004fb9cac80f971adb6cf7c43288ea2 Author: Frederic Vincent Date: Thu Jan 19 16:53:46 2012 +0100 + Added class DynamicalDisk that deals with evolving disk commit b4d73ca14b2d05333de91d09912a553c9e6b3aa8 Author: Frederic Vincent Date: Thu Jan 19 16:50:01 2012 +0100 * Functions getEmission, getRadius, getVelocity in PatterDisk * Added one forgotten line with rmax_ condition in PatterDiskBB * User1 quantity added in ThinDisk to compute t_impact if needed commit c97a3e724475c0667474e16fd99e583b8598e8af Author: Frederic Vincent Date: Tue Jan 17 11:19:39 2012 +0100 PatternDiskBB update. Added setMetric and call to getRms; some code cleaning; seems to work ok commit f1c037e47ae802453e097b602858f5705ad72aed Author: Thibaut Paumard Date: Tue Jan 17 10:23:14 2012 +0100 lib/PatternDisk.C: bugfix: brackets around {delete [] array; array = NULL;} pairs. commit bc7fc63a284704e5d46774964d08b94134a6bfe7 Author: Eric Gourgoulhon Date: Mon Jan 16 16:28:33 2012 +0100 Added some include () commit 58b3935726808cf6885f131ccbb7c5274a25e37e Author: Frederic Vincent Date: Mon Jan 16 12:23:55 2012 +0100 New sub-class PatternDiskBB, heir of PatternDisk, with black body emission spectrum. The quantity PatternDisk::emission_ now bears temperature of emission. commit f3444c51537e11d0268dfacd6d453697b4270cb9 Author: Thibaut Paumard Date: Wed Dec 21 09:42:09 2011 +0100 Add ThinDisk::thickness_ commit 2620371c1d7747d5ccb9f2d0e4043e327fca8bc5 Author: Thibaut Paumard Date: Wed Dec 21 08:45:00 2011 +0100 TinDisk::Impact(): fix bug which would extend disk to 2*rout_ commit 7841fad57e8368bebece90e2b587ace7e2087331 Author: Thibaut Paumard Date: Tue Dec 20 13:43:42 2011 +0100 fixup commit d86eda83a2c69ff2a70e9e199d13d2a2ff9c13c5 Author: Frederic Vincent Date: Tue Dec 20 13:08:09 2011 +0100 Modified Worldline::getCoord to insure theta and phi are in the correct range commit 45337cff4f381a18ab4d7a6a3678abebebd7e595 Author: Thibaut Paumard Date: Mon Dec 19 10:44:38 2011 +0100 PatternDisk: add opacity commit 9bf35b2e2e2b9787e429430cc5387753cfec96bb Author: Thibaut Paumard Date: Fri Dec 16 23:28:30 2011 +0100 add circularvelocity= to yorick/gyoto_Metric.C remove old syntax for gyoto_Metric (only the bject-oriented syntax remains) commit 77b437cab6f01762806a4b93ac6dc7f963c59df2 Author: Thibaut Paumard Date: Fri Dec 16 16:48:59 2011 +0100 support impactcoords precomputation directly in yorick commit 927f352f0208a7c9e9414daffc3362103033b461 Author: Thibaut Paumard Date: Fri Dec 16 13:44:20 2011 +0100 PatternDisk: + document gyoto_PatternDisk + add nu0() and dnu() methods, expose them in yorick commit a0cca2fb04b37137a1e1df31cc3ef4546d1d33f1 Author: Thibaut Paumard Date: Fri Dec 16 12:15:25 2011 +0100 + PatternDisk: * readFile() -> fitsRead() * add fitsWrite(), copyIntensity(), copyVelocity, copyGridRadius, getIntensity(), getVelocity(), getGridRadius(), repeatPhi() * expose all of this in yorick + GYOTO_DEBUG( << more) ; -> GYOTO_DEBUG << more << endl; + add GYOTO_QUIET, GYOTO_SEVERE, GYOTO_WARNING, GYOTO_MSG, GYOTO_INFO commit ac9537e1bb0904b3a9459a0c2810737c788c452c Author: Thibaut Paumard Date: Thu Dec 15 16:36:50 2011 +0100 + yorick/: add gyoto_ThinDisk, gyoto_PageThorneDisk, gyoto_PatternDisk + utils: add GYOTO_DEBUG(more) macro + add PatternDisk::getPatternVelocity() + fix bug in ThinDisk::setElement() which would blow up on DBL_MAX commit dfaff07a2890aff610a4d2ed406abdd8d7b80377 Author: Thibaut Paumard Date: Wed Dec 14 17:58:02 2011 +0100 API incompatible + bin/gyoto.C: fixed ug impacting --impact-coords + Astrobj: change philosophy concerning the Subcontractors: * add template Astrobj::Subcontractor(); * add Generic::setParameters() (used in the above); * setGenericParameter() -> setParameter; * implement setParameter() for all Astrobjs, setParameters() for some of them; * remove the Subcontractor and Init static member functions for all Astrobjs * setParameter() now returns an int; + Spectrum: setGenericParameter -> setParameter + Star: some new features to adapt to the above + yorick/gyoto_Astrobj.C: new keyword "setparameter" to set ANY parameter covered by setParameter()! commit 448f24b651776768b373081dc8893b03cc667414 Author: Thibaut Paumard Date: Tue Dec 13 16:08:01 2011 +0100 This is an API incompatible commit (should be seamless). + gyoto.C: remove --save option, add --impact-coords option, remove all the GYOTO_QUANTITY_IMPACT_* quantity and introduce the one-stop GYOTO_QUANTITY_IMPACTCOORDS (affects many classes) + Scenery: * Scenery::rayTrace(), Scenery::operator()(): accept argument impactcoords and skip ray-tracing in that case; reome "save" argument; * reintroduce tlim_ member; * add a Photon member to avoid reallocating memory each time operator()() (or rayTrace()) is called; + Make Worldline::getTlim() const; + yorick/: also accept impactcoords as input, remove adaptive raytracing (broken, unmaintainable, never really worked) commit 5786a225d86dd25b56a773fca5fba6f847048a46 Author: Eric Gourgoulhon Date: Mon Dec 12 16:21:02 2011 +0100 Added reference to the published paper for the html documentation. commit 92b91d465129a705931e1eddcfe6077aa7527dd0 Author: Eric Gourgoulhon Date: Mon Dec 12 14:15:03 2011 +0100 Changed to in the include commit e771ec0d895bf28a14ecb6522503f83dafc3830c Author: Thibaut Paumard Date: Sun Dec 11 00:24:00 2011 +0100 + Add Astrobj::PatternDisk class + Add ThinDisk::projectedRadius() method + Add GYOTO_USE_CFITSIO macro commit 78c15ef47d1812d89f86720da75c3a51d75bbc6c Author: Thibaut Paumard Date: Wed Dec 7 22:12:47 2011 +0100 + Add ThinDisk * replace ThinInfiniteDisk* with PageThorneDisk + Metric: * circularVelocity() works outside the equatorial plane * add KerrKS::circularVelocity() * fix bug in KerrBL::circularVelocity() * add Metric::Generic::cartesianVelocity() + add GyotoFunctors.h commit ed8537709f0c62d22d7d4e038fe020b8688fd42d Author: Thibaut Paumard Date: Tue Dec 6 15:09:02 2011 +0100 Introduce Astrobj::Standard. Geometrically thick objects which use the operator() paradigm should inherit from Standard instead of Generic. commit b8347aff4f30e8d9c2f0c59d4811a8d81ea19028 Author: Thibaut Paumard Date: Fri Dec 2 11:47:20 2011 +0100 Improve documentation Make Astrobj::Generic::clone() pure virtual, it's trivial to implement it for each object. commit 5b4f41a3c159de2505edc57351b69f4fcfc6ad8a Author: Thibaut Paumard Date: Thu Dec 1 23:26:19 2011 +0100 Document UniformSphere Make Astrobj::kind_ const Modify example-fixed-star.xml to lower opacity commit b3b679c42b37163ef106341dd1fbc6ae08da7194 Author: Thibaut Paumard Date: Thu Dec 1 18:11:39 2011 +0100 Add Gyoto::Photon::Refined class, which makes Gyoto:ComplexAstrobj::Impact() more robust. commit dc0a2fff5930294fa9482afa5246beab16bdfd7c Author: Thibaut Paumard Date: Thu Dec 1 11:37:00 2011 +0100 Base Star and FixedStar on a common UniformSphere abstract Astrobj Bugfix in Star shape commit f58886a9a878147692810d1a078b388b9085ba01 Author: Thibaut Paumard Date: Thu Dec 1 00:08:09 2011 +0100 Add ComplexAstrobj commit 0ba165c4e1753331904440f6e1abb42f0bf3e815 Author: Thibaut Paumard Date: Fri Sep 23 08:57:34 2011 +0200 improve Metrics documentation add arXiv ref, change "submitted" to "accepted" commit 2874a408c49e65e16606f8d291dd6c8f42b2c258 Author: Thibaut Paumard Date: Wed Sep 21 15:50:25 2011 +0200 Document FactoryMessenger and generally improve documentation commit ecdfc837dab8ac9a71e640c3d392182f906ede0b Author: Thibaut Paumard Date: Tue Sep 20 17:59:01 2011 +0200 improve documentation commit d2a03dfadefeec01c3141231a207e0a514a533b0 Author: Thibaut Paumard Date: Mon Sep 19 16:26:04 2011 +0200 Add comment not to remove a line which should be useless but is not... commit a8ab52390945cea9438b71fb6a600ba722872690 Author: Thibaut Paumard Date: Mon Sep 19 15:06:01 2011 +0200 Fixup: apply namespace changes also to RotStar3_1 commit c4396dd3d3cf40a95d0feec7f99ee929fc4c5b24 Author: Thibaut Paumard Date: Mon Sep 19 14:59:31 2011 +0200 Create Astrobj namespace commit f9c5a321f5db470c27e29309e7c59e0db756cf70 Author: Thibaut Paumard Date: Mon Sep 19 11:42:49 2011 +0200 Introduce Gyoto::Metric namespace commit 61b7df2cee16aab3a70a0c0966f74981f84ac081 Author: Thibaut Paumard Date: Mon Sep 19 10:31:05 2011 +0200 fixup: RotStar commit 3fe5ece1f975277663e75235518d6dceb2a0fb0c Author: Thibaut Paumard Date: Mon Sep 19 10:07:45 2011 +0200 Rename factoryMessenger -# FactoryMessenger, provide a separate GyotoFactoryMessenger header file commit a1ddb199fda080f02561ceb3b91cba08d6d91227 Author: Thibaut Paumard Date: Sat Sep 17 17:49:25 2011 +0200 setSelfAttribute: size_t -> unsigned int commit 61236e51084e5f71950e94b873f2660a37d37c97 Author: Eric Gourgoulhon Date: Sat Sep 17 14:24:03 2011 +0200 Corrected HTML anchors commit ce3903f74098117c00eb9979bc4919b45ea2db05 Author: Thibaut Paumard Date: Sat Sep 17 10:14:14 2011 +0200 cast to SartPointee::Subcontractor_t* instead of void* commit 04c62d6b6b7a7ba10b01249b9ab0c57e79d6e848 Author: Thibaut Paumard Date: Fri Sep 16 22:44:01 2011 +0200 * fix many warnings commit d3a7ec0c9b63a6d5f4b557bcb2066469ab9a2d09 Author: Thibaut Paumard Date: Fri Sep 16 16:09:52 2011 +0200 Fix FTBFS: add factoryMessenger::setSelfAttribute(std::string, size_t) commit 3ebbad7c456e89270508400f249833f6cde192e9 Author: Thibaut Paumard Date: Fri Sep 16 14:41:18 2011 +0200 add Y_HOME_PKG in yorick commit f20bb153950055baf678097e16dab6c9024aafa1 Author: Thibaut Paumard Date: Fri Sep 16 11:41:44 2011 +0200 * add factoryMessenger::setSelfAttribute(,double) * change char* to char const * in Register::Init() * fix compilation warnings commit 0c180f4564e59a3fe7441bac592b8d6764aacfbf Author: Thibaut Paumard Date: Thu Sep 15 14:06:54 2011 +0200 Improve documentation and build system commit 63c7c42420cbcff45ea1174444857ba370e667ac Author: Frederic Vincent Date: Thu Sep 15 12:31:08 2011 +0200 Small change in KerrBL/RK4_adaptive cst check commit 731221ccaa11dde37d01ef3d9812ce9eef413846 Author: Frederic Vincent Date: Thu Sep 15 12:16:09 2011 +0200 Updated cst check in KerrBL/RK4_adaptive commit 6687a996c378e282c6634f1023f9305419930104 Author: Frederic Vincent Date: Thu Sep 15 09:35:51 2011 +0200 Compilation Warnings cleaning commit 50c0d2bf1775a601a447bfc74e26b6a8fb273ab6 Author: Frederic Vincent Date: Wed Sep 14 16:26:19 2011 +0200 In KerrBL.C/myrk4_adaptive changed cstest[4]->cstest[5] commit 20ad795f75d9d315236d37b38883c41ac7fa1050 Author: Thibaut Paumard Date: Tue Sep 13 23:55:31 2011 +0200 KerrBL: * cst has 5 elements: cst[4] == (Q==0. ? 1. : 1./Q ) * cst[0] is not norm but mu. Happens to be -norm. commit f3bd33ac33527a503a9bb627d472d2f2af38b7e9 Author: Thibaut Paumard Date: Tue Sep 13 21:47:06 2011 +0200 print QCarter with the warning commit 9d98673e5dcc2a26f652e06c0d8c28db199ac404 Author: Thibaut Paumard Date: Mon Sep 12 09:11:40 2011 +0200 add yorick .info file commit 146854c9d54fbf31f15812d1949c27ac837c9663 Author: Thibaut Paumard Date: Fri Sep 9 10:01:27 2011 +0200 fix spelling errors commit c0802b44531e1aa034b73589dbf21c32026e2cc5 Author: Thibaut Paumard Date: Fri Sep 9 09:26:53 2011 +0200 fixup commit 3d5416e9812cafebcf9992d2716ad1f336918fd5 Author: Thibaut Paumard Date: Fri Sep 9 08:52:43 2011 +0200 add files to generate yorick documentation commit 47ed49bd48f8ea9145c7a5b4c35a687f76754b90 Author: Thibaut Paumard Date: Thu Sep 8 08:39:35 2011 +0200 * Initialize Photon::freq_obs_ * KerrBL.C: special case Q==0. in tests * Screen::Screen(const Screen& o): fix copy constructor * Worldline::setMetric(): call setParticleProperties only if initcond set * Worldline::setInitialCondition(): avoid z axis in sperical coords * create libgyoto.so links (underlinux) during build and install * add gyotoy manpage * spell-checking * implement no display for check-yorick * fix SIGFPE when printing Star * check-yorick exits yorick (batch mode) commit aca6e3b562b0ed7b8121ed530604066ef7a81845 Author: Thibaut Paumard Date: Wed Sep 7 09:56:36 2011 +0200 fix: uninstall manpage from the right directory commit a668765731a9af5aaf195591a8279d42f58f2996 Author: Thibaut Paumard Date: Tue Sep 6 17:40:18 2011 +0200 Create directory $(DESTDIR)$(PREFIX)/lib/gyoto/$(SOVERS) commit a928a7533cec2476cb6a12aff4678f1392546ab6 Author: Thibaut Paumard Date: Tue Sep 6 16:13:04 2011 +0200 * Fix yorick/Makefile to look for ../lib/libgyoto.so.SOVERS * Search for plugins (and install them) in $(PREFIX)/lib/gyoto/$(SOVERS) commit bc0956337764c9311c6bc508bb1725716a4fae66 Author: Thibaut Paumard Date: Wed Aug 31 15:10:33 2011 +0200 * support DESTIDR in Makefiles * move man under share * fix gcc error in gyoto_Photon.C (address to temporary) * implement SONAME under Linux * improve lorene not loaded message * add run-time copyright statement commit 1d0bdcd27b9126911bb9d700776414308a3ff4b1 Author: Frederic Vincent Date: Wed Aug 31 14:46:57 2011 +0200 Bug in KerrKS.C corrected commit c27d01a1d43c019901f157de9104a7a1c2f158de Author: Frederic Vincent Date: Wed Aug 31 11:55:23 2011 +0200 Cosmetic changes in KerrBL, Photon, Scenery, Screen, Star, WlIntegState.C Changed stop condition in KerrKS.C commit ec3ccfc31f9dabbb1def411e07b738557f7e3602 Author: Thibaut Paumard Date: Tue Aug 30 17:33:50 2011 +0200 Initial import from private svn rev. 335 Gyoto-2.0.2/INSTALL000066400000000000000000000366101455254334400136640ustar00rootroot00000000000000Installation Instructions ************************* Copyright (C) 1994-1996, 1999-2002, 2004-2013 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 ================== Briefly, the shell command `./configure && make && make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for instructions specific to this package. Some packages provide this `INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. 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'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. 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 mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') 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' 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 in order to regenerate files that came with the distribution. 7. Often, you can also type `make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. 8. Some packages, particularly those that use Automake, provide `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. 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. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. This is known as a "VPATH" build. With a non-GNU `make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or "universal" binaries--by specifying multiple `-arch' options to the compiler but only a single `-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CPP="gcc -E" CXXCPP="g++ -E" This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results using the `lipo' tool if you have problems. 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'. Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. 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. HP-UX `make' updates targets which have the same time stamps as their prerequisites, which makes it generally unusable when shipped generated files such as `configure' are involved. Use GNU `make' instead. 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 limitation. Until the limitation is lifted, you can use this workaround: CONFIG_SHELL=/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. Gyoto-2.0.2/INSTALL.Gyoto.md000066400000000000000000000256111455254334400153620ustar00rootroot00000000000000# INSTALLING GYOTO ## 0- Installing precompiled packages Gyoto comes prepackaged for some systems. Although the development version may be much more advanced at a given time, using pre-compiled binaries is the recommended way of using Gyoto for most users. ### Debian GNU/Linux Gyoto is part of Debian since Wheezy (Debian 7.0). Updated packages are made available through the official [backports infrastructure] (https://backports.debian.org/). Occasionally, even more advanced packages may be available at https://people.debian.org/~thibaut/. You can get a list of available packages with apt-cache search gyoto The most recent packages will install about everything in Gyoto with sudo apt-get install gyoto ### Ubuntu Gyoto is also part of Ubuntu at least since Raring (13.04). Updated versions are sometimes provided on our [personal package archive (PPA)] (https://launchpad.net/~paumard/+archive/ubuntu/gyoto/). Check what version is available there compared to what is available for your version of Ubuntu and follow instructions on that page to add this PPA to your system. You can get a list of available packages with apt-cache search gyoto The most recent packages will install about everything in Gyoto with sudo apt-get install gyoto ### Mac OS X Precompiled binaries (or at least automatic compilation) is provided through [MacPorts] (http://www.macports.org/). With MacPorts installed, run: sudo port sync sudo port install Gyoto To get MPI parallelization, you must first install Boost with one of its MPI variant, then Gyoto with the same variant: sudo port install Boost +openmpi sudo port install Gyoto +openmpi ## 1- Building from source: installing the dependencies If Gyoto is not packaged for your system or if you prefer to build from source, read on. The first step is to install the dependencies. Please refer to [BUGS.md](BUGS.md) for known bugs in some versions of the following dependencies. Gyoto requires: - a C++ compiler. GCC 4.9 and above work very well. Several features require the C++11 standard. Clang/LLVM is discouraged, see [BUGS.md](BUGS.md). - Eigen (required): https://eigen.tuxfamily.org/ - xercesc-3 (recommended, required for the executable): http://xerces.apache.org/xerces-c/ - cfitsio (required for the executable and some of the Astrobj): http://heasarc.gsfc.nasa.gov/fitsio/ - libudunits2 (recommended, support for unit conversions): http://www.unidata.ucar.edu/software/udunits/ - boost >= 1.53 (required, contains the integrators). See [BUGS.md](BUGS.md). http://www.boost.org/ - an implementation of the Gauss hypergeometric function 2F1 (optional, required for all Astrobj using KappaDistributionSynchrotronSpectrum), one of: + ARBLIB: http://arblib.org (in that case, compile and install ARBLIB and its dependencies and use the --with-arblib* configure options); + AEAE: http://cpc.cs.qub.ac.uk/summaries/AEAE_v1_0.html (in that case unpack the AEAE source code somewhere and use the --with-aeae configure option). - an MPI implementation (tested with openmpi, optional). MPI uses boost features from boost.mpi, you must use the same version as boost.mpi is linked to. - Yorick (optional, provides an interface to the Yorick interpreted language, allowing to write Gyoto scripts): http://yorick.sourceforge.net/ Yorick users will also need the yorick-yutils add-on (https://github.com/frigaut/yorick-yutils) and may need to install the yorick-dev package (in particulat Debian/Ubuntu users). - Python 3 (optional, provides an interface to the Python interpreted language, allowing to write Gyoto scripts). Python 3.7 and 3.8 have been tested. For building the Python bindings, the Python development files are naturally required (sometimes found in the python-dev or python3-dev package), as well as NumPy and Swig-2.0: https://www.python.org/ http://www.numpy.org/ http://www.swig.org/ Note that although fairly complete, the Python interface is likely to change in future releases. Be ready to adapt your scripts, or contact us is stability of the API is important for you. - LORENE (optional, the libgyoto-lorene plug-in can be built later): https://www.lorene.obspm.fr/ On some systems, LORENE must be built with -fPIC (GYOTO as well, but this is the default). - developers may need the GNU autotools: autoconf, automake, libtool. For Debian and its derivatives (incl. Ubuntu), you can install all those dependencies with: sudo apt-get install build-essential yorick-dev yorick-yutils \ libxerces-c-dev libcfitsio-dev libudunits2-dev libboost-dev \ libboost-mpi-dev libflint-arb-dev libflint-dev mpi-default-dev \ python3-dev python3-setuptools swig3.0 python3-numpy python3-matplotlib \ doxygen pkg-config liblorene-dev lorene-codes-src gfortran g++ libeigen3-dev ## 2- Downloading the source code The source code is available from [Github](https://github.com/gyoto/Gyoto): git clone https://github.com/gyoto/Gyoto.git (This obviously requires git to be installed on your system, on Debian and derivtives use `sudo apt-get install git`). Then the build process is, in a nutshell, after having installed the dependencies: ./git-post-merge ./configure make sudo make install sudo ldconfig The rest of this file details each step. ## 3- Fixing the timestamps Unfortunately git does not preserve the timestamps of files, which confuses the the build system. The easiest way to do that is running a provided script each time you pull from our repository: ./git-post-merge This script contains instructions to automate this step if you plan of pulling again from github in the future. Alternatively, you could recreate the autotools-generated files using `autoreconf`. This requires the development tools autoconf, automake, libtool, and is really necessary only for developpers who modified the the build system (configure.ac, */Makefile.am...) ## 4- Configuring Gyoto If all the dependencies are installed in standard places (/usr or /usr/local) and if the default prefix (/usr/local) is OK for you, this should do: ./configure You may need to pass some options or configuration variables. To list the available options: ./configure --help ARBLIB is known to be installed under various names depending on the Linux distribution. If using ARBLIB (see "Installing the dependencies" above), you may need to set the `--with-arblib-ldflags` variable to the correct name, e.g. ./configure --with-arblib-ldflags=-larb The standard GNU INSTALL file is provided next to this file and documents the most standard and obscure features. The `--enable-release` option is reserved for pre-compiled package maintainers. In short, don't use it, it is for us alone. Without this option, the library name will contain "-unreleased". This is to allow users to compile new versions without overriding the system-provided library by default. Binaries distributed e.g. by package managers should be compiled with --enable-release, but only when compiling code in the `stable` branch. Also, the configure script will append flags to the SONAME when features are not available, e.g. libgyoto-nompi.*. This limits the probability of linking with the wrong version of the library at run time. Note that there is no guarantee that two -unreleased builds are ABI compatible, even if they share the same SONAME, because the version information is incremented only immediately before making and official release. To select a different compiler than the default on your system, set the CC and CXX environment variables accordingly during the configure step: CC=gcc-4.8 CXX=g++-4.8 ./configure Example: assume you want to install in `${HOME}/mysoft`, that LORENE is in `${HOME}/mysoft/Lorene` (but `HOME_LORENE` is not set), and Xerces and CFITIO are in `/opt/local`: ./configure --prefix=${HOME}/mysoft \ --with-lorene=${HOME}/mysoft/Lorene \ CPPFLAGS=-I/opt/local/include \ LDFLAGS=-L/opt/local/lib On Debian or Ubuntu, with all the dependencies installed as above, this should do: ./configure --with-arblib \ --with-lorene=/usr/lib/`dpkg-architecture -qDEB_HOST_MULTIARCH`/lorene ## 5- Building Gyoto make ## 6- Testing Gyoto includes a detailed check suite, including atomic tests writen in Yorick and Python as well as full ray-tracing tests. MPI tests and LORENE tests are run using separate Makefile targets. To run all the tests (which assumes that both Gyoto was configures with both MPI and LORENE): make check check-lorene check-mpi check-lorene-mpi Don't worry too much for the "severe" warnings. You can now open the resulting FITS files with ds9 (http://hea-www.harvard.edu/RD/ds9/) or spydr (http://www.maumae.net/yorick/doc/spydr_intro.php) or any other FITS-aware image viewer: spydr example-*.fits ## 7- Installing If installing to a system location (i.e. if you don't have right access to PREFIX), you need to gain root privileges using, for instance, su or sudo: Using su: su - # (type root password) make install make -C python install Using sudo: sudo make install (type your password) Under Linux, if installing to a system location, you may need to also run ldconfig -v as root (so most likely `sudo ldconfig -v`). ## 8- Setting your environment If installing in a non-standard place (e.g. under your home directory), you do not need to run ldconfig, but you need to adapt your environment for instance by adding the following lines to `${HOME}/.profile` (replace `` by the actual Gyoto prefix!). One Gyoto file installed in each directory is listed as a comment: export PREFIX= export PATH=${PREFIX}/bin:${PATH} # gyoto export LD_LIBRARY_PATH=${PREFIX}/lib:${LD_LIBRARY_PATH} # libgyoto*.so.* export MANPATH=${PREFIX}/share/man:${MANPATH} # gyoto.1 export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig # gyoto.pc Under Mac OS X, `LD_LIBRARY_PATH` is replaced by `DYLD_LIBRARY_PATH`. It goes beyond the scope of this manual to teach you how to set environment variables; if in doubt ask the local guru or google... By default, the Yorick plug-in is also installed under `${prefix}`. If Yorick itself is in `${prefix}`, then the plug-in will be installed directly with the rest of Yorick and hence will be found by Yorick. On the other hand, if Yorick is not under `${prefix}`, the plug-in may not be found immediately by Yorick. Assuming you used the default prefix (`/usr/local`), it should be sufficient to create a file named `${HOME}/Yorick/custom.i` containing the three following lines: require, "pathfun.i"; add_y_home,"/usr/local/lib/yorick/"; command_line= process_argv(); Under Debian and Ubuntu GNU/Linux, `/usr/local/lib/yorick/` is by default in Yorick search paths. Gyoto-2.0.2/Makefile.am000066400000000000000000000007461455254334400146700ustar00rootroot00000000000000ACLOCAL_AMFLAGS = -I m4 SUBDIRS=@mySUBDIRS@ @VERBATIM@ifneq ($(wildcard plugins/python/Makefile),) @VERBATIM@ SUBDIRS += plugins/python @VERBATIM@endif list-dirs: echo $(SUBDIRS) $(SUBDIRS): cd $@ ; $(MAKE) ChangeLog: git log --no-merges > ChangeLog check-mpi check-mpi-clean check-lorene check-lorene-clean check-lorene-mpi check-lorene-mpi-clean: if BUILD_GYOTO cd bin ; $(MAKE) $@ endif if HAVE_YORICK cd yorick ; $(MAKE) $@ endif .PHONY: $(SUBDIRS) install ChangeLog Gyoto-2.0.2/Makefile.in000066400000000000000000000755661455254334400147150ustar00rootroot00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ 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@ target_triplet = @target@ subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_append_compile_flags.m4 \ $(top_srcdir)/m4/ax_append_flag.m4 \ $(top_srcdir)/m4/ax_append_link_flags.m4 \ $(top_srcdir)/m4/ax_check_compile_flag.m4 \ $(top_srcdir)/m4/ax_check_link_flag.m4 \ $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.m4 \ $(top_srcdir)/m4/ax_pkg_swig.m4 $(top_srcdir)/m4/ax_pthread.m4 \ $(top_srcdir)/m4/ax_require_defined.m4 \ $(top_srcdir)/m4/boost.m4 $(top_srcdir)/m4/gyoto.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)/m4/python.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 $(top_builddir)/include/GyotoConfig.h CONFIG_CLEAN_FILES = doc/Makefile doc/doxyfile doc/user_guide/Makefile \ yorick/Makefile yorick/stdplug/Makefile yorick/gyoto.info \ yorick/yorick1 yorick/setpaths.i gyoto python/Makefile \ python/setup.py 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 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 distdir-am 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)` DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/gyoto.in $(top_srcdir)/doc/Makefile.in \ $(top_srcdir)/doc/doxyfile.in \ $(top_srcdir)/doc/user_guide/Makefile.in \ $(top_srcdir)/include/GyotoConfig.h.in \ $(top_srcdir)/python/Makefile.in \ $(top_srcdir)/python/setup.py.in \ $(top_srcdir)/yorick/Makefile.in \ $(top_srcdir)/yorick/gyoto.info.in \ $(top_srcdir)/yorick/setpaths.i.in \ $(top_srcdir)/yorick/stdplug/Makefile.in \ $(top_srcdir)/yorick/yorick1.in AUTHORS COPYING ChangeLog \ INSTALL NEWS README.md compile config.guess config.sub depcomp \ 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 GZIP_ENV = --best DIST_TARGETS = dist-gzip # Exists only to be overridden by the user if desired. AM_DISTCHECK_DVI_TARGET = dvi 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@ AEAE_CFLAGS = @AEAE_CFLAGS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ ARBLIB_CFLAGS = @ARBLIB_CFLAGS@ ARBLIB_LIBS = @ARBLIB_LIBS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BIBTEX = @BIBTEX@ BOOST_CPPFLAGS = @BOOST_CPPFLAGS@ BOOST_LDPATH = @BOOST_LDPATH@ BOOST_MPI_LDFLAGS = @BOOST_MPI_LDFLAGS@ BOOST_MPI_LDPATH = @BOOST_MPI_LDPATH@ BOOST_MPI_LIBS = @BOOST_MPI_LIBS@ BOOST_ROOT = @BOOST_ROOT@ BOOST_SERIALIZATION_LDFLAGS = @BOOST_SERIALIZATION_LDFLAGS@ BOOST_SERIALIZATION_LDPATH = @BOOST_SERIALIZATION_LDPATH@ BOOST_SERIALIZATION_LIBS = @BOOST_SERIALIZATION_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFITSIO_CFLAGS = @CFITSIO_CFLAGS@ CFITSIO_LIBS = @CFITSIO_LIBS@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CXXFLAGS_EXEC = @CXXFLAGS_EXEC@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@ DLLTOOL = @DLLTOOL@ DOXYGEN = @DOXYGEN@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DYLIB_VAR = @DYLIB_VAR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EIGEN_CFLAGS = @EIGEN_CFLAGS@ EIGEN_LIBS = @EIGEN_LIBS@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FEATURES = @FEATURES@ FGREP = @FGREP@ FILECMD = @FILECMD@ GREP = @GREP@ GYOTO_PLUGIN_SFX = @GYOTO_PLUGIN_SFX@ HAVE_CXX11 = @HAVE_CXX11@ HOME_LORENE = @HOME_LORENE@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ KPSEWHICH = @KPSEWHICH@ LD = @LD@ LDFLAGS = @LDFLAGS@ LDFLAGS_EXEC = @LDFLAGS_EXEC@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LORENECPPFLAGS = @LORENECPPFLAGS@ LORENELDFLAGS = @LORENELDFLAGS@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MAKE_S = @MAKE_S@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPICXX = @MPICXX@ 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@ PDFLATEX = @PDFLATEX@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POW_LIB = @POW_LIB@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYTHON = @PYTHON@ PYTHON_CFLAGS = @PYTHON_CFLAGS@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_EXTENSION_SUFFIX = @PYTHON_EXTENSION_SUFFIX@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBS = @PYTHON_LIBS@ PYTHON_PREFIX = @PYTHON_PREFIX@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_LIB = @SWIG_LIB@ SYS = @SYS@ UDUNITS_CFLAGS = @UDUNITS_CFLAGS@ UDUNITS_LIBS = @UDUNITS_LIBS@ VERBATIM = @VERBATIM@ VERSINFO = @VERSINFO@ VERSION = @VERSION@ VIRTUALENV = @VIRTUALENV@ VIRTUALENV_FLAGS = @VIRTUALENV_FLAGS@ XERCES_CFLAGS = @XERCES_CFLAGS@ XERCES_LIBS = @XERCES_LIBS@ YORICK = @YORICK@ Y_INST_HOME = @Y_INST_HOME@ Y_INST_SITE = @Y_INST_SITE@ 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@ ax_pthread_config = @ax_pthread_config@ 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@ localpkglibdir = @localpkglibdir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ mySUBDIRS = @mySUBDIRS@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkg_cflags = @pkg_cflags@ pkg_libs = @pkg_libs@ pkg_requires = @pkg_requires@ pkgpythondir = @pkgpythondir@ plugin_sfx = @plugin_sfx@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sovers = @sovers@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = @mySUBDIRS@ all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(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__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(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: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ include/GyotoConfig.h: include/stamp-h2 @test -f $@ || rm -f include/stamp-h2 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) include/stamp-h2 include/stamp-h2: $(top_srcdir)/include/GyotoConfig.h.in $(top_builddir)/config.status @rm -f include/stamp-h2 cd $(top_builddir) && $(SHELL) ./config.status include/GyotoConfig.h distclean-hdr: -rm -f config.h stamp-h1 include/GyotoConfig.h include/stamp-h2 doc/Makefile: $(top_builddir)/config.status $(top_srcdir)/doc/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ doc/doxyfile: $(top_builddir)/config.status $(top_srcdir)/doc/doxyfile.in cd $(top_builddir) && $(SHELL) ./config.status $@ doc/user_guide/Makefile: $(top_builddir)/config.status $(top_srcdir)/doc/user_guide/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ yorick/Makefile: $(top_builddir)/config.status $(top_srcdir)/yorick/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ yorick/stdplug/Makefile: $(top_builddir)/config.status $(top_srcdir)/yorick/stdplug/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ yorick/gyoto.info: $(top_builddir)/config.status $(top_srcdir)/yorick/gyoto.info.in cd $(top_builddir) && $(SHELL) ./config.status $@ yorick/yorick1: $(top_builddir)/config.status $(top_srcdir)/yorick/yorick1.in cd $(top_builddir) && $(SHELL) ./config.status $@ yorick/setpaths.i: $(top_builddir)/config.status $(top_srcdir)/yorick/setpaths.i.in cd $(top_builddir) && $(SHELL) ./config.status $@ gyoto: $(top_builddir)/config.status $(srcdir)/gyoto.in cd $(top_builddir) && $(SHELL) ./config.status $@ python/Makefile: $(top_builddir)/config.status $(top_srcdir)/python/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ python/setup.py: $(top_builddir)/config.status $(top_srcdir)/python/setup.py.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 # 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: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(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) | eval GZIP= gzip $(GZIP_ENV) -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-zstd: distdir tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst $(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) | eval GZIP= gzip $(GZIP_ENV) -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*) \ eval GZIP= gzip $(GZIP_ENV) -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*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ *.tar.zst*) \ zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ 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) $(AM_DISTCHECK_DVI_TARGET) \ && $(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 config.h installdirs: installdirs-recursive installdirs-am: 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." 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-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: .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 dist-zstd 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-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 .PRECIOUS: Makefile @VERBATIM@ifneq ($(wildcard plugins/python/Makefile),) @VERBATIM@ SUBDIRS += plugins/python @VERBATIM@endif list-dirs: echo $(SUBDIRS) $(SUBDIRS): cd $@ ; $(MAKE) ChangeLog: git log --no-merges > ChangeLog check-mpi check-mpi-clean check-lorene check-lorene-clean check-lorene-mpi check-lorene-mpi-clean: @BUILD_GYOTO_TRUE@ cd bin ; $(MAKE) $@ @HAVE_YORICK_TRUE@ cd yorick ; $(MAKE) $@ .PHONY: $(SUBDIRS) install ChangeLog # 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: Gyoto-2.0.2/NEWS000066400000000000000000000421471455254334400133340ustar00rootroot000000000000002.0.2 2024/01/19 PKG * Update citations and copyright in AUTHORS and README.md * Fix typos * Bugfixes in packaging material * Allow specifying Python interpreter for "gyoto mk-video..." 2.0.1 2024/01/17 BUG * Update build system * ARBLIB is included in flint >= 3, fix includes and configure.ac accordingly * Update autotools * Error out when Eigen is not found at configure-time * Various bug fixes 2.0.0 2024/01/02 ABI 9:0:0 * Adding the ability to compute polarization quantities: * Implement all polarized synchrotron radiative transfer coefficients for Thermal, PowerLaw and Kappa distributions * Compute of the transmission matrix * Calcul of the polarization angle in the observer polarization basis parallel transported and projected in the rest frame of the emitter * Adding the eigen3 library * various bugfix * New common definition of magnetic field configuration accessible by all Astrobj * New N-dimensonnal linear interpolation function with configurable boundary conditions * New Astrobj::FreeStar: Similar to the Star object expect it does not follow a time-like geodesic. The Trajectory is define by the user through the initial position and velocity * Astrobj::Blob: + electronDistribution_ * New Astrobj::Plasmoid: Uniform sphere of Plasma with a constant or linear increase of the radius. Two types of orbits : - Circular in the equatorial plane - Helical (constant polar angle) j_nu and a_nu are read in fits file. * New class : FitsRW: Class which generates fits file from outputs of simulations for the Astrobj::Plasmoid * KappaDistributionSynchrotronSpectrum: correction of the calculation of j_nu and a_nu * PowerLawSynchrotronSpectrum: correction of the calculation of j_nu and a_nu * Astrobj::FlaredDiskSynchrotron: + Corrections for MPI + Correction API : return the correct Polytropic Index + Add the possibility to have a non constant time step (for the input simulated disk) * GridData2D : + Possibility to provide the time array for non constant time step (optional) + Add security check 1.4.4 2020/02/28 BUG * Officially drop Python 2.7 support * Astrobj::ThickDisk: + Expose in Python + Minor bugfixes + Provide example * Python: fix reference counting issues * Various minor bug fixes 1.4.3 2019/10/25 BUG * m4/python.m4: bugfix (actually support Python >=3.8) 1.4.2 2019/10/25 BUG * plugins/python: support Python 3.8 * Astrobj::EquatorialHotSpot: fix XML compatibility code * GridData2D: make one conversion explicit to please clang 1.4.1 2019/10/23 BUG * MPI: fix computation of number of quantities to evaluate * check suite: use all files in doc/examples 1.4.0 2019/10/22 ABI 8:0:0 * Ongoing work to support polarization: * Support parallel transport of local tetrad + in many methods, double* coord_ph becomes state_t &coord_ph + Worldline: new APIs parallelTransport(), eAllocate(), eDeallocate(), eExpand() + Scenery: new API parallelTransport() + Screen: new API getRayTriad() * Introduce polarized quantities (Inu and alphanu for each component of the Stokes vector) + Several methods take additional arguments + Photon: new method transfer() + Scenery: new API getSpectralQuantitiesCount() * Support computing Screen tetrad from arbitrary velocity * Metric: + new API zamoVelocity(), default assumes null 3-velocity. + new API observerTetrad(in pos, in fourvel, out screen1,2,3), default throws an Error. + new methods to help vector computations: dualOneForm(), normalizeFourVel(), norm(), multiplyFourVect(), addFourVect(), projectFourVect(), GramSchmidt() * KerrBL: + implement zamoVelocity(); + remove observerTetrad(obskind...); + implement observerTetrad(pos, fourvel, ...) for any fourvel. * Screen: supports two new obskinds: VelocitySpecified and FullySpecified. obskind is now stored as and int and needs to be specified as e.g. ZAMO in XML. * Astrobj: * Generic: new property DeltaMaxInsideRMax * New kinds FlaredDiskSynchrotron, ThickDisk * Jet: + support thermal distribution + new property JetVphiOverVr * ThinDisk: new property VelocityKind * Torus: add a Thermal Synchrotron spectrum * UniformSphere: deprecate property Alpha * Screen: * support changing camera orientation (with dangle1 and dangle2) * change type of observerkind_ to obskind_t * Python: new module gyoto.animate to help writing Gyoto-based movies. * Command line: new task mk_video to help writing Gyoto-based movies. * Register: loadPlugin() now returns a handle o the dlopen'ed plug-in. * Star/StarTrace: allow expressing dates in proper or coordinate time. 1.3.6 2019/09/27 FTR * Python: improve interface in gyoto.util * GyotoDefs.h: give derived constants to machine precision 1.3.5 2019/08/03 BUG * Python: support Python2.7 in gyoto.util.rayTrace 1.3.4 2019/08/02 BUG * Python: fix gyoto?util.rayTrace 1.3.3 2019/08/02 BUG * Python: install gyoto.util 1.3.2 2019/08/02 BUG * Python: + fix segfault in gyoto.std and gyoto.lorene + Fixup: specify encoding in python/tests/core.py + call setup.py build instead of build_ext + new module gyoto.util containing rayTrace, readScenery, writeObject * libgyoto: + add time-did-not-evolve check in Worldline::xFill() + Screen: dangle(1|2) now rotate the camera for anglekind != spherical + ThinDisk::sphericalPhi: return value between 0 and 2 pi + fix bug in Metric::Generic::cartesianVelocity * doc: warn in the user guide that the Yorick plug-in should not be used * Fix printing issues during ray-tracing, mostly visible in Python 1.3.1 2019/01/22 BUG * Fix typos and minor bugs * New macro GYOTO_ERROR to prefix Gyoto::throwError message with __FILE__:__LINE__ in __PRETTY_FUNCTION__ * In Spectrum::ThemalBremstrahlung::radiativeQ and alphanu, return inf instead of throwing an error when dividing a finite number by 0. 1.3.0 2019/01/10 ABI 7:0:0 * Changed API: for consistency, replace CutOffIneV by CutOff (in Hz) in Spectrum::PowerLaw. New API supports unit, the user may replace 1 2 with 1 2 * Changed API: for consistency, rename Factory::getScenery to Factory::scenery and Factory::getPhoton to Factory::photon. * Changed API: Factory::metric(), astrobj() etc. don't throw an error anymore when then XML file does not contain the relevant entity but return a NULL smartpointer instead * Support mpirun -np option for all MPI implementations (bypassing MPI_Comm_spawn()). * New Metric: Hayward * New Astrobjs: Blob, Jet, NeutronStar, NeutronStarAnalyticEmission, NeutronStarModelAtmosphere, XillverReflection * New Spectra: KappaDistributionSynchrotronSpectrum, PowerLawSynchrotronSpectrum, ThermalSynchrotronSpectrum * Python: combined the three Python modules in a package, renaming them as: + gyoto -> gyoto.core + gyoto_std -> gyoto.std + gyoto_lorene -> gyoto.lorene The old names are still accessible but are deprecated and may be removed in a future release. * Python: provide namespaces, e.g. gyoto.astrobj to hold Astrobjs from gyoto.core, gyoto.std and gyoto.lorene, to mimic C++ organization and as a convenience for users. Same goes for gyoto.metric, gyoto.spectrum and gyoto.spectrometer. * Python: gyoto.std and gyoto.lorene now take care of loading the necessary Gyoto plug-ins. * New optional dependency on ARBLIB or AEAE. See INSTAL.Gyoto.md. * Improved configure script: + It is now possible to specify the python interpreter in --with-python: ./configure --with-python=python2 ./configure --with-python=/usr/bin/python3.7 + Deprecate --with-udunits-(inc|lib) in favour of --with-udunits-(headers|libs). + In --with-*-(headers|lib), accept both colon-sparated paths and list of flags. See ./configure --help. * Support KerrKS in gyotoy. * Important code cleaning in PatternDisk + PatternDisk: implement radial interpolation for axisym grid; implement case when phi is out of phi-grid bounds; correction of bugs with rin, rout, rmax; allows grid with nphi=1 (axisym); transpose grid (In NumPy, grid is of dimension 1xNphixNr) + PatternDiskBB: remove risco and all calls to Kerr; can support any metric now * RezzollaZhidenko: implement circularVelocity * PageThorne supports ChernSimons metric * Major update in PolishDoughnut + remove all code relative to outdated 2012 model + remove call to getRms in angmomrinner + call to external spectra (synchro ther, synchro PL, brems), so remove all spectrum computation inside PolishDoughnut * ThermalBremsstrahlungSpectrum: use a different model dpending on temperature * BlackBodySpectrum: add color correction * Update fov orientation in Screen + Rename Alpha0 and Delta0 to Dangle1 and Dangle2 to be useable also in SphericalAngles + Add Screen::azimuthal_fov_, the fov along the azimuthal direction in the rest frame of the observer in SphericalAngles (assumed to be 2*pi in the past). * NumericalMetricLorene and NeutronStarModelAtm: adding normal vector to surface 1.2.0 2016/12/12 ABI 6:0:0 * New functionality: the plug-in from which each subcontractor is registered is now tracked, so that it becomes possible to look for a subcontractor matching a specific kind and plug-in. We introduce the function Gyoto::requirePlugin() in addition to Gyoto::loadPlugin(). The subcontractor signature is changed to accept a second parameter, which breaks the API. * New functionality: thread-unsafe classes declare themselves as such, so that NThreads is ignored when multi-threading would cause erroneous results. 1.1.2 2016/12/10 FTR * New Metrics in stdplug: ChernSimons, RezzollaZhidenko. * New Astrobjs in stdplug: DeformedTorus, DynamicalDiskBolometric, EquatorialHotSpot, InflateStar, OscilTorus. * Allow specifying plug-in by file name. * Support colon syntax of mpirun (bypassing MPI_Comm_spawn()). * Support mpirun -np option for Open MPI (bypassing MPI_Comm_spawn()). 1.1.1 2016/10/30 BUG * When Gyoto is configured to be installed in another prefix than /usr/local/, look into two additional directories when loading plug-ins: /usr/local/lib/gyoto// and /usr/local/lib/gyoto/. * The name of the versioned directories for plug-ins ( above) is now the major version of the library, so users don't need to reinstall there plug-ins when ugrading Gyoto to a binary-compatible release. * --enable-hardening now also enables -fPIE. * Yorick: actually implement `picture' painter for the matte_paint framework. Allow using any two or three-dimensional image or stack of images in the `picture' and `panorama' painters. * Include minimal plug-in example in plugins/null/. 1.1.0 2016/09/12 ABI 4 (5:0:0) * New functionality: provide a plug-in for writing new Metrics, Astrobjs and Spectra in Python. * New functionality: objects can describe there own properties. This feature is accessible through the help() method in the Python and Yorick interfaces and through -h on the command-line: "gyoto -hMetric::KerrBL" * New functionality: adding a flag to highligh the shadow region in a strong-field image * Various improvements and bug fixes in the Python extension. * Yorick: Add more functions to control the floating-point environment from Yorick. * Screen: properly parse "Mask" as a filename * KerrKS: remove specific integrator, which has never worked well. * PowerLawSpectrum: add cut-offs. * DirectionalDisk: add cutoff in lamp/disk frames. * PolishDoughnut: add central_temperature_ parameter. 1.0.2 2015/06/26 BUG * Fix FTBFS with gcc 5.0; * Improve fenv support and lack thereof with some compilers; * Distinguish size_t from unsigned long in Gyoto::Value; * Rewrite option parsing in `gyoto' command line utility, add many options: short options, -i/-j, -E, -X... see manpage and $ gyoto --help * Fix many compile-time warnings, including potentially harmfull undefined behavior; * KerrKS is not work-in-progress anymore, but it's specific integrator is known to be buggy (and issues a severe warning when used). * Several small bug-fixes, see ChangeLog for details. 1.0.1 2015/05/27 PKG * Add 3rd clause of BSD license to python/doxy2swig.py; * Add Odele to AUTHORS; * Bugfixes in configure.ac: use BOOST_*_LIBS variables instead of hardcoding one possible value, make it possible to build when python is installed but with an unsupported version. 1.0.0 2015/05/25 ABI 3 * New functionality: MPI-based parallelisation. * New functionality: Python extension. * New functionality: most classes now derive from Gyoto::Object and have "Properties" (instances of Gyoto::Property). This provides for some introspection which is used notably in the Yorick plug-in and simplifies writing new derived classes. * Change Scenery::rayTrace() API, replacing i/jmin and max with a new concept Screen::Coord2dSet. This allows using the same code-path for both the gyoto utility and all the yorick use cases. * Update PolishDoughnut to support numerical (non-Kerr) metrics. * New spectrum: Gyoto::Spectrum::ThermalBremsstrahlung. * The usual lot of bug fixes and enhancements. 0.2.3 2014/10/21 BUG * Fix minor memory management bug in yotck/gyoto_Scenery.C 0.2.2 2014/09/19 BUG * Correct Metric:: and KerrBL::circularVelocity(). 0.2.1 2014/07/22 ABI 2.1 * ABI is backward compatible with 0.2.0. * Support for the special values DBL_MAX, DBL_MIN, -DBL_MAX and -DBL_MIN is any scalar floating-point value in XML i/o. This avoids loss of precission or SGFPE when saving/restoring certain default value in XML files. * Bug fix: avoid buffer overflow in Factory. 0.2.0 2014/07/21 ABI 2 * New integrators, require Boost >= 1.93 and C++11. The new integrators live in Worldline::IntegState, not in the Metric. Read the user guide for more details, as well as the doxygen documentation for the Scenery class. * New Metrics: Minkowski, NumericalMetricLorene * New Astrobjs: DirectionalDisk, StarTrace, ThinDiskIronLine * Give access to some numerical parameters of the RK4 integrator * Include LaTeX user guide * Yorick plug-in API change: the dot operator has changed its meaning. Codes that used it may require updating. Examples: m = gg.mass -> m =gg.mass() obj=gg.clone -> obj=gg.clone() scenery.screen(resolution=128) -> screnery.screen.resolution(128) scenery.astrobj(initcoord=x,v) -> scenery.astrobj()(initcoord=x,v) * Rename methods from from setMass()/getMass() style to mass()/mass() style. Macro with the old names are provided in GyotoDefs.h, triggering a deprecation warning. Code may break nevertheless, typically in two cases: + if the new name was used as a variable name in your code: please change the variable name; + if your derived class overloaded only one of the two accessors (e.g. only setMetric, not getMetric): in this example add using Generic::metric; in your derived class definition. To get rid of the deprecation warning, define the GYOTO_NO_DEPRECATED macro, for instance "make CPPFLAGS=-DGYOTO_NO_DEPRECATED" * Serious bug fixes and improvements in PolishDoughnut * Replaced Disk3D_BB with DynamicalDisk3D * Disk3D now has an opacity * Make KerrKS work (using the generic integrator only) * New interface: work in progress (WIP), to mark classes that are known to be broken. Instanciating such a class yields a warning. * Update build systems to current autotools * Implement mask in screen to compute only parts of an image * Improve behaviour for emitter or observer far from massive object 0.1.0 2013/07/27 ABI 1 * add units system * add PolishDoughnut astrobj * use pkg-config * gyotoy ported to yorick-gy instead of python * in Worldline, Photon and Scenery: rename tlim to tmin, default value is -DBL_MAX. * add a mutli-wavelength flavour of Astrobj::emission() * install yorick plug-in under ${prefix}, not necessarily in Y_HOME * add plugin attribute to the Metric, Astrobj and Spectrum entities * reform build system to use the autotools * add --plugins command-line option * add virtual destrcuctor to Spectrum::Generic * fix buffer overflow in lib/Factory.C * update paper ref in bin/gyoto.C 0.0.3 2012/05/01 BUG * fix a tiny bug in PatternDisk (initialization of phimin/max) * rearrange flags in Makefiles/local_settings for easier downstream packaging 0.0.2 2012/04/19 PKG * install include files in include/Gyoto * add this ChangeLog 0.0.1 2012/04/16 ABI 0 * release Gyoto-2.0.2/README.Developers000066400000000000000000000061001455254334400156110ustar00rootroot00000000000000Dear Gyoto developers, A few notes on maintenance: Before each commit: =================== * If you touched configure.ac or any Makefile.am file, run autoreconf and commit the regenerated files (configure, Makefile*.in) * Run make check. If possible, build the yorick plug-in so that make-check will do the detailed regression testing suite. * Check that the files you are commiting have correct Copyright information, including the years. If needed, use "git blame to check who modified this file and when. * Add something in the NEWS file. The NEWS file should contain an entry for the next release, put your note in there. * If this commit changes the user manual, update the date on the title page. To make a new release: ====================== * Check with the team whether they had plans for this release. * Update the date in the user manual. Check the right date by using git log doc/user_guide and edit doc/user_guide/GyotoManual.tex accordingly. * Choose a version number. Version is MAJOR.MINOR.MICRO. Bump MAJOR when significant new feature are there; update MINOR for continued development of existing features; update MICRO for bugfix or packaging releasing. * Edit configure.ac + update the version info in AC_INIT + update VERSINFO according to http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html Note that this VERSINFO has nothing to do with the Gyoto version. + run autoreconf. * Edit NEWS + add a new entry (or change the one which has not been released yet) + mark the release either "ABI n" if the ABI changed, "BUG" if its a simple backwards-compatible bugfix release, PKG if only the packaging has been changed. + document shortly what has changed in Gyoto: new features, significant bug fixes... * Regenerate ChangeLog: + run "git log --no-merges > ChangeLog" + add an item on top which should correspond to the log message that you will use for the *next* commit (the one that does the release). Use "unknown" as commit identifier and the output of "LANG=C date --rfc-822" as date. * Make clean, configure, make, make check again. * Commit the changes. * If releasing another branch than stable: merge this branch into stable, make sure the two branches can be merged both ways and are identical, merge stable into master. * Tag the release using the version as tag name. Use a signed tag: "git tag -s 1.0.0". * Take a coffee break. Coding rules: ============= Don't use std::atof from cstdlib. Use Gyoto::atof instead. Gyoto::atof is a wrapper that ensures demical_point is "." and handles special values like DBL_MAX. On output (especially to XML), you should also make sure to use the 'C' locale. If using C-style sprintf(), this can be done with: #include std::string loc(setlocale(LC_NUMERIC, NULL)); setlocale(LC_NUMERIC, "C"); sprintf(txt, fmt, val); setlocale(LC_NUMERIC, loc.c_str()); If using C++-style streams: #include std::locale Cloc("C"); ostringstream ss; ss.imbue(Cloc); ss << val; Regards, Thibaut. Gyoto-2.0.2/README.lorene000066400000000000000000000033721455254334400147750ustar00rootroot00000000000000 *** Activating LORENE in Gyoto *** Building the libgyoto-lorene plug-in 3+1 metrics support in Gyoto is implemented in the lorene plug-in, based on the LORENE library. I- BUILDING TOGETHER WITH GYOTO =============================== To enable it at build time, download LORENE from http://www.lorene.obspm.fr/, compile liblorene.a with the -fPIC CFLAG (i.e. check that the CFLAG variable defined in LORENE's local_settings file contains "-fPIC"), and set the HOME_LORENE variable according to the LORENE manual. If HOME_LORENE is defined when compiling Gyoto, the lorene plug-in is automatically built and installed. II- TESTING LIBGYOTO-LORENE ============================ Two example files are provided in doc/examples/: example-*-rotstar3_1.xml. They allow to ray-trace a moving/motionless star orbiting in the space-time of a relativistic rotating star. To run these examples: 1- Run make in $HOME_LORENE/Codes/Nrotstar: $ cd $HOME_LORENE/Codes/Nrotstar $ make 2- Prepare parameter files par_eos.d and par_rot.d, for instance $ cp Parameters/GR/Kepler/*.d ./ 3- Run the executable nrotstar to obtain the result file resu.d $ ./nrotstar 4- Update the file location in example-*-rotstar3_1.xml or copy resu.d to the Gyoto examples directory: $ cd - $ cp $HOME_LORENE/Codes/Nrotstar/resu.d doc/examples/ 5- Run GYOTO with example-*-rotstar3_1.xml. Assuming Gyoto is installed: $ gyoto doc/examples/example-fixedstar_rotstar3_1.xml out1.fits $ gyoto doc/examples/example-movingstar_rotstar3_1.xml out2.fits If gyoto is not installed replace "gyoto" above by: - under Linux: LD_LIBRARY_PATH=lib:$LD_LIBRARY_PATH bin/gyoto - under Mac OS X: DYLD_LIBRARY_PATH=lib:$DYLD_LIBRARY_PATH bin/gyotoGyoto-2.0.2/README.md000066400000000000000000000062661455254334400141160ustar00rootroot00000000000000# GYOTO: the General relativitY Orbit Tracer of Observatoire de Paris ## What Gyoto is [Gyoto](http://gyoto.obspm.fr/) aims at providing a framework for computing orbits and ray-traced images in General relativity. It consists in a library (libgyoto), utility programs, and a plug-in for the Yorick programing language. We request that use of Gyoto in scientific publications be properly acknowledged. Please cite: GYOTO: a new general relativistic ray-tracing code, F. H. Vincent, T. Paumard, E. Gourgoulhon & G. Perrin, Classical and Quantum Gravity 28, 225011 (2011) [arXiv:1109.4769] GYOTO 2.0: a polarized relativistic ray-tracing code, N. Aimar, T. Paumard, F. H.Vincent, É. Gourgoulhon, G. Perrin, Classical nd Quantum Graviry, submitted (2024) [arXiv:2311.18802] Gyoto, T. Paumard, F. H. Vincent, N. Aimar, O. Straub, F. Lamy, I. Urso, É. Gourgoulhon & G. Perrin, Zenodo, https://zenodo.org/doi/10.5281/zenodo.2540651 (2024) (or cite the version you are using, see Zenodo ecord). We also request that Gyoto modifications, extensions or plug-ins leading to a scientific publication be made public as free software reasonably fast (within one year after publication of the scientific paper), for instance by contributing it directly to the Gyoto code base. Contributors will be listed in the relevant source files as well as in the AUTHORS file in the package. ## Copyright information Gyoto is Copyright 2011-2024 Thibaut Paumard, Frédéric Vincent, Nicolas Aimar, Odele Straub, Frédéric Lamy and Irene Urso (To ease reading on non-UTF8 systems, French accents are omitted in file headers). Gyoto 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. Gyoto 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](COPYING) along with Gyoto. If not, see . File python/doxyfile.py is Copyright 2008 Prabhu Ramachandran under BSD style license. File python/numpy.i is Copyright (c) 2005-2015, NumPy Developers under BSD 3-clause license. File bin/optionparser.h is Copyright (C) 2012 Matthias S. Benkmann. See each file for details. ## Installation instructions Refer to the file [INSTALL.Gyoto.md](INSTALL.Gyoto.md) for building and installing Gyoto. Several sample files are provided in doc/examples. You can ray-trace those sceneries with: gyoto FITS files can be read by a variety of free and proprietary software. See http://heasarc.gsfc.nasa.gov/docs/heasarc/fits.html. ## Extending Gyoto Custom metrics and astronomical objects can be added fairly easily by implementing them as a Gyoto plug-in. This, of course, requires knowledge of the C++ language. The [user manual](http://gyoto.obspm.fr/GyotoManual.pdf) contains detailed instructions. -- Thibaut Paumard, Thu, 10 Jan 2019. Gyoto-2.0.2/TODO.md000066400000000000000000000012111455254334400137070ustar00rootroot00000000000000# Gyoto to-do list This file keeps track of some issues that the Gyoto developers should attend to at their earliest convenience: ## stdplug: All: Add/check doxygen comments in header file and document properties in C++ source file ChernSimons: Document RezzollaZhidenko: Document and provide example DeformedTorus: Document and provide example DynamicalDiskBolometric: Document and provide example EquatorialHotspot: Document and provide example InflateStar: Document and provide example OscilTorus: Document ## libgyoto: Scenery: Apply Object/Property paradigm Gyoto-2.0.2/aclocal.m4000066400000000000000000001236411455254334400144740ustar00rootroot00000000000000# generated automatically by aclocal 1.16.5 -*- Autoconf -*- # Copyright (C) 1996-2021 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.71],, [m4_warning([this file was generated for autoconf 2.71. 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-2021 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.16' 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.16.5], [], [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.16.5])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-2021 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-2021 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-2021 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-2021 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. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. AS_CASE([$CONFIG_FILES], [*\'*], [eval set x "$CONFIG_FILES"], [*], [set x $CONFIG_FILES]) shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`AS_DIRNAME(["$am_mf"])` am_filepart=`AS_BASENAME(["$am_mf"])` AM_RUN_LOG([cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles]) || am_rc=$? done if test $am_rc -ne 0; then AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE="gmake" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking).]) fi AS_UNSET([am_dirpart]) AS_UNSET([am_filepart]) AS_UNSET([am_mf]) AS_UNSET([am_rc]) rm -f conftest-deps.mk } ])# _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. # This creates each '.Po' and '.Plo' makefile fragment that we'll 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" MAKE="${MAKE-make}"])]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2021 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 m4_ifdef([_$0_ALREADY_INIT], [m4_fatal([$0 expanded multiple times ]m4_defn([_$0_ALREADY_INIT]))], [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])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_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([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 ]) # Variables for tags utilities; see am/tags.am if test -z "$CTAGS"; then CTAGS=ctags fi AC_SUBST([CTAGS]) if test -z "$ETAGS"; then ETAGS=etags fi AC_SUBST([ETAGS]) if test -z "$CSCOPE"; then CSCOPE=cscope fi AC_SUBST([CSCOPE]) 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-2021 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-2021 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])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2021 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 whether make has an 'include' directive that can support all # the idioms we need for our automatic dependency tracking code. AC_DEFUN([AM_MAKE_INCLUDE], [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) AS_CASE([$?:`cat confinc.out 2>/dev/null`], ['0:this is the am__doit target'], [AS_CASE([$s], [BSD], [am__include='.include' am__quote='"'], [am__include='include' am__quote=''])]) if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* AC_MSG_RESULT([${_am_result}]) AC_SUBST([am__include])]) AC_SUBST([am__quote])]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2021 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 MISSING="\${SHELL} '$am_aux_dir/missing'" 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-2021 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-2021 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-2021 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-2021 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-2021 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-2021 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-2021 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-2021 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/ax_append_compile_flags.m4]) m4_include([m4/ax_append_flag.m4]) m4_include([m4/ax_append_link_flags.m4]) m4_include([m4/ax_check_compile_flag.m4]) m4_include([m4/ax_check_link_flag.m4]) m4_include([m4/ax_cxx_compile_stdcxx_11.m4]) m4_include([m4/ax_pkg_swig.m4]) m4_include([m4/ax_pthread.m4]) m4_include([m4/ax_require_defined.m4]) m4_include([m4/boost.m4]) m4_include([m4/gyoto.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]) m4_include([m4/python.m4]) Gyoto-2.0.2/bin/000077500000000000000000000000001455254334400133755ustar00rootroot00000000000000Gyoto-2.0.2/bin/Makefile.am000066400000000000000000000120541455254334400154330ustar00rootroot00000000000000ACLOCAL_AMFLAGS = -I m4 AM_CPPFLAGS = -I@top_srcdir@/include $(XERCES_CFLAGS) $(UDUNITS_CFLAGS) $(BOOST_CPPFLAGS) \ -DPACKAGE_STRING="$(PACKAGE_STRING)" AM_LDFLAGS = $(XERCES_LIBS) $(PTHREAD_LIBS) $(LDFLAGS_EXEC) AM_CXXFLAGS = $(PTHREAD_CFLAGS) $(CXXFLAGS_EXEC) CLEANFILES = bin_PROGRAMS = dist_man_MANS = if BUILD_GYOTO bin_PROGRAMS += gyoto dist_man_MANS += gyoto.1 endif if HAVE_MPI AM_LDFLAGS += $(BOOST_MPI_LDFLAGS) $(BOOST_MPI_LIBS) \ $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) bin_PROGRAMS += gyoto-mpi-worker.@sovers@ dist_man_MANS += gyoto-mpi-worker.@sovers@.1 CLEANFILES += gyoto-mpi-worker.@sovers@.1 endif gyoto_SOURCES = gyoto.C gyoto_LDADD = @top_builddir@/lib/libgyoto@FEATURES@.la gyoto_CPPFLAGS = $(AM_CPPFLAGS) $(CFITSIO_CFLAGS) gyoto_LDFLAGS = $(AM_LDFLAGS) $(CFITSIO_LIBS) -export-dynamic gyoto_mpi_worker_@sovers@_SOURCES = gyoto-mpi-worker.C gyoto_mpi_worker_@sovers@_LDADD = @top_builddir@/lib/libgyoto@FEATURES@.la gyoto_mpi_worker_@sovers@_CPPFLAGS = $(AM_CPPFLAGS) $(CFITSIO_CFLAGS) gyoto_mpi_worker_@sovers@_LDFLAGS = $(AM_LDFLAGS) $(CFITSIO_LIBS) -export-dynamic gyoto-mpi-worker.@sovers@.1: gyoto-mpi-worker.1 cp $^ $@ export PATH := .:$(PATH) EXAMPLE_DIR = $(top_srcdir)/doc/examples/ CHECK_RESULTS_ALL := $(notdir $(patsubst %.xml,%.fits,$(wildcard $(EXAMPLE_DIR)*.xml))) CHECK_ROTSTAR_RESULTS := $(filter %rotstar3_1.fits, $(CHECK_RESULTS_ALL)) CHECK_WIP_RESULTS := $(filter %-wip.fits, $(CHECK_RESULTS_ALL)) CHECK_RESULTS_SKIP = $(CHECK_ROTSTAR_RESULTS) $(CHECK_WIP_RESULTS) if !HAVE_2F1 CHECK_RESULTS_SKIP += example-jet.fits example-torusjet.fits endif CHECK_RESULTS=$(filter-out $(CHECK_RESULTS_SKIP), $(CHECK_RESULTS_ALL)) CHECK_MPI_RESULTS = $(CHECK_RESULTS:.fits=-mpi.fits) CHECK_WIP_MPI_RESULTS = $(CHECK_WIP_RESULTS:.fits=-mpi.fits) CLEANFILES += $(CHECK_RESULTS) $(CHECK_MPI_RESULTS) CLEANFILES += $(CHECK_WIP_RESULTS) $(CHECK_WIP_MPI_RESULTS) MPIRUN = mpirun CHECK_ENV = LD_LIBRARY_PATH=@top_builddir@/lib/.libs/:$(LD_LIBRARY_PATH) CHECK_RAW_CMD = ./gyoto -pstdplug -r32 -T8 -P0 CHECK_CMD = $(CHECK_ENV) $(CHECK_RAW_CMD) check-nompi-clean: rm -f $(CHECK_RESULTS) check-mpi-clean: rm -f $(CHECK_MPI_RESULTS) check-wip-nompi-clean: rm -f $(CHECK_WIP_RESULTS) check-wip-mpi-clean: rm -f $(CHECK_WIP_MPI_RESULTS) if BUILD_GYOTO $(CHECK_RESULTS): gyoto $(EXAMPLE_DIR)$(@:.fits=.xml) $(CHECK_CMD) $(EXAMPLE_DIR)$(@:.fits=.xml) \!$@ $(CHECK_MPI_RESULTS): gyoto $(EXAMPLE_DIR)$(@:-mpi.fits=.xml) $(CHECK_ENV) $(MPIRUN) $(CHECK_RAW_CMD) -P4 $(EXAMPLE_DIR)$(@:-mpi.fits=.xml) \!$@ $(CHECK_WIP_RESULTS): gyoto $(EXAMPLE_DIR)$(@:.fits=.xml) $(CHECK_CMD) $(EXAMPLE_DIR)$(@:.fits=.xml) \!$@ $(CHECK_WIP_MPI_RESULTS): gyoto $(EXAMPLE_DIR)$(@:-mpi.fits=.xml) $(CHECK_ENV) $(MPIRUN) $(CHECK_RAW_CMD) -P4 $(EXAMPLE_DIR)$(@:-mpi.fits=.xml) \!$@ check-nompi-compute: $(CHECK_RESULTS) check-nompi: check-nompi-clean check-nompi-compute check-mpi-compute: $(CHECK_MPI_RESULTS) check-mpi: check-mpi-clean check-mpi-compute check-wip-nompi-compute: $(CHECK_WIP_RESULTS) check-wip-nompi: check-wip-nompi-clean check-wip-nompi-compute check-wip-mpi-compute: $(CHECK_WIP_MPI_RESULTS) check-wip-mpi: check-wip-mpi-clean check-wip-mpi-compute check: check-nompi check-wip: check-wip-nompi if HAVE_LORENE # make check-lorene check-lorene-mpi # Will # 1- copy the Nrotstar directory from HOME_LORENE into .check-lorene; # 2- configure Nrotstar by copying par_eos.d and par_rot.d from GR/Kepler; # 3- build Nrotstar/nrotstar; # 4- run it to build Nrotstar/resu.d; # 5- ray-trace ../doc/examples/example-*-rotstar3_1.xml twice # (with and without MPI). export HOME_LORENE .check-lorene/resu.d: rm -Rf .check-lorene cp -a $(HOME_LORENE)/Codes/Nrotstar ./.check-lorene cd .check-lorene && rm -f nrotstar *.o cd .check-lorene && cp -f Parameters/GR/Kepler/*.d ./ cd .check-lorene && $(SED) -i.bak 's/1 graph/0 graph/' par_rot.d cd .check-lorene && $(MAKE) cd .check-lorene && ./nrotstar CHECK_ROTSTAR_MPI_RESULTS = $(CHECK_ROTSTAR_RESULTS:.fits=-mpi.fits) CLEANFILES += $(CHECK_ROTSTAR_RESULTS) $(CHECK_ROTSTAR_MPI_RESULTS) $(CHECK_ROTSTAR_MPI_RESULTS): gyoto $(EXAMPLE_DIR)$(@:-mpi.fits=.xml) .check-lorene/resu.d $(CHECK_ENV) $(MPIRUN) $(CHECK_RAW_CMD) -pstdplug,lorene -P4 $(EXAMPLE_DIR)$(@:-mpi.fits=.xml) \!$@ $(CHECK_ROTSTAR_RESULTS): gyoto $(EXAMPLE_DIR)$(@:.fits=.xml) .check-lorene/resu.d $(CHECK_CMD) -pstdplug,lorene -T0 $(EXAMPLE_DIR)$(@:.fits=.xml) \!$@ check-lorene-clean: rm -f $(CHECK_ROTSTAR_RESULTS) check-lorene-compute: $(CHECK_ROTSTAR_RESULTS) check-lorene: check-lorene-clean check-lorene-compute check-lorene-mpi-clean: rm -f $(CHECK_ROTSTAR_MPI_RESULTS) check-lorene-mpi-compute: $(CHECK_ROTSTAR_MPI_RESULTS) check-lorene-mpi: check-lorene-mpi-clean check-lorene-mpi-compute endif endif clean-local: -rm -rf .check-lorene echo-stuff: echo $(CHECK_RESULTS_ALL) echo $(CHECK_RESULTS) .PHONY: check-nompi-compute check-nompi-clean check-nompi check-mpi-clean check-mpi-compute check-mpi check check-lorene-clean check-lorene-compute check-lorene check-lorene-mpi-clean check-lorene-mpi-compute check-lorene-mpi check Gyoto-2.0.2/bin/Makefile.in000066400000000000000000001116461455254334400154530ustar00rootroot00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ 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@ target_triplet = @target@ bin_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) @BUILD_GYOTO_TRUE@am__append_1 = gyoto @BUILD_GYOTO_TRUE@am__append_2 = gyoto.1 @HAVE_MPI_TRUE@am__append_3 = $(BOOST_MPI_LDFLAGS) $(BOOST_MPI_LIBS) \ @HAVE_MPI_TRUE@ $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) @HAVE_MPI_TRUE@am__append_4 = gyoto-mpi-worker.@sovers@ @HAVE_MPI_TRUE@am__append_5 = gyoto-mpi-worker.@sovers@.1 @HAVE_MPI_TRUE@am__append_6 = gyoto-mpi-worker.@sovers@.1 @HAVE_2F1_FALSE@am__append_7 = example-jet.fits example-torusjet.fits @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@am__append_8 = $(CHECK_ROTSTAR_RESULTS) $(CHECK_ROTSTAR_MPI_RESULTS) subdir = bin ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_append_compile_flags.m4 \ $(top_srcdir)/m4/ax_append_flag.m4 \ $(top_srcdir)/m4/ax_append_link_flags.m4 \ $(top_srcdir)/m4/ax_check_compile_flag.m4 \ $(top_srcdir)/m4/ax_check_link_flag.m4 \ $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.m4 \ $(top_srcdir)/m4/ax_pkg_swig.m4 $(top_srcdir)/m4/ax_pthread.m4 \ $(top_srcdir)/m4/ax_require_defined.m4 \ $(top_srcdir)/m4/boost.m4 $(top_srcdir)/m4/gyoto.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)/m4/python.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h \ $(top_builddir)/include/GyotoConfig.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = @BUILD_GYOTO_TRUE@am__EXEEXT_1 = gyoto$(EXEEXT) @HAVE_MPI_TRUE@am__EXEEXT_2 = gyoto-mpi-worker.@sovers@$(EXEEXT) am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" PROGRAMS = $(bin_PROGRAMS) am_gyoto_OBJECTS = gyoto-gyoto.$(OBJEXT) gyoto_OBJECTS = $(am_gyoto_OBJECTS) gyoto_DEPENDENCIES = @top_builddir@/lib/libgyoto@FEATURES@.la AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = gyoto_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(gyoto_LDFLAGS) $(LDFLAGS) -o $@ am_gyoto_mpi_worker_@sovers@_OBJECTS = \ gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.$(OBJEXT) gyoto_mpi_worker_@sovers@_OBJECTS = \ $(am_gyoto_mpi_worker_@sovers@_OBJECTS) gyoto_mpi_worker_@sovers@_DEPENDENCIES = \ @top_builddir@/lib/libgyoto@FEATURES@.la gyoto_mpi_worker_@sovers@_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(AM_CXXFLAGS) $(CXXFLAGS) \ $(gyoto_mpi_worker_@sovers@_LDFLAGS) $(LDFLAGS) -o $@ 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 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/include depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/gyoto-gyoto.Po \ ./$(DEPDIR)/gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.Po am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(gyoto_SOURCES) $(gyoto_mpi_worker_@sovers@_SOURCES) DIST_SOURCES = $(gyoto_SOURCES) $(gyoto_mpi_worker_@sovers@_SOURCES) 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; }; \ } man1dir = $(mandir)/man1 NROFF = nroff MANS = $(dist_man_MANS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # 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)` am__DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.in \ $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AEAE_CFLAGS = @AEAE_CFLAGS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ ARBLIB_CFLAGS = @ARBLIB_CFLAGS@ ARBLIB_LIBS = @ARBLIB_LIBS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BIBTEX = @BIBTEX@ BOOST_CPPFLAGS = @BOOST_CPPFLAGS@ BOOST_LDPATH = @BOOST_LDPATH@ BOOST_MPI_LDFLAGS = @BOOST_MPI_LDFLAGS@ BOOST_MPI_LDPATH = @BOOST_MPI_LDPATH@ BOOST_MPI_LIBS = @BOOST_MPI_LIBS@ BOOST_ROOT = @BOOST_ROOT@ BOOST_SERIALIZATION_LDFLAGS = @BOOST_SERIALIZATION_LDFLAGS@ BOOST_SERIALIZATION_LDPATH = @BOOST_SERIALIZATION_LDPATH@ BOOST_SERIALIZATION_LIBS = @BOOST_SERIALIZATION_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFITSIO_CFLAGS = @CFITSIO_CFLAGS@ CFITSIO_LIBS = @CFITSIO_LIBS@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CXXFLAGS_EXEC = @CXXFLAGS_EXEC@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@ DLLTOOL = @DLLTOOL@ DOXYGEN = @DOXYGEN@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DYLIB_VAR = @DYLIB_VAR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EIGEN_CFLAGS = @EIGEN_CFLAGS@ EIGEN_LIBS = @EIGEN_LIBS@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FEATURES = @FEATURES@ FGREP = @FGREP@ FILECMD = @FILECMD@ GREP = @GREP@ GYOTO_PLUGIN_SFX = @GYOTO_PLUGIN_SFX@ HAVE_CXX11 = @HAVE_CXX11@ HOME_LORENE = @HOME_LORENE@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ KPSEWHICH = @KPSEWHICH@ LD = @LD@ LDFLAGS = @LDFLAGS@ LDFLAGS_EXEC = @LDFLAGS_EXEC@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LORENECPPFLAGS = @LORENECPPFLAGS@ LORENELDFLAGS = @LORENELDFLAGS@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MAKE_S = @MAKE_S@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPICXX = @MPICXX@ 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@ PDFLATEX = @PDFLATEX@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POW_LIB = @POW_LIB@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYTHON = @PYTHON@ PYTHON_CFLAGS = @PYTHON_CFLAGS@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_EXTENSION_SUFFIX = @PYTHON_EXTENSION_SUFFIX@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBS = @PYTHON_LIBS@ PYTHON_PREFIX = @PYTHON_PREFIX@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_LIB = @SWIG_LIB@ SYS = @SYS@ UDUNITS_CFLAGS = @UDUNITS_CFLAGS@ UDUNITS_LIBS = @UDUNITS_LIBS@ VERBATIM = @VERBATIM@ VERSINFO = @VERSINFO@ VERSION = @VERSION@ VIRTUALENV = @VIRTUALENV@ VIRTUALENV_FLAGS = @VIRTUALENV_FLAGS@ XERCES_CFLAGS = @XERCES_CFLAGS@ XERCES_LIBS = @XERCES_LIBS@ YORICK = @YORICK@ Y_INST_HOME = @Y_INST_HOME@ Y_INST_SITE = @Y_INST_SITE@ 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@ ax_pthread_config = @ax_pthread_config@ 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@ localpkglibdir = @localpkglibdir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ mySUBDIRS = @mySUBDIRS@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkg_cflags = @pkg_cflags@ pkg_libs = @pkg_libs@ pkg_requires = @pkg_requires@ pkgpythondir = @pkgpythondir@ plugin_sfx = @plugin_sfx@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sovers = @sovers@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ACLOCAL_AMFLAGS = -I m4 AM_CPPFLAGS = -I@top_srcdir@/include $(XERCES_CFLAGS) $(UDUNITS_CFLAGS) $(BOOST_CPPFLAGS) \ -DPACKAGE_STRING="$(PACKAGE_STRING)" AM_LDFLAGS = $(XERCES_LIBS) $(PTHREAD_LIBS) $(LDFLAGS_EXEC) \ $(am__append_3) AM_CXXFLAGS = $(PTHREAD_CFLAGS) $(CXXFLAGS_EXEC) CLEANFILES = $(am__append_6) $(CHECK_RESULTS) $(CHECK_MPI_RESULTS) \ $(CHECK_WIP_RESULTS) $(CHECK_WIP_MPI_RESULTS) $(am__append_8) dist_man_MANS = $(am__append_2) $(am__append_5) gyoto_SOURCES = gyoto.C gyoto_LDADD = @top_builddir@/lib/libgyoto@FEATURES@.la gyoto_CPPFLAGS = $(AM_CPPFLAGS) $(CFITSIO_CFLAGS) gyoto_LDFLAGS = $(AM_LDFLAGS) $(CFITSIO_LIBS) -export-dynamic gyoto_mpi_worker_@sovers@_SOURCES = gyoto-mpi-worker.C gyoto_mpi_worker_@sovers@_LDADD = @top_builddir@/lib/libgyoto@FEATURES@.la gyoto_mpi_worker_@sovers@_CPPFLAGS = $(AM_CPPFLAGS) $(CFITSIO_CFLAGS) gyoto_mpi_worker_@sovers@_LDFLAGS = $(AM_LDFLAGS) $(CFITSIO_LIBS) -export-dynamic EXAMPLE_DIR = $(top_srcdir)/doc/examples/ CHECK_RESULTS_ALL := $(notdir $(patsubst %.xml,%.fits,$(wildcard $(EXAMPLE_DIR)*.xml))) CHECK_ROTSTAR_RESULTS := $(filter %rotstar3_1.fits, $(CHECK_RESULTS_ALL)) CHECK_WIP_RESULTS := $(filter %-wip.fits, $(CHECK_RESULTS_ALL)) CHECK_RESULTS_SKIP = $(CHECK_ROTSTAR_RESULTS) $(CHECK_WIP_RESULTS) \ $(am__append_7) CHECK_RESULTS = $(filter-out $(CHECK_RESULTS_SKIP), $(CHECK_RESULTS_ALL)) CHECK_MPI_RESULTS = $(CHECK_RESULTS:.fits=-mpi.fits) CHECK_WIP_MPI_RESULTS = $(CHECK_WIP_RESULTS:.fits=-mpi.fits) MPIRUN = mpirun CHECK_ENV = LD_LIBRARY_PATH=@top_builddir@/lib/.libs/:$(LD_LIBRARY_PATH) CHECK_RAW_CMD = ./gyoto -pstdplug -r32 -T8 -P0 CHECK_CMD = $(CHECK_ENV) $(CHECK_RAW_CMD) @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@CHECK_ROTSTAR_MPI_RESULTS = $(CHECK_ROTSTAR_RESULTS:.fits=-mpi.fits) all: all-am .SUFFIXES: .SUFFIXES: .C .lo .o .obj $(srcdir)/Makefile.in: $(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 bin/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign bin/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__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list gyoto$(EXEEXT): $(gyoto_OBJECTS) $(gyoto_DEPENDENCIES) $(EXTRA_gyoto_DEPENDENCIES) @rm -f gyoto$(EXEEXT) $(AM_V_CXXLD)$(gyoto_LINK) $(gyoto_OBJECTS) $(gyoto_LDADD) $(LIBS) gyoto-mpi-worker.@sovers@$(EXEEXT): $(gyoto_mpi_worker_@sovers@_OBJECTS) $(gyoto_mpi_worker_@sovers@_DEPENDENCIES) $(EXTRA_gyoto_mpi_worker_@sovers@_DEPENDENCIES) @rm -f gyoto-mpi-worker.@sovers@$(EXEEXT) $(AM_V_CXXLD)$(gyoto_mpi_worker_@sovers@_LINK) $(gyoto_mpi_worker_@sovers@_OBJECTS) $(gyoto_mpi_worker_@sovers@_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gyoto-gyoto.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .C.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .C.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .C.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< gyoto-gyoto.o: gyoto.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gyoto_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT gyoto-gyoto.o -MD -MP -MF $(DEPDIR)/gyoto-gyoto.Tpo -c -o gyoto-gyoto.o `test -f 'gyoto.C' || echo '$(srcdir)/'`gyoto.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/gyoto-gyoto.Tpo $(DEPDIR)/gyoto-gyoto.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='gyoto.C' object='gyoto-gyoto.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gyoto_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o gyoto-gyoto.o `test -f 'gyoto.C' || echo '$(srcdir)/'`gyoto.C gyoto-gyoto.obj: gyoto.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gyoto_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT gyoto-gyoto.obj -MD -MP -MF $(DEPDIR)/gyoto-gyoto.Tpo -c -o gyoto-gyoto.obj `if test -f 'gyoto.C'; then $(CYGPATH_W) 'gyoto.C'; else $(CYGPATH_W) '$(srcdir)/gyoto.C'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/gyoto-gyoto.Tpo $(DEPDIR)/gyoto-gyoto.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='gyoto.C' object='gyoto-gyoto.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gyoto_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o gyoto-gyoto.obj `if test -f 'gyoto.C'; then $(CYGPATH_W) 'gyoto.C'; else $(CYGPATH_W) '$(srcdir)/gyoto.C'; fi` gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.o: gyoto-mpi-worker.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gyoto_mpi_worker_@sovers@_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.o -MD -MP -MF $(DEPDIR)/gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.Tpo -c -o gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.o `test -f 'gyoto-mpi-worker.C' || echo '$(srcdir)/'`gyoto-mpi-worker.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.Tpo $(DEPDIR)/gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='gyoto-mpi-worker.C' object='gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gyoto_mpi_worker_@sovers@_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.o `test -f 'gyoto-mpi-worker.C' || echo '$(srcdir)/'`gyoto-mpi-worker.C gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.obj: gyoto-mpi-worker.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gyoto_mpi_worker_@sovers@_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.obj -MD -MP -MF $(DEPDIR)/gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.Tpo -c -o gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.obj `if test -f 'gyoto-mpi-worker.C'; then $(CYGPATH_W) 'gyoto-mpi-worker.C'; else $(CYGPATH_W) '$(srcdir)/gyoto-mpi-worker.C'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.Tpo $(DEPDIR)/gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='gyoto-mpi-worker.C' object='gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(gyoto_mpi_worker_@sovers@_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.obj `if test -f 'gyoto-mpi-worker.C'; then $(CYGPATH_W) 'gyoto-mpi-worker.C'; else $(CYGPATH_W) '$(srcdir)/gyoto-mpi-worker.C'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-man1: $(dist_man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(dist_man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(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-am 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" cscopelist: cscopelist-am 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 distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(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 check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(MANS) installdirs: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; 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: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) 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-binPROGRAMS clean-generic clean-libtool clean-local \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/gyoto-gyoto.Po -rm -f ./$(DEPDIR)/gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-man install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-man1 install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/gyoto-gyoto.Po -rm -f ./$(DEPDIR)/gyoto_mpi_worker_@sovers@-gyoto-mpi-worker.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-man uninstall-man: uninstall-man1 .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-binPROGRAMS clean-generic clean-libtool clean-local \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS 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-man1 install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-binPROGRAMS uninstall-man \ uninstall-man1 .PRECIOUS: Makefile gyoto-mpi-worker.@sovers@.1: gyoto-mpi-worker.1 cp $^ $@ export PATH := .:$(PATH) check-nompi-clean: rm -f $(CHECK_RESULTS) check-mpi-clean: rm -f $(CHECK_MPI_RESULTS) check-wip-nompi-clean: rm -f $(CHECK_WIP_RESULTS) check-wip-mpi-clean: rm -f $(CHECK_WIP_MPI_RESULTS) @BUILD_GYOTO_TRUE@$(CHECK_RESULTS): gyoto $(EXAMPLE_DIR)$(@:.fits=.xml) @BUILD_GYOTO_TRUE@ $(CHECK_CMD) $(EXAMPLE_DIR)$(@:.fits=.xml) \!$@ @BUILD_GYOTO_TRUE@$(CHECK_MPI_RESULTS): gyoto $(EXAMPLE_DIR)$(@:-mpi.fits=.xml) @BUILD_GYOTO_TRUE@ $(CHECK_ENV) $(MPIRUN) $(CHECK_RAW_CMD) -P4 $(EXAMPLE_DIR)$(@:-mpi.fits=.xml) \!$@ @BUILD_GYOTO_TRUE@$(CHECK_WIP_RESULTS): gyoto $(EXAMPLE_DIR)$(@:.fits=.xml) @BUILD_GYOTO_TRUE@ $(CHECK_CMD) $(EXAMPLE_DIR)$(@:.fits=.xml) \!$@ @BUILD_GYOTO_TRUE@$(CHECK_WIP_MPI_RESULTS): gyoto $(EXAMPLE_DIR)$(@:-mpi.fits=.xml) @BUILD_GYOTO_TRUE@ $(CHECK_ENV) $(MPIRUN) $(CHECK_RAW_CMD) -P4 $(EXAMPLE_DIR)$(@:-mpi.fits=.xml) \!$@ @BUILD_GYOTO_TRUE@check-nompi-compute: $(CHECK_RESULTS) @BUILD_GYOTO_TRUE@check-nompi: check-nompi-clean check-nompi-compute @BUILD_GYOTO_TRUE@check-mpi-compute: $(CHECK_MPI_RESULTS) @BUILD_GYOTO_TRUE@check-mpi: check-mpi-clean check-mpi-compute @BUILD_GYOTO_TRUE@check-wip-nompi-compute: $(CHECK_WIP_RESULTS) @BUILD_GYOTO_TRUE@check-wip-nompi: check-wip-nompi-clean check-wip-nompi-compute @BUILD_GYOTO_TRUE@check-wip-mpi-compute: $(CHECK_WIP_MPI_RESULTS) @BUILD_GYOTO_TRUE@check-wip-mpi: check-wip-mpi-clean check-wip-mpi-compute @BUILD_GYOTO_TRUE@check: check-nompi @BUILD_GYOTO_TRUE@check-wip: check-wip-nompi # make check-lorene check-lorene-mpi # Will # 1- copy the Nrotstar directory from HOME_LORENE into .check-lorene; # 2- configure Nrotstar by copying par_eos.d and par_rot.d from GR/Kepler; # 3- build Nrotstar/nrotstar; # 4- run it to build Nrotstar/resu.d; # 5- ray-trace ../doc/examples/example-*-rotstar3_1.xml twice # (with and without MPI). @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@export HOME_LORENE @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@.check-lorene/resu.d: @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@ rm -Rf .check-lorene @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@ cp -a $(HOME_LORENE)/Codes/Nrotstar ./.check-lorene @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@ cd .check-lorene && rm -f nrotstar *.o @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@ cd .check-lorene && cp -f Parameters/GR/Kepler/*.d ./ @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@ cd .check-lorene && $(SED) -i.bak 's/1 graph/0 graph/' par_rot.d @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@ cd .check-lorene && $(MAKE) @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@ cd .check-lorene && ./nrotstar @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@$(CHECK_ROTSTAR_MPI_RESULTS): gyoto $(EXAMPLE_DIR)$(@:-mpi.fits=.xml) .check-lorene/resu.d @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@ $(CHECK_ENV) $(MPIRUN) $(CHECK_RAW_CMD) -pstdplug,lorene -P4 $(EXAMPLE_DIR)$(@:-mpi.fits=.xml) \!$@ @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@$(CHECK_ROTSTAR_RESULTS): gyoto $(EXAMPLE_DIR)$(@:.fits=.xml) .check-lorene/resu.d @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@ $(CHECK_CMD) -pstdplug,lorene -T0 $(EXAMPLE_DIR)$(@:.fits=.xml) \!$@ @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@check-lorene-clean: @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@ rm -f $(CHECK_ROTSTAR_RESULTS) @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@check-lorene-compute: $(CHECK_ROTSTAR_RESULTS) @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@check-lorene: check-lorene-clean check-lorene-compute @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@check-lorene-mpi-clean: @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@ rm -f $(CHECK_ROTSTAR_MPI_RESULTS) @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@check-lorene-mpi-compute: $(CHECK_ROTSTAR_MPI_RESULTS) @BUILD_GYOTO_TRUE@@HAVE_LORENE_TRUE@check-lorene-mpi: check-lorene-mpi-clean check-lorene-mpi-compute clean-local: -rm -rf .check-lorene echo-stuff: echo $(CHECK_RESULTS_ALL) echo $(CHECK_RESULTS) .PHONY: check-nompi-compute check-nompi-clean check-nompi check-mpi-clean check-mpi-compute check-mpi check check-lorene-clean check-lorene-compute check-lorene check-lorene-mpi-clean check-lorene-mpi-compute check-lorene-mpi check # 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: Gyoto-2.0.2/bin/Makefile.old000066400000000000000000000021161455254334400156120ustar00rootroot00000000000000SHELL=/bin/sh include ../local_settings .SUFFIXES : .o .C SRC = gyoto.C OBJ = $(SRC:.C=.o) LIB_SRC = $(shell ls ../lib/*.C) HDRS = $(shell ls ../include/*.h) EXE_ALL = gyoto # the gyoto executable requires XERCES ifeq (,$(findstring -DGYOTO_USE_XERCES,$(GYOTO_FLAGS))) EXE = $(filter-out gyoto,$(EXE_ALL)) else EXE = $(EXE_ALL) endif all: $(EXE) .C.o: $(CXX) -c $(GYOTO_FLAGS) -I../include $(CPPFLAGS) $(CXXFLAGS) $< gyoto: gyoto.o ../lib/$(LIBGYOTO_FILE) $(CXX) -o $@ $< -L../lib -lgyoto -ldl $(LDFLAGS) $(LDLIBS) clean: rm -f $(OBJ) rm -f $(EXE_ALL) rm -fr Doc rm -fr *~ rm -f libgyoto.a rm -fr gyoto.dSYM $(DESTDIR)$(PREFIX)/share/man/man1 $(DESTDIR)$(PREFIX)/bin: install -d $@ ifeq (,$(findstring -DGYOTO_USE_XERCES,$(GYOTO_FLAGS))) install: else install: $(EXE) $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/share/man/man1 gyoto.1 install -m 0755 $(EXE) $(DESTDIR)$(PREFIX)/bin install -m 0644 gyoto.1 $(DESTDIR)$(PREFIX)/share/man/man1 endif uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/gyoto rm -f $(DESTDIR)$(PREFIX)/share/man/man1/gyoto.1 .PHONY: clean install uninstallGyoto-2.0.2/bin/gyoto-mpi-worker.1000066400000000000000000000016241455254334400167150ustar00rootroot00000000000000.\" Process this file with .\" groff -man -Tascii foo.1 .\" .TH GYOTO-MPI-WORKER 1 "OCTOBER 2014" Science "User Manuals" .SH NAME Gyoto \- the General relativitY Orbit Tracer of Observatoire de Paris .SH SYNOPSIS gyoto-mpi-worker.\fISOVERS\fR [MPI options] .SH DESCRIPTION Gyoto is a framework for computing geodesics in curved space-times. The \fBgyoto-mpi-worker\fR helper program is not meant to be executed directly by the user. It is spawned by the MPI frawework when using multi-processing. It does not process any command-line parameter, but passes them to MPI_Init(3). \fBgyoto-mpi-worker\fR is bound to a specific version of the Gyoto application binary interface (ABI). To allow for co-installation of several versions of the Gyoto library, the SO information digits are appended to the executable name. .SH AUTHOR Thibaut Paumard wrote this manual. .SH "SEE ALSO" .BR gyoto (1) Gyoto-2.0.2/bin/gyoto-mpi-worker.C000066400000000000000000000043511455254334400167370ustar00rootroot00000000000000/* Copyright 2014, 2016, 2018 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ // Gyoto #include "GyotoDefs.h" #include "GyotoFactory.h" #include "GyotoUtils.h" #include "GyotoRegister.h" #include "GyotoScenery.h" #include "GyotoScreen.h" // FITS I/O #include // signal() #include // getpid() #include #include using namespace std; using namespace Gyoto; static SmartPointer sc = NULL; #ifdef HAVE_MPI #include #include #include #include #include namespace mpi = boost::mpi; #endif static std::string curmsg = "In Gyoto MPI worker: "; static int curretval = 1; void gyotoErrorHandler( const Gyoto::Error e ) { cerr << curmsg << e << endl; if (debug()) abort(); // to keep stack for debugger exit (curretval); } int main(int argc, char** argv) { /* This program aims at computing the null geodesics of photons from an observation screen to an astrophysical object (star orbit, fixed star or disk). The final result is a list of illuminated pixels. */ // For debug output debug(0); verbose(GYOTO_SEVERE_VERBOSITY); mpi::environment env(argc, argv); string pluglist= getenv("GYOTO_PLUGINS")? getenv("GYOTO_PLUGINS"): GYOTO_DEFAULT_PLUGINS; Gyoto::Error::setHandler ( &gyotoErrorHandler ); curmsg = "In gyoto-mpi-worker.C: Error initializing libgyoto: "; curretval = 1; Gyoto::Register::init(pluglist.c_str()); curmsg = "gyoto-mpi-worker: "; Gyoto::Scenery::mpiWorker(); return 0; } Gyoto-2.0.2/bin/gyoto.1000066400000000000000000000370241455254334400146260ustar00rootroot00000000000000.\" Process this file with .\" groff -man -Tascii foo.1 .\" .TH GYOTO 1 "January 2024" Science "User Manuals" .SH NAME Gyoto \- the General relativitY Orbit Tracer of Observatoire de Paris .SH SYNOPSIS gyoto [\fB\-\-silent\fR|\fB\-\-quiet\fR|\fB\-\-verbose\fR[=\fIN\fR]|\fB\-\-debug\fR] [\fB\-\-no\-sigfpe\fR] [\fB\-\-help\fR[=\fIclass\fR]] [\fB\-\-version\fR] [\fB\-\-list\fR] [\fB\-\-ispec\fR=\fIi0\fR:\fIi1\fR:\fIdi\fR] [\fB\-\-jspec\fR=\fIj0\fR:\fIj1\fR:\fIdj\fR] ([\fB\-\-imin\fR=\fIi0\fR] [\fB\-\-imax\fR=\fIi1\fR] [\fB\-\-di\fR=\fIdi\fR]) ([\fB\-\-jmin\fR=\fIj0\fR] [\fB\-\-jmax\fR=\fIj1\fR] [\fB\-\-dj\fR=\fIdj\fR]) [\fB\-\-time\fR=\fItobs\fR] [\fB\-\-tmin\fR=\fItmin\fR] [\fB\-\-fov\fR=\fIangle\fR] [\fB\-\-resolution\fR=\fInpix\fR] [\fB\-\-distance\fR=\fIdist\fR] [\fB\-\-paln\fR=\fIOmega\fR] [\fB\-\-inclination\fR=\fIi\fR] [\fB\-\-argument\fR=\fItheta\fR] [\fB\-\-nthreads\fR=\fInth\fR] [\fB\-\-nprocesses\fR=\fInworkers\fR] [\fB\-\-plugins\fR=\fIpluglist\fR] [\fB\-\-impact-coords\fR[=\fIfname.fits\fR]] [\fB\-\-unit\fR[=\fIunit\fR]] [\fB\-\-parameter\fR=\fIPath::Name\fR[=\fIvalue\fR]] [\fB\-\-xmlwrite\fR=\fIoutput.xml\fR] [\fB\-\-\fR] \fIinput.xml \fIoutput.fits\fR gyoto mk-video [\fIoptions\fR] .SH DESCRIPTION Gyoto is a framework for computing geodesics in curved space-times. The \fBgyoto\fR utility program uses this framework to compute images of astronomical objects in the vicinity of compact objects (e.g. black-holes). Such images are distorted by strong gravitational lensing. In the first form, \fBgyoto\fR takes a scenery description in XML format (\fIinput.xml\fR), computes this scenery using relativistic ray-tracing, and saves the result in FITS format. In the second form, \fBgyoto\fR produces a movie. See \fBgyoto mk-video \-\-help\fR for details. In particular, it can read a Scenery in XML format and a trajectory also in XML format (for instance produced with \fBgyotoy\fR(1), see below) and produce a movie as would be seen by an observer following this trajectory. The Gyoto plug-in \fIpython\fR and the Python module \fIOpenCV-Python\fR must be installed. The Python flavor to use can be controlled through the GYOTO_PYTHON environment variable. A companion program, \fBgyotoy\fR(1), can be used to interactively visualize a single geodesic in any Gyoto metric (the trajectory of a single photon or massive particle). Ray-tracing can be very time consuming. It is possible to interrupt the process at any time by hitting ^C, which will save the already-computed part of the image before exiting the program. You can then compute the rest of the image later using the \fB\-\-jmin\fR option. .SH OPTIONS The \fBgyoto\fR program accepts many options. Most have a long name (e.g. \fB\-\-parameter\fR) and a short name (e.g. \fB\-E\fR). When an option takes an argument, this argument must follow immediately the short option (e.g. \fB\-E\fIPath::Name\fR) and be separated from the long option by exactly the character "=" (e.g. \fB\-\-parameter\fR=\fIPath::Name\fR). Long options can be abbreviated as long as the abbreviation is unambiguous (e.g. \fB\-\-par=\fIPath::Name\fR). Most options can appear several times and are processed in the order they appear in the command line. The two positional parameters (\fIinput.xml\fR and \fIoutput.fits\fR) can appear anywhere in the command line, except if they start with a minus character (\-) in which case they must appear last, after the option \fB\-\-\fR. .SS Getting help .IP \fB\-\-help\fR[=\fIclass\fR] .PD 0 .IP \fB\-h\fR[\fIclass\fR] Without argument \fIclass\fR, print help summary. Although not as verbose as this manual page, the output of \fBgyoto \fI\-h\fR may be more complete and up to date. If \fIclass\fR is specified, list and document the properties of \fIclass\fR (e.g. "Screen", "Astrobj::Star"). Then exit the program, unless \fB\-\-list\fR below has only been specified. .PD .PD 0 .IP \fB\-\-list\fR .IP \fB\-l\fR Print list of currently registered Astrobj, Metric etc., then exit the program. This occurs after loading \fIinput.xml\fR (if provided), so that any plug-in specified in the input file have already been loaded. .PD .PD 0 .IP \fB\-\-version\fR .IP \fB\-V\fR Print the Gyoto version, ABI compatibility version, copyright information and exit. .PD .SS Setting the verbosity level Those options are processed separately from the other and take effect early in the program execution. .IP \fB\-\-silent\fR .PD 0 .IP \fB\-s\fR No output. .PD .IP \fB\-\-quiet\fR .PD 0 .IP \fB\-q\fR Minimal output. .PD .IP \fB\-\-verbose\fR[=\fIN\fR] .PD 0 .IP \fB\-v\fR[\fIN\fR] Verbose mode. Verbosity level \fIN\fR may be specified. .PD .IP \fB\-\-debug\fR .PD 0 .IP \fB\-d\fR Insanely verbose. .PD .IP \fB\-\-no\-sigfpe\fR Do not try to raise SIGFPE upon arithmetic exceptions. This option is meaningful only if fenv.h support is built in. Else this option is a no-op as SIGFPE is never raised. .SS Loading plug-ins .IP \fB\-\-plugins\fR[=\fI[nofail:]plug1[,[nofail:]plug2][...]]\fR .PD 0 .IP \fB\-p\fI[[nofail:]plug1[,[nofail:]plug2][...]]\fR Comma-separated list of Gyoto plugins to load. Overrides GYOTO_PLUGINS environment variable below. Only the last occurrence matters. .PD .SS Selecting a region It is possible to ray-trace only part of the scenery by providing the pixel coordinates of the bottom-left (\fIi0\fR, \fIj0\fR) and top-right (\fIi1\fR, \fIj1\fR) corners of the region. The bottom-left pixel of the complete image has coordinates i=1 and j=1. The step in each direction (\fIdi\fR, \fIdj\fR) can also be specified. .IP \fB\-\-ispec\fR=\fI[i0]:[i1]:[di]\fR .PD 0 .IP \fB\-i\fI[i0]:[i1]:[di]\fR .IP \fB\-\-jspec\fR=\fI[j0]:[j1]:[dj]\fR .IP \fB\-j\fI[j0]:[j1]:[dj]\fR Default values: \fIx0\fR: 1; \fIx1\fR: \fInpix\fR (see option \fB\-\-resolution\fR below); \fIdx\fR: 1. .PD .IP \fB\-\-ispec\fR=\fIN\fR .PD 0 .IP \fB\-i\fIN\fR .IP \fB\-\-jspec\fR=\fIN\fR .IP \fB\-j\fIN\fR Set both \fIx0\fR and \fIx1\fR to \fIN\fR. .PD .SS Alternate region-selection options: Those options are still supported for backward compatibility. They are deprecated in favour of \fB\-\-ispec\fR and \fB\-\-jspec\fR above: .IP \fB\-\-imin\fR=\fIi0 Default value: 1. .IP \fB\-\-imax\fR=\fIi1 Default value: \fInpix\fR (see option \fB\-\-resolution\fR below). .IP \fB\-\-di\fR=\fIdi Default value:1. .IP \fB\-\-jmin\fR=\fIj0 Default value: 1. .IP \fB\-\-jmax\fR=\fIj1 Default value: \fInpix\fR (see option \fB\-\-resolution\fR below). .IP \fB\-\-dj\fR=\fIdj Default value:1. .SS Setting the camera position The following parameters are normally provided in the Screen section of \fIinput.xml\fR but can be overridden on the command line for instance to make a movie (by calling \fBgyoto\fR for each movie frame, changing only the option \fB\-\-time\fR). .IP \fB\-\-time\fR=\fItobs The observing time in geometrical units. .IP \fB\-\-fov\fR=\fIangle\fR The field-of-view of the camera, in radians. .IP \fB\-\-resolution\fR=\fInpix\fR .PD 0 .IP \fB\-r\fInpix\fR .PD Number of rows and columns in the output image. .IP \fB\-\-distance\fR=\fIdist\fR (Coordinate) distance from the observer to the center of the coordinate system, in geometrical units. .IP \fB\-\-paln\fR=\fIOmega\fR Position angle of the line of nodes, in radians, East of North. The is the angle between the North direction and the line of nodes (see below). .IP \fB\-\-inclination\fR=\fIi\fR Angle between the plane of the sky and the equator of the coordinate system. The intersection of those two planes is the line of nodes. .IP \fB\-\-argument\fR=\fItheta\fR Angle in the equatorial plane between the line of nodes and one of the main axes of the coordinate system. .SS Miscellaneous Unsorted option(s): .IP \fB\-\- Ends option processing, in case either \fIinput.xml\fR or \fIoutput.fits\fR starts with "\-". .IP \fB\-\-nthreads\fR=\fInth\fR .PD 0 .IP \fB\-T\fInth\fR .PD Number of parallel threads to use. For instance, on a dual-core machine, \fB\-\-nthreads\fR=2 should yield the fastest computation. This option is silently ignored if Gyoto was compiled without POSIX threads support. Note that the metric and object are replicated for each thread which can lead to a decrease in performance if either is memory-intensive. Setting this option to 0 is equivalent to setting it to 1. .IP \fB\-\-nprocesses\fR=\fInworkers\fR .PD 0 .IP \fB\-P\fInworkers\fR .PD Number of MPI processes to spawn for parallel ray-tracing, in addition to the main gyoto process which remains for managing the computation. Ignored if gyoto was compiled without MPI support. \fInworkers\fR is the number of workers spawned. The total number of processes is \fInprocs\fR=\fInworkers\fR+1. \fB-P\fR0 disables MPI multi-processing, while \fB\-P\fR1 uses two processes: the manager and one worker. If \fInworkers\fR is >0, \-\-nthreads is ignored. Note that the MPI environment usually needs to be set-up using some variant of .BR mpirun (1). If \fBmpirun\fR starts several instances of \fBgyoto\fR, \fInworkers\fR must be >0, but its exact value is ignored as the set of processes used is exactly that launched by \fBmpirun\fR. In other words, Gyoto can be called in a number of ways that should be functionally equivalent: . .RS .IP \(bu 4 let \fBmpirun\fR launch \fInprocs\fR instances of the \fBgyoto\fR executable: .IP \fBmpirun\fR \-np \-P\fInprocs\fR \fBgyoto\fR \-P1 \fIinput.xml\fR \fIoutput.fits\fR .IP \(bu 4 let \fBmpirun\fR launch 1 instance of the \fBgyoto\fR executable, and Gyoto spawn \fInworkers\fR worker processes: .IP \fBmpirun\fR \-np 1 \fBgyoto\fR \-P\fIworkers\fR \fIinput.xml\fR \fIoutput.fits\fR .IP \(bu 4 let \fBmpirun\fR launch 1 instance of the \fBgyoto\fR executable, and \fInworkers\fR worker processes: .IP \fBmpirun\fR \-np 1 \fBgyoto\fR \-P1\fR \fIinput.xml\fR \fIoutput.fits\fR : \\ \-np \fInworkers\fR \fBgyoto-mpi-worker.\fIversion\fR .IP where \fIversion\fR is the ABI compatibility version of \fBgyoto\fR (see \fBgyoto\fR \-\-version). .RE . .IP \fB\-\-impact\-coords\fR[=\fIimpactcoords.fits\fR] In some circumstances, you may want to perform several computations in which the computed geodesics end up being exactly identical. This is the case for instance if you want to experiment changing the spectrum of a star or when making a movie of a rotating, optically thick disk. This option provides a mechanism to not recompute the geodesics in the most simple case: . .RS .IP \(bu 4 the Screen is always at the same position; .IP \(bu 4 the Metric is always exactly the same; .IP \(bu 4 the Astrobj is optically thick (no radiative transfer processing is necessary); .IP \(bu 4 the location and shape of the Astrobj is always the same. .RE . .IP If \fB\-\-impact\-coords\fR is passed without specifying \fIimpactcoords.fits\fR, the 8-coordinate vectors of the object and photon at impact point are saved for each point of the Screen. Missing data (no impact) are set to DBL_MAX. These data are saved as a supplementary image HDU in the FITS file which is identified by its EXTNAME: "Gyoto Impact Coordinates". The FITS keyword "HIERARCH Gyoto Observing Date" of this HDU holds the observing date (in geometrical unit). .IP If \fIimpactcoords.fits\fR is specified, the above mentioned data are read back from this file. The ray-tracing is not performed, but the Gyoto::Astrobj::Generic::processHitQuantities() method is called directly, yielding the same result if the four conditions above are met. The observing date stored in the FITS keyword "HIERARCH Gyoto Observing Date" is compared to the date specified in the screen or using the \fB\-\-time\fR option and the impact coordinates are shifted in time accordingly. .IP It is also possible to set the two versions of this option at the same time: .RS .PD 0 .IP \fB\-\-impact\-coords\fR=\fIimpactcoords.fits\fR \fB\-\-impact\-coords\fR .RE .IP In this case, the impact coordinates are read from \fIimpactcoords.fits\fR, shifted in time, and saved in \fIoutput.fits\fR. .PD .IP \fB\-\-unit\fR[=\fIunit\fR] .PD 0 .IP \fB\-u\fR[\fIunit\fR] .PD Specify unit to use for allowing instances of \fB\-\-parameter\fR, until next instance of \fB\-\-unit\fR. .IP \fB\-\-parameter\fR=\fIPath::Name\fR[=\fIvalue\fR] .PD 0 .IP \fB\-E\fIPath::Name\fR[=\fIvalue\fR] .PD Set arbitrary parameter by name. Parameters can be set in the Astrobj, Metric etc. using the \fIPath\fR componenent. For instance, For instance, assuming the Astrobj in \fIstar.xml\fR has a property named "Radius" that can be set in unit "km", and a property named "Spectrum" which has a property named "Temperature", we can set the radius, temperature and the quantities to compute (a property in the Scenery itself) with: .RS 10 \fBgyoto\fR \-EQuantities=Spectrum \\ .br \-ukm \-EAstrobj::Radius=3 \\ .br \-u \-EAstrobj::Spectrum::Temperature=1000 \\ .br star.xml star.fits \fBgyoto\fR \-\-parameter=Quantities=Spectrum \\ .br \-\-unit=km \-\-parameter=Astrobj::Radius=3 \\ .br \-\-unit="" \-\-param=Astrobj::Spectrum::Temperature=1000 \\ .br star.xml star.fits .RE .IP \fB\-\-xmlwrite\fR=\fIoutput.xml\fR .PD 0 .IP \fB\-X\fIoutput.xml\fR .PD Write back scenery to an XML file. The new file will contain additional default parameters and reflect the effect of \fB\-\-(astrobj|metric|scenery|screen|spectrometer)-parameter\fR that appear before \fB\-\-xmlwrite\fR. Can appear several times, e.g. to generate several XML files with different settings. .SH FILES .IP \fIinput.xml A gyoto input file in XML format. Several examples are provided in the source doc/examples directory. Depending on how you installed \fBgyoto\fR, they may be installed on your system in a place such as \fI/usr/share/doc/libgyoto/examples/\fR. It goes beyond the scope of this manpage to document the XML file format supported by Gyoto, please refer to the library documentation which may be distributed by your package manager, can be compiled from the Gyoto source, and can be consulted online at \fIhttp://gyoto.obspm.fr/\fR. .IP \fIoutput.fits The output image in FITS format. \fBgyoto\fR will not overwrite \fIoutput.fits\fR unless it is prefixed with an (escaped) "!": "gyoto in.xml \\!out.fits". This file may actually consist in a stack of images depending on the Gyoto Quantities and on the Spectrometer specified in \fIinput.xml\fR. For further information on the FITS format, see \fIhttp://fits.gsfc.nasa.gov/\fR. .SH ENVIRONMENT .IP GYOTO_PLUGINS Gyoto astronomical objects and metrics are implemented in plug-ins. To use more (or less!) than the standard plug-ins, you may set the environment variable GYOTO_PLUGINS to a comma-separated list of plug-ins. \fBgyoto\fR will exit with an error status if unable to load a specified plug-in, unless it is prefixed with "nofail:" in GYOTO_PLUGINS. This environment variable is overridden by he \fB\-\-plugins\fR command-line parameter. Default value: "stdplug,nofail:lorene". Gyoto attempts to find plug-ins first by relying on the system's dynamic linker (so paths in e.g. LD_LIBRARY_PATH and ld.so.conf are searched first). If that fails, it looks in PREFIX/lib/gyoto/ and finally in PREFIX/lib/gyoto/SOVERS/ where PREFIX and SOVERS are two compile-time options. PREFIX usually is /usr/local or /usr. At the time of writing, SOVERS is 0.0.0. .IP GYOTO_PYTHON The name of the Python plug-in to use for mk\-video (typically either "python3" or a more specific version such as "python3.12"). By default several names are tried. .SH EXIT STATUS \fBgyoto\fR returns \fB0\fR upon success, \fB1\fR if unable to parse the command line or to interpret \fIinput.xml\fR, and a CFITSIO error code if an error occurs when trying to open, write to, or close \fIoutput.fits\fR. Refer to the CFITSIO documentation for more details. .SH AUTHOR Thibaut Paumard wrote this manual. .SH "SEE ALSO" .BR gyotoy (1) Gyoto-2.0.2/bin/gyoto.C000066400000000000000000000652071455254334400146540ustar00rootroot00000000000000/* Copyright 2011-2024 Thibaut Paumard, Frederic Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ // Gyoto #include "GyotoDefs.h" #include "GyotoFactory.h" #include "GyotoUtils.h" #include "GyotoRegister.h" #include "optionparser.h" // feenableexcept() #if defined HAVE_FENV_H # include #endif // FITS I/O #include // signal() #include // getpid(), execlp #include #include // MPI #if defined HAVE_MPI # include # include #endif // ULONG_MAX #include // dlsym #include using namespace std; using namespace Gyoto; static char* pixfile = NULL; static fitsfile* fptr = NULL; static int status = 0; static long fpixel[] = {1,1,1}; static long nelements = 0; static double* vect = NULL; static double* impactcoords=NULL; static SmartPointer data = NULL; namespace Gyoto { struct Arg; } struct Gyoto::Arg: public option::Arg { static void printError(const char* msg1, const option::Option& opt, const char* msg2) { fprintf(stderr, "ERROR: %s", msg1); fwrite(opt.name, opt.namelen, 1, stderr); fprintf(stderr, "%s", msg2); } static option::ArgStatus Required(const option::Option& option, bool msg) { if (option.arg != 0) return option::ARG_OK; if (msg) printError("Option '", option, "' requires an argument\n"); return option::ARG_ILLEGAL; } }; enum optionType { DEBUG, QUIET, VERBOSE, SILENT, IMIN, IMAX, JMIN, JMAX, ISTEP, JSTEP, ISPEC, JSPEC}; enum optionIndex { UNKNOWN, HELP, PLUGINS, LIST, VERSION, VERBOSITY, NOSIGFPE, RANGE, BOUNDARIES, STEPS, IPCT, TIME, TMIN, FOV, RESOLUTION, DISTANCE, PALN, INCLINATION, ARGUMENT, NTHREADS, NPROCESSES, SETPARAMETER, UNIT, XMLWRITE}; const option::Descriptor usage[] = { {UNKNOWN, 0, "", "",option::Arg::None, "\nUSAGE: gyoto [options] input.xml output.fits\t\n\n" "Generic options:\t\n -- \tStop option processing." }, {HELP, 0,"h","help",option::Arg::Optional, " --help[=, -h \tWithout argument, print usage and exit. With argument, document class (e.g. \"Screen\", \"Astrobj::Star\") and exit." }, {VERSION, 0, "V", "version", option::Arg::None, " --version, -V \tPrint the Gyoto version."}, {LIST, 0,"l","list",option::Arg::None, " --list, -l \tPrint the Gyoto register of Astrobj, Metrics etc." }, {NOSIGFPE, 0, "", "no-sigfpe",option::Arg::None, " --no-sigfpe \tDo not enable SIGFPE." #if !defined HAVE_FENV_H " (noop: this Gyoto lacks fenv.h support)." #endif }, {PLUGINS, 0,"p","plugins",option::Arg::Optional, " --plugins=, -p \tList of plug-ins to load instead of $GYOTO_PLUGINS." }, {NTHREADS, 0, "T", "nthreads", Gyoto::Arg::Required, " --nthreads=, -T \tNumber of parallel threads to use."}, {NPROCESSES, 0, "P", "nprocesses", Gyoto::Arg::Required, " --nprocesses=, -P \tNumber of MPI parallel processes to use."}, {IPCT, 0, "", "impact-coords", option::Arg::Optional, " --impact-coords[=] \tRead impact coordinates from file or store in output.fits."}, {XMLWRITE, 0, "X", "xmlwrite", Gyoto::Arg::Required, " --xmlwrite=, -X \tWrite back scenery to XML file . Useful to see default values and check the effect of --parameter, see below."}, {UNKNOWN, 0, "", "",option::Arg::None, "\nVerbosity level:" }, {VERBOSITY, SILENT, "s", "silent", option::Arg::None, " --silent, -s \tBe silent." }, {VERBOSITY, QUIET, "q", "quiet", option::Arg::None, " --quiet, -q \tBe quiet." }, {VERBOSITY, VERBOSE, "v", "verbose", option::Arg::Optional, " --verbose[=], -v[] \tBe verbose. Optional parameter: verbosity level." }, {VERBOSITY, DEBUG, "d", "debug", option::Arg::None, " --debug, -d \tEnable debug output." }, {UNKNOWN, 0, "", "",option::Arg::None, "\nField selection:" }, {BOUNDARIES, IMIN, "", "imin", Gyoto::Arg::Required, " --imin= \tFirst column (1)."}, {BOUNDARIES, IMAX, "", "imax", Gyoto::Arg::Required, " --imax= \tLast column (ULONG_MAX)."}, {STEPS, ISTEP, "", "di", Gyoto::Arg::Required, " --di= \tColumn step (1)."}, {BOUNDARIES, JMIN, "", "jmin", Gyoto::Arg::Required, " --jmin= \tFirst line (1)."}, {BOUNDARIES, JMAX, "", "jmax", Gyoto::Arg::Required, " --jmax= \tLast line (ULONG_MAX)."}, {STEPS, JSTEP, "", "dj", Gyoto::Arg::Required, " --dj= \tLine step (1)."}, {RANGE, ISPEC, "i", "ispec", Gyoto::Arg::Required, " --ispec=, -i \tColumn specification (imin[:imax[:di]])."}, {RANGE, JSPEC, "j", "jspec", Gyoto::Arg::Required, " --jspec=, -j \tLine specification (jmin[:jmax[:dj]])."}, {UNKNOWN, 0, "", "",option::Arg::None, "\nScreen parameters:" }, {TIME, 0, "", "time", Gyoto::Arg::Required, " --time= \tObserving date."}, {TMIN, 0, "", "tmin", Gyoto::Arg::Required, " --tmin= \tMinimum time."}, {FOV, 0, "", "fov", Gyoto::Arg::Required, " --fov= \tField-of-view."}, {RESOLUTION, 0, "r", "resolution", Gyoto::Arg::Required, " --resolution=, -r \tField size in pixels (on each side)."}, {DISTANCE, 0, "", "distance", Gyoto::Arg::Required, " --distance= \tDistance from observer."}, {PALN, 0, "", "paln", Gyoto::Arg::Required, " --paln= \tPosition angle of the line of nodes."}, {INCLINATION, 0, "", "inclination", Gyoto::Arg::Required, " --inclination= \tInclination."}, {ARGUMENT, 0, "", "argument", Gyoto::Arg::Required, " --argument= \tArgument of the x axis."}, {UNKNOWN, 0, "", "",option::Arg::None, "\nArbitrary parameters:" }, {UNIT, 0, "u", "unit", Gyoto::Arg::Optional, " --unit[=], -u[] \tUnit for following parameters (until next instance of this option)."}, {SETPARAMETER, 0, "E", "parameter", Gyoto::Arg::Required, " --parameter=[=], -E[=]" "\tSet arbitrary parameter by name. Optional value is expressed in unit previously set with --unit/-u. Examples: -ENThreads=5, -EAstrobj::Spectrum::Temperature=100."}, {0,0,0,0,0,0} }; void sigint_handler(int sig) { if (sig!=SIGINT) cerr << "\n********GYOTO: sigint_handler trapping signal " << sig << ", this should not happen !" << endl; cerr << "GYOTO: SIGINT received: saving data to " << pixfile << "... "; signal(SIGINT, SIG_DFL); fits_write_pix(fptr, TDOUBLE, fpixel, nelements, vect, &status); fits_close_file(fptr, &status); fits_report_error(stderr, status); cerr << "Killing self." << endl; kill(getpid(), SIGINT); } #define ERROR_GENERIC 1 #define ERROR_INITIALIZING 2 #define ERROR_READING_SCENERY 3 #define ERROR_RAYTRACING 4 #define ERROR_MK_VIDEO 5 static std::string curmsg = ""; static int curretval = 1; void gyotoErrorHandler( const Gyoto::Error e ) { cerr << curmsg << e << endl; if (debug()) abort(); // to keep stack for debugger exit (curretval); } static void gyotoVersion() { cout << " Copyright (c) 2011-2019 Frédéric Vincent, Thibaut Paumard,\n" << " Odele Straub and Frédéric Lamy.\n" << " GYOTO is distributed under the terms of the GPL v. 3 license.\n" << " We request that use of Gyoto in scientific publications be " << " properly \n acknowledged. Please cite:\n" << " GYOTO: a new general relativistic ray-tracing code,\n" << " F. H. Vincent, T. Paumard, E. Gourgoulhon & G. Perrin 2011,\n" << " Classical and Quantum Gravity 28, 225011 (2011) " << "[arXiv:1109.4769]" << endl << endl; } int main(int argc, char** argv) { // Set-up error reporter Gyoto::Error::setHandler ( &gyotoErrorHandler ); // No debug out put by default debug(0); char * parfile=NULL; string ipctfile=""; string param; size_t imin=1, imax=ULONG_MAX, jmin=1, jmax=ULONG_MAX; ptrdiff_t di=1, dj=1; bool ipct=0; long ipctdims[3]={0, 0, 0}; double ipcttime; string pluglist= getenv("GYOTO_PLUGINS")? getenv("GYOTO_PLUGINS"): GYOTO_DEFAULT_PLUGINS; argc-=(argc>0); argv+=(argc>0); // skip program name argv[0] if present // if first argument is exactly mk-video, make a video! if ( (argc>0) && (!strcmp(argv[0], "mk-video")) ) { curmsg = "In gyoto.C: in mk-video: "; curretval = ERROR_MK_VIDEO; GYOTO_DEBUG << "trying to load python plugin\n"; void* handle=NULL; int (*mk_video)(int, char**) = NULL; Gyoto::Register::init(NULL); std::vector< std::string > plugnames = getenv("GYOTO_PYTHON") ? std::vector< std::string > {getenv("GYOTO_PYTHON")} : std::vector< std::string > {"python3", "python3.19", "python3.18", "python3.17", "python3.16", "python3.15", "python3.14", "python3.13", "python3.12", "python3.11", "python3.10", "python3.9", "python3.8", "python3.7", "python3.6", "python3.5"}; GYOTO_DEBUG_EXPR(plugnames.size()); for (size_t k=0; k < plugnames.size(); ++k) { GYOTO_DEBUG << "trying to load plug-in " << plugnames[k] << endl; handle = loadPlugin(plugnames[k].c_str(), 2); if (handle) { GYOTO_DEBUG << "trying find symbol \"mk_video\" in plug-in " << plugnames[k] << endl; mk_video = (int (*)(int, char**)) dlsym(handle, "mk_video"); if (mk_video) break; } } if (!mk_video) GYOTO_ERROR("No Python plug-in containing mk_video() found"); return mk_video(argc, argv); } // else parse arguments option::Stats stats(true, usage, argc, argv); option::Option* options = new option::Option[stats.options_max]; option::Option* buffer = new option::Option[stats.buffer_max]; option::Parser parse(true, usage, argc, argv, options, buffer, 1); if (parse.error()) return 1; // Check whether to output usage string if (options[VERSION] || (!options[LIST] && (argc == 0 || parse.nonOptionsCount() != 2 || options[UNKNOWN])) || options[HELP] ) { cout << GYOTO_STRINGIFY(PACKAGE_STRING) << endl << "ABI compatibility version: " << GYOTO_SOVERS << endl; if (!options[VERSION] && !options[HELP].arg) option::printUsage(std::cout, usage); if (!options[VERSION] && !options[LIST] && !options[HELP].arg) { if (options[HELP]) return 0; return 1; } } // Process options setting verbosity or debug level for (option::Option* opt = options[VERBOSITY]; opt; opt = opt->next()) { switch (opt->type()) { case DEBUG: debug(1); break; case SILENT: verbose(0); break; case QUIET: verbose(GYOTO_QUIET_VERBOSITY); break; case VERBOSE: if (opt->arg) verbose(atoi(opt->arg)); else verbose(10); break; default: cerr << "gyoto: error parsing command line, unknown verbosity type" << endl; return 1; } } // Retrieve file names if (parse.nonOptionsCount() > 0) parfile=strdup(parse.nonOptions()[0]); if (parse.nonOptionsCount() > 1) pixfile=strdup(parse.nonOptions()[1]); if (options[VERSION]) { gyotoVersion(); return 0; } if (options[PLUGINS]) pluglist = options[PLUGINS].last()->arg?options[PLUGINS].last()->arg:""; curmsg = "In gyoto.C: Error initializing libgyoto: "; curretval = ERROR_INITIALIZING; Gyoto::Register::init(pluglist.c_str()); SmartPointer scenery = NULL; if (parfile) { Factory *factory =NULL; if (verbose() >= GYOTO_QUIET_VERBOSITY) cout << "Reading parameter file: " << parfile << endl; curmsg = "In gyoto.C: Error in Factory creation: "; curretval = ERROR_READING_SCENERY; factory = new Factory(parfile); curmsg = "In gyoto.C: Error getting Kind: "; const string kind = factory->kind(); if (kind.compare("Scenery")) { cerr << "Unknown kind for root element in XML file" << endl; return 1; } curmsg = "In gyoto.C: Error getting Scenery: "; scenery = factory -> scenery(); curmsg = "In gyoto.C: Error deleting Scenery: "; delete factory; } if (options[HELP] && options[HELP].arg) { help(options[HELP].arg); if (!options[LIST]) return 0; } if (options[LIST]) { Gyoto::Register::list(); return 0; } curmsg = "In gyoto.C: Error initializing ray-tracing: "; curretval = ERROR_RAYTRACING; SmartPointer screen = scenery->screen(); string unit=""; for (int i = 0; i < parse.optionsCount(); ++i) { option::Option& opt = buffer[i]; switch(opt.index()) { case NOSIGFPE: #if defined HAVE_FENV_H GYOTO_DEBUG << "enabling SIGFPE delivery\n"; feenableexcept(FE_DIVBYZERO | FE_OVERFLOW | FE_INVALID); #endif break; case BOUNDARIES: { double valtest=Gyoto::atof(opt.arg); if (valtest<=0){ cerr << "In gyoto.C: screen indices should be >0" << endl; return 1; } size_t val=atoi(opt.arg); switch (opt.type()) { case IMIN: imin=val; break; case IMAX: imax=val; break; case JMIN: jmin=val; break; case JMAX: jmax=val; break; default: cerr << "Gyoto BUG: unknown type of screen boundary" << endl; return 1; } } break; case STEPS: { ptrdiff_t val=atoi(opt.arg); if (val==0) val=1; switch(opt.type()) { case ISTEP: di=val; break; case JSTEP: dj=val; break; default: cerr << "Gyoto BUG: unknown type of screen step" << endl; return 1; } } break; case RANGE: { string spec=opt.arg; size_t pos=spec.find(":"), pos2=string::npos; string sub=spec.substr(0, pos); size_t nmin=1, nmax=ULONG_MAX; ptrdiff_t dn=1; if (sub.length()) nmin=atoi(sub.c_str()); if (pos==string::npos) { nmax=nmin; } else { pos2=spec.find(":", pos+1); sub=spec.substr(pos+1, pos2-pos-1); if (sub.length()) nmax=atoi(sub.c_str()); if (pos2 != string::npos) { sub=spec.substr(pos2+1); if (sub.length()) dn=atoi(sub.c_str()); } } GYOTO_DEBUG << "nmin="< time (Gyoto::atof(opt.arg)); break; case TMIN: scenery -> tMin (Gyoto::atof(opt.arg)); break; case FOV: screen -> fieldOfView(Gyoto::atof(opt.arg)); break; case RESOLUTION: screen -> resolution ( atoi(opt.arg)); break; case DISTANCE: screen -> distance (Gyoto::atof(opt.arg)); break; case PALN: screen -> PALN (Gyoto::atof(opt.arg)); break; case INCLINATION: screen -> inclination(Gyoto::atof(opt.arg)); break; case ARGUMENT: screen -> argument (Gyoto::atof(opt.arg)); break; case NTHREADS: scenery -> nThreads ( atoi(opt.arg)); break; case NPROCESSES: scenery -> nProcesses ( atoi(opt.arg)); break; case UNIT: unit=opt.arg?opt.arg:""; break; case SETPARAMETER: { string arg=opt.arg; size_t pos=arg.find("="); string name=arg.substr(0, pos); string val=(pos==string::npos)?"":arg.substr(pos+1); GYOTO_DEBUG << "Setting parameter \"" << name << "\" to value \"" << val << "\" using unit \"" << unit << "\".\n"; if(scenery -> setParameter(name, val, unit)) throwError("Unknown parameter"); } break; case XMLWRITE: Factory(scenery).write(opt.arg); break; default: break; } } #if defined HAVE_MPI if (scenery -> nProcesses() || getenv("OMPI_COMM_WORLD_SIZE")) { int status = MPI_Init(&argc, &argv); if (status) { cerr << "error initializing MPI"<< endl; return 2; } // If WORLD size is more than 1, use processes from WORLD // instead of spawning new processes int wsize=0, rank=0; MPI_Comm_size(MPI_COMM_WORLD, &wsize); MPI_Comm_rank(MPI_COMM_WORLD, &rank); if (wsize > 1) { if (rank==0) { GYOTO_INFO << "Process rank " << rank << " becoming manager\n"; scenery -> nProcesses(-1); } else { GYOTO_INFO << "Process rank " << rank << " becoming worker\n"; curmsg = "In gyoto.C: error in MPI worker: "; Scenery::mpiWorker(); int started , stopped , error ; error = MPI_Initialized ( & started ) ; error = MPI_Finalized ( & stopped ) ; if (started && !stopped) MPI_Finalize(); return 0; } } } #endif // State copyright if (verbose() >= GYOTO_QUIET_VERBOSITY) { gyotoVersion(); } { double tobs= screen -> time(); size_t res = screen -> resolution(); if (ipctfile != "") { // if (verbose() >= GYOTO_QUIET_VERBOSITY) size_t ipctnelt=0; cout << "Reading precomputed impact coordinates from " << ipctfile <("Gyoto Impact Coordinates"), 0, &status); fits_read_key(fptr, TDOUBLE, "Gyoto Observing Date", &ipcttime, NULL, &status); fits_get_img_size(fptr, 3, ipctdims, &status); fits_report_error(stderr, status); if (status) return status; if (ipctdims[0]==16 && size_t(ipctdims[1]) == res && size_t(ipctdims[2]) == res) { impactcoords = new double[(ipctnelt=16*res*res)]; } else { cerr<<"ERROR: bad dimensions for precomputed impact coordinates\n"; return 1; } fits_read_subset(fptr, TDOUBLE, fpixel, ipctdims, fpixel, 0, impactcoords, NULL, &status); fits_close_file(fptr, &status); fptr=NULL; fits_report_error(stderr, status); if (status) return status; double dt = tobs * GYOTO_C / scenery -> metric() -> unitLength() - ipcttime; for (size_t i=0; i < ipctnelt; i+=8) if (impactcoords[i] != DBL_MAX) impactcoords[i] += dt; ipcttime = tobs * GYOTO_C / scenery -> metric() -> unitLength(); } Quantity_t quantities = scenery -> getRequestedQuantities(); if (debug()) cerr << "DEBUG: Gyoto.C: Requested Quantities: " << quantities < spr = screen -> spectrometer(); if (!spr) throwError("Spectral quantity requested but " "no spectrometer specified!"); nbnuobs = spr -> nSamples(); } //nb of frames that will be used for spectral cube size_t nbdata= scenery->getScalarQuantitiesCount() +scenery->getSpectralQuantitiesCount()*nbnuobs; //nb of frames used for diverse interesting outputs //(obs flux, impact time, redshift..) size_t nelt=res*res*nbdata; vect = new double[nelt]; // First check whether we can open file int naxis=3; long naxes[] = {long(res), long(res), long(nbdata)}; nelements=nelt; fits_create_file(&fptr, pixfile, &status); fits_create_img(fptr, DOUBLE_IMG, naxis, naxes, &status); fits_report_error(stderr, status); if (status) return status; // Allocate space for the output data ::data = new Astrobj::Properties(); ::data->alloc=true; size_t curquant=0; size_t offset=res*res; if (debug()) { cerr << "DEBUG: gyoto.C: flag_radtransf = "; cerr << scenery -> astrobj() -> opticallyThin() << endl; cerr << "DEBUG: gyoto.C: Requested quantities: "; cerr << scenery -> requestedQuantitiesString() << endl; } char keyname[FLEN_KEYWORD]; char const * fmt="QUANT_%lu"; char * CNULL=NULL; if (quantities & GYOTO_QUANTITY_INTENSITY) { ::data->intensity=vect+offset*(curquant++); sprintf(keyname, fmt, curquant); fits_write_key(fptr, TSTRING, keyname, const_cast("Intensity"), CNULL, &status); } if (quantities & GYOTO_QUANTITY_EMISSIONTIME) { ::data->time=vect+offset*(curquant++); sprintf(keyname, fmt, curquant); fits_write_key(fptr, TSTRING, keyname, const_cast("EmissionTime"), CNULL, &status); } if (quantities & GYOTO_QUANTITY_MIN_DISTANCE) { ::data->distance=vect+offset*(curquant++); sprintf(keyname, fmt, curquant); fits_write_key(fptr, TSTRING, keyname, const_cast("MinDistance"), CNULL, &status); } if (quantities & GYOTO_QUANTITY_FIRST_DMIN) { ::data->first_dmin=vect+offset*(curquant++); sprintf(keyname, fmt, curquant); fits_write_key(fptr, TSTRING, keyname, const_cast("FirstDistMin"), CNULL, &status); } if (quantities & GYOTO_QUANTITY_REDSHIFT) { if (debug()) cerr << "DEBUG: gyoto.C: REDSHIFT requested\n"; ::data->redshift=vect+offset*(curquant++); sprintf(keyname, fmt, curquant); fits_write_key(fptr, TSTRING, keyname, const_cast("Redshift"), CNULL, &status); } if (quantities & GYOTO_QUANTITY_NBCROSSEQPLANE) { if (debug()) cerr << "DEBUG: gyoto.C: NBCROSSEQPLANE requested\n"; ::data->nbcrosseqplane=vect+offset*(curquant++); sprintf(keyname, fmt, curquant); fits_write_key(fptr, TSTRING, keyname, const_cast("NbCrossEqPlane"), CNULL, &status); } if ((quantities & GYOTO_QUANTITY_IMPACTCOORDS || ipct) && !ipctdims[0] ) { // Allocate if requested AND not provided cerr << "gyoto.C: allocating data->impactcoords" << endl; ::data->impactcoords = impactcoords = new double [res*res*16]; ipcttime = tobs * GYOTO_C / scenery -> metric() -> unitLength(); } if (quantities & GYOTO_QUANTITY_USER1) { ::data->user1=vect+offset*(curquant++); sprintf(keyname, fmt, curquant); fits_write_key(fptr, TSTRING, keyname, const_cast("User1"), CNULL, &status); } if (quantities & GYOTO_QUANTITY_USER2) { ::data->user2=vect+offset*(curquant++); sprintf(keyname, fmt, curquant); fits_write_key(fptr, TSTRING, keyname, const_cast("User2"), CNULL, &status); } if (quantities & GYOTO_QUANTITY_USER3) { ::data->user3=vect+offset*(curquant++); sprintf(keyname, fmt, curquant); fits_write_key(fptr, TSTRING, keyname, const_cast("User3"), CNULL, &status); } if (quantities & GYOTO_QUANTITY_USER4) { ::data->user4=vect+offset*(curquant++); sprintf(keyname, fmt, curquant); fits_write_key(fptr, TSTRING, keyname, const_cast("User4"), CNULL, &status); } if (quantities & GYOTO_QUANTITY_USER5) { ::data->user5=vect+offset*(curquant++); sprintf(keyname, fmt, curquant); fits_write_key(fptr, TSTRING, keyname, const_cast("User5"), CNULL, &status); } double * curvect=vect+offset*curquant; if (quantities & GYOTO_QUANTITY_SPECTRUM) { ::data->spectrum=curvect; curvect += offset*nbnuobs; ++curquant; ::data->offset=int(offset); sprintf(keyname, fmt, curquant); fits_write_key(fptr, TSTRING, keyname, const_cast("Spectrum"), CNULL, &status); } if (quantities & GYOTO_QUANTITY_SPECTRUM_STOKES_Q) { ::data->stokesQ=curvect; curvect += offset*nbnuobs; ++curquant; ::data->offset=int(offset); sprintf(keyname, fmt, curquant); fits_write_key(fptr, TSTRING, keyname, const_cast("SpectrumStokesQ"), CNULL, &status); } if (quantities & GYOTO_QUANTITY_SPECTRUM_STOKES_U) { ::data->stokesU=curvect; curvect += offset*nbnuobs; ++curquant; ::data->offset=int(offset); sprintf(keyname, fmt, curquant); fits_write_key(fptr, TSTRING, keyname, const_cast("SpectrumStokesU"), CNULL, &status); } if (quantities & GYOTO_QUANTITY_SPECTRUM_STOKES_V) { ::data->stokesV=curvect; curvect += offset*nbnuobs; ++curquant; ::data->offset=int(offset); sprintf(keyname, fmt, curquant); fits_write_key(fptr, TSTRING, keyname, const_cast("SpectrumStokesV"), CNULL, &status); } if (quantities & GYOTO_QUANTITY_BINSPECTRUM) { ::data->binspectrum=curvect; curvect += offset*nbnuobs; ++curquant; ::data->offset=int(offset); sprintf(keyname, fmt, curquant); fits_write_key(fptr, TSTRING, keyname, const_cast("BinSpectrum"), CNULL, &status); } signal(SIGINT, sigint_handler); curmsg = "In gyoto.C: Error during ray-tracing: "; if (imax>res) imax=res; if (jmax>res) jmax=res; Screen::Range irange(imin, imax, di); Screen::Range jrange(jmin, jmax, dj); Screen::Grid grid(irange, jrange, "\rj = "); if (verbose() >= GYOTO_QUIET_VERBOSITY) cout << "j = " << 1 << "/" << (jmax-jmin)/dj+1 << flush; scenery -> rayTrace(grid, ::data, ipctdims[0]?impactcoords:NULL); curmsg = "In gyoto.C: Error while saving: "; if (verbose() >= GYOTO_QUIET_VERBOSITY) cout << "\nSaving to file: " << pixfile << endl; signal(SIGINT, SIG_DFL); // Save to fits file fits_write_pix(fptr, TDOUBLE, fpixel, nelements, vect, &status); if (quantities & GYOTO_QUANTITY_IMPACTCOORDS || ipct) { // Save if requested, copying if provided cout << "Saving precomputed impact coordinates" << endl; long naxes_ipct[] = {16, long(res), long(res)}; fits_create_img(fptr, DOUBLE_IMG, naxis, naxes_ipct, &status); fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast("Gyoto Impact Coordinates"), CNULL, &status); fits_write_key(fptr, TDOUBLE, const_cast("Gyoto Observing Date"), &ipcttime, "Geometrical units", &status); fits_write_pix(fptr, TDOUBLE, fpixel, res*res*16, impactcoords, &status); fits_report_error(stderr, status); if (status) return status; } fits_close_file(fptr, &status); fits_report_error(stderr, status); if (debug()) cerr << "DEBUG: gyoto.C: FITS file closed, cleaning" << endl; curmsg = "In gyoto.C: Error while cleaning (file saved already): "; if (debug()) cerr << "DEBUG: gyoto.C: delete [] vect" << endl; delete [] vect; if (impactcoords) { if (debug()) cerr << "gyoto.C: delete [] data->impact" << endl; delete [] impactcoords; } GYOTO_DEBUG << "screen = NULL\n"; screen = NULL; #if defined HAVE_MPI GYOTO_DEBUG << "scenery->mpiTerminate()\n"; scenery->mpiTerminate(); #endif GYOTO_DEBUG << "scenery = NULL\n"; scenery = NULL; if (status) return status; } #if defined HAVE_MPI int started , stopped , error ; error = MPI_Initialized ( & started ) ; error = MPI_Finalized ( & stopped ) ; if (started && !stopped) MPI_Finalize(); #endif return 0; } Gyoto-2.0.2/bin/optionparser.h000066400000000000000000003052631455254334400163040ustar00rootroot00000000000000/* * The Lean Mean C++ Option Parser * * Copyright (C) 2012 Matthias S. Benkmann * * The "Software" in the following 2 paragraphs refers to this file containing * the code to The Lean Mean C++ Option Parser. * The "Software" does NOT refer to any other files which you * may have received alongside this file (e.g. as part of a larger project that * incorporates The Lean Mean C++ Option Parser). * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software, to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to permit * persons to whom the Software is furnished to do so, subject to the following * conditions: * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ /* * NOTE: It is recommended that you read the processed HTML doxygen documentation * rather than this source. If you don't know doxygen, it's like javadoc for C++. * If you don't want to install doxygen you can find a copy of the processed * documentation at * * http://optionparser.sourceforge.net/ * */ /** * @file * * @brief This is the only file required to use The Lean Mean C++ Option Parser. * Just \#include it and you're set. * * The Lean Mean C++ Option Parser handles the program's command line arguments * (argc, argv). * It supports the short and long option formats of getopt(), getopt_long() * and getopt_long_only() but has a more convenient interface. * The following features set it apart from other option parsers: * * @par Highlights: *
    *
  • It is a header-only library. Just \#include "optionparser.h" and you're set. *
  • It is freestanding. There are no dependencies whatsoever, not even the * C or C++ standard library. *
  • It has a usage message formatter that supports column alignment and * line wrapping. This aids localization because it adapts to * translated strings that are shorter or longer (even if they contain * Asian wide characters). *
  • Unlike getopt() and derivatives it doesn't force you to loop through * options sequentially. Instead you can access options directly like this: *
      *
    • Test for presence of a switch in the argument vector: * @code if ( options[QUIET] ) ... @endcode *
    • Evaluate --enable-foo/--disable-foo pair where the last one used wins: * @code if ( options[FOO].last()->type() == DISABLE ) ... @endcode *
    • Cumulative option (-v verbose, -vv more verbose, -vvv even more verbose): * @code int verbosity = options[VERBOSE].count(); @endcode *
    • Iterate over all --file=<fname> arguments: * @code for (Option* opt = options[FILE]; opt; opt = opt->next()) * fname = opt->arg; ... @endcode *
    • If you really want to, you can still process all arguments in order: * @code * for (int i = 0; i < p.optionsCount(); ++i) { * Option& opt = buffer[i]; * switch(opt.index()) { * case HELP: ... * case VERBOSE: ... * case FILE: fname = opt.arg; ... * case UNKNOWN: ... * @endcode *
    *
@n * Despite these features the code size remains tiny. * It is smaller than uClibc's GNU getopt() and just a * couple 100 bytes larger than uClibc's SUSv3 getopt(). @n * (This does not include the usage formatter, of course. But you don't have to use that.) * * @par Download: * Tarball with examples and test programs: * optionparser-1.3.tar.gz @n * Just the header (this is all you really need): * optionparser.h * * @par Changelog: * Version 1.3: Compatible with Microsoft Visual C++. @n * Version 1.2: Added @ref option::Option::namelen "Option::namelen" and removed the extraction * of short option characters into a special buffer. @n * Changed @ref option::Arg::Optional "Arg::Optional" to accept arguments if they are attached * rather than separate. This is what GNU getopt() does and how POSIX recommends * utilities should interpret their arguments.@n * Version 1.1: Optional mode with argument reordering as done by GNU getopt(), so that * options and non-options can be mixed. See * @ref option::Parser::parse() "Parser::parse()". * * @par Feedback: * Send questions, bug reports, feature requests etc. to: optionparser-feedback (a) lists.sourceforge.net * @htmlonly @endhtmlonly * * * @par Example program: * (Note: @c option::* identifiers are links that take you to their documentation.) * @code * #include * #include "optionparser.h" * * enum optionIndex { UNKNOWN, HELP, PLUS }; * const option::Descriptor usage[] = * { * {UNKNOWN, 0,"" , "" ,option::Arg::None, "USAGE: example [options]\n\n" * "Options:" }, * {HELP, 0,"" , "help",option::Arg::None, " --help \tPrint usage and exit." }, * {PLUS, 0,"p", "plus",option::Arg::None, " --plus, -p \tIncrement count." }, * {UNKNOWN, 0,"" , "" ,option::Arg::None, "\nExamples:\n" * " example --unknown -- --this_is_no_option\n" * " example -unk --plus -ppp file1 file2\n" }, * {0,0,0,0,0,0} * }; * * int main(int argc, char* argv[]) * { * argc-=(argc>0); argv+=(argc>0); // skip program name argv[0] if present * option::Stats stats(usage, argc, argv); * option::Option options[stats.options_max], buffer[stats.buffer_max]; * option::Parser parse(usage, argc, argv, options, buffer); * * if (parse.error()) * return 1; * * if (options[HELP] || argc == 0) { * option::printUsage(std::cout, usage); * return 0; * } * * std::cout << "--plus count: " << * options[PLUS].count() << "\n"; * * for (option::Option* opt = options[UNKNOWN]; opt; opt = opt->next()) * std::cout << "Unknown option: " << opt->name << "\n"; * * for (int i = 0; i < parse.nonOptionsCount(); ++i) * std::cout << "Non-option #" << i << ": " << parse.nonOption(i) << "\n"; * } * @endcode * * @par Option syntax: * @li The Lean Mean C++ Option Parser follows POSIX getopt() conventions and supports * GNU-style getopt_long() long options as well as Perl-style single-minus * long options (getopt_long_only()). * @li short options have the format @c -X where @c X is any character that fits in a char. * @li short options can be grouped, i.e. -X -Y is equivalent to @c -XY. * @li a short option may take an argument either separate (-X foo) or * attached (@c -Xfoo). You can make the parser accept the additional format @c -X=foo by * registering @c X as a long option (in addition to being a short option) and * enabling single-minus long options. * @li an argument-taking short option may be grouped if it is the last in the group, e.g. * @c -ABCXfoo or -ABCX foo (@c foo is the argument to the @c -X option). * @li a lone minus character @c '-' is not treated as an option. It is customarily used where * a file name is expected to refer to stdin or stdout. * @li long options have the format @c --option-name. * @li the option-name of a long option can be anything and include any characters. * Even @c = characters will work, but don't do that. * @li [optional] long options may be abbreviated as long as the abbreviation is unambiguous. * You can set a minimum length for abbreviations. * @li [optional] long options may begin with a single minus. The double minus form is always * accepted, too. * @li a long option may take an argument either separate ( --option arg ) or * attached ( --option=arg ). In the attached form the equals sign is mandatory. * @li an empty string can be passed as an attached long option argument: --option-name= . * Note the distinction between an empty string as argument and no argument at all. * @li an empty string is permitted as separate argument to both long and short options. * @li Arguments to both short and long options may start with a @c '-' character. E.g. * -X-X , -X -X or --long-X=-X . If @c -X * and @c --long-X take an argument, that argument will be @c "-X" in all 3 cases. * @li If using the built-in @ref option::Arg::Optional "Arg::Optional", optional arguments must * be attached. * @li the special option @c -- (i.e. without a name) terminates the list of * options. Everything that follows is a non-option argument, even if it starts with * a @c '-' character. The @c -- itself will not appear in the parse results. * @li the first argument that doesn't start with @c '-' or @c '--' and does not belong to * a preceding argument-taking option, will terminate the option list and is the * first non-option argument. All following command line arguments are treated as * non-option arguments, even if they start with @c '-' . @n * NOTE: This behaviour is mandated by POSIX, but GNU getopt() only honours this if it is * explicitly requested (e.g. by setting POSIXLY_CORRECT). @n * You can enable the GNU behaviour by passing @c true as first argument to * e.g. @ref option::Parser::parse() "Parser::parse()". * @li Arguments that look like options (i.e. @c '-' followed by at least 1 character) but * aren't, are NOT treated as non-option arguments. They are treated as unknown options and * are collected into a list of unknown options for error reporting. @n * This means that in order to pass a first non-option * argument beginning with the minus character it is required to use the * @c -- special option, e.g. * @code * program -x -- --strange-filename * @endcode * In this example, @c --strange-filename is a non-option argument. If the @c -- * were omitted, it would be treated as an unknown option. @n * See @ref option::Descriptor::longopt for information on how to collect unknown options. * */ #ifndef OPTIONPARSER_H_ #define OPTIONPARSER_H_ /** @brief The namespace of The Lean Mean C++ Option Parser. */ namespace option { #ifdef _MSC_VER #include #pragma intrinsic(_BitScanReverse) struct MSC_Builtin_CLZ { static int builtin_clz(unsigned x) { unsigned long index; _BitScanReverse(&index, x); return 32-index; // int is always 32bit on Windows, even for target x64 } }; #define __builtin_clz(x) MSC_Builtin_CLZ::builtin_clz(x) #endif class Option; /** * @brief Possible results when checking if an argument is valid for a certain option. * * In the case that no argument is provided for an option that takes an * optional argument, return codes @c ARG_OK and @c ARG_IGNORE are equivalent. */ enum ArgStatus { //! The option does not take an argument. ARG_NONE, //! The argument is acceptable for the option. ARG_OK, //! The argument is not acceptable but that's non-fatal because the option's argument is optional. ARG_IGNORE, //! The argument is not acceptable and that's fatal. ARG_ILLEGAL }; /** * @brief Signature of functions that check if an argument is valid for a certain type of option. * * Every Option has such a function assigned in its Descriptor. * @code * Descriptor usage[] = { {UNKNOWN, 0, "", "", Arg::None, ""}, ... }; * @endcode * * A CheckArg function has the following signature: * @code ArgStatus CheckArg(const Option& option, bool msg); @endcode * * It is used to check if a potential argument would be acceptable for the option. * It will even be called if there is no argument. In that case @c option.arg will be @c NULL. * * If @c msg is @c true and the function determines that an argument is not acceptable and * that this is a fatal error, it should output a message to the user before * returning @ref ARG_ILLEGAL. If @c msg is @c false the function should remain silent (or you * will get duplicate messages). * * See @ref ArgStatus for the meaning of the return values. * * While you can provide your own functions, * often the following pre-defined checks (which never return @ref ARG_ILLEGAL) will suffice: * * @li @c Arg::None @copybrief Arg::None * @li @c Arg::Optional @copybrief Arg::Optional * */ typedef ArgStatus (*CheckArg)(const Option& option, bool msg); /** * @brief Describes an option, its help text (usage) and how it should be parsed. * * The main input when constructing an option::Parser is an array of Descriptors. * @par Example: * @code * enum OptionIndex {CREATE, ...}; * enum OptionType {DISABLE, ENABLE, OTHER}; * * const option::Descriptor usage[] = { * { CREATE, // index * OTHER, // type * "c", // shortopt * "create", // longopt * Arg::None, // check_arg * "--create Tells the program to create something." // help * } * , ... * }; * @endcode */ struct Descriptor { /** * @brief Index of this option's linked list in the array filled in by the parser. * * Command line options whose Descriptors have the same index will end up in the same * linked list in the order in which they appear on the command line. If you have * multiple long option aliases that refer to the same option, give their descriptors * the same @c index. * * If you have options that mean exactly opposite things * (e.g. @c --enable-foo and @c --disable-foo ), you should also give them the same * @c index, but distinguish them through different values for @ref type. * That way they end up in the same list and you can just take the last element of the * list and use its type. This way you get the usual behaviour where switches later * on the command line override earlier ones without having to code it manually. * * @par Tip: * Use an enum rather than plain ints for better readability, as shown in the example * at Descriptor. */ const unsigned index; /** * @brief Used to distinguish between options with the same @ref index. * See @ref index for details. * * It is recommended that you use an enum rather than a plain int to make your * code more readable. */ const int type; /** * @brief Each char in this string will be accepted as a short option character. * * The string must not include the minus character @c '-' or you'll get undefined * behaviour. * * If this Descriptor should not have short option characters, use the empty * string "". NULL is not permitted here! * * See @ref longopt for more information. */ const char* const shortopt; /** * @brief The long option name (without the leading @c -- ). * * If this Descriptor should not have a long option name, use the empty * string "". NULL is not permitted here! * * While @ref shortopt allows multiple short option characters, each * Descriptor can have only a single long option name. If you have multiple * long option names referring to the same option use separate Descriptors * that have the same @ref index and @ref type. You may repeat * short option characters in such an alias Descriptor but there's no need to. * * @par Dummy Descriptors: * You can use dummy Descriptors with an * empty string for both @ref shortopt and @ref longopt to add text to * the usage that is not related to a specific option. See @ref help. * The first dummy Descriptor will be used for unknown options (see below). * * @par Unknown Option Descriptor: * The first dummy Descriptor in the list of Descriptors, * whose @ref shortopt and @ref longopt are both the empty string, will be used * as the Descriptor for unknown options. An unknown option is a string in * the argument vector that is not a lone minus @c '-' but starts with a minus * character and does not match any Descriptor's @ref shortopt or @ref longopt. @n * Note that the dummy descriptor's @ref check_arg function @e will be called and * its return value will be evaluated as usual. I.e. if it returns @ref ARG_ILLEGAL * the parsing will be aborted with Parser::error()==true. @n * if @c check_arg does not return @ref ARG_ILLEGAL the descriptor's * @ref index @e will be used to pick the linked list into which * to put the unknown option. @n * If there is no dummy descriptor, unknown options will be dropped silently. * */ const char* const longopt; /** * @brief For each option that matches @ref shortopt or @ref longopt this function * will be called to check a potential argument to the option. * * This function will be called even if there is no potential argument. In that case * it will be passed @c NULL as @c arg parameter. Do not confuse this with the empty * string. * * See @ref CheckArg for more information. */ const CheckArg check_arg; /** * @brief The usage text associated with the options in this Descriptor. * * You can use option::printUsage() to format your usage message based on * the @c help texts. You can use dummy Descriptors where * @ref shortopt and @ref longopt are both the empty string to add text to * the usage that is not related to a specific option. * * See option::printUsage() for special formatting characters you can use in * @c help to get a column layout. * * @attention * Must be UTF-8-encoded. If your compiler supports C++11 you can use the "u8" * prefix to make sure string literals are properly encoded. */ const char* help; }; /** * @brief A parsed option from the command line together with its argument if it has one. * * The Parser chains all parsed options with the same Descriptor::index together * to form a linked list. This allows you to easily implement all of the common ways * of handling repeated options and enable/disable pairs. * * @li Test for presence of a switch in the argument vector: * @code if ( options[QUIET] ) ... @endcode * @li Evaluate --enable-foo/--disable-foo pair where the last one used wins: * @code if ( options[FOO].last()->type() == DISABLE ) ... @endcode * @li Cumulative option (-v verbose, -vv more verbose, -vvv even more verbose): * @code int verbosity = options[VERBOSE].count(); @endcode * @li Iterate over all --file=<fname> arguments: * @code for (Option* opt = options[FILE]; opt; opt = opt->next()) * fname = opt->arg; ... @endcode */ class Option { Option* next_; Option* prev_; public: /** * @brief Pointer to this Option's Descriptor. * * Remember that the first dummy descriptor (see @ref Descriptor::longopt) is used * for unknown options. * * @attention * @c desc==NULL signals that this Option is unused. This is the default state of * elements in the result array. You don't need to test @c desc explicitly. You * can simply write something like this: * @code * if (options[CREATE]) * { * ... * } * @endcode * This works because of operator const Option*() . */ const Descriptor* desc; /** * @brief The name of the option as used on the command line. * * The main purpose of this string is to be presented to the user in messages. * * In the case of a long option, this is the actual @c argv pointer, i.e. the first * character is a '-'. In the case of a short option this points to the option * character within the @c argv string. * * Note that in the case of a short option group or an attached option argument, this * string will contain additional characters following the actual name. Use @ref namelen * to filter out the actual option name only. * */ const char* name; /** * @brief Pointer to this Option's argument (if any). * * NULL if this option has no argument. Do not confuse this with the empty string which * is a valid argument. */ const char* arg; /** * @brief The length of the option @ref name. * * Because @ref name points into the actual @c argv string, the option name may be * followed by more characters (e.g. other short options in the same short option group). * This value is the number of bytes (not characters!) that are part of the actual name. * * For a short option, this length is always 1. For a long option this length is always * at least 2 if single minus long options are permitted and at least 3 if they are disabled. * * @note * In the pathological case of a minus within a short option group (e.g. @c -xf-z), this * length is incorrect, because this case will be misinterpreted as a long option and the * name will therefore extend to the string's 0-terminator or a following '=" character * if there is one. This is irrelevant for most uses of @ref name and @c namelen. If you * really need to distinguish the case of a long and a short option, compare @ref name to * the @c argv pointers. A long option's @c name is always identical to one of them, * whereas a short option's is never. */ int namelen; /** * @brief Returns Descriptor::type of this Option's Descriptor, or 0 if this Option * is invalid (unused). * * Because this method (and last(), too) can be used even on unused Options with desc==0, you can (provided * you arrange your types properly) switch on type() without testing validity first. * @code * enum OptionType { UNUSED=0, DISABLED=0, ENABLED=1 }; * enum OptionIndex { FOO }; * const Descriptor usage[] = { * { FOO, ENABLED, "", "enable-foo", Arg::None, 0 }, * { FOO, DISABLED, "", "disable-foo", Arg::None, 0 }, * { 0, 0, 0, 0, 0, 0 } }; * ... * switch(options[FOO].last()->type()) // no validity check required! * { * case ENABLED: ... * case DISABLED: ... // UNUSED==DISABLED ! * } * @endcode */ int type() const { return desc == 0 ? 0 : desc->type; } /** * @brief Returns Descriptor::index of this Option's Descriptor, or -1 if this Option * is invalid (unused). */ int index() const { return desc == 0 ? -1 : desc->index; } /** * @brief Returns the number of times this Option (or others with the same Descriptor::index) * occurs in the argument vector. * * This corresponds to the number of elements in the linked list this Option is part of. * It doesn't matter on which element you call count(). The return value is always the same. * * Use this to implement cumulative options, such as -v, -vv, -vvv for * different verbosity levels. * * Returns 0 when called for an unused/invalid option. */ int count() { int c = (desc == 0 ? 0 : 1); Option* p = first(); while (!p->isLast()) { ++c; p = p->next_; }; return c; } /** * @brief Returns true iff this is the first element of the linked list. * * The first element in the linked list is the first option on the command line * that has the respective Descriptor::index value. * * Returns true for an unused/invalid option. */ bool isFirst() const { return isTagged(prev_); } /** * @brief Returns true iff this is the last element of the linked list. * * The last element in the linked list is the last option on the command line * that has the respective Descriptor::index value. * * Returns true for an unused/invalid option. */ bool isLast() const { return isTagged(next_); } /** * @brief Returns a pointer to the first element of the linked list. * * Use this when you want the first occurrence of an option on the command line to * take precedence. Note that this is not the way most programs handle options. * You should probably be using last() instead. * * @note * This method may be called on an unused/invalid option and will return a pointer to the * option itself. */ Option* first() { Option* p = this; while (!p->isFirst()) p = p->prev_; return p; } /** * @brief Returns a pointer to the last element of the linked list. * * Use this when you want the last occurrence of an option on the command line to * take precedence. This is the most common way of handling conflicting options. * * @note * This method may be called on an unused/invalid option and will return a pointer to the * option itself. * * @par Tip: * If you have options with opposite meanings (e.g. @c --enable-foo and @c --disable-foo), you * can assign them the same Descriptor::index to get them into the same list. Distinguish them by * Descriptor::type and all you have to do is check last()->type() to get * the state listed last on the command line. */ Option* last() { return first()->prevwrap(); } /** * @brief Returns a pointer to the previous element of the linked list or NULL if * called on first(). * * If called on first() this method returns NULL. Otherwise it will return the * option with the same Descriptor::index that precedes this option on the command * line. */ Option* prev() { return isFirst() ? 0 : prev_; } /** * @brief Returns a pointer to the previous element of the linked list with wrap-around from * first() to last(). * * If called on first() this method returns last(). Otherwise it will return the * option with the same Descriptor::index that precedes this option on the command * line. */ Option* prevwrap() { return untag(prev_); } /** * @brief Returns a pointer to the next element of the linked list or NULL if called * on last(). * * If called on last() this method returns NULL. Otherwise it will return the * option with the same Descriptor::index that follows this option on the command * line. */ Option* next() { return isLast() ? 0 : next_; } /** * @brief Returns a pointer to the next element of the linked list with wrap-around from * last() to first(). * * If called on last() this method returns first(). Otherwise it will return the * option with the same Descriptor::index that follows this option on the command * line. */ Option* nextwrap() { return untag(next_); } /** * @brief Makes @c new_last the new last() by chaining it into the list after last(). * * It doesn't matter which element you call append() on. The new element will always * be appended to last(). * * @attention * @c new_last must not yet be part of a list, or that list will become corrupted, because * this method does not unchain @c new_last from an existing list. */ void append(Option* new_last) { Option* p = last(); Option* f = first(); p->next_ = new_last; new_last->prev_ = p; new_last->next_ = tag(f); f->prev_ = tag(new_last); } /** * @brief Casts from Option to const Option* but only if this Option is valid. * * If this Option is valid (i.e. @c desc!=NULL), returns this. * Otherwise returns NULL. This allows testing an Option directly * in an if-clause to see if it is used: * @code * if (options[CREATE]) * { * ... * } * @endcode * It also allows you to write loops like this: * @code for (Option* opt = options[FILE]; opt; opt = opt->next()) * fname = opt->arg; ... @endcode */ operator const Option*() const { return desc ? this : 0; } /** * @brief Casts from Option to Option* but only if this Option is valid. * * If this Option is valid (i.e. @c desc!=NULL), returns this. * Otherwise returns NULL. This allows testing an Option directly * in an if-clause to see if it is used: * @code * if (options[CREATE]) * { * ... * } * @endcode * It also allows you to write loops like this: * @code for (Option* opt = options[FILE]; opt; opt = opt->next()) * fname = opt->arg; ... @endcode */ operator Option*() { return desc ? this : 0; } /** * @brief Creates a new Option that is a one-element linked list and has NULL * @ref desc, @ref name, @ref arg and @ref namelen. */ Option() : desc(0), name(0), arg(0), namelen(0) { prev_ = tag(this); next_ = tag(this); } /** * @brief Creates a new Option that is a one-element linked list and has the given * values for @ref desc, @ref name and @ref arg. * * If @c name_ points at a character other than '-' it will be assumed to refer to a * short option and @ref namelen will be set to 1. Otherwise the length will extend to * the first '=' character or the string's 0-terminator. */ Option(const Descriptor* desc_, const char* name_, const char* arg_) { init(desc_, name_, arg_); } /** * @brief Makes @c *this a copy of @c orig except for the linked list pointers. * * After this operation @c *this will be a one-element linked list. */ void operator=(const Option& orig) { init(orig.desc, orig.name, orig.arg); } /** * @brief Makes @c *this a copy of @c orig except for the linked list pointers. * * After this operation @c *this will be a one-element linked list. */ Option(const Option& orig) { init(orig.desc, orig.name, orig.arg); } private: /** * @internal * @brief Sets the fields of this Option to the given values (extracting @c name if necessary). * * If @c name_ points at a character other than '-' it will be assumed to refer to a * short option and @ref namelen will be set to 1. Otherwise the length will extend to * the first '=' character or the string's 0-terminator. */ void init(const Descriptor* desc_, const char* name_, const char* arg_) { desc = desc_; name = name_; arg = arg_; prev_ = tag(this); next_ = tag(this); namelen = 0; if (name == 0) return; namelen = 1; if (name[0] != '-') return; while (name[namelen] != 0 && name[namelen] != '=') ++namelen; } static Option* tag(Option* ptr) { return (Option*) ((unsigned long long) ptr | 1); } static Option* untag(Option* ptr) { return (Option*) ((unsigned long long) ptr & ~1ull); } static bool isTagged(Option* ptr) { return ((unsigned long long) ptr & 1); } }; /** * @brief Functions for checking the validity of option arguments. * * @copydetails CheckArg * * The following example code * can serve as starting place for writing your own more complex CheckArg functions: * @code * struct Arg: public option::Arg * { * static void printError(const char* msg1, const option::Option& opt, const char* msg2) * { * fprintf(stderr, "ERROR: %s", msg1); * fwrite(opt.name, opt.namelen, 1, stderr); * fprintf(stderr, "%s", msg2); * } * * static option::ArgStatus Unknown(const option::Option& option, bool msg) * { * if (msg) printError("Unknown option '", option, "'\n"); * return option::ARG_ILLEGAL; * } * * static option::ArgStatus Required(const option::Option& option, bool msg) * { * if (option.arg != 0) * return option::ARG_OK; * * if (msg) printError("Option '", option, "' requires an argument\n"); * return option::ARG_ILLEGAL; * } * * static option::ArgStatus NonEmpty(const option::Option& option, bool msg) * { * if (option.arg != 0 && option.arg[0] != 0) * return option::ARG_OK; * * if (msg) printError("Option '", option, "' requires a non-empty argument\n"); * return option::ARG_ILLEGAL; * } * * static option::ArgStatus Numeric(const option::Option& option, bool msg) * { * char* endptr = 0; * if (option.arg != 0 && strtol(option.arg, &endptr, 10)){}; * if (endptr != option.arg && *endptr == 0) * return option::ARG_OK; * * if (msg) printError("Option '", option, "' requires a numeric argument\n"); * return option::ARG_ILLEGAL; * } * }; * @endcode */ struct Arg { //! @brief For options that don't take an argument: Returns ARG_NONE. static ArgStatus None(const Option&, bool) { return ARG_NONE; } //! @brief Returns ARG_OK if the argument is attached and ARG_IGNORE otherwise. static ArgStatus Optional(const Option& option, bool) { if (option.arg && option.name[option.namelen] != 0) return ARG_OK; else return ARG_IGNORE; } }; /** * @brief Determines the minimum lengths of the buffer and options arrays used for Parser. * * Because Parser doesn't use dynamic memory its output arrays have to be pre-allocated. * If you don't want to use fixed size arrays (which may turn out too small, causing * command line arguments to be dropped), you can use Stats to determine the correct sizes. * Stats work cumulative. You can first pass in your default options and then the real * options and afterwards the counts will reflect the union. */ struct Stats { /** * @brief Number of elements needed for a @c buffer[] array to be used for * @ref Parser::parse() "parsing" the same argument vectors that were fed * into this Stats object. * * @note * This number is always 1 greater than the actual number needed, to give * you a sentinel element. */ unsigned buffer_max; /** * @brief Number of elements needed for an @c options[] array to be used for * @ref Parser::parse() "parsing" the same argument vectors that were fed * into this Stats object. * * @note * @li This number is always 1 greater than the actual number needed, to give * you a sentinel element. * @li This number depends only on the @c usage, not the argument vectors, because * the @c options array needs exactly one slot for each possible Descriptor::index. */ unsigned options_max; /** * @brief Creates a Stats object with counts set to 1 (for the sentinel element). */ Stats() : buffer_max(1), options_max(1) // 1 more than necessary as sentinel { } /** * @brief Creates a new Stats object and immediately updates it for the * given @c usage and argument vector. You may pass 0 for @c argc and/or @c argv, * if you just want to update @ref options_max. * * @note * The calls to Stats methods must match the later calls to Parser methods. * See Parser::parse() for the meaning of the arguments. */ Stats(bool gnu, const Descriptor usage[], int argc, const char** argv, int min_abbr_len = 0, // bool single_minus_longopt = false) : buffer_max(1), options_max(1) // 1 more than necessary as sentinel { add(gnu, usage, argc, argv, min_abbr_len, single_minus_longopt); } //! @brief Stats(...) with non-const argv. Stats(bool gnu, const Descriptor usage[], int argc, char** argv, int min_abbr_len = 0, // bool single_minus_longopt = false) : buffer_max(1), options_max(1) // 1 more than necessary as sentinel { add(gnu, usage, argc, (const char**) argv, min_abbr_len, single_minus_longopt); } //! @brief POSIX Stats(...) (gnu==false). Stats(const Descriptor usage[], int argc, const char** argv, int min_abbr_len = 0, // bool single_minus_longopt = false) : buffer_max(1), options_max(1) // 1 more than necessary as sentinel { add(false, usage, argc, argv, min_abbr_len, single_minus_longopt); } //! @brief POSIX Stats(...) (gnu==false) with non-const argv. Stats(const Descriptor usage[], int argc, char** argv, int min_abbr_len = 0, // bool single_minus_longopt = false) : buffer_max(1), options_max(1) // 1 more than necessary as sentinel { add(false, usage, argc, (const char**) argv, min_abbr_len, single_minus_longopt); } /** * @brief Updates this Stats object for the * given @c usage and argument vector. You may pass 0 for @c argc and/or @c argv, * if you just want to update @ref options_max. * * @note * The calls to Stats methods must match the later calls to Parser methods. * See Parser::parse() for the meaning of the arguments. */ void add(bool gnu, const Descriptor usage[], int argc, const char** argv, int min_abbr_len = 0, // bool single_minus_longopt = false); //! @brief add() with non-const argv. void add(bool gnu, const Descriptor usage[], int argc, char** argv, int min_abbr_len = 0, // bool single_minus_longopt = false) { add(gnu, usage, argc, (const char**) argv, min_abbr_len, single_minus_longopt); } //! @brief POSIX add() (gnu==false). void add(const Descriptor usage[], int argc, const char** argv, int min_abbr_len = 0, // bool single_minus_longopt = false) { add(false, usage, argc, argv, min_abbr_len, single_minus_longopt); } //! @brief POSIX add() (gnu==false) with non-const argv. void add(const Descriptor usage[], int argc, char** argv, int min_abbr_len = 0, // bool single_minus_longopt = false) { add(false, usage, argc, (const char**) argv, min_abbr_len, single_minus_longopt); } private: class CountOptionsAction; }; /** * @brief Checks argument vectors for validity and parses them into data * structures that are easier to work with. * * @par Example: * @code * int main(int argc, char* argv[]) * { * argc-=(argc>0); argv+=(argc>0); // skip program name argv[0] if present * option::Stats stats(usage, argc, argv); * option::Option options[stats.options_max], buffer[stats.buffer_max]; * option::Parser parse(usage, argc, argv, options, buffer); * * if (parse.error()) * return 1; * * if (options[HELP]) * ... * @endcode */ class Parser { int op_count; //!< @internal @brief see optionsCount() int nonop_count; //!< @internal @brief see nonOptionsCount() const char** nonop_args; //!< @internal @brief see nonOptions() bool err; //!< @internal @brief see error() public: /** * @brief Creates a new Parser. */ Parser() : op_count(0), nonop_count(0), nonop_args(0), err(false) { } /** * @brief Creates a new Parser and immediately parses the given argument vector. * @copydetails parse() */ Parser(bool gnu, const Descriptor usage[], int argc, const char** argv, Option options[], Option buffer[], int min_abbr_len = 0, bool single_minus_longopt = false, int bufmax = -1) : op_count(0), nonop_count(0), nonop_args(0), err(false) { parse(gnu, usage, argc, argv, options, buffer, min_abbr_len, single_minus_longopt, bufmax); } //! @brief Parser(...) with non-const argv. Parser(bool gnu, const Descriptor usage[], int argc, char** argv, Option options[], Option buffer[], int min_abbr_len = 0, bool single_minus_longopt = false, int bufmax = -1) : op_count(0), nonop_count(0), nonop_args(0), err(false) { parse(gnu, usage, argc, (const char**) argv, options, buffer, min_abbr_len, single_minus_longopt, bufmax); } //! @brief POSIX Parser(...) (gnu==false). Parser(const Descriptor usage[], int argc, const char** argv, Option options[], Option buffer[], int min_abbr_len = 0, bool single_minus_longopt = false, int bufmax = -1) : op_count(0), nonop_count(0), nonop_args(0), err(false) { parse(false, usage, argc, argv, options, buffer, min_abbr_len, single_minus_longopt, bufmax); } //! @brief POSIX Parser(...) (gnu==false) with non-const argv. Parser(const Descriptor usage[], int argc, char** argv, Option options[], Option buffer[], int min_abbr_len = 0, bool single_minus_longopt = false, int bufmax = -1) : op_count(0), nonop_count(0), nonop_args(0), err(false) { parse(false, usage, argc, (const char**) argv, options, buffer, min_abbr_len, single_minus_longopt, bufmax); } /** * @brief Parses the given argument vector. * * @param gnu if true, parse() will not stop at the first non-option argument. Instead it will * reorder arguments so that all non-options are at the end. This is the default behaviour * of GNU getopt() but is not conforming to POSIX. @n * Note, that once the argument vector has been reordered, the @c gnu flag will have * no further effect on this argument vector. So it is enough to pass @c gnu==true when * creating Stats. * @param usage Array of Descriptor objects that describe the options to support. The last entry * of this array must have 0 in all fields. * @param argc The number of elements from @c argv that are to be parsed. If you pass -1, the number * will be determined automatically. In that case the @c argv list must end with a NULL * pointer. * @param argv The arguments to be parsed. If you pass -1 as @c argc the last pointer in the @c argv * list must be NULL to mark the end. * @param options Each entry is the first element of a linked list of Options. Each new option * that is parsed will be appended to the list specified by that Option's * Descriptor::index. If an entry is not yet used (i.e. the Option is invalid), * it will be replaced rather than appended to. @n * The minimum length of this array is the greatest Descriptor::index value that * occurs in @c usage @e PLUS ONE. * @param buffer Each argument that is successfully parsed (including unknown arguments, if they * have a Descriptor whose CheckArg does not return @ref ARG_ILLEGAL) will be stored in this * array. parse() scans the array for the first invalid entry and begins writing at that * index. You can pass @c bufmax to limit the number of options stored. * @param min_abbr_len Passing a value min_abbr_len > 0 enables abbreviated long * options. The parser will match a prefix of a long option as if it was * the full long option (e.g. @c --foob=10 will be interpreted as if it was * @c --foobar=10 ), as long as the prefix has at least @c min_abbr_len characters * (not counting the @c -- ) and is unambiguous. * @n Be careful if combining @c min_abbr_len=1 with @c single_minus_longopt=true * because the ambiguity check does not consider short options and abbreviated * single minus long options will take precedence over short options. * @param single_minus_longopt Passing @c true for this option allows long options to begin with * a single minus. The double minus form will still be recognized. Note that * single minus long options take precedence over short options and short option * groups. E.g. @c -file would be interpreted as @c --file and not as * -f -i -l -e (assuming a long option named @c "file" exists). * @param bufmax The greatest index in the @c buffer[] array that parse() will write to is * @c bufmax-1. If there are more options, they will be processed (in particular * their CheckArg will be called) but not stored. @n * If you used Stats::buffer_max to dimension this array, you can pass * -1 (or not pass @c bufmax at all) which tells parse() that the buffer is * "large enough". * @attention * Remember that @c options and @c buffer store Option @e objects, not pointers. Therefore it * is not possible for the same object to be in both arrays. For those options that are found in * both @c buffer[] and @c options[] the respective objects are independent copies. And only the * objects in @c options[] are properly linked via Option::next() and Option::prev(). * You can iterate over @c buffer[] to * process all options in the order they appear in the argument vector, but if you want access to * the other Options with the same Descriptor::index, then you @e must access the linked list via * @c options[]. You can get the linked list in options from a buffer object via something like * @c options[buffer[i].index()]. */ void parse(bool gnu, const Descriptor usage[], int argc, const char** argv, Option options[], Option buffer[], int min_abbr_len = 0, bool single_minus_longopt = false, int bufmax = -1); //! @brief parse() with non-const argv. void parse(bool gnu, const Descriptor usage[], int argc, char** argv, Option options[], Option buffer[], int min_abbr_len = 0, bool single_minus_longopt = false, int bufmax = -1) { parse(gnu, usage, argc, (const char**) argv, options, buffer, min_abbr_len, single_minus_longopt, bufmax); } //! @brief POSIX parse() (gnu==false). void parse(const Descriptor usage[], int argc, const char** argv, Option options[], Option buffer[], int min_abbr_len = 0, bool single_minus_longopt = false, int bufmax = -1) { parse(false, usage, argc, argv, options, buffer, min_abbr_len, single_minus_longopt, bufmax); } //! @brief POSIX parse() (gnu==false) with non-const argv. void parse(const Descriptor usage[], int argc, char** argv, Option options[], Option buffer[], int min_abbr_len = 0, bool single_minus_longopt = false, int bufmax = -1) { parse(false, usage, argc, (const char**) argv, options, buffer, min_abbr_len, single_minus_longopt, bufmax); } /** * @brief Returns the number of valid Option objects in @c buffer[]. * * @note * @li The returned value always reflects the number of Options in the buffer[] array used for * the most recent call to parse(). * @li The count (and the buffer[]) includes unknown options if they are collected * (see Descriptor::longopt). */ int optionsCount() { return op_count; } /** * @brief Returns the number of non-option arguments that remained at the end of the * most recent parse() that actually encountered non-option arguments. * * @note * A parse() that does not encounter non-option arguments will leave this value * as well as nonOptions() undisturbed. This means you can feed the Parser a * default argument vector that contains non-option arguments (e.g. a default filename). * Then you feed it the actual arguments from the user. If the user has supplied at * least one non-option argument, all of the non-option arguments from the default * disappear and are replaced by the user's non-option arguments. However, if the * user does not supply any non-option arguments the defaults will still be in * effect. */ int nonOptionsCount() { return nonop_count; } /** * @brief Returns a pointer to an array of non-option arguments (only valid * if nonOptionsCount() >0 ). * * @note * @li parse() does not copy arguments, so this pointer points into the actual argument * vector as passed to parse(). * @li As explained at nonOptionsCount() this pointer is only changed by parse() calls * that actually encounter non-option arguments. A parse() call that encounters only * options, will not change nonOptions(). */ const char** nonOptions() { return nonop_args; } /** * @brief Returns nonOptions()[i] (@e without checking if i is in range!). */ const char* nonOption(int i) { return nonOptions()[i]; } /** * @brief Returns @c true if an unrecoverable error occurred while parsing options. * * An illegal argument to an option (i.e. CheckArg returns @ref ARG_ILLEGAL) is an * unrecoverable error that aborts the parse. Unknown options are only an error if * their CheckArg function returns @ref ARG_ILLEGAL. Otherwise they are collected. * In that case if you want to exit the program if either an illegal argument * or an unknown option has been passed, use code like this * * @code * if (parser.error() || options[UNKNOWN]) * exit(1); * @endcode * */ bool error() { return err; } private: friend struct Stats; class StoreOptionAction; struct Action; /** * @internal * @brief This is the core function that does all the parsing. * @retval false iff an unrecoverable error occurred. */ static bool workhorse(bool gnu, const Descriptor usage[], int numargs, const char** args, Action& action, bool single_minus_longopt, bool print_errors, int min_abbr_len); /** * @internal * @brief Returns true iff @c st1 is a prefix of @c st2 and * in case @c st2 is longer than @c st1, then * the first additional character is '='. * * @par Examples: * @code * streq("foo", "foo=bar") == true * streq("foo", "foobar") == false * streq("foo", "foo") == true * streq("foo=bar", "foo") == false * @endcode */ static bool streq(const char* st1, const char* st2) { while (*st1 != 0) if (*st1++ != *st2++) return false; return (*st2 == 0 || *st2 == '='); } /** * @internal * @brief Like streq() but handles abbreviations. * * Returns true iff @c st1 and @c st2 have a common * prefix with the following properties: * @li (if min > 0) its length is at least @c min characters or the same length as @c st1 (whichever is smaller). * @li (if min <= 0) its length is the same as that of @c st1 * @li within @c st2 the character following the common prefix is either '=' or end-of-string. * * Examples: * @code * streqabbr("foo", "foo=bar",) == true * streqabbr("foo", "fo=bar" , 2) == true * streqabbr("foo", "fo" , 2) == true * streqabbr("foo", "fo" , 0) == false * streqabbr("foo", "f=bar" , 2) == false * streqabbr("foo", "f" , 2) == false * streqabbr("fo" , "foo=bar",) == false * streqabbr("foo", "foobar" ,) == false * streqabbr("foo", "fobar" ,) == false * streqabbr("foo", "foo" ,) == true * @endcode */ static bool streqabbr(const char* st1, const char* st2, long long min) { const char* st1start = st1; while (*st1 != 0 && (*st1 == *st2)) { ++st1; ++st2; } return (*st1 == 0 || (min > 0 && (st1 - st1start) >= min)) && (*st2 == 0 || *st2 == '='); } /** * @internal * @brief Returns true iff character @c ch is contained in the string @c st. * * Returns @c true for @c ch==0 . */ static bool instr(char ch, const char* st) { while (*st != 0 && *st != ch) ++st; return *st == ch; } /** * @internal * @brief Rotates args[-count],...,args[-1],args[0] to become * args[0],args[-count],...,args[-1]. */ static void shift(const char** args, int count) { for (int i = 0; i > -count; --i) { const char* temp = args[i]; args[i] = args[i - 1]; args[i - 1] = temp; } } }; /** * @internal * @brief Interface for actions Parser::workhorse() should perform for each Option it * parses. */ struct Parser::Action { /** * @brief Called by Parser::workhorse() for each Option that has been successfully * parsed (including unknown * options if they have a Descriptor whose Descriptor::check_arg does not return * @ref ARG_ILLEGAL. * * Returns @c false iff a fatal error has occured and the parse should be aborted. */ virtual bool perform(Option&) { return true; } /** * @brief Called by Parser::workhorse() after finishing the parse. * @param numargs the number of non-option arguments remaining * @param args pointer to the first remaining non-option argument (if numargs > 0). * * @return * @c false iff a fatal error has occurred. */ virtual bool finished(int numargs, const char** args) { (void) numargs; (void) args; return true; } }; /** * @internal * @brief An Action to pass to Parser::workhorse() that will increment a counter for * each parsed Option. */ class Stats::CountOptionsAction: public Parser::Action { unsigned* buffer_max; public: /** * Creates a new CountOptionsAction that will increase @c *buffer_max_ for each * parsed Option. */ CountOptionsAction(unsigned* buffer_max_) : buffer_max(buffer_max_) { } bool perform(Option&) { if (*buffer_max == 0x7fffffff) return false; // overflow protection: don't accept number of options that doesn't fit signed int ++*buffer_max; return true; } }; /** * @internal * @brief An Action to pass to Parser::workhorse() that will store each parsed Option in * appropriate arrays (see Parser::parse()). */ class Parser::StoreOptionAction: public Parser::Action { Parser& parser; Option* options; Option* buffer; int bufmax; //! Number of slots in @c buffer. @c -1 means "large enough". public: /** * @brief Creates a new StoreOption action. * @param parser_ the parser whose op_count should be updated. * @param options_ each Option @c o is chained into the linked list @c options_[o.desc->index] * @param buffer_ each Option is appended to this array as long as there's a free slot. * @param bufmax_ number of slots in @c buffer_. @c -1 means "large enough". */ StoreOptionAction(Parser& parser_, Option options_[], Option buffer_[], int bufmax_) : parser(parser_), options(options_), buffer(buffer_), bufmax(bufmax_) { // find first empty slot in buffer (if any) int bufidx = 0; while ((bufmax < 0 || bufidx < bufmax) && buffer[bufidx]) ++bufidx; // set parser's optionCount parser.op_count = bufidx; } bool perform(Option& option) { if (bufmax < 0 || parser.op_count < bufmax) { if (parser.op_count == 0x7fffffff) return false; // overflow protection: don't accept number of options that doesn't fit signed int buffer[parser.op_count] = option; int idx = buffer[parser.op_count].desc->index; if (options[idx]) options[idx].append(buffer[parser.op_count]); else options[idx] = buffer[parser.op_count]; ++parser.op_count; } return true; // NOTE: an option that is discarded because of a full buffer is not fatal } bool finished(int numargs, const char** args) { // only overwrite non-option argument list if there's at least 1 // new non-option argument. Otherwise we keep the old list. This // makes it easy to use default non-option arguments. if (numargs > 0) { parser.nonop_count = numargs; parser.nonop_args = args; } return true; } }; inline void Parser::parse(bool gnu, const Descriptor usage[], int argc, const char** argv, Option options[], Option buffer[], int min_abbr_len, bool single_minus_longopt, int bufmax) { StoreOptionAction action(*this, options, buffer, bufmax); err = !workhorse(gnu, usage, argc, argv, action, single_minus_longopt, true, min_abbr_len); } inline void Stats::add(bool gnu, const Descriptor usage[], int argc, const char** argv, int min_abbr_len, bool single_minus_longopt) { // determine size of options array. This is the greatest index used in the usage + 1 int i = 0; while (usage[i].shortopt != 0) { if (usage[i].index + 1 >= options_max) options_max = (usage[i].index + 1) + 1; // 1 more than necessary as sentinel ++i; } CountOptionsAction action(&buffer_max); Parser::workhorse(gnu, usage, argc, argv, action, single_minus_longopt, false, min_abbr_len); } inline bool Parser::workhorse(bool gnu, const Descriptor usage[], int numargs, const char** args, Action& action, bool single_minus_longopt, bool print_errors, int min_abbr_len) { // protect against NULL pointer if (args == 0) numargs = 0; int nonops = 0; while (numargs != 0 && *args != 0) { const char* param = *args; // param can be --long-option, -srto or non-option argument // in POSIX mode the first non-option argument terminates the option list // a lone minus character is a non-option argument if (param[0] != '-' || param[1] == 0) { if (gnu) { ++nonops; ++args; if (numargs > 0) --numargs; continue; } else break; } // -- terminates the option list. The -- itself is skipped. if (param[1] == '-' && param[2] == 0) { shift(args, nonops); ++args; if (numargs > 0) --numargs; break; } bool handle_short_options; const char* longopt_name; if (param[1] == '-') // if --long-option { handle_short_options = false; longopt_name = param + 2; } else { handle_short_options = true; longopt_name = param + 1; //for testing a potential -long-option } bool try_single_minus_longopt = single_minus_longopt; bool have_more_args = (numargs > 1 || numargs < 0); // is referencing argv[1] valid? do // loop over short options in group, for long options the body is executed only once { int idx; const char* optarg; /******************** long option **********************/ if (handle_short_options == false || try_single_minus_longopt) { idx = 0; while (usage[idx].longopt != 0 && !streq(usage[idx].longopt, longopt_name)) ++idx; if (usage[idx].longopt == 0 && min_abbr_len > 0) // if we should try to match abbreviated long options { int i1 = 0; while (usage[i1].longopt != 0 && !streqabbr(usage[i1].longopt, longopt_name, min_abbr_len)) ++i1; if (usage[i1].longopt != 0) { // now test if the match is unambiguous by checking for another match int i2 = i1 + 1; while (usage[i2].longopt != 0 && !streqabbr(usage[i2].longopt, longopt_name, min_abbr_len)) ++i2; if (usage[i2].longopt == 0) // if there was no second match it's unambiguous, so accept i1 as idx idx = i1; } } // if we found something, disable handle_short_options (only relevant if single_minus_longopt) if (usage[idx].longopt != 0) handle_short_options = false; try_single_minus_longopt = false; // prevent looking for longopt in the middle of shortopt group optarg = longopt_name; while (*optarg != 0 && *optarg != '=') ++optarg; if (*optarg == '=') // attached argument ++optarg; else // possibly detached argument optarg = (have_more_args ? args[1] : 0); } /************************ short option ***********************************/ if (handle_short_options) { if (*++param == 0) // point at the 1st/next option character break; // end of short option group idx = 0; while (usage[idx].shortopt != 0 && !instr(*param, usage[idx].shortopt)) ++idx; if (param[1] == 0) // if the potential argument is separate optarg = (have_more_args ? args[1] : 0); else // if the potential argument is attached optarg = param + 1; } const Descriptor* descriptor = &usage[idx]; if (descriptor->shortopt == 0) /************** unknown option ********************/ { // look for dummy entry (shortopt == "" and longopt == "") to use as Descriptor for unknown options idx = 0; while (usage[idx].shortopt != 0 && (usage[idx].shortopt[0] != 0 || usage[idx].longopt[0] != 0)) ++idx; descriptor = (usage[idx].shortopt == 0 ? 0 : &usage[idx]); } if (descriptor != 0) { Option option(descriptor, param, optarg); switch (descriptor->check_arg(option, print_errors)) { case ARG_ILLEGAL: return false; // fatal case ARG_OK: // skip one element of the argument vector, if it's a separated argument if (optarg != 0 && have_more_args && optarg == args[1]) { shift(args, nonops); if (numargs > 0) --numargs; ++args; } // No further short options are possible after an argument handle_short_options = false; break; case ARG_IGNORE: case ARG_NONE: option.arg = 0; break; } if (!action.perform(option)) return false; } } while (handle_short_options); shift(args, nonops); ++args; if (numargs > 0) --numargs; } // while if (numargs > 0 && *args == 0) // It's a bug in the caller if numargs is greater than the actual number numargs = 0; // of arguments, but as a service to the user we fix this if we spot it. if (numargs < 0) // if we don't know the number of remaining non-option arguments { // we need to count them numargs = 0; while (args[numargs] != 0) ++numargs; } return action.finished(numargs + nonops, args - nonops); } /** * @internal * @brief The implementation of option::printUsage(). */ struct PrintUsageImplementation { /** * @internal * @brief Interface for Functors that write (part of) a string somewhere. */ struct IStringWriter { /** * @brief Writes the given number of chars beginning at the given pointer somewhere. */ virtual void operator()(const char*, int) { } }; /** * @internal * @brief Encapsulates a function with signature func(string, size) where * string can be initialized with a const char* and size with an int. */ template struct FunctionWriter: public IStringWriter { Function* write; virtual void operator()(const char* str, int size) { (*write)(str, size); } FunctionWriter(Function* w) : write(w) { } }; /** * @internal * @brief Encapsulates a reference to an object with a write(string, size) * method like that of @c std::ostream. */ template struct OStreamWriter: public IStringWriter { OStream& ostream; virtual void operator()(const char* str, int size) { ostream.write(str, size); } OStreamWriter(OStream& o) : ostream(o) { } }; /** * @internal * @brief Like OStreamWriter but encapsulates a @c const reference, which is * typically a temporary object of a user class. */ template struct TemporaryWriter: public IStringWriter { const Temporary& userstream; virtual void operator()(const char* str, int size) { userstream.write(str, size); } TemporaryWriter(const Temporary& u) : userstream(u) { } }; /** * @internal * @brief Encapsulates a function with the signature func(fd, string, size) (the * signature of the @c write() system call) * where fd can be initialized from an int, string from a const char* and size from an int. */ template struct SyscallWriter: public IStringWriter { Syscall* write; int fd; virtual void operator()(const char* str, int size) { (*write)(fd, str, size); } SyscallWriter(Syscall* w, int f) : write(w), fd(f) { } }; /** * @internal * @brief Encapsulates a function with the same signature as @c std::fwrite(). */ template struct StreamWriter: public IStringWriter { Function* fwrite; Stream* stream; virtual void operator()(const char* str, int size) { (*fwrite)(str, size, 1, stream); } StreamWriter(Function* w, Stream* s) : fwrite(w), stream(s) { } }; /** * @internal * @brief Sets i1 = max(i1, i2) */ static void upmax(int& i1, int i2) { i1 = (i1 >= i2 ? i1 : i2); } /** * @internal * @brief Moves the "cursor" to column @c want_x assuming it is currently at column @c x * and sets @c x=want_x . * If x > want_x , a line break is output before indenting. * * @param write Spaces and possibly a line break are written via this functor to get * the desired indentation @c want_x . * @param[in,out] x the current indentation. Set to @c want_x by this method. * @param want_x the desired indentation. */ static void indent(IStringWriter& write, int& x, int want_x) { int indent = want_x - x; if (indent < 0) { write("\n", 1); indent = want_x; } if (indent > 0) { char space = ' '; for (int i = 0; i < indent; ++i) write(&space, 1); x = want_x; } } /** * @brief Returns true if ch is the unicode code point of a wide character. * * @note * The following character ranges are treated as wide * @code * 1100..115F * 2329..232A (just 2 characters!) * 2E80..A4C6 except for 303F * A960..A97C * AC00..D7FB * F900..FAFF * FE10..FE6B * FF01..FF60 * FFE0..FFE6 * 1B000...... * @endcode */ static bool isWideChar(unsigned ch) { if (ch == 0x303F) return false; return ((0x1100 <= ch && ch <= 0x115F) || (0x2329 <= ch && ch <= 0x232A) || (0x2E80 <= ch && ch <= 0xA4C6) || (0xA960 <= ch && ch <= 0xA97C) || (0xAC00 <= ch && ch <= 0xD7FB) || (0xF900 <= ch && ch <= 0xFAFF) || (0xFE10 <= ch && ch <= 0xFE6B) || (0xFF01 <= ch && ch <= 0xFF60) || (0xFFE0 <= ch && ch <= 0xFFE6) || (0x1B000 <= ch)); } /** * @internal * @brief Splits a @c Descriptor[] array into tables, rows, lines and columns and * iterates over these components. * * The top-level organizational unit is the @e table. * A table begins at a Descriptor with @c help!=NULL and extends up to * a Descriptor with @c help==NULL. * * A table consists of @e rows. Due to line-wrapping and explicit breaks * a row may take multiple lines on screen. Rows within the table are separated * by \\n. They never cross Descriptor boundaries. This means a row ends either * at \\n or the 0 at the end of the help string. * * A row consists of columns/cells. Columns/cells within a row are separated by \\t. * Line breaks within a cell are marked by \\v. * * Rows in the same table need not have the same number of columns/cells. The * extreme case are interjections, which are rows that contain neither \\t nor \\v. * These are NOT treated specially by LinePartIterator, but they are treated * specially by printUsage(). * * LinePartIterator iterates through the usage at 3 levels: table, row and part. * Tables and rows are as described above. A @e part is a line within a cell. * LinePartIterator iterates through 1st parts of all cells, then through the 2nd * parts of all cells (if any),... @n * Example: The row "1 \v 3 \t 2 \v 4" has 2 cells/columns and 4 parts. * The parts will be returned in the order 1, 2, 3, 4. * * It is possible that some cells have fewer parts than others. In this case * LinePartIterator will "fill up" these cells with 0-length parts. IOW, LinePartIterator * always returns the same number of parts for each column. Note that this is different * from the way rows and columns are handled. LinePartIterator does @e not guarantee that * the same number of columns will be returned for each row. * */ class LinePartIterator { const Descriptor* tablestart; //!< The 1st descriptor of the current table. const Descriptor* rowdesc; //!< The Descriptor that contains the current row. const char* rowstart; //!< Ptr to 1st character of current row within rowdesc->help. const char* ptr; //!< Ptr to current part within the current row. int col; //!< Index of current column. int len; //!< Length of the current part (that ptr points at) in BYTES int screenlen; //!< Length of the current part in screen columns (taking narrow/wide chars into account). int max_line_in_block; //!< Greatest index of a line within the block. This is the number of \\v within the cell with the most \\vs. int line_in_block; //!< Line index within the current cell of the current part. int target_line_in_block; //!< Line index of the parts we should return to the user on this iteration. bool hit_target_line; //!< Flag whether we encountered a part with line index target_line_in_block in the current cell. /** * @brief Determines the byte and character lengths of the part at @ref ptr and * stores them in @ref len and @ref screenlen respectively. */ void update_length() { screenlen = 0; for (len = 0; ptr[len] != 0 && ptr[len] != '\v' && ptr[len] != '\t' && ptr[len] != '\n'; ++len) { ++screenlen; unsigned ch = (unsigned char) ptr[len]; if (ch > 0xC1) // everything <= 0xC1 (yes, even 0xC1 itself) is not a valid UTF-8 start byte { // int __builtin_clz (unsigned int x) // Returns the number of leading 0-bits in x, starting at the most significant bit unsigned mask = (unsigned) -1 >> __builtin_clz(ch ^ 0xff); ch = ch & mask; // mask out length bits, we don't verify their correctness while (((unsigned char) ptr[len + 1] ^ 0x80) <= 0x3F) // while next byte is continuation byte { ch = (ch << 6) ^ (unsigned char) ptr[len + 1] ^ 0x80; // add continuation to char code ++len; } // ch is the decoded unicode code point if (ch >= 0x1100 && isWideChar(ch)) // the test for 0x1100 is here to avoid the function call in the Latin case ++screenlen; } } } public: //! @brief Creates an iterator for @c usage. LinePartIterator(const Descriptor usage[]) : tablestart(usage), rowdesc(0), rowstart(0), ptr(0), col(-1), len(0), max_line_in_block(0), line_in_block(0), target_line_in_block(0), hit_target_line(true) { } /** * @brief Moves iteration to the next table (if any). Has to be called once on a new * LinePartIterator to move to the 1st table. * @retval false if moving to next table failed because no further table exists. */ bool nextTable() { // If this is NOT the first time nextTable() is called after the constructor, // then skip to the next table break (i.e. a Descriptor with help == 0) if (rowdesc != 0) { while (tablestart->help != 0 && tablestart->shortopt != 0) ++tablestart; } // Find the next table after the break (if any) while (tablestart->help == 0 && tablestart->shortopt != 0) ++tablestart; restartTable(); return rowstart != 0; } /** * @brief Reset iteration to the beginning of the current table. */ void restartTable() { rowdesc = tablestart; rowstart = tablestart->help; ptr = 0; } /** * @brief Moves iteration to the next row (if any). Has to be called once after each call to * @ref nextTable() to move to the 1st row of the table. * @retval false if moving to next row failed because no further row exists. */ bool nextRow() { if (ptr == 0) { restartRow(); return rowstart != 0; } while (*ptr != 0 && *ptr != '\n') ++ptr; if (*ptr == 0) { if ((rowdesc + 1)->help == 0) // table break return false; ++rowdesc; rowstart = rowdesc->help; } else // if (*ptr == '\n') { rowstart = ptr + 1; } restartRow(); return true; } /** * @brief Reset iteration to the beginning of the current row. */ void restartRow() { ptr = rowstart; col = -1; len = 0; screenlen = 0; max_line_in_block = 0; line_in_block = 0; target_line_in_block = 0; hit_target_line = true; } /** * @brief Moves iteration to the next part (if any). Has to be called once after each call to * @ref nextRow() to move to the 1st part of the row. * @retval false if moving to next part failed because no further part exists. * * See @ref LinePartIterator for details about the iteration. */ bool next() { if (ptr == 0) return false; if (col == -1) { col = 0; update_length(); return true; } ptr += len; while (true) { switch (*ptr) { case '\v': upmax(max_line_in_block, ++line_in_block); ++ptr; break; case '\t': if (!hit_target_line) // if previous column did not have the targetline { // then "insert" a 0-length part update_length(); hit_target_line = true; return true; } hit_target_line = false; line_in_block = 0; ++col; ++ptr; break; case 0: case '\n': if (!hit_target_line) // if previous column did not have the targetline { // then "insert" a 0-length part update_length(); hit_target_line = true; return true; } if (++target_line_in_block > max_line_in_block) { update_length(); return false; } hit_target_line = false; line_in_block = 0; col = 0; ptr = rowstart; continue; default: ++ptr; continue; } // switch if (line_in_block == target_line_in_block) { update_length(); hit_target_line = true; return true; } } // while } /** * @brief Returns the index (counting from 0) of the column in which * the part pointed to by @ref data() is located. */ int column() { return col; } /** * @brief Returns the index (counting from 0) of the line within the current column * this part belongs to. */ int line() { return target_line_in_block; // NOT line_in_block !!! It would be wrong if !hit_target_line } /** * @brief Returns the length of the part pointed to by @ref data() in raw chars (not UTF-8 characters). */ int length() { return len; } /** * @brief Returns the width in screen columns of the part pointed to by @ref data(). * Takes multi-byte UTF-8 sequences and wide characters into account. */ int screenLength() { return screenlen; } /** * @brief Returns the current part of the iteration. */ const char* data() { return ptr; } }; /** * @internal * @brief Takes input and line wraps it, writing out one line at a time so that * it can be interleaved with output from other columns. * * The LineWrapper is used to handle the last column of each table as well as interjections. * The LineWrapper is called once for each line of output. If the data given to it fits * into the designated width of the last column it is simply written out. If there * is too much data, an appropriate split point is located and only the data up to this * split point is written out. The rest of the data is queued for the next line. * That way the last column can be line wrapped and interleaved with data from * other columns. The following example makes this clearer: * @code * Column 1,1 Column 2,1 This is a long text * Column 1,2 Column 2,2 that does not fit into * a single line. * @endcode * * The difficulty in producing this output is that the whole string * "This is a long text that does not fit into a single line" is the * 1st and only part of column 3. In order to produce the above * output the string must be output piecemeal, interleaved with * the data from the other columns. */ class LineWrapper { static const int bufmask = 15; //!< Must be a power of 2 minus 1. /** * @brief Ring buffer for length component of pair (data, length). */ int lenbuf[bufmask + 1]; /** * @brief Ring buffer for data component of pair (data, length). */ const char* datbuf[bufmask + 1]; /** * @brief The indentation of the column to which the LineBuffer outputs. LineBuffer * assumes that the indentation has already been written when @ref process() * is called, so this value is only used when a buffer flush requires writing * additional lines of output. */ int x; /** * @brief The width of the column to line wrap. */ int width; int head; //!< @brief index for next write int tail; //!< @brief index for next read - 1 (i.e. increment tail BEFORE read) /** * @brief Multiple methods of LineWrapper may decide to flush part of the buffer to * free up space. The contract of process() says that only 1 line is output. So * this variable is used to track whether something has output a line. It is * reset at the beginning of process() and checked at the end to decide if * output has already occurred or is still needed. */ bool wrote_something; bool buf_empty() { return ((tail + 1) & bufmask) == head; } bool buf_full() { return tail == head; } void buf_store(const char* data, int len) { lenbuf[head] = len; datbuf[head] = data; head = (head + 1) & bufmask; } //! @brief Call BEFORE reading ...buf[tail]. void buf_next() { tail = (tail + 1) & bufmask; } /** * @brief Writes (data,len) into the ring buffer. If the buffer is full, a single line * is flushed out of the buffer into @c write. */ void output(IStringWriter& write, const char* data, int len) { if (buf_full()) write_one_line(write); buf_store(data, len); } /** * @brief Writes a single line of output from the buffer to @c write. */ void write_one_line(IStringWriter& write) { if (wrote_something) // if we already wrote something, we need to start a new line { write("\n", 1); int _ = 0; indent(write, _, x); } if (!buf_empty()) { buf_next(); write(datbuf[tail], lenbuf[tail]); } wrote_something = true; } public: /** * @brief Writes out all remaining data from the LineWrapper using @c write. * Unlike @ref process() this method indents all lines including the first and * will output a \\n at the end (but only if something has been written). */ void flush(IStringWriter& write) { if (buf_empty()) return; int _ = 0; indent(write, _, x); wrote_something = false; while (!buf_empty()) write_one_line(write); write("\n", 1); } /** * @brief Process, wrap and output the next piece of data. * * process() will output at least one line of output. This is not necessarily * the @c data passed in. It may be data queued from a prior call to process(). * If the internal buffer is full, more than 1 line will be output. * * process() assumes that the a proper amount of indentation has already been * output. It won't write any further indentation before the 1st line. If * more than 1 line is written due to buffer constraints, the lines following * the first will be indented by this method, though. * * No \\n is written by this method after the last line that is written. * * @param write where to write the data. * @param data the new chunk of data to write. * @param len the length of the chunk of data to write. */ void process(IStringWriter& write, const char* data, int len) { wrote_something = false; while (len > 0) { if (len <= width) // quick test that works because utf8width <= len (all wide chars have at least 2 bytes) { output(write, data, len); len = 0; } else // if (len > width) it's possible (but not guaranteed) that utf8len > width { int utf8width = 0; int maxi = 0; while (maxi < len && utf8width < width) { int charbytes = 1; unsigned ch = (unsigned char) data[maxi]; if (ch > 0xC1) // everything <= 0xC1 (yes, even 0xC1 itself) is not a valid UTF-8 start byte { // int __builtin_clz (unsigned int x) // Returns the number of leading 0-bits in x, starting at the most significant bit unsigned mask = (unsigned) -1 >> __builtin_clz(ch ^ 0xff); ch = ch & mask; // mask out length bits, we don't verify their correctness while ((maxi + charbytes < len) && // (((unsigned char) data[maxi + charbytes] ^ 0x80) <= 0x3F)) // while next byte is continuation byte { ch = (ch << 6) ^ (unsigned char) data[maxi + charbytes] ^ 0x80; // add continuation to char code ++charbytes; } // ch is the decoded unicode code point if (ch >= 0x1100 && isWideChar(ch)) // the test for 0x1100 is here to avoid the function call in the Latin case { if (utf8width + 2 > width) break; ++utf8width; } } ++utf8width; maxi += charbytes; } // data[maxi-1] is the last byte of the UTF-8 sequence of the last character that fits // onto the 1st line. If maxi == len, all characters fit on the line. if (maxi == len) { output(write, data, len); len = 0; } else // if (maxi < len) at least 1 character (data[maxi] that is) doesn't fit on the line { int i; for (i = maxi; i >= 0; --i) if (data[i] == ' ') break; if (i >= 0) { output(write, data, i); data += i + 1; len -= i + 1; } else // did not find a space to split at => split before data[maxi] { // data[maxi] is always the beginning of a character, never a continuation byte output(write, data, maxi); data += maxi; len -= maxi; } } } } if (!wrote_something) // if we didn't already write something to make space in the buffer write_one_line(write); // write at most one line of actual output } /** * @brief Constructs a LineWrapper that wraps its output to fit into * screen columns @c x1 (incl.) to @c x2 (excl.). * * @c x1 gives the indentation LineWrapper uses if it needs to indent. */ LineWrapper(int x1, int x2) : x(x1), width(x2 - x1), head(0), tail(bufmask) { if (width < 2) // because of wide characters we need at least width 2 or the code breaks width = 2; } }; /** * @internal * @brief This is the implementation that is shared between all printUsage() templates. * Because all printUsage() templates share this implementation, there is no template bloat. */ static void printUsage(IStringWriter& write, const Descriptor usage[], int width = 80, // int last_column_min_percent = 50, int last_column_own_line_max_percent = 75) { if (width < 1) // protect against nonsense values width = 80; if (width > 10000) // protect against overflow in the following computation width = 10000; int last_column_min_width = ((width * last_column_min_percent) + 50) / 100; int last_column_own_line_max_width = ((width * last_column_own_line_max_percent) + 50) / 100; if (last_column_own_line_max_width == 0) last_column_own_line_max_width = 1; LinePartIterator part(usage); while (part.nextTable()) { /***************** Determine column widths *******************************/ const int maxcolumns = 8; // 8 columns are enough for everyone int col_width[maxcolumns]; int lastcolumn; int leftwidth; int overlong_column_threshold = 10000; do { lastcolumn = 0; for (int i = 0; i < maxcolumns; ++i) col_width[i] = 0; part.restartTable(); while (part.nextRow()) { while (part.next()) { if (part.column() < maxcolumns) { upmax(lastcolumn, part.column()); if (part.screenLength() < overlong_column_threshold) // We don't let rows that don't use table separators (\t or \v) influence // the width of column 0. This allows the user to interject section headers // or explanatory paragraphs that do not participate in the table layout. if (part.column() > 0 || part.line() > 0 || part.data()[part.length()] == '\t' || part.data()[part.length()] == '\v') upmax(col_width[part.column()], part.screenLength()); } } } /* * If the last column doesn't fit on the same * line as the other columns, we can fix that by starting it on its own line. * However we can't do this for any of the columns 0..lastcolumn-1. * If their sum exceeds the maximum width we try to fix this by iteratively * ignoring the widest line parts in the width determination until * we arrive at a series of column widths that fit into one line. * The result is a layout where everything is nicely formatted * except for a few overlong fragments. * */ leftwidth = 0; overlong_column_threshold = 0; for (int i = 0; i < lastcolumn; ++i) { leftwidth += col_width[i]; upmax(overlong_column_threshold, col_width[i]); } } while (leftwidth > width); /**************** Determine tab stops and last column handling **********************/ int tabstop[maxcolumns]; tabstop[0] = 0; for (int i = 1; i < maxcolumns; ++i) tabstop[i] = tabstop[i - 1] + col_width[i - 1]; int rightwidth = width - tabstop[lastcolumn]; bool print_last_column_on_own_line = false; if (rightwidth < last_column_min_width && rightwidth < col_width[lastcolumn]) { print_last_column_on_own_line = true; rightwidth = last_column_own_line_max_width; } // If lastcolumn == 0 we must disable print_last_column_on_own_line because // otherwise 2 copies of the last (and only) column would be output. // Actually this is just defensive programming. It is currently not // possible that lastcolumn==0 and print_last_column_on_own_line==true // at the same time, because lastcolumn==0 => tabstop[lastcolumn] == 0 => // rightwidth==width => rightwidth>=last_column_min_width (unless someone passes // a bullshit value >100 for last_column_min_percent) => the above if condition // is false => print_last_column_on_own_line==false if (lastcolumn == 0) print_last_column_on_own_line = false; LineWrapper lastColumnLineWrapper(width - rightwidth, width); LineWrapper interjectionLineWrapper(0, width); part.restartTable(); /***************** Print out all rows of the table *************************************/ while (part.nextRow()) { int x = -1; while (part.next()) { if (part.column() > lastcolumn) continue; // drop excess columns (can happen if lastcolumn == maxcolumns-1) if (part.column() == 0) { if (x >= 0) write("\n", 1); x = 0; } indent(write, x, tabstop[part.column()]); if ((part.column() < lastcolumn) && (part.column() > 0 || part.line() > 0 || part.data()[part.length()] == '\t' || part.data()[part.length()] == '\v')) { write(part.data(), part.length()); x += part.screenLength(); } else // either part.column() == lastcolumn or we are in the special case of // an interjection that doesn't contain \v or \t { // NOTE: This code block is not necessarily executed for // each line, because some rows may have fewer columns. LineWrapper& lineWrapper = (part.column() == 0) ? interjectionLineWrapper : lastColumnLineWrapper; if (!print_last_column_on_own_line) lineWrapper.process(write, part.data(), part.length()); } } // while if (print_last_column_on_own_line) { part.restartRow(); while (part.next()) { if (part.column() == lastcolumn) { write("\n", 1); int _ = 0; indent(write, _, width - rightwidth); lastColumnLineWrapper.process(write, part.data(), part.length()); } } } write("\n", 1); lastColumnLineWrapper.flush(write); interjectionLineWrapper.flush(write); } } } } ; /** * @brief Outputs a nicely formatted usage string with support for multi-column formatting * and line-wrapping. * * printUsage() takes the @c help texts of a Descriptor[] array and formats them into * a usage message, wrapping lines to achieve the desired output width. * * Table formatting: * * Aside from plain strings which are simply line-wrapped, the usage may contain tables. Tables * are used to align elements in the output. * * @code * // Without a table. The explanatory texts are not aligned. * -c, --create |Creates something. * -k, --kill |Destroys something. * * // With table formatting. The explanatory texts are aligned. * -c, --create |Creates something. * -k, --kill |Destroys something. * @endcode * * Table formatting removes the need to pad help texts manually with spaces to achieve * alignment. To create a table, simply insert \\t (tab) characters to separate the cells * within a row. * * @code * const option::Descriptor usage[] = { * {..., "-c, --create \tCreates something." }, * {..., "-k, --kill \tDestroys something." }, ... * @endcode * * Note that you must include the minimum amount of space desired between cells yourself. * Table formatting will insert further spaces as needed to achieve alignment. * * You can insert line breaks within cells by using \\v (vertical tab). * * @code * const option::Descriptor usage[] = { * {..., "-c,\v--create \tCreates\vsomething." }, * {..., "-k,\v--kill \tDestroys\vsomething." }, ... * * // results in * * -c, Creates * --create something. * -k, Destroys * --kill something. * @endcode * * You can mix lines that do not use \\t or \\v with those that do. The plain * lines will not mess up the table layout. Alignment of the table columns will * be maintained even across these interjections. * * @code * const option::Descriptor usage[] = { * {..., "-c, --create \tCreates something." }, * {..., "----------------------------------" }, * {..., "-k, --kill \tDestroys something." }, ... * * // results in * * -c, --create Creates something. * ---------------------------------- * -k, --kill Destroys something. * @endcode * * You can have multiple tables within the same usage whose columns are * aligned independently. Simply insert a dummy Descriptor with @c help==0. * * @code * const option::Descriptor usage[] = { * {..., "Long options:" }, * {..., "--very-long-option \tDoes something long." }, * {..., "--ultra-super-mega-long-option \tTakes forever to complete." }, * {..., 0 }, // ---------- table break ----------- * {..., "Short options:" }, * {..., "-s \tShort." }, * {..., "-q \tQuick." }, ... * * // results in * * Long options: * --very-long-option Does something long. * --ultra-super-mega-long-option Takes forever to complete. * Short options: * -s Short. * -q Quick. * * // Without the table break it would be * * Long options: * --very-long-option Does something long. * --ultra-super-mega-long-option Takes forever to complete. * Short options: * -s Short. * -q Quick. * @endcode * * Output methods: * * Because TheLeanMeanC++Option parser is freestanding, you have to provide the means for * output in the first argument(s) to printUsage(). Because printUsage() is implemented as * a set of template functions, you have great flexibility in your choice of output * method. The following example demonstrates typical uses. Anything that's similar enough * will work. * * @code * #include // write() * #include // cout * #include // ostringstream * #include // fwrite() * using namespace std; * * void my_write(const char* str, int size) { * fwrite(str, size, 1, stdout); * } * * struct MyWriter { * void write(const char* buf, size_t size) const { * fwrite(str, size, 1, stdout); * } * }; * * struct MyWriteFunctor { * void operator()(const char* buf, size_t size) { * fwrite(str, size, 1, stdout); * } * }; * ... * printUsage(my_write, usage); // custom write function * printUsage(MyWriter(), usage); // temporary of a custom class * MyWriter writer; * printUsage(writer, usage); // custom class object * MyWriteFunctor wfunctor; * printUsage(&wfunctor, usage); // custom functor * printUsage(write, 1, usage); // write() to file descriptor 1 * printUsage(cout, usage); // an ostream& * printUsage(fwrite, stdout, usage); // fwrite() to stdout * ostringstream sstr; * printUsage(sstr, usage); // an ostringstream& * * @endcode * * @par Notes: * @li the @c write() method of a class that is to be passed as a temporary * as @c MyWriter() is in the example, must be a @c const method, because * temporary objects are passed as const reference. This only applies to * temporary objects that are created and destroyed in the same statement. * If you create an object like @c writer in the example, this restriction * does not apply. * @li a functor like @c MyWriteFunctor in the example must be passed as a pointer. * This differs from the way functors are passed to e.g. the STL algorithms. * @li All printUsage() templates are tiny wrappers around a shared non-template implementation. * So there's no penalty for using different versions in the same program. * @li printUsage() always interprets Descriptor::help as UTF-8 and always produces UTF-8-encoded * output. If your system uses a different charset, you must do your own conversion. You * may also need to change the font of the console to see non-ASCII characters properly. * This is particularly true for Windows. * @li @b Security @b warning: Do not insert untrusted strings (such as user-supplied arguments) * into the usage. printUsage() has no protection against malicious UTF-8 sequences. * * @param prn The output method to use. See the examples above. * @param usage the Descriptor[] array whose @c help texts will be formatted. * @param width the maximum number of characters per output line. Note that this number is * in actual characters, not bytes. printUsage() supports UTF-8 in @c help and will * count multi-byte UTF-8 sequences properly. Asian wide characters are counted * as 2 characters. * @param last_column_min_percent (0-100) The minimum percentage of @c width that should be available * for the last column (which typically contains the textual explanation of an option). * If less space is available, the last column will be printed on its own line, indented * according to @c last_column_own_line_max_percent. * @param last_column_own_line_max_percent (0-100) If the last column is printed on its own line due to * less than @c last_column_min_percent of the width being available, then only * @c last_column_own_line_max_percent of the extra line(s) will be used for the * last column's text. This ensures an indentation. See example below. * * @code * // width=20, last_column_min_percent=50 (i.e. last col. min. width=10) * --3456789 1234567890 * 1234567890 * * // width=20, last_column_min_percent=75 (i.e. last col. min. width=15) * // last_column_own_line_max_percent=75 * --3456789 * 123456789012345 * 67890 * * // width=20, last_column_min_percent=75 (i.e. last col. min. width=15) * // last_column_own_line_max_percent=33 (i.e. max. 5) * --3456789 * 12345 * 67890 * 12345 * 67890 * @endcode */ template void printUsage(OStream& prn, const Descriptor usage[], int width = 80, int last_column_min_percent = 50, int last_column_own_line_max_percent = 75) { PrintUsageImplementation::OStreamWriter write(prn); PrintUsageImplementation::printUsage(write, usage, width, last_column_min_percent, last_column_own_line_max_percent); } template void printUsage(Function* prn, const Descriptor usage[], int width = 80, int last_column_min_percent = 50, int last_column_own_line_max_percent = 75) { PrintUsageImplementation::FunctionWriter write(prn); PrintUsageImplementation::printUsage(write, usage, width, last_column_min_percent, last_column_own_line_max_percent); } template void printUsage(const Temporary& prn, const Descriptor usage[], int width = 80, int last_column_min_percent = 50, int last_column_own_line_max_percent = 75) { PrintUsageImplementation::TemporaryWriter write(prn); PrintUsageImplementation::printUsage(write, usage, width, last_column_min_percent, last_column_own_line_max_percent); } template void printUsage(Syscall* prn, int fd, const Descriptor usage[], int width = 80, int last_column_min_percent = 50, int last_column_own_line_max_percent = 75) { PrintUsageImplementation::SyscallWriter write(prn, fd); PrintUsageImplementation::printUsage(write, usage, width, last_column_min_percent, last_column_own_line_max_percent); } template void printUsage(Function* prn, Stream* stream, const Descriptor usage[], int width = 80, int last_column_min_percent = 50, int last_column_own_line_max_percent = 75) { PrintUsageImplementation::StreamWriter write(prn, stream); PrintUsageImplementation::printUsage(write, usage, width, last_column_min_percent, last_column_own_line_max_percent); } } // namespace option #endif /* OPTIONPARSER_H_ */ Gyoto-2.0.2/compile000077500000000000000000000163501455254334400142100ustar00rootroot00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1999-2021 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* | MSYS*) 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/* | msys/*) 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 | \ icl | *[/\\]icl | icl.exe | *[/\\]icl.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 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: Gyoto-2.0.2/config.guess000077500000000000000000001303611455254334400151510ustar00rootroot00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2013 Free Software Foundation, Inc. timestamp='2013-06-10' # 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. # # 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;hb=HEAD # # Please send patches with a ChangeLog entry to config-patches@gnu.org. 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-2013 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'` ;; 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=`(/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 ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in 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 # 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/[-_].*/\./'` ;; 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}" 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 ;; *: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 ;; 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/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` 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 ;; i*: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 '[A-Z]' '[a-z]'``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 ;; 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 ;; 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; } ;; or1k:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; or32: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 ;; 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}-unknown-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 configury 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 ;; 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 [ "$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 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 ;; esac eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp 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` /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: Gyoto-2.0.2/config.h.in000066400000000000000000000076661455254334400146670ustar00rootroot00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Enable debugging information gathering code for putative speed gain */ #undef GYOTO_DEBUG_ENABLED /* Define to 1 if C++11 and Boost.odeint are both available */ #undef GYOTO_HAVE_BOOST_INTEGRATORS /* Suffix for Gyoto plug-ins */ #undef GYOTO_PLUGIN_SFX /* Define to 1 if size_t and unsigned long are the same */ #undef GYOTO_SIZE__T_IS_UNSIGNED_LONG /* Gyoto ABI version */ #undef GYOTO_SOVERS /* Define to 1 if you have aeae */ #undef GYOTO_USE_AEAE /* Define to 1 if you have arblib */ #undef GYOTO_USE_ARBLIB /* Define to 1 if you have cfitsio */ #undef GYOTO_USE_CFITSIO /* Define to 1 if you have eigen */ #undef GYOTO_USE_EIGEN /* Define to 1 if you have udunits */ #undef GYOTO_USE_UDUNITS /* Define to 1 if you have xerces */ #undef GYOTO_USE_XERCES /* Define to 1 if you have the header file. */ #undef HAVE_ACB_H /* Defined if the requested minimum BOOST version is satisfied */ #undef HAVE_BOOST /* Define to 1 if you have */ #undef HAVE_BOOST_ARRAY_HPP /* Define to 1 if you have */ #undef HAVE_BOOST_MPI_ENVIRONMENT_HPP /* Define to 1 if you have */ #undef HAVE_BOOST_MULTIPRECISION_CPP_DEC_FLOAT_HPP /* Define to 1 if you have */ #undef HAVE_BOOST_NUMERIC_ODEINT_STEPPER_CONTROLLED_STEP_RESULT_HPP /* Define to 1 if you have */ #undef HAVE_BOOST_SERIALIZATION_BASE_OBJECT_HPP /* define if the compiler supports basic C++11 syntax */ #undef HAVE_CXX11 /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 to use fenv.h. */ #undef HAVE_FENV_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `dl' library (-ldl). */ #undef HAVE_LIBDL /* Define to 1 if you have MPI */ #undef HAVE_MPI /* Define if you have POSIX threads libraries and header files. */ #undef HAVE_PTHREAD /* Have PTHREAD_PRIO_INHERIT. */ #undef HAVE_PTHREAD_PRIO_INHERIT /* Define to 1 if you have the `sincos' function. */ #undef HAVE_SINCOS /* 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 header file. */ #undef HAVE_SYS_STAT_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_UNISTD_H /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL /* Define to the sub-directory where libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* 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 necessary symbol if this constant uses a non-standard name on your system. */ #undef PTHREAD_CREATE_JOINABLE /* Define to 1 if all of the C90 standard headers exist (not just the ones required in a freestanding environment). This macro is provided for backward compatibility; new code need not use it. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Define to `unsigned int' if does not define. */ #undef size_t Gyoto-2.0.2/config.sub000077500000000000000000001053541455254334400146200ustar00rootroot00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2013 Free Software Foundation, Inc. timestamp='2013-08-10' # 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"). # Please send patches with a ChangeLog entry to config-patches@gnu.org. # # 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;hb=HEAD # 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 $0 [OPTION] 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-2013 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* | \ kopensolaris*-gnu* | \ 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 \ | be32 | be64 \ | bfin \ | c4x | c8051 | clipper \ | d10v | d30v | dlx | dsp16xx \ | epiphany \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | 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 \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 \ | or1k | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ | rl78 | rx \ | score \ | 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 \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | 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 ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | 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-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | c8051-* | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | 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-* \ | 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-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | 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-* \ | 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 ;; 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 ;; 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 ;; 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 ;; 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 | ppc-le | powerpc-little) 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 | ppc64-le | powerpc64-little) 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* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* \ | -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* \ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -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*) # 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*) ;; -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 ;; or1k-*) 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: Gyoto-2.0.2/configure000077500000000000000000030626421455254334400145510ustar00rootroot00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.71 for Gyoto 2.0.2. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=: if test ${ZSH_VERSION+y} && (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 $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; 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 # 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # 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'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 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="as_nop=: if test \${ZSH_VERSION+y} && (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 \$as_nop 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 \$as_nop exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) test x\"\$blah\" = xblah || 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 -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 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes else $as_nop as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$as_shell as_have_required=yes if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null then : break 2 fi fi done;; esac as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes fi fi 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'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno then : printf "%s\n" "$0: This script requires a shell more modern than all" printf "%s\n" "$0: the shells that I found on your system." if test ${ZSH_VERSION+y} ; then printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and $0: gyoto@sympa.obspm.fr about your system, including any $0: error possibly output before this message. Then install $0: a modern shell, or manually run the script under such a $0: 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_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # 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=`printf "%s\n" "$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 || printf "%s\n" 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_nop 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_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # 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 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$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 || printf "%s\n" 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" || { printf "%s\n" "$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 } # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. 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 # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' 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='Gyoto' PACKAGE_TARNAME='gyoto' PACKAGE_VERSION='2.0.2' PACKAGE_STRING='Gyoto 2.0.2' PACKAGE_BUGREPORT='gyoto@sympa.obspm.fr' PACKAGE_URL='' ac_unique_file="include/GyotoKerrKS.h" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_STDIO_H # include #endif #ifdef HAVE_STDLIB_H # include #endif #ifdef HAVE_STRING_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_header_c_list= enable_option_checking=no ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS mySUBDIRS subdirs sovers FEATURES BUILD_GYOTO_FALSE BUILD_GYOTO_TRUE pkg_libs pkg_cflags pkg_requires MKGUIDE_FALSE MKGUIDE_TRUE MKREF_FALSE MKREF_TRUE LORENELDFLAGS LORENECPPFLAGS HAVE_LORENE_FALSE HAVE_LORENE_TRUE HOME_LORENE MAKE_S AEAE_CFLAGS HAVE_2F1_FALSE HAVE_2F1_TRUE HAVE_AEAE_FALSE HAVE_AEAE_TRUE HAVE_ARBLIB_FALSE HAVE_ARBLIB_TRUE ARBLIB_LIBS ARBLIB_CFLAGS HAVE_CFITSIO_FALSE HAVE_CFITSIO_TRUE CFITSIO_LIBS CFITSIO_CFLAGS HAVE_EIGEN_FALSE HAVE_EIGEN_TRUE EIGEN_LIBS EIGEN_CFLAGS HAVE_XERCES_FALSE HAVE_XERCES_TRUE XERCES_LIBS XERCES_CFLAGS HAVE_UDUNITS_FALSE HAVE_UDUNITS_TRUE UDUNITS_LIBS UDUNITS_CFLAGS PTHREAD_CFLAGS PTHREAD_LIBS PTHREAD_CC ax_pthread_config Y_INST_SITE Y_INST_HOME HAVE_YORICK_FALSE HAVE_YORICK_TRUE YORICK POW_LIB LIBOBJS plugin_sfx SYS DYLIB_VAR GYOTO_PLUGIN_SFX LDFLAGS_EXEC CXXFLAGS_EXEC KPSEWHICH BIBTEX PDFLATEX DOXYGEN PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG HAVE_MPI_FALSE HAVE_MPI_TRUE BOOST_SERIALIZATION_LIBS BOOST_SERIALIZATION_LDPATH BOOST_SERIALIZATION_LDFLAGS BOOST_MPI_LIBS BOOST_LDPATH BOOST_MPI_LDPATH BOOST_MPI_LDFLAGS MPICXX BOOST_CPPFLAGS DISTCHECK_CONFIGURE_FLAGS BOOST_ROOT HAVE_CXX11 SWIG_LIB SWIG VIRTUALENV_FLAGS VIRTUALENV PYTHON_EXTENSION_SUFFIX pyexecdir PYTHON_EXEC_PREFIX pkgpythondir pythondir PYTHON_PREFIX PYTHON_LIBS PYTHON_LDFLAGS PYTHON_CFLAGS PYTHON_INCLUDES PYTHON_CONFIG PYTHON localpkglibdir HAVE_LOCALPKGLIBDIR_FALSE HAVE_LOCALPKGLIBDIR_TRUE VERSINFO VERBATIM CXXCPP LT_SYS_LIBRARY_PATH OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX ac_ct_AR AR DLLTOOL OBJDUMP FILECMD LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC LIBTOOL AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V CSCOPE ETAGS CTAGS 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_os target_vendor target_cpu target host_os host_vendor host_cpu host build_os build_vendor build_cpu build 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 am__quote' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_static enable_shared with_pic enable_fast_install with_aix_soname enable_dependency_tracking with_gnu_ld with_sysroot enable_libtool_lock enable_release enable_localpkglibdir with_fenv with_size_t with_python with_virtualenv enable_c__11 with_mpi with_boost enable_static_boost enable_native enable_hardening enable_deprecated with_yorick with_yorick_home with_yorick_site enable_debugging enable_pthreads with_udunits_inc with_udunits_lib with_udunits with_udunits_headers with_udunits_libs with_xerces with_xerces_headers with_xerces_libs with_eigen with_eigen_headers with_eigen_libs with_cfitsio with_cfitsio_headers with_cfitsio_libs with_arblib with_arblib_headers with_arblib_libs with_arblib_ldflags with_aeae with_lorene enable_doc ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CXX CXXFLAGS CCC LT_SYS_LIBRARY_PATH CXXCPP PYTHON PYTHON_CONFIG VIRTUALENV_FLAGS BOOST_ROOT PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR UDUNITS_CFLAGS UDUNITS_LIBS XERCES_CFLAGS XERCES_LIBS EIGEN_CFLAGS EIGEN_LIBS CFITSIO_CFLAGS CFITSIO_LIBS ARBLIB_CFLAGS ARBLIB_LIBS MAKE_S HOME_LORENE' ac_subdirs_all='plugins/python' # 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 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=`printf "%s\n" "$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=`printf "%s\n" "$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=`printf "%s\n" "$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=`printf "%s\n" "$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. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && printf "%s\n" "$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" ;; *) printf "%s\n" "$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 || printf "%s\n" 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 Gyoto 2.0.2 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/gyoto] --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] --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of Gyoto 2.0.2:";; 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-static[=PKGS] build static libraries [default=no] --enable-shared[=PKGS] build shared libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --disable-libtool-lock avoid locking (might break parallel builds) --enable-release enable a release build (remove -unreleased from SONAME) --enable-localpkglibdir[=PKGLIBDIR] additional directory to look for plug-ins [/usr/local/lib/gyoto, only if PREFIX is not /usr/local]. If specified, Gyoto will look for additional plug-ins in LOCALPKGLIBDIR/GYOTO_SOVERS and LOCALPKGLIBDIR before looking in PKGLIBDIR/GYOTO_SOVERS and PKGLIBDIR --disable-c++11 disable C++11 features (including advanced integrators) --enable-static-boost Prefer the static boost libraries over the shared ones [no] --enable-native append "-march=native" to CXXFLAGS if supported --enable-hardening add warnings and hardening flags if supported --enable-deprecated enable deprecated method names (needing this is a bug) --disable-debugging remove debugging code for hypothetical speed gain --disable-pthreads disable POSIX threads parallelization --disable-doc disable building documentation (automatically) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --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). --without-fenv do not use fenv.h (see BUGS.md) --with-size_t=same|distinct|auto consider size_t as the same as or distinct from unsigned long (auto). Should normally be specified only if cross-compiling. --with-python[=interpreter] force (or disable) python support, possibly specifying interpreter --with-virtualenv install to a Python virtualenv --with-mpi compile with MPI (parallelization) support. If none is found, MPI is not used. Default: auto --with-boost=DIR prefix of Boost 1.53.1 [guess] --with-yorick[=yorick-executable] force using yorick and optionnally specify which one [default=yorick, only if found] --with-yorick-home=DIR architecture-dependent Yorick files [default: the yorick directory if it is under ${exec_prefix}, else ${exec_prefix}/lib/yorick] --with-yorick-site=DIR architecture-independent Yorick files [default: the yorick directory if it is under ${prefix}, else ${prefix}/lib/yorick] (--with-udunits-inc=) deprecated, use --with-udunits-headers (--with-udunits-lib=) deprecated, use --with-udunits-libs --with-udunits[=udunits-prefix] Force using udunits installed in a given prefix or force disable it. --with-udunits-headers=path location of udunits include files as a colon-separated path ('--with-udunits-headers=/path1:...:/pathn') or list of preprocessor flags ('--with-udunits-headers="-I/path1 ... -I/pathn")' --with-udunits-libs=path location of udunits library files as a colon-separated path ('--with-udunits-libs=/path1:...:/pathn') or list of preprocessor flags ('--with-udunits-libs="-L/path1 ... -L/pathn")' --with-xerces[=xerces-prefix] Force using xerces installed in a given prefix or force disable it. --with-xerces-headers=path location of xerces include files as a colon-separated path ('--with-xerces-headers=/path1:...:/pathn') or list of preprocessor flags ('--with-xerces-headers="-I/path1 ... -I/pathn")' --with-xerces-libs=path location of xerces library files as a colon-separated path ('--with-xerces-libs=/path1:...:/pathn') or list of preprocessor flags ('--with-xerces-libs="-L/path1 ... -L/pathn")' --with-eigen[=eigen-prefix] Force using eigen installed in a given prefix or force disable it. --with-eigen-headers=path location of eigen include files as a colon-separated path ('--with-eigen-headers=/path1:...:/pathn') or list of preprocessor flags ('--with-eigen-headers="-I/path1 ... -I/pathn")' --with-eigen-libs=path location of eigen library files as a colon-separated path ('--with-eigen-libs=/path1:...:/pathn') or list of preprocessor flags ('--with-eigen-libs="-L/path1 ... -L/pathn")' --with-cfitsio[=cfitsio-prefix] Force using cfitsio installed in a given prefix or force disable it. --with-cfitsio-headers=path location of cfitsio include files as a colon-separated path ('--with-cfitsio-headers=/path1:...:/pathn') or list of preprocessor flags ('--with-cfitsio-headers="-I/path1 ... -I/pathn")' --with-cfitsio-libs=path location of cfitsio library files as a colon-separated path ('--with-cfitsio-libs=/path1:...:/pathn') or list of preprocessor flags ('--with-cfitsio-libs="-L/path1 ... -L/pathn")' --with-arblib[=arblib-prefix] Force using arblib installed in a given prefix or force disable it. --with-arblib-headers=path location of arblib include files as a colon-separated path ('--with-arblib-headers=/path1:...:/pathn') or list of preprocessor flags ('--with-arblib-headers="-I/path1 ... -I/pathn")' --with-arblib-libs=path location of arblib library files as a colon-separated path ('--with-arblib-libs=/path1:...:/pathn') or list of preprocessor flags ('--with-arblib-libs="-L/path1 ... -L/pathn")' --with-arblib-ldflags=-l linker flag for arblib (usually -lflint on recent systems, sometimes -lflint-arb or -larb) possibly with dependencies (e.g. "-larb -lflint"). --with-aeae[=/path/to/AEAE] Force using AEAE, optionally specifying full path to location of source code, or force disable it. --with-lorene[=${HOME_LORENE}] force using the optional LORENE library, possibly specifying HOME_LORENE [default=${HOME_LORENE}] 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 LT_SYS_LIBRARY_PATH User-defined run-time library search path. CXXCPP C++ preprocessor PYTHON the Python interpreter PYTHON_CONFIG the Python-config program VIRTUALENV_FLAGS flags to pass to the virtualenv command BOOST_ROOT Location of Boost installation PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path UDUNITS_CFLAGS C compiler flags for UDUNITS, overriding pkg-config UDUNITS_LIBS linker flags for UDUNITS, overriding pkg-config XERCES_CFLAGS C compiler flags for XERCES, overriding pkg-config XERCES_LIBS linker flags for XERCES, overriding pkg-config EIGEN_CFLAGS C compiler flags for EIGEN, overriding pkg-config EIGEN_LIBS linker flags for EIGEN, overriding pkg-config CFITSIO_CFLAGS C compiler flags for CFITSIO, overriding pkg-config CFITSIO_LIBS linker flags for CFITSIO, overriding pkg-config ARBLIB_CFLAGS C compiler flags for ARBLIB, overriding pkg-config ARBLIB_LIBS linker flags for ARBLIB, overriding pkg-config MAKE_S make command which does not print directories [[make -w]] HOME_LORENE path to Lorene build directory (see also --with-lorene) 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=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$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 configure.gnu first; this name is used for a wrapper for # Metaconfig's "Configure" on case-insensitive file systems. 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 printf "%s\n" "$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 Gyoto configure 2.0.2 generated by GNU Autoconf 2.71 Copyright (C) 2021 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 conftest.beam 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\"" printf "%s\n" "$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 printf "%s\n" "$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_nop printf "%s\n" "$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 conftest.beam 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\"" printf "%s\n" "$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 printf "%s\n" "$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_nop printf "%s\n" "$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_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.beam 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\"" printf "%s\n" "$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 printf "%s\n" "$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_nop printf "%s\n" "$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_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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop 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 $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ #include #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 (void) { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$3=yes" else $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$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\"" printf "%s\n" "$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 printf "%s\n" "$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_nop printf "%s\n" "$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.beam 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\"" printf "%s\n" "$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 printf "%s\n" "$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_nop printf "%s\n" "$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 # ac_fn_cxx_try_run LINENO # ------------------------ # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that # executables *can* be run. ac_fn_cxx_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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: program exited with status $ac_status" >&5 printf "%s\n" "$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_cxx_try_run # ac_fn_cxx_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_cxx_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : eval "$3=yes" else $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_header_compile # ac_fn_py_try_link LINENO # ------------------------ # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_py_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam 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\"" printf "%s\n" "$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 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_py_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_nop printf "%s\n" "$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_py_try_link # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES # --------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_cxx_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : else $as_nop eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_type # ac_fn_cxx_check_func LINENO FUNC VAR # ------------------------------------ # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_cxx_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ #include #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 (void) { return $2 (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO" then : eval "$3=yes" else $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_func ac_configure_args_raw= for ac_arg do case $ac_arg in *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append ac_configure_args_raw " '$ac_arg'" done case $ac_configure_args_raw in *$as_nl*) ac_safe_unquote= ;; *) ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. ac_unsafe_a="$ac_unsafe_z#~" ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; esac 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 Gyoto $as_me 2.0.2, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw _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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac printf "%s\n" "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=`printf "%s\n" "$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=$? # Sanitize IFS. IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo printf "%s\n" "## ---------------- ## ## 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_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$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 printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && printf "%s\n" "$as_me: caught signal $ac_signal" printf "%s\n" "$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 printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi for ac_site_file in $ac_site_files do case $ac_site_file in #( */*) : ;; #( *) : ac_site_file=./$ac_site_file ;; esac if test -f "$ac_site_file" && test -r "$ac_site_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Test code for whether the C compiler supports C89 (global declarations) ac_c_conftest_c89_globals=' /* Does the compiler advertise C89 conformance? Do not test the value of __STDC__, because some compilers set it to 0 while being otherwise adequately conformant. */ #if !defined __STDC__ # error "Compiler does not advertise C89 conformance" #endif #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*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 do not provoke an error unfortunately, instead are silently treated as an "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 is necessary to write \x00 == 0 to get something that is 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 **, int *(*)(struct buf *, struct stat *, int), int, int);' # Test code for whether the C compiler supports C89 (body of main). ac_c_conftest_c89_main=' ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); ' # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' // Does the compiler advertise C99 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare // FILE and stderr. #define debug(...) dprintf (2, __VA_ARGS__) #define showlist(...) puts (#__VA_ARGS__) #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) static void test_varargs_macros (void) { int x = 1234; int y = 5678; debug ("Flag"); debug ("X = %d\n", x); showlist (The first, second, and third items.); report (x>y, "x is %d but y is %d", x, y); } // Check long long types. #define BIG64 18446744073709551615ull #define BIG32 4294967295ul #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) #if !BIG_OK #error "your preprocessor is broken" #endif #if BIG_OK #else #error "your preprocessor is broken" #endif static long long int bignum = -9223372036854775807LL; static unsigned long long int ubignum = BIG64; struct incomplete_array { int datasize; double data[]; }; struct named_init { int number; const wchar_t *name; double average; }; typedef const char *ccp; static inline int test_restrict (ccp restrict text) { // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) continue; return 0; } // Check varargs and va_copy. static bool test_varargs (const char *format, ...) { va_list args; va_start (args, format); va_list args_copy; va_copy (args_copy, args); const char *str = ""; int number = 0; float fnumber = 0; while (*format) { switch (*format++) { case '\''s'\'': // string str = va_arg (args_copy, const char *); break; case '\''d'\'': // int number = va_arg (args_copy, int); break; case '\''f'\'': // float fnumber = va_arg (args_copy, double); break; default: break; } } va_end (args_copy); va_end (args); return *str && number && fnumber; } ' # Test code for whether the C compiler supports C99 (body of main). ac_c_conftest_c99_main=' // Check bool. _Bool success = false; success |= (argc != 0); // Check restrict. if (test_restrict ("String literal") == 0) success = true; char *restrict newvar = "Another string"; // Check varargs. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); test_varargs_macros (); // Check flexible array members. struct incomplete_array *ia = malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; // Check named initializers. struct named_init ni = { .number = 34, .name = L"Test wide string", .average = 543.34343, }; ni.number = 58; int dynamic_array[ni.number]; dynamic_array[0] = argv[0][0]; dynamic_array[ni.number - 1] = 543; // work around unused variable warnings ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' || dynamic_array[ni.number - 1] != 543); ' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' // Does the compiler advertise C11 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif // Check _Alignas. char _Alignas (double) aligned_as_double; char _Alignas (0) no_special_alignment; extern char aligned_as_int; char _Alignas (0) _Alignas (int) aligned_as_int; // Check _Alignof. enum { int_alignment = _Alignof (int), int_array_alignment = _Alignof (int[100]), char_alignment = _Alignof (char) }; _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); // Check _Noreturn. int _Noreturn does_not_return (void) { for (;;) continue; } // Check _Static_assert. struct test_static_assert { int x; _Static_assert (sizeof (int) <= sizeof (long int), "_Static_assert does not work in struct"); long int y; }; // Check UTF-8 literals. #define u8 syntax error! char const utf8_literal[] = u8"happens to be ASCII" "another string"; // Check duplicate typedefs. typedef long *long_ptr; typedef long int *long_ptr; typedef long_ptr long_ptr; // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. struct anonymous { union { struct { int i; int j; }; struct { int k; long int l; } w; }; int m; } v1; ' # Test code for whether the C compiler supports C11 (body of main). ac_c_conftest_c11_main=' _Static_assert ((offsetof (struct anonymous, i) == offsetof (struct anonymous, w.k)), "Anonymous union alignment botch"); v1.i = 2; v1.w.k = 5; ok |= v1.i != 5; ' # Test code for whether the C compiler supports C11 (complete). ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} ${ac_c_conftest_c11_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} ${ac_c_conftest_c11_main} return ok; } " # Test code for whether the C compiler supports C99 (complete). ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} return ok; } " # Test code for whether the C compiler supports C89 (complete). ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} return ok; } " # Test code for whether the C++ compiler supports C++98 (global declarations) ac_cxx_conftest_cxx98_globals=' // Does the compiler advertise C++98 conformance? #if !defined __cplusplus || __cplusplus < 199711L # error "Compiler does not advertise C++98 conformance" #endif // These inclusions are to reject old compilers that // lack the unsuffixed header files. #include #include // and are *not* freestanding headers in C++98. extern void assert (int); namespace std { extern int strcmp (const char *, const char *); } // Namespaces, exceptions, and templates were all added after "C++ 2.0". using std::exception; using std::strcmp; namespace { void test_exception_syntax() { try { throw "test"; } catch (const char *s) { // Extra parentheses suppress a warning when building autoconf itself, // due to lint rules shared with more typical C programs. assert (!(strcmp) (s, "test")); } } template struct test_template { T const val; explicit test_template(T t) : val(t) {} template T add(U u) { return static_cast(u) + val; } }; } // anonymous namespace ' # Test code for whether the C++ compiler supports C++98 (body of main) ac_cxx_conftest_cxx98_main=' assert (argc); assert (! argv[0]); { test_exception_syntax (); test_template tt (2.0); assert (tt.add (4) == 6.0); assert (true && !false); } ' # Test code for whether the C++ compiler supports C++11 (global declarations) ac_cxx_conftest_cxx11_globals=' // Does the compiler advertise C++ 2011 conformance? #if !defined __cplusplus || __cplusplus < 201103L # error "Compiler does not advertise C++11 conformance" #endif namespace cxx11test { constexpr int get_val() { return 20; } struct testinit { int i; double d; }; class delegate { public: delegate(int n) : n(n) {} delegate(): delegate(2354) {} virtual int getval() { return this->n; }; protected: int n; }; class overridden : public delegate { public: overridden(int n): delegate(n) {} virtual int getval() override final { return this->n * 2; } }; class nocopy { public: nocopy(int i): i(i) {} nocopy() = default; nocopy(const nocopy&) = delete; nocopy & operator=(const nocopy&) = delete; private: int i; }; // for testing lambda expressions template Ret eval(Fn f, Ret v) { return f(v); } // for testing variadic templates and trailing return types template auto sum(V first) -> V { return first; } template auto sum(V first, Args... rest) -> V { return first + sum(rest...); } } ' # Test code for whether the C++ compiler supports C++11 (body of main) ac_cxx_conftest_cxx11_main=' { // Test auto and decltype auto a1 = 6538; auto a2 = 48573953.4; auto a3 = "String literal"; int total = 0; for (auto i = a3; *i; ++i) { total += *i; } decltype(a2) a4 = 34895.034; } { // Test constexpr short sa[cxx11test::get_val()] = { 0 }; } { // Test initializer lists cxx11test::testinit il = { 4323, 435234.23544 }; } { // Test range-based for int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; for (auto &x : array) { x += 23; } } { // Test lambda expressions using cxx11test::eval; assert (eval ([](int x) { return x*2; }, 21) == 42); double d = 2.0; assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); assert (d == 5.0); assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); assert (d == 5.0); } { // Test use of variadic templates using cxx11test::sum; auto a = sum(1); auto b = sum(1, 2); auto c = sum(1.0, 2.0, 3.0); } { // Test constructor delegation cxx11test::delegate d1; cxx11test::delegate d2(); cxx11test::delegate d3(45); } { // Test override and final cxx11test::overridden o1(55464); } { // Test nullptr char *c = nullptr; } { // Test template brackets test_template<::test_template> v(test_template(12)); } { // Unicode literals char const *utf8 = u8"UTF-8 string \u2500"; char16_t const *utf16 = u"UTF-8 string \u2500"; char32_t const *utf32 = U"UTF-32 string \u2500"; } ' # Test code for whether the C compiler supports C++11 (complete). ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} ${ac_cxx_conftest_cxx11_globals} int main (int argc, char **argv) { int ok = 0; ${ac_cxx_conftest_cxx98_main} ${ac_cxx_conftest_cxx11_main} return ok; } " # Test code for whether the C compiler supports C++98 (complete). ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} int main (int argc, char **argv) { int ok = 0; ${ac_cxx_conftest_cxx98_main} return ok; } " as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" # Auxiliary files required by this configure script. ac_aux_files="compile ltmain.sh missing install-sh config.guess config.sub" # Locations in which to look for auxiliary files. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." # Search for a directory containing all of the required auxiliary files, # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. # If we don't find one directory that contains all the files we need, # we report the set of missing files from the *first* directory in # $ac_aux_dir_candidates and give up. ac_missing_aux_files="" ac_first_candidate=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in $ac_aux_dir_candidates do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac as_found=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 ac_aux_dir_found=yes ac_install_sh= for ac_aux in $ac_aux_files do # As a special case, if "install-sh" is required, that requirement # can be satisfied by any of "install-sh", "install.sh", or "shtool", # and $ac_install_sh is set appropriately for whichever one is found. if test x"$ac_aux" = x"install-sh" then if test -f "${as_dir}install-sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 ac_install_sh="${as_dir}install-sh -c" elif test -f "${as_dir}install.sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 ac_install_sh="${as_dir}install.sh -c" elif test -f "${as_dir}shtool"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 ac_install_sh="${as_dir}shtool install -c" else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} install-sh" else break fi fi else if test -f "${as_dir}${ac_aux}"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" else break fi fi fi done if test "$ac_aux_dir_found" = yes; then ac_aux_dir="$as_dir" break fi ac_first_candidate=false as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$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. if test -f "${ac_aux_dir}config.guess"; then ac_config_guess="$SHELL ${ac_aux_dir}config.guess" fi if test -f "${ac_aux_dir}config.sub"; then ac_config_sub="$SHELL ${ac_aux_dir}config.sub" fi if test -f "$ac_aux_dir/configure"; then ac_configure="$SHELL ${ac_aux_dir}configure" 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,) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 printf "%s\n" "$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=`printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`${MAKE-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 gyoto_test_CXXFLAGS=${CXXFLAGS+set} gyoto_test_CPPFLAGS=${CPPFLAGS+set} # 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 printf %s "checking build system type... " >&6; } if test ${ac_cv_build+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 printf %s "checking host system type... " >&6; } if test ${ac_cv_host+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 printf %s "checking target system type... " >&6; } if test ${ac_cv_target+y} then : printf %s "(cached) " >&6 else $as_nop if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 printf "%s\n" "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' set x $ac_cv_target shift target_cpu=$1 target_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: target_os=$* IFS=$ac_save_IFS case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac # The aliases save the names the user supplied, while $host etc. # will get canonicalized. test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- am__api_version='1.16' # 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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 printf %s "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if test ${ac_cv_path_install+y} then : printf %s "(cached) " >&6 else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac # Account for fact that we put trailing slashes in our PATH walk. 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+y}; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 printf "%s\n" "$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' { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "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=`printf "%s\n" "$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 MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 printf "%s\n" "$STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 printf "%s\n" "$ac_ct_STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 printf %s "checking for a race-free mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if test ${ac_cv_path_mkdir+y} then : printf %s "(cached) " >&6 else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 ('*'coreutils) '* | \ 'BusyBox '* | \ '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+y}; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 printf "%s\n" "$AWK" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$AWK" && break done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval test \${ac_cv_prog_make_${ac_make}_set+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } SET_MAKE= else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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+y} 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} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 printf %s "checking whether $am_make supports nested variables... " >&6; } if test ${am_cv_make_support_nested_variables+y} then : printf %s "(cached) " >&6 else $as_nop if printf "%s\n" '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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 printf "%s\n" "$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='gyoto' VERSION='2.0.2' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h # 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 -' # Variables for tags utilities; see am/tags.am if test -z "$CTAGS"; then CTAGS=ctags fi if test -z "$ETAGS"; then ETAGS=etags fi if test -z "$CSCOPE"; then CSCOPE=cscope fi # 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 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 case `pwd` in *\ * | *\ *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.7' macro_revision='2.4.7' 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 printf %s "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*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 printf "%s\n" "printf" >&6; } ;; print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 printf "%s\n" "print -r" >&6; } ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 printf "%s\n" "cat" >&6; } ;; esac DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } case $?:`cat confinc.out 2>/dev/null` in #( '0:this is the am__doit target') : case $s in #( BSD) : am__include='.include' am__quote='"' ;; #( *) : am__include='include' am__quote='' ;; esac ;; #( *) : ;; esac if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 printf "%s\n" "${_am_result}" >&6; } # Check whether --enable-dependency-tracking was given. if test ${enable_dependency_tracking+y} 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 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. set dummy ${ac_tool_prefix}clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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}clang" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "clang", so it can be a program name with args. set dummy clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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="clang" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 fi test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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. printf "%s\n" "$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 -version; 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\"" printf "%s\n" "$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 printf "%s\n" "$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 (void) { ; 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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 printf %s "checking whether the C compiler works... " >&6; } ac_link_default=`printf "%s\n" "$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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? printf "%s\n" "$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+y} && 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 $as_nop ac_file='' fi if test -z "$ac_file" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 printf %s "checking for C compiler default output file name... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 printf %s "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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$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_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 printf "%s\n" "$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 (void) { 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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 printf %s "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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? printf "%s\n" "$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 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 printf "%s\n" "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? printf "%s\n" "$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_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_c_compiler_gnu if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes else $as_nop CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } if test $ac_test_CFLAGS; 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 ac_prog_cc_stdc=no if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c11_program _ACEOF for ac_arg in '' -std=gnu11 do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } CC="$CC $ac_cv_prog_cc_c11" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 ac_prog_cc_stdc=c11 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c99_program _ACEOF for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c99=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } CC="$CC $ac_cv_prog_cc_c99" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 ac_prog_cc_stdc=c99 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c89_program _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 conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } CC="$CC $ac_cv_prog_cc_c89" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 ac_prog_cc_stdc=c89 fi 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 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 printf %s "checking whether $CC understands -c and -o together... " >&6; } if test ${am_cv_prog_cc_c_o+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 printf "%s\n" "$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=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 depcc="$CC" am_compiler_list= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CC_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 printf %s "checking for a sed that does not truncate output... " >&6; } if test ${ac_cv_path_SED+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '' >> "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 printf "%s\n" "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 printf %s "checking for grep that handles long lines and -e... " >&6; } if test ${ac_cv_path_GREP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 printf "%s\n" "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 printf %s "checking for egrep... " >&6; } if test ${ac_cv_path_EGREP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 printf "%s\n" "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 printf %s "checking for fgrep... " >&6; } if test ${ac_cv_path_FGREP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 printf "%s\n" "$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+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else $as_nop with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 printf %s "checking for GNU ld... " >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 printf %s "checking for non-GNU ld... " >&6; } fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 else $as_nop 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 printf "%s\n" "$LD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if test ${lt_cv_path_NM+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DUMPBIN+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 printf "%s\n" "$DUMPBIN" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DUMPBIN+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 printf %s "checking the name lister ($NM) interface... " >&6; } if test ${lt_cv_nm_interface+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 printf "%s\n" "$lt_cv_nm_interface" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 printf %s "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 printf "%s\n" "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 printf %s "checking the maximum length of command line arguments... " >&6; } if test ${lt_cv_sys_max_cmd_len+y} then : printf %s "(cached) " >&6 else $as_nop 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* | midnightbsd* | 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 printf %s "checking how to convert $build file names to $host format... " >&6; } if test ${lt_cv_to_host_file_cmd+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 printf %s "checking how to convert $build file names to toolchain format... " >&6; } if test ${lt_cv_to_tool_file_cmd+y} then : printf %s "(cached) " >&6 else $as_nop #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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 printf %s "checking for $LD option to reload object files... " >&6; } if test ${lt_cv_ld_reload_flag+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_ld_reload_flag='-r' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 printf "%s\n" "$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}file", so it can be a program name with args. set dummy ${ac_tool_prefix}file; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_FILECMD+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$FILECMD"; then ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_FILECMD="${ac_tool_prefix}file" printf "%s\n" "$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 FILECMD=$ac_cv_prog_FILECMD if test -n "$FILECMD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 printf "%s\n" "$FILECMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_FILECMD"; then ac_ct_FILECMD=$FILECMD # Extract the first word of "file", so it can be a program name with args. set dummy file; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_FILECMD+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_FILECMD"; then ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_FILECMD="file" printf "%s\n" "$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_FILECMD=$ac_cv_prog_ac_ct_FILECMD if test -n "$ac_ct_FILECMD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 printf "%s\n" "$ac_ct_FILECMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_FILECMD" = x; then FILECMD=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac FILECMD=$ac_ct_FILECMD fi else FILECMD="$ac_cv_prog_FILECMD" 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OBJDUMP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 printf "%s\n" "$OBJDUMP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OBJDUMP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 printf %s "checking how to recognize dependent libraries... " >&6; } if test ${lt_cv_deplibs_check_method+y} then : printf %s "(cached) " >&6 else $as_nop 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='$FILECMD -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* | midnightbsd*) 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=$FILECMD 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=$FILECMD 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=$FILECMD 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DLLTOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 printf "%s\n" "$DLLTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DLLTOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 printf %s "checking how to associate runtime and link libraries... " >&6; } if test ${lt_cv_sharedlib_from_linklib_cmd+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 printf "%s\n" "$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 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 clang++ 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 printf "%s\n" "$CXX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 clang++ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 printf "%s\n" "$ac_ct_CXX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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. printf "%s\n" "$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\"" printf "%s\n" "$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 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 printf %s "checking whether the compiler supports GNU C++... " >&6; } if test ${ac_cv_cxx_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+y} ac_save_CXXFLAGS=$CXXFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 printf %s "checking whether $CXX accepts -g... " >&6; } if test ${ac_cv_prog_cxx_g+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes else $as_nop CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : else $as_nop ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } if test $ac_test_CXXFLAGS; 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_prog_cxx_stdcxx=no if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 printf %s "checking for $CXX option to enable C++11 features... " >&6; } if test ${ac_cv_prog_cxx_cxx11+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cxx_cxx11=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_cxx_conftest_cxx11_program _ACEOF for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA do CXX="$ac_save_CXX $ac_arg" if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_cxx11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx11" != "xno" && break done rm -f conftest.$ac_ext CXX=$ac_save_CXX fi if test "x$ac_cv_prog_cxx_cxx11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cxx_cxx11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } CXX="$CXX $ac_cv_prog_cxx_cxx11" fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 ac_prog_cxx_stdcxx=cxx11 fi fi if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 printf %s "checking for $CXX option to enable C++98 features... " >&6; } if test ${ac_cv_prog_cxx_cxx98+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cxx_cxx98=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_cxx_conftest_cxx98_program _ACEOF for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA do CXX="$ac_save_CXX $ac_arg" if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_cxx98=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx98" != "xno" && break done rm -f conftest.$ac_ext CXX=$ac_save_CXX fi if test "x$ac_cv_prog_cxx_cxx98" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cxx_cxx98" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } CXX="$CXX $ac_cv_prog_cxx_cxx98" fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 ac_prog_cxx_stdcxx=cxx98 fi 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 depcc="$CXX" am_compiler_list= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CXX_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 printf "%s\n" "$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 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 printf "%s\n" "$AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 printf "%s\n" "$ac_ct_AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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} # Use ARFLAGS variable as AR's operation code to sync the variable naming with # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have # higher priority because thats what people were doing historically (setting # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS # variable obsoleted/removed. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} lt_ar_flags=$AR_FLAGS # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override # by AR_FLAGS because that was never working and AR_FLAGS is about to die. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 printf %s "checking for archiver @FILE support... " >&6; } if test ${lt_cv_ar_at_file+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_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=$? printf "%s\n" "$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=$? printf "%s\n" "$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.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 printf "%s\n" "$STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 printf "%s\n" "$ac_ct_STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 printf "%s\n" "$RANLIB" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_RANLIB+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 printf "%s\n" "$ac_ct_RANLIB" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 printf %s "checking command to parse $NM output from $compiler object... " >&6; } if test ${lt_cv_sys_global_symbol_pipe+y} then : printf %s "(cached) " >&6 else $as_nop # 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++ or ICC, # 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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && 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=$? printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 printf "%s\n" "failed" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 printf %s "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test ${with_sysroot+y} then : withval=$with_sysroot; else $as_nop 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|'') ;; #( *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 printf "%s\n" "$with_sysroot" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 printf "%s\n" "${lt_sysroot:-no}" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 printf %s "checking for a working dd... " >&6; } if test ${ac_cv_path_lt_DD+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 printf %s "checking how to truncate binary pipes... " >&6; } if test ${lt_cv_truncate_bin+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 printf "%s\n" "$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+y} 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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `$FILECMD 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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test yes = "$lt_cv_prog_gnu_ld"; then case `$FILECMD conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `$FILECMD 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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then emul=elf case `$FILECMD conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `$FILECMD conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `$FILECMD 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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `$FILECMD conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `$FILECMD 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" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 printf %s "checking whether the C compiler needs -belf... " >&6; } if test ${lt_cv_cc_needs_belf+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_cc_needs_belf=yes else $as_nop lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 printf "%s\n" "$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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `$FILECMD 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 printf "%s\n" "$MANIFEST_TOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if test ${lt_cv_path_mainfest_tool+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DSYMUTIL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 printf "%s\n" "$DSYMUTIL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_NMEDIT+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 printf "%s\n" "$NMEDIT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_NMEDIT+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 printf "%s\n" "$ac_ct_NMEDIT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LIPO+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 printf "%s\n" "$LIPO" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_LIPO+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 printf "%s\n" "$ac_ct_LIPO" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 printf "%s\n" "$OTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 printf "%s\n" "$ac_ct_OTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL64+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 printf "%s\n" "$OTOOL64" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL64+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 printf "%s\n" "$ac_ct_OTOOL64" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 printf %s "checking for -single_module linker flag... " >&6; } if test ${lt_cv_apple_cc_single_mod+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 printf %s "checking for -exported_symbols_list linker flag... " >&6; } if test ${lt_cv_ld_exported_symbols_list+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_ld_exported_symbols_list=yes else $as_nop lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 printf %s "checking for -force_load linker flag... " >&6; } if test ${lt_cv_ld_force_load+y} then : printf %s "(cached) " >&6 else $as_nop 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 $AR_FLAGS libconftest.a conftest.o" >&5 $AR $AR_FLAGS 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 printf "%s\n" "$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*) case $MACOSX_DEPLOYMENT_TARGET,$host in 10.[012],*|,*powerpc*-darwin[5-8]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; *) _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 } ac_header= ac_cache= for ac_item in $ac_header_c_list do if test $ac_cache; then ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then printf "%s\n" "#define $ac_item 1" >> confdefs.h fi ac_header= ac_cache= elif test $ac_header; then ac_cache=$ac_item else ac_header=$ac_item fi done if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes then : printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h fi 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 : printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h fi 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=yes # Check whether --enable-static was given. if test ${enable_static+y} 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 $as_nop enable_static=no fi enable_win32_dll=no # Check whether --enable-shared was given. if test ${enable_shared+y} 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 $as_nop enable_shared=yes fi # Check whether --with-pic was given. if test ${with_pic+y} 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 $as_nop pic_mode=default fi # Check whether --enable-fast-install was given. if test ${enable_fast_install+y} 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 $as_nop enable_fast_install=yes fi shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[5-9]*,yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 printf %s "checking which variant of shared library versioning to provide... " >&6; } # Check whether --with-aix-soname was given. if test ${with_aix_soname+y} 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 $as_nop if test ${lt_cv_with_aix_soname+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_with_aix_soname=aix fi with_aix_soname=$lt_cv_with_aix_soname fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 printf %s "checking for objdir... " >&6; } if test ${lt_cv_objdir+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 printf "%s\n" "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 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 and # ICC, which need '.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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 printf %s "checking for ${ac_tool_prefix}file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 printf "%s\n" "$MAGIC_CMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 printf %s "checking for file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 printf "%s\n" "$MAGIC_CMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test ${lt_cv_prog_compiler_rtti_exceptions+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 printf "%s\n" "$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' ;; # flang / f18. f95 an alias for gfortran or flang on Debian flang* | f18* | f95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if test ${lt_cv_prog_compiler_pic_works+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 printf "%s\n" "$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\" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test ${lt_cv_prog_compiler_static_works+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } if test yes = "$lt_cv_prog_compiler_static_works"; then : else lt_prog_compiler_static= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 printf "%s\n" "$hard_links" >&6; } if test no = "$hard_links"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 printf %s "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++ and ICC port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++ or Intel C++ Compiler. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 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 file_list_spec='@' ;; 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*) hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 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 == "L") || (\$ 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 test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam \ 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 test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam \ 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++ or Intel C++ Compiler. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl* | icl*) # Native MSVC or ICC 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 and ICC 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* | midnightbsd*) 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) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 printf %s "checking if $CC understands -b... " >&6; } if test ${lt_cv_prog_compiler__b+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 printf "%s\n" "$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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if test ${lt_cv_irix_exported_symbol+y} then : printf %s "(cached) " >&6 else $as_nop 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 $as_nop lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 printf "%s\n" "$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' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' ;; 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 file_list_spec='@' ;; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 printf "%s\n" "$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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc+y} then : printf %s "(cached) " >&6 else $as_nop $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=$? printf "%s\n" "$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=$? printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 printf %s "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* | *,icl*) # Native MSVC or ICC 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 and ICC 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* | midnightbsd*) # 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 test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; 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.beam \ 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes else $as_nop ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$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_nop 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_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 printf %s "checking for shl_load in -ldld... " >&6; } if test ${ac_cv_lib_dld_shl_load+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ char shl_load (); int main (void) { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_shl_load=yes else $as_nop ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 printf "%s\n" "$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 $as_nop 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_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes else $as_nop ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$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_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 printf %s "checking for dlopen in -lsvld... " >&6; } if test ${ac_cv_lib_svld_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_svld_dlopen=yes else $as_nop ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 printf "%s\n" "$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_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 printf %s "checking for dld_link in -ldld... " >&6; } if test ${ac_cv_lib_dld_dld_link+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ char dld_link (); int main (void) { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_dld_link=yes else $as_nop ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 printf "%s\n" "$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" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 printf %s "checking whether a program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self+y} then : printf %s "(cached) " >&6 else $as_nop 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=$? printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 printf "%s\n" "$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\" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self_static+y} then : printf %s "(cached) " >&6 else $as_nop 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=$? printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 printf "%s\n" "$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= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 printf %s "checking whether stripping libraries is possible... " >&6; } if test -z "$STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } else if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then old_striplib="$STRIP --strip-debug" striplib="$STRIP --strip-unneeded" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else case $host_os in darwin*) # FIXME - insert some real tests, host_os isn't really good enough striplib="$STRIP -x" old_striplib="$STRIP -S" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } ;; freebsd*) if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then old_striplib="$STRIP --strip-debug" striplib="$STRIP --strip-unneeded" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } ;; esac fi fi # Report what library types will actually be built { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 printf %s "checking if libtool supports shared libraries... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 printf "%s\n" "$can_build_shared" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 printf "%s\n" "$enable_shared" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 printf %s "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 printf "%s\n" "$enable_static" >&6; } 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 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 printf %s "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if test ${ac_cv_prog_CXXCPP+y} then : printf %s "(cached) " >&6 else $as_nop # Double quotes because $CXX needs to be expanded for CXXCPP in "$CXX -E" cpp /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. # 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. */ #include Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : else $as_nop # 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 $as_nop # 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 printf "%s\n" "$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. # 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. */ #include Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : else $as_nop # 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 $as_nop # 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_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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=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 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+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else $as_nop with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 printf %s "checking for GNU ld... " >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 printf %s "checking for non-GNU ld... " >&6; } fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 else $as_nop 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 printf "%s\n" "$LD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 printf %s "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 test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam \ 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 test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam \ 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* | ,icl* | no,icl*) # Native MSVC or ICC # 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 file_list_spec_CXX='@' ;; 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* | midnightbsd*) # 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 printf "%s\n" "$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=$? printf "%s\n" "$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* | midnightbsd*) # 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic_CXX+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } if test ${lt_cv_prog_compiler_pic_works_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 printf "%s\n" "$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\" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test ${lt_cv_prog_compiler_static_works_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 printf "%s\n" "$hard_links" >&6; } if test no = "$hard_links"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 printf %s "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 == "L") || (\$ 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* | icl*) 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 printf "%s\n" "$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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc_CXX+y} then : printf %s "(cached) " >&6 else $as_nop $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=$? printf "%s\n" "$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=$? printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX ;; esac fi ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 printf %s "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* | *,icl*) # Native MSVC or ICC 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 and ICC 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* | midnightbsd*) # 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 test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; 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.beam \ 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 printf "%s\n" "$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=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 ac_config_commands="$ac_config_commands libtool" # Only expand once: ac_config_headers="$ac_config_headers config.h include/GyotoConfig.h" # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html # C: current; R: revision; A: age # Linux library name is: libgyoto.so.(C-A).A.R VERSINFO_C=9 VERSINFO_R=1 VERSINFO_A=0 VERSINFO=${VERSINFO_C}:${VERSINFO_R}:${VERSINFO_A} ## Needed for gcc-5, should be harmless for other compilers: # for flag in -P; do as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 printf %s "checking whether C++ compiler accepts $flag... " >&6; } if eval test \${$as_CACHEVAR+y} then : printf %s "(cached) " >&6 else $as_nop ax_check_save_flags=$CXXFLAGS CXXFLAGS="$CXXFLAGS $flag" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : eval "$as_CACHEVAR=yes" else $as_nop eval "$as_CACHEVAR=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS=$ax_check_save_flags fi eval ac_res=\$$as_CACHEVAR { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if test x"`eval 'as_val=${'$as_CACHEVAR'};printf "%s\n" "$as_val"'`" = xyes then : if test ${CPPFLAGS+y} then : case " $CPPFLAGS " in #( *" $flag "*) : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains \$flag"; } >&5 (: CPPFLAGS already contains $flag) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; #( *) : as_fn_append CPPFLAGS " $flag" { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5 (: CPPFLAGS="$CPPFLAGS") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; esac else $as_nop CPPFLAGS=$flag { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5 (: CPPFLAGS="$CPPFLAGS") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } fi else $as_nop : fi done ## Ensure local build does not have a release soname by default # FEATURES="" # Check whether --enable-release was given. if test ${enable_release+y} then : enableval=$enable_release; fi if test "x$enable_release" != "xyes" then : FEATURES+="-unreleased" fi ## An additional directory to look for plug-ins # Default /usr/local/lib/gyoto, only if ${prefix} is not /usr/local # Check whether --enable-localpkglibdir was given. if test ${enable_localpkglibdir+y} then : enableval=$enable_localpkglibdir; else $as_nop if test x${prefix} == xNONE || test "x${prefix}" == x/usr/local then : enable_localpkglibdir=no else $as_nop enable_localpkglibdir=yes fi fi if test x$enable_localpkglibdir != "xno" then : if test x$enable_localpkglibdir == "xyes" then : localpkglibdir="/usr/local/lib/"${PACKAGE} else $as_nop localpkglibdir=$enable_localpkglibdir fi else $as_nop localpkglibdir="" fi if test "x$localpkglibdir" != "x"; then HAVE_LOCALPKGLIBDIR_TRUE= HAVE_LOCALPKGLIBDIR_FALSE='#' else HAVE_LOCALPKGLIBDIR_TRUE='#' HAVE_LOCALPKGLIBDIR_FALSE= fi ## SIGFPE delivery # # Check whether --with-fenv was given. if test ${with_fenv+y} then : withval=$with_fenv; else $as_nop with_fenv=auto fi if test "x$with_fenv" != xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fenv.h" >&5 printf %s "checking for fenv.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { feenableexcept(FE_DIVBYZERO); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO" then : printf "%s\n" "#define HAVE_FENV_H 1" >>confdefs.h HAVE_FENV_H=1 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi if test "x$with_fenv" = xyes && test "x$HAVE_FENV_H" != x1 then : as_fn_error $? "fenv.h required but not usable\"" "$LINENO" 5 fi ## IS SIZE_T EQUIVALENT TO UNSIGNED LONG? # { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether size_t is the same as unsigned long" >&5 printf %s "checking whether size_t is the same as unsigned long... " >&6; } # Check whether --with-size_t was given. if test ${with_size_t+y} then : withval=$with_size_t; if test "x$with_size__t" != xsame && test "x$with_size__t" != xdistinct && test "x$with_size__t" != xauto then : as_fn_error $? "with-size_t should be one of same, distinct or auto" "$LINENO" 5 fi else $as_nop with_size__t=auto fi if test "x$with_size__t" = xauto then : if test "$cross_compiling" = yes then : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include typedef void (* set_size_t_t) (size_t val); typedef void (* set_unsigned_long_t) (unsigned long); size_t size_t_value; void set_size_t (size_t v) {size_t_value = v;} int main(int, char**) { set_unsigned_long_t ulsetter = &set_size_t; (*ulsetter)(25); if (size_t_value != 25) return 1; return 0; } _ACEOF if ac_fn_cxx_try_run "$LINENO" then : with_size__t="same" else $as_nop with_size__t="distinct" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi if test "x$with_size__t" = xsame then : printf "%s\n" "#define GYOTO_SIZE__T_IS_UNSIGNED_LONG 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_size__t" >&5 printf "%s\n" "$with_size__t" >&6; } # PYTHON STUFF # Check whether --with-python was given. if test ${with_python+y} then : withval=$with_python; case $with_python in yes | no) ;; *) PYTHON=`which $with_python` || as_fn_error $? "$with_python: command not found" "$LINENO" 5 with_python=yes esac fi for ac_prog in python3 python \ python3 \ \ python4.0 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PYTHON+y} then : printf %s "(cached) " >&6 else $as_nop case $PYTHON in [\\/]* | ?:[\\/]*) ac_cv_path_PYTHON="$PYTHON" # 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_PYTHON="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$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 PYTHON=$ac_cv_path_PYTHON if test -n "$PYTHON"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 printf "%s\n" "$PYTHON" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$PYTHON" && break done # Extract the first word of "`basename $PYTHON`-config", so it can be a program name with args. set dummy `basename $PYTHON`-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PYTHON_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $PYTHON_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PYTHON_CONFIG="$PYTHON_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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_PYTHON_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$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 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG if test -n "$PYTHON_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5 printf "%s\n" "$PYTHON_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x" = "xyes" && $PYTHON_CONFIG --embed then : PYTHON_EMBED_FLAG="--embed" else $as_nop PYTHON_EMBED_FLAG="" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 printf %s "checking for Python includes... " >&6; } if test ${pc_cv_python_includes+y} then : printf %s "(cached) " >&6 else $as_nop if test -x "$PYTHON_CONFIG"; then pc_cv_python_includes=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --includes 2>&5` else pc_cv_python_includes="-I$includedir/$_PYTHON_BASENAME" fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_includes" >&5 printf "%s\n" "$pc_cv_python_includes" >&6; } PYTHON_INCLUDES=$pc_cv_python_includes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python prefix" >&5 printf %s "checking for Python prefix... " >&6; } if test ${pc_cv_python_prefix+y} then : printf %s "(cached) " >&6 else $as_nop if test -x "$PYTHON_CONFIG"; then pc_cv_python_prefix=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --prefix 2>&5` else ac_ext=py ac_compile='chmod +x conftest.$ac_ext >&5' ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5' cat > conftest.$ac_ext <<_ACEOF #!$PYTHON import sys if __name__ == '__main__': sys.stdout.write(sys.prefix) _ACEOF if ac_fn_py_try_link "$LINENO" then : pc_cv_python_prefix=`./conftest`; if test $? != 0; then { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "could not determine Python prefix See \`config.log' for more details" "$LINENO" 5; } fi else $as_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to run Python program See \`config.log' for more details" "$LINENO" 5; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext 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 fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_prefix" >&5 printf "%s\n" "$pc_cv_python_prefix" >&6; } PYTHON_PREFIX=$pc_cv_python_prefix { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python exec-prefix" >&5 printf %s "checking for Python exec-prefix... " >&6; } if test ${pc_cv_python_exec_prefix+y} then : printf %s "(cached) " >&6 else $as_nop if test -x "$PYTHON_CONFIG"; then pc_cv_python_exec_prefix=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --exec-prefix 2>&5` else ac_ext=py ac_compile='chmod +x conftest.$ac_ext >&5' ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5' cat > conftest.$ac_ext <<_ACEOF #!$PYTHON import sys if __name__ == '__main__': sys.stdout.write(sys.exec_prefix) _ACEOF if ac_fn_py_try_link "$LINENO" then : pc_cv_python_exec_prefix=`./conftest`; if test $? != 0; then { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "could not determine Python exec_prefix See \`config.log' for more details" "$LINENO" 5; } fi else $as_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to run Python program See \`config.log' for more details" "$LINENO" 5; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext 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 fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_exec_prefix" >&5 printf "%s\n" "$pc_cv_python_exec_prefix" >&6; } PYTHON_EXEC_PREFIX=$pc_cv_python_exec_prefix pc_cflags_store=$CPPFLAGS CPPFLAGS="$CFLAGS $PYTHON_INCLUDES" ac_fn_cxx_check_header_compile "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" if test "x$ac_cv_header_Python_h" = xyes then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 printf %s "checking for Python includes... " >&6; } if test ${pc_cv_python_includes+y} then : printf %s "(cached) " >&6 else $as_nop if test -x "$PYTHON_CONFIG"; then pc_cv_python_includes=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --includes 2>&5` else pc_cv_python_includes="-I$includedir/$_PYTHON_BASENAME" fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_includes" >&5 printf "%s\n" "$pc_cv_python_includes" >&6; } PYTHON_INCLUDES=$pc_cv_python_includes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python CFLAGS" >&5 printf %s "checking for Python CFLAGS... " >&6; } if test ${pc_cv_python_cflags+y} then : printf %s "(cached) " >&6 else $as_nop if test -x "$PYTHON_CONFIG"; then pc_cv_python_cflags=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --cflags 2>&5` else pc_cv_python_cflags= fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_cflags" >&5 printf "%s\n" "$pc_cv_python_cflags" >&6; } PYTHON_CFLAGS=$pc_cv_python_cflags { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python LDFLAGS" >&5 printf %s "checking for Python LDFLAGS... " >&6; } if test ${pc_cv_python_ldflags+y} then : printf %s "(cached) " >&6 else $as_nop if test -x "$PYTHON_CONFIG"; then pc_cv_python_ldflags=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --ldflags 2>&5` else pc_cv_python_ldflags= fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_ldflags" >&5 printf "%s\n" "$pc_cv_python_ldflags" >&6; } PYTHON_LDFLAGS=$pc_cv_python_ldflags { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python libs" >&5 printf %s "checking for Python libs... " >&6; } if test ${pc_cv_python_libs+y} then : printf %s "(cached) " >&6 else $as_nop if test -x "$PYTHON_CONFIG"; then pc_cv_python_libs=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --libs 2>&5` else pc_cv_python_libs="-l$_PYTHON_BASENAME" fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_libs" >&5 printf "%s\n" "$pc_cv_python_libs" >&6; } PYTHON_LIBS=$pc_cv_python_libs { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python site-packages directory" >&5 printf %s "checking for Python site-packages directory... " >&6; } if test ${pc_cv_python_site_dir+y} then : printf %s "(cached) " >&6 else $as_nop ac_ext=py ac_compile='chmod +x conftest.$ac_ext >&5' ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5' if test "x$prefix" = xNONE then pc_py_prefix=$ac_default_prefix else pc_py_prefix=$prefix fi cat > conftest.$ac_ext <<_ACEOF #!$PYTHON import sys from platform import python_implementation # sysconfig in CPython 2.7 doesn't work in virtualenv # try: import sysconfig except: can_use_sysconfig = False else: can_use_sysconfig = True if can_use_sysconfig: if python_implementation() == "CPython" and sys.version[:3] == '2.7': can_use_sysconfig = False if not can_use_sysconfig: from distutils import sysconfig sitedir = sysconfig.get_python_lib(False, False, prefix='$pc_py_prefix') else: sitedir = sysconfig.get_path('purelib', vars={'base':'$pc_py_prefix'}) if __name__ == '__main__': sys.stdout.write(sitedir) _ACEOF if ac_fn_py_try_link "$LINENO" then : pc_cv_python_site_dir=`./conftest` else $as_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to run Python program See \`config.log' for more details" "$LINENO" 5; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext 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 case $pc_cv_python_site_dir in $pc_py_prefix*) pc__strip_prefix=`echo "$pc_py_prefix" | sed 's|.|.|g'` pc_cv_python_site_dir=`echo "$pc_cv_python_site_dir" | sed "s,^$pc__strip_prefix/,,"` ;; *) case $pc_py_prefix in /usr|/System*) ;; *) pc_cv_python_site_dir=lib/python$PYTHON_VERSION/site-packages ;; esac ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_site_dir" >&5 printf "%s\n" "$pc_cv_python_site_dir" >&6; } pythondir=\${prefix}/$pc_cv_python_site_dir pkgpythondir=\${pythondir}/$PACKAGE_NAME { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python extension module directory" >&5 printf %s "checking for Python extension module directory... " >&6; } if test ${pc_cv_python_exec_dir+y} then : printf %s "(cached) " >&6 else $as_nop ac_ext=py ac_compile='chmod +x conftest.$ac_ext >&5' ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5' if test "x$pc_cv_python_exec_prefix" = xNONE then pc_py_exec_prefix=$pc_cv_python_prefix else pc_py_exec_prefix=$pc_cv_python_exec_prefix fi cat > conftest.$ac_ext <<_ACEOF #!$PYTHON import sys from platform import python_implementation # sysconfig in CPython 2.7 doesn't work in virtualenv # try: import sysconfig except: can_use_sysconfig = False else: can_use_sysconfig = True if can_use_sysconfig: if python_implementation() == "CPython" and sys.version[:3] == '2.7': can_use_sysconfig = False if not can_use_sysconfig: from distutils import sysconfig sitedir = sysconfig.get_python_lib(False, False, prefix='$pc_py__exec_prefix') else: sitedir = sysconfig.get_path('purelib', vars={'platbase':'$pc_py_exec_prefix'}) if __name__ == '__main__': sys.stdout.write(sitedir) _ACEOF if ac_fn_py_try_link "$LINENO" then : pc_cv_python_exec_dir=`./conftest` else $as_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to run Python program See \`config.log' for more details" "$LINENO" 5; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext 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 case $pc_cv_python_exec_dir in $pc_py_exec_prefix*) pc__strip_prefix=`echo "$pc_py_exec_prefix" | sed 's|.|.|g'` pc_cv_python_exec_dir=`echo "$pc_cv_python_exec_dir" | sed "s,^$pc__strip_prefix/,,"` ;; *) case $pc_py_exec_prefix in /usr|/System*) ;; *) pc_cv_python_exec_dir=lib/python$PYTHON_VERSION/site-packages ;; esac ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_exec_dir" >&5 printf "%s\n" "$pc_cv_python_exec_dir" >&6; } pyexecdir=\${exec_prefix}/$pc_cv_python_pyexecdir { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python extension suffix" >&5 printf %s "checking for Python extension suffix... " >&6; } if test ${pc_cv_python_extension_suffix+y} then : printf %s "(cached) " >&6 else $as_nop if test -x "$PYTHON_CONFIG"; then pc_cv_python_extension_suffix=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --extension-suffix 2>&5` else pc_cv_python_extension_suffix= fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_extension_suffix" >&5 printf "%s\n" "$pc_cv_python_extension_suffix" >&6; } PYTHON_EXTENSION_SUFFIX=$pc_cv_python_extension_suffix { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python extension module directory" >&5 printf %s "checking for Python extension module directory... " >&6; } if test ${pc_cv_python_exec_dir+y} then : printf %s "(cached) " >&6 else $as_nop ac_ext=py ac_compile='chmod +x conftest.$ac_ext >&5' ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5' if test "x$pc_cv_python_exec_prefix" = xNONE then pc_py_exec_prefix=$pc_cv_python_prefix else pc_py_exec_prefix=$pc_cv_python_exec_prefix fi cat > conftest.$ac_ext <<_ACEOF #!$PYTHON import sys from platform import python_implementation # sysconfig in CPython 2.7 doesn't work in virtualenv # try: import sysconfig except: can_use_sysconfig = False else: can_use_sysconfig = True if can_use_sysconfig: if python_implementation() == "CPython" and sys.version[:3] == '2.7': can_use_sysconfig = False if not can_use_sysconfig: from distutils import sysconfig sitedir = sysconfig.get_python_lib(False, False, prefix='$pc_py__exec_prefix') else: sitedir = sysconfig.get_path('purelib', vars={'platbase':'$pc_py_exec_prefix'}) if __name__ == '__main__': sys.stdout.write(sitedir) _ACEOF if ac_fn_py_try_link "$LINENO" then : pc_cv_python_exec_dir=`./conftest` else $as_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to run Python program See \`config.log' for more details" "$LINENO" 5; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext 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 case $pc_cv_python_exec_dir in $pc_py_exec_prefix*) pc__strip_prefix=`echo "$pc_py_exec_prefix" | sed 's|.|.|g'` pc_cv_python_exec_dir=`echo "$pc_cv_python_exec_dir" | sed "s,^$pc__strip_prefix/,,"` ;; *) case $pc_py_exec_prefix in /usr|/System*) ;; *) pc_cv_python_exec_dir=lib/python$PYTHON_VERSION/site-packages ;; esac ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_exec_dir" >&5 printf "%s\n" "$pc_cv_python_exec_dir" >&6; } pyexecdir=\${exec_prefix}/$pc_cv_python_pyexecdir else $as_nop PYTHON="" fi CPPFLAGS=$pc_cflags_store if test "x$with_python" = xno then : PYTHON="" fi if test "x$with_python" = xyes && test "x$PYTHON" = x then : as_fn_error $? "Python requested but no supported version found (>=3.0, <4.0)" "$LINENO" 5 fi # Check whether --with-virtualenv was given. if test ${with_virtualenv+y} then : withval=$with_virtualenv; else $as_nop with_virtualenv=no fi if test "x$with_virtualenv" != xno then : for ac_prog in virtualenv virtualenv3 virtualenv2 do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_VIRTUALENV+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$VIRTUALENV"; then ac_cv_prog_VIRTUALENV="$VIRTUALENV" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_VIRTUALENV="$ac_prog" printf "%s\n" "$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 VIRTUALENV=$ac_cv_prog_VIRTUALENV if test -n "$VIRTUALENV"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VIRTUALENV" >&5 printf "%s\n" "$VIRTUALENV" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$VIRTUALENV" && break done test -n "$VIRTUALENV" || VIRTUALENV="no" if test "x$VIRTUALENV" = xno then : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "--with-virtualenv given but virtualenv could not be found See \`config.log' for more details" "$LINENO" 5; } fi else $as_nop VIRTUALENV=no fi # Ubuntu has swig 2.0 as /usr/bin/swig2.0 # Debian has swig 3.0 as /usr/bin/swig3.0 for ac_prog in swig swig4.0 swig3.0 swig2.0 do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_SWIG+y} then : printf %s "(cached) " >&6 else $as_nop case $SWIG in [\\/]* | ?:[\\/]*) ac_cv_path_SWIG="$SWIG" # 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_SWIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$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 SWIG=$ac_cv_path_SWIG if test -n "$SWIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 printf "%s\n" "$SWIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$SWIG" && break done if test -z "$SWIG" ; then : elif test -n "2.0" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 printf %s "checking SWIG version... " >&6; } swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 printf "%s\n" "$swig_version" >&6; } if test -n "$swig_version" ; then # Calculate the required version number components required=2.0 required_major=`echo $required | sed 's/[^0-9].*//'` if test -z "$required_major" ; then required_major=0 fi required=`echo $required | sed 's/[0-9]*[^0-9]//'` required_minor=`echo $required | sed 's/[^0-9].*//'` if test -z "$required_minor" ; then required_minor=0 fi required=`echo $required | sed 's/[0-9]*[^0-9]//'` required_patch=`echo $required | sed 's/[^0-9].*//'` if test -z "$required_patch" ; then required_patch=0 fi # Calculate the available version number components available=$swig_version available_major=`echo $available | sed 's/[^0-9].*//'` if test -z "$available_major" ; then available_major=0 fi available=`echo $available | sed 's/[0-9]*[^0-9]//'` available_minor=`echo $available | sed 's/[^0-9].*//'` if test -z "$available_minor" ; then available_minor=0 fi available=`echo $available | sed 's/[0-9]*[^0-9]//'` available_patch=`echo $available | sed 's/[^0-9].*//'` if test -z "$available_patch" ; then available_patch=0 fi # Convert the version tuple into a single number for easier comparison. # Using base 100 should be safe since SWIG internally uses BCD values # to encode its version number. required_swig_vernum=`expr $required_major \* 10000 \ \+ $required_minor \* 100 \+ $required_patch` available_swig_vernum=`expr $available_major \* 10000 \ \+ $available_minor \* 100 \+ $available_patch` if test $available_swig_vernum -lt $required_swig_vernum; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0 is required. You have $swig_version." >&5 printf "%s\n" "$as_me: WARNING: SWIG version >= 2.0 is required. You have $swig_version." >&2;} SWIG='' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 printf %s "checking for SWIG library... " >&6; } SWIG_LIB=`$SWIG -swiglib` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 printf "%s\n" "$SWIG_LIB" >&6; } fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;} SWIG='' fi fi # DONE WITH PYTHON STUFF # Checks for programs. ############### CHECK FOR OPTIONAL FEATURES ######################### ## ADVANCED INTEGRATORS # Check for C++11 # Check whether --enable-c++11 was given. if test ${enable_c__11+y} then : enableval=$enable_c__11; fi if test "x$enable_c__11" != "xno" then : ax_cxx_compile_cxx11_required=false 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 ac_success=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 printf %s "checking whether $CXX supports C++11 features by default... " >&6; } if test ${ax_cv_cxx_compile_cxx11+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template struct check { static_assert(sizeof(int) <= sizeof(T), "not big enough"); }; struct Base { virtual void f() {} }; struct Child : public Base { virtual void f() override {} }; typedef check> right_angle_brackets; int a; decltype(a) b; typedef check check_type; check_type c; check_type&& cr = static_cast(c); auto d = a; auto l = [](){}; _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ax_cv_cxx_compile_cxx11=yes else $as_nop ax_cv_cxx_compile_cxx11=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; } if test x$ax_cv_cxx_compile_cxx11 = xyes; then ac_success=yes fi if test x$ac_success = xno; then for switch in -std=gnu++11 -std=gnu++0x; do cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; } if eval test \${$cachevar+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template struct check { static_assert(sizeof(int) <= sizeof(T), "not big enough"); }; struct Base { virtual void f() {} }; struct Child : public Base { virtual void f() override {} }; typedef check> right_angle_brackets; int a; decltype(a) b; typedef check check_type; check_type c; check_type&& cr = static_cast(c); auto d = a; auto l = [](){}; _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : eval $cachevar=yes else $as_nop eval $cachevar=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS="$ac_save_CXXFLAGS" fi eval ac_res=\$$cachevar { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if eval test x\$$cachevar = xyes; then CXXFLAGS="$CXXFLAGS $switch" ac_success=yes break fi done fi if test x$ac_success = xno; then for switch in -std=c++11 -std=c++0x; do cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; } if eval test \${$cachevar+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ template struct check { static_assert(sizeof(int) <= sizeof(T), "not big enough"); }; struct Base { virtual void f() {} }; struct Child : public Base { virtual void f() override {} }; typedef check> right_angle_brackets; int a; decltype(a) b; typedef check check_type; check_type c; check_type&& cr = static_cast(c); auto d = a; auto l = [](){}; _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : eval $cachevar=yes else $as_nop eval $cachevar=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS="$ac_save_CXXFLAGS" fi eval ac_res=\$$cachevar { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if eval test x\$$cachevar = xyes; then CXXFLAGS="$CXXFLAGS $switch" ac_success=yes break fi done 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 if test x$ax_cxx_compile_cxx11_required = xtrue; then if test x$ac_success = xno; then as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 fi else if test x$ac_success = xno; then HAVE_CXX11=0 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;} else HAVE_CXX11=1 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h fi fi fi if test "x$HAVE_CXX11" != "x1" && test "x$enable_c__11" = "xyes" then : as_fn_error $? "C++11 requested but not found" "$LINENO" 5 fi # Check whether --with-mpi was given. if test ${with_mpi+y} then : withval=$with_mpi; else $as_nop with_mpi=auto fi # Check for boost have_boost=no if test "x$with_boost" != "xno" then : have_boost=yes echo "$as_me: this is boost.m4 serial 22" >&5 boost_save_IFS=$IFS boost_version_req=1.53.1 IFS=. set x $boost_version_req 0 0 0 IFS=$boost_save_IFS shift boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"` boost_version_req_string=$1.$2.$3 # Check whether --with-boost was given. if test ${with_boost+y} then : withval=$with_boost; fi # If BOOST_ROOT is set and the user has not provided a value to # --with-boost, then treat BOOST_ROOT as if it the user supplied it. if test x"$BOOST_ROOT" != x; then if test x"$with_boost" = x; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5 printf "%s\n" "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;} with_boost=$BOOST_ROOT else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5 printf "%s\n" "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;} fi fi DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'" boost_save_CPPFLAGS=$CPPFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5 printf %s "checking for Boost headers version >= $boost_version_req_string... " >&6; } if test ${boost_cv_inc_path+y} then : printf %s "(cached) " >&6 else $as_nop boost_cv_inc_path=no 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if !defined BOOST_VERSION # error BOOST_VERSION is not defined #elif BOOST_VERSION < $boost_version_req # error Boost headers version < $boost_version_req #endif int main (void) { ; return 0; } _ACEOF # If the user provided a value to --with-boost, use it and only it. case $with_boost in #( ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \ /usr/include C:/Boost/include;; #( *) set x "$with_boost/include" "$with_boost";; esac shift for boost_dir do # Without --layout=system, Boost (or at least some versions) installs # itself in /include/boost-. This inner loop helps to # find headers in such directories. # # Any ${boost_dir}/boost-x_xx directories are searched in reverse version # order followed by ${boost_dir}. The final '.' is a sentinel for # searching $boost_dir" itself. Entries are whitespace separated. # # I didn't indent this loop on purpose (to avoid over-indented code) boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \ && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \ && echo .` for boost_inc in $boost_layout_system_search_list do if test x"$boost_inc" != x.; then boost_inc="$boost_dir/$boost_inc" else boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list fi if test x"$boost_inc" != x; then # We are going to check whether the version of Boost installed # in $boost_inc is usable by running a compilation that # #includes it. But if we pass a -I/some/path in which Boost # is not installed, the compiler will just skip this -I and # use other locations (either from CPPFLAGS, or from its list # of system include directories). As a result we would use # header installed on the machine instead of the /some/path # specified by the user. So in that precise case (trying # $boost_inc), make sure the version.hpp exists. # # Use test -e as there can be symlinks. test -e "$boost_inc/boost/version.hpp" || continue CPPFLAGS="$CPPFLAGS -I$boost_inc" fi if ac_fn_cxx_try_compile "$LINENO" then : boost_cv_inc_path=yes else $as_nop boost_cv_version=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam if test x"$boost_cv_inc_path" = xyes; then if test x"$boost_inc" != x; then boost_cv_inc_path=$boost_inc fi break 2 fi done done 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 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5 printf "%s\n" "$boost_cv_inc_path" >&6; } case $boost_cv_inc_path in #( no) boost_errmsg="cannot find Boost headers version >= $boost_version_req_string" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5 printf "%s\n" "$as_me: $boost_errmsg" >&6;} have_boost=no ;;#( yes) BOOST_CPPFLAGS= ;;#( *) BOOST_CPPFLAGS="-I$boost_cv_inc_path" ;; esac if test x"$boost_cv_inc_path" != xno; then printf "%s\n" "#define HAVE_BOOST 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5 printf %s "checking for Boost's header version... " >&6; } if test ${boost_cv_lib_version+y} then : printf %s "(cached) " >&6 else $as_nop 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include boost-lib-version = BOOST_LIB_VERSION _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | tr -d '\r' | $SED -n -e "/^boost-lib-version = /{s///;s/\"//g;p;q;}" >conftest.i 2>&1 then : boost_cv_lib_version=`cat conftest.i` fi rm -rf conftest* 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 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5 printf "%s\n" "$boost_cv_lib_version" >&6; } # e.g. "134" for 1_34_1 or "135" for 1_35 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'` case $boost_major_version in #( '' | *[!0-9]*) as_fn_error $? "invalid value: boost_major_version=$boost_major_version" "$LINENO" 5 ;; esac fi CPPFLAGS=$boost_save_CPPFLAGS if test "x$have_boost" == "xyes" then : if test x"$boost_cv_inc_path" = xno; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Boost.multiprecision not found" >&5 printf "%s\n" "$as_me: WARNING: Boost.multiprecision not found" >&2;} have_boost=partial else 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 boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" ac_fn_cxx_check_header_compile "$LINENO" "boost/multiprecision/cpp_dec_float.hpp" "ac_cv_header_boost_multiprecision_cpp_dec_float_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_multiprecision_cpp_dec_float_hpp" = xyes then : printf "%s\n" "#define HAVE_BOOST_MULTIPRECISION_CPP_DEC_FLOAT_HPP 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Boost.multiprecision not found" >&5 printf "%s\n" "$as_me: WARNING: Boost.multiprecision not found" >&2;} have_boost=partial fi CPPFLAGS=$boost_save_CPPFLAGS 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 fi if test x"$boost_cv_inc_path" = xno; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: boost/array.hpp not found" >&5 printf "%s\n" "$as_me: WARNING: boost/array.hpp not found" >&2;} have_boost=partial else 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 boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" ac_fn_cxx_check_header_compile "$LINENO" "boost/array.hpp" "ac_cv_header_boost_array_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_array_hpp" = xyes then : printf "%s\n" "#define HAVE_BOOST_ARRAY_HPP 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: boost/array.hpp not found" >&5 printf "%s\n" "$as_me: WARNING: boost/array.hpp not found" >&2;} have_boost=partial fi CPPFLAGS=$boost_save_CPPFLAGS 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 fi if test x"$boost_cv_inc_path" = xno; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Boost.odeint not found" >&5 printf "%s\n" "$as_me: WARNING: Boost.odeint not found" >&2;} have_boost=partial else 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 boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" ac_fn_cxx_check_header_compile "$LINENO" "boost/numeric/odeint/stepper/controlled_step_result.hpp" "ac_cv_header_boost_numeric_odeint_stepper_controlled_step_result_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_numeric_odeint_stepper_controlled_step_result_hpp" = xyes then : printf "%s\n" "#define HAVE_BOOST_NUMERIC_ODEINT_STEPPER_CONTROLLED_STEP_RESULT_HPP 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Boost.odeint not found" >&5 printf "%s\n" "$as_me: WARNING: Boost.odeint not found" >&2;} have_boost=partial fi CPPFLAGS=$boost_save_CPPFLAGS 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 fi fi else $as_nop have_boost=no fi if test "x$HAVE_CXX11" == "x1" && test "x$ac_cv_header_boost_numeric_odeint_stepper_controlled_step_result_hpp" == xyes then : printf "%s\n" "#define GYOTO_HAVE_BOOST_INTEGRATORS 1" >>confdefs.h fi if test "x$have_boost" != "xyes" then : FEATURES+="-noboost" fi # If --with-mpi=auto is used, try to find MPI, but use standard C compiler if it is not found. # If --with-mpi=yes is used, try to find MPI and fail if it isn't found. # If --with-mpi=no is used, use a standard C compiler instead. have_mpi=no for ac_prog in mpic++ mpicxx do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MPICXX+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$MPICXX"; then ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_MPICXX="$ac_prog" printf "%s\n" "$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 MPICXX=$ac_cv_prog_MPICXX if test -n "$MPICXX"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5 printf "%s\n" "$MPICXX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$MPICXX" && break done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5 printf %s "checking for the toolset name used by Boost for $CXX... " >&6; } if test ${boost_cv_lib_tag+y} then : printf %s "(cached) " >&6 else $as_nop boost_cv_lib_tag=unknown if test x$boost_cv_inc_path != 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 # The following tests are mostly inspired by boost/config/auto_link.hpp # The list is sorted to most recent/common to oldest compiler (in order # to increase the likelihood of finding the right compiler with the # least number of compilation attempt). # Beware that some tests are sensible to the order (for instance, we must # look for MinGW before looking for GCC3). # I used one compilation test per compiler with a #error to recognize # each compiler so that it works even when cross-compiling (let me know # if you know a better approach). # Known missing tags (known from Boost's tools/build/v2/tools/common.jam): # como, edg, kcc, bck, mp, sw, tru, xlc # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines # the same defines as GCC's). for i in \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \ (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \ (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \ (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \ (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \ (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \ (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \ (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \ (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \ (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \ "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \ "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \ && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \ "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \ "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \ "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \ "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \ "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \ "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \ "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \ "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \ "defined __BORLANDC__ @ bcb" \ "defined __ICC && (defined __unix || defined ) @ il" \ "defined __ICL @ iw" \ "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \ "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \ "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \ "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \ "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \ "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8" do boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '` boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'` cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if $boost_tag_test /* OK */ #else # error $boost_tag_test #endif int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : boost_cv_lib_tag=$boost_tag; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done 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 case $boost_cv_lib_tag in #( # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed # to "gcc41" for instance. *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there. gcc*) boost_tag_x= case $host_os in #( darwin*) if test $boost_major_version -ge 136; then # The `x' added in r46793 of Boost. boost_tag_x=x fi;; esac # We can specify multiple tags in this variable because it's used by # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ... boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc" ;; #( unknown) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5 printf "%s\n" "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;} boost_cv_lib_tag= ;; esac fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5 printf "%s\n" "$boost_cv_lib_tag" >&6; } # Check whether --enable-static-boost was given. if test ${enable_static_boost+y} then : enableval=$enable_static_boost; enable_static_boost=yes else $as_nop enable_static_boost=no fi # Check whether we do better use `mt' even though we weren't ask to. 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined _REENTRANT || defined _MT || defined __MT__ /* use -mt */ #else # error MT not needed #endif int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : boost_guess_use_mt=: else $as_nop boost_guess_use_mt=false fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 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 "x$MPICXX" != x && test "x$have_boost" == xyes && test "x$with_mpi" != xno then : ax_save_CXX=$CXX ax_save_CPP=$CXXCPP CXX=$MPICXX CXXCPP="$MPICXX -E" if test x"$boost_cv_inc_path" = xno; then have_mpi=no CXX=$ax_save_CXX if test "x$with_mpi" == xyes then : as_fn_error $? "MPI features require boost.mpi" "$LINENO" 5 fi else 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 boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" ac_fn_cxx_check_header_compile "$LINENO" "boost/mpi/environment.hpp" "ac_cv_header_boost_mpi_environment_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_mpi_environment_hpp" = xyes then : if test x"$boost_cv_inc_path" = xno; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost mpi library" >&5 printf "%s\n" "$as_me: Boost not available, not searching for the Boost mpi library" >&6;} else 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 x"$boost_cv_inc_path" = xno; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/mpi/environment.hpp" >&5 printf "%s\n" "$as_me: Boost not available, not searching for boost/mpi/environment.hpp" >&6;} else 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 boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" ac_fn_cxx_check_header_compile "$LINENO" "boost/mpi/environment.hpp" "ac_cv_header_boost_mpi_environment_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_mpi_environment_hpp" = xyes then : printf "%s\n" "#define HAVE_BOOST_MPI_ENVIRONMENT_HPP 1" >>confdefs.h else $as_nop as_fn_error $? "cannot find boost/mpi/environment.hpp" "$LINENO" 5 fi CPPFLAGS=$boost_save_CPPFLAGS 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 fi boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost mpi library" >&5 printf %s "checking for the Boost mpi library... " >&6; } if test ${boost_cv_lib_mpi+y} then : printf %s "(cached) " >&6 else $as_nop boost_cv_lib_mpi=no case "" in #( (mt | mt-) boost_mt=-mt; boost_rtopt=;; #( (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #( (*) boost_mt=; boost_rtopt=;; esac if test $enable_static_boost = yes; then boost_rtopt="s$boost_rtopt" fi # Find the proper debug variant depending on what we've been asked to find. case $boost_rtopt in #( (*d*) boost_rt_d=$boost_rtopt;; #( (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( (*) boost_rt_d='-d';; esac # If the PREFERRED-RT-OPT are not empty, prepend a `-'. test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" $boost_guess_use_mt && boost_mt=-mt # Look for the abs path the static archive. # $libext is computed by Libtool but let's make sure it's non empty. test -z "$libext" && as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 boost_save_ac_objext=$ac_objext # Generate the test file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { boost::mpi::environment() ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_objext=do_not_rm_me_plz else $as_nop as_fn_error $? "cannot compile a test that uses Boost mpi" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext conftest.beam ac_objext=$boost_save_ac_objext boost_failed_libs= # Don't bother to ident the following nested for loops, only the 2 # innermost ones matter. for boost_lib_ in mpi; do for boost_tag_ in -$boost_cv_lib_tag ''; do for boost_ver_ in -$boost_cv_lib_version ''; do for boost_mt_ in $boost_mt -mt ''; do for boost_rtopt_ in $boost_rtopt '' -d; do for boost_lib in \ boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \ boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \ boost_$boost_lib_$boost_tag_$boost_ver_ do # Avoid testing twice the same lib case $boost_failed_libs in #( (*@$boost_lib@*) continue;; esac # If with_boost is empty, we'll search in /lib first, which is not quite # right so instead we'll try to a location based on where the headers are. boost_tmp_lib=$with_boost test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} for boost_ldpath in "$boost_tmp_lib/lib" '' \ /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ "$with_boost" C:/Boost/lib /lib* do # Don't waste time with directories that don't exist. if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then continue fi boost_save_LDFLAGS=$LDFLAGS # Are we looking for a static library? case $boost_ldpath:$boost_rtopt_ in #( (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) boost_cv_lib_mpi_LIBS="$boost_ldpath/lib$boost_lib.$libext" test -e "$boost_cv_lib_mpi_LIBS" || continue;; #( (*) # No: use -lboost_foo to find the shared library. boost_cv_lib_mpi_LIBS="-l$boost_lib";; esac boost_save_LIBS=$LIBS LIBS="$boost_cv_lib_mpi_LIBS $LIBS" test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" rm -f conftest$ac_exeext boost_save_ac_ext=$ac_ext boost_use_source=: # If we already have a .o, re-use it. We change $ac_ext so that $ac_link # tries to link the existing object file instead of compiling from source. test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 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\"" printf "%s\n" "$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 printf "%s\n" "$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 || $as_executable_p conftest$ac_exeext } then : boost_cv_lib_mpi=yes else $as_nop if $boost_use_source; then printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi boost_cv_lib_mpi=no fi ac_objext=$boost_save_ac_objext ac_ext=$boost_save_ac_ext rm -f core conftest.err conftest_ipa8_conftest.oo \ conftest$ac_exeext ac_objext=$boost_save_ac_objext LDFLAGS=$boost_save_LDFLAGS LIBS=$boost_save_LIBS if test x"$boost_cv_lib_mpi" = xyes; then # Check or used cached result of whether or not using -R or # -rpath makes sense. Some implementations of ld, such as for # Mac OSX, require -rpath but -R is the flag known to work on # other systems. https://github.com/tsuna/boost.m4/issues/19 if test ${boost_cv_rpath_link_ldflag+y} then : printf %s "(cached) " >&6 else $as_nop case $boost_ldpath in '') # Nothing to do. boost_cv_rpath_link_ldflag= boost_rpath_link_ldflag_found=yes;; *) for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" LIBS="$boost_save_LIBS $boost_cv_lib_mpi_LIBS" rm -f conftest$ac_exeext boost_save_ac_ext=$ac_ext boost_use_source=: # If we already have a .o, re-use it. We change $ac_ext so that $ac_link # tries to link the existing object file instead of compiling from source. test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 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\"" printf "%s\n" "$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 printf "%s\n" "$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 || $as_executable_p conftest$ac_exeext } then : boost_rpath_link_ldflag_found=yes break else $as_nop if $boost_use_source; then printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi boost_rpath_link_ldflag_found=no fi ac_objext=$boost_save_ac_objext ac_ext=$boost_save_ac_ext rm -f core conftest.err conftest_ipa8_conftest.oo \ conftest$ac_exeext done ;; esac if test "x$boost_rpath_link_ldflag_found" != "xyes" then : as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 fi LDFLAGS=$boost_save_LDFLAGS LIBS=$boost_save_LIBS fi test x"$boost_ldpath" != x && boost_cv_lib_mpi_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" boost_cv_lib_mpi_LDPATH="$boost_ldpath" break 7 else boost_failed_libs="$boost_failed_libs@$boost_lib@" fi done done done done done done done # boost_lib_ rm -f conftest.$ac_objext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_mpi" >&5 printf "%s\n" "$boost_cv_lib_mpi" >&6; } case $boost_cv_lib_mpi in #( (no) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 as_fn_error $? "cannot find the flags to link with Boost mpi" "$LINENO" 5 ;; esac BOOST_MPI_LDFLAGS=$boost_cv_lib_mpi_LDFLAGS BOOST_MPI_LDPATH=$boost_cv_lib_mpi_LDPATH BOOST_LDPATH=$boost_cv_lib_mpi_LDPATH BOOST_MPI_LIBS=$boost_cv_lib_mpi_LIBS CPPFLAGS=$boost_save_CPPFLAGS 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 fi if test x"$boost_cv_inc_path" = xno; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost serialization library" >&5 printf "%s\n" "$as_me: Boost not available, not searching for the Boost serialization library" >&6;} else 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 x"$boost_cv_inc_path" = xno; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/serialization/base_object.hpp" >&5 printf "%s\n" "$as_me: Boost not available, not searching for boost/serialization/base_object.hpp" >&6;} else 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 boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" ac_fn_cxx_check_header_compile "$LINENO" "boost/serialization/base_object.hpp" "ac_cv_header_boost_serialization_base_object_hpp" "$ac_includes_default" if test "x$ac_cv_header_boost_serialization_base_object_hpp" = xyes then : printf "%s\n" "#define HAVE_BOOST_SERIALIZATION_BASE_OBJECT_HPP 1" >>confdefs.h else $as_nop as_fn_error $? "cannot find boost/serialization/base_object.hpp" "$LINENO" 5 fi CPPFLAGS=$boost_save_CPPFLAGS 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 fi boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Boost serialization library" >&5 printf %s "checking for the Boost serialization library... " >&6; } if test ${boost_cv_lib_serialization+y} then : printf %s "(cached) " >&6 else $as_nop boost_cv_lib_serialization=no case "" in #( (mt | mt-) boost_mt=-mt; boost_rtopt=;; #( (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #( (*) boost_mt=; boost_rtopt=;; esac if test $enable_static_boost = yes; then boost_rtopt="s$boost_rtopt" fi # Find the proper debug variant depending on what we've been asked to find. case $boost_rtopt in #( (*d*) boost_rt_d=$boost_rtopt;; #( (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( (*) boost_rt_d='-d';; esac # If the PREFERRED-RT-OPT are not empty, prepend a `-'. test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" $boost_guess_use_mt && boost_mt=-mt # Look for the abs path the static archive. # $libext is computed by Libtool but let's make sure it's non empty. test -z "$libext" && as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 boost_save_ac_objext=$ac_objext # Generate the test file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_objext=do_not_rm_me_plz else $as_nop as_fn_error $? "cannot compile a test that uses Boost serialization" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext conftest.beam ac_objext=$boost_save_ac_objext boost_failed_libs= # Don't bother to ident the following nested for loops, only the 2 # innermost ones matter. for boost_lib_ in serialization; do for boost_tag_ in -$boost_cv_lib_tag ''; do for boost_ver_ in -$boost_cv_lib_version ''; do for boost_mt_ in $boost_mt -mt ''; do for boost_rtopt_ in $boost_rtopt '' -d; do for boost_lib in \ boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \ boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \ boost_$boost_lib_$boost_tag_$boost_ver_ do # Avoid testing twice the same lib case $boost_failed_libs in #( (*@$boost_lib@*) continue;; esac # If with_boost is empty, we'll search in /lib first, which is not quite # right so instead we'll try to a location based on where the headers are. boost_tmp_lib=$with_boost test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} for boost_ldpath in "$boost_tmp_lib/lib" '' \ /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ "$with_boost" C:/Boost/lib /lib* do # Don't waste time with directories that don't exist. if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then continue fi boost_save_LDFLAGS=$LDFLAGS # Are we looking for a static library? case $boost_ldpath:$boost_rtopt_ in #( (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) boost_cv_lib_serialization_LIBS="$boost_ldpath/lib$boost_lib.$libext" test -e "$boost_cv_lib_serialization_LIBS" || continue;; #( (*) # No: use -lboost_foo to find the shared library. boost_cv_lib_serialization_LIBS="-l$boost_lib";; esac boost_save_LIBS=$LIBS LIBS="$boost_cv_lib_serialization_LIBS $LIBS" test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" rm -f conftest$ac_exeext boost_save_ac_ext=$ac_ext boost_use_source=: # If we already have a .o, re-use it. We change $ac_ext so that $ac_link # tries to link the existing object file instead of compiling from source. test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 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\"" printf "%s\n" "$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 printf "%s\n" "$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 || $as_executable_p conftest$ac_exeext } then : boost_cv_lib_serialization=yes else $as_nop if $boost_use_source; then printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi boost_cv_lib_serialization=no fi ac_objext=$boost_save_ac_objext ac_ext=$boost_save_ac_ext rm -f core conftest.err conftest_ipa8_conftest.oo \ conftest$ac_exeext ac_objext=$boost_save_ac_objext LDFLAGS=$boost_save_LDFLAGS LIBS=$boost_save_LIBS if test x"$boost_cv_lib_serialization" = xyes; then # Check or used cached result of whether or not using -R or # -rpath makes sense. Some implementations of ld, such as for # Mac OSX, require -rpath but -R is the flag known to work on # other systems. https://github.com/tsuna/boost.m4/issues/19 if test ${boost_cv_rpath_link_ldflag+y} then : printf %s "(cached) " >&6 else $as_nop case $boost_ldpath in '') # Nothing to do. boost_cv_rpath_link_ldflag= boost_rpath_link_ldflag_found=yes;; *) for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" LIBS="$boost_save_LIBS $boost_cv_lib_serialization_LIBS" rm -f conftest$ac_exeext boost_save_ac_ext=$ac_ext boost_use_source=: # If we already have a .o, re-use it. We change $ac_ext so that $ac_link # tries to link the existing object file instead of compiling from source. test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && printf "%s\n" "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 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\"" printf "%s\n" "$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 printf "%s\n" "$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 || $as_executable_p conftest$ac_exeext } then : boost_rpath_link_ldflag_found=yes break else $as_nop if $boost_use_source; then printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi boost_rpath_link_ldflag_found=no fi ac_objext=$boost_save_ac_objext ac_ext=$boost_save_ac_ext rm -f core conftest.err conftest_ipa8_conftest.oo \ conftest$ac_exeext done ;; esac if test "x$boost_rpath_link_ldflag_found" != "xyes" then : as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 fi LDFLAGS=$boost_save_LDFLAGS LIBS=$boost_save_LIBS fi test x"$boost_ldpath" != x && boost_cv_lib_serialization_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" boost_cv_lib_serialization_LDPATH="$boost_ldpath" break 7 else boost_failed_libs="$boost_failed_libs@$boost_lib@" fi done done done done done done done # boost_lib_ rm -f conftest.$ac_objext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_serialization" >&5 printf "%s\n" "$boost_cv_lib_serialization" >&6; } case $boost_cv_lib_serialization in #( (no) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 as_fn_error $? "cannot find the flags to link with Boost serialization" "$LINENO" 5 ;; esac BOOST_SERIALIZATION_LDFLAGS=$boost_cv_lib_serialization_LDFLAGS BOOST_SERIALIZATION_LDPATH=$boost_cv_lib_serialization_LDPATH BOOST_LDPATH=$boost_cv_lib_serialization_LDPATH BOOST_SERIALIZATION_LIBS=$boost_cv_lib_serialization_LIBS CPPFLAGS=$boost_save_CPPFLAGS 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 fi have_mpi=yes else $as_nop have_mpi=no CXX=$ax_save_CXX if test "x$with_mpi" == xyes then : as_fn_error $? "MPI features require boost.mpi" "$LINENO" 5 fi fi CPPFLAGS=$boost_save_CPPFLAGS 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 fi fi if test "x$have_mpi" == xyes then : printf "%s\n" "#define HAVE_MPI 1" >>confdefs.h else $as_nop if test "x$with_mpi" == xyes then : as_fn_error $? "MPI requested but not found" "$LINENO" 5 else $as_nop FEATURES+="-nompi" MPICXX="" fi fi if test "x$have_mpi" == xyes; then HAVE_MPI_TRUE= HAVE_MPI_FALSE='#' else HAVE_MPI_TRUE='#' HAVE_MPI_FALSE= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 printf %s "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 printf "%s\n" "no, using $LN_S" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval test \${ac_cv_prog_make_${ac_make}_set+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } SET_MAKE= else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 printf "%s\n" "$PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } PKG_CONFIG="" fi fi for ac_prog in doxygen do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DOXYGEN+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$DOXYGEN"; then ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_DOXYGEN="$ac_prog" printf "%s\n" "$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 DOXYGEN=$ac_cv_prog_DOXYGEN if test -n "$DOXYGEN"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 printf "%s\n" "$DOXYGEN" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$DOXYGEN" && break done for ac_prog in pdflatex do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_PDFLATEX+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$PDFLATEX"; then ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_PDFLATEX="$ac_prog" printf "%s\n" "$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 PDFLATEX=$ac_cv_prog_PDFLATEX if test -n "$PDFLATEX"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 printf "%s\n" "$PDFLATEX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$PDFLATEX" && break done for ac_prog in bibtex do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_BIBTEX+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$BIBTEX"; then ac_cv_prog_BIBTEX="$BIBTEX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_BIBTEX="$ac_prog" printf "%s\n" "$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 BIBTEX=$ac_cv_prog_BIBTEX if test -n "$BIBTEX"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BIBTEX" >&5 printf "%s\n" "$BIBTEX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$BIBTEX" && break done for ac_prog in kpsewhich do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_KPSEWHICH+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$KPSEWHICH"; then ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_KPSEWHICH="$ac_prog" printf "%s\n" "$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 KPSEWHICH=$ac_cv_prog_KPSEWHICH if test -n "$KPSEWHICH"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KPSEWHICH" >&5 printf "%s\n" "$KPSEWHICH" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$KPSEWHICH" && break done # Provide additional defaults for user variables for flag in -rdynamic; do as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 printf %s "checking whether C++ compiler accepts $flag... " >&6; } if eval test \${$as_CACHEVAR+y} then : printf %s "(cached) " >&6 else $as_nop ax_check_save_flags=$CXXFLAGS CXXFLAGS="$CXXFLAGS $flag" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : eval "$as_CACHEVAR=yes" else $as_nop eval "$as_CACHEVAR=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS=$ax_check_save_flags fi eval ac_res=\$$as_CACHEVAR { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if test x"`eval 'as_val=${'$as_CACHEVAR'};printf "%s\n" "$as_val"'`" = xyes then : if test ${LDFLAGS+y} then : case " $LDFLAGS " in #( *" $flag "*) : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$flag"; } >&5 (: LDFLAGS already contains $flag) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; #( *) : as_fn_append LDFLAGS " $flag" { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5 (: LDFLAGS="$LDFLAGS") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; esac else $as_nop LDFLAGS=$flag { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5 (: LDFLAGS="$LDFLAGS") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } fi else $as_nop : fi done # Check whether --enable-native was given. if test ${enable_native+y} then : enableval=$enable_native; if test "x$enable_native" = "xyes" then : for flag in -march=native; do as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 printf %s "checking whether C++ compiler accepts $flag... " >&6; } if eval test \${$as_CACHEVAR+y} then : printf %s "(cached) " >&6 else $as_nop ax_check_save_flags=$CXXFLAGS CXXFLAGS="$CXXFLAGS $flag" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : eval "$as_CACHEVAR=yes" else $as_nop eval "$as_CACHEVAR=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS=$ax_check_save_flags fi eval ac_res=\$$as_CACHEVAR { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if test x"`eval 'as_val=${'$as_CACHEVAR'};printf "%s\n" "$as_val"'`" = xyes then : if test ${CXXFLAGS+y} then : case " $CXXFLAGS " in #( *" $flag "*) : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5 (: CXXFLAGS already contains $flag) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; #( *) : as_fn_append CXXFLAGS " $flag" { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5 (: CXXFLAGS="$CXXFLAGS") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; esac else $as_nop CXXFLAGS=$flag { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5 (: CXXFLAGS="$CXXFLAGS") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } fi else $as_nop : fi done fi fi # Check whether --enable-hardening was given. if test ${enable_hardening+y} then : enableval=$enable_hardening; if test "x$enable_hardening" = "xyes" then : for flag in -pedantic -Wall -W -Wundef -Wshadow -Wcast-qual \ -Wcast-align -Wconversion -Winline -Wabi -Woverloaded-virtual \ -Wno-long-long -Wformat -Wformat-security -Werror=format-security \ -fstack-protector "--param ssp-buffer-size=4"; do as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 printf %s "checking whether C++ compiler accepts $flag... " >&6; } if eval test \${$as_CACHEVAR+y} then : printf %s "(cached) " >&6 else $as_nop ax_check_save_flags=$CXXFLAGS CXXFLAGS="$CXXFLAGS $flag" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : eval "$as_CACHEVAR=yes" else $as_nop eval "$as_CACHEVAR=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS=$ax_check_save_flags fi eval ac_res=\$$as_CACHEVAR { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if test x"`eval 'as_val=${'$as_CACHEVAR'};printf "%s\n" "$as_val"'`" = xyes then : if test ${CXXFLAGS+y} then : case " $CXXFLAGS " in #( *" $flag "*) : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5 (: CXXFLAGS already contains $flag) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; #( *) : as_fn_append CXXFLAGS " $flag" { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5 (: CXXFLAGS="$CXXFLAGS") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; esac else $as_nop CXXFLAGS=$flag { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5 (: CXXFLAGS="$CXXFLAGS") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } fi else $as_nop : fi done for flag in -D_FORTIFY_SOURCE=2; do as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 printf %s "checking whether C++ compiler accepts $flag... " >&6; } if eval test \${$as_CACHEVAR+y} then : printf %s "(cached) " >&6 else $as_nop ax_check_save_flags=$CXXFLAGS CXXFLAGS="$CXXFLAGS $flag" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : eval "$as_CACHEVAR=yes" else $as_nop eval "$as_CACHEVAR=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS=$ax_check_save_flags fi eval ac_res=\$$as_CACHEVAR { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if test x"`eval 'as_val=${'$as_CACHEVAR'};printf "%s\n" "$as_val"'`" = xyes then : if test ${CPPFLAGS+y} then : case " $CPPFLAGS " in #( *" $flag "*) : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains \$flag"; } >&5 (: CPPFLAGS already contains $flag) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; #( *) : as_fn_append CPPFLAGS " $flag" { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5 (: CPPFLAGS="$CPPFLAGS") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; esac else $as_nop CPPFLAGS=$flag { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5 (: CPPFLAGS="$CPPFLAGS") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } fi else $as_nop : fi done for flag in -fPIE; do as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 printf %s "checking whether C++ compiler accepts $flag... " >&6; } if eval test \${$as_CACHEVAR+y} then : printf %s "(cached) " >&6 else $as_nop ax_check_save_flags=$CXXFLAGS CXXFLAGS="$CXXFLAGS $flag" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : eval "$as_CACHEVAR=yes" else $as_nop eval "$as_CACHEVAR=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS=$ax_check_save_flags fi eval ac_res=\$$as_CACHEVAR { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if test x"`eval 'as_val=${'$as_CACHEVAR'};printf "%s\n" "$as_val"'`" = xyes then : if test ${CXXFLAGS_EXEC+y} then : case " $CXXFLAGS_EXEC " in #( *" $flag "*) : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS_EXEC already contains \$flag"; } >&5 (: CXXFLAGS_EXEC already contains $flag) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; #( *) : as_fn_append CXXFLAGS_EXEC " $flag" { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS_EXEC=\"\$CXXFLAGS_EXEC\""; } >&5 (: CXXFLAGS_EXEC="$CXXFLAGS_EXEC") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; esac else $as_nop CXXFLAGS_EXEC=$flag { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS_EXEC=\"\$CXXFLAGS_EXEC\""; } >&5 (: CXXFLAGS_EXEC="$CXXFLAGS_EXEC") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } fi else $as_nop : fi done for flag in -pie; do as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags_-fPIE_$flag" | $as_tr_sh` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 printf %s "checking whether the linker accepts $flag... " >&6; } if eval test \${$as_CACHEVAR+y} then : printf %s "(cached) " >&6 else $as_nop ax_check_save_flags=$LDFLAGS LDFLAGS="$LDFLAGS -fPIE $flag" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO" then : eval "$as_CACHEVAR=yes" else $as_nop eval "$as_CACHEVAR=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$ax_check_save_flags fi eval ac_res=\$$as_CACHEVAR { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if eval test \"x\$"$as_CACHEVAR"\" = x"yes" then : if test ${LDFLAGS_EXEC+y} then : case " $LDFLAGS_EXEC " in #( *" $flag "*) : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS_EXEC already contains \$flag"; } >&5 (: LDFLAGS_EXEC already contains $flag) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; #( *) : as_fn_append LDFLAGS_EXEC " $flag" { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS_EXEC=\"\$LDFLAGS_EXEC\""; } >&5 (: LDFLAGS_EXEC="$LDFLAGS_EXEC") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; esac else $as_nop LDFLAGS_EXEC=$flag { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS_EXEC=\"\$LDFLAGS_EXEC\""; } >&5 (: LDFLAGS_EXEC="$LDFLAGS_EXEC") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } fi else $as_nop : fi done fi fi # Check whether --enable-deprecated was given. if test ${enable_deprecated+y} then : enableval=$enable_deprecated; if test "x$enable_deprecated" = "xno" then : for flag in -DGYOTO_NO_DEPRECATED; do as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 printf %s "checking whether C++ compiler accepts $flag... " >&6; } if eval test \${$as_CACHEVAR+y} then : printf %s "(cached) " >&6 else $as_nop ax_check_save_flags=$CXXFLAGS CXXFLAGS="$CXXFLAGS $flag" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : eval "$as_CACHEVAR=yes" else $as_nop eval "$as_CACHEVAR=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS=$ax_check_save_flags fi eval ac_res=\$$as_CACHEVAR { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if test x"`eval 'as_val=${'$as_CACHEVAR'};printf "%s\n" "$as_val"'`" = xyes then : if test ${CPPFLAGS+y} then : case " $CPPFLAGS " in #( *" $flag "*) : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains \$flag"; } >&5 (: CPPFLAGS already contains $flag) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; #( *) : as_fn_append CPPFLAGS " $flag" { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5 (: CPPFLAGS="$CPPFLAGS") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; esac else $as_nop CPPFLAGS=$flag { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5 (: CPPFLAGS="$CPPFLAGS") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } fi else $as_nop : fi done fi else $as_nop for flag in -DGYOTO_NO_DEPRECATED; do as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 printf %s "checking whether C++ compiler accepts $flag... " >&6; } if eval test \${$as_CACHEVAR+y} then : printf %s "(cached) " >&6 else $as_nop ax_check_save_flags=$CXXFLAGS CXXFLAGS="$CXXFLAGS $flag" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : eval "$as_CACHEVAR=yes" else $as_nop eval "$as_CACHEVAR=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS=$ax_check_save_flags fi eval ac_res=\$$as_CACHEVAR { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if test x"`eval 'as_val=${'$as_CACHEVAR'};printf "%s\n" "$as_val"'`" = xyes then : if test ${CPPFLAGS+y} then : case " $CPPFLAGS " in #( *" $flag "*) : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains \$flag"; } >&5 (: CPPFLAGS already contains $flag) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; #( *) : as_fn_append CPPFLAGS " $flag" { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5 (: CPPFLAGS="$CPPFLAGS") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ;; esac else $as_nop CPPFLAGS=$flag { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5 (: CPPFLAGS="$CPPFLAGS") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } fi else $as_nop : fi done fi # Guess *LD_LIBRARY_PATH variable for make check SYS=other DYLIB_VAR=LD_LIBRARY_PATH case "x$target_os" in xdarwin*|xmacos) DYLIB_VAR=DYLD_LIBRARY_PATH SYS=Darwin ;; *) ;; esac plugin_sfx=so printf "%s\n" "#define GYOTO_PLUGIN_SFX \"${plugin_sfx}\"" >>confdefs.h GYOTO_PLUGIN_SFX=${plugin_sfx} # Used in yorick/stdplug/Makefile # Checks for libraries. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ namespace conftest { extern "C" int dlopen (); } int main (void) { return conftest::dlopen (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes else $as_nop ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h LIBS="-ldl $LIBS" fi # Checks for header files. # We are not using those tests to far # AC_CHECK_HEADERS([float.h stddef.h string.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" if test "x$ac_cv_type__Bool" = xyes then : printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 printf %s "checking for stdbool.h that conforms to C99... " >&6; } if test ${ac_cv_header_stdbool_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef __bool_true_false_are_defined #error "__bool_true_false_are_defined is not defined" #endif char a[__bool_true_false_are_defined == 1 ? 1 : -1]; /* Regardless of whether this is C++ or "_Bool" is a valid type name, "true" and "false" should be usable in #if expressions and integer constant expressions, and "bool" should be a valid type name. */ #if !true #error "'true' is not true" #endif #if true != 1 #error "'true' is not equal to 1" #endif char b[true == 1 ? 1 : -1]; char c[true]; #if false #error "'false' is not false" #endif #if false != 0 #error "'false' is not equal to 0" #endif char d[false == 0 ? 1 : -1]; enum { e = false, f = true, g = false * true, h = true * 256 }; char i[(bool) 0.5 == true ? 1 : -1]; char j[(bool) 0.0 == false ? 1 : -1]; char k[sizeof (bool) > 0 ? 1 : -1]; struct sb { bool s: 1; bool t; } s; char l[sizeof s.t > 0 ? 1 : -1]; /* The following fails for HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ bool m[h]; char n[sizeof m == h * sizeof m[0] ? 1 : -1]; char o[-1 - (bool) 0 < 0 ? 1 : -1]; /* Catch a bug in an HP-UX C compiler. See https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html */ bool p = true; bool *pp = &p; /* C 1999 specifies that bool, true, and false are to be macros, but C++ 2011 and later overrule this. */ #if __cplusplus < 201103 #ifndef bool #error "bool is not defined" #endif #ifndef false #error "false is not defined" #endif #ifndef true #error "true is not defined" #endif #endif /* If _Bool is available, repeat with it all the tests above that used bool. */ #ifdef HAVE__BOOL struct sB { _Bool s: 1; _Bool t; } t; char q[(_Bool) 0.5 == true ? 1 : -1]; char r[(_Bool) 0.0 == false ? 1 : -1]; char u[sizeof (_Bool) > 0 ? 1 : -1]; char v[sizeof t.t > 0 ? 1 : -1]; _Bool w[h]; char x[sizeof m == h * sizeof m[0] ? 1 : -1]; char y[-1 - (_Bool) 0 < 0 ? 1 : -1]; _Bool z = true; _Bool *pz = &p; #endif int main (void) { bool ps = &s; *pp |= p; *pp |= ! p; #ifdef HAVE__BOOL _Bool pt = &t; *pz |= z; *pz |= ! z; #endif /* Refer to every declared value, so they cannot be discarded as unused. */ return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l + !m + !n + !o + !p + !pp + !ps #ifdef HAVE__BOOL + !q + !r + !u + !v + !w + !x + !y + !z + !pt #endif ); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_header_stdbool_h=yes else $as_nop ac_cv_header_stdbool_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; } ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes then : else $as_nop printf "%s\n" "#define size_t unsigned int" >>confdefs.h fi # Checks for library functions. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 printf %s "checking for error_at_line... " >&6; } if test ${ac_cv_lib_error_at_line+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { error_at_line (0, 0, "", 0, "an error occurred"); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO" then : ac_cv_lib_error_at_line=yes else $as_nop ac_cv_lib_error_at_line=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; } if test $ac_cv_lib_error_at_line = no; then case " $LIBOBJS " in *" error.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS error.$ac_objext" ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 printf %s "checking for working strtod... " >&6; } if test ${ac_cv_func_strtod+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : ac_cv_func_strtod=no else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #ifndef strtod double strtod (); #endif int main (void) { { /* Some versions of Linux strtod mis-parse strings with leading '+'. */ char *string = " +69"; char *term; double value; value = strtod (string, &term); if (value != 69 || term != (string + 4)) return 1; } { /* Under Solaris 2.4, strtod returns the wrong value for the terminating character under some conditions. */ char *string = "NaN"; char *term; strtod (string, &term); if (term != string && *(term - 1) == 0) return 1; } return 0; } _ACEOF if ac_fn_cxx_try_run "$LINENO" then : ac_cv_func_strtod=yes else $as_nop ac_cv_func_strtod=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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 printf "%s\n" "$ac_cv_func_strtod" >&6; } if test $ac_cv_func_strtod = no; then case " $LIBOBJS " in *" strtod.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;; esac ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow" if test "x$ac_cv_func_pow" = xyes then : fi if test $ac_cv_func_pow = no; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 printf %s "checking for pow in -lm... " >&6; } if test ${ac_cv_lib_m_pow+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ namespace conftest { extern "C" int pow (); } int main (void) { return conftest::pow (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO" then : ac_cv_lib_m_pow=yes else $as_nop ac_cv_lib_m_pow=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 printf "%s\n" "$ac_cv_lib_m_pow" >&6; } if test "x$ac_cv_lib_m_pow" = xyes then : POW_LIB=-lm else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;} fi fi fi # other functions we may need to check for according to autoscan: # floor getcwd pow sqrt strdup ac_fn_cxx_check_func "$LINENO" "sincos" "ac_cv_func_sincos" if test "x$ac_cv_func_sincos" = xyes then : printf "%s\n" "#define HAVE_SINCOS 1" >>confdefs.h fi ## YORICK # Check for Yorick yorick_exe=yorick YORICK= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use yorick" >&5 printf %s "checking whether to use yorick... " >&6; } # Check whether --with-yorick was given. if test ${with_yorick+y} then : withval=$with_yorick; if test "x$with_yorick" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } else $as_nop if test "x$with_yorick" != "xyes" then : YORICK=$with_yorick else $as_nop YORICK=$yorick_exe fi if $YORICK -batch then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YORICK" >&5 printf "%s\n" "$YORICK" >&6; } else $as_nop as_fn_error $? "$YORICK does not work" "$LINENO" 5 fi fi else $as_nop for ac_prog in $yorick_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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_YORICK+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$YORICK"; then ac_cv_prog_YORICK="$YORICK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_YORICK="$ac_prog" printf "%s\n" "$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 YORICK=$ac_cv_prog_YORICK if test -n "$YORICK"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YORICK" >&5 printf "%s\n" "$YORICK" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$YORICK" && break done fi if test "x$YORICK" != "x"; then HAVE_YORICK_TRUE= HAVE_YORICK_FALSE='#' else HAVE_YORICK_TRUE='#' HAVE_YORICK_FALSE= fi # Only if YORICK available, check for install directories if test "x$YORICK" != "x" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking install path for Yorick platform-dependent files" >&5 printf %s "checking install path for Yorick platform-dependent files... " >&6; } Y_EXE_HOME=`echo write,format=\"%s\",Y_HOME\; quit | ${YORICK}| tail -1` Y_EXE_SITE=`echo write,format=\"%s\",Y_SITE\; quit | ${YORICK}| tail -1` Y_INST_HOME= Y_INST_SITE= # Check whether --with-yorick-home was given. if test ${with_yorick_home+y} then : withval=$with_yorick_home; Y_INST_HOME=${with_yorick_home} Y_INST_SITE=${with_yorick_home} else $as_nop if echo ${Y_EXE_HOME} | grep ${exec_prefix} then : Y_INST_HOME=Y_EXE_HOME Y_INST_SITE=Y_EXE_SITE else $as_nop Y_INST_HOME='${exec_prefix}/lib/yorick' Y_INST_SITE='${prefix}/lib/yorick' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $Y_INST_HOME" >&5 printf "%s\n" "$Y_INST_HOME" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking install path for Yorick platform-independent files" >&5 printf %s "checking install path for Yorick platform-independent files... " >&6; } # Check whether --with-yorick-site was given. if test ${with_yorick_site+y} then : withval=$with_yorick_site; Y_INST_SITE=${with_yorick_site} fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $Y_INST_SITE" >&5 printf "%s\n" "$Y_INST_SITE" >&6; } fi ## DEBUGGING INFORMATION # Enable debugging by default GYOTO_DEBUG_ENABLED=yes # Check whether --enable-debugging was given. if test ${enable_debugging+y} then : enableval=$enable_debugging; if test "x$enable_debugging" == "xno" then : GYOTO_DEBUG_ENABLED=0 fi fi if test "x$GYOTO_DEBUG_ENABLED" == xyes then : printf "%s\n" "#define GYOTO_DEBUG_ENABLED 1" >>confdefs.h fi ## POSIX THREADS # Check for pthreads use_pthreads=yes # Check whether --enable-pthreads was given. if test ${enable_pthreads+y} then : enableval=$enable_pthreads; if test "x$enable_pthreads" = "xno" then : use_pthreads=no fi fi if test "x$use_pthreads" == "xyes" then : 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 ax_pthread_ok=no # We used to check for pthread.h first, but this fails if pthread.h # requires special compiler flags (e.g. on True64 or Sequent). # It gets checked for in the link test anyway. # First of all, check if the user has set any of the PTHREAD_LIBS, # etcetera environment variables, and if threads linking works using # them: if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 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. */ char pthread_join (); int main (void) { return pthread_join (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ax_pthread_ok=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 printf "%s\n" "$ax_pthread_ok" >&6; } if test x"$ax_pthread_ok" = xno; then PTHREAD_LIBS="" PTHREAD_CFLAGS="" fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" fi # We must check for the threads library under a number of different # names; the ordering is very important because some systems # (e.g. DEC) have both -lpthread and -lpthreads, where one of the # libraries is broken (non-POSIX). # Create a list of thread flags to try. Items starting with a "-" are # C compiler flags, and other items are library names, except for "none" # which indicates that we try without any flags at all, and "pthread-config" # which is a program returning the flags for the Pth emulation library. ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" # The ordering *is* (sometimes) important. Some notes on the # individual items follow: # pthreads: AIX (must check this before -lpthread) # none: in case threads are in libc; should be tried before -Kthread and # other compiler flags to prevent continual compiler warnings # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) # -pthreads: Solaris/gcc # -mthreads: Mingw32/gcc, Lynx/gcc # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it # doesn't hurt to check since this sometimes defines pthreads too; # also defines -D_REENTRANT) # ... -mt is also the pthreads flag for HP/aCC # pthread: Linux, etcetera # --thread-safe: KAI C++ # pthread-config: use pthread-config program (for GNU Pth library) case ${host_os} in solaris*) # On Solaris (at least, for some versions), libc contains stubbed # (non-functional) versions of the pthreads routines, so link-based # tests will erroneously succeed. (We need to link with -pthreads/-mt/ # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather # a function called by this macro, so we could check for that, but # who knows whether they'll stub that too in a future libc.) So, # we'll just look for -pthreads and -lpthread first: ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" ;; darwin*) ax_pthread_flags="-pthread $ax_pthread_flags" ;; esac if test x"$ax_pthread_ok" = xno; then for flag in $ax_pthread_flags; do case $flag in none) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 printf %s "checking whether pthreads work without any flags... " >&6; } ;; -*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 printf %s "checking whether pthreads work with $flag... " >&6; } PTHREAD_CFLAGS="$flag" ;; pthread-config) # Extract the first word of "pthread-config", so it can be a program name with args. set dummy pthread-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ax_pthread_config+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ax_pthread_config"; then ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_ax_pthread_config="yes" printf "%s\n" "$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_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" fi fi ax_pthread_config=$ac_cv_prog_ax_pthread_config if test -n "$ax_pthread_config"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 printf "%s\n" "$ax_pthread_config" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test x"$ax_pthread_config" = xno; then continue; fi PTHREAD_CFLAGS="`pthread-config --cflags`" PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 printf %s "checking for the pthreads library -l$flag... " >&6; } PTHREAD_LIBS="-l$flag" ;; esac save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # Check for various functions. We must include pthread.h, # since some functions may be macros. (On the Sequent, we # need a special flag -Kthread to make this header compile.) # We check for pthread_join because it is in -lpthread on IRIX # while pthread_create is in libc. We check for pthread_attr_init # due to DEC craziness with -lpthreads. We check for # pthread_cleanup_push because it is one of the few pthread # functions on Solaris that doesn't have a non-functional libc stub. # We try pthread_create on general principles. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include static void routine(void *a) { a = 0; } static void *start_routine(void *a) { return a; } int main (void) { pthread_t th; pthread_attr_t attr; pthread_create(&th, 0, start_routine, 0); pthread_join(th, 0); pthread_attr_init(&attr); pthread_cleanup_push(routine, 0); pthread_cleanup_pop(0) /* ; */ ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ax_pthread_ok=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 printf "%s\n" "$ax_pthread_ok" >&6; } if test "x$ax_pthread_ok" = xyes; then break; fi PTHREAD_LIBS="" PTHREAD_CFLAGS="" done fi # Various other checks: if test "x$ax_pthread_ok" = xyes; then save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 printf %s "checking for joinable pthread attribute... " >&6; } attr_name=unknown for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { int attr = $attr; return attr /* ; */ ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : attr_name=$attr; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 printf "%s\n" "$attr_name" >&6; } if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 printf %s "checking if more special flags are required for pthreads... " >&6; } flag=no case ${host_os} in aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; osf* | hpux*) flag="-D_REENTRANT";; solaris*) if test "$GCC" = "yes"; then flag="-D_REENTRANT" else flag="-mt -D_REENTRANT" fi ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 printf "%s\n" "${flag}" >&6; } if test "x$flag" != xno; then PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { int i = PTHREAD_PRIO_INHERIT; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ax_cv_PTHREAD_PRIO_INHERIT=yes else $as_nop ax_cv_PTHREAD_PRIO_INHERIT=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" then : printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" # More AIX lossage: must compile with xlc_r or cc_r if test x"$GCC" != xyes; then for ac_prog in xlc_r cc_r do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_PTHREAD_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$PTHREAD_CC"; then ac_cv_prog_PTHREAD_CC="$PTHREAD_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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_PTHREAD_CC="$ac_prog" printf "%s\n" "$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 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC if test -n "$PTHREAD_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 printf "%s\n" "$PTHREAD_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$PTHREAD_CC" && break done test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" else PTHREAD_CC=$CC fi else PTHREAD_CC="$CC" fi # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$ax_pthread_ok" = xyes; then printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h : else ax_pthread_ok=no 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 else $as_nop FEATURES+="-nopthreads" fi ## UDUNITS # Check for UDUNITS pkg_requires= pkg_cflags= pkg_libs= # Check whether --with-udunits-inc was given. if test ${with_udunits_inc+y} then : withval=$with_udunits_inc; with_udunits_headers=$withval { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-udunits-inc option is deprecated, use --with-udunits-headers instead" >&5 printf "%s\n" "$as_me: WARNING: --with-udunits-inc option is deprecated, use --with-udunits-headers instead" >&2;} fi # Check whether --with-udunits-lib was given. if test ${with_udunits_lib+y} then : withval=$with_udunits_lib; with_udunits_libs=${withval} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-udunits-lib option is deprecated, use --with-udunits-libs instead" >&5 printf "%s\n" "$as_me: WARNING: --with-udunits-lib option is deprecated, use --with-udunits-libs instead" >&2;} fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether udunits should be used" >&5 printf %s "checking whether udunits should be used... " >&6; } gy_headers= gy_default_cppflags= gy_lib= gy_CFLAGS= gy_LIBS= gy_with=$with_udunits # Check whether --with-udunits was given. if test ${with_udunits+y} then : withval=$with_udunits; if test "x$withval" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } elif test "x$withval" != "xyes" then : gy_headers=-I$withval/include gy_lib=-L$withval/lib gy_with=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } fi else $as_nop gy_with=check { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: probe" >&5 printf "%s\n" "probe" >&6; } fi gy_have=no if test "x$gy_with" != "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether udunits include path is provided" >&5 printf %s "checking whether udunits include path is provided... " >&6; } # Check whether --with-udunits-headers was given. if test ${with_udunits_headers+y} then : withval=$with_udunits_headers; gy_with=yes gy_headers=${withval/:/ -I} case "x$gy_headers" in x\-I*) ;; x) ;; x*) gy_headers=-I$gy_headers ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${gy_headers}" >&5 printf "%s\n" "${gy_headers}" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether udunits library path is provided" >&5 printf %s "checking whether udunits library path is provided... " >&6; } # Check whether --with-udunits-libs was given. if test ${with_udunits_libs+y} then : withval=$with_udunits_libs; gy_with=yes gy_lib=${withval/:/ -L} case "x$gy_lib" in x\-L*) ;; x) ;; x*) gy_lib=-L$gy_lib ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gy_lib" >&5 printf "%s\n" "$gy_lib" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Now check whether or not to use pkg-config for this library if test "x$gy_headers" == "x" \ && test "x$gy_lib" == "x" \ && test "x$PKG_CONFIG" != "x" then : pkg_failed=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UDUNITS" >&5 printf %s "checking for UDUNITS... " >&6; } if test -n "$UDUNITS_CFLAGS"; then pkg_cv_UDUNITS_CFLAGS="$UDUNITS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udunits\""; } >&5 ($PKG_CONFIG --exists --print-errors "udunits") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_UDUNITS_CFLAGS=`$PKG_CONFIG --cflags "udunits" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$UDUNITS_LIBS"; then pkg_cv_UDUNITS_LIBS="$UDUNITS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udunits\""; } >&5 ($PKG_CONFIG --exists --print-errors "udunits") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_UDUNITS_LIBS=`$PKG_CONFIG --libs "udunits" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } 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 UDUNITS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udunits" 2>&1` else UDUNITS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udunits" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$UDUNITS_PKG_ERRORS" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: udunits.pc not found" >&5 printf "%s\n" "$as_me: udunits.pc not found" >&6;} elif test $pkg_failed = untried; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: udunits.pc not found" >&5 printf "%s\n" "$as_me: udunits.pc not found" >&6;} else UDUNITS_CFLAGS=$pkg_cv_UDUNITS_CFLAGS UDUNITS_LIBS=$pkg_cv_UDUNITS_LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } pkg_requires="${pkg_requires} udunits" gy_have=yes fi fi # Failing that, check without pkg-config if test "x$gy_have" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UDUNITS (without pkg-config)" >&5 printf %s "checking for UDUNITS (without pkg-config)... " >&6; } if test "x$gy_header" == "x" then : gy_headers=$gy_default_cppflags fi TMPCPPFLAGS=$CPPFLAGS TMPCFLAGS=$CFLAGS TMPLDFLAGS=$LDFLAGS TMPLIBS=$LIBS CPPFLAGS="$TMPCPPFLAGS $gy_headers" LDFLAGS="$TMPLDFLAGS $gy_lib" LIBS=-ludunits2 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { ut_set_error_message_handler(ut_ignore); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO" then : gy_have=yes udunits_headers=$gy_headers udunits_lib=$gy_lib UDUNITS_LIBS="$gy_lib -ludunits2" UDUNITS_CFLAGS="$gy_headers" pkg_cflags="${pkg_cflags} ${UDUNITS_CFLAGS}" pkg_libs="${pkg_libs} ${UDUNITS_LIBS}" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS=$TMPCPPFLAGS LDFLAGS=$TMPLDFLAGS LIBS=$TMPLIBS fi fi have_udunits=$gy_have with_udunits=$withval if test "x$gy_have" == "xno" then : if test "x$gy_with" == "xyes" then : as_fn_error $? "udunits requested but not found" "$LINENO" 5 fi udunits_headers="" udunits_lib="" UDUNITS_LIBS="" UDUNITS_CFLAGS="" else $as_nop use_udunits=yes printf "%s\n" "#define GYOTO_USE_UDUNITS 1" >>confdefs.h fi if test "x$have_udunits" == "xyes"; then HAVE_UDUNITS_TRUE= HAVE_UDUNITS_FALSE='#' else HAVE_UDUNITS_TRUE='#' HAVE_UDUNITS_FALSE= fi if test "x$have_udunits" == "xno" then : FEATURES+="-nounits" fi ## XERCES # Check for Xerces-c { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether xerces should be used" >&5 printf %s "checking whether xerces should be used... " >&6; } gy_headers= gy_default_cppflags= gy_lib= gy_CFLAGS= gy_LIBS= gy_with=$with_xerces # Check whether --with-xerces was given. if test ${with_xerces+y} then : withval=$with_xerces; if test "x$withval" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } elif test "x$withval" != "xyes" then : gy_headers=-I$withval/include gy_lib=-L$withval/lib gy_with=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } fi else $as_nop gy_with=check { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: probe" >&5 printf "%s\n" "probe" >&6; } fi gy_have=no if test "x$gy_with" != "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether xerces include path is provided" >&5 printf %s "checking whether xerces include path is provided... " >&6; } # Check whether --with-xerces-headers was given. if test ${with_xerces_headers+y} then : withval=$with_xerces_headers; gy_with=yes gy_headers=${withval/:/ -I} case "x$gy_headers" in x\-I*) ;; x) ;; x*) gy_headers=-I$gy_headers ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${gy_headers}" >&5 printf "%s\n" "${gy_headers}" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether xerces library path is provided" >&5 printf %s "checking whether xerces library path is provided... " >&6; } # Check whether --with-xerces-libs was given. if test ${with_xerces_libs+y} then : withval=$with_xerces_libs; gy_with=yes gy_lib=${withval/:/ -L} case "x$gy_lib" in x\-L*) ;; x) ;; x*) gy_lib=-L$gy_lib ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gy_lib" >&5 printf "%s\n" "$gy_lib" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Now check whether or not to use pkg-config for this library if test "x$gy_headers" == "x" \ && test "x$gy_lib" == "x" \ && test "x$PKG_CONFIG" != "x" then : pkg_failed=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XERCES" >&5 printf %s "checking for XERCES... " >&6; } if test -n "$XERCES_CFLAGS"; then pkg_cv_XERCES_CFLAGS="$XERCES_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xerces-c\""; } >&5 ($PKG_CONFIG --exists --print-errors "xerces-c") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XERCES_CFLAGS=`$PKG_CONFIG --cflags "xerces-c" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$XERCES_LIBS"; then pkg_cv_XERCES_LIBS="$XERCES_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xerces-c\""; } >&5 ($PKG_CONFIG --exists --print-errors "xerces-c") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XERCES_LIBS=`$PKG_CONFIG --libs "xerces-c" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } 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 XERCES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xerces-c" 2>&1` else XERCES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xerces-c" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$XERCES_PKG_ERRORS" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: xerces-c.pc not found" >&5 printf "%s\n" "$as_me: xerces-c.pc not found" >&6;} elif test $pkg_failed = untried; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: xerces-c.pc not found" >&5 printf "%s\n" "$as_me: xerces-c.pc not found" >&6;} else XERCES_CFLAGS=$pkg_cv_XERCES_CFLAGS XERCES_LIBS=$pkg_cv_XERCES_LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } pkg_requires="${pkg_requires} xerces-c" gy_have=yes fi fi # Failing that, check without pkg-config if test "x$gy_have" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XERCES (without pkg-config)" >&5 printf %s "checking for XERCES (without pkg-config)... " >&6; } if test "x$gy_header" == "x" then : gy_headers=$gy_default_cppflags fi TMPCPPFLAGS=$CPPFLAGS TMPCFLAGS=$CFLAGS TMPLDFLAGS=$LDFLAGS TMPLIBS=$LIBS CPPFLAGS="$TMPCPPFLAGS $gy_headers" LDFLAGS="$TMPLDFLAGS $gy_lib" LIBS=-lxerces-c cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { xercesc::XMLPlatformUtils::Initialize(); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO" then : gy_have=yes xerces_headers=$gy_headers xerces_lib=$gy_lib XERCES_LIBS="$gy_lib -lxerces-c" XERCES_CFLAGS="$gy_headers" pkg_cflags="${pkg_cflags} ${XERCES_CFLAGS}" pkg_libs="${pkg_libs} ${XERCES_LIBS}" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS=$TMPCPPFLAGS LDFLAGS=$TMPLDFLAGS LIBS=$TMPLIBS fi fi have_xerces=$gy_have with_xerces=$withval if test "x$gy_have" == "xno" then : if test "x$gy_with" == "xyes" then : as_fn_error $? "xerces requested but not found" "$LINENO" 5 fi xerces_headers="" xerces_lib="" XERCES_LIBS="" XERCES_CFLAGS="" else $as_nop use_xerces=yes printf "%s\n" "#define GYOTO_USE_XERCES 1" >>confdefs.h fi if test "x$have_xerces" == "xyes"; then HAVE_XERCES_TRUE= HAVE_XERCES_FALSE='#' else HAVE_XERCES_TRUE='#' HAVE_XERCES_FALSE= fi if test "x$have_xerces" == "xno" then : FEATURES+="-noxml" if test "x$have_mpi" == "xyes" then : as_fn_error $? "The MPI feature set requires Xerces. Please reconfigure with --without-mpi or with --with-xerces." "$LINENO" 5 fi fi ## EIGEN # Check for EIGEN { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether eigen should be used" >&5 printf %s "checking whether eigen should be used... " >&6; } gy_headers= gy_default_cppflags= gy_lib= gy_CFLAGS= gy_LIBS= gy_with=$with_eigen # Check whether --with-eigen was given. if test ${with_eigen+y} then : withval=$with_eigen; if test "x$withval" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } elif test "x$withval" != "xyes" then : gy_headers=-I$withval/include gy_lib=-L$withval/lib gy_with=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } fi else $as_nop gy_with=check { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: probe" >&5 printf "%s\n" "probe" >&6; } fi gy_have=no if test "x$gy_with" != "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether eigen include path is provided" >&5 printf %s "checking whether eigen include path is provided... " >&6; } # Check whether --with-eigen-headers was given. if test ${with_eigen_headers+y} then : withval=$with_eigen_headers; gy_with=yes gy_headers=${withval/:/ -I} case "x$gy_headers" in x\-I*) ;; x) ;; x*) gy_headers=-I$gy_headers ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${gy_headers}" >&5 printf "%s\n" "${gy_headers}" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether eigen library path is provided" >&5 printf %s "checking whether eigen library path is provided... " >&6; } # Check whether --with-eigen-libs was given. if test ${with_eigen_libs+y} then : withval=$with_eigen_libs; gy_with=yes gy_lib=${withval/:/ -L} case "x$gy_lib" in x\-L*) ;; x) ;; x*) gy_lib=-L$gy_lib ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gy_lib" >&5 printf "%s\n" "$gy_lib" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Now check whether or not to use pkg-config for this library if test "x$gy_headers" == "x" \ && test "x$gy_lib" == "x" \ && test "x$PKG_CONFIG" != "x" then : pkg_failed=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EIGEN" >&5 printf %s "checking for EIGEN... " >&6; } if test -n "$EIGEN_CFLAGS"; then pkg_cv_EIGEN_CFLAGS="$EIGEN_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eigen3\""; } >&5 ($PKG_CONFIG --exists --print-errors "eigen3") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_EIGEN_CFLAGS=`$PKG_CONFIG --cflags "eigen3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$EIGEN_LIBS"; then pkg_cv_EIGEN_LIBS="$EIGEN_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eigen3\""; } >&5 ($PKG_CONFIG --exists --print-errors "eigen3") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_EIGEN_LIBS=`$PKG_CONFIG --libs "eigen3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } 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 EIGEN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "eigen3" 2>&1` else EIGEN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "eigen3" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$EIGEN_PKG_ERRORS" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: eigen3.pc not found" >&5 printf "%s\n" "$as_me: eigen3.pc not found" >&6;} elif test $pkg_failed = untried; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: eigen3.pc not found" >&5 printf "%s\n" "$as_me: eigen3.pc not found" >&6;} else EIGEN_CFLAGS=$pkg_cv_EIGEN_CFLAGS EIGEN_LIBS=$pkg_cv_EIGEN_LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } pkg_requires="${pkg_requires} eigen3" gy_have=yes fi fi # Failing that, check without pkg-config if test "x$gy_have" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EIGEN (without pkg-config)" >&5 printf %s "checking for EIGEN (without pkg-config)... " >&6; } if test "x$gy_header" == "x" then : gy_headers=$gy_default_cppflags fi TMPCPPFLAGS=$CPPFLAGS TMPCFLAGS=$CFLAGS TMPLDFLAGS=$LDFLAGS TMPLIBS=$LIBS CPPFLAGS="$TMPCPPFLAGS $gy_headers" LDFLAGS="$TMPLDFLAGS $gy_lib" LIBS= cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { Eigen::MatrixXd m(2,2); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO" then : gy_have=yes eigen_headers=$gy_headers eigen_lib=$gy_lib EIGEN_LIBS="$gy_lib " EIGEN_CFLAGS="$gy_headers" pkg_cflags="${pkg_cflags} ${EIGEN_CFLAGS}" pkg_libs="${pkg_libs} ${EIGEN_LIBS}" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS=$TMPCPPFLAGS LDFLAGS=$TMPLDFLAGS LIBS=$TMPLIBS fi fi have_eigen=$gy_have with_eigen=$withval if test "x$gy_have" == "xno" then : if test "x$gy_with" == "xyes" then : as_fn_error $? "eigen requested but not found" "$LINENO" 5 fi eigen_headers="" eigen_lib="" EIGEN_LIBS="" EIGEN_CFLAGS="" else $as_nop use_eigen=yes printf "%s\n" "#define GYOTO_USE_EIGEN 1" >>confdefs.h fi if test "x$have_eigen" == "xyes"; then HAVE_EIGEN_TRUE= HAVE_EIGEN_FALSE='#' else HAVE_EIGEN_TRUE='#' HAVE_EIGEN_FALSE= fi if test "x$have_eigen" == "xno" then : as_fn_error $? "The Eigen library is required for building Gyoto." "$LINENO" 5 fi ## CFITSIO # Check for CFITSIO { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cfitsio should be used" >&5 printf %s "checking whether cfitsio should be used... " >&6; } gy_headers= gy_default_cppflags= gy_lib= gy_CFLAGS= gy_LIBS= gy_with=$with_cfitsio # Check whether --with-cfitsio was given. if test ${with_cfitsio+y} then : withval=$with_cfitsio; if test "x$withval" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } elif test "x$withval" != "xyes" then : gy_headers=-I$withval/include gy_lib=-L$withval/lib gy_with=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } fi else $as_nop gy_with=check { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: probe" >&5 printf "%s\n" "probe" >&6; } fi gy_have=no if test "x$gy_with" != "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cfitsio include path is provided" >&5 printf %s "checking whether cfitsio include path is provided... " >&6; } # Check whether --with-cfitsio-headers was given. if test ${with_cfitsio_headers+y} then : withval=$with_cfitsio_headers; gy_with=yes gy_headers=${withval/:/ -I} case "x$gy_headers" in x\-I*) ;; x) ;; x*) gy_headers=-I$gy_headers ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${gy_headers}" >&5 printf "%s\n" "${gy_headers}" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cfitsio library path is provided" >&5 printf %s "checking whether cfitsio library path is provided... " >&6; } # Check whether --with-cfitsio-libs was given. if test ${with_cfitsio_libs+y} then : withval=$with_cfitsio_libs; gy_with=yes gy_lib=${withval/:/ -L} case "x$gy_lib" in x\-L*) ;; x) ;; x*) gy_lib=-L$gy_lib ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gy_lib" >&5 printf "%s\n" "$gy_lib" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Now check whether or not to use pkg-config for this library if test "x$gy_headers" == "x" \ && test "x$gy_lib" == "x" \ && test "x$PKG_CONFIG" != "x" then : pkg_failed=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFITSIO" >&5 printf %s "checking for CFITSIO... " >&6; } if test -n "$CFITSIO_CFLAGS"; then pkg_cv_CFITSIO_CFLAGS="$CFITSIO_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cfitsio\""; } >&5 ($PKG_CONFIG --exists --print-errors "cfitsio") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CFITSIO_CFLAGS=`$PKG_CONFIG --cflags "cfitsio" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CFITSIO_LIBS"; then pkg_cv_CFITSIO_LIBS="$CFITSIO_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cfitsio\""; } >&5 ($PKG_CONFIG --exists --print-errors "cfitsio") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CFITSIO_LIBS=`$PKG_CONFIG --libs "cfitsio" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } 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 CFITSIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cfitsio" 2>&1` else CFITSIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cfitsio" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CFITSIO_PKG_ERRORS" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: cfitsio.pc not found" >&5 printf "%s\n" "$as_me: cfitsio.pc not found" >&6;} elif test $pkg_failed = untried; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: cfitsio.pc not found" >&5 printf "%s\n" "$as_me: cfitsio.pc not found" >&6;} else CFITSIO_CFLAGS=$pkg_cv_CFITSIO_CFLAGS CFITSIO_LIBS=$pkg_cv_CFITSIO_LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } pkg_requires="${pkg_requires} cfitsio" gy_have=yes fi fi # Failing that, check without pkg-config if test "x$gy_have" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFITSIO (without pkg-config)" >&5 printf %s "checking for CFITSIO (without pkg-config)... " >&6; } if test "x$gy_header" == "x" then : gy_headers=$gy_default_cppflags fi TMPCPPFLAGS=$CPPFLAGS TMPCFLAGS=$CFLAGS TMPLDFLAGS=$LDFLAGS TMPLIBS=$LIBS CPPFLAGS="$TMPCPPFLAGS $gy_headers" LDFLAGS="$TMPLDFLAGS $gy_lib" LIBS=-lcfitsio cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { fitsfile* fptr=NULL; std::string file=""; int status=0; fits_open_file(&fptr, file.c_str(), 0, &status); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO" then : gy_have=yes cfitsio_headers=$gy_headers cfitsio_lib=$gy_lib CFITSIO_LIBS="$gy_lib -lcfitsio" CFITSIO_CFLAGS="$gy_headers" pkg_cflags="${pkg_cflags} ${CFITSIO_CFLAGS}" pkg_libs="${pkg_libs} ${CFITSIO_LIBS}" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS=$TMPCPPFLAGS LDFLAGS=$TMPLDFLAGS LIBS=$TMPLIBS fi fi have_cfitsio=$gy_have with_cfitsio=$withval if test "x$gy_have" == "xno" then : if test "x$gy_with" == "xyes" then : as_fn_error $? "cfitsio requested but not found" "$LINENO" 5 fi cfitsio_headers="" cfitsio_lib="" CFITSIO_LIBS="" CFITSIO_CFLAGS="" else $as_nop use_cfitsio=yes printf "%s\n" "#define GYOTO_USE_CFITSIO 1" >>confdefs.h fi if test "x$have_cfitsio" == "xyes"; then HAVE_CFITSIO_TRUE= HAVE_CFITSIO_FALSE='#' else HAVE_CFITSIO_TRUE='#' HAVE_CFITSIO_FALSE= fi if test "x$have_cfitsio" == "xno" then : FEATURES+="-nofits" fi ## ARBLIB # Check for ARBLIB have_2f1=no # If AEAE if explicitely requested, skip ARBLIB checks. case "x$with_aeae" in x) ;; xno) ;; x*) with_arblib=no ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether arblib library name is provided" >&5 printf %s "checking whether arblib library name is provided... " >&6; } if test "x$with_arblib_ldflags" == "x" then : arblib_ldflags= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } else $as_nop with_arblib=yes arblib_ldflags=$with_arblib_ldflags { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $arblib_ldflags" >&5 printf "%s\n" "$arblib_ldflags" >&6; } fi if test "x$arblib_ldflags" == "x" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing acb_init" >&5 printf %s "checking for library containing acb_init... " >&6; } if test ${ac_cv_search_acb_init+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ namespace conftest { extern "C" int acb_init (); } int main (void) { return conftest::acb_init (); ; return 0; } _ACEOF for ac_lib in '' flint flint-arb arb do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_cxx_try_link "$LINENO" then : ac_cv_search_acb_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_acb_init+y} then : break fi done if test ${ac_cv_search_acb_init+y} then : else $as_nop ac_cv_search_acb_init=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acb_init" >&5 printf "%s\n" "$ac_cv_search_acb_init" >&6; } ac_res=$ac_cv_search_acb_init if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" arblib_ldflags=$ac_cv_search_acb_init fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether arblib header directory is provided" >&5 printf %s "checking whether arblib header directory is provided... " >&6; } if test "x$with_arblib_headers" == "x" then : arblib_headers= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } else $as_nop with_arblib=yes arblib_headers=$with_arblib_headers { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $arblib_headers" >&5 printf "%s\n" "$arblib_headers" >&6; } fi arglib_default_cppflags= if test "x$arblib_headers" == "x" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for arblib headers in default locations" >&5 printf "%s\n" "$as_me: looking for arblib headers in default locations" >&6;} fi for ac_header in acb.h do : ac_fn_cxx_check_header_compile "$LINENO" "acb.h" "ac_cv_header_acb_h" "$ac_includes_default" if test "x$ac_cv_header_acb_h" = xyes then : printf "%s\n" "#define HAVE_ACB_H 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: arblib headers found without additional flags" >&5 printf "%s\n" "$as_me: arblib headers found without additional flags" >&6;} else $as_nop { ac_cv_header_acb_h=; unset ac_cv_header_acb_h;} TMPCPPFLAGS=$CPPFLAGS CPPFLAGS="$TMPCPPFLAGS -I/usr/include/flint/" for ac_header in acb.h do : ac_fn_cxx_check_header_compile "$LINENO" "acb.h" "ac_cv_header_acb_h" "$ac_includes_default" if test "x$ac_cv_header_acb_h" = xyes then : printf "%s\n" "#define HAVE_ACB_H 1" >>confdefs.h arglib_default_cppflags=-I/usr/include/flint/ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: arblib headers found in /usr/include/flint/" >&5 printf "%s\n" "$as_me: arblib headers found in /usr/include/flint/" >&6;} else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: arblib not found in default locations" >&5 printf "%s\n" "$as_me: arblib not found in default locations" >&6;} CPPFLAGS=$TMPCPPFLAGS fi done fi done { ac_cv_header_acb_h=; unset ac_cv_header_acb_h;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether arblib should be used" >&5 printf %s "checking whether arblib should be used... " >&6; } gy_headers= gy_default_cppflags=$arglib_default_cppflags gy_lib= gy_CFLAGS= gy_LIBS= gy_with=$with_arblib # Check whether --with-arblib was given. if test ${with_arblib+y} then : withval=$with_arblib; if test "x$withval" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } elif test "x$withval" != "xyes" then : gy_headers=-I$withval/include gy_lib=-L$withval/lib gy_with=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } fi else $as_nop gy_with=check { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: probe" >&5 printf "%s\n" "probe" >&6; } fi gy_have=no if test "x$gy_with" != "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether arblib include path is provided" >&5 printf %s "checking whether arblib include path is provided... " >&6; } # Check whether --with-arblib-headers was given. if test ${with_arblib_headers+y} then : withval=$with_arblib_headers; gy_with=yes gy_headers=${withval/:/ -I} case "x$gy_headers" in x\-I*) ;; x) ;; x*) gy_headers=-I$gy_headers ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${gy_headers}" >&5 printf "%s\n" "${gy_headers}" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether arblib library path is provided" >&5 printf %s "checking whether arblib library path is provided... " >&6; } # Check whether --with-arblib-libs was given. if test ${with_arblib_libs+y} then : withval=$with_arblib_libs; gy_with=yes gy_lib=${withval/:/ -L} case "x$gy_lib" in x\-L*) ;; x) ;; x*) gy_lib=-L$gy_lib ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gy_lib" >&5 printf "%s\n" "$gy_lib" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Now check whether or not to use pkg-config for this library if test "x$gy_headers" == "x" \ && test "x$gy_lib" == "x" \ && test "x$PKG_CONFIG" != "x" then : pkg_failed=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARBLIB" >&5 printf %s "checking for ARBLIB... " >&6; } if test -n "$ARBLIB_CFLAGS"; then pkg_cv_ARBLIB_CFLAGS="$ARBLIB_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"arblib\""; } >&5 ($PKG_CONFIG --exists --print-errors "arblib") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ARBLIB_CFLAGS=`$PKG_CONFIG --cflags "arblib" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ARBLIB_LIBS"; then pkg_cv_ARBLIB_LIBS="$ARBLIB_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"arblib\""; } >&5 ($PKG_CONFIG --exists --print-errors "arblib") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ARBLIB_LIBS=`$PKG_CONFIG --libs "arblib" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } 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 ARBLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "arblib" 2>&1` else ARBLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "arblib" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ARBLIB_PKG_ERRORS" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: arblib.pc not found" >&5 printf "%s\n" "$as_me: arblib.pc not found" >&6;} elif test $pkg_failed = untried; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: arblib.pc not found" >&5 printf "%s\n" "$as_me: arblib.pc not found" >&6;} else ARBLIB_CFLAGS=$pkg_cv_ARBLIB_CFLAGS ARBLIB_LIBS=$pkg_cv_ARBLIB_LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } pkg_requires="${pkg_requires} arblib" gy_have=yes fi fi # Failing that, check without pkg-config if test "x$gy_have" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARBLIB (without pkg-config)" >&5 printf %s "checking for ARBLIB (without pkg-config)... " >&6; } if test "x$gy_header" == "x" then : gy_headers=$gy_default_cppflags fi TMPCPPFLAGS=$CPPFLAGS TMPCFLAGS=$CFLAGS TMPLDFLAGS=$LDFLAGS TMPLIBS=$LIBS CPPFLAGS="$TMPCPPFLAGS $gy_headers" LDFLAGS="$TMPLDFLAGS $gy_lib" LIBS=$arblib_ldflags cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { double hypergeom = 0., rad=0., kappaIndex=5., thetae=1; acb_t FF, aa, bb, cc, zed; acb_init(FF); acb_init(aa); acb_init(bb); acb_init(cc); acb_init(zed); acb_set_d_d(aa, kappaIndex-1./3., 0.); acb_set_d_d(bb, kappaIndex+1., 0.); acb_set_d_d(cc, kappaIndex+2./3., 0.); acb_set_d_d(zed, -kappaIndex*thetae, 0.); slong prec=53; acb_hypgeom_2f1(FF, aa, bb, cc, zed, ACB_HYPGEOM_2F1_AC, prec); hypergeom = arf_get_d(&acb_realref(FF)->mid, ARF_RND_NEAR); rad = mag_get_d(&acb_realref(FF)->rad); acb_clear(FF); acb_clear(aa); acb_clear(bb); acb_clear(cc); acb_clear(zed); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO" then : gy_have=yes arblib_headers=$gy_headers arblib_lib=$gy_lib ARBLIB_LIBS="$gy_lib $arblib_ldflags" ARBLIB_CFLAGS="$gy_headers" pkg_cflags="${pkg_cflags} ${ARBLIB_CFLAGS}" pkg_libs="${pkg_libs} ${ARBLIB_LIBS}" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS=$TMPCPPFLAGS LDFLAGS=$TMPLDFLAGS LIBS=$TMPLIBS fi fi have_arblib=$gy_have with_arblib=$withval if test "x$gy_have" == "xno" then : if test "x$gy_with" == "xyes" then : as_fn_error $? "arblib requested but not found" "$LINENO" 5 fi arblib_headers="" arblib_lib="" ARBLIB_LIBS="" ARBLIB_CFLAGS="" else $as_nop use_arblib=yes printf "%s\n" "#define GYOTO_USE_ARBLIB 1" >>confdefs.h fi if test "x$have_arblib" == "xyes"; then HAVE_ARBLIB_TRUE= HAVE_ARBLIB_FALSE='#' else HAVE_ARBLIB_TRUE='#' HAVE_ARBLIB_FALSE= fi # Check whether --with-arblib-ldflags was given. if test ${with_arblib_ldflags+y} then : withval=$with_arblib_ldflags; fi if test "x$have_arblib" == "xyes" then : have_2f1=yes with_aeae=no else $as_nop arblib_ldflags= fi ## AEAE # Check for AEAE { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether aeae should be used" >&5 printf %s "checking whether aeae should be used... " >&6; } aeae_headers= # Check whether --with-aeae was given. if test ${with_aeae+y} then : withval=$with_aeae; if test "x$with_aeae" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } elif test "x$with_aeae" != "xyes" then : aeae_headers=$with_aeae case "x$aeae_headers" in x\-I*) ;; x) ;; x*) aeae_headers=-I$aeae_headers ;; esac with_aeae=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } fi else $as_nop with_aeae=check { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: probe" >&5 printf "%s\n" "probe" >&6; } fi have_aeae=no if test "x$with_aeae" != "xno" then : if test "x$have_aeae" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aeae" >&5 printf %s "checking for aeae... " >&6; } TMPCPPFLAGS=$CPPFLAGS CPPFLAGS="$TMPCPPFLAGS $aeae_headers" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #define SIGN(a) (((a) < 0) ? (-1) : (1)) using namespace std; #include "complex_functions.H" #include "hyp_2F1.cpp" int main (void) { double hypergeom = 0., kappaIndex=5., thetae=1; complex aa=kappaIndex-1./3., bb=kappaIndex+1., cc=kappaIndex+2./3., zed=-kappaIndex*thetae; const complex FF = hyp_2F1(aa,bb,cc,zed); hypergeom = FF.real(); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO" then : have_aeae=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS=$TMPCPPFLAGS AEAE_CFLAGS="$aeae_headers" pkg_cflags="${pkg_cflags} ${AEAE_CFLAGS}" fi fi if test "x$have_aeae" == "xno" then : if test "x$with_aeae" == "xyes" then : as_fn_error $? "aeae requested but not found" "$LINENO" 5 fi else $as_nop have_2f1=yes printf "%s\n" "#define GYOTO_USE_AEAE 1" >>confdefs.h fi if test "x$have_aeae" == "xyes"; then HAVE_AEAE_TRUE= HAVE_AEAE_FALSE='#' else HAVE_AEAE_TRUE='#' HAVE_AEAE_FALSE= fi if test "x$have_2f1" == "xyes"; then HAVE_2F1_TRUE= HAVE_2F1_FALSE='#' else HAVE_2F1_TRUE='#' HAVE_2F1_FALSE= fi ## LORENE # Check for LORENE { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LORENE" >&5 printf %s "checking for LORENE... " >&6; } if test "x$MAKE_S" = "x" then : MAKE_S="make -s" fi # first check whether LORENE is required and get HOME_LORENE require_lorene=no # Check whether --with-lorene was given. if test ${with_lorene+y} then : withval=$with_lorene; if test "x$with_lorene" == "xno" then : HOME_LORENE="" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } elif test "x$with_lorene" == "xyes" then : require_lorene=yes if test "x$HOME_LORENE" != "x" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HOME_LORENE" >&5 printf "%s\n" "$HOME_LORENE" >&6; } else $as_nop as_fn_error $? "--with-lorene passed with no path: please specify LORENE path either using the HOME_LORENE environment variable or --with-lorene=." "$LINENO" 5 fi else $as_nop require_lorene=yes HOME_LORENE="$with_lorene" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HOME_LORENE" >&5 printf "%s\n" "$HOME_LORENE" >&6; } fi else $as_nop if test "x$HOME_LORENE" != "x" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HOME_LORENE" >&5 printf "%s\n" "$HOME_LORENE" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi # then check whether LORENE is actually installed in HOME_LORENE # finally output HOME_LORENE if test "x$HOME_LORENE" != "x"; then HAVE_LORENE_TRUE= HAVE_LORENE_FALSE='#' else HAVE_LORENE_TRUE='#' HAVE_LORENE_FALSE= fi if test "x$HOME_LORENE" != "x" then : if test ! -r ${HOME_LORENE}/local_settings then : as_fn_error $? "${HOME_LORENE}/local_settings not found" "$LINENO" 5 fi cat >conftest.make <<_ACEOF include \$(HOME_LORENE)/local_settings conftest.make: touch conftest.make %: conftest.make @echo \$(\$@) _ACEOF LORENELDFLAGS="-L$HOME_LORENE/Lib -llorene" LORENELDFLAGS="$LORENELDFLAGS `$MAKE_S HOME_LORENE=$HOME_LORENE -f conftest.make LIB_LAPACK | tr -d '\n\r'`" LORENELDFLAGS="$LORENELDFLAGS `$MAKE_S HOME_LORENE=$HOME_LORENE -f conftest.make LIB_GSL | tr -d '\n\r'`" LORENELDFLAGS="$LORENELDFLAGS `$MAKE_S HOME_LORENE=$HOME_LORENE -f conftest.make LIB_PGPLOT | tr -d '\n\r'`" LORENELDFLAGS="$LORENELDFLAGS `$MAKE_S HOME_LORENE=$HOME_LORENE -f conftest.make LIB_LORENE | tr -d '\n\r'`" LORENELDFLAGS="$LORENELDFLAGS `$MAKE_S HOME_LORENE=$HOME_LORENE -f conftest.make LIB_CXX | tr -d '\n\r'`" LORENECPPFLAGS=`$MAKE_S HOME_LORENE=$HOME_LORENE -f conftest.make INC | tr -d '\n\r'` LORENECPPFLAGS="$LORENECPPFLAGS" rm conftest.make pkg_cflags="${pkg_cflags} ${LORENECPPFLAGS}" pkg_libss="${pkg_libss} ${LORENELDFLAGS}" fi ## DOCUMENTATION # disable doc # Check whether --enable-doc was given. if test ${enable_doc+y} then : enableval=$enable_doc; if test "x$enable_doc" == "xyes" then : mkdoc=yes elif test "x$enable_doc" == "xno" then : mkdoc=no else $as_nop as_fn_error $? "Please set --disable-doc or --enable-doc only to \`\`yes'' or \`\`no''" "$LINENO" 5 fi else $as_nop mkdoc=yes fi # check if doxygen is available if test "x$DOXYGEN" != "x"; then MKREF_TRUE= MKREF_FALSE='#' else MKREF_TRUE='#' MKREF_FALSE= fi # check if all the necessary LaTeX tools are available if test "x$KPSEWHICH" != "x" && ${KPSEWHICH} kluwer.bst && test "x$PDFLATEX" != "x" && test "x$BIBTEX" != "x"; then MKGUIDE_TRUE= MKGUIDE_FALSE='#' else MKGUIDE_TRUE='#' MKGUIDE_FALSE= fi #################### FINALIZATION ################################### # Finalization: select output files, subdirs etc. mySUBDIRS="lib" build_exec=no if test "x$have_mpi" == xyes then : build_exec=yes fi if test "x$use_xerces" != "x" && test "x$use_cfitsio" != "x" then : build_exec=yes fi if test "x$build_exec" == xyes then : mySUBDIRS="$mySUBDIRS bin" fi if test "x$use_xerces" != "x" && test "x$use_cfitsio" != "x"; then BUILD_GYOTO_TRUE= BUILD_GYOTO_FALSE='#' else BUILD_GYOTO_TRUE='#' BUILD_GYOTO_FALSE= fi sovers=$(( VERSINFO_C - VERSINFO_A )) sovers+=$FEATURES printf "%s\n" "#define GYOTO_SOVERS \"${sovers}\"" >>confdefs.h if test "x$PYTHON" != "x" then : subdirs="$subdirs plugins/python" mySUBDIRS="$mySUBDIRS python" fi ac_config_files="$ac_config_files Makefile bin/Makefile doc/Makefile doc/doxyfile doc/user_guide/Makefile lib/Makefile lib/gyoto.pc lib/gyoto-uninstalled.pc" if test "x$YORICK" != "x" then : mySUBDIRS="$mySUBDIRS yorick" ac_config_files="$ac_config_files yorick/Makefile" ac_config_files="$ac_config_files yorick/stdplug/Makefile" ac_config_files="$ac_config_files yorick/gyoto.info yorick/yorick1 yorick/setpaths.i" ac_config_files="$ac_config_files gyoto" fi if test "x$PYTHON" != "x" then : ac_config_files="$ac_config_files python/Makefile python/setup.py" fi if test "x$DOXYGEN" != "x" && test "x$mkdoc" == "xyes" then : mySUBDIRS="$mySUBDIRS doc" fi 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_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$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+y} || &/ 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 printf "%s\n" "$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=`printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 printf "%s\n" "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= 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_LOCALPKGLIBDIR_TRUE}" && test -z "${HAVE_LOCALPKGLIBDIR_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCALPKGLIBDIR\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_MPI_TRUE}" && test -z "${HAVE_MPI_FALSE}"; then as_fn_error $? "conditional \"HAVE_MPI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_YORICK_TRUE}" && test -z "${HAVE_YORICK_FALSE}"; then as_fn_error $? "conditional \"HAVE_YORICK\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_UDUNITS_TRUE}" && test -z "${HAVE_UDUNITS_FALSE}"; then as_fn_error $? "conditional \"HAVE_UDUNITS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_XERCES_TRUE}" && test -z "${HAVE_XERCES_FALSE}"; then as_fn_error $? "conditional \"HAVE_XERCES\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_EIGEN_TRUE}" && test -z "${HAVE_EIGEN_FALSE}"; then as_fn_error $? "conditional \"HAVE_EIGEN\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_CFITSIO_TRUE}" && test -z "${HAVE_CFITSIO_FALSE}"; then as_fn_error $? "conditional \"HAVE_CFITSIO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_ARBLIB_TRUE}" && test -z "${HAVE_ARBLIB_FALSE}"; then as_fn_error $? "conditional \"HAVE_ARBLIB\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_AEAE_TRUE}" && test -z "${HAVE_AEAE_FALSE}"; then as_fn_error $? "conditional \"HAVE_AEAE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_2F1_TRUE}" && test -z "${HAVE_2F1_FALSE}"; then as_fn_error $? "conditional \"HAVE_2F1\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LORENE_TRUE}" && test -z "${HAVE_LORENE_FALSE}"; then as_fn_error $? "conditional \"HAVE_LORENE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MKREF_TRUE}" && test -z "${MKREF_FALSE}"; then as_fn_error $? "conditional \"MKREF\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MKGUIDE_TRUE}" && test -z "${MKGUIDE_FALSE}"; then as_fn_error $? "conditional \"MKGUIDE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_GYOTO_TRUE}" && test -z "${BUILD_GYOTO_FALSE}"; then as_fn_error $? "conditional \"BUILD_GYOTO\" 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" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 printf "%s\n" "$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 as_nop=: if test ${ZSH_VERSION+y} && (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 $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; 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 # 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # 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 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$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_nop 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_nop 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 || printf "%s\n" 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 # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. 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 # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' 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=`printf "%s\n" "$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 || printf "%s\n" 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 Gyoto $as_me 2.0.2, which was generated by GNU Autoconf 2.71. 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 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ Gyoto config.status 2.0.2 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" Copyright (C) 2021 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 ) printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`printf "%s\n" "$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=`printf "%s\n" "$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 ) printf "%s\n" "$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 \printf "%s\n" "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 printf "%s\n" "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" # 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' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $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"`' FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $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"`' DLLTOOL='`$ECHO "$DLLTOOL" | $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"`' lt_ar_flags='`$ECHO "$lt_ar_flags" | $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 SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ FILECMD \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ DLLTOOL \ sharedlib_from_linklib_cmd \ AR \ 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' YORICK=$YORICK YORICK=$YORICK _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 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "include/GyotoConfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/GyotoConfig.h" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "doc/doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxyfile" ;; "doc/user_guide/Makefile") CONFIG_FILES="$CONFIG_FILES doc/user_guide/Makefile" ;; "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; "lib/gyoto.pc") CONFIG_FILES="$CONFIG_FILES lib/gyoto.pc" ;; "lib/gyoto-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES lib/gyoto-uninstalled.pc" ;; "yorick/Makefile") CONFIG_FILES="$CONFIG_FILES yorick/Makefile" ;; "yorick/stdplug/Makefile") CONFIG_FILES="$CONFIG_FILES yorick/stdplug/Makefile" ;; "yorick/gyoto.info") CONFIG_FILES="$CONFIG_FILES yorick/gyoto.info" ;; "yorick/yorick1") CONFIG_FILES="$CONFIG_FILES yorick/yorick1" ;; "yorick/setpaths.i") CONFIG_FILES="$CONFIG_FILES yorick/setpaths.i" ;; "gyoto") CONFIG_FILES="$CONFIG_FILES gyoto" ;; "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;; *) 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+y} || CONFIG_FILES=$config_files test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers test ${CONFIG_COMMANDS+y} || 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=`printf "%s\n" "$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 '` printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`printf "%s\n" "$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 || printf "%s\n" 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=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$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@*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 printf "%s\n" "$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"; } && { printf "%s\n" "$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 printf "%s\n" "$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 { printf "%s\n" "/* $configure_input */" >&1 \ && 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 printf "%s\n" "$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 printf "%s\n" "/* $configure_input */" >&1 \ && 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 || printf "%s\n" 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) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 printf "%s\n" "$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. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. case $CONFIG_FILES in #( *\'*) : eval set x "$CONFIG_FILES" ;; #( *) : set x $CONFIG_FILES ;; #( *) : ;; esac shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`$as_dirname -- "$am_mf" || $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$am_mf" : 'X\(//\)[^/]' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` am_filepart=`$as_basename -- "$am_mf" || $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$am_mf" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` { echo "$as_me:$LINENO: cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles" >&5 (cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). See \`config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} { am_mf=; unset am_mf;} { am_rc=; unset am_rc;} rm -f conftest-deps.mk } ;; "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 # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # 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 # A file(cmd) program that detects file types. FILECMD=$lt_FILECMD # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # 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 # DLL creation program. DLLTOOL=$lt_DLLTOOL # 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 (by configure). lt_ar_flags=$lt_ar_flags # Flags to create an archive. AR_FLAGS=\${ARFLAGS-"\$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 ;; "yorick/Makefile":F) oldpwd=`pwd` cd yorick $YORICK -batch make.i cd $oldpwd ;; "yorick/stdplug/Makefile":F) oldpwd=`pwd` cd yorick/stdplug $YORICK -batch make.i cd $oldpwd ;; "yorick/gyoto.info":F) chmod a+x yorick/yorick1 ;; "yorick/yorick1":F) chmod a+x yorick/yorick1 ;; "yorick/setpaths.i":F) chmod a+x yorick/yorick1 ;; "gyoto":F) chmod a+x gyoto ;; 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 # # CONFIG_SUBDIRS section. # if test "$no_recursion" != yes; then # Remove --cache-file, --srcdir, and --disable-option-checking arguments # so they do not pile up. ac_sub_configure_args= ac_prev= eval "set x $ac_configure_args" shift for ac_arg do if test -n "$ac_prev"; then ac_prev= continue fi case $ac_arg in -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=*) ;; --config-cache | -C) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; --disable-option-checking) ;; *) case $ac_arg in *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append ac_sub_configure_args " '$ac_arg'" ;; esac done # Always prepend --prefix to ensure using the same prefix # in subdir configurations. ac_arg="--prefix=$prefix" case $ac_arg in *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" # Pass --silent if test "$silent" = yes; then ac_sub_configure_args="--silent $ac_sub_configure_args" fi # Always prepend --disable-option-checking to silence warnings, since # different subdirs can have different --enable and --with options. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" ac_popdir=`pwd` for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. test -d "$srcdir/$ac_dir" || continue ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 printf "%s\n" "$ac_msg" >&6 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=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$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" # Check for configure.gnu first; this name is used for a wrapper for # Metaconfig's "Configure" on case-insensitive file systems. if test -f "$ac_srcdir/configure.gnu"; then ac_sub_configure=$ac_srcdir/configure.gnu elif test -f "$ac_srcdir/configure"; then ac_sub_configure=$ac_srcdir/configure else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ac_sub_configure= fi # The recursion is here. if test -n "$ac_sub_configure"; then # Make the cache file name correct relative to the subdirectory. case $cache_file in [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; *) # Relative name. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 fi cd "$ac_popdir" done fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi ########################## SUMMARY ############################ if test "x$have_xerces" == "xno" || test "x$have_cfitsio" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building without xerces-c and/or cfitsio. *** The gyoto executable will not be built! *** Gyoto can still be used as a C++ library and through the Yorick plug-in (although without XML support and/or without certain object types). " >&5 printf "%s\n" "$as_me: WARNING: Building without xerces-c and/or cfitsio. *** The gyoto executable will not be built! *** Gyoto can still be used as a C++ library and through the Yorick plug-in (although without XML support and/or without certain object types). " >&2;} fi if test "x$have_udunits" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building without udunits *** Unit conversions disabled *** " >&5 printf "%s\n" "$as_me: WARNING: Building without udunits *** Unit conversions disabled *** " >&2;} fi if test "x$have_boost" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building without boost *** Advanced integrators disabled *** The advanced integrators require the Boost library (>=1.53) and a C++ compiler that supports the c++11 standard. " >&5 printf "%s\n" "$as_me: WARNING: Building without boost *** Advanced integrators disabled *** The advanced integrators require the Boost library (>=1.53) and a C++ compiler that supports the c++11 standard. " >&2;} fi if test "x$have_2f1" == "xno" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building without 2F1 *** Hypergeometric functions unavailable *** Astrobj::Jet requires ARBLIB or AEAE. " >&5 printf "%s\n" "$as_me: WARNING: Building without 2F1 *** Hypergeometric functions unavailable *** Astrobj::Jet requires ARBLIB or AEAE. " >&2;} fi Gyoto-2.0.2/configure.ac000066400000000000000000000633471455254334400151300ustar00rootroot00000000000000# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. # Few bits where taken from pyconf, bearing this notice: dnl Copyright 2012, 2013 Brandon Invergo dnl dnl Copying and distribution of this file, with or without modification, dnl are permitted in any medium without royalty provided the copyright dnl notice and this notice are preserved. This file is offered as-is, dnl without any warranty. AC_PREREQ([2.71]) AC_INIT([Gyoto],[2.0.2],[gyoto@sympa.obspm.fr]) gyoto_test_CXXFLAGS=${CXXFLAGS+set} gyoto_test_CPPFLAGS=${CPPFLAGS+set} AC_CANONICAL_TARGET AM_INIT_AUTOMAKE([foreign]) AC_CONFIG_SRCDIR([include/GyotoKerrKS.h]) AC_CONFIG_MACRO_DIR([m4]) AC_LANG(C++) LT_INIT([dlopen disable-static]) AC_CONFIG_HEADERS([config.h include/GyotoConfig.h]) AC_SUBST([VERBATIM], []) # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html # C: current; R: revision; A: age # Linux library name is: libgyoto.so.(C-A).A.R VERSINFO_C=9 VERSINFO_R=1 VERSINFO_A=0 VERSINFO=${VERSINFO_C}:${VERSINFO_R}:${VERSINFO_A} AC_SUBST([VERSINFO]) ## Needed for gcc-5, should be harmless for other compilers: # AX_APPEND_COMPILE_FLAGS([-P], [CPPFLAGS]) ## Ensure local build does not have a release soname by default # FEATURES="" AC_ARG_ENABLE([release], [AS_HELP_STRING([--enable-release], [enable a release build (remove -unreleased from SONAME)])]) AS_IF([test "x$enable_release" != "xyes"], [FEATURES+="-unreleased"]) ## An additional directory to look for plug-ins # Default /usr/local/lib/gyoto, only if ${prefix} is not /usr/local AC_ARG_ENABLE([localpkglibdir], [AS_HELP_STRING([--enable-localpkglibdir[[=PKGLIBDIR]]], [additional directory to look for plug-ins [/usr/local/lib/gyoto, only if PREFIX is not /usr/local]. If specified, Gyoto will look for additional plug-ins in LOCALPKGLIBDIR/GYOTO_SOVERS and LOCALPKGLIBDIR before looking in PKGLIBDIR/GYOTO_SOVERS and PKGLIBDIR])], [], [AS_IF([test x${prefix} == xNONE || test "x${prefix}" == x/usr/local], [enable_localpkglibdir=no], [enable_localpkglibdir=yes])]) AS_IF([test x$enable_localpkglibdir != "xno"], [AS_IF([test x$enable_localpkglibdir == "xyes"], [localpkglibdir="/usr/local/lib/"${PACKAGE}], [localpkglibdir=$enable_localpkglibdir] )], [localpkglibdir=""]) AM_CONDITIONAL(HAVE_LOCALPKGLIBDIR, [test "x$localpkglibdir" != "x"]) AC_SUBST(localpkglibdir) ## SIGFPE delivery # AC_ARG_WITH([fenv], [AS_HELP_STRING([--without-fenv], [do not use fenv.h (see BUGS.md)],)], [], [with_fenv=auto]) AS_IF([test "x$with_fenv" != xno], [AC_MSG_CHECKING([for fenv.h]) AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[feenableexcept(FE_DIVBYZERO);]])],[AC_DEFINE([HAVE_FENV_H], [1], [Define to 1 to use fenv.h.]) HAVE_FENV_H=1 AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]) ]) AS_IF([test "x$with_fenv" = xyes && test "x$HAVE_FENV_H" != x1], [AC_MSG_ERROR(fenv.h required but not usable")]) ## IS SIZE_T EQUIVALENT TO UNSIGNED LONG? # AC_MSG_CHECKING(whether size_t is the same as unsigned long) AC_ARG_WITH([size_t], [AS_HELP_STRING([--with-size_t=same|distinct|auto], [consider size_t as the same as or distinct from unsigned long (auto). Should normally be specified only if cross-compiling.])], [AS_IF([test "x$with_size__t" != xsame && test "x$with_size__t" != xdistinct && test "x$with_size__t" != xauto], [AC_MSG_ERROR([with-size_t should be one of same, distinct or auto])]) ], [with_size__t=auto] ) AS_IF([test "x$with_size__t" = xauto], [AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include typedef void (* set_size_t_t) (size_t val); typedef void (* set_unsigned_long_t) (unsigned long); size_t size_t_value; void set_size_t (size_t v) {size_t_value = v;} int main(int, char**) { set_unsigned_long_t ulsetter = &set_size_t; (*ulsetter)(25); if (size_t_value != 25) return 1; return 0; } ]])],[with_size__t="same"],[with_size__t="distinct"],[]) ] ) AS_IF([test "x$with_size__t" = xsame], [AC_DEFINE([GYOTO_SIZE__T_IS_UNSIGNED_LONG], [1], [Define to 1 if size_t and unsigned long are the same])] ) AC_MSG_RESULT($with_size__t) # PYTHON STUFF AC_ARG_WITH([python], [AS_HELP_STRING([--with-python@<:@=interpreter@:>@],[force (or disable) python support, possibly specifying interpreter])], [ case $with_python in yes | no) ;; *) PYTHON=`which $with_python` || AC_MSG_ERROR([$with_python: command not found]) with_python=yes esac ], []) PC_PROG_PYTHON([python3], [3.0], [4.0]) PC_PYTHON_PROG_PYTHON_CONFIG PC_PYTHON_CHECK_HEADERS( [ PC_PYTHON_CHECK_INCLUDES PC_PYTHON_CHECK_CFLAGS PC_PYTHON_CHECK_LDFLAGS PC_PYTHON_CHECK_LIBS PC_PYTHON_CHECK_SITE_DIR PC_PYTHON_SITE_PACKAGE_DIR PC_PYTHON_CHECK_EXEC_DIR PC_PYTHON_CHECK_EXTENSION_SUFFIX PC_PYTHON_CHECK_EXEC_DIR ],[PYTHON=""]) AS_IF([test "x$with_python" = xno], [PYTHON=""]) AS_IF([test "x$with_python" = xyes && test "x$PYTHON" = x], [AC_MSG_ERROR([Python requested but no supported version found (>=3.0, <4.0)])]) AC_ARG_WITH([virtualenv], [AS_HELP_STRING([--with-virtualenv], [install to a Python virtualenv])], [], [with_virtualenv=no]) AS_IF([test "x$with_virtualenv" != xno], [AC_CHECK_PROGS([VIRTUALENV], [virtualenv virtualenv3 virtualenv2], [no])] [AS_IF([test "x$VIRTUALENV" = xno], [AC_MSG_FAILURE( [--with-virtualenv given but virtualenv could not be found])])], [AC_SUBST([VIRTUALENV], [no])]) AC_ARG_VAR([VIRTUALENV_FLAGS], [flags to pass to the virtualenv command]) AX_PKG_SWIG([2.0]) # DONE WITH PYTHON STUFF # Checks for programs. ############### CHECK FOR OPTIONAL FEATURES ######################### ## ADVANCED INTEGRATORS # Check for C++11 AC_ARG_ENABLE([c++11], [AS_HELP_STRING([--disable-c++11], [disable C++11 features (including advanced integrators)])]) AS_IF([test "x$enable_c__11" != "xno"], [AX_CXX_COMPILE_STDCXX_11(, [optional])] ) AS_IF([test "x$HAVE_CXX11" != "x1" && test "x$enable_c__11" = "xyes"], [AC_MSG_ERROR([C++11 requested but not found])]) AC_ARG_WITH([mpi], [AS_HELP_STRING([--with-mpi], [compile with MPI (parallelization) support. If none is found, MPI is not used. Default: auto]) ],,[with_mpi=auto]) # Check for boost have_boost=no AS_IF([test "x$with_boost" != "xno"], [have_boost=yes BOOST_REQUIRE([1.53.1], [have_boost=no]) AS_IF([test "x$have_boost" == "xyes"], [BOOST_FIND_HEADER([boost/multiprecision/cpp_dec_float.hpp], [AC_MSG_WARN([Boost.multiprecision not found]) have_boost=partial], []) BOOST_FIND_HEADER([boost/array.hpp], [AC_MSG_WARN([boost/array.hpp not found]) have_boost=partial], []) BOOST_FIND_HEADER([boost/numeric/odeint/stepper/controlled_step_result.hpp], [AC_MSG_WARN([Boost.odeint not found]) have_boost=partial], []) ]) ], [have_boost=no] ) AS_IF([test "x$HAVE_CXX11" == "x1" && test "x$ac_cv_header_boost_numeric_odeint_stepper_controlled_step_result_hpp" == xyes], [AC_DEFINE([GYOTO_HAVE_BOOST_INTEGRATORS], [1], [Define to 1 if C++11 and Boost.odeint are both available] )] ) AS_IF([test "x$have_boost" != "xyes"], [FEATURES+="-noboost"] ) # If --with-mpi=auto is used, try to find MPI, but use standard C compiler if it is not found. # If --with-mpi=yes is used, try to find MPI and fail if it isn't found. # If --with-mpi=no is used, use a standard C compiler instead. have_mpi=no AC_CHECK_PROGS([MPICXX], [mpic++ mpicxx]) AS_IF([test "x$MPICXX" != x && test "x$have_boost" == xyes && test "x$with_mpi" != xno], [ ax_save_CXX=$CXX ax_save_CPP=$CXXCPP CXX=$MPICXX CXXCPP="$MPICXX -E" BOOST_FIND_HEADER([boost/mpi/environment.hpp], [have_mpi=no CXX=$ax_save_CXX AS_IF([test "x$with_mpi" == xyes], [ AC_MSG_ERROR([MPI features require boost.mpi]) ])], [ BOOST_FIND_LIBS([mpi], [mpi], [], [boost/mpi/environment.hpp], [boost::mpi::environment()], []) BOOST_FIND_LIBS([serialization], [serialization], [], [boost/serialization/base_object.hpp], [], []) have_mpi=yes ]) ] ) AS_IF([test "x$have_mpi" == xyes], [ AC_SUBST(MPICXX) AC_DEFINE([HAVE_MPI], [1], [Define to 1 if you have MPI])], [ AS_IF([test "x$with_mpi" == xyes], [ AC_MSG_ERROR(MPI requested but not found) ], [FEATURES+="-nompi" MPICXX=""]) ]) AM_CONDITIONAL(HAVE_MPI, [test "x$have_mpi" == xyes]) AC_PROG_MKDIR_P AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET PKG_PROG_PKG_CONFIG([]) AC_CHECK_PROGS([DOXYGEN], [doxygen]) AC_CHECK_PROGS([PDFLATEX], [pdflatex]) AC_CHECK_PROGS([BIBTEX], [bibtex]) AC_CHECK_PROGS([KPSEWHICH], [kpsewhich]) # Provide additional defaults for user variables AX_APPEND_COMPILE_FLAGS([-rdynamic], [LDFLAGS]) AC_ARG_ENABLE([native], [AS_HELP_STRING([--enable-native],[append "-march=native" to CXXFLAGS if supported])], [AS_IF([test "x$enable_native" = "xyes"], [AX_APPEND_COMPILE_FLAGS([[-march=native]])])]) AC_ARG_ENABLE([hardening], [AS_HELP_STRING([--enable-hardening], [add warnings and hardening flags if supported])], [AS_IF([test "x$enable_hardening" = "xyes"], [AX_APPEND_COMPILE_FLAGS([-pedantic -Wall -W -Wundef -Wshadow -Wcast-qual \ -Wcast-align -Wconversion -Winline -Wabi -Woverloaded-virtual \ -Wno-long-long -Wformat -Wformat-security -Werror=format-security \ -fstack-protector "--param ssp-buffer-size=4"]) AX_APPEND_COMPILE_FLAGS([-D_FORTIFY_SOURCE=2], [CPPFLAGS]) AX_APPEND_COMPILE_FLAGS([-fPIE], [CXXFLAGS_EXEC]) AX_APPEND_LINK_FLAGS([-pie], [LDFLAGS_EXEC], [-fPIE]) ]) ] ) AC_SUBST([CXXFLAGS_EXEC]) AC_SUBST([LDFLAGS_EXEC]) AC_ARG_ENABLE([deprecated], [AS_HELP_STRING([--enable-deprecated], [enable deprecated method names (needing this is a bug)])], [AS_IF([test "x$enable_deprecated" = "xno"], [AX_APPEND_COMPILE_FLAGS([-DGYOTO_NO_DEPRECATED], [CPPFLAGS])])], [AX_APPEND_COMPILE_FLAGS([-DGYOTO_NO_DEPRECATED], [CPPFLAGS])] ) # Guess *LD_LIBRARY_PATH variable for make check AC_SUBST([target_os]) SYS=other DYLIB_VAR=LD_LIBRARY_PATH case "x$target_os" in xdarwin*|xmacos) DYLIB_VAR=DYLD_LIBRARY_PATH SYS=Darwin ;; *) ;; esac plugin_sfx=so AC_DEFINE_UNQUOTED([GYOTO_PLUGIN_SFX],["${plugin_sfx}"], [Suffix for Gyoto plug-ins]) AC_SUBST([GYOTO_PLUGIN_SFX],[${plugin_sfx}]) AC_SUBST([DYLIB_VAR]) # Used in yorick/stdplug/Makefile AC_SUBST([SYS]) AC_SUBST([plugin_sfx]) # Checks for libraries. AC_CHECK_LIB([dl], [dlopen]) # Checks for header files. # We are not using those tests to far # AC_CHECK_HEADERS([float.h stddef.h string.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_CHECK_HEADER_STDBOOL AC_TYPE_SIZE_T # Checks for library functions. AC_FUNC_ERROR_AT_LINE AC_FUNC_STRTOD # other functions we may need to check for according to autoscan: # floor getcwd pow sqrt strdup AC_CHECK_FUNCS([sincos]) ## YORICK # Check for Yorick yorick_exe=yorick YORICK= AC_MSG_CHECKING([whether to use yorick]) AC_ARG_WITH([yorick], [AS_HELP_STRING([--with-yorick[[=yorick-executable]]],[force using yorick and optionnally specify which one [default=yorick, only if found]])], [AS_IF([test "x$with_yorick" == "xno"], [AC_MSG_RESULT([no])], [AS_IF([test "x$with_yorick" != "xyes"], [YORICK=$with_yorick], [YORICK=$yorick_exe]) AS_IF([$YORICK -batch], [AC_MSG_RESULT([$YORICK])], [AC_MSG_ERROR([$YORICK does not work])]) ]) AC_SUBST([YORICK]) ], [AC_CHECK_PROGS([YORICK],$yorick_exe)] ) AM_CONDITIONAL(HAVE_YORICK, [test "x$YORICK" != "x"]) # Only if YORICK available, check for install directories AS_IF([test "x$YORICK" != "x"], [AC_MSG_CHECKING([install path for Yorick platform-dependent files]) Y_EXE_HOME=`echo write,format=\"%s\",Y_HOME\; quit | ${YORICK}| tail -1` Y_EXE_SITE=`echo write,format=\"%s\",Y_SITE\; quit | ${YORICK}| tail -1` Y_INST_HOME= Y_INST_SITE= AC_ARG_WITH([yorick-home], [AS_HELP_STRING([--with-yorick-home=DIR],[architecture-dependent Yorick files [default: the yorick directory if it is under ${exec_prefix}, else ${exec_prefix}/lib/yorick]])], [Y_INST_HOME=${with_yorick_home} Y_INST_SITE=${with_yorick_home} ], [AS_IF([echo ${Y_EXE_HOME} | grep ${exec_prefix}], [Y_INST_HOME=Y_EXE_HOME Y_INST_SITE=Y_EXE_SITE], [Y_INST_HOME='${exec_prefix}/lib/yorick' Y_INST_SITE='${prefix}/lib/yorick'] )]) AC_MSG_RESULT([$Y_INST_HOME]) AC_SUBST([Y_INST_HOME]) AC_MSG_CHECKING([install path for Yorick platform-independent files]) AC_ARG_WITH([yorick-site], [AS_HELP_STRING([--with-yorick-site=DIR],[architecture-independent Yorick files [default: the yorick directory if it is under ${prefix}, else ${prefix}/lib/yorick]]) ], [Y_INST_SITE=${with_yorick_site}]) AC_MSG_RESULT([$Y_INST_SITE]) AC_SUBST([Y_INST_SITE]) ] ) ## DEBUGGING INFORMATION # Enable debugging by default GYOTO_DEBUG_ENABLED=yes AC_ARG_ENABLE([debugging], [AS_HELP_STRING([--disable-debugging], [remove debugging code for hypothetical speed gain])], [AS_IF([test "x$enable_debugging" == "xno"], [GYOTO_DEBUG_ENABLED=0]) ]) AS_IF([test "x$GYOTO_DEBUG_ENABLED" == xyes], [AC_DEFINE([GYOTO_DEBUG_ENABLED], [1], [Enable debugging information gathering code for putative speed gain]) ] ) ## POSIX THREADS # Check for pthreads use_pthreads=yes AC_ARG_ENABLE([pthreads], [AS_HELP_STRING([--disable-pthreads], [disable POSIX threads parallelization])], [AS_IF([test "x$enable_pthreads" = "xno"], [use_pthreads=no])]) AS_IF([test "x$use_pthreads" == "xyes"], [AX_PTHREAD], [FEATURES+="-nopthreads"]) ## UDUNITS # Check for UDUNITS pkg_requires= pkg_cflags= pkg_libs= AC_ARG_WITH([udunits-inc], [AS_HELP_STRING([(--with-udunits-inc=)], [deprecated, use --with-udunits-headers])], [with_udunits_headers=$withval AC_MSG_WARN([--with-udunits-inc option is deprecated, use --with-udunits-headers instead]) ] ) AC_ARG_WITH([udunits-lib], [AS_HELP_STRING([(--with-udunits-lib=)], [deprecated, use --with-udunits-libs])], [with_udunits_libs=${withval} AC_MSG_WARN([--with-udunits-lib option is deprecated, use --with-udunits-libs instead]) ] ) GYOTO_ARG_LIB(udunits, udunits, -ludunits2, [#include ], [ut_set_error_message_handler(ut_ignore);]) AS_IF([test "x$have_udunits" == "xno"], [FEATURES+="-nounits"] ) ## XERCES # Check for Xerces-c GYOTO_ARG_LIB(xerces, xerces-c, -lxerces-c, [#include ], [xercesc::XMLPlatformUtils::Initialize();]) AS_IF([test "x$have_xerces" == "xno"], [FEATURES+="-noxml" AS_IF([test "x$have_mpi" == "xyes"], [AC_MSG_ERROR([The MPI feature set requires Xerces. Please reconfigure with --without-mpi or with --with-xerces.])]) ] ) ## EIGEN # Check for EIGEN GYOTO_ARG_LIB(eigen, eigen3, [], [#include ], [Eigen::MatrixXd m(2,2);]) AS_IF([test "x$have_eigen" == "xno"], [AC_MSG_ERROR([The Eigen library is required for building Gyoto.])] ) ## CFITSIO # Check for CFITSIO GYOTO_ARG_LIB(cfitsio, cfitsio, -lcfitsio, [#include #include ], [fitsfile* fptr=NULL; std::string file=""; int status=0; fits_open_file(&fptr, file.c_str(), 0, &status);]) AS_IF([test "x$have_cfitsio" == "xno"], [FEATURES+="-nofits"] ) ## ARBLIB # Check for ARBLIB have_2f1=no # If AEAE if explicitely requested, skip ARBLIB checks. case "x$with_aeae" in x) ;; xno) ;; x*) with_arblib=no ;; esac AC_MSG_CHECKING(whether arblib library name is provided) AS_IF([test "x$with_arblib_ldflags" == "x"], [arblib_ldflags= AC_MSG_RESULT([no])], [with_arblib=yes arblib_ldflags=$with_arblib_ldflags AC_MSG_RESULT([$arblib_ldflags])] ) AS_IF([test "x$arblib_ldflags" == "x"], [AC_SEARCH_LIBS([acb_init], [flint flint-arb arb], [arblib_ldflags=$ac_cv_search_acb_init], [])] ) AC_MSG_CHECKING(whether arblib header directory is provided) AS_IF([test "x$with_arblib_headers" == "x"], [arblib_headers= AC_MSG_RESULT([no])], [with_arblib=yes arblib_headers=$with_arblib_headers AC_MSG_RESULT([$arblib_headers])] ) arglib_default_cppflags= AS_IF([test "x$arblib_headers" == "x"], [AC_MSG_NOTICE([looking for arblib headers in default locations])]) AC_CHECK_HEADERS([acb.h], [AC_MSG_NOTICE([arblib headers found without additional flags])], [AS_UNSET(ac_cv_header_acb_h) TMPCPPFLAGS=$CPPFLAGS CPPFLAGS="$TMPCPPFLAGS -I/usr/include/flint/" AC_CHECK_HEADERS([acb.h], [arglib_default_cppflags=-I/usr/include/flint/ AC_MSG_NOTICE([arblib headers found in /usr/include/flint/])], [AC_MSG_NOTICE([arblib not found in default locations]) CPPFLAGS=$TMPCPPFLAGS])] ) AS_UNSET(ac_cv_header_acb_h) GYOTO_ARG_LIB(arblib, arblib, $arblib_ldflags, [#include #include ], [double hypergeom = 0., rad=0., kappaIndex=5., thetae=1; acb_t FF, aa, bb, cc, zed; acb_init(FF); acb_init(aa); acb_init(bb); acb_init(cc); acb_init(zed); acb_set_d_d(aa, kappaIndex-1./3., 0.); acb_set_d_d(bb, kappaIndex+1., 0.); acb_set_d_d(cc, kappaIndex+2./3., 0.); acb_set_d_d(zed, -kappaIndex*thetae, 0.); slong prec=53; acb_hypgeom_2f1(FF, aa, bb, cc, zed, ACB_HYPGEOM_2F1_AC, prec); hypergeom = arf_get_d(&acb_realref(FF)->mid, ARF_RND_NEAR); rad = mag_get_d(&acb_realref(FF)->rad); acb_clear(FF); acb_clear(aa); acb_clear(bb); acb_clear(cc); acb_clear(zed);], [$arglib_default_cppflags]) AC_ARG_WITH([arblib-ldflags], [AS_HELP_STRING([--with-arblib-ldflags=-l], [linker flag for arblib (usually -lflint on recent systems, sometimes -lflint-arb or -larb) possibly with dependencies (e.g. "-larb -lflint").])] ) AS_IF([test "x$have_arblib" == "xyes"], [have_2f1=yes with_aeae=no ], [arblib_ldflags= ] ) ## AEAE # Check for AEAE AC_MSG_CHECKING(whether aeae should be used) aeae_headers= AC_ARG_WITH( [aeae], [AS_HELP_STRING( [--with-aeae[[=/path/to/AEAE]]], [Force using AEAE, optionally specifying full path to location of source code, or force disable it.])], [ AS_IF([test "x$with_aeae" == "xno"], [AC_MSG_RESULT(no)], [test "x$with_aeae" != "xyes"], [aeae_headers=$with_aeae case "x$aeae_headers" in x\-I*) ;; x) ;; x*) aeae_headers=-I$aeae_headers ;; esac with_aeae=yes AC_MSG_RESULT(yes)], [AC_MSG_RESULT(yes)]) ], [with_aeae=check AC_MSG_RESULT(probe) ] ) have_aeae=no AS_IF([test "x$with_aeae" != "xno"], [ AS_IF([test "x$have_aeae" == "xno"], [AC_MSG_CHECKING([for aeae]) TMPCPPFLAGS=$CPPFLAGS CPPFLAGS="$TMPCPPFLAGS $aeae_headers" AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include #include #define SIGN(a) (((a) < 0) ? (-1) : (1)) using namespace std; #include "complex_functions.H" #include "hyp_2F1.cpp"]], [[double hypergeom = 0., kappaIndex=5., thetae=1; complex aa=kappaIndex-1./3., bb=kappaIndex+1., cc=kappaIndex+2./3., zed=-kappaIndex*thetae; const complex FF = hyp_2F1(aa,bb,cc,zed); hypergeom = FF.real(); ]])],[have_aeae=yes AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]) CPPFLAGS=$TMPCPPFLAGS AEAE_CFLAGS="$aeae_headers" pkg_cflags="${pkg_cflags} ${AEAE_CFLAGS}" ] ) ], [] ) AS_IF([test "x$have_aeae" == "xno"], [AS_IF([test "x$with_aeae" == "xyes"], [AC_MSG_ERROR([aeae requested but not found]) ], [] ) ], [have_2f1=yes AC_DEFINE([GYOTO_USE_AEAE], [1], [Define to 1 if you have aeae]) ] ) AM_CONDITIONAL([HAVE_AEAE], [test "x$have_aeae" == "xyes"]) AM_CONDITIONAL([HAVE_2F1], [test "x$have_2f1" == "xyes"]) AC_SUBST([AEAE_CFLAGS]) ## LORENE # Check for LORENE AC_MSG_CHECKING([for LORENE]) AC_ARG_VAR([MAKE_S], [make command which does not print directories [[make -w]]]) AS_IF([test "x$MAKE_S" = "x"], [MAKE_S="make -s"]) AC_ARG_VAR([HOME_LORENE], [path to Lorene build directory (see also --with-lorene)]) # first check whether LORENE is required and get HOME_LORENE require_lorene=no AC_ARG_WITH([lorene], [AS_HELP_STRING([--with-lorene[[=${HOME_LORENE}]]], [force using the optional LORENE library, possibly specifying HOME_LORENE [default=${HOME_LORENE}]])], [AS_IF([test "x$with_lorene" == "xno"], [HOME_LORENE="" AC_MSG_RESULT([no]) ], [test "x$with_lorene" == "xyes"], [require_lorene=yes AS_IF([test "x$HOME_LORENE" != "x"], [AC_MSG_RESULT($HOME_LORENE)], [AC_MSG_ERROR([--with-lorene passed with no path: please specify LORENE path either using the HOME_LORENE environment variable or --with-lorene=.])]) ], [require_lorene=yes HOME_LORENE="$with_lorene" AC_MSG_RESULT($HOME_LORENE) ]) ], [AS_IF([test "x$HOME_LORENE" != "x"], [AC_MSG_RESULT($HOME_LORENE)], [AC_MSG_RESULT([no])]) ] ) # then check whether LORENE is actually installed in HOME_LORENE # finally output HOME_LORENE AC_SUBST([HOME_LORENE]) AM_CONDITIONAL([HAVE_LORENE], [test "x$HOME_LORENE" != "x"]) AS_IF([test "x$HOME_LORENE" != "x"], [ AS_IF([test ! -r ${HOME_LORENE}/local_settings], [AC_MSG_ERROR([${HOME_LORENE}/local_settings not found])]) cat >conftest.make <<_ACEOF include \$(HOME_LORENE)/local_settings conftest.make: touch conftest.make %: conftest.make @echo \$(\$@) _ACEOF LORENELDFLAGS="-L$HOME_LORENE/Lib -llorene" LORENELDFLAGS="$LORENELDFLAGS `$MAKE_S HOME_LORENE=$HOME_LORENE -f conftest.make LIB_LAPACK | tr -d '\n\r'`" LORENELDFLAGS="$LORENELDFLAGS `$MAKE_S HOME_LORENE=$HOME_LORENE -f conftest.make LIB_GSL | tr -d '\n\r'`" LORENELDFLAGS="$LORENELDFLAGS `$MAKE_S HOME_LORENE=$HOME_LORENE -f conftest.make LIB_PGPLOT | tr -d '\n\r'`" LORENELDFLAGS="$LORENELDFLAGS `$MAKE_S HOME_LORENE=$HOME_LORENE -f conftest.make LIB_LORENE | tr -d '\n\r'`" LORENELDFLAGS="$LORENELDFLAGS `$MAKE_S HOME_LORENE=$HOME_LORENE -f conftest.make LIB_CXX | tr -d '\n\r'`" LORENECPPFLAGS=`$MAKE_S HOME_LORENE=$HOME_LORENE -f conftest.make INC | tr -d '\n\r'` LORENECPPFLAGS="$LORENECPPFLAGS" rm conftest.make AC_SUBST([LORENECPPFLAGS]) AC_SUBST([LORENELDFLAGS]) pkg_cflags="${pkg_cflags} ${LORENECPPFLAGS}" pkg_libss="${pkg_libss} ${LORENELDFLAGS}" ] ) ## DOCUMENTATION # disable doc AC_ARG_ENABLE([doc], [AS_HELP_STRING([--disable-doc], [disable building documentation (automatically)])], [AS_IF([test "x$enable_doc" == "xyes"], [mkdoc=yes], [test "x$enable_doc" == "xno"], [mkdoc=no], [AC_MSG_ERROR([Please set --disable-doc or --enable-doc only to ``yes'' or ``no''])]) ], [mkdoc=yes]) # check if doxygen is available AM_CONDITIONAL([MKREF], [test "x$DOXYGEN" != "x"]) # check if all the necessary LaTeX tools are available AM_CONDITIONAL([MKGUIDE], [test "x$KPSEWHICH" != "x" && ${KPSEWHICH} kluwer.bst && test "x$PDFLATEX" != "x" && test "x$BIBTEX" != "x"]) #################### FINALIZATION ################################### # Finalization: select output files, subdirs etc. AC_SUBST([pkg_requires]) AC_SUBST([pkg_cflags]) AC_SUBST([pkg_libs]) mySUBDIRS="lib" build_exec=no AS_IF([test "x$have_mpi" == xyes], [build_exec=yes]) AS_IF([test "x$use_xerces" != "x" && test "x$use_cfitsio" != "x"], [build_exec=yes]) AS_IF([test "x$build_exec" == xyes], [mySUBDIRS="$mySUBDIRS bin"]) AM_CONDITIONAL([BUILD_GYOTO], [test "x$use_xerces" != "x" && test "x$use_cfitsio" != "x"]) sovers=$(( VERSINFO_C - VERSINFO_A )) sovers+=$FEATURES AC_SUBST([FEATURES]) AC_SUBST([sovers]) AC_DEFINE_UNQUOTED([GYOTO_SOVERS], ["${sovers}"], [Gyoto ABI version]) AS_IF([test "x$PYTHON" != "x"], [AC_CONFIG_SUBDIRS([plugins/python]) mySUBDIRS="$mySUBDIRS python" ]) AC_CONFIG_FILES([Makefile bin/Makefile doc/Makefile doc/doxyfile doc/user_guide/Makefile lib/Makefile lib/gyoto.pc lib/gyoto-uninstalled.pc ]) AS_IF([test "x$YORICK" != "x"], [mySUBDIRS="$mySUBDIRS yorick" AC_CONFIG_FILES([yorick/Makefile], [oldpwd=`pwd` cd yorick $YORICK -batch make.i cd $oldpwd], YORICK=$YORICK) AC_CONFIG_FILES([yorick/stdplug/Makefile], [oldpwd=`pwd` cd yorick/stdplug $YORICK -batch make.i cd $oldpwd], YORICK=$YORICK) AC_CONFIG_FILES([yorick/gyoto.info yorick/yorick1 yorick/setpaths.i ], [chmod a+x yorick/yorick1]) AC_CONFIG_FILES([gyoto], [chmod a+x gyoto]) ] ) AS_IF([test "x$PYTHON" != "x"], [ AC_CONFIG_FILES([python/Makefile python/setup.py]) ] ) AS_IF([test "x$DOXYGEN" != "x" && test "x$mkdoc" == "xyes"], [mySUBDIRS="$mySUBDIRS doc" ] ) AC_SUBST([mySUBDIRS]) AC_OUTPUT ########################## SUMMARY ############################ AS_IF([test "x$have_xerces" == "xno" || test "x$have_cfitsio" == "xno" ], [ AC_MSG_WARN( [ Building without xerces-c and/or cfitsio. *** The gyoto executable will not be built! *** Gyoto can still be used as a C++ library and through the Yorick plug-in (although without XML support and/or without certain object types). ]) ]) AS_IF([test "x$have_udunits" == "xno"], [ AC_MSG_WARN( [ Building without udunits *** Unit conversions disabled *** ]) ]) AS_IF([test "x$have_boost" == "xno"], [ AC_MSG_WARN( [ Building without boost *** Advanced integrators disabled *** The advanced integrators require the Boost library (>=1.53) and a C++ compiler that supports the c++11 standard. ]) ]) AS_IF([test "x$have_2f1" == "xno"], [ AC_MSG_WARN( [ Building without 2F1 *** Hypergeometric functions unavailable *** Astrobj::Jet requires ARBLIB or AEAE. ]) ]) Gyoto-2.0.2/depcomp000077500000000000000000000560201455254334400142050ustar00rootroot00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2018-03-07.03; # UTC # Copyright (C) 1999-2021 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 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: Gyoto-2.0.2/doc/000077500000000000000000000000001455254334400133725ustar00rootroot00000000000000Gyoto-2.0.2/doc/Makefile.in000066400000000000000000000006501455254334400154400ustar00rootroot00000000000000SHELL=/bin/sh DOXYGEN=@DOXYGEN@ all: doxygen.stamp latex.stamp doxygen.stamp: @top_srcdir@/include/*.h ../include/*.h @MKREF_TRUE@ $(DOXYGEN) doxyfile touch doxygen.stamp latex.stamp: @srcdir@/user_guide/GyotoManual.tex @MKGUIDE_TRUE@ cd user_guide; $(MAKE) touch latex.stamp distclean clean: -rm doxygen.stamp latex.stamp -rm -fr html xml latex doxygen_sqlite3.db @MKGUIDE_TRUE@ cd user_guide; $(MAKE) clean %: ; Gyoto-2.0.2/doc/Makefile.old000066400000000000000000000001331455254334400156040ustar00rootroot00000000000000SHELL=/bin/sh doc: ../include/*.h doxygen doxyfile clean: rm -fr html latex rm -fr *~ Gyoto-2.0.2/doc/doxyfile.in000066400000000000000000001743611455254334400155610ustar00rootroot00000000000000# Doxyfile 1.5.8 # 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 a sequence of words surrounded # by quotes) that should identify the project. PROJECT_NAME = Gyoto # 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 = # 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, 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-Cyrilic, Slovak, Slovene, # Spanish, Swedish, and Ukrainian. 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 = # 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 = YES # 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 = # 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 is your file systems # 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 = # 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 = NO # 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, C#, 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 EXTENSION_MAPPING = h=C++ C=C++ # 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 make 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 to 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 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 penality. # 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 rougly 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 #--------------------------------------------------------------------------- # 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 = NO # 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 = YES # 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 namespace 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 = NO # 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 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_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 # 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 define 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 defines 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 = #--------------------------------------------------------------------------- # 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 # This WARN_NO_PARAMDOC option can be abled 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 = @top_srcdir@/include @top_srcdir@/plugins/python/include # 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++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx # *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 FILE_PATTERNS = # 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 # 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. EXCLUDE = # The EXCLUDE_SYMLINKS tag can be used select whether or not files or # directories that are symbolic links (a Unix filesystem 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 = @top_srcdir@/doc/examples @top_srcdir@/plugins/python/doc/examples # 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 = images # 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, INPUT_FILTER # is applied to all files. 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 #--------------------------------------------------------------------------- # 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 = NO # 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 = NO # 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. 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 # stylesheet in the HTML output directory as well, or it will be erased! HTML_STYLESHEET = # 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 # 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 = # 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 = # The DISABLE_INDEX tag can be used to turn on/off the condensed index at # top of each HTML page. The value NO (the default) enables the index and # the value YES disables it. DISABLE_INDEX = NO # This tag can be used to set the number of enum values (range [1..20]) # that doxygen will group on one line in the generated HTML documentation. ENUM_VALUES_PER_LINE = 4 # 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 FRAME, 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 (for instance Mozilla 1.0+, # Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are # probably better off using the HTML help feature. Other possible values # for this tag are: HIERARCHIES, which will generate the Groups, Directories, # and Class Hierarchy pages using a tree view instead of an ordered list; # ALL, which combines the behavior of FRAME and HIERARCHIES; and NONE, which # disables this behavior completely. For backwards compatibility with previous # releases of Doxygen, the values YES and NO are equivalent to FRAME and NONE # respectively. GENERATE_TREEVIEW = NONE # 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 # 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 #--------------------------------------------------------------------------- # 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. 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, a4wide, letter, legal and # executive. If left blank a4wide will be used. PAPER_TYPE = a4wide # 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 = # 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 = YES # 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 = YES # 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 #--------------------------------------------------------------------------- # 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 stylesheet 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 = YES # 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 = YES # 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 = YES # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files # in the INCLUDE_PATH (see below) will be search if 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 = DOXYGEN_RUN GYOTO_USE_XERCES \ GYOTO_OBJECT="GYOTO_OBJECT \ static Property const properties[]; \ virtual Property const * getProperties() const" # 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. EXPAND_AS_DEFINED = GYOTO_OBJECT # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then # doxygen's preprocessor will remove all function-like macros that are alone # on a line, have an all uppercase name, and do not end with a semicolon. Such # function macros are typically used for boiler-plate code, and 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 = # 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 is superseded by the HAVE_DOT option below. This is only a # fallback. 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 # By default doxygen will write a font called FreeSans.ttf to the output # directory and reference it in all dot files that doxygen generates. This # font does not include all possible unicode characters however, so when you need # these (or just want a differently looking font) you can specify the font name # using DOT_FONTNAME. You need 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 = FreeSans # 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 output directory to look for the # FreeSans.ttf font (which doxygen will put there itself). If you specify a # different font using DOT_FONTNAME you can set the path where dot # can find it using this tag. 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 # 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 = NO # 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 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 png, jpg, or gif # If left blank png will be used. DOT_IMAGE_FORMAT = png # 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 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 #--------------------------------------------------------------------------- # Options 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 Gyoto-2.0.2/doc/examples/000077500000000000000000000000001455254334400152105ustar00rootroot00000000000000Gyoto-2.0.2/doc/examples/Gyoto_Polar_example.ipynb000066400000000000000000013440651455254334400222410ustar00rootroot00000000000000{ "cells": [ { "cell_type": "markdown", "id": "1f594d21", "metadata": {}, "source": [ "# Polarization with GYOTO\n", "***" ] }, { "cell_type": "markdown", "id": "657c76f9", "metadata": {}, "source": [ "## This notebook has been created as an example of how to compute and use polarization with *GYOTO* in python." ] }, { "cell_type": "markdown", "id": "c9a16b28", "metadata": {}, "source": [ "**For this example, we will consider a thick disk emitting thermal synchrotron radiation around a Schwarzschild black hole.** The setup that we consider here is similar of [Vos et al. (2023)](https://ui.adsabs.harvard.edu/abs/2022A%26A...668A.185V/abstract) and implemented in [Aimar et al. (2023)]() for comparing *Gyoto* and *ipole* computation.\n", "\n", "*Gyoto* will compute images for the four Stokes parameters that describe the polarisation of light. From these images, we can then compute the *Electric Vector Position Angle* (EVPA) that we can represent with ticks (see below)." ] }, { "cell_type": "markdown", "id": "70d3494f", "metadata": {}, "source": [ "## **1 - Importing libraries**" ] }, { "cell_type": "code", "execution_count": null, "id": "2d5857db", "metadata": { "scrolled": false }, "outputs": [], "source": [ "import gyoto\n", "import gyoto.std\n", "import gyoto.core\n", "import numpy as np\n", "import math\n", "import matplotlib.pyplot as plt\n", "import matplotlib.cm as cm\n", "import matplotlib.colors as colors" ] }, { "cell_type": "markdown", "id": "2a7fb06f", "metadata": {}, "source": [ "## **2 - Defining usefull constants**" ] }, { "cell_type": "code", "execution_count": null, "id": "53e8e205", "metadata": { "scrolled": false }, "outputs": [], "source": [ "kpc_meter=3.08568025e19\n", "c_SI=299792458.\n", "me_SI=9.10938188e-28\n", "kb_SI=1.3806504e-23" ] }, { "cell_type": "markdown", "id": "185a7434", "metadata": {}, "source": [ "## **3 - Create a *Gyoto* Scenery**" ] }, { "cell_type": "markdown", "id": "14d68c3e", "metadata": {}, "source": [ "### **3.1 - Defining the metric**" ] }, { "cell_type": "markdown", "id": "3df45e2a", "metadata": {}, "source": [ "**The first thing to do is defining our metric**. We consider a Schwarzschild black hole which can be described by the Kerr metric with a null spin ($a=0$). We can take the *Boyer-Lindquiest* (metric **KerrBL**) or the *Kerr-Schild* (metric **KerrKS**) coordinate system. It does not change anything for this example.\n", "\n", "We take the approximate mass of Sagittarius A* (around 4.3 millions solar masses) in this example to use classical units. However, everything can be expressed in geometrical units (see next section). In that case, the mass is not mandatory." ] }, { "cell_type": "code", "execution_count": null, "id": "c107df45", "metadata": { "scrolled": false }, "outputs": [], "source": [ "metric = gyoto.std.KerrBL()\n", "metric.spin(0.)\n", "metric.mass(4.3e6,\"sunmass\")" ] }, { "cell_type": "markdown", "id": "3c0de433", "metadata": {}, "source": [ "### **3.2 - Defining the observer's screen**" ] }, { "cell_type": "markdown", "id": "3374e2ba", "metadata": {}, "source": [ "**We then need to define the observer's screen.**\n", "\n", "The screen need few parameters to be properly defined. The first of interest is its 4-position which can be set by the means of two angles : **inclination** (polar angle), called hereafter *incli* and **argument** (azimuthal angle; default value here). In addition to the two previous angle we need to define the **distance**, herefater *dist* and launch **time** of the photons from the screen. \n", "Another possibility to define the screen's 4-position is by 3D vector **Position** and **Time**. For this example we show the first option.\n", "\n", "After the position, we need to define the properties of the screen like the Field of View (*fov*), the number of pixel along both axes *npix* and the observed frequency(ies). Here we set only one observed frequency at $230$ GHz (like the EHT).\n", "\n", "One last angle is needed to finish the definition of the screen, the Position Angle of the Line of Nodes (PALN). A PALN of 180° correspond to a spin axis aligned with the vertical axis of the screen (toward the top)." ] }, { "cell_type": "markdown", "id": "1ad108b2", "metadata": {}, "source": [ "To summurize, the screen needs the following parameters to e setup :\n", "- **Distance**\n", "- **Time** (should correspond approximatively to distance so that photons coordinate time is close to zero when arriving close to the black hole)\n", "- **Inclination**\n", "- **Field of View**\n", "- **Resolution** (number of pixels on ech axes)\n", "- **Observed frequency**" ] }, { "cell_type": "markdown", "id": "0f137b59", "metadata": {}, "source": [ "Note that **Distance**, **Field of View** and **Time** can be expressed in geometrical units with the string *\"geometrical\"* for the first two and *\"geometrical_time\"* for **Time**." ] }, { "cell_type": "code", "execution_count": null, "id": "c41fb8b3", "metadata": { "scrolled": false }, "outputs": [], "source": [ "incli = 20 # deg\n", "dist = 8.3 # kpc\n", "fov = 200 # muas\n", "npix = 1024\n", "nu = 230e9 # Hz\n", "\n", "screen = gyoto.Screen()\n", "screen.metric(metric) # first step : give the metric to the screen\n", "screen.distance(dist,\"kpc\")\n", "screen.time(dist,\"kpc\")\n", "screen.fieldOfView(fov,\"µas\")\n", "screen.inclination(180.-incli,\"°\")\n", "screen.PALN(180,\"°\")\n", "screen.resolution(npix)\n", "spectro=gyoto.core.Spectrometer('freqlog')\n", "spectro.set(\"NSamples\", 1)\n", "spectro.set(\"Band\", (math.log10(nu), math.log10(nu)), \"Hz\")\n", "screen.spectrometer(spectro)" ] }, { "cell_type": "markdown", "id": "798b7348", "metadata": {}, "source": [ "### **3.3 - Defining the emitting astrophysical object**" ] }, { "cell_type": "markdown", "id": "bdffba90", "metadata": {}, "source": [ "The last object that to be defined is the emitting region. Here, we consider a thick disk, emitting synchrotron radiation from a thermal distribution of electrons. The *Thick disk* is characterised by its geometry (**thickness**, **inner** and **outer radii**) as the profiles of physical quantities like **number density**, **temperature** and **magnetic field**. For polarisation, the **magnetic field configuration** is of great interest and needs to be specified.\n", "\n", "As said before, we use the ipole formalism for this example, see [Vos et al. (2023)](https://ui.adsabs.harvard.edu/abs/2022A%26A...668A.185V/abstract) and [Aimar et al. (2023)]() for more details.\n", "\n", "*Note : the fitting formulae for the synchrotron coefficients are the ones from [Marszewski et al. 2021](https://ui.adsabs.harvard.edu/abs/2021ApJ...921...17M/abstract)*" ] }, { "cell_type": "code", "execution_count": null, "id": "84bb56ff", "metadata": { "scrolled": false }, "outputs": [], "source": [ "disk = gyoto.std.ThickDisk()\n", "disk.thickDiskInnerRadius(6.)\n", "disk.thickDiskZGaussianSigma(0.3)\n", "disk.numberDensityAtInnerRadius(6e6,\"cm-3\")\n", "disk.temperatureAtInnerRadius(200.*me_SI*c_SI*c_SI/kb_SI)\n", "disk.temperatureSlope(-0.84)\n", "disk.densitySlope(-1.5)\n", "disk.metric(metric)\n", "disk.opticallyThin(True)\n", "disk.magneticConfiguration('Vertical')\n", "disk.rMax(100) # stop condition of geodesic integration\n", "disk.deltaInObj(0.05) # integraton step for radiative transfer" ] }, { "cell_type": "markdown", "id": "c0696344", "metadata": {}, "source": [ "### **3.4 - Generating the *Gyoto* scenery**" ] }, { "cell_type": "markdown", "id": "44832623", "metadata": {}, "source": [ "Now that we have defined all our objects (**metric**, **screen**, **astrobj**), we can create and set the complete **scenery**.\n", "\n", " An important difference with non polarized radiative transfer is the need of **parallel transport**. This flag **MUST** be put to True to compute polarized quantities.\n", "\n", "We also define here the quantities that we want to compute. In the example below we ask the four Stokes parameters. \n", "\n", "*Note : The parallel transport flag will enable all the polarized stuffs in the code and prioritize the polarized radiative transfer functions which might differ from the non-polarized versions. Thus, it is recommanded to let this flag to False for non polarized computations.*\n", " \n", "*Note 2 : The computation of the EVPA requires a better integration accuracy of the geodesics than the non polarized quantities. In such cases, one can reduce the **relative** and/or **absolute tolerance value(s)** (relTol and absTol respectively) or the parameter **DeltaMaxOverR**.*" ] }, { "cell_type": "code", "execution_count": null, "id": "bd187fb8", "metadata": { "scrolled": false }, "outputs": [], "source": [ "scry = gyoto.Scenery()\n", "scry.metric(metric)\n", "scry.screen(screen)\n", "scry.astrobj(disk)\n", "scry.tMin(-1e10) # stop condition of geodesic integration\n", "scry.nThreads(8)\n", "scry.parallelTransport(True)\n", "scry.relTol(1.e-10)\n", "scry.absTol(1.e-10)\n", "#scry.deltaMaxOverR(0.1)\n", "\n", "scry.requestedQuantitiesString(\"Spectrum SpectrumStokesQ SpectrumStokesU SpectrumStokesV\")" ] }, { "cell_type": "markdown", "id": "ac780936", "metadata": {}, "source": [ "## **4 - Generate polarized images**" ] }, { "cell_type": "markdown", "id": "4f7a2e0c", "metadata": {}, "source": [ "It is now the time to perform the ray-tracing of the requested quantities and retrieve the produced images. Here the maps are converted from intensity in *SI* to flux in *Jansky*.\n", "\n", "**Note : this step is be quite long with such high resolution**" ] }, { "cell_type": "code", "execution_count": null, "id": "4f9af2e6", "metadata": { "scrolled": false }, "outputs": [], "source": [ "image_cube=scry.rayTrace()\n", "\n", "SI2Jy = (fov*1e-6/3600*np.pi/180./npix)**2*1e26\n", "\n", "imgI=image_cube[\"Spectrum\"][0,:,:]*SI2Jy\n", "\n", "imgQ=image_cube[\"SpectrumStokesQ\"][0,:,:]*SI2Jy\n", "\n", "imgU=image_cube[\"SpectrumStokesU\"][0,:,:]*SI2Jy\n", "\n", "imgV=image_cube[\"SpectrumStokesV\"][0,:,:]*SI2Jy" ] }, { "cell_type": "markdown", "id": "66f7a3ba", "metadata": {}, "source": [ "***\n", "## **5 - Plotting polarized images**" ] }, { "cell_type": "markdown", "id": "67edd1a6", "metadata": {}, "source": [ "After generating the images in the four Stokes parameters, we can do... whatever we want !\n", "\n", "The two following cells allow to plot the four Stokes images in a single figure with relevant colorbars : one for total intensity (Stokes I), one for linear polarization (Stokes Q and U) and one for circular polarization (Stokes V)." ] }, { "cell_type": "code", "execution_count": 11, "id": "b61edd0d", "metadata": { "scrolled": false }, "outputs": [], "source": [ "vmin = min(imgQ.min(), imgU.min())\n", "vmax = max(imgQ.max(), imgU.max())\n", "scale_LP = max(abs(vmin), abs(vmax))\n", "normLP = colors.Normalize(vmin=-scale_LP, vmax=scale_LP)\n", "\n", "scale_CP = max(abs(imgV.min()), abs(imgV.max()))\n", "normCP = colors.Normalize(vmin=-scale_CP, vmax=scale_CP)" ] }, { "cell_type": "code", "execution_count": 12, "id": "92a78594", "metadata": { "scrolled": false }, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAABIwAAAF8CAYAAACt/CARAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAEAAElEQVR4nOy9fZgkVXn3/6ment7e2dllWGaXARccccEVURdczaqo6EMQIyoaVIyoaNSYaIxGTYgxT0x+Jo+JL/FRY4waQyJRVHxBiPIoEVTEVVZceXOFFRZYYGCH3WF3drd3pqfr98ep03X36XPqpV9mumfO97rqqqpTp6pPVXfdfZ/v+d73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EVRFEVRRvj/AWynlEGX16tmAAAAAElFTkSuQmCC\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "fig, axs = plt.subplots(1, 4)\n", "fig.set_size_inches(16, 9)\n", "fig.tight_layout()\n", "\n", "\n", "axs[0].tick_params(axis='both', which='major', labelsize=16)\n", "for ii in range(1,4):\n", " axs[ii].set_xticks([])\n", " axs[ii].set_yticks([])\n", "\n", "cmap1 = 'afmhot'\n", "cmap2 = \"seismic\"\n", "\n", "img_Gyoto_I = axs[0].imshow(imgI, interpolation='nearest', origin='lower', cmap=cmap1, extent=(-fov/2.,fov/2.,-fov/2.,fov/2.))\n", "axs[0].set_title(\"Stokes I\", fontsize=22)\n", "img_Gyoto_Q = axs[1].imshow(imgQ, interpolation='nearest', origin='lower', cmap=cmap2, norm=normLP, extent=(-fov/2.,fov/2.,-fov/2.,fov/2.))\n", "axs[1].set_title(\"Stokes Q\", fontsize=22)\n", "img_Gyoto_U = axs[2].imshow(imgU, interpolation='nearest', origin='lower', cmap=cmap2, norm=normLP, extent=(-fov/2.,fov/2.,-fov/2.,fov/2.))\n", "axs[2].set_title(\"Stokes U\", fontsize=22)\n", "img_Gyoto_V = axs[3].imshow(imgV, interpolation='nearest', origin='lower', cmap=cmap2, norm=normCP, extent=(-fov/2.,fov/2.,-fov/2.,fov/2.))\n", "axs[3].set_title(\"Stokes V\", fontsize=22)\n", "\n", "cb_imgI = fig.colorbar(img_Gyoto_I, ax=axs[0], location='bottom', pad=0.05)\n", "cb_imgI.set_label('Jy', fontsize=18)\n", "cb_imgI.ax.tick_params(axis='both', which='major', labelsize=16)\n", "cb_imgLP = fig.colorbar(img_Gyoto_Q, ax=axs[1:3], location='bottom', pad=0.05)\n", "cb_imgLP.set_label('Jy', fontsize=18)\n", "cb_imgLP.ax.tick_params(axis='both', which='major', labelsize=16)\n", "cb_imgCP = fig.colorbar(img_Gyoto_V, ax=axs[3], location='bottom', pad=0.05)\n", "cb_imgCP.set_label('Jy', fontsize=18)\n", "cb_imgCP.ax.tick_params(axis='both', which='major', labelsize=16)" ] }, { "cell_type": "markdown", "id": "b543b30f", "metadata": {}, "source": [ "In this cell we plot the unpolarized images in background of the orientation of the EVPA for some pixels in the images represented by white ticks. The length of the ticks represent the local linear polarization fraction." ] }, { "cell_type": "code", "execution_count": 13, "id": "f57e6880", "metadata": { "scrolled": false }, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAA9kAAAOvCAYAAADYzwc2AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAEAAElEQVR4nOydd5gctfnHvzO7V32u2Ma4gLGNMcaUgKmh9xZCCSTUEIoDBAi9hRASQvlBIJQAIbQQShJ6IEAopkOAUAwYMMYYsLFxOc7n8/l8vrLz+2NWt1qtpNG03dnd9/M8+8yM9OqVNDt7N995JY3lOA4IgiAIgiAIgiAIggiPXeoGEARBEARBEARBEESlQCKbIAiCIAiCIAiCICKCRDZBEARBEARBEARBRASJbIIgCIIgCIIgCIKICBLZBEEQBEEQBEEQBBERJLIJgiAIgiAIgiAIIiJIZBMEQRAEQRAEQRBERFSUyLYs6wLLsh60LGuuZVmOZVlfedivb1nWY5ZlLbMsa6VlWa9alrWLwta2LOsMy7JmWZbVaVnWfMuyrrEsq18snSEIgiAIgiAIgiDKDstxnFK3ITIsy3IAtAB4D8DmANocxxmrsB0P4G0APQCuA7AcwAkApgDY23Gc5wX76wGcBuBRAE8D2ADAqQBeBbCb4ziZ6HtEEARBEARBEARBlBOVJrLHOY4zN7s/E0CTRmQ/AOBgAJs7jjMjm9YE4GMAnQAmOdmTY1nWhgA+AvCo4zgHcz5OBXADgCMcx7k/rn4RBEEQBEEQBEEQ5UFFDRdnA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iOd5twtj3g8lkV2B53l3AriTMdYNwGYAfofShm7PMMbWEK/VJgiCIIg8QMvFCYIgCCInMMZ6ALgNpeuYD/Q8b7HneR8D+AuA5QHcYCmVL7K/kfTtW34UBfjA8uPDqGZEUDLP8+Z6njfO87zDAdwOoAeALfWGShAEQRBuQSKbIAiCIPLDPwCsCOAsz/M+5NqvQGmJ9h6qe1LrwhhrArB2+eUWQt/eAPz4HwmuU8qPWws+OwI4TJLnt+V7fIv0Lj8u0B40QRAEQTgELRcnCIIgiBzAGDsIwN4o3YP6Cr7P87wiY+xgAB8CuJYx9rLneTMiplobpWunvwdwH2PsEQBzAKwHYBiAWShVzc9mjF3med5bZb/rUbq/9YOMsYdRqoKvDeC3AB4AsI+Q518AFjHGXkNJoDOUqtcboVQlfz7i+AmCIAgiU6iSTRAEQRCOwxjrD+BaAPMA/N7zvKJo43ne1wBOBNANwK2MMRYxnb9U/HwA1wHYAaXrpJtRujf3ZShVmVcGMI3L/2G5/w0AIwEcBaALgN0hX8b+JwBvlvMdjZJAb0LpOvNtPM+rurUXQRAEQeQBxm0MShAEQRBEncAY2xrASwDO8zzvXK797yiJ3uGe572dyeACYIy9DGCE53lRv0QgCIIgiEShSjZBEARB1DfnlO9n/Vn59foo3XZLvOY6Mxhjvbh7bgduokYQBEEQWUPXZBMEQRBEfTIFwHnc69mMsQYA6wL4zPO8hZmMSs4CVI6VIAiCIJyFlosTBEEQBAEAYIytBeBjAPd4nhdrl3KCIAiCqFdIZBMEQRAEQRAEQRCEJeiabIIgCIIgCIIgCIKwBIlsgiAIgiAIgiAIgrAEiWyCIAiCIAiCIAiCsASJbIIgCIIgCIIgCIKwBIlsgiAIgiAIgiAIgrAEiWyCIAiCIAiCIAiCsASJbIIgCIIgCIIgCIKwBIlsgiAIgiAIgiAIgrDE/wODmt+VWmIjlAAAAABJRU5ErkJggg==\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "plt.figure(2, figsize=(16.,16.))\n", "plt.clf()\n", "plt.ion()\n", "plt.gca().invert_xaxis()\n", "plt.xlabel(\"X [$\\mu$as]\", fontsize=20.)\n", "plt.ylabel(\"Y [$\\mu$as]\", fontsize=20.)\n", "plt.yticks(fontsize=18)\n", "plt.xticks(fontsize=18)\n", "\n", "imgEVPA=np.arctan2(imgU, imgQ)/2.\n", "imgLP=np.sqrt(imgQ**2 +imgU**2)/imgI\n", "imgCP = imgV/imgI\n", "\n", "muasperpxl=fov/npix\n", "ntick=31 # nb of ticks to plot along horiz dir\n", "steps=int(npix/ntick)\n", "multmarker=2. # size of polar arrow in plot\n", "for itick in range(ntick):\n", " for jtick in range(ntick):\n", " imid=int(steps*itick+steps/2.)\n", " jmid=int(steps*jtick+steps/2.)\n", " Iloc=imgI[jmid,imid]\n", " EVPAloc=imgEVPA[jmid,imid]\n", " LPloc=imgLP[jmid,imid]\n", " xx=(imid-int(npix/2.))*muasperpxl\n", " yy=(jmid-int(npix/2.))*muasperpxl\n", " if imgI[jmid,imid]>0.08*imgI.max():\n", " plt.plot([xx+multmarker*LPloc*math.sin(EVPAloc),xx-multmarker*LPloc*math.sin(EVPAloc)],\n", " [yy-multmarker*LPloc*math.cos(EVPAloc),yy+multmarker*LPloc*math.cos(EVPAloc)],\n", " color='white', linewidth=1.5)\n", "\n", "plt.imshow(imgI, interpolation='nearest', origin='lower', cmap=cmap1, extent=(-fov/2.,fov/2.,-fov/2.,fov/2.))" ] }, { "cell_type": "code", "execution_count": null, "id": "4daed42e", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.12" } }, "nbformat": 4, "nbformat_minor": 5 } Gyoto-2.0.2/doc/examples/example-complex-astrobj.xml000066400000000000000000000056161455254334400225040ustar00rootroot00000000000000 0. 1000. 100. 1.22 0. 0.314159265358979323846264338327950288419716 32 2.0e-6 2.4e-6 2. 0. 0. 0.037037 600. 9. 1.5707999999999999741 0 0 0.001 0 0.01 2. 0. 0. 0.037037 650. 9. 1.5707999999999999741 0 0 0 0 1 1. 0. 0. 0.037037 550. 9. 1.5707999999999999741 0 0 1e-4 0 1 2. 0. 0. 0.037037 550. 9. 1.5707999999999999741 0 0 1e-3 0 0.1 9 1. 0. 1e-2 0. 1e-3 12 0 0 0 0 0.001 0 0.01 10000. Spectrum 0. Gyoto-2.0.2/doc/examples/example-fixed-star-KS.xml000066400000000000000000000023741455254334400217520ustar00rootroot00000000000000 4e6 8 150 In UTF-8 locales, "microas" may be written "µas". 90 In UTF-8 locales, "degree" may be written "°". 0 0 32 12 0 0 0 0 0.001 0 0.01 1e9 -1. Intensity One can also specify a unit (if Gyoto was compiled with --with-udunits): Intensity[mJy/pix²] Intensity[mJy/µas²] Intensity[J.m-2.s-1.sr-1.Hz-1] Intensity[erg.cm-2.s-1.sr-1.Hz-1] Intensity[mJy.sr-1] Intensity[Jy.sr-1] Gyoto-2.0.2/doc/examples/example-fixed-star-RZ.xml000066400000000000000000000027741455254334400217740ustar00rootroot00000000000000 0. 4e6 8 150 Note: "microas" can be written "µas" in UTF-8 locales. We use the ASCII version here as automated systems are not always configured with a UTF-8 locales by default. 90 "degree" can be written "°" in UTF-8 locales. 0 0 32 12 0 0 0 0 0.001 0 0.01 1e0 0. Intensity One can also specify a unit (if Gyoto was compiled with --with-udunits): Intensity[mJy/pix²] Intensity[mJy/µas²] Intensity[J.m-2.s-1.sr-1.Hz-1] Intensity[erg.cm-2.s-1.sr-1.Hz-1] Intensity[mJy.sr-1] Intensity[Jy.sr-1] The subscript "²" requires a UTF-8 locale. A normal "2" can be used instead. 12 Gyoto-2.0.2/doc/examples/example-fixed-star-binaryBH-wip.xml000066400000000000000000000030431455254334400237220ustar00rootroot00000000000000 3. 3. 3. 3. -3. -3. -3. -3. 4e6 8 150 In UTF-8 locales, "microas" may be written "µas". 90 In UTF-8 locales, "degree" may be written "°". 0 0 32 12 0 0 0 0 0.001 0 0.01 1e9 -1. Intensity One can also specify a unit (if Gyoto was compiled with --with-udunits): Intensity[mJy/pix²] Intensity[mJy/µas²] Intensity[J.m-2.s-1.sr-1.Hz-1] Intensity[erg.cm-2.s-1.sr-1.Hz-1] Intensity[mJy.sr-1] Intensity[Jy.sr-1] Gyoto-2.0.2/doc/examples/example-fixed-star-complex-metric-KS-wip.xml000066400000000000000000000025261455254334400254740ustar00rootroot00000000000000 4e6 4e6 8 150 In UTF-8 locales, "microas" may be written "µas". 90 In UTF-8 locales, "degree" may be written "°". 0 0 32 12 0 0 0 0 0.001 0 0.01 1e9 -1. Intensity One can also specify a unit (if Gyoto was compiled with --with-udunits): Intensity[mJy/pix²] Intensity[mJy/µas²] Intensity[J.m-2.s-1.sr-1.Hz-1] Intensity[erg.cm-2.s-1.sr-1.Hz-1] Intensity[mJy.sr-1] Intensity[Jy.sr-1] Gyoto-2.0.2/doc/examples/example-fixed-star-minkowski-cartesian.xml000066400000000000000000000026051455254334400254140ustar00rootroot00000000000000 An optically thin blob centered on the origin of the coordinate system, in flat space-time. Computation uses the Cartesian coordinates. 4e6 8 150 In UTF-8 locales, "microas" may be written "µas". 90 In UTF-8 locales, "degree" may be written "°". 0 0 32 12 0 0 0 0 0.001 0 0.01 1e0 0. Intensity One can also specify a unit (if Gyoto was compiled with --with-udunits): Intensity[mJy/pix²] Intensity[mJy/µas²] Intensity[J.m-2.s-1.sr-1.Hz-1] Intensity[erg.cm-2.s-1.sr-1.Hz-1] Intensity[mJy.sr-1] Intensity[Jy.sr-1] Gyoto-2.0.2/doc/examples/example-fixed-star-minkowski-spherical.xml000066400000000000000000000026261455254334400254200ustar00rootroot00000000000000 An optically thin blob centered on the origin of the coordinate system, in flat space-time. Computation uses the spherical coordinates. 4e6 8 150 In UTF-8 locales, "microas" may be written "µas". 90 In UTF-8 locales, "degree" may be written "°". 0 0 32 12 0 0 0 0 0.001 0 0.01 1e0 0. Intensity One can also specify a unit (if Gyoto was compiled with --with-udunits): Intensity[mJy/pix²] Intensity[mJy/µas²] Intensity[J.m-2.s-1.sr-1.Hz-1] Intensity[erg.cm-2.s-1.sr-1.Hz-1] Intensity[mJy.sr-1] Intensity[Jy.sr-1] Gyoto-2.0.2/doc/examples/example-fixed-star.xml000066400000000000000000000027621455254334400214400ustar00rootroot00000000000000 0. 4e6 8 150 Note: "microas" can be written "µas" in UTF-8 locales. We use the ASCII version here as automated systems are not always configured with a UTF-8 locales by default. 90 "degree" can be written "°" in UTF-8 locales. 0 0 32 12 0 0 0 0 0.001 0 0.01 1e0 0. Intensity One can also specify a unit (if Gyoto was compiled with --with-udunits): Intensity[mJy/pix²] Intensity[mJy/µas²] Intensity[J.m-2.s-1.sr-1.Hz-1] Intensity[erg.cm-2.s-1.sr-1.Hz-1] Intensity[mJy.sr-1] Intensity[Jy.sr-1] The subscript "²" requires a UTF-8 locale. A normal "2" can be used instead. 12 Gyoto-2.0.2/doc/examples/example-fixedstar-rotstar3_1.xml000066400000000000000000000015421455254334400233550ustar00rootroot00000000000000 The path is normally either absolute or relative to the XML file, but it is interpreted as relative to the working directory if prefixed with "`pwd`/" : `pwd`/.check-lorene/resu.d SpecificIntegrator: 3+1D integration; GenericIntegrator: 4D integration. 1000. 25. 1.57 0. 1. 32 1. 15. 1.5707999999999999741 3.1415926535897932384 Gyoto-2.0.2/doc/examples/example-jet.xml000066400000000000000000000042401455254334400201450ustar00rootroot00000000000000 Uncomment the line above to generate high-quality images. Useless for spectra (increases computing time). 4.1e6 0. 8.1 27.169411e3 500 160 i = 180 - Inclination 3.1415 This rotates the Screen in its plane -1.5708 This changes the phi position of the Screen 201 Choose an odd integer, easier for spectrum computation by plot-Spectrum.py The Spectrometer above computes a spectrum with 30 values of frequency between 1e11 and 1e18 Hz. To compute just one image at 1.3mm, use the Spectro below 11.36 11.36 Spectrum 0.41 0.35 2. in M units 1.15 5e7 3e10 0.21 0.01 5.5 100. in M units; photon discusses with Jet only below this value, so be sure that the interesting part of the Jet in your field of view is contained within this radius. 0.2 This is a radiative transfer parameter inside the Jet: the photon geodesic inside the Jet will be cut in small steps of this size in M units to integrated the radiative transfer. -1e10 Photon integration stops for times smaller than that. 8 Depends on your machine! Gyoto-2.0.2/doc/examples/example-moving-star-CS.xml000066400000000000000000000024251455254334400221370ustar00rootroot00000000000000 0. 0.5 1000. 100. 0.78 0. 0.314159265358979323846264338327950288419716 128 2.0e-6 2.4e-6 By using a cleverly pre-computed mask, on can avoid computing pixels that are known to be black. The path is normally either absolute or relative to the XML file, but it is interpreted as relative to the working directory if prefixed with "`pwd`/" : `pwd`/example-startrace.fits 2. 0. 0. 0.037037 600. 9. 1.5707999999999999741 0 6000 0 0.1 50. Spectrum 2 0. Gyoto-2.0.2/doc/examples/example-moving-star-complex-metric-wip.xml000066400000000000000000000025601455254334400253570ustar00rootroot00000000000000 0. 0. 1000. 100. 0.78 0. 0.314159265358979323846264338327950288419716 128 2.0e-6 2.4e-6 By using a cleverly pre-computed mask, on can avoid computing pixels that are known to be black. The path is normally either absolute or relative to the XML file, but it is interpreted as relative to the working directory if prefixed with "`pwd`/" : `pwd`/example-startrace.fits 2. 0. 0. 0.037037 600. 9. 1.5707999999999999741 0 6000 0 0.1 50. Spectrum 2 0. Gyoto-2.0.2/doc/examples/example-moving-star.xml000066400000000000000000000023631455254334400216350ustar00rootroot00000000000000 0. 1000. 100. 0.78 0. 0.314159265358979323846264338327950288419716 128 2.0e-6 2.4e-6 By using a cleverly pre-computed mask, on can avoid computing pixels that are known to be black. The path is normally either absolute or relative to the XML file, but it is interpreted as relative to the working directory if prefixed with "`pwd`/" : `pwd`/example-startrace.fits 2. 0. 0. 0.037037 600. 9. 1.5707999999999999741 0 6000 0 0.1 50. Spectrum 2 0. Gyoto-2.0.2/doc/examples/example-movingstar-rotstar3_1.xml000066400000000000000000000016621455254334400235600ustar00rootroot00000000000000 The path is normally either absolute or relative to the XML file, but it is interpreted as relative to the working directory if prefixed with "`pwd`/" : `pwd`/.check-lorene/resu.d SpecificIntegrator: 3+1D integration; GenericIntegrator: 4D integration. 1000. 21. 1.22 0. 0.78 32 1.5 0. 0. 0.03 0. 6. 1.5707999999999999741 0 0. Gyoto-2.0.2/doc/examples/example-oscil-torus.xml000066400000000000000000000034161455254334400216520ustar00rootroot00000000000000 10 0. 1000. 1000. 1.484 0. 0.07 50 1e17 1e17 Spectrum 18. Torus radius: distance from origin to center of torus tube 0.0001 Polytropic constant kappa 1.5 Polytropic index n 1. Central energy density 0 Mode number Only for mode=0, file containing time series of cross section area: t1 area1 t2 area2 ... tN areaN Breathing Perturbation kind, one of Radial Vertical X Plus Breathing 0.15 Perturbation strength NB: if this factor is >>1 (absurd case) then the image looks strange as the perturbation 4-vel is ~ the Keplerian 4-vel, so the redshift distribution (hence the intensity) is more or less random. Always optically thick 50. 50. Increase SafetyValue if you have trouble resolving the surface of the doughnut. Increasing SafetyValue also increases computation time. The default value is slightly more conservative. -1000. 1 Gyoto-2.0.2/doc/examples/example-page-thorne-disk-BL-with-basis.xml000066400000000000000000000027761455254334400251030ustar00rootroot00000000000000 0. 1000. 100. 0.785 0. 1.010152544552210596151553545496426522731781005859375 0. 0. 0. 0. 0. 0. -0.0141477698691514323925400020698361913673579692840576171875 0. 0. -0.01000000000000000020816681711721685132943093776702880859375 0. 0. -0.98994949366116646860547234609839506447315216064453125 0. 0. 1.570796327 0. 101 -1000. Bolometric emission, this is the default (and only intensity) for PageThorneDisk. Gyoto-2.0.2/doc/examples/example-page-thorne-disk-BL.xml000066400000000000000000000011741455254334400230220ustar00rootroot00000000000000 0. 1000. 100. 1.22 0. 0.314159265358979323846264338327950288419716 32 -1000. Bolometric emission, this is the default (and only intensity) for PageThorneDisk. Gyoto-2.0.2/doc/examples/example-page-thorne-disk-KS.xml000066400000000000000000000013361455254334400230420ustar00rootroot00000000000000 Warning: this metric is seldom used and may be buggy. 0. 1000. 93.909936 0. 34.364575 0.314159265358979323846264338327950288419716 32 -1000. Bolometric emission, this is the default (and only intensity) for PageThorneDisk. Gyoto-2.0.2/doc/examples/example-polish-doughnut-RZ.xml000066400000000000000000000045731455254334400230560ustar00rootroot00000000000000 4.31e6 0.01 Horizon parameter rH=2/(1+eps) 0.01 0.01 RZ14 a-parameters [a0,a1,a2,a3]; are zero if not provided 0.01 0.01 same for RZ14 b-parameters Compare with Schwarzschild metric: 8.33 Time of start of ray tracing 300 This inclination is 180° minus the standard disk inclination (angle between spin vector and line of sight) 95 3.1415 -1.5708 30 Compute a spectrum with 50 frequencies from 10^10 Hz to 10^18 Hz 10. 18. Spectrum Compute Bremsstrahlung spectrum? Compute non-thermal synchrotron spectrum with a fraction delta of non-thermal electrons and a power-law exponent? The default is to compute only the thermal synchrotron spectrum. Compute synchrotron averaged over angle between Bfield and direciton of emission? Constant angular momentum -u_phi / u_t, and inner radius 4. 6.2 Typical SgrA* enthalpy hc = 9000 cgs; ne [cm^{-3}] ~ 700 * hc [cgs] 9000 Typical SgrA* central temperature: 5e10K 5.3e10 beta = p_gas / p_mag 10 RMax: caution, make sure the torus is smaller than that! 100. Computation stops for time less than following value to prevent infinite integration -1e10 Do we want to use multi-threading? 1 Gyoto-2.0.2/doc/examples/example-polish-doughnut-hayward-wormhole.xml000066400000000000000000000042631455254334400260100ustar00rootroot00000000000000 This scenery yields the throat of a naked rotating worm-hole. 1e3 100000 4.31e6 0.9 1 2e-7 1e9 80 3.1415 -1.5708 500 11.36 11.36 Spectrum 4 8.3 9000 5.3e10 10 300. 0. Increase SafetyValue if you have trouble resolving the surface of the doughnut. Increasing SafetyValue also increases computation time. The default value is slightly more conservative. -1000. 4 Gyoto-2.0.2/doc/examples/example-polish-doughnut.sbatch000066400000000000000000000010721455254334400231600ustar00rootroot00000000000000#!/bin/bash #SBATCH --job-name=Gyoto #SBATCH --nodes=4 --ntasks-per-node=4 set -e SCRATCH=/scratch/$USER/run.${SLURM_JOBID} XMLFILE=$HOME/git/Gyoto/doc/examples/example-polish-doughnut.xml FITSFILE=\!toto.fits export LD_LIBRARY_PATH=/usr/local/lib:$HOME/usr/lib:$LD_LIBRARY_PATH export PATH=$HOME/usr/bin:$PATH:$HOME/usr/lib/gyoto/3.0.1 mpirun -n 1 mkdir -p $SCRATCH mpirun -n 1 cp $XMLFILE $SCRATCH/ mpirun -n 1 -wdir $SCRATCH ${HOME}/usr/bin/gyoto \ --nprocesses=15 `basename $XMLFILE` $FITSFILE mpirun -n 1 cp -a $SCRATCH $HOME/ && rm -Rf $SCRATCH exit 0 Gyoto-2.0.2/doc/examples/example-polish-doughnut.xml000066400000000000000000000043351455254334400225210ustar00rootroot00000000000000 4.31e6 Note: check value of AngMomRinner in PolishDoughnut when changing Spin. 0.9 8.33 Time of start of ray tracing 300 This inclination is 180° minus the standard disk inclination (angle between spin vector and line of sight) 95 3.1415 -1.5708 30 Compute a spectrum with 50 frequencies from 10^10 Hz to 10^18 Hz 10. 18. Spectrum Compute Bremsstrahlung spectrum? Compute non-thermal synchrotron spectrum with a fraction delta of non-thermal electrons and a power-law exponent? The default is to compute only the thermal synchrotron spectrum. Compute synchrotron averaged over angle between Bfield and direciton of emission? Constant angular momentum -u_phi / u_t, and inner radius Must be set according to Spin. This is for Spin=0.9: 3.2 4.2 and this is for Spin=0.: Typical SgrA* enthalpy hc = 9000 cgs; ne [cm^{-3}] ~ 700 * hc [cgs] 9000 Typical SgrA* central temperature: 5e10K 5.3e10 beta = p_gas / p_mag 10 RMax: caution, make sure the torus is smaller than that! 100. Computation stops for time less than following value to prevent infinite integration -1e10 Do we want to use multi-threading? 1 Gyoto-2.0.2/doc/examples/example-startrace.xml000066400000000000000000000020421455254334400213510ustar00rootroot00000000000000 0. 1000. 100. 0.78 0. 0.314159265358979323846264338327950288419716 128 2.0e-6 2.4e-6 2. 0. 0. 0.037037 600. 9. 1.5707999999999999741 0 6000 0 0.1 50. 600 800 5 Intensity MinDistance 2 0. Gyoto-2.0.2/doc/examples/example-thick-disk.xml000066400000000000000000000026011455254334400214140ustar00rootroot00000000000000 0.1 Setup adapted to M87* 6.2e9 0.8 Setup adapted to M87* 16.9 27.169411e3 80 20 i = 180° - Inclination = 160° 70 Spin PA East of North = 180° - PALN = 110° [360°] so Jet PA East of North is 290° as the jet is counter-aligned 50 11.36 11.36 Spectrum 1.1 1.6 0.61 1. V, Vphi/V as observed by ZAMO 7.8e5 8e10 1. 0.1 30. 0.1 -1e10 8 Gyoto-2.0.2/doc/examples/example-thin-disk-KS.xml000066400000000000000000000007721455254334400215760ustar00rootroot00000000000000 0. 1000. 93.91 0. 34.36 0.314159265358979323846264338327950288419716 32 3. 0. Gyoto-2.0.2/doc/examples/example-thin-disk-minkowski-cartesian.xml000066400000000000000000000012301455254334400252310ustar00rootroot00000000000000 An optically thin, geometrically thin disk in Keplerian rotation, viewed in flat Minkowski space-time. Computation is done using Cartesian coordinates. 1000. 93.91 0. 34.36 0.314159265358979323846264338327950288419716 32 3. 0. Gyoto-2.0.2/doc/examples/example-thin-disk-minkowski-spherical.xml000066400000000000000000000012471455254334400252420ustar00rootroot00000000000000 An optically thin, geometrically thin disk in Keplerian rotation, viewed in flat Minkowski space-time. Computation is done using spherical coordinates. 1000. 100. 1.22 0. 0.314159265358979323846264338327950288419716 32 3. 0. Gyoto-2.0.2/doc/examples/example-thin-disk.xml000066400000000000000000000007701455254334400212610ustar00rootroot00000000000000 0. 1000. 100. 1.22 0. 0.314159265358979323846264338327950288419716 32 3. 0. Gyoto-2.0.2/doc/examples/example-torus-KS.xml000066400000000000000000000014761455254334400210620ustar00rootroot00000000000000 0.52 1000. 70.33 0. 71.09 0.15 32 2.0e-6 2.4e-6 3.5 0.5 0. 1. 0. 1e-10 20. BinSpectrum Gyoto-2.0.2/doc/examples/example-torus.xml000066400000000000000000000014741455254334400205450ustar00rootroot00000000000000 0.52 1000. 100. 0.78 0. 0.15 32 2.0e-6 2.4e-6 3.5 0.5 0. 1. 0. 1e-10 20. BinSpectrum Gyoto-2.0.2/doc/examples/example-torusjet.xml000066400000000000000000000054511455254334400212470ustar00rootroot00000000000000 Uncomment the line above to generate high-quality images. Useless for spectra (increases computing time). 4.1e6 0. 8.1 27.169411e3 500 160 i = 180 - Inclination 3.1415 This rotates the Screen in its plane -1.5708 This changes the phi position of the Screen 201 Choose an odd integer, easier for spectrum computation by plot-Spectrum.py 11. 18. The Spectrometer above computes a spectrum with 30 values of frequency between 1e11 and 1e18 Hz. To compute just one image at 1.3mm, use the Spectro below Spectrum 0.41 0.35 2. in M units 1.15 5e7 3e10 0.21 0.01 5.5 100. in M units; photon discusses with Jet only below this value, so be sure that the interesting part of the Jet in your field of view is contained within this radius. 0.2 This is a radiative transfer parameter inside the Jet: the photon geodesic inside the Jet will be cut in small steps of this size in M units to integrated the radiative transfer. 4. 8. 2000000 The central enthalpy (hc) is provided here. For a central number density of nc=1.2e9 cm-3, the central enthalpy is: hc = 2e6 7e9 0.002 100. 0.2 -1e10 Photon integration stops for times smaller than that. 8 Depends on your machine! Gyoto-2.0.2/doc/examples/plot-Image.py000066400000000000000000000041701455254334400175620ustar00rootroot00000000000000import numpy as np import matplotlib.pyplot as plt import pyfits as fits import cv2 import math import matplotlib.patches as mpatches image_file="gyoto_image.fits" fov=250 # field of view in µas, as given in the XML convertSItoCGS=1e3 # SI to cgs conversion for I_nu (gyoto speaks in SI) mycmap="YlGnBu" # python cmap choice ################################################### ############ End of input parameters ############## ############ Nothing to edit below ############## ################################################### liminf=-fov/2. limsup=-liminf image = fits.getdata(image_file)[0] image*=convertSItoCGS print("Min,max intensity= ",image.min(),image.max()) plt.figure(0) plt.clf() plt.ion() plt.imshow(image,interpolation='nearest',origin='lower',extent=(-fov/2.,fov/2.,-fov/2.,fov/2.),cmap=mycmap) plt.xlim(liminf,limsup) plt.ylim(liminf,limsup) plt.colorbar() plt.xlabel("x ($\mu$as)", size=12) plt.ylabel("y ($\mu$as)", size=12) NN=image.shape[0] image_moments=np.zeros((NN, NN, 1), dtype = "float") image_moments[:,:,0]=image # for some reason, cv2 needs this translation, # I guess due to some dimension convention allmoms=cv2.moments(image_moments) mu00=allmoms["m00"] mu11=allmoms["mu11"] mu20=allmoms["mu20"] mu02=allmoms["mu02"] mup02=mu02/mu00 mup20=mu20/mu00 mup11=mu11/mu00 # ellipse axes in pixels, convert to muas pxlinmuas=fov/NN semimajor=math.sqrt(2.*(mup02+mup20 +math.sqrt(4.*mup11**2+(mup20-mup02)**2))) semiminor=math.sqrt(2.*(mup02+mup20 -math.sqrt(4.*mup11**2+(mup20-mup02)**2))) semimajor*=pxlinmuas semiminor*=pxlinmuas print("Ellipse typical diameter (muas)= ",2.*0.5*(semimajor+semiminor)) theta=0.5*math.atan2(2.*mup11,(mup20-mup02))*180./math.pi ellcenxmax=np.where(image==image.max())[1][0] ellcenymax=np.where(image==image.max())[0][0] ellcenx=(ellcenxmax-NN/2.)*pxlinmuas ellceny=(ellcenymax-NN/2.)*pxlinmuas # the *diameters* of the ellipse should be given to mpatches.Ellipse: ell = mpatches.Ellipse((ellcenx, ellceny), 2*semimajor, 2*semiminor, theta, edgecolor="black", facecolor='none') plt.gca().add_patch(ell) plt.show() Gyoto-2.0.2/doc/examples/plot-Spectrum.py000066400000000000000000000125641455254334400203500ustar00rootroot00000000000000import numpy as np import math import matplotlib.pyplot as plt import pyfits as fits import scipy.integrate as integrate from scipy.special import kn import time from simpson import * # in ~/mypythonlib image_file="gyoto_spectrum.fits" image_cube = fits.getdata(image_file) # Lower and upper values of the exponent of your frequency # as chosen in the XML Spectrometer field. low_freq_exp=11. high_freq_exp=18. convertSItoCGS=1e3 # SI to cgs conversion for I_nu (gyoto speaks in SI) fov=500 # observer's field of view in µas, as specified # in the XML FieldOfView field # Sgr A* distance and mass DD_kpc=8.1 MM_sunmass=4.1e6 # Choose whether to plot or not Sgr A* observed data plotobsradio=1 plotobsIR=1 plotobsX=1 ################################################### ############ End of input parameters ############## ############ Nothing to edit below ############## ################################################### kiloparsec_cgs = 1e3*3.08e18 sunmass_cgs = 1.99e33 DD=DD_kpc*kiloparsec_cgs MM=MM_sunmass*sunmass_cgs # M used only if unit_length=0 GG=6.67e-8;c2=2.99792458e10*2.99792458e10 GMoc2 = GG*MM/c2 angle=0.5*fov*1e-6/3600.*math.pi/180. nbnuobs = image_cube.shape[0] # number of frequencies computed npix = image_cube.shape[1] # number of pixels along one dimension of Screen dfovreal=2*angle/npix # number of rad per pxl spectrum = np.zeros(nbnuobs, dtype=float) # Put in spectrum, for each frequency, the sum of all intensities # over screen pixel, multiplied by the solid angle subtended by one pixel for ii in range(0,nbnuobs): imnu = image_cube[ii,:,:] spectrum[ii] = mysimps2D(imnu,dfovreal,dfovreal) spectrum*=convertSItoCGS # Create the array containing the values of frequencies computed, in Hz # Remember the frequencies are evenly separated in log space nuobs = np.zeros(nbnuobs, dtype=float) freq_exp_array = np.zeros(nbnuobs+1, dtype=float) for ii in range(0,nbnuobs+1): freq_exp_array[ii] = low_freq_exp + ii*(high_freq_exp-low_freq_exp)/nbnuobs for ii in range(1,nbnuobs+1): nuobs[ii-1] = 0.5*(pow(10,freq_exp_array[ii-1]) + pow(10,freq_exp_array[ii])) plt.figure(0) plt.clf() plt.ion() plt.loglog(nuobs,4*math.pi*DD*DD*nuobs*spectrum,color="red") plt.xlabel('$\\nu$ (Hz)',fontsize=14) plt.ylabel('$\\nu L_\\nu$ (erg/s)',fontsize=14) plt.show() # SgrA* observation if plotobsradio==1: # RADIO # Data from Bower+15 Table 7 # To these points, are added (last 4 points of the vector): # 2 points at 100GHz from Brinkerink+15 Fig. 2 # 1 point at 492 GHz from Liu+16 (A&A 593 A44) see abstract # 1 point at 690GHz from Marrone+06 nuobsdata=np.asarray([1.6,3.1,5.4,9.,14.,21.1,32.,40.9,218.,220.,231.9,233.8,341.6,343.6,351.7,353.6,216.8,223.9,238.2,266.8,274.,331.1,338.3,352.6,98.,108.,492.,690.])*1e9 fluxobs=np.asarray([0.592,0.702,0.87,0.932,1.075,1.164,1.382,1.485,3.667,3.661,3.676,3.704,3.602,3.609,3.595,3.553,3.677,3.391,3.310,3.369,3.526,3.205,3.436,4.89,2.41,2.6,3.6,3.8])*1e-23 # Jy errobs=np.asarray([0.028,0.032,0.118,0.129,0.135,0.052,0.087,0.073,0.65,0.652,0.664,0.68,0.866,0.87,0.884,0.86,0.762,0.489,0.424,0.096,0.697,1.074,0.863,0.721,0.18,0.2,0.72,2.2])*1e-23 plt.scatter(nuobsdata,4*math.pi*DD*DD*nuobsdata*fluxobs,color="black") plt.errorbar(nuobsdata,4*math.pi*DD*DD*nuobsdata*fluxobs,yerr=4*math.pi*DD*DD*nuobsdata*errobs,linestyle='None',ecolor="black",elinewidth=3) if plotobsIR==1: # FIR point from Fellenberg+18 (upper lims) ll=np.asarray([160.,100.])*1e-6 # lambda in m c_SI=299792458. nuobsdata=c_SI/ll # nu in Hz fluxFIR=np.asarray([1.06,0.64])*1e-23 # Jy errFIR=np.asarray([0.24,0.4])*1e-23 plt.scatter(nuobsdata,4*math.pi*DD*DD*nuobsdata*fluxFIR,color="black") plt.errorbar(nuobsdata,4*math.pi*DD*DD*nuobsdata*fluxFIR,yerr=4*math.pi*DD*DD*nuobsdata*errFIR,uplims=4*math.pi*DD*DD*nuobsdata*errFIR,linestyle='None',ecolor="black",elinewidth=3) # NIR points taken from Witzel+18 ll=np.asarray([4.5,2.18])*1e-6 # lambda in m nuobsdata_IR=c_SI/ll # nu in Hz nnuLnu_IR_8d3kpc=np.asarray([3.2,2.6])*1e34 nnuLnu_IR_DD=nnuLnu_IR_8d3kpc/8.3**2 * DD_kpc**2 fluxobs_IR=nnuLnu_IR_DD/(nuobsdata_IR*4.*math.pi*DD**2) #cgs flux errobs_IR_8d3kpc=np.asarray([1.4,1.2])*1e34 # in nu*Lnu for 8.3kpc errobs_IR_DD=errobs_IR_8d3kpc/8.3**2 * DD_kpc**2 errobs_IR=errobs_IR_DD/(nuobsdata_IR*4.*math.pi*DD**2) # cgs flux error plt.scatter(nuobsdata_IR,4*math.pi*DD*DD*nuobsdata_IR*fluxobs_IR,color="black") plt.errorbar(nuobsdata_IR,4*math.pi*DD*DD*nuobsdata_IR*fluxobs_IR,yerr=4*math.pi*DD*DD*nuobsdata_IR*errobs_IR,linestyle='None',ecolor="black",elinewidth=3) if plotobsX==1: # From Baganoff+01: 2-10 keV integrated luminosity is 2.2[+0.4 -0.3]e33 erg/s numin=2. * 1e3*1.6e-19/6.62e-34 # in Hz numax=10. * 1e3*1.6e-19/6.62e-34 luminosityX=2.2e33 errlum_low=0.3e33 errlum_high=0.4e33 Gamma=2.2 index=2.-Gamma integral=(numax**index/index - numin**index/index) Aavg=luminosityX/integral Ahigh=(luminosityX+errlum_high)/integral Alow=(luminosityX-errlum_low)/integral plt.plot([numin,numax],[Ahigh*numin**index,Alow*numax**index],color="black",linewidth=3) plt.plot([numin,numax],[Alow*numin**index,Ahigh*numax**index],color="black",linewidth=3) plt.plot([numin,numin],[Alow*numin**index,Ahigh*numin**index],color="black",linewidth=3) plt.plot([numax,numax],[Alow*numax**index,Ahigh*numax**index],color="black",linewidth=3) Gyoto-2.0.2/doc/examples/simpson.py000066400000000000000000000050341455254334400172540ustar00rootroot00000000000000import numpy as np import sys # 1D (just for checking) def mysimps(yy,xx): # this mysimps was compared to scipy.integrate.simps # and agrees to perfect accuracy nn = len(yy) ww = weight1D(nn) dx = xx[1]-xx[0] mysum=0 for ii in range(nn): mysum+=yy[ii]*ww[ii] return dx/3.*mysum def weight1D(nn): # nn i the number of x_i where the integrated function will be called; # integ = dx/3*(f_1 + 4*f_2 + 2*f_3 + 4*f_4 + 2*f_5 ... + 4*f_nn-1_ + f_nn) # with f_i = f(x_i) # This function implements the weights of the f_i above. if nn%2!=1: sys.exit("nn should be odd") if nn<5: sys.exit("choose at least 5 evaluation points") ww = np.zeros(nn)+1. for ii in range(1,nn-1): # [1,2,...nn-2] if ii%2==1: ww[ii]=4 else: ww[ii]=2 return ww # 2D def mysimps2D(image,dx,dy): # 2D sampled Simpson integration, does not exist built-in... # dx and dy are the (constant) increment x_i+1_ - x_i # and y_i+1_ - y_i nn = len(image) # Simpson needs odd number of samples, so if nn is even # check that last col and last line of image are zero # (should typically be in Gyoto...) and remove them if nn%2==0: if np.count_nonzero(image[:,nn-1])==0 \ and np.count_nonzero(image[nn-1,0])==0: image=image[0:nn-1,0:nn-1] else: sys.exit("The Gyoto resolution (Npix) should be odd, \ or the last row and column should be zero") nn = len(image) ww = weight2D(nn) mysum=0 for ii in range(nn): for jj in range(nn): mysum+=image[ii,jj]*ww[ii,jj] #mysum = sum(map(sum,image*ww)) return dx*dy/9.*mysum def weight2D(nn): # Produce the weight matrix: # 1 4 2 4 ... 2 4 1 # 4 16 8 16 ... 8 16 4 # 2 8 4 8 ... 4 8 2 # 4 16 8 16 ... 8 16 4 # ..... # 2 8 4 8 ... 4 8 2 # 4 16 8 16 ... 8 16 4 # 1 4 2 4 ... 2 4 1 # # Remember that M[ii,jj] in python means line ii, col jj if nn%2!=1: sys.exit("nn should be odd") if nn<5: sys.exit("choose at least 5 evaluation points") ww = np.zeros((nn,nn)) for ii in range(nn): ww[ii,0]=1 ww[ii,nn-1]=1 for jj in range(1,nn-1): if jj%2==1: ww[ii,jj]=4 else: ww[ii,jj]=2 if ii%2==1: ww[ii,:]*=4 if ii%2==0 and ii>0 and ii> >> endobj 2 0 obj << /Creator (Scribus 1.3.5.1) /Producer (Scribus PDF Library 1.3.5.1) /Title <> /Author <> /Keywords <> /CreationDate (D:20120705201821) /ModDate (D:20120705201821) /Trapped /False >> endobj 9 0 obj << /Length 169 /Filter /FlateDecode >> stream x}MC!uD@󚦛[l~Z]7 J4`4 SZb ^Q.VVUJ5k4u4TH:4#<R1=! 㸫"EOk> (L$`gs~3z~Ͷ?l [y)e endstream endobj 10 0 obj << /Length 553 /Filter /FlateDecode >> stream xmKr0 D:ש2wR4HX~3 FSXSNK*HFeh+ ?72YRJ~y߬jSdN&;#**ę1{Ct@(~0S*Uz#dpE7=L$S~7`8٬Lͨ> stream xڍ;0S0w@j!YxU"dm /r):g W+?r,v'࿺=8q'] f s-n <%v>:s endstream endobj 12 0 obj << /Length 187 /Filter /FlateDecode >> stream xڍұ!p@iעiڤ^uRdJ[dSRΧ<S#B?dnp%dzHdتڀLI>eng1* VW̢Dl"DY2SwwhH:e9C2HR'm.z[~W,2L4'Q] h endstream endobj 13 0 obj << /Length 611 /Filter /FlateDecode >> stream xڍMr >׳PI8OOMeoSV:ٸdID՝ |WTJfPV=^Y pz+Px= aCDgԻRAc :1zf2ZbooL8ƹ3z2kN7L{ߩ78s8(> stream xmK0 D>B#Ry<)rgZ;Y&U&Kmh <4K7Z47oK1  <7^P[/籁I05#> stream xڍr#! sރ L*K ƵaJ,ո9圏v~ÙYߍAF5vU6re4+LuVבQi!d], EA?+i"( V53:2 H2NNfܘ`VHPS{g1p<1dB:={7>acM@eѵ̼=z]n:6`.Sٶ> stream xڅ1B! ཧДRyx1. c K(K&K ɣƌL>g,9Ȋ ,Dj%V`_i~^٘*!$KWV`_b$Gk]-8.v$tWeLN/x/ } endstream endobj 17 0 obj << /Length 457 /Filter /FlateDecode >> stream xڅM#! u #<fߎqH()VOV+ Ýzæ}:.Eht]dcqU4~9so`<+a{,*`рQB:%ʃ ʑXH2Q"$J6Vd,&Ԫa،>$W'|# MZM>8XW\QĔOUTg•^EIMB0Xf櫖*v/qN6PˮZcF ]WS'7e5=Y n` }vD5qclz"fcc:$a/%WEcAc/Q7@} !`jAmqVݟT7X8q>orD"_ێ 9(\R_+agV] Ĩ' endstream endobj 18 0 obj << /Length 95 /Filter /FlateDecode >> stream x324V0P0F@B!1PTr1憦zFF؄YXK¯Ld)̕S4 endstream endobj 19 0 obj << /Length 185 /Filter /FlateDecode >> stream xڅ;0ݧ19KiRAz1VQw*P+Q_>`0x(, 2md\,gfC(,*hg maB=2@͒ނ ~n0j]6oMLs%ӣLV*o2<ʟ0˳>n :0 endstream endobj 20 0 obj << /Length 115 /Filter /FlateDecode >> stream xڅ10НS0w@W}WQ3$da@ $-+#Z6?Jx@9lF&Vi (> stream xڅA!=pADpctoM3|bb^Ԕ%[˚m-XuaJo ̆UF:DZrTC>#d*c5m"?S(Vi#vQU JcdSy83^ktX">fFSW]YBS endstream endobj 22 0 obj << /Length 389 /Filter /FlateDecode >> stream xڅM#1u g5<zvURBW`ǣ35l.3t/ }p2 = *H {U`Bl;dg5 !nG7v2<ʚhjtU[dξaduE7ˆ9E4 5।ȀBMHQVՑݬ8vy ҦjU㥅]sYNL~=ϙO뽓͠?{NQ]f##.de l#9peuA%-zfJ]g"֬&S[IVW˅]wWTSNcicC`zz٭73Ii.^Y]}WT+68Z<'ZPfM1byA?{`j endstream endobj 23 0 obj << /Length 476 /Filter /FlateDecode >> stream xڅ=r0{Bu _!ɤ Y1p8 GZlXp}'ƍ8C-*nזQ ~2S] &8-+|dZDgZ:]~<'SQ/DdW1}gԪ@E(hQDU/r:А6B:{`B8tV WG4ύQn4:c{ L#NBсGP*dG EB1+\zөTFE|g199/˧qfN(;ABގ1'{me##7y ^$AdJ8-Ra1g'TQ]dLk(ajCй*ǺiZ5| %;e1zaae~cUg#Ӻ UyQTuUX;Ujkyq-<rٛ2.*oG@U endstream endobj 24 0 obj << /Length 593 /Filter /FlateDecode >> stream xmK$1Dy\Ȁyj4;HŦ v mĵ49Ev FYȺs;}P5g)$sWOgTZ2#2 2Qs>GFkrQmwWF(5"7 =N'Xϕ H"m%Rǥ|U>L#6{wtqt؞;'݀ k3/j'Vԫ ^ :Н }#CtSc\OACLAXgI'3Ͼakb_,~)tf/Cje/b}A,d8:W{um endstream endobj 25 0 obj << /Length 132 /Filter /FlateDecode >> stream xڅ9 1 ^PBhyBܿ'lEqaR;#xP3·" _-Pbڀ0)TR$פFUK}uRkNE ȓ޼o 5e endstream endobj 26 0 obj << /Length 368 /Filter /FlateDecode >> stream xڅMn 9J'UM■ $u|x~U 哸xL*yFl17hA& oؾ)` 0el'KTTV Aꄲ t }!W0uK+$ E* "9n#~noULp~aBQm2Q/GoMoj0 p@)n&ԯefw3+ ް}{S~gQdE >XJz8@NY #]#, 4s >0)`cm(>)y=SvWݙϸ˚g'>Wp=v;#e7%0B"X'05%h~R endstream endobj 27 0 obj << /Length 202 /Filter /FlateDecode >> stream xڅK! }N!cr?%=ldv#yúo;F+-RUƔK=${O xSTq endstream endobj 28 0 obj << /Length 94 /Filter /FlateDecode >> stream xڍM @ཧpጞg"tm?(j> 2"hgJܨ3Ƀ!!;|vM)>d_Â|m:( endstream endobj 29 0 obj << /Length 629 /Filter /FlateDecode >> stream xڍKn%1Eodj$v}BQgWPpL$5}$?9Bb[&=} u٧_lڨ9SfXr]I q妤Ey$1 +x+Z+}.;NV2bףif)bOhBy=YX=4{2xW yOfhnXsp%go!a)S?D>B?+zY0u9|BE>! Bk&LngPFd(OP,^>gV+g_ ei4<эʳ'Sە7#^I0ռ u>ef] f]ji}VPVBUgr@UKfPo:\3ٺ=d_'ǩ♻`r> ]=H-ہCk/ԯp># Cmu=h-{MWş!UxxNpsEKUW{X~1~m2W07fF ЩǓޘTso^W6w?Uo/>]]?`Kщrwj){^ƽfm3#zMлyF4[\ endstream endobj 30 0 obj << /Length 387 /Filter /FlateDecode >> stream xڅMn u/pTU7smmNr>~/Jd|C/-b2NZ.P+z Wؠ#m $"ّmPPm٧f`sfViGEDrbe21v' dQ;C1_?12]  WgCḅYГPDv;/Sk=z\B_7>+$9o=/vTY&%> stream xm9n0 E{u!Jyir6,XSq&ᦼ7?&}R1LT~Tܡ٣Њe}UH0_l c:g^VUZe3 ŚUHN  Wl/+z1j8'SV="`O-WO*bVqjJA"m܋^и^ƶԢgeyd.a^P:N^DiHsdO&o,Q1T'Tw伷o:^7o8]4a%RaTJC@ QٍOx15Qs{AGto|o_P߮ endstream endobj 32 0 obj << /Length 388 /Filter /FlateDecode >> stream xڍMn 9J/pTU7smmBAQg~V))'􅛇ڸ 9~` a}"t``oȵ֢91BaX9K8]@Ξajz$ɯlV(5t 5YB Bx"OD@x{oč![h $~FVM!K(Pv-QWF&z'fHPt 5җ=3۷dsjašJt27 h N r݇ " Ͻ᠉JߗpX_Ξ,/K'VhFαB:&|^tY2^9-{l>U@~I endstream endobj 33 0 obj << /Length 400 /Filter /FlateDecode >> stream xڍAnd! DH9E)ә4~\6UR L[E]y0j}DϔZ ~qשn)JF{ua1(fRX'ۯ]%: 7frPsO*4'ñƨX}Wyew XOHZHĒ3'1J`Bɘǔo 0y)`tB3luH^ZQuZ3ڿUBv 4ho]НPQeE2뇯h%*?4#(/Ձ;(b4c)ɖJWU>p6gJ㬚}#i9*&ZEk,H ^&TThng:;+:^3E5X|[J+ͽxep*S= endstream endobj 34 0 obj << /Length 296 /Filter /FlateDecode >> stream x}n0<󤪺{UD(,_OڈȭFMaɠ[5NR4KyXսG(Q;Ш cS04KPXI q+\ic˨u83eAQn:R.J2,3>QOgx5X8Oh<{\=(:h2wWg?L,vCN=.,̬wY=f,_If_0}Uq~&am7&c._/LN endstream endobj 35 0 obj << /Length 586 /Filter /FlateDecode >> stream xڍM >ש !8fM c7PIf| hdӼ]y?"IfB.Cd F6*1;+eQ)QYQJ j^ЈxPL#\uɚ2zZMKn+){oNq0LPlK \HS55Wt025M]Ŀsλ#vwHnO_qpp=VMۃ!ijWkW{3&Xߪ/p*!Pn{At s*oqp5K _m B,}$@*i{FsuXWw}-`Ӏ}+ W)Bm.Gf|,T4vQ^,gNdwtb~J?f :*3\Y`c endstream endobj 36 0 obj << /Length 338 /Filter /FlateDecode >> stream x}n! y yfXPֻS_T`?uj+vPρB^t2Q&ro 7(#DB- j7Ņ[F W\vFe XtK^x쪝Q4Y0 {D'G ] yF'z%k{lgaP]'l endstream endobj 37 0 obj << /Length 139 /Filter /FlateDecode >> stream xڍ10НS0w@@K qTu׺CbP,/}"k?]\C"(ܘYA.FYQָ]5O2tQ{J +f?ӈJ-j%"^,9y*x *t] endstream endobj 38 0 obj << /Length 323 /Filter /FlateDecode >> stream xڍKn 9JXc0IUu3IHԱݙ9ՐB,5)d<[5"M)jd8{hhj۷W2[;iE?=tJ^+q 7#&Ab38 &gBQ9x$"TuF1^;lC"/TڛYٯsU0i,$bV> stream xڅ;0ݧ1Uե_K"5MefH'lXUKw!w*f+O}ʹB N( 26 lH.bj_kh@AOlLU}mLE J ?%`;t~.q26faX✳)nR@j)e{5WNFyǭf endstream endobj 40 0 obj << /Length 94 /Filter /FlateDecode >> stream xڅα @ݧpn.繈͆"*P+2҈&3.&d.Z= &\#AOX˫Jg* 6\84 endstream endobj 41 0 obj << /Length 488 /Filter /FlateDecode >> stream xڅ0 w?xAѥᅱ%[A4C |/W^Jg~T.nAIwEeA݄?ؾ[4hZJVCIL{e,jyeǖQV&\\+]Qiqpuu]<߬۟hB endstream endobj 42 0 obj << /Length 331 /Filter /FlateDecode >> stream x}=0"5CP8"!}9h1W'Lg 8,/-:D}Ώ'®F={bP0|fn~a.Vn~hGpl9}3t.n|f9Sg^j,1-Ƅ_,6NTF7)ʨXv[}vOsE;U2KP*suBwυͭr'|mPp endstream endobj 43 0 obj << /Length 370 /Filter /FlateDecode >> stream x}Mn uZyRU5if6|$K%cVĹMZl]Z~(tk^ TQ?ޠ3+58u /#uROueAE~ŎJ҉*+㗵2]D}O8zKu 2& Ɔ4:l;;@e /:4#PR*=[OOόoI^%WkG\rqJS9UҫW=Q:R٬_*F zOTÙ> stream xڍKn0 D>Byzd3NIVZN,tf~MQ1idQ;{;^KymF;&Zx2J:B.&-FodPg=SӾP`<[o}&F^{Ŵ|d#ԍrGpm0, .CJ? ~8^\ݠp6Wvt1> stream xڅ;n0 D{BuNj M߆:M\gid$jk񲐮To\,NT cGy]<-f!OQ43 ,){to*@})RH%Gɨ=DX«2u͎Q1}C2hltz,fgƨCԢLf;$7HrƜÝНyp8l{*f'tWa.r'?| endstream endobj 46 0 obj << /Length 516 /Filter /FlateDecode >> stream xmI0 E><ې2\ ?2 K".&X~*Ͱ6&$_be_8e+s`;M+4*Nd넲Sg@F\ 6`2`1\*O:fψA,DG>;bijc EHAW?넒Y,P.*vt{\ F۫aЦS$yyĭ <=ޙs*Է-<넪kǑYtFCR;ϦdddFwSUv/)ͨG~,g]j9;{pVCݧgȎg)#Ϥލ_|wy[[}e԰A,F3^anN-ֿM58 O󾢨q Z'9JZ;k׹u"E= endstream endobj 47 0 obj << /Length 332 /Filter /FlateDecode >> stream xڅKn0 D>Bԏ:O[JVLb\o;XOG/~Z 2wʍ٪+/4y픪?,,噫5>=rRAzx!l& R TΪq?'" 6:B:h}RFol0H ^Fnbة+: h;hzls:^ت>Yy|e endstream endobj 48 0 obj << /Length 341 /Filter /FlateDecode >> stream xڅ;n0 D{BuGA&oCj3W􃆦ckNnFTH4W&A-X%B3PzVr d PY/10M4Sy0^BlR0/VކXL$T IWb dM.2ӝ6?!h x>Ru+"tnXWQ/OrGN! cc>}(36Uںݗ@h&_0KJ{c#Od;&ƊYp,\bS mȐhAqVDߌ8z#vUos^< wrU[ endstream endobj 49 0 obj << /Length 197 /Filter /FlateDecode >> stream xڅK! }Nẋ`Xlۉeݽ&9=#dLu{yv)Pmh% N#v3 <)\K[P)񌮌-TP">X޺Pv<-lA\dl *5O)Y0|8&.ݘe7^ɝ?_q78 endstream endobj 50 0 obj << /Length 197 /Filter /FlateDecode >> stream xڅ ;OCR`jg-R3%h"*VO"JEeWF},BD6K:Aܣh(&󜀶bq aj5{)Y2eCfT4%S7t}7Ublm/Qq2)vdv]I.Hgۥ< endstream endobj 51 0 obj << /Length 310 /Filter /FlateDecode >> stream xڅ1n! E{NA 6m î&ZK[|3M0c0an>idAJͧ s0j JQجAC6SD V)FlzU?"Z[VxKEoz@#懣؁\Yf\w5-<*vT zzgTydrb {Hl;tn̝z!!.4 *4SXLOY76SDI: n77q\^v@ 0O^3- dsȅ endstream endobj 52 0 obj [ 394 513 235 718 673 671 672 564 717 213 720 581 762 621 717 618 590 643 943 561 522 572 531 547 519 362 547 543 209 206 546 209 824 543 575 574 402 508 321 541 777 547 540 ] endobj 53 0 obj << /one 9 0 R /three 10 0 R /colon 11 0 R /A 12 0 R /B 13 0 R /C 14 0 R /D 15 0 R /F 16 0 R /G 17 0 R /I 18 0 R /K 19 0 R /L 20 0 R /M 21 0 R /P 22 0 R /R 23 0 R /S 24 0 R /T 25 0 R /U 26 0 R /W 27 0 R /underscore 28 0 R /a 29 0 R /b 30 0 R /c 31 0 R /d 32 0 R /e 33 0 R /f 34 0 R /g 35 0 R /h 36 0 R /i 37 0 R /j 38 0 R /k 39 0 R /l 40 0 R /m 41 0 R /n 42 0 R /o 43 0 R /p 44 0 R /r 45 0 R /s 46 0 R /t 47 0 R /u 48 0 R /w 49 0 R /x 50 0 R /y 51 0 R >> endobj 54 0 obj << /Type /Encoding /Differences [ 0 /one /three /colon /A /B /C /D /F /G /I /K /L /M /P /R /S /T /U /W /underscore /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /r /s /t /u /w /x /y ] >> endobj 55 0 obj << /Type /Font /Subtype /Type3 /Name /Fo0S0 /FirstChar 0 /LastChar 42 /Widths 52 0 R /CharProcs 53 0 R /FontBBox [-46 -210 943 728] /FontMatrix [0.001 0 0 0.001 0 0] /Encoding 54 0 R >> endobj 56 0 obj << /Type /Group /S /Transparency /I false /K false >> endobj 57 0 obj <> endobj 58 0 obj << /Type /XObject /Subtype /Form /FormType 1 /BBox [ 0.00000 0.00000 1280.28000 1160.89000 ] /Group 56 0 R /Length 4262 /Filter /FlateDecode >> stream x]Mϯs3b?X aK~NhXY+ b`׽fw5^}Ɨʉ3ݎ_Q[WK]C_5)uը%jVv@wMEr?L%lE7V]>vq7Dz y}rݟOTOWǾh~pn{yR>DY5ĕk+=@WJK-Еg+=ҕʺ ])u%:@Wyu$XWufđ{{<1jn``u@FyA6eTR)Y[gXs2lq7В֕Tg 4sH~7˱o/ٻӉKY!7=X-awwgXraO'Te*ON4b?5elͣoٙI3]:<>%3/tTV6?>幎9~_R?PlDaƑTH~=j4NaӘ}a3H~ZD,\)T({@~:!\C)9sOO¡TjP~F]f-5r.y(@iW;ѓx:*IhdH@]2)p,j tX"t.l5Og @4S$eM9p)370<=lV2ƫkG8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9^M» NڵX(}SM6)om`f-Tysc)%.A@%U KSփ`p%|lc {PNi<Տl־h8:wf:v`۸x⍋7.޺[7wnܽ nT XL o4F~[8Cb g`φ-¾?DYЬ%8Q^s.~/2^ endstream endobj 59 0 obj << /Length 82 /Filter /FlateDecode >> stream x+2T0B gp:9 3444ѳ1s 5DMPRZj^ \4! endstream endobj 60 0 obj << /S /Transparency /CS /DeviceRGB >> endobj 61 0 obj << /Type /Page /Parent 4 0 R /MediaBox [0 0 1280.28000 1160.89000] /BleedBox [0.00000 0.00000 1280.28000 1160.89000] /CropBox [0 0 1280.28000 1160.89000] /TrimBox [0.00000 0.00000 1280.28000 1160.89000] /ArtBox [0.00000 0.00000 1280.28000 1160.89000] /Rotate 0 /Contents 59 0 R /Group 60 0 R >> endobj 62 0 obj << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI] /XObject << /RE1 58 0 R >> /Font << /Fo0S0 55 0 R >> /ExtGState << /RE0 57 0 R >> >> endobj 3 0 obj << /Type /Outlines /Count 0 >> endobj 4 0 obj << /Type /Pages /Kids [61 0 R ] /Count 1 /Resources 62 0 R >> endobj 5 0 obj << >> endobj 6 0 obj << /Fields [ ] >> endobj 7 0 obj << >> endobj 8 0 obj [] endobj xref 0 63 0000000000 65535 f 0000000015 00000 n 0000000207 00000 n 0000023655 00000 n 0000023701 00000 n 0000023778 00000 n 0000023799 00000 n 0000023833 00000 n 0000023855 00000 n 0000000406 00000 n 0000000646 00000 n 0000001271 00000 n 0000001484 00000 n 0000001743 00000 n 0000002426 00000 n 0000002877 00000 n 0000003371 00000 n 0000003595 00000 n 0000004124 00000 n 0000004290 00000 n 0000004547 00000 n 0000004734 00000 n 0000004997 00000 n 0000005458 00000 n 0000006006 00000 n 0000006671 00000 n 0000006875 00000 n 0000007315 00000 n 0000007589 00000 n 0000007754 00000 n 0000008455 00000 n 0000008914 00000 n 0000009356 00000 n 0000009816 00000 n 0000010288 00000 n 0000010656 00000 n 0000011314 00000 n 0000011724 00000 n 0000011935 00000 n 0000012330 00000 n 0000012594 00000 n 0000012759 00000 n 0000013319 00000 n 0000013722 00000 n 0000014164 00000 n 0000014654 00000 n 0000014976 00000 n 0000015564 00000 n 0000015968 00000 n 0000016381 00000 n 0000016650 00000 n 0000016919 00000 n 0000017301 00000 n 0000017493 00000 n 0000017963 00000 n 0000018168 00000 n 0000018370 00000 n 0000018440 00000 n 0000018545 00000 n 0000022984 00000 n 0000023138 00000 n 0000023192 00000 n 0000023503 00000 n trailer << /Size 63 /Root 1 0 R /Info 2 0 R /ID [<52724A213CE9B8FC234C666966E628EB><52724A213CE9B8FC234C666966E628EB>] >> startxref 23873 %%EOF Gyoto-2.0.2/doc/images/DemoPageThorne.pdf000066400000000000000000000124611455254334400201770ustar00rootroot00000000000000%PDF-1.4 %쏢 5 0 obj <> stream x+T03T0A(˥d^U504564R01z E y\Q6]K L2zF <,=SPM-EbN$^WE_\uk׻ǮMm<1[mN!A%N/*G^|Y$/p ?bUb";s~1yg]:} J,b9_dfmrz絢C74gO7ǃ"f}Ǧ(:GoJSN"֌Y˔^qz ϲ!|$ c'/֭k5ᢽ_Obo \ \ϟUoJj*9lsI6߽_ヷ>=)MpC YL>͞}VEd(yXzUýjyrw&hWU;me[/nCӅOgnPYr9g/~kg7Wq~әҧ{W}ۜ秵ǙOr~B٥ݍƧ3O*pG6Waͻ/չ;ggלR'C6\ghZ7nwܫkkv=(fmnԋ'?IמvU|Ik䫤k!O*Sn8+I4x:VJ<ܽkY<ƽW(kMendstream endobj 6 0 obj 834 endobj 4 0 obj <> /Contents 5 0 R >> endobj 3 0 obj << /Type /Pages /Kids [ 4 0 R ] /Count 1 >> endobj 1 0 obj <> endobj 7 0 obj <>endobj 8 0 obj [/Indexed /DeviceRGB 199 (\000\000\000\001\000\000\002\000\000\004\000\000\006\000\000\b\000\000\n\000\000\013\000\000\016\000\000\020\000\000\022\000\000\024\000\000\025\000\000\027\000\000\031\000\000\033\000\000\034\000\000\036\000\000 \000\000!\000\000$\000\000%\000\000'\000\000\)\000\000*\000\000.\000\000/\000\0001\000\0003\000\0004\000\0007\000\0008\000\0009\000\000;\000\000=\000\000?\000\000A\000\000B\000\000D\000\000E\000\000H\000\000I\000\000L\000\000N\000\000P\000\000R\000\000T\000\000U\000\000W\000\000X\000\000\\\000\000^\000\000_\000\000a\000\000b\000\000e\000\000f\000\000h\000\000j\000\000m\000\000o\000\000q\000\000r\000\000t\000\000u\000\000x\000\000y\000\000{\000\000}\000\000~\000\000\200\000\000\202\000\000\203\000\000\205\000\000\207\000\000\213\000\000\214\000\000\215\000\000\217\000\000\221\000\000\223\000\000\225\000\000\226\000\000\230\000\000\232\000\000\234\000\000\235\000\000\237\000\000\241\000\000\242\000\000\245\000\000\246\000\000\251\000\000\253\000\000\254\000\000\257\001\000\260\003\000\262\005\000\264\b\000\265\n\000\271\017\000\272\021\000\274\023\000\276\025\000\277\027\000\302\032\000\303\034\000\305\037\000\310"\000\311$\000\314'\000\315\)\000\317,\000\321.\000\3220\000\3243\000\3264\000\3307\000\3319\000\333;\000\335>\000\337@\000\341C\000\342D\000\343F\000\347K\000\351M\000\353P\000\354R\000\356T\000\360V\000\361X\000\363[\000\365]\000\366_\000\371b\000\372d\000\374f\000\376h\000\377j\000\377m\000\377p\000\377t\000\377v\000\377w\000\377z\000\377|\000\377\177\000\377\201\000\377\203\000\377\210\007\377\211\f\377\214\021\377\216\026\377\220\032\377\223\037\377\225$\377\230\)\377\2331\377\2355\377\240:\377\242?\377\245D\377\247I\377\251M\377\253R\377\255W\377\260\\\377\262a\377\264e\377\267i\377\271n\377\273s\377\275x\377\277|\377\304\205\377\306\212\377\311\217\377\313\224\377\314\230\377\317\234\377\321\241\377\324\246\377\326\253\377\330\257\377\333\264\377\335\271\377\337\276\377\341\303\377\343\307\377\346\314\377\351\322\377\355\331\377\356\336\377\360\342\377\363\347\377\365\354\377\370\361\377\372\366\377\374\372)]endobj 9 0 obj <> endobj 10 0 obj <> endobj 11 0 obj <>stream Gist Yorick 0fvincent endstream endobj 2 0 obj <>endobj xref 0 12 0000000000 65535 f 0000001167 00000 n 0000004859 00000 n 0000001108 00000 n 0000000938 00000 n 0000000015 00000 n 0000000919 00000 n 0000001232 00000 n 0000001273 00000 n 0000003381 00000 n 0000003410 00000 n 0000003440 00000 n trailer << /Size 12 /Root 1 0 R /Info 2 0 R /ID [<47F018736F3B8FCEAA206DAA13C7852B><47F018736F3B8FCEAA206DAA13C7852B>] >> startxref 5032 %%EOF Gyoto-2.0.2/doc/images/RWI_t1822_nu18.pdf000066400000000000000000004200541455254334400175130ustar00rootroot00000000000000%PDF-1.4 %쏢 5 0 obj <> stream x+T03T0A(˥d^U504564RL -Lr ,L p> /Contents 5 0 R >> endobj 3 0 obj << /Type /Pages /Kids [ 4 0 R ] /Count 1 >> endobj 1 0 obj <> endobj 7 0 obj <>endobj 8 0 obj [/Indexed /DeviceRGB 199 (\000\000\000\000\0000\000\000>\000\000L\000\000Y\000\000h\000\000t\000\004t\001\007t\002\nt\003\ru\004\020u\005\023u\005\026u\006\031u\b\034v\b\037v\t"v\n%v\013\(w\f+w\r-w\0160w\0173x\0176x\0219x\022;x\022>y\023Ay\024Cy\026Fy\026Hz\027Kz\030Nz\031Pz\032S{\033U{\034W{\035Z{\036\\{\037_| a|!c|"e|#g}$j}%l}&m}'p~\(r~\)t~*v~+x\177,z\177-|\177/~\1770\200\1770\200}0\201|1\201{2\203y2\203w3\204v3\205u4\205s5\206q5\207p6\210n6\210m7\211l8\212i8\213h9\214g9\214e:\215d;\216a;\217`<\217_=\220]=\221\\>\222Y?\222X?\223W@\224U@\224TA\226QB\226PC\227OC\227MD\230LE\231IE\232HF\233FH\233FK\234GN\235HQ\236IT\236IW\237JZ\240K^\241L`\241Ld\242Mg\243Mi\243Nm\245Oo\245Ps\246Pv\246Qx\247Rz\250R|\250S\177\251S\200\251S\202\252T\205\253T\207\253U\211\254U\213\254U\214\254V\217\255V\221\256W\224\256W\225\257W\227\257X\232\260X\234\260Y\236\261Y\240\261Y\242\262Z\245\263Z\246\263[\251\263[\253\264[\255\264\\\257\265\\\261\266]\264\266]\266\267]\267\266^\270\265^\270\264_\271\263_\271\262_\272\261`\273\257a\273\256a\273\255a\274\254b\274\253b\275\251c\276\250c\276\247c\276\246d\277\245d\300\243e\300\243f\302\243i\303\244k\304\244n\306\245q\307\246t\311\247w\312\247z\313\250}\315\252\201\317\253\204\320\254\207\321\255\212\322\256\215\325\260\221\326\261\224\327\262\227\330\264\233\332\265\236\334\270\242\335\271\246\336\273\251\340\275\254\341\277\257\343\302\263\344\304\267\346\307\273\347\311\277\350\313\302\352\316\306\353\321\312\355\324\315\356\326\322\357\331\325\361\335\331\363\340\335\364\343\341\365\347\345\366\352\351\371\356\355\372\362\362\373\366\366\374\372\372\376\376\376)]endobj 13 0 obj <> endobj 14 0 obj <> endobj 15 0 obj <> endobj 12 0 obj <>stream x݇w[ו?z$${;)6"ը.UmYeɒYc[qw%;dfe[{;{~HYfb˦ >{MJ2111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111rZL^褊bZM~INNN*=hbf/)"suZ*TBy M&IhYdS.An(gK1YoE|2!j@|)}/`4aY}F (_>"/TAL\_G'!f0gkh 3|BbOk| |ƫeR $*uT4EX{W|R/>&bhb,>yoG/5*M6/)\xV>g4yxa>q:,/0V1o^L=֛ *}2[MbOhjd)2G3y[jLs&,|]!Mt>K#|';&+GIvBiob$>OK M)U}+7/}.Z26p|O&gեc:RQ!nU=NF ωHE Qʦ(h:$ WE;ܱteRh5*S=I/"_˿ `+=U(¯>\ɚ$%dIͥf1E[}ӆT>!z|t}pOsiL8GK[ΖhUkѤ+)-"4:+O\ #h3%)iZ[9IaRh`؈"d:D(Q[[| /Tx\IE[6SS=Vt7@MV T66Huf # eUT#>))w S6l׵(2Sʄդ!e$)R{{{ LȈg ]x۞L\-=%ӕ?@QY'"0//O$%)P&_U= $W?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?dz)x,>UwBYIZoP&IfI 3ygtZZ:30dL)^1Mu2'ˢ@*oOrwjY B)aʚ)dω} )g6kHYVVVJ%m-;hEJeD^fVIf<]Ǯ.,̩6`qnO'3.VEyF9O3 T5^#;}* W6a2t!SP6 An^KPtńLsVWaoRaUTvQ)[݈+ 4yygnD`% }DKpZ+쮷L:OG6~VxhʋZkgg`4Ig@ɉ$Ė*ԧ1 nQ?.c2I~$5xC%>f@'|*m*ϔMf>M4FRd<}S|@9 2*3М-82yWMY0C?2qYdB_hN-}J=OB?vG/z?2i$#Py߆41ff49Tr| М>jb4IK[f aL@`%M3nP0CXtLx e"]Yd8, $ҋ3,ǂ4l&4S^>`!i'C8^y3$(P-,T̐g ]MpA3$7Drfv:I"UM!-yf&R}WEL/#mdˎGۯ3 I=t endstream endobj 16 0 obj <>stream Gist Yorick 0fvincent endstream endobj 2 0 obj <>endobj xref 0 17 0000000000 65535 f 0000000464 00000 n 0000138640 00000 n 0000000405 00000 n 0000000216 00000 n 0000000015 00000 n 0000000197 00000 n 0000000529 00000 n 0000000570 00000 n 0000094158 00000 n 0000066555 00000 n 0000036490 00000 n 0000002320 00000 n 0000002197 00000 n 0000002227 00000 n 0000002257 00000 n 0000137221 00000 n trailer << /Size 17 /Root 1 0 R /Info 2 0 R /ID [<6DF23B003EB83EA1A6FB1C0AF6EBBE29><6DF23B003EB83EA1A6FB1C0AF6EBBE29>] >> startxref 138813 %%EOF Gyoto-2.0.2/doc/images/doc-fig-ctime-tol.pdf000066400000000000000000000075551455254334400205510ustar00rootroot00000000000000%PDF-1.4 %쏢 5 0 obj <> stream xWn\7 ߯2]̍^c>P@Q 7 AܽB~9Zg.~d΃Ň[u/pV;oc(S)N>řč=N?cJ=ďRJ+-g{9z 9G\.W:vuV'~:ّz!Ԡ xE^-P>%zg0*a YeX޸#" Pm@lŒEH6F>a"L N k\m]mMk;o)dI@D+MĞ,(VɉlವLh>T!j?ϩ]5OT/Dϓk DbQ?15ū OB,ADA %\IĂ *+I bmP {soҁ:'%N9GaEoFdpb4Z'Ĥy(b|wF }c$ h2IML y %ÊyN%77 Sһs_w?z|{wcߞO!?QO[endstream endobj 6 0 obj 1257 endobj 4 0 obj <> /Contents 5 0 R >> endobj 3 0 obj << /Type /Pages /Kids [ 4 0 R ] /Count 1 >> endobj 1 0 obj <> endobj 7 0 obj <>endobj 9 0 obj <> endobj 10 0 obj <> endobj 8 0 obj <> endobj 11 0 obj <> endobj 12 0 obj <>stream 2014-06-16T16:21:55+02:00 2014-06-16T16:21:55+02:00 Gist Yorick 1thibaut endstream endobj 2 0 obj <>endobj xref 0 13 0000000000 65535 f 0000001586 00000 n 0000003364 00000 n 0000001527 00000 n 0000001362 00000 n 0000000015 00000 n 0000001342 00000 n 0000001651 00000 n 0000001751 00000 n 0000001692 00000 n 0000001721 00000 n 0000001831 00000 n 0000001889 00000 n trailer << /Size 13 /Root 1 0 R /Info 2 0 R /ID [] >> startxref 3536 %%EOF Gyoto-2.0.2/doc/images/doc-fig-dfl-ctime.pdf000066400000000000000000000104621455254334400205070ustar00rootroot00000000000000%PDF-1.4 %쏢 5 0 obj <> stream xMo7 +tSQߺ$1CC;8.KDhP$FֻP$EJ1vc~ZѱӐp &FM8-iޙhg)9N[L8[\mL!I [IG,hB'r<`ZNC.#3,klw}jf [}0uRXH/x_=.fp=#Xކ֝zBZ%W1U>{4%b_-5ltQ 9(V*يb+ɋXY/LP5ʒ {%BMXWŒO\+jҋ%KO,YCXLì(n%QlFt?03AfRktG30z 2ff#Lh@&;- aN<3_UΌFվ0Q,|ݞٙe/zfF3j^+ψw2]jGKܪֿTc[hsvt*Z||_?<ߘwtBW66f%4oã}wF#`gCӟ==ܚDܾ Aendstream endobj 6 0 obj 1497 endobj 4 0 obj <> /Contents 5 0 R >> endobj 3 0 obj << /Type /Pages /Kids [ 4 0 R ] /Count 1 >> endobj 1 0 obj <> endobj 7 0 obj <>endobj 10 0 obj <> endobj 11 0 obj <> endobj 8 0 obj <> endobj 12 0 obj <> endobj 9 0 obj <> endobj 13 0 obj <> endobj 14 0 obj <>stream 2014-06-16T15:45:01+02:00 2014-06-16T15:45:01+02:00 Gist Yorick 2thibaut endstream endobj 2 0 obj <>endobj xref 0 15 0000000000 65535 f 0000001827 00000 n 0000003777 00000 n 0000001768 00000 n 0000001602 00000 n 0000000015 00000 n 0000001582 00000 n 0000001892 00000 n 0000002002 00000 n 0000002140 00000 n 0000001933 00000 n 0000001963 00000 n 0000002082 00000 n 0000002217 00000 n 0000002302 00000 n trailer << /Size 15 /Root 1 0 R /Info 2 0 R /ID [<0CF0EA744B166F441A387895E7B90C27><0CF0EA744B166F441A387895E7B90C27>] >> startxref 3949 %%EOF Gyoto-2.0.2/doc/images/doc-fig-dfl-tol.pdf000066400000000000000000000101131455254334400201750ustar00rootroot00000000000000%PDF-1.4 %쏢 5 0 obj <> stream xX]k7}_ǔfP(BB&mv4.ctH`l|}BL{`B{,)1esÎ1 \?ViC{)ez•\Z[CȀr Dj b@vz׀@' `n18 F^Gk@ΩyaΖԂB6wi# إqيdJt =Üjch˰kVr:hhfJ ͨKWm#ڇ.cu:2ްdf΢#і1Ps%r.AXC,#K,rՑ%V@> /Contents 5 0 R >> endobj 3 0 obj << /Type /Pages /Kids [ 4 0 R ] /Count 1 >> endobj 1 0 obj <> endobj 7 0 obj <>endobj 10 0 obj <> endobj 11 0 obj <> endobj 8 0 obj <> endobj 12 0 obj <> endobj 9 0 obj <> endobj 13 0 obj <> endobj 14 0 obj <>stream 2014-06-16T15:45:00+02:00 2014-06-16T15:45:00+02:00 Gist Yorick 0thibaut endstream endobj 2 0 obj <>endobj xref 0 15 0000000000 65535 f 0000001596 00000 n 0000003546 00000 n 0000001537 00000 n 0000001371 00000 n 0000000015 00000 n 0000001351 00000 n 0000001661 00000 n 0000001771 00000 n 0000001909 00000 n 0000001702 00000 n 0000001732 00000 n 0000001851 00000 n 0000001986 00000 n 0000002071 00000 n trailer << /Size 15 /Root 1 0 R /Info 2 0 R /ID [<1D850FF6462AEB7885CFF3910109A1E5><1D850FF6462AEB7885CFF3910109A1E5>] >> startxref 3718 %%EOF Gyoto-2.0.2/doc/images/gyotoy_screenshot.png000066400000000000000000002201051455254334400211340ustar00rootroot00000000000000PNG  IHDRCdsBIT|dtEXtSoftwaregnome-screenshot> IDATxwtTL&!N("HoҔbEPrUD HU}m ݫ &Mz'I%=S?"#t2I~X>59;wWNN EDDDDDDDDJfzۺu\?Mlllˆ YHݻٳg{upA5k֬j׮]1ƥSNnWvl"""""""""fCvޝlɹQFJ`ө_>999M@#OOOVke$""""""""@c#QX""""""""jv2J`SH,qz%""""""""N1KDDDDDDDDYi$8=ce """"""""RM'V+ uODDD9Xcl6K؉pU\zwHp`@\bbpqq$TS9KtI,$#3isdCxcvu؉[zF\uy|nެ\q&998 #I+sbdq˞tB|_ٴtMVvWe~D8p,aSc9s.zuCKt]%DDDę;tisz{v9:n(b"떹*owB`|ff1yd 4S+u kWn>:ˤuѴA}vϳ/PQnތ4k6kJvNN8YugS?*qGMvN.`QԏMDfWW oXϞ؉2vzu/f[֛pg?0LtnӚ7rI:nc _Jx_'=TN&0gwn ߖY!y]}wgcZɵX07ncr-/FbHseDG9zO?x&='_Ztmߖ\`U-pd cvv6D_YēI:kY,Vrrr-^qq6;csnf3nnn|c.;;8<=ݥ#?=QCo#^$Yَr#ѕd٪[gl6Cص =;`0{ꄆ-n̛U\=VuEDDDIvN}f[X#k=N("""Rv!ڵ&%5 U&m;G 4(lth݊-7B-//܍d{ȵX+""""dr`Q#kqG1͹岡7<)&&-EDDD vjrX"i9{FfMxxp<edf2e | o1c֋('M፷r$>kUEa}Uf:z}\0EDDDDDD 3p-O|EF]C]d}Ɵwб}{yzfZeq >ߗG@P` c{?_wJfVM7n:^ OݎflHU$VxXݻv)aC/:fXHKOsYYYK}nO?DGE9?piv˹s4ZlvKꥥQV-LL G!$WVEUa3gn/͊WDDDDDDDR% ̠!xѱՓ^zu6lbƔg' ~˼kj2#s,1/bǮ]Fzt#QYj)ګԏ/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Ti-ist7t$Mq-]&ϧٳݦei'<~zbfYٻWݷO5]rB=ZhCdý뙭Oj5T2yG?(YܪV^8- XRmwrΞ9CTРv+Wt*3sbbuu:k 22zӮ>WpHj֔b-/[ڭTУMqǝv,K56jקUM_Px ҏK,K9 iir8:xS9}Txٔn%諸T XWcѱc _Ei_}ᰊ'u&á}b9Fz󭷵[mmm;iD}g_$λ)RR|<{gF>|D-XꚀje֡Ç(bQ^^[pah4ZC!yv'|*mRDdYy x<Wb vK|&.ۦ| JE, y0Q:wx GDRtIENDB`Gyoto-2.0.2/doc/user_guide/000077500000000000000000000000001455254334400155255ustar00rootroot00000000000000Gyoto-2.0.2/doc/user_guide/GyotoManual.bib000066400000000000000000001026351455254334400204510ustar00rootroot00000000000000 @INPROCEEDINGS{eisenhauer08, author = {{Eisenhauer}, F. and {Perrin}, G. and {Brandner}, W. and {Straubmeier}, C. and {Richichi}, A. and {Gillessen}, S. and {Berger}, J.~P. and {Hippler}, S. and {Eckart}, A. and {Sch{\"o}ller}, M. and {Rabien}, S. and {Cassaing}, F. and {Lenzen}, R. and {Thiel}, M. and {Cl{\'e}net}, Y. and {Ramos}, J.~R. and {Kellner}, S. and {F{\'e}dou}, P. and {Baumeister}, H. and {Hofmann}, R. and {Gendron}, E. and {Boehm}, A. and {Bartko}, H. and {Haubois}, X. and {Klein}, R. and {Dodds-Eden}, K. and {Houairi}, K. and {Hormuth}, F. and {Gr{\"a}ter}, A. and {Jocou}, L. and {Naranjo}, V. and {Genzel}, R. and {Kervella}, P. and {Henning}, T. and {Hamaus}, N. and {Lacour}, S. and {Neumann}, U. and {Haug}, M. and {Malbet}, F. and {Laun}, W. and {Kolmeder}, J. and {Paumard}, T. and {Rohloff}, R.-R. and {Pfuhl}, O. and {Perraut}, K. and {Ziegleder}, J. and {Rouan}, D. and {Rousset}, G. }, title = "{GRAVITY: getting to the event horizon of Sgr A*}", booktitle = {Society of Photo-Optical Instrumentation Engineers (SPIE) Conference Series}, year = 2008, series = {Society of Photo-Optical Instrumentation Engineers (SPIE) Conference Series}, volume = 7013, archivePrefix = "arXiv", eprint = {0808.0063}, month = jul, doi = {10.1117/12.788407}, adsurl = {http://adsabs.harvard.edu/abs/2008SPIE.7013E..69E}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{vincent11a, author = {{Vincent}, F.~H. and {Paumard}, T. and {Gourgoulhon}, E. and {Perrin}, G.}, title = "{GYOTO: a new general relativistic ray-tracing code}", journal = {Classical and Quantum Gravity}, archivePrefix = "arXiv", eprint = {1109.4769}, primaryClass = "gr-qc", year = 2011, month = nov, volume = 28, number = 22, pages = {225011}, doi = {10.1088/0264-9381/28/22/225011}, adsurl = {http://adsabs.harvard.edu/abs/2011CQGra..28v5011V}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{vincent11b, author = {{Vincent}, F.~H. and {Paumard}, T. and {Perrin}, G. and {Mugnier}, L. and {Eisenhauer}, F. and {Gillessen}, S.}, title = "{Performance of astrometric detection of a hotspot orbiting on the innermost stable circular orbit of the Galactic Centre black hole}", journal = {MNRAS}, archivePrefix = "arXiv", eprint = {1011.5439}, primaryClass = "astro-ph.GA", keywords = {black hole physics, instrumentation: interferometers, astrometry, Galaxy: centre}, year = 2011, month = apr, volume = 412, pages = {2653-2664}, doi = {10.1111/j.1365-2966.2010.18084.x}, adsurl = {http://adsabs.harvard.edu/abs/2011MNRAS.412.2653V}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{zamaninasab10, author = {{Zamaninasab}, M. and {Eckart}, A. and {Witzel}, G. and {Dovciak}, M. and {Karas}, V. and {Sch{\"o}del}, R. and {Gie{\ss}{\"u}bel}, R. and {Bremer}, M. and {Garc{\'{\i}}a-Mar{\'{\i}}n}, M. and {Kunneriath}, D. and {Mu{\v z}i{\'c}}, K. and {Nishiyama}, S. and {Sabha}, N. and {Straubmeier}, C. and {Zensus}, A.}, title = "{Near infrared flares of Sagittarius A*. Importance of near infrared polarimetry}", journal = {A\&A}, archivePrefix = "arXiv", eprint = {0911.4659}, primaryClass = "astro-ph.GA", keywords = {black hole physics, infrared: general, accretion, accretion disks, Galaxy: center, Galaxy: nucleus}, year = 2010, month = jan, volume = 510, eid = {A3}, pages = {A3}, doi = {10.1051/0004-6361/200912473}, adsurl = {http://adsabs.harvard.edu/abs/2010A\%26A...510A...3Z}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{will08, author = {{Will}, C.~M.}, title = "{Testing the General Relativistic ``No-Hair'' Theorems Using the Galactic Center Black Hole Sagittarius A*}", journal = {ApJL}, archivePrefix = "arXiv", eprint = {0711.1677}, keywords = {Black Hole Physics, Galaxy: Center, Relativity}, year = 2008, month = feb, volume = 674, pages = {L25-L28}, doi = {10.1086/528847}, adsurl = {http://adsabs.harvard.edu/abs/2008ApJ...674L..25W}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{will09, author = {{Will}, C.~M.}, title = "{The Confrontation Between General Relativity and Experiment}", journal = {Space Sci. Rev.}, keywords = {General relativity, Gravitational experiments}, year = 2009, month = dec, volume = 148, pages = {3-13}, doi = {10.1007/s11214-009-9541-6}, eprint = {http://adsabs.harvard.edu/abs/2009SSRv..148....3W}, adsurl = {http://adsabs.harvard.edu/abs/2009SSRv..148....3W}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{hamaus09, author = {{Hamaus}, N. and {Paumard}, T. and {M{\"u}ller}, T. and {Gillessen}, S. and {Eisenhauer}, F. and {Trippe}, S. and {Genzel}, R.}, title = "{Prospects for Testing the Nature of Sgr A*'s Near-Infrared Flares on the Basis of Current Very Large Telescope -- and Future Very Large Telescope Interferometer -- Observations}", journal = {ApJ}, archivePrefix = "arXiv", eprint = {0810.4947}, keywords = {astrometry, black hole physics, Galaxy: center, gravitational lensing, techniques: interferometric}, year = 2009, month = feb, volume = 692, pages = {902-916}, doi = {10.1088/0004-637X/692/1/902}, adsurl = {http://adsabs.harvard.edu/abs/2009ApJ...692..902H}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{tagger06, author = {{Tagger}, M. and {Varniere}, P.}, title = "{Accretion-Ejection Instability, MHD Rossby Wave Instability, Diskoseismology, and the High-Frequency QPOs of Microquasars}", journal = {ApJ}, eprint = {arXiv:astro-ph/0608123}, keywords = {Accretion, Accretion Disks, Black Hole Physics, Instabilities, Magnetohydrodynamics: MHD, X-Rays: Binaries}, year = 2006, month = dec, volume = 652, pages = {1457-1465}, doi = {10.1086/508318}, adsurl = {http://adsabs.harvard.edu/abs/2006ApJ...652.1457T}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{do09, author = {{Do}, T. and {Ghez}, A.~M. and {Morris}, M.~R. and {Yelda}, S. and {Meyer}, L. and {Lu}, J.~R. and {Hornstein}, S.~D. and {Matthews}, K. }, title = "{A Near-Infrared Variability Study of the Galactic Black Hole: A Red Noise Source with NO Detected Periodicity}", journal = {ApJ}, archivePrefix = "arXiv", eprint = {0810.0446}, keywords = {black hole physics, Galaxy: center, techniques: high angular resolution}, year = 2009, month = feb, volume = 691, pages = {1021-1034}, doi = {10.1088/0004-637X/691/2/1021}, adsurl = {http://adsabs.harvard.edu/abs/2009ApJ...691.1021D}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{genzel10, author = {{Genzel}, R. and {Eisenhauer}, F. and {Gillessen}, S.}, title = "{The Galactic Center massive black hole and nuclear star cluster}", journal = {Reviews of Modern Physics}, archivePrefix = "arXiv", eprint = {1006.0064}, primaryClass = "astro-ph.GA", keywords = {Galactic center, bar, circumnuclear matter, and bulge}, year = 2010, month = oct, volume = 82, pages = {3121-3195}, doi = {10.1103/RevModPhys.82.3121}, adsurl = {http://adsabs.harvard.edu/abs/2010RvMP...82.3121G}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{meheut10, author = {{Meheut}, H. and {Casse}, F. and {Varniere}, P. and {Tagger}, M. }, title = "{Rossby wave instability and three-dimensional vortices in accretion disks}", journal = {A\&A}, archivePrefix = "arXiv", eprint = {1004.0302}, primaryClass = "astro-ph.SR", keywords = {Accretion, accretion disks, protoplanetary disks, hydrodynamics, instabilities, methods: numerical}, year = 2010, month = jun, volume = 516, eid = {A31}, pages = {A31}, doi = {10.1051/0004-6361/201014000}, adsurl = {http://adsabs.harvard.edu/abs/2010A\%26A...516A..31M}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{paumard05, author = {{Paumard}, T. and {Perrin}, G. and {Eckart}, A. and {Genzel}, R. and {Lena}, P. and {Schoedel}, R. and {Eisenhauer}, F. and {Mueller}, T. and {Gillessen}, S.}, title = "{Scientific prospects for VLTI in the Galactic Centre: Getting to the Schwarzschild radius.}", journal = {Astronomische Nachrichten}, year = 2005, month = aug, volume = 326, pages = {568-568}, adsurl = {http://adsabs.harvard.edu/abs/2005AN....326..568P}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @PhdThesis{vincent11c, author = {{Vincent}, F.}, title = "{\'Etude d'effets relativistes en champ gravitationnel fort}", school = {Ecole doctorale d'astronomie et d'astrophysique d'Ile de France}, year = {2011}, } @INPROCEEDINGS{vincent11d, author = {{Vincent}, F.~H. and {Paumard}, T. and {Perrin}, G. and {Gourgoulhon}, E. and {Eisenhauer}, F. and {Gillessen}, S.}, title = "{Towards constraining the central black hole's properties by studying its infrared flares with the GRAVITY instrument}", keywords = {Galaxy: center, Black hole physics}, booktitle = {SF2A-2011: Proceedings of the Annual meeting of the French Society of Astronomy and Astrophysics}, year = 2011, archivePrefix = "arXiv", eprint = {1110.0746}, primaryClass = "astro-ph.GA", editor = "{G.~Alecian, K.~Belkacem, R.~Samadi, \& D.~Valls-Gabaud}", month = dec, pages = {689-693}, adsurl = {http://adsabs.harvard.edu/abs/2011sf2a.conf..689V}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{yusefzadeh06, author = {{Yusef-Zadeh}, F. and {Roberts}, D. and {Wardle}, M. and {Heinke}, C.~O. and {Bower}, G.~C.}, title = "{Flaring Activity of Sagittarius A* at 43 and 22 GHz: Evidence for Expanding Hot Plasma}", journal = {ApJ}, eprint = {arXiv:astro-ph/0603685}, keywords = {Galaxy: Center, Techniques: Interferometric}, year = 2006, month = oct, volume = 650, pages = {189-194}, doi = {10.1086/506375}, adsurl = {http://adsabs.harvard.edu/abs/2006ApJ...650..189Y}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{tagger06b, author = {{Tagger}, M. and {Melia}, F.}, title = "{A Possible Rossby Wave Instability Origin for the Flares in Sagittarius A*}", journal = {ApJL}, eprint = {arXiv:astro-ph/0511520}, keywords = {Accretion, Accretion Disks, Black Hole Physics, Galaxy: Center, Instabilities, Magnetohydrodynamics: MHD, Plasmas}, year = 2006, month = jan, volume = 636, pages = {L33-L36}, doi = {10.1086/499806}, adsurl = {http://adsabs.harvard.edu/abs/2006ApJ...636L..33T}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{markoff01, author = {{Markoff}, S. and {Falcke}, H. and {Yuan}, F. and {Biermann}, P.~L. }, title = "{The Nature of the 10 kilosecond X-ray flare in Sgr A*}", journal = {A\&A}, eprint = {arXiv:astro-ph/0109081}, keywords = {GALAXY: CENTER, GALAXIES: JETS, X-RAYS: GALAXIES, RADIATION MECHANISMS: NON-THERMAL, ACCRETION, ACCRETION DISKS, BLACK HOLE PHYSICS}, year = 2001, month = nov, volume = 379, pages = {L13-L16}, doi = {10.1051/0004-6361:20011346}, adsurl = {http://adsabs.harvard.edu/abs/2001A\%26A...379L..13M}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{do09, author = {{Do}, T. and {Ghez}, A.~M. and {Morris}, M.~R. and {Yelda}, S. and {Meyer}, L. and {Lu}, J.~R. and {Hornstein}, S.~D. and {Matthews}, K. }, title = "{A Near-Infrared Variability Study of the Galactic Black Hole: A Red Noise Source with NO Detected Periodicity}", journal = {ApJ}, archivePrefix = "arXiv", eprint = {0810.0446}, keywords = {black hole physics, Galaxy: center, techniques: high angular resolution}, year = 2009, month = feb, volume = 691, pages = {1021-1034}, doi = {10.1088/0004-637X/691/2/1021}, adsurl = {http://adsabs.harvard.edu/abs/2009ApJ...691.1021D}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{gillessen11, author = {{Gillessen}, S. and {Genzel}, R. and {Fritz}, T.~K. and {Quataert}, E. and {Alig}, C. and {Burkert}, A. and {Cuadra}, J. and {Eisenhauer}, F. and {Pfuhl}, O. and {Dodds-Eden}, K. and {Gammie}, C.~F. and {Ott}, T. }, title = "{A gas cloud on its way towards the super-massive black hole in the Galactic Centre}", journal = {ArXiv e-prints}, archivePrefix = "arXiv", eprint = {1112.3264}, primaryClass = "astro-ph.GA", keywords = {Astrophysics - Galaxy Astrophysics}, year = 2011, month = dec, adsurl = {http://adsabs.harvard.edu/abs/2011arXiv1112.3264G}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{ghez08, author = {{Ghez}, A.~M. and {Salim}, S. and {Weinberg}, N.~N. and {Lu}, J.~R. and {Do}, T. and {Dunn}, J.~K. and {Matthews}, K. and {Morris}, M.~R. and {Yelda}, S. and {Becklin}, E.~E. and {Kremenek}, T. and {Milosavljevic}, M. and {Naiman}, J.}, title = "{Measuring Distance and Properties of the Milky Way's Central Supermassive Black Hole with Stellar Orbits}", journal = {ApJ}, archivePrefix = "arXiv", eprint = {0808.2870}, keywords = {Black Hole Physics, Galaxy: Center, Galaxy: Kinematics and Dynamics, Infrared: Stars, Techniques: High Anular Resolution}, year = 2008, month = dec, volume = 689, pages = {1044-1062}, doi = {10.1086/592738}, adsurl = {http://adsabs.harvard.edu/abs/2008ApJ...689.1044G}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{gillessen09, author = {{Gillessen}, S. and {Eisenhauer}, F. and {Trippe}, S. and {Alexander}, T. and {Genzel}, R. and {Martins}, F. and {Ott}, T.}, title = "{Monitoring Stellar Orbits Around the Massive Black Hole in the Galactic Center}", journal = {ApJ}, archivePrefix = "arXiv", eprint = {0810.4674}, keywords = {black hole physics, astrometry, Galaxy: center, infrared: stars}, year = 2009, month = feb, volume = 692, pages = {1075-1109}, doi = {10.1088/0004-637X/692/2/1075}, adsurl = {http://adsabs.harvard.edu/abs/2009ApJ...692.1075G}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{genzel03, author = {{Genzel}, R. and {Sch{\"o}del}, R. and {Ott}, T. and {Eckart}, A. and {Alexander}, T. and {Lacombe}, F. and {Rouan}, D. and {Aschenbach}, B. }, title = "{Near-infrared flares from accreting gas around the supermassive black hole at the Galactic Centre}", journal = {Nature}, eprint = {arXiv:astro-ph/0310821}, year = 2003, month = oct, volume = 425, pages = {934-937}, doi = {10.1038/nature02065}, adsurl = {http://adsabs.harvard.edu/abs/2003Natur.425..934G}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{eisenhauer11, author = {{Eisenhauer}, F. and {Perrin}, G. and {Brandner}, W. and {Straubmeier}, C. and {Perraut}, K. and {Amorim}, A. and {Sch{\"o}ller}, M. and {Gillessen}, S. and {Kervella}, P. and {Benisty}, M. and {Araujo-Hauck}, C. and {Jocou}, L. and {Lima}, J. and {Jakob}, G. and {Haug}, M. and {Cl{\'e}net}, Y. and {Henning}, T. and {Eckart}, A. and {Berger}, J.-P. and {Garcia}, P. and {Abuter}, R. and {Kellner}, S. and {Paumard}, T. and {Hippler}, S. and {Fischer}, S. and {Moulin}, T. and {Villate}, J. and {Avila}, G. and {Gr{\"a}ter}, A. and {Lacour}, S. and {Huber}, A. and {Wiest}, M. and {Nolot}, A. and {Carvas}, P. and {Dorn}, R. and {Pfuhl}, O. and {Gendron}, E. and {Kendrew}, S. and {Yazici}, S. and {Anton}, S. and {Jung}, Y. and {Thiel}, M. and {Choquet}, {\'E}. and {Klein}, R. and {Teixeira}, P. and {Gitton}, P. and {Moch}, D. and {Vincent}, F. and {Kudryavtseva}, N. and {Str{\"o}bele}, S. and {Sturm}, S. and {F{\'e}dou}, P. and {Lenzen}, R. and {Jolley}, P. and {Kister}, C. and {Lapeyr{\`e}re}, V. and {Naranjo}, V. and {Lucuix}, C. and {Hofmann}, R. and {Chapron}, F. and {Neumann}, U. and {Mehrgan}, L. and {Hans}, O. and {Rousset}, G. and {Ramos}, J. and {Suarez}, M. and {Lederer}, R. and {Reess}, J.-M. and {Rohloff}, R.-R. and {Haguenauer}, P. and {Bartko}, H. and {Sevin}, A. and {Wagner}, K. and {Lizon}, J.-L. and {Rabien}, S. and {Collin}, C. and {Finger}, G. and {Davies}, R. and {Rouan}, D. and {Wittkowski}, M. and {Dodds-Eden}, K. and {Ziegler}, D. and {Cassaing}, F. and {Bonnet}, H. and {Casali}, M. and {Genzel}, R. and {Lena}, P.}, title = "{GRAVITY: Observing the Universe in Motion}", journal = {The Messenger}, year = 2011, month = mar, volume = 143, pages = {16-24}, adsurl = {http://adsabs.harvard.edu/abs/2011Msngr.143...16E}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{trippe07, author = {{Trippe}, S. and {Paumard}, T. and {Ott}, T. and {Gillessen}, S. and {Eisenhauer}, F. and {Martins}, F. and {Genzel}, R.}, title = "{A polarized infrared flare from Sagittarius A* and the signatures of orbiting plasma hotspots}", journal = {MNRAS}, eprint = {arXiv:astro-ph/0611737}, keywords = {accretion, accretion discs, black hole physics, Galaxy: centre}, year = 2007, month = mar, volume = 375, pages = {764-772}, doi = {10.1111/j.1365-2966.2006.11338.x}, adsurl = {http://adsabs.harvard.edu/abs/2007MNRAS.375..764T}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{baganoff01, author = {{Baganoff}, F.~K. and {Bautz}, M.~W. and {Brandt}, W.~N. and {Chartas}, G. and {Feigelson}, E.~D. and {Garmire}, G.~P. and {Maeda}, Y. and {Morris}, M. and {Ricker}, G.~R. and {Townsley}, L.~K. and {Walter}, F.}, title = "{Rapid X-ray flaring from the direction of the supermassive black hole at the Galactic Centre}", journal = {Nature}, eprint = {arXiv:astro-ph/0109367}, year = 2001, month = sep, volume = 413, pages = {45-48}, doi = {10.1038/35092510}, adsurl = {http://adsabs.harvard.edu/abs/2001Natur.413...45B}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{eckart04, author = {{Eckart}, A. and {Baganoff}, F.~K. and {Morris}, M. and {Bautz}, M.~W. and {Brandt}, W.~N. and {Garmire}, G.~P. and {Genzel}, R. and {Ott}, T. and {Ricker}, G.~R. and {Straubmeier}, C. and {Viehmann}, T. and {Sch{\"o}del}, R. and {Bower}, G.~C. and {Goldston}, J.~E.}, title = "{First simultaneous NIR/X-ray detection of a flare from Sgr A*}", journal = {A\&A}, eprint = {arXiv:astro-ph/0403577}, keywords = {black hole physics, X-rays: general, infrared: general, accretion, accretion disks, Galaxy: center, Galaxy: nucleus}, year = 2004, month = nov, volume = 427, pages = {1-11}, doi = {10.1051/0004-6361:20040495}, adsurl = {http://adsabs.harvard.edu/abs/2004A\%26A...427....1E}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{eckart06, author = {{Eckart}, A. and {Sch{\"o}del}, R. and {Meyer}, L. and {Trippe}, S. and {Ott}, T. and {Genzel}, R.}, title = "{Polarimetry of near-infrared flares from Sagittarius A*}", journal = {A\&A}, eprint = {arXiv:astro-ph/0610103}, keywords = {black hole physics, infrared: general, accretion, accretion disks, Galaxy: center, Galaxy: nucleus}, year = 2006, month = aug, volume = 455, pages = {1-10}, doi = {10.1051/0004-6361:20064948}, adsurl = {http://adsabs.harvard.edu/abs/2006A\%26A...455....1E}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{doddseden09, author = {{Dodds-Eden}, K. and {Porquet}, D. and {Trap}, G. and {Quataert}, E. and {Haubois}, X. and {Gillessen}, S. and {Grosso}, N. and {Pantin}, E. and {Falcke}, H. and {Rouan}, D. and {Genzel}, R. and {Hasinger}, G. and {Goldwurm}, A. and {Yusef-Zadeh}, F. and {Clenet}, Y. and {Trippe}, S. and {Lagage}, P.-O. and {Bartko}, H. and {Eisenhauer}, F. and {Ott}, T. and {Paumard}, T. and {Perrin}, G. and {Yuan}, F. and {Fritz}, T.~K. and {Mascetti}, L.}, title = "{Evidence for X-Ray Synchrotron Emission from Simultaneous Mid-Infrared to X-Ray Observations of a Strong Sgr A* Flare}", journal = {ApJ}, archivePrefix = "arXiv", eprint = {0903.3416}, primaryClass = "astro-ph.GA", keywords = {accretion, accretion disks, black hole physics, Galaxy: center, infrared: general, radiation mechanisms: general, X-rays: general}, year = 2009, month = jun, volume = 698, pages = {676-692}, doi = {10.1088/0004-637X/698/1/676}, adsurl = {http://adsabs.harvard.edu/abs/2009ApJ...698..676D}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{trap11, author = {{Trap}, G. and {Goldwurm}, A. and {Dodds-Eden}, K. and {Weiss}, A. and {Terrier}, R. and {Ponti}, G. and {Gillessen}, S. and {Genzel}, R. and {Ferrando}, P. and {B{\'e}langer}, G. and {Cl{\'e}net}, Y. and {Rouan}, D. and {Predehl}, P. and {Capelli}, R. and {Melia}, F. and {Yusef-Zadeh}, F.}, title = "{Concurrent X-ray, near-infrared, sub-millimeter, and GeV gamma-ray observations of Sagittarius A*}", journal = {A\&A}, archivePrefix = "arXiv", eprint = {1102.0192}, primaryClass = "astro-ph.HE", keywords = {Galaxy: center, black hole physics, radiation mechanisms: non-thermal, X-rays: general, infrared: general, submillimeter: general}, year = 2011, month = apr, volume = 528, eid = {A140}, pages = {A140}, doi = {10.1051/0004-6361/201015157}, adsurl = {http://adsabs.harvard.edu/abs/2011A\%26A...528A.140T}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{doddseden10, author = {{Dodds-Eden}, K. and {Sharma}, P. and {Quataert}, E. and {Genzel}, R. and {Gillessen}, S. and {Eisenhauer}, F. and {Porquet}, D.}, title = "{Time-Dependent Models of Flares from Sagittarius A*}", journal = {ApJ}, archivePrefix = "arXiv", eprint = {1005.0389}, primaryClass = "astro-ph.GA", keywords = {accretion, accretion disks, black hole physics, Galaxy: center, infrared: general, radiation mechanisms: general}, year = 2010, month = dec, volume = 725, pages = {450-465}, doi = {10.1088/0004-637X/725/1/450}, adsurl = {http://adsabs.harvard.edu/abs/2010ApJ...725..450D}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{burkert12, author = {{Burkert}, A. and {Schartmann}, M. and {Alig}, C. and {Gillessen}, S. and {Genzel}, R. and {Fritz}, T.~K. and {Eisenhauer}, F.}, title = "{Physics of the Galactic Center Cloud G2, on Its Way toward the Supermassive Black Hole}", journal = {ApJ}, archivePrefix = "arXiv", eprint = {1201.1414}, primaryClass = "astro-ph.GA", keywords = {galaxies: active, galaxies: ISM, Galaxy: center, Galaxy: nucleus }, year = 2012, month = may, volume = 750, eid = {58}, pages = {58}, doi = {10.1088/0004-637X/750/1/58}, adsurl = {http://adsabs.harvard.edu/abs/2012ApJ...750...58B}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{schartmann12, author = {{Schartmann}, M. and {Burkert}, A. and {Alig}, C. and {Gillessen}, S. and {Genzel}, R. and {Eisenhauer}, F. and {Fritz}, T.~K.}, title = "{Simulations of the Origin and Fate of the Galactic Center Cloud G2}", journal = {ArXiv e-prints}, archivePrefix = "arXiv", eprint = {1203.6356}, primaryClass = "astro-ph.GA", keywords = {Astrophysics - Galaxy Astrophysics}, year = 2012, month = mar, adsurl = {http://adsabs.harvard.edu/abs/2012arXiv1203.6356S}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{vincent12a, author = {{Vincent}, F.~H. and {Gourgoulhon}, E. and {Novak}, J.}, title = "{3+1 geodesic equation and images in numerical spacetimes}", journal = {Classical and Quantum Gravity}, archivePrefix = "arXiv", eprint = {1208.3927}, primaryClass = "gr-qc", year = 2012, month = dec, volume = 29, number = 24, pages = {245005}, doi = {10.1088/0264-9381/29/24/245005}, adsurl = {http://adsabs.harvard.edu/abs/2012CQGra..29x5005V}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{straub12, author = {{Straub}, O. and {Vincent}, F. H. and {Abramowicz}, M.~A. and {Gourgoulhon}, E. and {Paumard}, T.}, title = "{Modelling the black hole silhouette in Sagittarius A* with ion tori}", journal = {A\&A}, archivePrefix = "arXiv", eprint = {1203.2618}, primaryClass = "astro-ph.GA", keywords = {black hole physics, accretion, accretion disks, Galaxy: center}, year = 2012, month = jul, volume = 543, eid = {A83}, pages = {A83}, doi = {10.1051/0004-6361/201219209}, adsurl = {http://adsabs.harvard.edu/abs/2012A\%26A...543A..83S}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{abramowicz78, author = {{Abramowicz}, M. and {Jaroszynski}, M. and {Sikora}, M.}, title = "{Relativistic, accreting disks}", journal = {A\&A}, keywords = {BLACK HOLES (ASTRONOMY), RELATIVITY, ROTATING DISKS, STELLAR MASS ACCRETION, ANGULAR MOMENTUM, ASTRONOMICAL MODELS, BINARY STARS, CUSPS, GRAVITATIONAL EFFECTS, PRESSURE GRADIENTS}, year = 1978, month = feb, volume = 63, pages = {221-224}, adsurl = {http://adsabs.harvard.edu/abs/1978A\%26A....63..221A}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{page74, author = {{Page}, D.~N. and {Thorne}, K.~S.}, title = "{Disk-Accretion onto a Black Hole. Time-Averaged Structure of Accretion Disk}", journal = {ApJ}, year = 1974, month = jul, volume = 191, pages = {499-506}, doi = {10.1086/152990}, adsurl = {http://adsabs.harvard.edu/abs/1974ApJ...191..499P}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{doddseden11, author = {{Dodds-Eden}, K. and {Gillessen}, S. and {Fritz}, T.~K. and {Eisenhauer}, F. and {Trippe}, S. and {Genzel}, R. and {Ott}, T. and {Bartko}, H. and {Pfuhl}, O. and {Bower}, G. and {Goldwurm}, A. and {Porquet}, D. and {Trap}, G. and {Yusef-Zadeh}, F.}, title = "{The Two States of Sgr A* in the Near-infrared: Bright Episodic Flares on Top of Low-level Continuous Variability}", journal = {ApJ}, archivePrefix = "arXiv", eprint = {1008.1984}, primaryClass = "astro-ph.GA", keywords = {accretion, accretion disks, black hole physics, Galaxy: center, infrared: general}, year = 2011, month = feb, volume = 728, eid = {37}, pages = {37}, doi = {10.1088/0004-637X/728/1/37}, adsurl = {http://adsabs.harvard.edu/abs/2011ApJ...728...37D}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{mignone07, author = {{Mignone}, A. and {Bodo}, G. and {Massaglia}, S. and {Matsakos}, T. and {Tesileanu}, O. and {Zanni}, C. and {Ferrari}, A.}, title = "{PLUTO: A Numerical Code for Computational Astrophysics}", journal = {ApJS}, eprint = {arXiv:astro-ph/0701854}, keywords = {Hydrodynamics, Methods: Numerical, Magnetohydrodynamics: MHD, Relativity, Shock Waves}, year = 2007, month = may, volume = 170, pages = {228-242}, doi = {10.1086/513316}, adsurl = {http://adsabs.harvard.edu/abs/2007ApJS..170..228M}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{yusefzadeh06b, author = {{Yusef-Zadeh}, F. and {Bushouse}, H. and {Dowell}, C.~D. and {Wardle}, M. and {Roberts}, D. and {Heinke}, C. and {Bower}, G.~C. and {Vila-Vilar{\'o}}, B. and {Shapiro}, S. and {Goldwurm}, A. and {B{\'e}langer}, G.}, title = "{A Multiwavelength Study of Sgr A*: The Role of Near-IR Flares in Production of X-Ray, Soft {$\gamma$}-Ray, and Submillimeter Emission}", journal = {ApJ}, eprint = {arXiv:astro-ph/0510787}, keywords = {Accretion, Accretion Disks, Black Hole Physics, Galaxies: Nuclei, Galaxy: Center}, year = 2006, month = jun, volume = 644, pages = {198-213}, doi = {10.1086/503287}, adsurl = {http://adsabs.harvard.edu/abs/2006ApJ...644..198Y}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{broderick06, author = {{Broderick}, A.~E. and {Loeb}, A.}, title = "{Imaging optically-thin hotspots near the black hole horizon of Sgr A* at radio and near-infrared wavelengths}", journal = {MNRAS}, eprint = {arXiv:astro-ph/0509237}, keywords = {black hole physics, polarization, techniques: interferometric, Galaxy: centre, infrared: general, submillimetre}, year = 2006, month = apr, volume = 367, pages = {905-916}, doi = {10.1111/j.1365-2966.2006.10152.x}, adsurl = {http://adsabs.harvard.edu/abs/2006MNRAS.367..905B}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{zamaninasab11, author = {{Zamaninasab}, M. and {Eckart}, A. and {Dov{\v c}iak}, M. and {Karas}, V. and {Sch{\"o}del}, R. and {Witzel}, G. and {Sabha}, N. and {Garc{\'{\i}}a-Mar{\'{\i}}n}, M. and {Kunneriath}, D. and {Mu{\v z}i{\'c}}, K. and {Straubmeier}, C. and {Valencia-S}, M. and {Zensus}, J.~A.}, title = "{Near-infrared polarimetry as a tool for testing properties of accreting supermassive black holes}", journal = {MNRAS}, archivePrefix = "arXiv", eprint = {1102.0775}, primaryClass = "astro-ph.HE", keywords = {accretion, accretion discs, black hole physics, Galaxy: centre, Galaxy: nucleus, infrared: general}, year = 2011, month = may, volume = 413, pages = {322-332}, doi = {10.1111/j.1365-2966.2010.18139.x}, adsurl = {http://adsabs.harvard.edu/abs/2011MNRAS.413..322Z}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{paczynski80, author = {{Paczy{\'n}sky}, B. and {Wiita}, P.~J.}, title = "{Thick accretion disks and supercritical luminosities}", journal = {A\&A}, keywords = {BLACK HOLES (ASTRONOMY), STELLAR LUMINOSITY, STELLAR MASS ACCRETION, ANGULAR MOMENTUM, DISKS, GALACTIC NUCLEI}, year = 1980, month = aug, volume = 88, pages = {23-31}, adsurl = {http://adsabs.harvard.edu/abs/1980A\%26A....88...23P}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{murrayclay11, author = {{Murray-Clay}, R.~A. and {Loeb}, A.}, title = "{Disruption of a Proto-Planetary Disk by the Black Hole at the Milky Way Centre}", journal = {ArXiv e-prints}, archivePrefix = "arXiv", eprint = {1112.4822}, primaryClass = "astro-ph.GA", keywords = {Astrophysics - Galaxy Astrophysics, Astrophysics - Earth and Planetary Astrophysics}, year = 2011, month = dec, adsurl = {http://adsabs.harvard.edu/abs/2011arXiv1112.4822M}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{falcke96, author = {{Falcke}, H.}, title = "{The Nuclear Jet in M81}", journal = {ApJL}, eprint = {arXiv:astro-ph/9604026}, keywords = {ACCRETION, ACCRETION DISKS, GALAXIES: ACTIVE, BLACK HOLE PHYSICS, GALAXY: CENTER, GALAXIES: INDIVIDUAL MESSIER NUMBER: M81, GALAXIES: JETS}, year = 1996, month = jun, volume = 464, pages = {L67}, doi = {10.1086/310085}, adsurl = {http://adsabs.harvard.edu/abs/1996ApJ...464L..67F}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{uttley02, author = {{Uttley}, P. and {McHardy}, I.~M. and {Papadakis}, I.~E.}, title = "{Measuring the broad-band power spectra of active galactic nuclei with RXTE}", journal = {MNRAS}, eprint = {arXiv:astro-ph/0201134}, keywords = {methods: numerical, galaxies: active, galaxies: Seyfert, X-rays: galaxies}, year = 2002, month = may, volume = 332, pages = {231-250}, doi = {10.1046/j.1365-8711.2002.05298.x}, adsurl = {http://adsabs.harvard.edu/abs/2002MNRAS.332..231U}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{vaughan05, author = {{Vaughan}, S.}, title = "{A simple test for periodic signals in red noise}", journal = {A\&A}, eprint = {arXiv:astro-ph/0412697}, keywords = {methods: data analysis, methods: statistical, X-rays: general, X-rays: galaxies}, year = 2005, month = feb, volume = 431, pages = {391-403}, doi = {10.1051/0004-6361:20041453}, adsurl = {http://adsabs.harvard.edu/abs/2005A\%26A...431..391V}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{dolence12, author = {{Dolence}, J.~C. and {Gammie}, C.~F. and {Shiokawa}, H. and {Noble}, S.~C.}, title = "{Near-infrared and X-Ray Quasi-periodic Oscillations in Numerical Models of Sgr A*}", journal = {ApJL}, archivePrefix = "arXiv", eprint = {1201.1917}, primaryClass = "astro-ph.HE", keywords = {accretion, accretion disks, black hole physics, Galaxy: center, magnetohydrodynamics: MHD, methods: numerical, radiative transfer}, year = 2012, month = feb, volume = 746, eid = {L10}, pages = {L10}, doi = {10.1088/2041-8205/746/1/L10}, adsurl = {http://adsabs.harvard.edu/abs/2012ApJ...746L..10D}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @ARTICLE{dexter09, author = {{Dexter}, J. and {Agol}, E. and {Fragile}, P.~C.}, title = "{Millimeter Flares and VLBI Visibilities from Relativistic Simulations of Magnetized Accretion Onto the Galactic Center Black Hole}", journal = {ApJL}, archivePrefix = "arXiv", eprint = {0909.0267}, primaryClass = "astro-ph.HE", keywords = {accretion, accretion disks, black hole physics, Galaxy: center, radiative transfer, relativity}, year = 2009, month = oct, volume = 703, pages = {L142-L146}, doi = {10.1088/0004-637X/703/2/L142}, adsurl = {http://adsabs.harvard.edu/abs/2009ApJ...703L.142D}, adsnote = {Provided by the SAO/NASA Astrophysics Data System} } @BOOK{gourgoulhon12, author = {{Gourgoulhon}, E.}, publisher = {Springer}, address = {Heidelberg, Germany}, title = {3+1 Formalism in General Relativity}, year = {2012}, }Gyoto-2.0.2/doc/user_guide/GyotoManual.tex000066400000000000000000002173441455254334400205210ustar00rootroot00000000000000% Copyright 2014-2016, 2018-2019 Frédéric Vincent, Thibaut Paumard % % This file is part of Gyoto. % % Gyoto 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. % % Gyoto 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 Gyoto. If not, see . \documentclass[a4paper,12pt]{article} % The build system will provide this command to make out-of-tree build % work \providecommand{\GyotoSrcDir}{../..} \usepackage[]{natbib} \usepackage{fullpage} \usepackage{calc} \usepackage[usenames,dvipsnames]{color} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{textcomp} \usepackage{rotating} \usepackage[frenchb,english]{babel} \usepackage{amssymb,amsmath} \usepackage{float} \usepackage{hyperref} \usepackage{amstext} \usepackage{tipa} %\usepackage{palatino} \usepackage{fancyvrb} \DefineVerbatimEnvironment{code}{Verbatim}{fontsize=\small} \newcommand{\D}{\mathrm{d}} \newcommand{\GYOTO}{\texttt{GYOTO}} \newcommand{\Metric}{\texttt{Metric}} \newcommand{\Astrobj}{\texttt{Astrobj}} \newcommand{\Spectrum}{\texttt{Spectrum}} \DeclareMathOperator{\sgn}{sgn} \DeclareMathOperator{\atantwo}{atan2} \DeclareMathOperator{\proj}{proj} \graphicspath{{\GyotoSrcDir/doc/images/}} \begin{document} \begin{center} \section*{\Huge{Quick User Guide for \texttt{GYOTO}}} \vspace{0.5cm} % Let's enter the date manually. Need to update it at least for each % release. Use git log to find out the last change to the user manual. \Large{Updated January 02, 2024} %\today \vspace{4cm} \begin{figure}[htbp] \centering \includegraphics[width=10cm,height=10cm]{RWI_t1822_nu18.pdf} %\caption{} %\label{fig:hotspot} \end{figure} \end{center} \newpage \section*{Introduction - Scope of this Guide} This Guide aims at giving a general presentation of the \textit{General relativitY Orbit Tracer of Observatoire de Paris}, \texttt{GYOTO} (pronounced \textipa{[dZIoto]}, as for the Italian trecento painter Giotto di Bondone). This text is not a lecture on ray-tracing techniques and is only devoted to presenting the code so that it can be quickly handled by any user. Readers interested in the physics behind \texttt{GYOTO} are referred to~\citet[][and references therein]{vincent11a,vincent12a,aimar23}. The aim of this Guide is also to present the code in sufficient details so that people interested to develop their own version of \texttt{GYOTO} can do it easily. \texttt{GYOTO} is an open source C++ code with a Yorick plug-in that computes null and time-like geodesics in the Kerr metric as well as in any metric computed within the framework of the 3+1 formalism of general relativity. This code allows to compute mainly (polarized or non-polarized) images and spectra of astrophysical sources emitting electromagnetic radiation in the vicinity of compact objects (e.g. accretion disks or nearby stars). As \texttt{GYOTO} is continually evolving, this guide will (hopefully) be regularly updated to present the new functionalities added to the code. However, this guide does not constitute a full reference. The reference manual is built from the C++ header files using \texttt{doxygen} into the \texttt{doc/html/} directory of the source tree. It is also available online (rebuilt every night) at \url{http://gyoto.obspm.fr/}. The reader is strongly encouraged to give feedback on this Manual, report typos, ask questions or suggest improvements by sending an email to \url{frederic.vincent@obspm.fr} \tableofcontents \newpage \section{Installing \texttt{GYOTO}} \label{install} \texttt{GYOTO} is freely available at the URL \url{http://gyoto.obspm.fr/}. This URL hosts the online manual of \texttt{GYOTO}, with installation instructions and brief descriptions of the code architecture. \texttt{GYOTO} is version-controlled with the \texttt{git} software that you should install on your machine. Before uploading the code, be sure that the \texttt{xerces-c3} (or \texttt{xercesc3} depending on the architecture) and \texttt{cfitsio} libraries are installed on your system: \texttt{GYOTO} won't compile without these. It is also better (but not required) to install the \texttt{udunits2} library. Once this is done, just type on a command line \begin{code} git clone git://github.com/gyoto/Gyoto.git \end{code} which will create a \texttt{Gyoto} repository. It contains directories \texttt{bin}, \texttt{lib}, \texttt{include}, \texttt{doc}, \texttt{yorick} containing respectively the core code and executable, the \texttt{.C} source files, the \texttt{.h} headers, the documentation and \texttt{Yorick} plug-in related code. In the \texttt{Gyoto} repository, use the standard \begin{code} ./configure; make; sudo make install \end{code} commands to build the code. In case of problems, have a look at the \texttt{INSTALL} file that gives important complementary informations on how to install \texttt{GYOTO}. \section{Basic usage} \subsection{Using the \texttt{gyoto} command-line tool} \label{demo} The most basic way of using \texttt{GYOTO} is through the \texttt{gyoto} command-line tools. It relies on two kinds of files: an \texttt{XML} file containing the inputs and a \texttt{FITS} file containing the outputs. \subsubsection{XML input file} You can find examples of \texttt{XML} input files in \texttt{doc/examples/}. Let us consider the computation of the image of a standard Page-Thorne accretion disk in Boyer-Lindquist coordinates, described in \texttt{example-page-thorne-disk-BL.xml}. \begin{sloppypar} %to allow proper newline for long words (in texttt) If you are not familiar with \texttt{XML} language, just remember that an \texttt{XML} file is made of several fields beginning with the \texttt{} and ending with \texttt{}. One field can have sub-fields, defined with the same symbols. For instance in \texttt{example-page-thorne-disk-BL.xml}, there is one global field, \texttt{Scenery}, describing the scenery that will be ray-traced, with a few sub-fields: \texttt{Metric} describing the metric used for the computation, here the Kerr metric in Boyer-Lindquist coordinates; \texttt{Screen} describing the observer's screen properties; finally \texttt{Astrobj} describing the astrophysical object that will be ray-traced, here a Page-Thorne accretion disk. All the parameters in this input file can be changed to specify a new scenery. Let us present in details the \texttt{example-page-thorne-disk-BL.xml} file: \begin{code} \end{code} The following lines specify the metric: it is the Kerr metric, expressed in Boyer-Lindquist coordinates, with spin 0 (so the Schwarzschild metric here!): \begin{code} 0. \end{code} The metric is now defined, let us describe the observer's screen. The \texttt{Position} field gives the screen's 4-position in Boyer-Lindquist coordinates $(t,r,\theta,\varphi)$, angles in radians, time and radius in geometrical units (i.e. units with $c$ and $G$ put to 1). The \texttt{Time} field gives the time of observation. The \texttt{FieldOfView} is given in radians. The screen's \texttt{Resolution} is the number of screen pixels in each direction. \begin{code} 1000. 100. 1.22 0. 0.314159265358979323846264338327950288419716 32 \end{code} The screen is now defined. The following line describes the target object that will be ray-traced: \begin{code} \end{code} Here the target object is very simple and requires no specifications. The \texttt{Scenery} is now fully defined and the field can be closed \begin{code} \end{code} This is the end of the \texttt{XML} input file! \end{sloppypar} \subsubsection{Calling \texttt{gyoto}} We will now use the \texttt{gyoto} command-line tools to ray-trace the scenery described in this \texttt{XML} file. The command-line options are documented in the usual UNIX-style manpage: \begin{code} $ man gyoto \end{code} %$ Once the \texttt{XML} input file is ready, the call to \texttt{gyoto} is done according to the following line: \begin{code} $ gyoto input.xml \!output.fits \end{code} %$ where \texttt{input.xml} is the above mentioned \texttt{XML} file and \texttt{output.fits} is the name of the \texttt{FITS} that will contain the result of the computation. The \texttt{!} before the \texttt{.fits} file allows to overwrite a pre-existing file. If you remove it, an error will occur if the \texttt{.fits} file already exists. \begin{figure} \centering \includegraphics[width=8cm,height=8cm]{DemoPageThorne.pdf} \caption{Image of a Page-Thorne thin accretion disk around a Schwarzschild black hole, with a $32\times 32$ pixels screen.} \label{fig:demo} \end{figure} The line above asks \texttt{GYOTO} to integrate a null geodesic from each pixel of the screen backward in time towards the astrophysical object. \subsubsection{FITS output file} Once the computation is performed, the \texttt{output.fits} file is created. You can visualise it by using the \texttt{ds9} software (\url{http://hea-www.harvard.edu/RD/ds9/site/Home.html}) and simply running: \begin{code} $ ds9 ouput.fits \end{code} %$ For instance, if you use the \texttt{example-page-thorne-disk-BL.xml} as is, you will obtain Fig.~\ref{fig:demo}. \subsection{Parallelisation} Ray-tracing of several hundreds of light-rays is a problem that is easily parralelised, by letting different CPUs compute distinct geodesics. \texttt{GYOTO} offers several facilities to perform such parallelisation, depending on the hardware and software environment. \subsubsection{Multi-threading} You can accelerate computations by using several cores on a computer using the \texttt{----nthreads=NCORES} option. \texttt{NCORES} is the number of threads that \texttt{GYOTO} will use. The optimal value is usually the number of hardware CPU cores on the machine. This option can also be specified in the input file using the \texttt{$<$NThreads$>$} entity. This facility does not work for LORENE-based metrics (see Sect.~\ref{3+1}). \subsubsection{Multi-processing} \texttt{GYOTO} is able to use the Message Passing Interface (MPI) to distribute the workload over many CPUs, possibly hosted on different computers. YOu can activate it by specifying \texttt{--nprocesses=NPROCS}. \texttt{NPROCS} is the number of helper processes that \texttt{GYOTO} will spawn. This does not include the main \texttt{GYOTO} process, which will act as a manager for the helpers. This functionnality relies on Astrobj::fillElement() and Metric::fillElement() being properly implemented, which is not always the case for new classes. Also, classes that use supplemental data (additional files referenced to in the XML file) do require that these supplemental data be accessible to all the processes using the same absolute path. Most notably, Lorene metrics require such data. Astrobj classes such as the PatternDisk also require on-disk data. \subsubsection{Poor-mans parallelisation} Another cheap way of parallelising the computation is to call several \texttt{gyoto} instances, running on different CPUs or even on different machines, each instance computing only a portion of the image. This sort of basic parallelisation is, naturally, supported by all the \texttt{GYOTO} metrics. You can ask \texttt{GYOTO} to compute only a fraction of the screen's pixels by running one of: \begin{code} $ gyoto -iIMIN:IMAX:DI -jJMIN:JMAX:DJ input.xml \!output.fits $ gyoto --ispec=IMIN:IMAX:DI --jspec=JMIN:JMAX:DJ input.xml \!output.fits $ gyoto --imin=IMIN --imax=IMAX --jmin=JMIN --jmax=JMAX --di=DI --dj=DJ \ input.xml \!output.fits \end{code} %$ where \texttt{IMIN}, \texttt{IMAX}, \texttt{JMIN}, \texttt{JMAX} are the extremal indices of the pixels that will be computed. \texttt{DI} and \texttt{DJ} are the step size in the $i$ and $j$ direction respictively. With the \texttt{-{}-ispec} or \texttt{-i} syntax, \texttt{IMAX} defaults to \texttt{IMIN} if there is no colon in the specification, and to the image resolution otherwise. For instance, to compute only the geodesic that hits the central pixel of a $32 \times 32$ screen, type one of: \begin{code} $ gyoto -i16 -j16 input.xml \!output.fits $ gyoto --ispec=16 --jspec=16 input.xml \!output.fits $ gyoto --imin=16 --imax=16 --jmin=16 --jmax=16 input.xml \!output.fits \end{code} %$ To compute only the points with even $i$ and od $j$, use (for instance) one of: \begin{code} $ gyoto -i2::2 -j::2 input.xml \!output.fits $ gyoto --ispec=2::2 --jspec=1::2 input.xml \!output.fits $ gyoto --imin=2 --di=2 --jmin=1 --dj=2 input.xml \!output.fits \end{code} %$ To compute only the lower-right quadrant of the image: \begin{code} $ gyoto -i17: -j:16 input.xml \!output.fits $ gyoto --ispec=17: --jspec=:16 input.xml \!output.fits $ gyoto --imin=17 --jmax=16 input.xml \!output.fits \end{code} %$ How to recombine the several output files into a single FITS file is left as an exercise to the reader. It is easily done using any scientific interpreted language such as Yorick\footnote{\url{http://dhmunro.github.io/yorick-doc/}} or Python\footnote{\url{https://www.python.org/}}. \subsection{The \texttt{gyotoy} interface} \label{sect:gyotoy} The second most basic tool provided by \texttt{GYOTO} is \texttt{gyotoy} (Fig.~\ref{fig:gyotoy}). This is a graphical user interface to visualize a single geodesic. See the \texttt{README} and \texttt{INSTALL} files for the prerequisites. Once the installation is complete, your launch gyotoy as: \begin{code} $ gyotoy \end{code} %$ or, from the \texttt{yorick/} sub-directory of the built source tree: \begin{code} $ ./yorick -i gyotoy.i \end{code} %$ followed, on the Yorick prompt, by: \begin{code} > gyotoy \end{code} \begin{figure} \centering \includegraphics[width=0.7\linewidth]{gyotoy_screenshot.png} \caption{The \texttt{gyotoy} graphical user interface.} \label{fig:gyotoy} \end{figure} You can select a \texttt{KerrBL} metric and set the spin, or any other metric defined in an \texttt{XML} file. As of writing, \texttt{gyotoy} assumes that the coordinate system is spherical-like. It should work in Cartesian coordinates as well, but the labels will be odd. It is possible to select which kind of geodesic to compute (time-like or light-like, using the \texttt{Star} or \texttt{Photon} radio buttons), the initial position and 3-velocity of the particle, and the projection (a.k.a. the position of the observer). The bottom tool bar allows selecting a few numerical parameters such as whether or not to use an adaptive step. Menus allow saving or opening the parameters as an XML file, exporting the geodesic as a text file, and saving the view as an image file in various formats. The view can be zoomed and panned by clicking in the plot area. \section{Beyond the basics: scripting \texttt{GYOTO}} We have seen the two most basic ways of using \texttt{GYOTO}: computing a single frame using the \texttt{gyoto} command-line tool, and exploring a single geodesic using the \texttt{gyotoy} interface. There is much more that \texttt{GYOTO} can be used for: computing spectra, performing model-fitting, computing movies, evaluating lensing effects etc. \subsection{Using the Python module} \label{sect:python} The Python module is constantly evolving and some details can change in future releases. It is documented in a Pythonic way, so help(object) is your friend. The Python module is split into several submodules: \begin{description} \item[gyoto.core] expose the generic framework compiled in \texttt{libgyoto}; \item[gyoto.std] expose the derived classes compiled in the standard plug-in, \texttt{libgyoto-stdplug}; \item[gyoto.lorene] expose the derived classes compiled in the Lorene plug-in, \texttt{libgyoto-lorene}; \item[gyoto.metric, gyoto.astrobj, gyoto.spectrometer, gyoto.spectrum] regroup the various Metrics, Astrobjs, etc. from the various extensions; \item[gyoto.util] contains a few high-level wrappers and helper functions; \item[gyoto.animate] contains a frame-work for producing videos based on Gyoto. \end{description} \subsubsection{Building and installing} How to build and install these extensions is documented in INSTALL. At the moment, this is not done automatically. The requisites are: \begin{itemize} \item Python 3, including the development files; \item Swig (tested with 2.0.12 and 3.0.2); \item NumPy, installed with its development files for the specific Python interpreter you plan on using. \end{itemize} For instance, on Debian Buster, to use compile the \texttt{gyoto} extension for Python 3.7, you need the packages: \begin{itemize} \item \texttt{python3.7-dev}; \item \texttt{python3-numpy}; \item \texttt{swig} or \texttt{swig2.0}. \end{itemize} Configure the Gyoto source tree specifying the Python interpreter (if you don't want to use the default on your system), build and install gyoto, then move to the \texttt{python/} subdirectory, build and install: \begin{code} $ ./configure PYTHON=/usr/bin/python3.7 $ make $ sudo make install $ cd python $ make $ sudo make install \end{code} Depending on your system, you may need to add the directory where the \texttt{gyoto/} directory containing \texttt{\_\_init\_\_.py} has been installed to your PYTHONPATH variable. \subsubsection{Using} Some sample code can be found in \texttt{python/example.py}. The Python extension matches the C++ API very closely, so the C++ reference in \texttt{doc/html/} is quite relevant. Most of it can also be accessed through the Python function '\texttt{help}'. The \texttt{gyoto.core} module should be enough to perform ray-tracing on anykind of objects, even located in plug-ins: Importing \texttt{gyoto}, \texttt{gyoto.core} or \texttt{gyoto.std} would normally load the standard plug-in for you, but this is how you would do it manually: \begin{code} import gyoto.core gyoto.core.requirePlugin("stdplug") \end{code} Get help on Gyoto: \begin{code} help(gyoto.core) \end{code} Read scenery from XML: \begin{code} a=gyoto.core.Factory("../doc/examples/example-moving-star.xml") sc=a.scenery() \end{code} or: \begin{code} import gyoto.util sc=gyoto.util.readScenery("../doc/examples/example-moving-star.xml") \end{code} Create Astrobj by name, access property by name: \begin{code} tr=gyoto.core.Astrobj('Torus') tr.set('SmallRadius', 0.5) \end{code} To access methods of specific derived classes (for instance the Star API, which allows computing time-like geodesics), the python extension for a specific Gyoto plug-in must be imported: \begin{code} from gyoto import std st=std.Star() \end{code} The various submodules and extensions are fully compatible with each other: \begin{code} sc=gyoto.core.Scenery() st=std.Star() sc.astrobj(st) \end{code} Pointers to the base classes can be up-cast to derived classes: \begin{code} ao = sc.astrobj() # ao contains a Gyoto::Astrobj::Generic * pointer st = std.Star(ao) # if conversion fails, error is thrown \end{code} The source directory contains several examples and test cases. The Python source for gyoto.util and gyoto.animate also provide rich examples, always more up-to-date than the present documentation. \subsection{Using the Yorick plug-in} \label{sect:yorick} Warning: the Yorick plug-in will not be udated with new features anymore and we plan on phasing it out has soon as gyotoy has been ported to Python. If in doubt, use Python instead. Yorick is a fairly easy to learn interpreted computer language. We provide a Yorick plug-in which exposes the \texttt{GYOTO} functionalities to this language. This plug-in is self documented: at the Yorick prompt, try: \begin{code} > #include "gyoto.i" > help, gyoto \end{code} A lot of the \texttt{GYOTO} test suite is written in Yorick, which provides many example code in the various \texttt{*.i} files in the \texttt{yorick/} directory of the \texttt{GYOTO} source tree. Another example is provided by the \texttt{gyotoy} graphical interface (Sect.~\ref{sect:gyotoy}). For Yorick basics, see: \begin{itemize} \item \url{https://github.com/dhmunro/yorick}; \item \url{http://dhmunro.github.io/yorick-doc/}; \item \url{http://yorick.sourceforge.net/}; \item \url{http://www.maumae.net/yorick/doc/index.php}. \end{itemize} As a very minimalist example, here is how to ray-trace an XML scenery into a FITS file in Yorick: \begin{code} $ rlwrap yorick \end{code} %$ This launches Yorick within the line-editing facility \texttt{rlwrap} (provided separately). Then, from the Yorick prompt: \begin{code} > #include "gyoto.i" > restore, gyoto; > sc = Scenery("input.xml"); > data = sc(,,"Intensity"); > fits_write, "output.fits", data; \end{code} or, in two lines: \begin{code} > #include "gyoto.i" > fits_write, "output.fits", gyoto.Scenery("input.xml")(,,"Intensity"); \end{code} Likewise, to integrate the spectrum over the field-of-view: \begin{code} > #include "gyoto.i" > restore, gyoto; > sc = Scenery("input.xml"); > data = sc(,,"Spectrum[mJy.pix-2]"); > spectrum = data(sum, sum, ); > freq = sc(screen=)(spectro=)(midpoints=, unit="Hz"); > plg, spectrum, freq; > xytitles, "Frequency [Hz]", "Spectrum [mJy]"; \end{code} MPI multi-processing is also available from within Yorick. To activate this functionality, you must call \texttt{gyoto.mpiInit} early in your script. Spawn the required number of processes using the \texttt{mpispawn} method, and don't forget to use the \texttt{mpiclone} method. Although not strictly necessary, it is also recommended to explicitely terminate helper processes that have been spawned in the background (using \texttt{mpispawn=0}, and to call \texttt{gyoto.mpiFinalize} at the very end of your script: \begin{code} > #include "gyoto.i" > restore, gyoto; > // call MPI_Init(): > mpiInit; > sc = Scenery("input.xml"); > // spawn helpers and send them the scenery > sc, mpispawn=12, mpiclone=; > // compute stuff > data =sc(); > // shut down the helper processes > sc, mpispawn=0; > // shut down MPI > mpiFinalize; > quit; \end{code} The Yorick plug-in is not generated automatically. Therefore only a subset of the Gyoto API is exposed. However, all the properties of any object (most of what can be set in XML) can be read and written from Yorick, with the possibility of specifying a unit for properties that support it: \begin{code} > #include "gyoto.i" > restore, gyoto; > tr = Astrobj("Torus"); > noop, tr.SmallRadius(0.5, unit="geometrical"); > small_radius_in_meters=tr.SmallRadius(unit="m"); > tr, SmallRadius=0.5, unit="geometrical", LargeRadius=5e6, unit="m"; > large_radius_in_default_unit=tr(LargeRadius=); \end{code} \subsection{Other languages} \label{sect:swig} The Python extension (Sect.~\ref{sect:python}) is generated automatically using the Swig tool, with only little python-specific code. It should therefore be rather easy to compile extensions for the other languages that Swig supports (Tcl, java, R, and many others). If you want it to happen, feel free to contact the Gyoto developers. \subsection{Interfacing directly to the \texttt{GYOTO} library} The core functionality is provided as a C++ shared library, which is used both by the \texttt{gyoto} command-line tool and the Yorick plug-in. You can, of course, interface directly to this library. The reference is generated from the source code using \texttt{doxygen} in the directory \texttt{doc/html/}. The application binary interface (ABI) is likely to change with every commit. We try to maintain a certain stability in the application programming interface (API), and to maintain a stable branch whic honly sees bug-fixes between official releases. But the effort we put into this stability is function of the needs of our users. If you start depending on the \texttt{GYOTO} library, please contact us (\texttt{gyoto@sympa.obspm.fr}): we will try harder to facilitate your work, or at least warn you when there is a significant API change. \section{Choosing the right integrator} \label{tuning} Numerical ray-tracing can be very much time-consuming. In order to control the numerical errors in your application, it is wise to experiment with the numerical tuning parameters. \texttt{GYOTO} provides several distinct integrators (depending on compile-time options): \begin{itemize} \item the \texttt{Legacy} integrator, the first to have been introduced; \item Boost\footnote{\url{http://www.boost.org/}} integrators from the \texttt{odeint}\footnote{\url{http://www.boost.org/doc/libs/1_55_0/libs/numeric/odeint/doc/html/index.html}} library. In \texttt{GYOTO}, they are called \texttt{runge\_kutta\_*} (see below). \end{itemize} The integrator and its numerical tuning parameters can be specified in either of these three XML sections: \begin{description} \item[\texttt{Scenery}] to specify the integrator and parameters used during ray-tracing by the individual photons; \item[\texttt{Photon}] if the XML file describes a single photon (the Yorick plug-in and the \texttt{gyotoy} tool can make use of such an XML file); \item[\texttt{Astrobj}] if it is a \texttt{Star}, for specifying the integrator and parameters used to compute the orbit of this star. \end{description} The full set of tuning parameters that \emph{may be} supported by the \texttt{Scenery} section is: \begin{code} runge_kutta_fehlberg78 1e-6 1e-6 1.79769e+308 2.22507e-308 1.79769e+308 100000 1 -1.7e308 \end{code} \begin{description} \item[Integrator] the integrator to use (one of the runge\_kutta\_* or Legacy; default: if compiled-in, \texttt{runge\_kutta\_fehlberg78}); \item[AbsTol]\footnote{\label{note:abstol}The \texttt{Legacy} integrator does not support the AbsTol nor the RelTol parameters} absolute tolerance for adapting the integration step (see \url{http://www.boost.org/doc/libs/1_55_0/libs/numeric/odeint/doc/html/boost_numeric_odeint/odeint_in_detail/generation_functions.html}); \item[RelTol]\footnotemark[\value{footnote}] relative tolerance for adapting the integration step (idem); \item[DeltaMax]\footnote{The \texttt{Legacy} integrator take the DeltaMin, DeltaMax and DeltaMaxOverR parameters in the \texttt{Metric} section.} the absolute maximum value for the integration step (defaults to the largest possible non-infinite value); \item[DeltaMin]\footnotemark[\value{footnote}] the absolute minimum value (defaults to the smallest possible strictly positive value); \item[DeltaMaxOverR]\footnotemark[\value{footnote}] this is $h=\delta_\text{max}/r$ such that, at any position, the integration step may not be larger than $h\times\;r$ where $r$ is the current distance to the centre of the coordinate system (defaults to $1$). \item[MaxIter] maximum number of integration steps (per photon); \item[Adaptive] (or NonAdaptive) whether or not to use an adaptive step; \item[Delta] integration step, initial in case it is adaptive. Not very important, but should be commensurable with the distance to the \texttt{Screen} (i.e. don't use Delta$=10^{-6}$ if the screen is at $10^{13}$ geometrical units!). Delta can be specified in any distance-like or time-like unit. \item[MinimumTime] stop integration when the photon travels back to this date. Defaults to the earliest possible date. Can be specified in any time-like or distance-like unit. \end{description} \subsection{The Boost integrators} If \texttt{GYOTO} was compiled with a C++11-capable compiler and with the Boost library (version 1.53 or above), then the following integrators are available: \begin{itemize} \item \texttt{runge\_kutta\_cash\_karp54}; \item \texttt{runge\_kutta\_fehlberg78}; \item \texttt{runge\_kutta\_dopri5}; \item \texttt{runge\_kutta\_cash\_karp54\_classic} (alternate implementation of\\ \texttt{runge\_kutta\_cash\_karp54}). \end{itemize} Those integrators are implemented in the \texttt{Worldline} object. This has the advantage that, when ray-tracing the image of a moving star (\texttt{Star} class), the star can use a different integrator than the photons. These integrators support all of the parameters described above. \subsection{The \texttt{Legacy} integrator} The \texttt{Legacy} integrator is a home-brewed 4\textsuperscript{th}-order, adaptive-step Runge--Kutta integrator. It is always available, independent of any compile-time options. It does not support AbsTol nor RelTol, and takes DeltaMin, DeltaMax and DeltaMaxOver in the \texttt{Metric} section, not in the \texttt{Scenery} or \texttt{Astrobj} section. It is not possible to use different tuning parameters for the Star and the Photons if both use the \texttt{Legacy} integrator. The \texttt{Legacy} integrator is implemented in the \texttt{Metric} object and may be re-implemented by specific \texttt{Metric} kinds. Most notably, the \texttt{KerrBL} metric reimplements it (this specific implementation takes advantage of the specific constants of motion). When a metric reimplements the \texttt{Legacy} integrator, it is possible to choose which implementation to choose by specifying either \texttt{$<$GenericIntegrator$>$} or \texttt{$<$SpecificIntegrator$>$} in the \texttt{$<$Metric$>$} section. The \texttt{KerrBL} specific implementation of the \texttt{Legacy} integrator accepts one additional tuning parameter: \texttt{DiffTol}, which defaults to $10^{-2}$ and empirically seems to have very little actual impact on the behaviour of the integrator. \subsection{Integrator comparison} \begin{figure} \includegraphics[width=0.32\textwidth]{doc-fig-dfl-tol.pdf} \includegraphics[width=0.32\textwidth]{doc-fig-ctime-tol.pdf} \includegraphics[width=0.32\textwidth]{doc-fig-dfl-ctime.pdf} \caption{Comparison of the integrators when measuring a deflection angle (see text). \emph{Left:} error on deflection angle vs. tuning parameter; \emph{centre:} computing time vs. tuning parameter; \emph{right:} computing time vs. error on deflection angle. Colours denote the integrator: \emph{red:} \texttt{Legacy} (\emph{solid:} specific \texttt{KerrBL} implementation, \emph{dash-dotted:} generic implementation); \emph{black:} \texttt{runge\_kutta\_fehlberg78}; \emph{blue:} \texttt{runge\_kutta\_karp54}; \emph{magenta:} \texttt{runge\_kutta\_dopri5}.} \label{fig:integrators} \end{figure} It is advisable to try the various integrators in your context, and to play with the tuning parameters. As a rule of thumbs, if you need to change DeltaMin, DeltaMax, DeltaMaxOverR, or MaxIter, it probably means that you should change for a higher-order integrator. The highest order integrator is currently \texttt{runge\_kutta\_fehlberg78} and is the default. As an example, we have compared all the integrators for a simple situation: the \texttt{Metric} is a Schwarzschild black-hole of $4\times10^6\,M_\odot$, the \texttt{Screen} is at 8~kpc, a single light-ray is launched $50\,\mu$as from the centre, we integrate the light-ray (back in time) during twice the travel-time to the origin of the coordinate centre and compute the deflection angle. We do that for each integrator and a set of numerical tuning parameters. For the \texttt{Legacy} integrator, we try both the generic integrator and the specific \texttt{KerrBL} implementation, and use DeltaMaxOverR as tuning parameter. For the Boost integrators, we use AbsTol and RelTol as tuning parameters (they are kept equal to each-other). We then compare the result for two values of the tuning parameter and measure the computing time required for each realisation. For each integrator, there exists an optimum value or the tuning parameter, for which the (estimated) uncertainty in deflection angle is minimal (Fig.~\ref{fig:integrators}, left panel). As long as the tuning parameter is larger than (or equal to) this optimum, computation time varies very little (central panel). However, when the tuning parameter becomes too small, numerical error and computation time explode (right panel). The two low-order Boost integrators are the fastest, the two \texttt{Legacy} integrators are the slowest. The default, \texttt{runge\_kutta\_fehlberg78}, has intermediate performance, but seems to yield the smallest error and to be less sensitive on the exact value of the tuning parameter close to its optimum. All the integrators except the generic implementation of the \texttt{Legacy} integrator agree to within $2\,\mu$as on the deflection angle, which is of order 33°. The relative uncertainty is therefore of order $10^{-11}$. In conclusion, for this specific use case, the best choice seems to be: \begin{code} runge_kutta_fehlberg78 1e-19 1e-19 \end{code} If computation time is more critical than accuracy, the other Boost integrators are also good choices. The Yorick code that was used to generate Fig.~\ref{fig:integrators} is provided in the \texttt{GYOTO} source code as \texttt{yorick/compare-integrators.i}. You can run it from the top directory of the built source tree as: \begin{code} yorick/yorick -i yorick/compare-integrators.i \end{code} \section{\texttt{GYOTO} architecture} \label{archi} \subsection{\texttt{GYOTO} base classes} \texttt{GYOTO} is basically organised around 8 base classes (see Fig.~\ref{fig:hierarch}): \begin{itemize} \item The \texttt{Metric} class: it describes the metric of the space-time (Kerr in Boyer-Lindquist coordinates, Kerr in Kerr-Schild coordinates, metric of a relativistic rotating star in 3+1 formalism...). \item The \texttt{Astrobj} class: it describes the astrophysical target object that must ray-traced (e.g. a thin accretion disk, a thick 3D disk, a star...). \item The \texttt{Spectrum} class: it describes the emitted spectrum of the \texttt{Astrobj}. \item The \texttt{Worldline} class: it gives the evolving coordinates of a time-like or null geodesic. The \texttt{Star} class is a sub-class of \texttt{Worldline} as for the time being a star in \texttt{GYOTO} is only described by the time-like geodesic of its centre, with a given fixed radius. \item The \texttt{WorldlineIntegState} class: it describes the integration of the \texttt{Worldline} in the given \texttt{Metric}. \item The \texttt{Screen} class: it describes the observer's screen, its resolution, its position in space-time, its field of view. \item The \texttt{Scenery} class: it describes the ray-tracing scene. It is made of a \texttt{Metric}, a \texttt{Screen}, an \texttt{Astrobj} and the quantities that must be computed (an image, a spectrum...). \item The \texttt{Factory} class: it allows to translate the \texttt{XML} input file into C++ objects. \end{itemize} Fig.~\ref{fig:hierarch} presents the main \texttt{GYOTO} classes and their hierarchy. \begin{figure}[htbp] \centering \includegraphics[width=18cm,height=20cm]{ClassHierarch.pdf} \caption{Hierarchy of \texttt{GYOTO} C++ main classes.} \label{fig:hierarch} \end{figure} \subsection{A typical \texttt{GYOTO} computation} \begin{sloppypar} %to allow proper newline for long words (in texttt) Let us now describe the main interactions of these various classes during the computation of one given photon, ray-traced in the Kerr metric in Boyer-Lindquist coordinates towards, for instance, a \texttt{PageThorneDisk}, i.e. a geometrically thin optically thick disk following \citet{page74}. All directories used in the following are located in \texttt{GYOTO} home directory. \texttt{GYOTO} \texttt{main} program is located in \texttt{bin/gyoto.C}. This program first interprets the command line given by the user. It creates a new \texttt{Factory} object, initialised by means of the \texttt{XML} input file, that will itself create (see \texttt{lib/Factory.C}) the \texttt{Scenery}, \texttt{Screen} and \texttt{Astrobj} objects. The output quantities the user is interested in (image, spectrum...) will be stored during the computation in the \texttt{data} object, of type \texttt{Astrobj::Properties}. The \texttt{Scenery} object is then used to perform the ray-tracing, by calling its \texttt{rayTrace} function. All the functions that begin with \texttt{fits\_} allow to store the final output quantities in \texttt{FITS} format. The function \texttt{Scenery::rayTrace} calls \texttt{Photon::hit} that forms the core of \texttt{GYOTO}: \texttt{Photon::hit} integrates the null geodesic from the observer's screen backward in time until the target object is reached (there are other stop conditions of course, see \texttt{lib/Photon.C}). \texttt{Photon::hit} is basically made of a loop that calls the function \texttt{WorldlineIntegState::nextStep} until a stop condition is reached. \texttt{WorldlineIntegState::nextStep} itself calls the correct adaptive fourth order Runge-Kutta integrator (RK4) , depending on the metric used. Here, the metric being \texttt{KerrBL}, the RK4 used is \texttt{KerrBL::myrk4\_adaptive}. Moreover, the \texttt{Photon::hit} also calls the \texttt{Astrobj::Impact} function that asks the \texttt{Astrobj} whether the integrated photon has reached it or not. When the photon has reached the target, this \texttt{Astrobj::Impact} function calls the \texttt{Astrobj::processHitQuantities} function that updates the \texttt{data} depending on the user's specifications. \end{sloppypar} \section{Computing an image or a spectrum in the Kerr metric with \texttt{GYOTO}} \label{kerr} \subsection{The \texttt{Screen}} The observer's \texttt{Screen} is made of $N\times N$ pixels, and has a field of view of $f$ radians. The field of view is defined as the maximum angle between the normal to the screen and the most tangential incoming geodesic. Keep in mind that the screen is point-like, the different pixels are all at the same position (the one and only screen position defined in the \texttt{XML} file), but the various pixels define various angles on the observer's sky. For instance, if $f=\pi / 2$ (which gives a view of the complete half space in front of the screen), the geodesic that hits the screen on the central pixel $(i=N/2,j=N/2)$ comes from the direction normal to the screen whereas the geodesic that hits the screen on the $(i=N,j=N/2)$ pixel comes from a direction tangential to the screen. Each pixel of the screen thus covers a small solid angle on the observer's sky. This elementary solid angle is equal to the solid angle subtended by a cone of opening angle $f$ divided by the number of pixels: $\delta\Omega_{\mathrm{pixel}} = 2\,\pi\,(1-\cos f) / N^{2}$ (assuming the field of view is small enough). \subsection{Computing an image} The quantity that is carried along the geodesics computed by \texttt{GYOTO} in most cases is the specific intensity $I_{\nu}$ ($\mathrm{erg\,cm^{-2}\,s^{-1}\,ster^{-1}\,Hz^{-1}}$). An image is then defined as a map of specific intensity: each pixel of the screen contains one value of $I_{\nu}$, that can then be plotted. It is important to keep in mind that such an "image" is not physically equivalent to a real image that would be obtained with a telescope: a real image is a map of specific fluxes values, and a specific flux is the sum of the specific intensity on some solid angle. An example of image computation has already been given in Section~\ref{demo}. \subsection{Computing a spectrum} To compute a spectrum, the \texttt{Screen} field of the \texttt{XML} file should contain information about the observed frequency range. For a real telescope, this means adding a spectrometer. The additional command in the \texttt{XML} file is thus: \begin{code} 5. 25. \end{code} This line means that that $20$ values of observed frequencies will be considered, evenly spaced logarithmically, between $10^{5}$ and $10^{25}$ Hz. It is possible to choose frequencies linearly evenly spaced by using \texttt{freq} instead of \texttt{freqlog}. It is also possible to use wavelengths instead of frequencies, see \texttt{GyotoScreen.h} for more information. Moreover, the \texttt{XML} file should explicitly state that the quantity of interest is no longer a simple image, but a spectrum. This is allowed by the following command, that should be added for instance before the end of \texttt{Scenery} field: \begin{code} Spectrum \end{code} When this command is used, the output \texttt{FITS} file will contain a cube of images, each image corresponding to one observed frequency. Computing the spectrum is now straightforward. Remembering that the flux is linked to the intensity by: \begin{equation} \D F_{\nu_{\mathrm{obs}}} = I_{\nu_{\mathrm{obs}}}\,\cos\theta\,\D \Omega, \end{equation} where $\Omega$ is the solid angle under which the emitting element is seen, and $\theta$ is the angle between the normal to the observer's screen and the direction of incidence, the flux is given by: \begin{equation} \label{deffluxGyoto} F_{\nu_{\mathrm{obs}}} = \sum_{\mathrm{pixels}} I_{\nu_{\mathrm{obs}},\mathrm{pixel}}\,\cos(\theta_{\mathrm{pixel}})\,\delta\Omega_{\mathrm{pixel}} , \end{equation} where $I_{\nu_{\mathrm{obs}},\mathrm{pixel}}$ is the specific intensity reaching the given pixel, $\theta_{\mathrm{pixel}}$ is the angle between the normal to the screen and the direction of incidence corresponding to this pixel and $\delta\Omega_{\mathrm{pixel}}$ is the element of solid angle introduced above. This quantity $F_{\nu_{\mathrm{obs}}}$ can thus be very simply computed from the cube of specific intensities computed by \texttt{GYOTO}. Examples of spectra computed by \texttt{GYOTO} can be found in, e.g.,~\citet{straub12}. Section~\ref{sect:yorick} contains example code to compute a spectrum directly using the provided Yorick interface. See also \texttt{yorick/check-polish-doughnut.i}, which does just that as part of the routine test suite of \GYOTO. \section{\texttt{GYOTO} in numerical metrics} \label{3+1} A specificity of \texttt{GYOTO} is its ability to ray-trace in non-Kerr metrics, numerically computed in the framework of the 3+1 formalism of general relativity~\citep{gourgoulhon12}, e.g. by means of the open source LORENE library developed by the Numerical Relativity group at Observatoire de Paris/LUTH\footnote{\url{http://www.lorene.obspm.fr/}}. \begin{sloppypar} For the time being, only a simple example of numerical metric is implemented in the public version of \texttt{GYOTO}: the metric of a relativistic rotating star. The file \texttt{doc/examples/example-movingstar-rotstar3\_1.xml} allows to ray-trace a basic \texttt{GYOTO} moving \texttt{Star} in this metric. The file \texttt{resu.d} specified in the \texttt{XML} file is the output of a LORENE computation for the metric of a rotating relativistic star by the LORENE/nrotstar code. \end{sloppypar} The basic functions developed in \texttt{lib/RotStar3\_1.C} are similar to their Kerr counterparts, but here the metric is expressed in terms of the 3+1 quantities (lapse, shift, 3-metric, extrinsic curvature). The equation of geodesics expressed in the 3+1 formalism is given in~\citet{vincent12a} and implemented in \texttt{lib/RotStar3\_1.C}. However, it is possible to choose in the \texttt{XML} file whether the integration will be performed by using this 3+1 equation of geodesics, or by using the most general 4D equation of geodesics~\citep[see][for a comparison of the two methods]{vincent11a}. \section{Local tetrads: setting the Screen orientation} The orientation of the camera (implemented by the class \texttt{Gyoto::Screen} in C++ and gyoto.core.Screen in Python) is determined by a local tetrad of the observer composed of four 4-vectors $(\vec u, \vec e_l, \vec e_u, \vec e_f)$ which form an orthonormal local basis and where: \begin{description} \item[$\vec u$] is the 4-velocity of the observer; \item[$\vec e_l$] points to the left-hand side of the observer; \item[$\vec e_u$] points up; \item[$\vec e_f$] points front, i.e. in the direction where the observer is looking. \end{description} In the following, $(\vec e_t, \vec e_r, \vec e_\theta, \vec e_\varphi)$ is the usual spherical local basis, which can also be defined for Cartesian coordinate systems $(t, x, y, z)$ such as \texttt{KerrKS} as follows: $$ \begin{array}{rcl} r & = & \sqrt{x^2+y^2+z^2} \\ r_p & = & \sqrt{x^2+y^2} \\ \theta & = & \atantwo(r_p, z) \\ \varphi & = & \atantwo(y, x) \\ \vec e_t & = & (1, 0, 0, 0) \\ \vec e_r & = & (0, x/r, y/e, z/r) \\ \vec e_\theta & = & (0, \cos \theta \cos \varphi, \cos \theta \sin\varphi, -\sin \theta)\\ \vec e_\varphi & = & (0, -\sin \varphi, \cos \varphi, 0) \\ \end{array} $$ The Screen interface provides several ways to specify this tetrad with the concept of \texttt{ObserverKind} (XML entity), which can be set using the Screen method \texttt{observerKind()}: \begin{description} \item[\texttt{ObserverAtInfinity}] the default, does no special treatment, which implicitly assumes $(\vec u, \vec e_l, \vec e_u, \vec e_f) = (\vec e_t, -\vec e_\varphi, -\vec e_\theta, -\vec e_r)$. In this case, the Screen orientation can be fine-tuned using the XML entities \texttt{PALN}, \texttt{Dangle1} and \texttt{Dangle2}, corresponding to the methods \texttt{PALN()}, \texttt{dangle1()} and \texttt{dangle2()}. This default is fine for most cases, i.e. when the observer really is far from the the central object (more than a few 10 geometrical units) and at rest. \item[\texttt{ZAMO}] is the natural extension of \texttt{ObserverAtInfinity} in stronger field. $\vec u$ is first computed using the Metric method \texttt{zamoVelocity} which returns $\vec e_t$ projected in the hyperplane orthogonal to $\vec e_\varphi$ and then normalized. This is the velocity of a zero-angular-momentum observer. Then, the base $(\vec u, -\vec e_\theta, -\vec e_r, -\vec e_\varphi)$ is orthonormalized into $(\vec u, \vec e_u, \vec e_f, \vec e_l)$ using the Gram--Schmidt process as implemented in the Metric method \texttt{GramSchmidt}. The order of this orthonormalization matters to get the same tetrad as propsed by Krolik, Hawley \& Hirose (2005, ApJ:622:1008), implemented in \texttt{KerrBL}. \item[\texttt{VelocitySpecified}] applies the same process but using a user-supplied, arbitrary 4-velocity using the XML entity \texttt{FourVel} or the Screen method \texttt{fourVel}. \item[\texttt{FullySpecified}] is the most versatile, since the user provides the four vectors using the XML entities \texttt{FourVel} ($\vec u$), \texttt{ScreenVector1} ($\vec e_l$), \texttt{ScreenVector2} ($\vec e_u$) and \texttt{ScreenVector3} ($\vec e_f$) (the corresponding methods are the same, starting with first letter in lower case). The user is then responsible for providing a direct, orthonormal basis. For constructing this basis, the user can use the helper functions described below. \end{description} In the rest of this section, we will use the Python API to document and demonstrate the use of the various helper methods that can be used to construct a local tetrad. Those lines can be translated to C++ in a trivial manner. Let \texttt{MetricKind} be a Metric kind (e.g. \texttt{KerrBL}, \texttt{KerrKS} or other), \texttt{AstrobjKind} be a kind of Astrobj, and $x0, x1, x2, x3$ be coordinates in this Metric. \begin{code} from gyoto import core import numpy from matplotlib import pyplot as plt metric=core.Metric('KerrBL') # make and initialize a metric scr=core.Screen() # make a Screen scr.metric(metric) scr.resolution(32) scr.fieldOfView(60, 'degree') scr.anglekind('Rectilinear') ao=core.Astrobj('ThinDisk') # make an astrobj, ao.metric(metric) # initialize it ao.set('InnerRadius', 6.) ao.rMax(200) sc=core.Scenery() # make Scenery sc.metric(metric) # assign metric sc.astrobj(ao) # assign astrobj sc.screen(scr) # assign screen x0, x1, x2, x3=0., 15., numpy.pi/4, numpy.pi/4 pos=numpy.asarray([x0, x1, x2, x3]) # this is a 4 position scr.setObserverPos(pos) # set observer position fourvel=numpy.zeros(4) # NumPy array for 4-velocity \end{code} Now we can set the observer kind and ray-trace. The default would be: \begin{code} scr.observerKind('ObserverAtInfinity') results=sc.rayTrace() \end{code} which will not work that close to the central object (15 geometrical units in this example). \begin{code} scr.observerKind('ZAMO') results=sc.rayTrace() \end{code} would always work, though. ZAMO stands for `zero angular momentum observer'. One can display the intensity image: \begin{code} plt.imshow(results['Intensity'], origin='bottom') plt.show() \end{code} To try \texttt{ObserverKind==VelocitySpecified}, we need to get a 4-velocity. Several methods can help with that (see for instance \texttt{help(core.Metric.circularVelocity)}), but to continue with the same example we shall retrieve the velocity of a ZAMO with: \begin{code} metric.zamoVelocity(pos, fourvel) \end{code} Once the velocity vector has been set, one just needs to assign it to the Screen: \begin{code} scr.observerKind('VelocitySpecified') scr.fourVel(fourvel) results=sc.rayTrace() plt.imshow(results['Intensity'], origin='bottom') plt.show() \end{code} \texttt{zamoVelocity} is always defined. It provides a velocity with zero angular momentum. \texttt{KerrBL.zamoVelocity} is an optimised implementation, compatible with the generic one which projects $\vec e_t$ on the hyperplane orthogonal to $\vec e_\varphi$. The same could be implemented in Python like this: \begin{code} ephi = numpy.asarray([0., 0., 0., 1.]) fourvel = numpy.asarray([1., 0., 0., 0.]) if metric.coordKind()==core.GYOTO_COORDKIND_SPHERICAL: ephi = numpy.asarray([0., 0., 0., 1.]) else: phi=numpy.arctan2(pos[2], pos[1]); cp=numpy.cos(phi) sp=numpy.sin(phi) ephi=numpy.asarray([0., -sp, cp, 0.]) metric.projectFourVect(pos, fourvel, ephi) metric.multiplyFourVect(fourvel, 1./abs(metric.norm(pos, fourvel))) \end{code} The snippet above has introduced three methods: \begin{code} metric.multiplyFourVect(fourvel, scalar) \end{code} just multiplies each element of fourvel by \texttt{scalar}. This C++ convenience method does the same as the more Pythonic: \begin{code} fourvel *= scalar \end{code} where \texttt{fourvel} is a NumPy array and \texttt{scalar} a... scalar. Likewise, for adding two vectors, this: \begin{code} metric.addFourVect(fourvel, v) \end{code} is equivalent to this: \begin{code} fourvel += v \end{code} where \texttt{fourvel} and \texttt{v} are two NumPy arrays of 4 elements. \begin{code} metric.norm(pos, fourvel) \end{code} \texttt{norm} returns the norm of a 4-vector: $\left\lVert\vec{v}\right\rVert=\sgn(\vec{v}\cdot\vec{v})\sqrt{\lvert\vec{v}\cdot\vec{v}\rvert}$. It could also be computed as: \begin{code} n2=metric.ScalarProd(pos, fourvel, fourvel) numpy.sign(n2)*numpy.sqrt(abs(n2)) \end{code} where \texttt{ScalarProd} implements the scalar product. \begin{code} metric.projectFourVect(pos, fourvel, ephi) \end{code} projects \texttt{fourvel} on the hyperplane orthogonal to \texttt{ephi} and returns the projected vector in place. The mathematical equivalent would be $$\proj_{\vec v}(\vec u) = \vec u - \sgn(\lVert v\rVert) (\vec u \cdot \frac{\vec v}{\lvert \lVert \vec v \rVert \rvert}) \frac{\vec v}{\lvert \lVert \vec v \rVert \rvert}$$ \texttt{VelocitySpecified} instructs the Screen to build a local tetrad for a camera looking towards the origin. The same can be done with \texttt{FullySpecified} like this: \begin{code} scr.observerKind('FullySpecified') el=numpy.zeros(4) eu=numpy.zeros(4) ef=numpy.zeros(4) metric.observerTetrad(pos, fourvel, el, eu, ef) scr.fourVel(fourvel) scr.screenVector1(el) scr.screenVector2(eu) scr.screenVector3(ef) results=sc.rayTrace() plt.imshow(results['Intensity'], origin='bottom') plt.show() \end{code} If \texttt{fourvel} has been set using \texttt{metric.zamoVelocity(pos, fourvel)}, this actually is equivalent to setting \texttt{ObserverKind} to \texttt{'ZAMO'}. The method \texttt{gyoto.animate.orbiting\_screen\_forward} provides a complete example where the local tetrad is computed in Python, orthonormalized using \texttt{metric.GramSchmidt} and passed to the Screen where the property \texttt{ObserverKind} has been set to \texttt{FullySpecified}. We comment on a simplified version below. The goal of this code is to set the camera such that it looks in the direction where the Screen is moving, so $\vec e_f$ is initialized as the 3-velocity $(0, \dot x^1 / \dot x^0, \dot x^2 / \dot x^0, \dot x^3 / \dot x^0)$. $\vec e_u$ is initialized as $\proj_{e_f}(\vec e_r)$ and normalized. It is therefore a vector pointing away from the central object, orthogonal to $e_f$ and normal (in the 3D Euclidian sense). We set $\vec e_l=\vec e_u \times \vec e_f$ where $\times$ denotes the 3D external (vector) product. Thus, $(\vec e_l, \vec e_u, \vec e_f)$ would form an orthonormal basis of a Euclidian 3D space. We then use the Gram--Schmidt process to orthonormalize the tetrad $(\vec u, \vec e_u, \vec e_f, \vec e_l)$ in the metric sense. Most computations are done in Cartesian 3D coordinates, for the sake of computing the external product easily. \begin{code} pos=numpy.asarray([x0, x1, x2, x3]) # this is a 4 position fourvel=numpy.zeros(4) metric.circularVelocity(pos, fourvel) # pos and fourvel have been initialized previously coord=numpy.concatenate((pos, fourvel)) ef=numpy.zeros(4) # get Cartesian expression of 3-velocity into ef[1:]: metric.cartesianVelocity(coord, ef[1:]) # normalize ef to 1 (in 3D): ef /= numpy.sqrt((ef*ef).sum()) # get Cartesian expression of position in posc # as well as spherical radius in r: if metric.coordKind()==core.GYOTO_COORDKIND_SPHERICAL: t=pos[0] r=pos[1] theta=pos[2] phi=pos[3] st=numpy.sin(theta) ct=numpy.cos(theta) sp=numpy.sin(phi) cp=numpy.cos(phi) posc=[pos[0], r*st*cp, r*st*sp, r*ct] else: posc=pos r=numpy.sqrt(pos[1:]**2).sum() # Now initialize eu as er, but project it orthogonally to ef in 3D # and then normalize it: eu=numpy.concatenate(([0.], posc[1:]/r)) eu -= (ef*eu).sum()*ef eu /= numpy.sqrt((eu*eu).sum()) # Last vector is el, which we construct as the 3D vector product # between eu and ef, computed in Cartesian coordinates: el=numpy.zeros(4) el[1]=eu[2]*ef[3]-eu[3]*ef[2] el[2]=eu[3]*ef[1]-eu[1]*ef[3] el[3]=eu[1]*ef[2]-eu[2]*ef[1] # If the coordinate system is spherical, we need to convert back: if metric.coordKind()==core.GYOTO_COORDKIND_SPHERICAL: er=posc/r ephi=numpy.asarray([0., -sp, cp, 0.]) etheta=numpy.asarray([0., ct*cp, ct*sp, -st]) ef=numpy.asarray([ 0., (er*ef).sum(), (etheta*ef).sum(), (ephi*ef).sum() ]) eu=numpy.asarray([ 0., (er*eu).sum(), (etheta*eu).sum(), (ephi*eu).sum() ]) el=numpy.asarray([ 0., (er*el).sum(), (etheta*el).sum(), (ephi*el).sum() ]) # Our 3 vectors form an orthonormal basis in the Euclidian sense, # but the tetrad still needs to be orthonormalized in the metric # sense: metric.GramSchmidt(pos, fourvel, eu, ef, el); # Then we just need to attach the tetrad to the Screen: scr.observerKind('FullySpecified') scr.setObserverPos(pos) scr.fourVel(fourvel) scr.screenVector1(el) scr.screenVector2(eu) scr.screenVector3(ef) # Perform ray-tracing as usual: results=sc.rayTrace() plt.imshow(results['Intensity'], origin='bottom') plt.show() \end{code} \section{Extending \GYOTO} This section is currently under construction. \GYOTO\ can be extended easily by adding new \Metric, \Astrobj, and \Spectrum\ classes. Such classes can be written in the Python language (Sect.~\ref{sect:python-plug-in}) or in C++, in which case they are made available to Gyoto by cumpiling them into a \GYOTO\ plug-in (Sect.~\ref{sect:plug-in}). The main \GYOTO\ code-base already contain tree plug-ins: \begin{itemize} \item \texttt{stdplug}, which contain all the standard analytical metrics and all the standard astrophysical object; \item \texttt{python}, which allows implementing new \Metric, \Astrobj, and \Spectrum\ classes in the Python 3 language; \item and \texttt{lorene}, which contains the numerical, LORENE-based metrics. \end{itemize} In addition, we maintain our own private plug-in, which contains experimental or yet unpublished \Astrobj\ and \Metric\ classes. When we make a publication based on these classes, we try to move them from our private plug-in to the relevant public plug-in. We kindly request that you follow the same philosophy: whenever you write a new class and make a publication out of it, please publish the code as free software, either on your own servers or by letting us include it in \GYOTO. As soon as you write your own objects (especially if you do so in C++), you will dependent on the stability of the \GYOTO\ application programming interface, which is subject to frequent changes. It will help us to help you maintain your code if you inform us of such development: \texttt{gyoto@sympa.obspm.fr}. In addition, we try to maintain a stable branch in our github repository (\url{http://github.com/gyoto/Gyoto}). Code on this branch should remain API-and ABI-compatible with the latest official release. \subsection{Extending in Python} \label{sect:python-plug-in} The `python' plug-in allows writting derived classes in Python rather than C++. This is the easiest approach and lets you set-up your new objects in just a few lines of code, without the need for setting-up a plug-in, compiling it frequently during your development cycle. However, there is a cost in terms of code execution time. This cost is usually negligible to moderate for classes implementing the \Astrobj\ and \Spectrum\ interfaces, but it is major for classes implementing the \Metric\ interface. This is because the \Metric\ methods are evaluated several times per iteration when integrating geodesics, while the \Astrobj\ and \Spectrum\ methods are evaluated less frequently. Like the rest of Gyoto, the python plug-in supports MPI parallelisation which helps maintaining decent computing time. Mutli-threading is not efficient in this context. To use your Python classes, simply load the Python plug-in, for instance by setting the \texttt{GYOTO\_PLUGINS} environment variable to include the ``python''\footnote{The actual name of the Gyoto plug-in will match that of the Python interpreter used for compiling it. For instance, if Gyoto was configured with \texttt{./configure PYTHON=/usr/bin/python3.4}, the plug-in will be called \texttt{python3.4} instead of \texttt{python}. This allows you to compile several versions of the plug-in, that will run inside each of the Python interpreters.} plug-in (see Sect.~\ref{sect:using-plug-in}). Then tell the plug-in about your module and class. For instance, in an XML file: \begin{code} Python module name for ``my_module.py'': my_module Class defined in ``my_module.py'': my_class Any parameters (foating point) ``my_class'' may need: 2.0 20.0 \end{code} The Python class will need to implement a few methods, with the same name as the C++ method it implements (except the C++ name \texttt{operator()} is translated as \texttt{\_\_call\_\_} in Python). More information can be found in the doxygen-generated documentation for the \href{https://github.com/gyoto/Gyoto/blob/master/plugins/python/include/GyotoPython.h}{\texttt{GyotoPython.h}} file and in the \href{https://github.com/gyoto/Gyoto/tree/master/plugins/python/doc/examples}{\texttt{plugins/python/doc/examples}} sub-directory of the source code distribution. \subsection{Writing a C++ plug-in} \label{sect:plug-in} A plug-in is merely a shared library which contains the object code for your new objects, plus a special initialisation function. It is loaded into memory using \texttt{dlopen()} by the function \texttt{Gyoto::loadPlugin(char const*const name, int nofail)} (note that the upper level function \texttt{Gyoto::requirePlugin(char const*const name, int nofail)} should be used instead whenever applicable), implemented in \texttt{lib/Register.C}. The \texttt{name} argument will be used three times: \begin{itemize} \item the shared library file must be called \texttt{libgyoto-\emph{name}.\$suffix} (\texttt{\$suffix} is usually \texttt{.so} under Linux, \texttt{.dylib} under Mac OS); \item the init function for your plug-in must be called either \texttt{\_\_Gyoto\emph{name}Init} or exactly \texttt{\_\_GyotoPluginInit}; \item each subcontractor registered by the init function (see below) will be tagged with the plug-in name, so it is later possible to search for a registered subcontractor by kind name and plugin name. \end{itemize} The role of the init function is to register subcontractors for your object classes so that they can be found by name. For instance, assuming you want to bundle the Minkowski metric (actually provided in the standard plug-in) in a plugin called \texttt{myplugin}, you would write a C++ file (whose name is not relevant, but assume \texttt{MyPlugin.C}) with this content: \begin{code} #include "GyotoMinkowski.h" using namespace Gyoto; extern "C" void __GyotomypluginInit() { Metric::Register("Minkowski", \&Metric::Subcontractor); } \end{code} Likewise, you could register more metrics, astrophysical objects and spectra. Other examples can be seen in the \texttt{lib/StdPlug.C} and \texttt{lib/LorenePlug.C} files, and in the \texttt{plugins/python/} directory. When building your plug-in, make sure \texttt{MyPlugin.C} ends up compiled with\\ \texttt{lib/Minkowski.C} (in this example) into a single shared library called\\ \texttt{libgyoto-myplugin.so} (assuming you work under Linux), and drop this file somewhere where Gyoto will find it at run-time. Gyoto will try to ldopen the plug-ins from the following locations in order (some variables are defined in \texttt{gyoto.pc}, see below): \begin{itemize} \item wherever the run-time linker looks by default, which typically includes: \begin{itemize} \item any directory listed in the \texttt{\$LD\_LIBRARY\_PATH} environment variable; \item \texttt{/usr/local/lib/}; \item \texttt{/usr/lib/}; \end{itemize} \item \texttt{\$\{localpkglibdir\}/\$\{GYOTO\_SOVERS\}/}; \item \texttt{\$\{localpkglibdir\}/} (typically \texttt{/usr/local/lib/gyoto}); \item \texttt{\$\{GYOTO\_PLUGDIR\}/}, this is the directory where the standard plug-ins shipped with Gyoto are installed (typically \texttt{\$\{pkglibdir\}/\$\{GYOTO\_SOVERS\}/}); \item \texttt{\$\{pkglibdir\}/} (typically \texttt{/usr/local/lib/gyoto} or \texttt{/usr/lib/gyoto}). \end{itemize} Note that \texttt{\$\{localpkglibdir\}} is defined only when it makes sense (i.e. when Gyoto is not itself installed under \texttt{/usr/local}). \GYOTO\ ships a pkg-config file (\texttt{gyoto.pc}) which stores useful build-time information such as the install prefix and the plug-in suffix. This file gets installed in the standard location, by default \texttt{/usr/local/lib/pkgconfig/gyoto.pc}. The Gyoto source code contains several examples of plug-ins. One of them is minimalistic and its only purpose is to illustrate how to build a plug-in, including an autoconf-based build system that parses \texttt{gyoto.pc}. It is a good starting point for writing your own plug-in. See the content of the subdirectory \texttt{plugins/null/}, in particular the \texttt{README} file. \subsection{Adding a new metric (\Metric)} The simplest example for a \Metric\ object is certainly the \texttt{Minkowski} class. Let's go through the header file that defines its interface (expunged from all this useless documentation \texttt{;-)}), we trust the reader to go see the corresponding \texttt{.C} file:\\ Avoid multiple and recursive inclusion of header files: \begin{code} #ifndef __GyotoMinkowski_H_ #define __GyotoMinkowski_H_ \end{code} Minkowski is a metric, include the \Metric\ base class header file: \begin{code} #include \end{code} Declare that our new class goes into the \texttt{Gyoto::Metric} namespace: \begin{code} namespace Gyoto { namespace Metric { class Minkowski; } } \end{code} Declare that Minkowski inherits from the base class: \begin{code} class Gyoto::Metric::Minkowski : public Gyoto::Metric::Generic { \end{code} Each class must be friend with the corresponding \texttt{SmartPointer} class: \begin{code} friend class Gyoto::SmartPointer; \end{code} Minkowski has no private data, else we would put it here: \begin{code} private: \end{code} Every class needs a constructor, which will at least populate the \texttt{kind\_} attribute of the parent class and the kind of coordinate system (Cartesian-like or spherical-like): \begin{code} public: Minkowski(); \end{code} The cloner is important, and easy to implement. It must provide a deep copy of an object instance. It is used in the multi-threading case to make sure two threads don't tip on each-other's toes, and in the Yorick plug-in (Sect.~\ref{sect:yorick}) when you want to make a copy of an object rather than reference the same object: \begin{code} virtual Minkowski* clone() const ; \end{code} Then come the two most important methods, which actually define the mathematical metric: \begin{code} void gmunu(double g[4][4], const double * x) const ; int christoffel(double dst[4][4][4], const double * x) const ; \end{code} The \texttt{setParameter} method is the one that interprets options from the XML file. For each XML entity found in the \Metric\ section in the form\\ \texttt{ParValueString},\\ the method \texttt{Metric::Generic::setParameters()} will call\\ \texttt{setParameter(ParName, ParValueString, unit\_name)}: \begin{code} virtual void setParameter(std::string, std::string, std::string); \end{code} \texttt{setParameter()} should interpret the parameters specific to this class and pass whatever remains to the \texttt{Generic} implementation. \texttt{setParameter()} has a counterpart,\\ \texttt{fillElement()}, which is mostly used by the Yorick plug-in (Sect.~\ref{sect:yorick}) to dump an in-memory object instance to text format (this is what allows \texttt{gyotoy}, Sect.~\ref{sect:gyotoy}, to write its parameters to disk). This method must be compiled only if XML input/output is compiled in: \begin{code} #ifdef GYOTO_USE_XERCES virtual void fillElement(FactoryMessenger *fmp); #endif \end{code} The Minkowski implementation goes on with an alternate implementation of \texttt{gmunu()} and \texttt{christoffel()}. For the purpose of this documentation, we will skip these additional examples and close the header file here: \begin{code} }; #endif \end{code} For more details, see the \GYOTO\ reference manual in \texttt{doc/html/} or at \url{http://gyoto.obspm.fr/}. There are a few other methods that are worthwhile reimplementing, such as \texttt{circularVelocity()}, which allows getting accurate beaming effects for thin disks and tori. Naturally, \texttt{circularVelocity()} can only be implemented if circular orbits physically exist in this metric (else, the Keplerian approximation is readily provided by the generic implementation). Some other low-level methods can be reimplemented, but it is not necessarily a good idea. Once you have implemented the new Metric, just make sure it is compiled into your plug-in and initialised in the initialisation function (Sect.~\ref{sect:plug-in}). For official \GYOTO\ code (that does not depend on LORENE), this is done by adding your \texttt{.C} file to\\ \texttt{libgyoto\_stdplug\_la\_SOURCES} in \texttt{lib/Makefile.am} (and running \texttt{autoreconf} followed by \texttt{configure}), and adding one line in \texttt{\_\_GyotostdplugInit} in \texttt{lib/StdPlug.C}. \subsection{Adding a new spectrum (\Spectrum)} Adding a new spectrum kind is almost the same as adding a metric. \subsection{Adding a new astrophysical target object (\Astrobj)} \label{newastrobj} Adding a new astronomical object kind is almost the same as adding a metric. However, astronomical objects are more complex than metrics (they can have abundant hair). Instead of inheriting directly from the most generic base class, \texttt{Gyoto::Astrobj::Generic}, you will save yourself a lot of effort if you are able to derive from one of the higher level bases: \begin{description} \item[Astrobj::ThinDisk] a geometrically thin disk (e.g. \texttt{PageThorneDisk}, \texttt{PatternDisk}); \item[Astrobj::UniformSphere] a... uniform sphere (e.g. \texttt{Star}, \texttt{FixedStar}); \item[Astrobj::Standard] any object whose boundary can be defined as an iso-surface of some function of the coordinates, such as a sphere or a torus (e.g. \texttt{UniformSphere}, \texttt{Torus}). \end{description} \subsection{Using your new plug-in} \label{sect:using-plug-in} There are several ways to instruct \GYOTO\ to load your plug-in. You can set the environment variable\texttt{GYOTO\_PLUGINS}\footnote{How to do it depends on your shell and is outside the scope of this manual.}, with a command such as \begin{code} export GYOTO_PLUGINS=stdplug,myplugin \end{code} Alternatively, a list of plug-ins can be specified on the command-line when using the \texttt{gyoto} tool: \begin{code} $ gyoto --plugins=stdplug,myplugin ... $ gyoto -pstdplug,myplugin ... \end{code} %$ A plug-in can also be specified in the input XML file for each section: \begin{code} \end{code} Finally, the Yorick interface (Sect.~\ref{sect:yorick}) has a function to explicitly load a \GYOTO\ plug-in at run-time: \begin{code} > gyoto.requirePlugin("myplugin"); \end{code} Once the plug-in is loaded, your new object kinds should be registered (that's the purpose of the init function). To check that your objects are correctly register, you can use the \texttt{-{}-list} (or \texttt{-l}) option of the \texttt{gyoto} tool or the \texttt{gyoto.listRegister()} function of the Yorick interface: \begin{code} $ gyoto --list [input.xml] $ gyoto -l [input.xml] \end{code} %$ You can use then use your classes directly in an XML file, using the name you provided to the \texttt{Register()} function in the init function of the plug-in: \begin{code} \end{code} The Yorick interface can load any object from an XML description, an can also initialise any object from its name: \begin{code} > metric = gyoto.Metric("Minkowski", "myplugin"); \end{code} If your object supports any options using the \texttt{setParameter()} method, these options can also be set from within Yorick: \begin{code} > metric, setparameter="ParName", "ParValueString", unit="unit_string"; \end{code} If your want finer access to your objects from the Yorick interface, you will need to provide a Yorick plug-in around your \GYOTO\ plug-in. Look at the content of the \texttt{yorick/stdplug/} directory. For new official \GYOTO\ objects in the standard plug-in, it is fairly easy to provide an interface directly inside our Yorick plug-in. \subsection{Quality assurance} It is customary to provide a test-suite for every new class in \GYOTO. This normally includes an example file in \texttt{doc/examples}, which is ray-traced in the \texttt{check} target of \texttt{bin/Makefile.am}. Usually, we also provide a new Yorick test file called\\ \texttt{yorick/check-myclass.i} which is called from \texttt{yorick/check.i}. This is a good idea to do so even if you don't intend on using the Yorick plug-in: at least, you can use this interpreted interface to perform unit tests on your code in a more fine-grained manner than a full-featured ray-traced image. \bibliographystyle{kluwer} \bibliography{\GyotoSrcDir/doc/user_guide/GyotoManual} \end{document} %%%Local Variables: %%% mode: latex %%% coding: utf-8 %%% TeX-PDF-mode: t %%% ispell-local-dictionary: "en_GB" %%%End: Gyoto-2.0.2/doc/user_guide/Makefile.in000066400000000000000000000011551455254334400175740ustar00rootroot00000000000000PDFLATEX=@PDFLATEX@ BIBTEX=@BIBTEX@ PDFLATEXCMD = $(PDFLATEX) \ '\nonstopmode \newcommand{\GyotoSrcDir}{@top_srcdir@} \input{@srcdir@/GyotoManual.tex}' vpath %.tex @srcdir@ vpath %.bib @srcdir@ TEXINPUTS=.:@srcdir@:@top_srcdir@/images/: export TEXINPUTS all: GyotoManual.pdf GyotoManual.aux: GyotoManual.tex $(PDFLATEXCMD) GyotoManual.bbl: GyotoManual.aux GyotoManual.bib $(BIBTEX) $< GyotoManual.pdf: GyotoManual.tex GyotoManual.bbl $(PDFLATEXCMD) $(PDFLATEXCMD) clean: -rm GyotoManual.aux GyotoManual.bbl GyotoManual.blg GyotoManual.log -rm GyotoManual.out GyotoManual.pdf GyotoManual.toc .PHONY: clean Gyoto-2.0.2/doc/user_guide/README000066400000000000000000000001451455254334400164050ustar00rootroot00000000000000To build the user guide, you need: - pdflatex; - bibtex; - Harvard kluwer.bst. Simply type make. Gyoto-2.0.2/git-post-merge000077500000000000000000000011071455254334400154150ustar00rootroot00000000000000#!/bin/bash # # Git does not preserve time stamps. This causes problems with files # generated with the autotools ("automake" and "autoconf"), as # generated files may seem older than source files and "make" will try # to regenerate them. # # This script fixes time stamps of these generated files. # # To run this script automatically after every "git merge" or "git # pull" invocation, copy it or link it as .git/hooks/post-merge . touch aclocal.m4 plugins/*/aclocal.m4 configure plugins/*/configure Makefile.in */Makefile.in */*/Makefile.in */*/*/Makefile.in config.h.in exit 0 Gyoto-2.0.2/gyoto.in000066400000000000000000000017361455254334400143250ustar00rootroot00000000000000#!/bin/bash # Copyright 2014 Thibaut Paumard # # This file is part of Gyoto. # # Gyoto 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. # # Gyoto 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 Gyoto. If not, see . # This script is a wrapper around the yorick interpreter meant to run # the gyoto plug-in from the built source tree. It is not supposed to # be installed on the system. abs_top_builddir=@abs_top_builddir@ export PATH="${abs_top_builddir}/bin:${PATH}" gyoto $@ exit 0 Gyoto-2.0.2/include/000077500000000000000000000000001455254334400142505ustar00rootroot00000000000000Gyoto-2.0.2/include/Gyoto.h000066400000000000000000000275741455254334400155410ustar00rootroot00000000000000/* Copyright 2011-2016, 2018-2019 Thibaut Paumard, Frédéric Vincent, Éric Gourgoulhon This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ /** * \file Gyoto.h * \brief All of Gyoto * * Gyoto.h should include all of the other Gyoto C++ header * files. Note that at any given time it may be lacking some new * headers. It is always best to specifically include the headers that * you actually use. * * Beware that some symbols are resolved only in the * plugins (libgyoto-stdplug.so, libgyoto-lorene.so). */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /** * \mainpage Gyoto
General relativitY Orbit Tracer of Observatoire de Paris
* * \ref download_sec | \ref manual_sec | \ref conditions_sec * * Gyoto aims at providing a framework for computing orbits and * ray-traced images in General relativity. It consists of a library * (libgyoto), utility programs, a plug-in for the Yorick programing * language, and an extension for the Python 3 programing * language. Gyoto is known to run under Linux and Mac OS X. Please do * tell us if you manage to run Gyoto under a different OS. It should * compile and run with moderate effort on most UNIX-like systems. * * Gyoto can be expanded with plug-ins providing custom * Gyoto::Metric::Generic, Gyoto::Astrobj::Generic and * Gyoto::Spectrum::Generic classes, which describe respectively * analytical or numerical metrics, astronomical objects, and spectral * shapes for astronomical objects (see \ref * writing_plugins_page). Custom Gyoto::Metric::Generic, * Gyoto::Astrobj::Generic and Gyoto::Spectrum::Generic classes can * also be written in the Python * 3.x interpreted language using the \c python plug-in for Gyoto, see * below. Beware that a Python implementation of a custom class will * run significantly slower than the equivalent C++ implementation, * but sometimes saving on development time is better than saving on * computing time. * * The base distribution includes three plug-ins: the standard plug-in * (\c stdplug), a plug-in for using LORENE-based * numerical metrics (\c lorene) and a plug-in for writing custom * astronomical objects or metrics in the Python 3.x interpreted * language (\c python). * * A graphical user interface for tracing stellar orbits is provided * with the Yorick plug-in (see \ref yorick_plugin_page). * * To visit the code * Picture Gallery: * click here! * * * \image html gyotoy_screenshot.png * * \section download_sec Downloading and installing * * Detailed information on installing Gyoto is available here. The user manual below is also a valuable read. * * \section manual_sec User manual * * The user manual is available here. * * \section conditions_sec Conditions for use * * We request that use of Gyoto in scientific publications be properly * acknowledged. Please cite: * * F. H. Vincent, T. Paumard, E. Gourgoulhon & G. Perrin: * GYOTO: a new general relativistic ray-tracing code, * Classical and Quantum Gravity 28, 225011 (2011) * [published version] * [preprint: arXiv:1109.4769] * * We also request that Gyoto modifications, extensions or plug-ins * leading to a scientific publication be made public as free software * reasonably fast (within one year after publication of the scientific * paper), for instance by contributing it directly to the Gyoto * code base. Contributors will be listed in the relevant source files as * well as in the AUTHORS file in the package. * * Gyoto is Copyright 2011-2016 Thibaut Paumard, * Frédéric Vincent and Odele Straub. * * Gyoto 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. * */ /** \page yorick_plugin_page Gyoto for Yorick \section yoprerec_sec Prerequisites \subsection yo_sec Yorick For direct access to Gyoto, only Yorick (>=2.2) is required. Yorick comes precompiled with many distributions of Linux and is present in the Macports. You can also find source code at https://github.com/dhmunro/yorick For the graphical user interface Gyotoy, you'll need a few additional pieces. First of all, I seriously doubt it will run under MS Windows, but please report any news on that front. \subsection yutils_sec Yutils A collection of utilities for Yorick, distributed as yorick-yutils in many Linux distributions. Actually, only pyk.i is used in Gyotoy (so far), and as of writing, the CVS version is required. Either get yutils > 1.4.0 from e.g. http://www.maumae.net/yorick/packages/src/ or fetch pyk.i from the CVS browser at http://yorick.cvs.sourceforge.net/viewvc/yorick/yorick-yutils/pyk.i?view=markup \subsection pygtk_sec PyGObject The graphical interface gyotoy needs yorick-gy and the Gtk 3 GObject Introspection files. Get yorick-gy from: https://github.com/paumard/yorick-gy Under Mac OS X (using macports), install the gtk3 package. Under a Debian derivative GNU/Linux system, install gir1.2-gtk-3.0. Check yorick/README.gyotoy in the source distribution for more details. \section building_sec Building From the Gyoto source directory (i.e. the directory which contains the yorick/ subdirectory: \code make yorick \endcode You can check the package by running \code make check-yorick \endcode \section installing_sec Installing \code sudo make install-yorick \endcode \section running_sec Running Read gyoto.i and check.i for using Gyoto from within Yorick. The graphical interface, Gyotoy, can be run with \code yorick -i gyotoy.i \endcode or \code gyotoy \endcode */ /** \page writing_plugins_page Writing plug-ins for Gyoto Al the generic Gyoto machinery for computing orbits, reading input files, performing ray-tracing etc. is implemented in libgyoto. On the other hand, all the code specific to a given metric kind or a given astronomical object is available in plug-ins. For instance, the standard plug-in libgyoto-stdplug contains the two flavors of the Kerr metric: Gyoto::KerrBL and Gyoto::KerrKS, as well as basic objects: Gyoto::FixedStar, Gyoto::Star, Gyoto::Torus, Gyoto::ThinInfiniteDiskBL and Gyoto::ThinInfiniteDiskKS. The libgyoto-lorene plug-in contains the code to access numerical metrics (Gyoto::LoreneMetric) as well as an example thereof: Gyoto::RotStar3_1. The two basic spectral shapes Gyoto::Spectrum::PowerLaw and Gyoto::Spectrum::BlackBody are also to be found in the standard plug-in. Gyoto can be used right away to compute stellar orbits in the Kerr metric or to do basic ray-tracing of accretion disks. But Gyoto is not limited to the basic metrics and objects we have thought of. It is fairly easy to add custom metrics and objects (and emission/absorption laws) it Gyoto, and Gyoto itself does not need to be modified or even re-compiled to do so: custom classes can (and should) be implemented as plug-ins. For an example, simply look at the lib/StdPlug.C file in the source distribution, and the source files for the objects and metrics it provides: e.g. lib/FixedStar.C and lib/KerrBL.C. To implement a new plug-in, you first need to implement a derived class of either the Gyoto::Astrobj, Gyoto::Metric, or Gyoto::Spectrum::Generic class. You don't necessarily need to implement everything, the Gyoto::Astrobj page explains what is required for an astronomical object. Assuming you want to be able to actually use your custom class, you need a way to instantiate it. This is normally the job of the Gyoto::Factory. You need to instruct the Gyoto::Factory how to read parameters for your specific class from an XML file by implementing a subcontractor (for a Gyoto::Astrobj, the subcontractor is a static method of the Gyoto::Astrobj::Subcontractor_t type). The subcontractor communicates with the Gyoto::Factory by means of a Gyoto::FactoryMessenger and basically loops calling the Gyoto::FactoryMessenger::getNextParameter() method (see the GyotoRegister.h file, unfortunately undocumented at the moment). You also need to register your subcontractor, so that the Gyoto::Factory knows it must call it when it encounters a tag of the form <Astrobj kind="YourKind"> in an XML description. This is typically done by providing an static Init method in your class: \code void Gyoto::FixedStar::Init() { Gyoto::Astrobj::Register("FixedStar", &Gyoto::FixedStar::Subcontractor); } \endcode You need to make sure this Init() method is called when your plug-in is loaded. Assume you decide to call your plug-in MyPlug, and it contains a single Gyoto::Astrobj named Gyoto::MyObj. You will compile it under the file name libgyoto-MyPlug.so (under Linux) or libgyoto-MyPlug.dylib (under MacOS X). Just put this file somewhere where the dynamic linker can find it (any directory listed in $LD_LIBRARY_PATH or $DYLD_LIBRARY_PATH will be fine; /usr/local/lib/ should also be fine). In addition to the implementation of the Gyoto::MyObj class, you will need to provide a function called __GyotoMyPlugInit() which will be exactly this: \code extern "C" void __GyotostdplugInit() { Gyoto::MyObj::Init(); } \endcode This function is typically provided in a separate source file (such as lib/StdPlug.C in the Gyoto source) and can initialize several custom classes at once. Finally, you need to instruct Gyoto to load your plug-in at run time. This is done by adding the name of your plug-in to the GYOTO_PLUGINS environment variable. The default value for GYOTO_PLUGINS is "stdplug,nofail:lorene", meaning Gyoto should load the standard plug-in stdplug and attempt to load the lorene plug-in, failing only if stdplug is nowhere to be found. If you want to load your plug-in in addition to those, alter this variable in your shell (if you don't know what this means or how to do this, ask the local Unix guru or read the fine manual): \code export GYOTO_PLUGINS="stdplug,nofail:lorene,MyPlug" \endcode but if your lug-in is self-contained and your don't need the objects in the standard plug-ins, this will do it for you: \code export GYOTO_PLUGINS="MyPlug" \endcode This will instruct Gyoto to locate and load the file named libgyoto-MyPlug.(so|dylib) and to run the function named __GyotostdplugInit() from this library file. */ Gyoto-2.0.2/include/GyotoAstrobj.h000066400000000000000000001117761455254334400170640ustar00rootroot00000000000000/** * \file GyotoAstrobj.h * \brief Astronomical objects (light emitters) * * The target of ray-traced Gyoto::Photon */ /* Copyright 2011-2020 Thibaut Paumard, Frederic Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoAstrobj_H_ #define __GyotoAstrobj_H_ #include "GyotoConfig.h" #include #include #include #include #include #include #include #include #include namespace Gyoto{ class Photon; namespace Register { class Entry; } namespace Metric { class Generic; } class FactoryMessenger; namespace Astrobj { class Generic; class Properties; /** * This is a more specific version of the * SmartPointee::Subcontractor_t type. An Astrobj::Subcontrator_t * is called by the Gyoto::Factory to build an instance of the * kind of astronomical object specified in an XML file (see * Register()). The Factory and Subcontractor_t function * communicate through a Gyoto::FactoryMessenger. A template is * provided so that you may not have to code anything. */ typedef SmartPointer Subcontractor_t(Gyoto::FactoryMessenger*, std::vector const &); ///< A function to build instances of a specific Astrobj::Generic sub-class /** * Instead of reimplementing the wheel, your subcontractor can simply be * Gyoto::Astrobj::Subcontractor. * * If MyKind accepts any XML parameters, it should re-implement * Astrobj::Generic::setParameter() or, if low-level access to the * FactoryMessenger is needed, Generic::setParameters(). * * \tparam T Gyoto::Astrobj::Generic sub-class */ template SmartPointer Subcontractor (FactoryMessenger* fmp, std::vector const &plugin) { SmartPointer ao = new T(); ao -> plugins(plugin) ; #ifdef GYOTO_USE_XERCES if (fmp) ao -> setParameters(fmp); #endif return ao; } ///< A template for Subcontractor_t functions /// Query the Astrobj register /** * Query the Astrobj register to get the Astrobj::Subcontractor_t * corresponding to a given kind name. This function is normally * called only from the Factory. If plugin is specified, only a * subcontractor matching both name and plugin will be returned, * loading the plug-in if necessary. If plugin is the empty * string, then the first subcontractor matching name will be * returned, and the name of the plug-in it belongs to will be * returned in plugin upon output. * * \param[in] name e.g. "Star" * \param[inout] plugin e.g. "stdplug". * \param[in] errmode 1 to return NULL in case of failure instead of * throwing an Error. * \return pointer to the corresponding subcontractor. */ Gyoto::Astrobj::Subcontractor_t* getSubcontractor(std::string name, std::vector &plugin, int errmode = 0); /** * Use the Astrobj::initRegister() once in your program to * initiliaze it, the Astrobj::Register() function to fill it, and * the Astrobj::getSubcontractor() function to query it. */ extern Gyoto::Register::Entry * Register_; ///< The Astrobj register /** * This must be called once. */ void initRegister(); ///< Empty the Astrobj register /** * Register a new Astrobj::Generic sub-class so that the * Gyoto::Factory knows it. * * \param name The kind name which identifies this object type in * an XML file, as in <Astrobj kind="name"> * * \param scp A pointer to the subcontractor, which will * communicate with the Gyoto::Factory to build an instance of * the class from its XML description */ void Register(std::string name, Gyoto::Astrobj::Subcontractor_t* scp); ///< Make an Astrobj kind known to the Factory } } /** * \namespace Gyoto::Astrobj * \brief Access to astronomical objects * * Objects which are supposed to be the target of the ray-tracing * code should inherit from the Gyoto::Astrobj::Generic class. * * When implementing a new object, you must: * - make sure the object can be loaded from XML by providing a * Subcontractor_t using the Gyoto::Astrobj::Register(std::string * name, Gyoto::Astrobj::Subcontractor_t* scp) function; * - make sure this subcontractor is registerred in the initialization * routine of your plug-in; * - make sure Generic::Impact() works (see below). * * In addition, you should make sure that your object plays nicely in * the Yorick plug-in, which means: * - implement the copy constructor and the Generic::clone() method; * - implement the fillElement method, used for printing and saving to * XML. * * There are basically two ways of making Generic::Impact() work: * either by making the Astrobj a sub-class of the low-level * Gyoto::Astrobj::Generic class ans providing your own * Generic::Impact() function (which, in principle, should rely on * Generic::processHitQuantities()), or by making the Astrobj a * sub-class of the higher-level Gyoto::Astrobj::Standard class and * implementing two lower level, simpler functions which are * used by the Standard::Impact(): * - Standard::operator()() yields a distance or potential defining * the interior of the object; * - Standard::getVelocity() yields the velocity field of the fluid. * * Generic::processHitQuantities() itself is an intermediate-level * function which you may choose to reimplement. It uses three * low-level, easy to implement functions: * - Generic::emission(); * - Generic::integrateEmission(); * - Generic::transmission(). * Default implementations of these three functions exist, they have * little physical relevance but allow quick 0-th order vizualisation * of your object. * * To be usable, a Astrobj::Generic (or Astrobj::Standard) sub-classe * should register an Astrobj::Subcontractor_t function using the * Astrobj::Register() function. See also \ref writing_plugins_page * . If your clas implements setParameter() and/or, if necessary, * setParameters(), registering it is normally done using the provided * template: * \code * Astrobj::Register("MyKind", &(Astrobj::Subcontractor)); * \endcode */ /** * \class Gyoto::Astrobj::Generic * \brief Base class for astronomical object * * See introduction in the Gyoto::Astrobj namespace. */ class Gyoto::Astrobj::Generic : public Gyoto::SmartPointee, public Gyoto::Object { friend class Gyoto::SmartPointer; // Data : // ----- private: /** * \brief Whether some virtual methods are implemented * * The default implementations of some methods call * one-another. This member is used internally to avoid infinite * recursion. */ int __defaultfeatures; protected: /** * \brief The Metric in this end of the Universe */ SmartPointer gg_; /** * Maximum distance from the center of the coordinate system at * which a photon may hit the object. Child classes may compute a * decent value for #rmax_ at any time if #rmax_ is * DBL_MAX. External classes (Photons in particular) must use rMax() * to access this information. * * #rmax_ is in geometrical units. */ double rmax_; ///< Maximum distance to the center of the coordinate system [geometrical units] /** * Maximum step for Photon integation when inside the sphere of * radius #rmax_. * * #deltamaxinsidermax_ is in geometrical units. */ double deltamaxinsidermax_; ///< Maximum Photon integration step inside #rmax_ [geometrical units] bool flag_radtransf_; ///< 1 if radiative transfer inside Astrobj, else 0 int shadow_; ///< 1 to highlight the shadow region in the image int noredshift_; ///< 1 to impose redshift factor g = 1 // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; /** * #kind_ = "Default", #rmax_ = DBL_MAX */ Generic(); ///< Default constructor. /** * #kind_ = "Default", #rmax_ = radmax */ Generic(double radmax); ///< Set rmax in constructor. /** * #kind_ = kind, #rmax_ = DBL_MAX */ Generic(std::string kind); ///< Set kind in constructor. /** * Make a deep copy of an Astrobj::Generic instance */ Generic(const Generic& ) ; ///< Copy constructor. /** * This method must be implemented by the various Astrobj::Generic * subclasses in order to support cloning: * \code * SmartPointer deep_copy = original->clone(); * \endcode * * Cloning is necessary for multi-threading, recommended for * interaction with the Yorick plug-in etc. * * Implementing it is very straightforward, as long as the copy * constructor Generic(const Generic& ) has been implemented: * \code * MyAstrobj* MyAstrobj::clone() const { return new MyAstrobj(*this); } * \endcode */ virtual Generic* clone() const = 0 ; ///< Cloner virtual ~Generic() ; ///< Destructor: does nothing. // Accessors // --------- public: /** * \brief Get the Metric #gg_ */ virtual SmartPointer metric() const; /** * \brief Set the Metric #gg_ */ virtual void metric(SmartPointer) ; /** * Get maximal distance from center of coordinate system at which a * Photon may hit the object. * * Child classes may use the #rmax_ member to cache this value, if * its current value is DBL_MAX. * * It can also be set using rMax(). * * \return rmax_ in geometrical units */ virtual double rMax(); ///< Get maximal distance from center of coordinate system virtual double rMax() const; ///< Get maximal distance from center of coordinate system /** * Call rMax() and convert result to unit. * * \param unit string * \return double rmax converted to unit */ virtual double rMax(std::string const &unit); ///< Get rmax_ is specified unit virtual double rMax(std::string const &unit) const; ///< Get rmax_ is specified unit /// Get max step constraint for adaptive integration /** * \param[in] coord position * \return max step to find this object reliably */ virtual double deltaMax(double coord[8]); /** * Set maximal distance from center of coordinate system at which a * Photon may hit the object. * * \param val new #rmax_ in geometrical units. */ virtual void rMax(double val); ///< Set maximal distance from center of coordinate system /** * Call Generic::rMax(double val) after converting val from unit * to geometrical units. * * \param val #rmax_ expressed in unit "unit"; * \param unit string... */ virtual void rMax(double val, std::string const &unit); ///< Set maximal distance from center of coordinate system GYOTO_OBJECT_ACCESSORS_UNIT(deltaMaxInsideRMax); /** * Set flag indicating that radiative transfer should be integrated, * i.e. the object is to be considered optically thin. * \param flag: 1 if optically thin, 0 if optically thick. */ void opticallyThin(bool flag); ///< Set whether the object is optically thin. /** * See opticallyThin(bool flag). */ bool opticallyThin() const ; ///< Query whether object is optically thin. void showshadow(bool flag); bool showshadow() const ; void redshift(bool flag); bool redshift() const ; /** * Return a Gyoto::Quantity_t suitable as input to * Gyoto::Scenery::setRequestedQuantities() to set de default * quantities to compute for this object. The default of these * defaults GYOTO_QUANTITY_INTENSITY. */ virtual Gyoto::Quantity_t getDefaultQuantities(); ///< Which quantities to compute if know was requested //XML I/O public: #ifdef GYOTO_USE_XERCES /** * \brief Main loop in Subcontractor_t function * * The Subcontractor_t function for each Astrobj kind should look * somewhat like this (templated as * Gyoto::Astrobj::Subcontractor): * \code * SmartPointer * Gyoto::Astrobj::MyKind::Subcontractor(FactoryMessenger* fmp) { * SmartPointer ao = new MyKind(); * ao -> setParameters(fmp); * return ao; * } * \endcode * * Each object kind should implement setParameter(string name, * string content, string unit) to interpret the individual XML * elements. setParameters() can be overloaded in case the specific * Astrobj class needs low level access to the FactoryMessenger. See * UniformSphere::setParameters(). */ virtual void setParameters(FactoryMessenger *fmp); #endif // Outputs // ------- public: /** * Impact() checks whether a Photon impacts the object between two * integration steps of the photon's trajectory (those two steps are * photon->getCoord(index, coord1) and photon->getCoord(index+1, * coord2)). Impact returns 1 if the photon impacts the object * between these two steps, else 0. In many cases of geometrically * thick obects, the implementation Astrobj::Standard::Impact() will * be fine. * * Impact will call Generic::processHitQuantities() (which is * virtual and may be re-implemented) to compute observable * properties on demand: if the data pointer is non-NULL, the object * will look in it for pointers to properties which apply to its * kind. If a pointer to a property known to this object is present, * then the property is computed and store at the pointed-to * address. For instance, all objects know the "intensity" * property. If data->intensity != NULL, the instensity is computed * and stored in *data->intensity. * * If data is non-NULL and only in this case, processHitQuantities() * will also call ph->transmit() to update the transmissions of the * Photon (see Photon::transmit(size_t, double)). This must not be * done if data is NULL (see Astrobj::Complex::Impact() for an * explanation). * * Impact() may not extend the ph Worldline. The only two dates that * are guaranteed to be defined are at indices index and index+1. * * \param ph Gyoto::Photon aimed at the object; * \param index Index of the last photon step; * \param data Pointer to a structure to hold the observables at impact. * * \return 1 if impact, 0 if not. */ virtual int Impact(Gyoto::Photon* ph, size_t index, Astrobj::Properties *data=NULL) = 0 ; ///< Does a photon at these coordinates impact the object? /** * \brief Fills Astrobj::Properties * * processHitQuantities fills the requested data in Impact. To use * it, you need to call it in the Impact() method for your object in * case of hit. It will fill Redshift, Intensity, Spectrum, * BinSpectrum and update the Photon's transmission by calling * Photon::transmit(), only if data==NULL. * * You can overload it for your Astrobj. The generic implementation * calls emission(), integrateEmission() and transmission() below. */ virtual void processHitQuantities(Photon * ph, state_t const &coord_ph_hit, double const * coord_obj_hit, double dt, Astrobj::Properties* data) const; virtual void processHitQuantities(Photon* ph, double* coord_ph_hit, double* coord_obj_hit, double dt, Astrobj::Properties* data) const = delete ; /** * \brief Specific intensity Iν * * Called by the default implementation for processHitQuantities(). * * emission() computes the intensity Iν emitted by the * small volume of length dsem, in the emitter's * frame. It should take self-absorption along dsem into * account. * * Reminder : * - intensity = Iν [J m^-2 s^-1 ster^-1 Hz^-1]; * * - invariant intensity = Iν3, which * has the same value in any frame; * * - emission coefficient = jν [J m^-3 s^-1 ster^-1 * Hz^-1] , defined by dIν = jν*ds, * where ds is the distance travelled by the photon inside the * object; * - invariant emission coef = jν2, * which has the same value in any frame. * * The equation used for radiative transfer (without absorption) is: * * d(Iν3)/dλ = (jν2) [*] * * where λ is the integration parameter along the null geodesic. * * NB: Let us consider a particular observer, with ν being the * frequency measured by this observer, and ds being the proper * distance (as measured by the observer) that the photon travels * as it moves from λ to λ+dλ along its * geodesic. Then it can be shown that: * * dλ = ds/ν * * This shows that Eq. [*] is homogeneous. * * The default implementation returns 1. if optically thick and dsem * if optically thin. It allows for a quick implementation of your * object for visualization purposes. * * \param nu_em Frequency at emission [Hz] * \param dsem length over which to integrate inside the object * [geometrical units] * \param coord_ph Photon coordinate * \param coord_obj Emitter coordinate at current photon position */ virtual double emission(double nu_em, double dsem, state_t const &coord_ph, double const coord_obj[8]=NULL) const ; virtual double emission(double nu_em, double dsem, double coord_ph[8], double coord_obj[8]=NULL) const = delete; ///< Obsolete, update your code; /** * \brief Specific intensity Iν for several values of νem * * Called by the default implementation for processHitQuantities(). * * emission() computes the intensity Iν emitted by the small * volume of length dsem. It should take self-absorption along dsem * into account. * * Same as emission(double nu_em, double dsem, double coord_ph[8], * double coord_obj[8]=NULL) const * looping on several values of nu_em. * * \param Inu[nbnu] Output (must be set to a previously allocated * array of doubles) * \param nu_em[nbnu] Frequencies at emission * \param nbnu Size of Inu[] and nu_em[] * \param dsem Length over which to integrate inside the object * \param coord_ph Photon coordinate * \param coord_obj Emitter coordinate at current photon position * \return Iν or dIν [W m-2 sr-2] */ virtual void emission(double Inu[], double const nu_em[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]=NULL) const ; virtual void emission(double Inu[], double nu_em[], size_t nbnu, double dsem, double coord_ph[8], double coord_obj[8]=NULL) const = delete ; ///< Obsolete, update your code /** * \brief emission and transmission together */ virtual void radiativeQ(double Inu[], double Taunu[], double const nu_em[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]=NULL) const ; virtual void radiativeQ(double Inu[], double Taunu[], double nu_em[], size_t nbnu, double dsem, double coord_ph[8], double coord_obj[8]=NULL) const = delete ; /** * \brief Compute the increment of Stokes parameters and transmission matrix. Polarised version of RadiaveQ * * First function to be called for radiative quantities. * If exist, i.e. implemented in an Astrobj, return the Stokes parameters emitted by the small * volume of length dsem. * * Warning : * - The basis used to determine the Stokes coefficients is different from the observer parallel transported polarisation basis. * One should use getChi function to compute the angle between these two basis. * * - The non polarized case must also be implemented in this function to avoid error. * * See example in SimplePolarStar.C. * * * \param Inu[nbnu] Output increment of intensity (must be set to a previously allocated * array of doubles) * \param Qnu[nbnu] Output increment of Stokes parameter Q (must be set to a previously allocated * array of doubles) * \param Unu[nbnu] Output increment of Stokes parameter U (must be set to a previously allocated * array of doubles) * \param Vnu[nbnu] Output increment of Stokes parameter V (must be set to a previously allocated * array of doubles) * \param Onu[nbnu] Output transmission (Eigen) matrix (must be set to a previously allocated * array of Matrix4d) * \param nu_em[nbnu] Frequencies at emission * \param nbnu Size of nu_em[], Inu[], Qnu[], Unu[], Vnu[], and Onu[] * \param dsem Length over which to integrate inside the object * \param cph Photon coordinate * \param co Emitter coordinate at current photon position * \return Increment of the Stokes parameters (I,Q,U,V) and local Transmission matrix (O). */ virtual void radiativeQ(double *Inu, double *Qnu, double *Unu, double *Vnu, Eigen::Matrix4d *Onu, double const *nuem , size_t nbnu, double dsem, state_t const &cph, double const *co) const ; /** * Compute the integral of emission() from ν1 to * ν2. The default implementation is a numerical * integrator which works well enough and is reasonably fast if * emission() is a smooth function (i.e. no emission or absorption * lines). If possible, it is wise to implement an analytical * solution. It is used by processHitQuantities to compute the * "BinSpectrum" quantity which is the most physical: it is the only * quantity that can be actually measured directly by a real-life * instrument. */ virtual double integrateEmission(double nu1, double nu2, double dsem, state_t const &c_ph, double const c_obj[8]=NULL) const; ///< ∫ν1ν2 Iν dν (or jν) virtual double integrateEmission(double nu1, double nu2, double dsem, double c_ph[8], double c_obj[8]=NULL) const=delete; ///< Obsolete, update your code /** * Like double integrateEmission(double nu1, double nu2, double * dsem, double c_ph[8], double c_obj[8]) const for each * Spectrometer channel. */ virtual void integrateEmission(double * I, double const * boundaries, size_t const * chaninds, size_t nbnu, double dsem, state_t const &cph, double const *co) const; ///< ∫ν1ν2 Iν dν (or jν) virtual void integrateEmission(double * I, double const * boundaries, size_t const * chaninds, size_t nbnu, double dsem, double *cph, double *co) const = delete; ///< Obsolete, update your code /** * transmission() computes the transmission of this fluid element or * 0 if optically thick. The default implementation returns 1. (no * attenuation) if optically thin, 0. if optically thick. * * \param nuem frequency in the fluid's frame * \param coord Photon coordinate * \param dsem geometrical length in geometrical units */ virtual double transmission(double nuem, double dsem, state_t const &coord_ph, double const coord_obj[8]) const ; ///< Transmission: exp( αν * dsem ) virtual double transmission(double nuem, double dsem, state_t const &coord) const = delete; ///< Obsolete, update your code virtual double transmission(double nuem, double dsem, double coord[8]) const = delete; ///< Obsolete, update your code /** * Omatrix() computes the exponential of the Mueller matrix * which contains the absorption and Faraday coefficients * and is used in the polarized radiative transfer equation. * * \param Onu output matrix (must be allocated previously) * \param alphanu[4] array containing the 4 absorption coefficients in the Stokes basis (I,Q,U,V) * \param rnu[3] array containing the 3 Faraday coefficients in the Stokes basis (Q,U,V) * \param Chi angle of rotation between the parallel transported observer polarization basis and the Stokes basis * \param dsem geometrical length in geometrical units */ Eigen::Matrix4d Omatrix(double alphanu[4], double rnu[3], double Chi, double dsem) const; Eigen::Matrix4d Omatrix(double alphaInu, double alphaQnu, double alphaUnu, double alphaVnu, double rQnu, double rUnu, double rVnu, double Chi, double dsem) const; Eigen::Matrix4d Omatrix(double alphanu[4], double rnu[3], double sin2Chi, double cos2Chi, double dsem) const; Eigen::Matrix4d Omatrix(double alphaInu, double alphaQnu, double alphaUnu, double alphaVnu, double rQnu, double rUnu, double rVnu, double sin2Chi, double cos2Chi, double dsem) const; Eigen::Matrix4d Pmatrix(double alphaInu, double alphaQnu, double alphaUnu, double alphaVnu, double rQnu, double rUnu, double rVnu, double sin2Chi, double cos2Chi, double dsem) const; /** * Apply the rotation matrix with angle Chi to the emission Stokes vector * constructed in the fonction from the individual coefficients */ Eigen::Vector4d rotateJs(double jInu, double jQnu, double jUnu, double jVnu, double sin2Chi, double cos2Chi) const; Eigen::Vector4d rotateJs(double jInu, double jQnu, double jUnu, double jVnu, double Chi) const; /** * Get Chi angle. * Return the angle between the parallel transported observer polarization basis (Ephi,Etheta) * and the Stokes basis in the rest frame of the emitter defined by the 4-vector magnetic/electric field. * * \param fourvect 4-vector magnetic/electric field depending on elec (false/true) * \param cph Photon coordinate, must contain the Ephi and Etheta vectors i.e. size(cph)==16 * \param vel Fluid velocity at the photon coordinate */ double getChi(double const fourvect[4], state_t const &cph, double const vel[4], bool elec=false) const; /** * Get the cosinus and sinus of 2*Chi angle. * Chi being the angle between the parallel transported observer polarization basis (Ephi,Etheta) * and the Stokes basis in the rest frame of the emitter defined by the 4-vector magnetic/electric field. * * \param fourvect 4-vector magnetic/electric field depending on elec (false/true) * \param cph Photon coordinate, must contain the Ephi and Etheta vectors i.e. size(cph)==16 * \param vel Fluid velocity at the photon coordinate */ void getSinCos2Chi(double const fourvect[4], state_t const &cph, double const vel[4], double* sin2Chi, double* cos2Chi, bool elec=false) const; /** * Compute the magnetic field 4-vector at a given position and a given configuration * * \param B4vect the output 4-vector magnetic field * \param magneticConfig string which determine the wanted configuration ('Radial', 'Azimuthal', 'Vertical') * \param co coordinate of the object which also contain its velocity * \param cph coordinate of the photon */ void computeB4vect(double B4vect[4], std::string const magneticConfig, double const co[8], state_t const &cph) const; void computeB4vect_ipole(double B4vect[4], std::string const magneticConfig, double const co[8], state_t const &cph, double spin) const; /** * N-dimensional linear interpolation function * * \param N number of dimensions * \param array array that should be interpolated. This array has to be a 1D array with the first dimension evolving the slowest * \param Xq query position at which the interpolation should be done. 1D array with N elements. * \param X 2D array containing the range of all the axes (for example : radius, \theta, \varphi) at which the array is knwon. Should be built as a pointer of pointers. * \param X_params 1D array that contain the length of each axes. * \param cond_limits 1D array of strings that set the boundary conditions that will be applied to each axes */ double interpolate(int const N, double* const array, double* const Xq, double** const X, int* const X_params, std::string const *cond_limits) const; /** * N-dimensional linear interpolation function * * \param N number of dimensions * \param array array that should be interpolated. This array has to be a 1D array with the first dimension evolving the slowest * \param Xq query position at which the interpolation should be done. 1D array with N elements. * \param X_params[N][3] 2D array that contain the minimum value, the maximum value and the length of each axes. The axes will be assumed to be linearly spaced. * \param cond_limits 1D array of strings that set the boundary conditions that will be applied to each axes. */ double interpolate(int const N, double* const array, double* const Xq, double** const X_params, std::string const *cond_limits) const; private : /** * Function which returns the 1D linear interpolation. * * \param x the x query position along the linear function [0,1]. * \param y0 the value of the array to be interpolated at the low position. * \param y1 the value of the array to be interpolated at the high position. */ double interp1d(double const x, double const y0, double const y1) const; /** * Function which returns the N- dimension interpolation on an N-dimensional cube * * \param N number of dimensions * \param Xq query position at which the interpolation should be done. 1D array with N elements. * \param X[2**N][N] 2D array that contains for the 2**N points of the N dimensional cube the associated axes values. * \param Y[2**N] 1D array that contain the value of the array to be interpolated at each points of the N-dimensional cube. * \param cond_limit 1D array of strings that set the boundary conditions that will be applied to each axes. */ double interpNd(int const N, double* const Xq, double** const X, double* const Y, std::string const *cond_limit) const; /** * Function that return the closest indice of the query value on an axis. * * \param xq query value on the axis. Could be modified in case of periodic boundary condition. * \param cond_limit boundary conditions that will be applied to the axis. * \param X_params[3] array which contain the minimum value, the maximum value and the length of the axe. * \param X (optional) array which contains the value of the axis points. Usefull for not linearly spaced axis. */ int getIndice(double &xq, std::string const cond_limit, double const X_params[3], double* const X=NULL) const; }; /** * \class Gyoto::Astrobj::Properties * \brief Observable properties of an Astronomical object * * The sort of properties one wants to measure on a ray-traced * Gyoto::Photon which hits a Gyoto::Astrobj. Not all Astrobj are * able to fill all of these properties. * * An instance of Properties essentially contains a bunch of pointers * to memory areas where the observable quantities (see Quantity_t) * should be stored. * * Astrobj::Generic::processHitQuantities() fills the various arrays * upon request. A quantity is ignored if the corresponding pointer * is NULL. * * Scenery::operator()() increments the Properties between each * Photon using Properties::operator++(). * * The main application (gyoto, the yorick plug-in, or your user * application) is responsible for allocating the various arrays, * filling the various members of Properties, and doing whatever * meaninful with the arrays after they have been filled with values * by the ray-tracing code (e.g. saving them to disk or displaying * them). * * Also see Gyoto::Scenery and Gyoto::Quantity_t. */ class Gyoto::Astrobj::Properties : public Gyoto::SmartPointee { friend class Gyoto::SmartPointer; public: double *intensity; ///< GYOTO_QUANTITY_INTENSITY : Intensity double *time; ///< GYOTO_QUANTITY_EMISSIONTIME: EmissionTime /** * Behaves like the square of the closest distance between Photon * and Astrobj (but not exactly that). Initialize it to DBL_MAX from * float.h.; */ double *distance; ///< GYOTO_QUANTITY_MIN_DISTANCE: MinDistance /** * First local minimum in distance from object */ double * first_dmin; ///< GYOTO_QUANTITY_FIRST_DMIN : FirstDmin /** * Properties::first_dmin will be set to the first local minimum and * Properties::first_dmin_found will be set to 1 if a local minimum * in distance is found. Initialize it to 0. */ int first_dmin_found; ///< Whether Properties::first_dmin was found /** * Redshift factor νobsem (necessary * for emission lines computation) */ double *redshift; ///< GYOTO_QUANTITY_REDSHIFT : RedShift /** * Numbere of times the geodesic crosses the equatorial plane */ double *nbcrosseqplane; ///< GYOTO_QUANTITY_NBCROSSEQPLANE : nuùber of equatorial plane crossings /** * Iν (ν) (observed specific intensity) */ double *spectrum; ///< GYOTO_QUANTITY_SPECTRUM : Spectrum double *stokesQ; double *stokesU; double *stokesV; /** * Iν1ν2, the * integral of Iν over each spectral channel * (i.e. what a spectrometer would measure) */ double *binspectrum; ///< GYOTO_QUANTITY_BINSPECTRUM : BinSpectrum /** * Spectra elements are separated by offset doubles in memory. In * other words, the ith spectral element is spectrum[i*offset]. */ ptrdiff_t offset; ///< How to jump from one spectral element to the next /** * Coordinates of the object and photon at impact */ double * impactcoords; ///< GYOTO_QUANTITY_IMPACTCOORDS: ImpactCoords /** * \brief GYOTO_QUANTITY_USER1 : User1 * Astrobj-specific quantity */ double *user1; /** * \brief GYOTO_QUANTITY_USER2 : User2 * Astrobj-specific quantity */ double *user2; /** * \brief GYOTO_QUANTITY_USER3 : User3 * Astrobj-specific quantity */ double *user3; /** * \brief GYOTO_QUANTITY_USER4 : User4 * Astrobj-specific quantity */ double *user4; /** * \brief GYOTO_QUANTITY_USER5 : User5 * Astrobj-specific quantity */ double *user5; # ifdef HAVE_UDUNITS /** * \brief Converter between SI (J.m -2.s-1.sr-1.Hz-1) and requested Intensity unit */ Gyoto::SmartPointer intensity_converter_ ; /** * \brief Converter between SI (J.m -2.s-1.sr-1.Hz-1) and requested Spectrum unit */ Gyoto::SmartPointer spectrum_converter_ ; /** * \brief Converter between SI (J.m -2.s-1.sr-1) and requested BinSpectrum unit */ Gyoto::SmartPointer binspectrum_converter_ ; # endif /// True if buffers are allocated for entire field (npix*npix) bool alloc; public: Properties(); ///< Default constructor (everything is set to NULL); Properties (double*, double*); ///<< Set intensity and time pointers. /** * \brief Initialize observable quantities * * The pointed-to values are initialized as follows (if the * corresponding pointer is not NULL): * * - intensity, firt_dmin_found, redshift, userN: 0 * - time, distance, first_dmin: DBL_MAX * - for spectrum and binspectrum, nbnuobs values separated by offset in memory are initialized to 0 * - for impactcoords, 16 contiguous values are initialized to DBL_MAX */ void init(size_t nbnuobs=0); /** * \brief Increment pointers * * All valid pointers are incremented by 1 (sizeof(double)), excepted * impactcoords which is incremented by 16. */ Properties& operator++(); /** * \brief Increment pointers by offset * * All valid pointers are incremented by offset (sizeof(double)), excepted * impactcoords which is incremented by 16*offset. */ Properties& operator+=(ptrdiff_t offset); operator Gyoto::Quantity_t () const; # ifdef HAVE_UDUNITS void intensityConverter(Gyoto::SmartPointer); ///< Set Properties::intentity_converter_ void intensityConverter(std::string); ///< Set Properties::intentity_converter_ void spectrumConverter(Gyoto::SmartPointer); ///< Set Properties::spectrum_converter_ void spectrumConverter(std::string); ///< Set Properties::spectrum_converter_ void binSpectrumConverter(Gyoto::SmartPointer); ///< Set Properties::binspectrum_converter_ void binSpectrumConverter(std::string); ///< Set Properties::binspectrum_converter_ # endif }; #endif Gyoto-2.0.2/include/GyotoBlackBodySpectrum.h000066400000000000000000000044641455254334400210300ustar00rootroot00000000000000/** * \file GyotoBlackBodySpectrum.h * \brief I_nu(nu, T) = cst_*2*h*nu^3/c^2/(exp(h*nu/k*T)-1.); * * h = 6.62606896e-34 J.s; J.s = kg.m^2/s * * k = 1.3806504e-23 J.K-1; h/k : s*K = K/Hz. * */ /* Copyright 2011 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoBlackBodySpectrum_H_ #define __GyotoBlackBodySpectrum_H_ #include "GyotoSpectrum.h" namespace Gyoto { namespace Spectrum { class BlackBody; } } /** * \class Gyoto::Spectrum::BlackBody * \brief Black Body * * Light emitted by e.g. a Star. * * Example XML entity: * \code * * 6000 * 1. * * \endcode * */ class Gyoto::Spectrum::BlackBody : public Gyoto::Spectrum::Generic { friend class Gyoto::SmartPointer; protected: double T_; ///< Temperature (K) double cst_; ///< Scaling constant double Tm1_; ///< 1./T_; double colorcor_; ///< Color-correction factor, see def in Suleimanov et al., A&A 527 A139 (2011), Eq. 23 double colorcorm4_; ///< colorcor_ to power -4. public: GYOTO_OBJECT; BlackBody(); /** * \brief Constructor setting T_ and cst_ */ BlackBody(double T, double scaling=1.); virtual BlackBody * clone() const; ///< Cloner double temperature() const; ///< Get constant void temperature(double); ///< Set constant double scaling() const; ///< Get exponent void scaling(double); ///< Set exponent double colorCorrection() const; ///< Get color correction void colorCorrection(double); ///< Set color correction using Gyoto::Spectrum::Generic::operator(); virtual double operator()(double nu) const; }; #endif Gyoto-2.0.2/include/GyotoBlob.h000066400000000000000000000107031455254334400163220ustar00rootroot00000000000000/** * \file GyotoBlob.h * \brief Blob of plasma following a Star orbit, emitting synchrotron, * with Gaussian time-evolving density and temperature * */ /* Copyright 2019 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoBlob_H_ #define __GyotoBlob_H_ namespace Gyoto{ namespace Astrobj { class Blob; } } #include #include #include #include #include #ifdef GYOTO_USE_XERCES #include #endif #include /** * \class Gyoto::Astrobj::Blob * \brief Blob of plasma following a Star orbit, emitting synchrotron, * with Gaussian time-evolving density and temperature * */ class Gyoto::Astrobj::Blob : public Gyoto::Astrobj::Star { friend class Gyoto::SmartPointer; // Data : // ----- private: double numberDensity_cgs_; ///< cgs-unit number density of hotspot double temperature_; ///< temperature of hotspot double timeRef_M_; ///< M-unit reference time for Gaussian hotspot evolution double timeSigma_M_; ///< M-unit temporal sigma for Gaussian hotspot evolution double magnetizationParameter_; ///< magnetization parameter double kappaIndex_; ///< hotspot synchrotron kappa-distribution index SmartPointer spectrumKappaSynch_; // kappa-distribution synchrotron spectrum SmartPointer spectrumPLSynch_; // PL-distribution synchrotron spectrum SmartPointer spectrumThermalSynch_; // Thermal distribution synchrotron spectrum std::string magneticConfig_; // Magnetic field geometry (toroidal, vertical) std::string electronDistrib_; // Electron distribution (thermal, kappa) // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; // This object has a (non-inherited) Property list /** * Create Blob object with undefined initial conditions. One needs to * set the coordinate system, the metric, and the initial position * and velocity before integrating the orbit. setInititialCondition() * can be used for that. */ Blob(); ///< Default constructor Blob(const Blob& orig); ///< Copy constructor virtual Blob * clone() const ; virtual ~Blob() ; ///< Destructor public: void electronDistribution(const std::string &kind); std::string electronDistribution() const; virtual std::string className() const ; ///< "Blob" virtual std::string className_l() const ; ///< "inflate_star" public: double numberDensity() const; double numberDensity(std::string const &unit) const; void numberDensity(double ne); void numberDensity(double dens, std::string const &unit); double temperature() const; void temperature(double tt); double timeRef() const; double timeRef(std::string const &unit) const; void timeRef(double tt); void timeRef(double tt, std::string const &unit); double timeSigma() const; double timeSigma(std::string const &unit) const; void timeSigma(double tt); void timeSigma(double tt, std::string const &unit); void magnetizationParameter(double rr); double magnetizationParameter() const; double kappaIndex() const; void kappaIndex(double); void magneticConfiguration(std::string config); std::string magneticConfiguration() const; virtual void radiativeQ(double Inu[], double Taunu[], double const nu_em[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]=NULL) const ; virtual void radiativeQ(double Inu[], double Qnu[], double Unu[], double Vnu[], Eigen::Matrix4d Onu[], double const nu_ems[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]) const; }; #endif Gyoto-2.0.2/include/GyotoChernSimons.h000066400000000000000000000040721455254334400176760ustar00rootroot00000000000000/** * \file GyotoChernSimons.h * \brief Chern-Simons 1st order perturbation to KerrBL metric * */ /* Copyright 2013 Frederic Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoChernSimons_h #define __GyotoChernSimons_h #include namespace Gyoto { namespace Metric { class ChernSimons; }; }; class Gyoto::Metric::ChernSimons : public Gyoto::Metric::KerrBL { friend class Gyoto::SmartPointer; protected: double dzetaCS_; ///< Chern-Simons coupling constant public: GYOTO_OBJECT; ChernSimons(); ChernSimons(const ChernSimons &o); virtual ~ChernSimons(); virtual ChernSimons * clone() const ; void dzetaCS(double d); double dzetaCS() const; // need to reimplement both, else KerrBL version can be called! void gmunu(double ARGOUT_ARRAY2[4][4], double const IN_ARRAY1[4]) const; double gmunu(double const x[4], int mu, int nu) const ; // Wrap the Generic version else the KerrBL can be called double christoffel(const double coord[4], const int alpha, const int mu, const int nu) const; int christoffel(double dst[4][4][4], double const x[4]) const ; void gmunu_up(double ARGOUT_ARRAY2[4][4], double const IN_ARRAY1[4]) const; double gmunu_up(double const x[4], int mu, int nu) const ; int diff(const double y[8], const double cst[5], double res[8]) const ; void circularVelocity(double const pos[4], double vel [4], double dir=1.) const ; }; #endif Gyoto-2.0.2/include/GyotoComplexAstrobj.h000066400000000000000000000125711455254334400204050ustar00rootroot00000000000000/** * \file GyotoComplexAstrobj.h * \brief Combine astronomical objects * * An astrobj made of several astrobjs */ /* Copyright 2011, 2013-2014, 2016 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoComplexAstrobj_H_ #define __GyotoComplexAstrobj_H_ #include namespace Gyoto{ namespace Astrobj { class Complex; } } /** * \class Gyoto::Astrobj::Complex * \brief Complex astronomical object * * A Gyoto::Astrobj::Generic whic contain several * Gyoto::Astrobj::Generic instances. It is essentially a * SmartPointer array, which some methods * around. Indeed, the operator[](size_t i) method is implemented to * retrieve the i-th element. * * In an XML description, the <Astrobj> section must be unique, * its kind is "Complex". Each sub-astrobj then appears as a * <SubAstrobj> subsection: * \code * * * * 2. * 0. 0. 0.037037 * 600. 9. 1.5707999999999999741 0 * * 0 * 0.001 * * * 0 * 0.01 * * * * * \endcode * */ class Gyoto::Astrobj::Complex : public Gyoto::Astrobj::Generic { friend class Gyoto::SmartPointer; // Data : // ----- protected: /** * \brief Number of objects */ size_t cardinal_; /** * \brief Array of Astrobj::Generic */ Gyoto::SmartPointer * elements_; /** * Currently not settable, always equal to GYOTO_DEFAULT_DELTA */ double step_max_; ///< Maximum δ step inside the Astrobj public: GYOTO_OBJECT_THREAD_SAFETY; Complex(); ///< Default constructor. Complex(const Complex& ) ; ///< Copy constructor. virtual Complex* clone() const; ///< "Virtual" copy constructor virtual double deltaMax(double coord[8]); /** * rMax loops over the elementary astrobjs rmax_ and returns the biggest */ virtual double rMax(); /** * Frees every SmartPointer before freed the array itself. */ virtual ~Complex() ; ///< Destructor // Mutators // -------- public: /** * If the Astrobj::Complex itself does not have a metric already * assigned, it takes it from the new element. Else, it sets the * metric in the new element to its own. This ensures that all * elements use the same metric (this heuristic is not entirely * fool-proof, it's safer to set the metric directly in the * Astrobj::Complex). */ void append(Gyoto::SmartPointer element); ///< Add element at the end of the array. void remove(size_t i); ///< Remove i-th element from the array. size_t getCardinal() const; ///< Get the number of elements in the array. using Generic::metric; void metric(SmartPointer gg); ///< Set metric in each element. public: #ifdef GYOTO_USE_XERCES virtual void fillElement(FactoryMessenger *fmp) const ; virtual void setParameters(FactoryMessenger *fmp); #endif // Outputs // ------- public: /** * Astrobj::Complex::Impact(Gyoto::Photon* ph, size_t index, * Astrobj::Properties *data) calls the specific implementation of * Astrobj::Generic::Impact() for each of its * elements twice: the first time, data is set to NULL so that * Astrobj::Complex::Impact() only knows whether each object is hit * by the Photon. If no object is hit, return. If a single object is * hit, call Impact() again only for this object, passing data this * time. If several objects are hit, the Photon's trajectory is * refined so that the step is at most step_max_ and the Impact() * methods for each of the hit objects are called again for each * step, passing data. It is therefore important that the * transmission of the Photon is not touched by Impact() when * data==NULL. * */ virtual int Impact(Gyoto::Photon* ph, size_t index, Astrobj::Properties *data=NULL) ; ///< Call Impact() for each of the elements. /** * This should work as expected: * \code * SmartPointer cplx; * SmartPointer objA; * SmartPointer objB; * cplx -> append(objA); * cplx[0] = objB; * \endcode */ Gyoto::SmartPointer& operator[](size_t i) ; ///< Retrieve i-th element. Gyoto::SmartPointer const&operator[](size_t i) const; ///< Retrieve a const version of the i-th element. }; #endif Gyoto-2.0.2/include/GyotoComplexMetric.h000066400000000000000000000056111455254334400202210ustar00rootroot00000000000000/** * \file GyotoCompexMetric.h * \brief Combine metrics * */ /* Copyright 2020 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoComplexMetric_H_ #define __GyotoComplexMetric_H_ #include #include namespace Gyoto { namespace Metric { class Complex; } } /** * \class Gyoto::Metric::Complex * \brief Combine several metrics * * Adds linearly the contribution of several metrics. All suv-metrics * must use a common coordinate system. * */ class Gyoto::Metric::Complex : public Gyoto::Metric::Generic, Gyoto::WIP { friend class Gyoto::SmartPointer; // Data : // ----- protected: /** * \brief Number of objects */ size_t cardinal_; /** * \brief Array of Astrobj::Generic */ Gyoto::SmartPointer * elements_; public: GYOTO_OBJECT_THREAD_SAFETY; Complex(); ///< Default constructor. Complex(const Complex& ) ; ///< Copy constructor. virtual Complex* clone() const; ///< "Virtual" copy constructor /** * Frees every SmartPointer before freed the array itself. */ virtual ~Complex() ; ///< Destructor void append(Gyoto::SmartPointer element); ///< Add element at the end of the array. void remove(size_t i); ///< Remove i-th element from the array. size_t getCardinal() const; ///< Get the number of elements in the array. #ifdef GYOTO_USE_XERCES virtual void fillElement(FactoryMessenger *fmp) const ; virtual void setParameters(FactoryMessenger *fmp); #endif /** * This should work as expected: * \code * SmartPointer cplx; * SmartPointer objA; * SmartPointer objB; * cplx -> append(objA); * cplx[0] = objB; * \endcode */ Gyoto::SmartPointer& operator[](size_t i) ; ///< Retrieve i-th element. Gyoto::SmartPointer const&operator[](size_t i) const; ///< Retrieve a const version of the i-th element. public: using Generic::gmunu; void gmunu(double ARGOUT_ARRAY2[4][4], const double IN_ARRAY1[4]) const ; void jacobian(double ARGOUT_ARRAY3[4][4][4], const double IN_ARRAY1[4]) const; int isStopCondition(double const coord[8]) const; }; #endif Gyoto-2.0.2/include/GyotoComplexSpectrometer.h000066400000000000000000000120241455254334400214460ustar00rootroot00000000000000/** * \file GyotoComplexSpectrometer.h * \brief Combine spectrometer objects * * A spectrometer made of several spectrometers */ /* Copyright 2013-2014, 2016, 2019 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoComplexSpectrometer_H_ #define __GyotoComplexSpectrometer_H_ #include namespace Gyoto{ namespace Spectrometer { class Complex; } } /** * \class Gyoto::Spectrometer::Complex * \brief Complex spectrometer object * * A Gyoto::Spectrometer::Generic whic contain several * Gyoto::Spectrometer::Generic instances. It is essentially a * SmartPointer array, which some methods * arround. Indeed, the operator[](size_t i) method is implemented to * retrieve the i-th element. * * In an XML description, the <Spectrometer> section is unique, * its kind is "Complex". Each sub-spectrometer then appears as a * <SubSpectrometer> subsection. For instance, to compute 10 * channels ovr the K infrared band plus 10 channels in the high * energy domain: * \code * * * 2.0 2.4 * * * 14 22 * * * \endcode * */ class Gyoto::Spectrometer::Complex : public Gyoto::Spectrometer::Generic, public Gyoto::Hook::Listener { friend class Gyoto::SmartPointer; // Data : // ----- protected: /** * \brief Number of subspectrometers * * Size of elements_. */ size_t cardinal_; /** * \brief Actual array of SmartPointer objects */ Gyoto::SmartPointer * elements_; public: GYOTO_OBJECT_THREAD_SAFETY; Complex(); ///< Default constructor. Complex(const Complex& ) ; ///< Copy constructor. /** * \brief Clone an instance * * Use this to get a deep copy of an instance; * \code * SmartPointer myclone = orig->clone(); * \endcode * * Most implementations will use the copy constructor: * \code * Generic* Uniform::clone() const { return new Uniform(*this); } * \endcode */ virtual Complex* clone() const; /** * Frees every SmartPointer before freed the * array itself. */ virtual ~Complex() ; ///< Destructor // Mutators // -------- public: /** * If the Spectrometer::Complex itself does not have a metric already * assigned, it takes it from the new element. Else, it sets the * metric in the new element to its own. This ensures that all * elements use the same metric (this heuristic is not entirely * fool-proof, it's safer to set the metric directly in the * Spectrometer::Complex). */ void append(Gyoto::SmartPointer element); ///< Add element at the end of the array. void remove(size_t i); ///< Remove i-th element from the array. size_t getCardinal() const; ///< Get the number of elements in the array. virtual void tell(Gyoto::Hook::Teller *msg); public: #ifdef GYOTO_USE_XERCES /** * \brief Fill in the XML entity * * Loops on elements_[i]->fillElement(); */ virtual void fillElement(FactoryMessenger *fmp) const ; /** * \brief Main loop in the (templated) subcontractor * * In the case of Spectrometer::Complex, the setParameter() API is * not sufficient: setParameters() needs access to the * FactoryMessenger to instantiate children for the * SubSpectrometers. */ virtual void setParameters(FactoryMessenger *fmp); #endif // Outputs // ------- public: /** * This should work as expected: \code SmartPointer cplx; SmartPointer objA; SmartPointer objB; cplx -> append(objA); cplx[0] = objB; \endcode */ Gyoto::SmartPointer & operator[](size_t i) ; ///< Retrieve i-th element. Gyoto::SmartPointer const & operator[](size_t i) const; ///< Retrieve a const version of the i-th element. /** * \brief "Complex" * * Use this static member attribute to check whether a Spectrometer * object spectro is of kind Complex: * \code * if (spectro->kind() == Complex::Kind) ... ; * \endcode * */ static kind_t const Kind; protected: }; #endif Gyoto-2.0.2/include/GyotoConfig.h.in000066400000000000000000000221241455254334400172560ustar00rootroot00000000000000/** * \file GyotoConfig.h * \brief Compile-time configuration * * Codes based on Gyoto and Gyoto plug-ins must have access to the * flags used when compiling Gyoto. This files is generated by Gyoto's * configure script and holds influential variables such as * HAVE_SINCOS. * * The values determined by configure when this documentation was * built are documented, replaced by "(undefined)" if the macro was * undefined. */ /* Copyright 2012-2015, 2018 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoConfig_H_ #define __GyotoConfig_H_ /** \def GYOTO_DEBUG_ENABLED \brief Whether debugging information gathering code was enabled. */ #undef GYOTO_DEBUG_ENABLED #ifdef DOXYGEN_RUN # ifndef GYOTO_DEBUG_ENABLED # define GYOTO_DEBUG_ENABLED (undefined) # endif #endif /** \def GYOTO_PLUGIN_SFX \brief Suffix for Gyoto plug-ins. */ #undef GYOTO_PLUGIN_SFX #ifdef DOXYGEN_RUN # ifndef GYOTO_PLUGIN_SFX # define GYOTO_PLUGIN_SFX (undefined) # endif #endif /** \def GYOTO_PREFIX \brief Gyoto prefix. */ #undef GYOTO_PREFIX #ifdef DOXYGEN_RUN # ifndef GYOTO_PREFIX # define GYOTO_PREFIX (undefined) # endif #endif /** \def GYOTO_PKGLIBDIR \brief Gyoto pkglibdir, usually GYOTO_PREFIX/lib/gyoto */ #undef GYOTO_PKGLIBDIR #ifdef DOXYGEN_RUN # ifndef GYOTO_PKGLIBDIR # define GYOTO_PKGLIBDIR (undefined) # endif #endif /** \def GYOTO_SIZE__T_IS_UNSIGNED_LONG \brief Define to 1 if size_t and unsigned long are the same */ #undef GYOTO_SIZE__T_IS_UNSIGNED_LONG #ifdef DOXYGEN_RUN # ifndef GYOTO_SIZE__T_IS_UNSIGNED_LONG # define GYOTO_SIZE__T_IS_UNSIGNED_LONG (undefined) # endif #endif /** \def GYOTO_SOVERS \brief Gyoto ABI version. Updated in stable releases, not during dev. cycle. */ #undef GYOTO_SOVERS #ifdef DOXYGEN_RUN # ifndef GYOTO_SOVERS # define GYOTO_SOVERS (undefined) # endif #endif /** \def GYOTO_USE_AEAE * \brief Whether aeae support is compiled-in. * * One of ARBLIB or AEAE is necessary for Astrobj::Jet. */ #undef GYOTO_USE_AEAE #ifdef DOXYGEN_RUN # ifndef GYOTO_USE_AEAE # define GYOTO_USE_AEAE (undefined) # endif #endif /** \def GYOTO_USE_ARBLIB * \brief Whether arblib support is compiled-in. * * One of ARBLIB or AEAE is necessary for Astrobj::Jet. */ #undef GYOTO_USE_ARBLIB #ifdef DOXYGEN_RUN # ifndef GYOTO_USE_ARBLIB # define GYOTO_USE_ARBLIB (undefined) # endif #endif /** \def GYOTO_USE_CFITSIO * \brief Whether cfitsio support is compiled-in. * * Necessary for FITS file format i/o, used in the Gyoto tool and * optional in Gtyoto::PatternDisk. */ #undef GYOTO_USE_CFITSIO #ifdef DOXYGEN_RUN # ifndef GYOTO_USE_CFITSIO # define GYOTO_USE_CFITSIO (undefined) # endif #endif /** \def GYOTO_USE_UDUNITS * \brief Whether libudunits2 support is compiled in. * * Foundation for the Gyoto::Units framework. Gyoto ought to build * and work without it, but with restricted unit conversion * capabilities. */ #undef GYOTO_USE_UDUNITS #ifdef DOXYGEN_RUN # ifndef GYOTO_USE_UDUNITS # define GYOTO_USE_UDUNITS (undefined) # endif #endif /** \def HAVE_UDUNITS * \brief Whether libudunits2 support is compiled in. * * Foundation for the Gyoto::Units framework. Gyoto ought to build * and work without it, but with restricted unit conversion * capabilities. */ #ifdef GYOTO_USE_UDUNITS # define HAVE_UDUNITS #endif /** \def GYOTO_USE_XERCES \brief Whether Xerces support (XML i/o) is compiled-in. Used only in the Gyoto::Factory but Gyoto build is not often tested without it. */ #undef GYOTO_USE_XERCES #ifdef DOXYGEN_RUN # ifndef GYOTO_USE_XERCES # define GYOTO_USE_XERCES (undefined) # endif #endif /** \def HAVE_DLFCN_H \brief Whether header file was found. */ #undef HAVE_DLFCN_H #ifdef DOXYGEN_RUN # ifndef # define (undefined) # endif #endif /** \def HAVE_INTTYPES_H \brief Whether header file was found. */ #undef HAVE_INTTYPES_H #ifdef DOXYGEN_RUN # ifndef HAVE_INTTYPES_H # define HAVE_INTTYPES_H (undefined) # endif #endif /** \def HAVE_LIBDL \brief Whether the `dl' library (-ldl) was found. Plug-in support. */ #undef HAVE_LIBDL #ifdef DOXYGEN_RUN # ifndef HAVE_LIBDL # define HAVE_LIBDL (undefined) # endif #endif /** \def HAVE_MEMORY_H \brief Whether the header file was found. */ #undef HAVE_MEMORY_H #ifdef DOXYGEN_RUN # ifndef HAVE_MEMORY_H # define HAVE_MEMORY_H (undefined) # endif #endif /** \def HAVE_MPI * \brief Whether MPI support is compiled in. * * Message-passing interface, used in multi-process ray-tracing */ #undef HAVE_MPI #ifdef DOXYGEN_RUN # ifndef HAVE_MPI # define HAVE_MPI (Undefined) # endif #endif /** \def HAVE_PTHREAD * \brief Whether POSIX threads support is compiled-in. * * Multi-threading support, see Gyoto::Scenery::nthreads_. */ #undef HAVE_PTHREAD #ifdef DOXYGEN_RUN # ifndef HAVE_PTHREAD # define HAVE_PTHREAD (undefined) # endif #endif /** \def HAVE_PTHREAD_PRIO_INHERIT \brief Have PTHREAD_PRIO_INHERIT. */ #undef HAVE_PTHREAD_PRIO_INHERIT #ifdef DOXYGEN_RUN # ifndef HAVE_PTHREAD_PRIO_INHERIT # define HAVE_PTHREAD_PRIO_INHERIT (undefined) # endif #endif /** \def HAVE_SINCOS * \brief Whether the `sincos' function is available. * * Else Gyoto provides it as a macro in GyotoDefs.h. */ #undef HAVE_SINCOS #ifdef DOXYGEN_RUN # ifndef HAVE_SINCOS # define HAVE_SINCOS (undefined) # endif #endif /** \def HAVE_STDINT_H \brief Whether the header file was found. */ #undef HAVE_STDINT_H #ifdef DOXYGEN_RUN # ifndef HAVE_STDINT_H # define HAVE_STDINT_H (undefined) # endif #endif /** \def HAVE_STDLIB_H \brief Whether the header file was found. */ #undef HAVE_STDLIB_H #ifdef DOXYGEN_RUN # ifndef HAVE_STDLIB_H # define HAVE_STDLIB_H (undefined) # endif #endif /** \def HAVE_STRINGS_H \brief Whether the header file was found. */ #undef HAVE_STRINGS_H #ifdef DOXYGEN_RUN # ifndef HAVE_STRINGS_H # define HAVE_STRINGS_H (undefined) # endif #endif /** \def HAVE_STRING_H \brief Whether the header file was found. */ #undef HAVE_STRING_H #ifdef DOXYGEN_RUN # ifndef HAVE_STRING_H # define HAVE_STRING_H (undefined) # endif #endif /** \def HAVE_SYS_STAT_H \brief Whether the header file was found. */ #undef HAVE_SYS_STAT_H #ifdef DOXYGEN_RUN # ifndef HAVE_SYS_STAT_H # define HAVE_SYS_STAT_H (undefined) # endif #endif /** \def HAVE_SYS_TYPES_H \brief Whether the header file was found. */ #undef HAVE_SYS_TYPES_H #ifdef DOXYGEN_RUN # ifndef HAVE_SYS_TYPES_H # define HAVE_SYS_TYPES_H (undefined) # endif #endif /** \def HAVE_BOOST_MULTIPRECISION_CPP_DEC_FLOAT_HPP * \brief Whether support for arbitrary precision arithmetics is present * */ #undef HAVE_BOOST_MULTIPRECISION_CPP_DEC_FLOAT_HPP #ifdef DOXYGEN_RUN # ifndef HAVE_BOOST_MULTIPRECISION_CPP_DEC_FLOAT_HPP # define HAVE_BOOST_MULTIPRECISION_CPP_DEC_FLOAT_HPP (undefined) # endif #endif /** \def HAVE_BOOST_ARRAY_HPP * \brief Whether boost::array is available * */ #undef HAVE_BOOST_ARRAY_HPP #ifdef DOXYGEN_RUN # ifndef HAVE_BOOST_ARRAY_HPP # define HAVE_BOOST_ARRAY_HPP (undefined) # endif #endif /** \def GYOTO_HAVE_BOOST_INTEGRATORS * \brief Whether Boost.odeint is present, as well as C++11 * * Advanced integrators from boost/numeric/odeint/. */ #undef GYOTO_HAVE_BOOST_INTEGRATORS #ifdef DOXYGEN_RUN # ifndef GYOTO_HAVE_BOOST_INTEGRATORS # define GYOTO_HAVE_BOOST_INTEGRATORS (undefined) # endif #endif /** \def HAVE_UNISTD_H \brief Whether the header file was found. */ #undef HAVE_UNISTD_H #ifdef DOXYGEN_RUN # ifndef HAVE_UNISTD_H # define HAVE_UNISTD_H (undefined) # endif #endif /** \def HAVE_FENV_H \brief Define to 1 to use fenv.h. */ #undef HAVE_FENV_H #ifdef DOXYGEN_RUN # ifndef HAVE_FENV_H # define HAVE_FENV_H (undefined) # endif #endif /** \def HAVE__BOOL \brief Whether the system has the type `_Bool'. */ #undef HAVE__BOOL #ifdef DOXYGEN_RUN # ifndef HAVE__BOOL # define HAVE__BOOL (undefined) # endif #endif /** \def PTHREAD_CREATE_JOINABLE \brief Define to necessary symbol if this constant uses a non-standard name on your system. */ #undef PTHREAD_CREATE_JOINABLE #ifdef DOXYGEN_RUN # ifndef PTHREAD_CREATE_JOINABLE # define PTHREAD_CREATE_JOINABLE (undefined) # endif #endif /** \def STDC_HEADERS \brief Whether the ANSI C header files were found. */ #undef STDC_HEADERS #ifdef DOXYGEN_RUN # ifndef STDC_HEADERS # define STDC_HEADERS (undefined) # endif #endif /** \def size_t \brief If not defined in . */ #undef size_t #ifdef DOXYGEN_RUN # ifndef size_t # define size_t (undefined) # endif #endif #endif Gyoto-2.0.2/include/GyotoConverters.h000066400000000000000000000407541455254334400176070ustar00rootroot00000000000000/** * \file GyotoConverters.h * \brief GYOTO converters * * As a (recommended) option, Gyoto can use the libudunits2 library * by UCAR/Unidata * (http://www.unidata.ucar.edu/software/udunits/udunits-2/udunits2.html) * to perform conversions to and from various units. Since udunits * parses units, the following are equivalent for instance: * "mJy.sr-1", "mJy/sr", "1e-3Jy/sr". Gyoto considers every string as * UTF-8: either use UTF-8 or stay with ASCII. This means "µ" can be * used for "micro" and powers can be noted as superscripts: m³, * pix². * * In addition to the stock units known by udunits2, Gyoto registers * the following (which may be used in any context): Jansky (symbol * Jy), symbol "pc" for parsec, "sunradius", "sunmass", symbol "as" * for "arcsec". * * Other units are context-sensitive: "geometrical" allows converting * between geometrical units and other legnth units, but only when a * Metric is defined, and may not be used (yet) in compound * units. Likewise, "geometrical_time" can be used as duration unit * whenever a Metric is defined, but not in a compound unit. * * When a Screen is defined, "pix" can be used as an angle unit (you * need to call Screen::mapPixUnit() and Screen::unmapScreenUnit(), * which is done automatically in certain contexts). * * Units can often be specified using the "unit" XML attribute: * \code * * * 4e6 * *
* * * 8 * * * 150 * *
* \endcode * * Units for output quantities are specified after the name of the * quantity, in squared brackets, e.g.: * \code * * Spectrum[erg.s-1.cm-2.sr-1.Hz-1] * * \endcode * or * \code * * Spectrum[mJy/pix²] * * \endcode */ /* Copyright 2011-2016 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoConverters_H_ #define __GyotoConverters_H_ #include #include #ifdef HAVE_UDUNITS #include #endif #include #include namespace Gyoto { namespace Metric { class Generic; } namespace Units { /** * \namespace Gyoto::Units * \brief Units-related classes and functions */ #ifdef HAVE_UDUNITS /** * \class Gyoto::Units::Unit * \brief Wrapper around ut_unit from udunits * * Gyoto::Units::Unit objects usually cast seamlessly to and from * udunits2 ut_unit* and std::string. */ class Unit; /** * \class Gyoto::Units::Converter * \brief Wrapper around ut_converter from udunits * * A Gyoto::Units::Converter object is a functor and can be used * to convert efficiently between the two units specified at * instantiation time: * * \code * Gyoto::Units::Unit from_unit ("erg.s-1.cm-2.sr-1.Hz-1"), * to_unit ("mJy/µas²"); * double data_in[1000], data_out[1000]; * Converter conv(from_unit, to_unit); * for (size_t i=0; i<1000; ++i) data_out[i] = conv(data_in[i]); * \endcode * * Since std::string cast automatically to Gyoto::Units::Unit * object, this is equivalent: * * \code * Converter conv("erg.s-1.cm-2.sr-1.Hz-1", "mJy/µas²"); * for (size_t i=0; i<1000; ++i) data_out[i] = conv(data_in[i]); * \endcode */ class Converter; /** * \brief Retrieve the unit system used in all of Gyoto */ ut_system * getSystem(); #endif /** * \brief Load and initialize all (non-context-sensitive) units * * If udunits is used (preprocessor macro HAVE_UDUNITS), Init() * initializes the ut_system used throughout Gyoto and maps a few * additional units to the unit system. */ void Init(); /** * \brief Convert from arbitrary length unit to meters * * Convert value from unit represented by "unit" to meters. * * If gg is provided (and not NULL), use it to interpret the * string "geometrical" as representing * gg->Gyoto::Metric::Generic::unitLength(). * * ToMeters() will also convert time, frequency and energy units * to meters (as in frequency -> wavelength). * * \param value * (double) the value to convert, expressed according to "unit" * \param unit (std::string) the "unit" from which to convert, * e.g. "km", "sunradius" or "geometrical". More units are * supported if Gyoto was compiled with udunits support. * \param gg (const Gyoto::SmartPointer &, * NULL if not specified) optional metric to interpret * "geometrical". * * \return value, expressed in meters. */ double ToMeters(double value, const std::string &unit, const Gyoto::SmartPointer &gg=NULL); /** * \brief Convert to arbitrary length unit from meters * * Convert value to unit represented by "unit" from meters. * * If gg is provided (and not NULL), use it to interpret the * string "geometrical" as representing * gg->Gyoto::Metric::Generic::unitLength(). * * ToMeters() will also convert to time, frequency and energy * units (as in wavelength -> frequency). * * \param value * (double) the value to convert, expressed in meters. * \param unit (std::string) the "unit" to which to convert, * e.g. "km", "sunradius" or "geometrical". More units are * supported if Gyoto was compiled with udunits support. * \param gg (const Gyoto::SmartPointer &, * NULL if not specified) optional metric to interpret * "geometrical". * * \return value, expressed in "unit". */ double FromMeters(double value, const std::string &unit, const Gyoto::SmartPointer &gg=NULL); /** * \brief Convert from arbitrary time unit to seconds * * Convert value from unit represented by "unit" to seconds. * * If gg is provided (and not NULL), use it to interpret the * string "geometrical_time" as representing * gg->Gyoto::Metric::Generic::unitLength()/GYOTO_C. * * \param value * (double) the value to convert, expressed according to "unit" * \param unit (std::string) the "unit" from which to convert, * e.g. "s", "yr" or "geometrical_time". More units are * supported if Gyoto was compiled with udunits support. * \param gg (const Gyoto::SmartPointer &, * NULL if not specified) optional metric to interpret * "geometrical". * * \return value, expressed in seconds. */ double ToSeconds(double value, const std::string &unit, const Gyoto::SmartPointer &gg=NULL); /** * \brief Convert to arbitrary time unit from seconds * * Convert value to unit represented by "unit" from seconds. * * If gg is provided (and not NULL), use it to interpret the * string "geometrical_time" as representing * gg->Gyoto::Metric::Generic::unitLength()/GYOTO_C. * * \param value * (double) the value to convert, expressed in seconds. * \param unit (std::string) the "unit" to which to convert, * e.g. "s", "yr" or "geometrical_time". More units are * supported if Gyoto was compiled with udunits support. * \param gg (const Gyoto::SmartPointer &, * NULL if not specified) optional metric to interpret * "geometrical". * * \return value, expressed in "unit". */ double FromSeconds(double value, const std::string &unit, const Gyoto::SmartPointer &gg=NULL); /** * \brief Convert from arbitrary mass unit to kilograms * * Convert value from unit represented by "unit" to kilograms. * * \param value * (double) the value to convert, expressed according to "unit" * \param unit (std::string) the "unit" from which to convert, * e.g. "g", "kg" or "sunmass". More units are * supported if Gyoto was compiled with udunits support. * * \return value, expressed in kilograms. */ double ToKilograms(double value, const std::string & unit); /** * \brief Convert to arbitrary mass unit from kilograms * * Convert value from unit represented by "unit" from kilograms. * * \param value * (double) the value to convert, expressed inkilograms. * \param unit (std::string) the "unit" to which to convert, * e.g. "g", "kg" or "sunmass". More units are * supported if Gyoto was compiled with udunits support. * * \return value, expressed in "unit". */ double FromKilograms(double value, const std::string & unit); /** * \brief Convert from arbitrary length unit to geometrical units * * Convert value from unit represented by "unit" to geometrical units. * * \param value * (double) the value to convert, expressed according to "unit". * \param unit (std::string) the "unit" from which to convert, * e.g. "km", "sunradius" or "geometrical". More units are * supported if Gyoto was compiled with udunits support. * \param gg (const Gyoto::SmartPointer &) * metric to interpret "geometrical". * * \return value, expressed in geometrical units. */ double ToGeometrical(double value, const std::string & unit, const Gyoto::SmartPointer & gg); /** * \brief Convert to arbitrary length unit from geometrical units * * Convert value to unit represented by "unit" from geometrical units. * * \param value * (double) the value to convert, expressed in geometrical units. * \param unit (std::string) the "unit" to which to convert, * e.g. "km", "sunradius" or "geometrical". More units are * supported if Gyoto was compiled with udunits support. * \param gg (const Gyoto::SmartPointer &) * metric to interpret "geometrical". * * \return value, expressed in "unit". */ double FromGeometrical(double value, const std::string & unit, const Gyoto::SmartPointer & gg); /** * \brief Convert from arbitrary time unit to geometrical units * * \param value * (double) the value to convert, expressed according to "unit". * \param unit (std::string) the "unit" from which to convert, * e.g. "s", "kyr" or "geometrical_time". More units are * supported if Gyoto was compiled with udunits support. * \param gg (const Gyoto::SmartPointer &) * metric to interpret "geometrical_time". * * \return value, expressed in geometrical (time) units. */ double ToGeometricalTime(double value, const std::string & unit, const Gyoto::SmartPointer & gg); /** * \brief Convert to arbitrary time unit from geometrical units * * \param value * (double) the value to convert, expressed in geometrical units. * \param unit (std::string) the "unit" to which to convert, * e.g. "yr", "s" or "geometrical_time". More units are * supported if Gyoto was compiled with udunits support. * \param gg (const Gyoto::SmartPointer &) * metric to interpret "geometrical_time". * * \return value, expressed in "unit". */ double FromGeometricalTime(double value, const std::string & unit, const Gyoto::SmartPointer &gg); /** * \brief Convert from arbitrary frequency unit to Herz * * ToHerz will also convert from length and energy units (such as * "eV"). * * \param value * (double) the value to convert, expressed according to "unit". * \param unit (std::string) the "unit" from which to convert, * e.g. "MHz", "keV" * * \return value, expressed in "Hz". */ double ToHerz(double value, const std::string &unit); /** * \brief Convert to arbitrary frequency unit from Herz * * FromHerz will also convert to length and energy units (such as * "eV"). * * \param value * (double) the value to convert, expressed according in "Hz". * \param unit (std::string) the "unit" from which to convert, * e.g. "MHz", "keV" * * \return value, expressed in "units". */ double FromHerz(double value, const std::string &unit); # ifdef HAVE_UDUNITS /** * \brief Is it possible to convert between unit1 and unit2? * * e.g. areConvertible("m", "kg") == 0; areConvertible("m", "km")==1. * * Warning: angle units are dimensionless, therefore e.g. * areConvertible("Jy", "Jy/microacsec2")==1. Numerically, "Jy" is * the same as "Jy/sr2". * * \param unit1 (Gyoto::Units::Unit) first unit * \param unit2 (Gyoto::Units::Unit) second unit * * \return bool, True if it is possible to convert between the two * units, 0 otherwise. */ bool areConvertible(const Unit &unit1, const Unit &unit2); # endif } } #ifdef HAVE_UDUNITS class Gyoto::Units::Unit : public Gyoto::SmartPointee { friend class Gyoto::SmartPointer; friend class Gyoto::Units::Converter; private: ut_unit * unit_; ///< the underlying ut_unit (from udunits) std::string kind_; ///< the string used to instantiate this unit public: /** * \brief Build Unit described by string * * Throws a Gyoto::Error if anything goes wrong. * * \param unit string description of the unit, e.g. "mJy/sr2" or "sunmass". */ Unit(const std::string &unit); /** * \brief Build Unit described by C string * * Throws a Gyoto::Error if anything goes wrong. * * \param unit char const * const description of the unit, * e.g. "mJy/sr2" or "sunmass". */ Unit(char const * const unit); /** * \brief Destructor * * Frees unit_. */ ~Unit(); /** * \brief Convert to Unit * * \param val double to convert * \param from_unit Unit from which to convert * * \return value converted to unit_. */ double To (double val, const Unit &from_unit); /** * \brief Convert from Unit * * \param val double to convert * \param to_unit Unit to which to convert * * \return value converted to "to_unit". */ double From (double val, const Unit &to_unit); /** * \brief Cast to string * * \return kind_ */ operator std::string() const ; /** * \brief Cast to ut_unit* * * \return unit_ */ operator ut_unit*() const ; }; class Gyoto::Units::Converter : public Gyoto::SmartPointee { friend class Gyoto::SmartPointer; private: cv_converter * converter_; ///< Underlying ut_converter object from udunits public: Converter(); ///< Construct trivial Converter (Converter()(x)==x) Converter(const Gyoto::Units::Unit& from, const Gyoto::Units::Unit& to); ///< Construct Converter from two Unit ~Converter(); ///< Destruct converter, freeing converter_ void reset(); ///< Reset to trivial Converter (Converter()(x)==x) void reset(const Gyoto::Units::Unit& from, const Gyoto::Units::Unit& to); ///< Reset to converter from "from" to "to" /** * \brief Actually convert data * * The entire Gyoto::Units::Converter class is there just for this * operator, which converts value from unit "from" to unit "to" * where "from" and "to" are the two Units passed to the constructor * Gyoto::Units::Converter::Converter(const Gyoto::Units::Unit& * from, const Gyoto::Units::Unit& to). * * \param value double expressed in Unit from * * \return converted value expressed in Unit to */ double operator()(double value) const ; }; #endif #endif Gyoto-2.0.2/include/GyotoDeformedTorus.h000066400000000000000000000037101455254334400202260ustar00rootroot00000000000000/** * \file GyotoDeformedTorus.h * \brief Slender torus subject to simple time-periodic deformations * * The target of ray-traced Gyoto::Photon */ /* * Copyright (c) 2013, 2018 Frederic Vincent & Thibaut Paumard * * */ #ifndef __DeformedTorus_h #define __DeformedTorus_h #include #include #include namespace Gyoto { namespace Astrobj { class DeformedTorus; }; class FactoryMessenger; namespace Spectrum { class Generic; } }; class Gyoto::Astrobj::DeformedTorus : public Gyoto::Astrobj::Standard { friend class Gyoto::SmartPointer; private: SmartPointer gg_; SmartPointer spectrum_; double c_; unsigned long mode_; double param_beta_; double param_beta_st_; double param_eta_; enum perturb_t {RadialTranslation=1, VerticalTranslation=2, Rotation=3, Expansion=4, RadialShear=5, VerticalShear=6, PureShear=7}; perturb_t perturb_kind_; public: GYOTO_OBJECT; DeformedTorus(); DeformedTorus(const DeformedTorus &o); virtual ~DeformedTorus(); virtual DeformedTorus * clone() const ; // Standard accessors GYOTO_OBJECT_ACCESSORS(SmartPointer, spectrum); GYOTO_OBJECT_ACCESSORS(double, largeRadius); GYOTO_OBJECT_ACCESSORS(double, beta); GYOTO_OBJECT_ACCESSORS(double, betaSt); GYOTO_OBJECT_ACCESSORS(double, eta); GYOTO_OBJECT_ACCESSORS(unsigned long, mode); GYOTO_OBJECT_ACCESSORS_STRING(perturbKind); using Generic::metric; virtual void metric(Gyoto::SmartPointer); virtual double operator()(double const coord[4]) ; ///< Called by Astrobj::Generic::Impact() virtual void getVelocity(double const pos[4], double vel[4]) ; /*virtual int Impact(Gyoto::Photon* ph, size_t index, Astrobj::Properties *data=NULL);*/ double emission(double nuem,double,state_t const &,double const *) const; #endif }; Gyoto-2.0.2/include/GyotoDefs.h000066400000000000000000000537711455254334400163410ustar00rootroot00000000000000/** * \file GyotoDefs.h * \brief Gyoto ubiquitous macros and typedefs */ /* Copyright 2011-2015, 2017-2020 Thibaut Paumard & Frédéric Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoDefs_H_ #define __GyotoDefs_H_ #include "GyotoConfig.h" #include #include /** * \brief Replacement for GNU extension sincos * * If #HAVE_SINCOS is undefined, Gyoto provides a trivial * implementation. * \param[in] t Angle in radian; * \param[out] s Adress where sin(t) should be stored; * \param[out] c Adress where cos(t) should be stored. */ #if !HAVE_SINCOS #define sincos(t, s, c) *s=sin(t); *c=cos(t) #else # ifdef DOXYGEN_RUN # define sincos(t, s, c) (undefined) # endif #endif /* Typedef for various Gyoto data types */ namespace Gyoto { typedef std::vector state_t; //\{ /** * \name Observable quantities * * Individual quantities are represented as a variable of this * type. A combination of quantities is an ored list of Quantity_t, * e.g. * * \code * GYOTO_QUANTITY_INTENSITY | GYOTO_QUANTITY_EMISSIONTIME * \endcode * * To check wheter a given quantity is listed in a Quantity_t * variable quant: * \code * if (quant & GYOTOQUANTITY_EMISSION) ... * \endcode * * List of all possible Quantity_t individual values and the * corresponding string (see Gyoto::Scenery) with corresponding XML * name: */ /// Type for observabke quantities typedef unsigned int Quantity_t; /* Generic */ #define GYOTO_QUANTITY_NONE 0 /// Intensity: Iν at Scenery::freq_obs_. #define GYOTO_QUANTITY_INTENSITY 1<<0 /// EmissionTime: Emission date. #define GYOTO_QUANTITY_EMISSIONTIME 1<<1 /// MinDistance: Behaves like minimal distance between Photon and Astrobj. /** * Not always exactly a distance, though. */ #define GYOTO_QUANTITY_MIN_DISTANCE 1<<2 /// FirstDmin: First Photon-Astrobj distance local minimum while integrating back in time. #define GYOTO_QUANTITY_FIRST_DMIN 1<<3 /// Redshift: νobsem. #define GYOTO_QUANTITY_REDSHIFT 1<<4 /// ImpactCoords: Astrobj and Photon 8-coordinates at emission. /** * A 16-element vector. See Gyoto::Quantity_t. */ #define GYOTO_QUANTITY_IMPACTCOORDS 1<<5 /// Spectrum: Iν at each frequency in Scenery::screen_->getMidpoints(). #define GYOTO_QUANTITY_SPECTRUM 1<<6 /// SpectrumStokesQ #define GYOTO_QUANTITY_SPECTRUM_STOKES_Q 1<<7 /// SpectrumStokesU #define GYOTO_QUANTITY_SPECTRUM_STOKES_U 1<<8 /// SpectrumStokesV #define GYOTO_QUANTITY_SPECTRUM_STOKES_V 1<<9 /// Spectrum: ∫ν1ν2Iν dν in each frequency channel in Scenery::screen_. #define GYOTO_QUANTITY_BINSPECTRUM 1<<10 /// NbCrossEqPlane: number of equatorial plane crossings #define GYOTO_QUANTITY_NBCROSSEQPLANE 1<<11 /* Astrobj-specific */ /// User1: Gyoto::Astrobj specific Gyoto::Quantity_t #define GYOTO_QUANTITY_USER1 1<<31 /// User2: Gyoto::Astrobj specific Gyoto::Quantity_t #define GYOTO_QUANTITY_USER2 1<<30 /// User3: Gyoto::Astrobj specific Gyoto::Quantity_t #define GYOTO_QUANTITY_USER3 1<<29 /// User4: Gyoto::Astrobj specific Gyoto::Quantity_t #define GYOTO_QUANTITY_USER4 1<<28 /// User5: Gyoto::Astrobj specific Gyoto::Quantity_t #define GYOTO_QUANTITY_USER5 1<<27 /// Bitwise or of all spectral quantities #define GYOTO_QUANTITY_SPECTRAL (GYOTO_QUANTITY_SPECTRUM | GYOTO_QUANTITY_SPECTRUM_STOKES_Q | GYOTO_QUANTITY_SPECTRUM_STOKES_U | GYOTO_QUANTITY_SPECTRUM_STOKES_V | GYOTO_QUANTITY_BINSPECTRUM) /// Bitwise or of all the Stokes parameters #define GYOTO_QUANTITY_SPECTRUM_STOKES (GYOTO_QUANTITY_SPECTRUM | GYOTO_QUANTITY_SPECTRUM_STOKES_Q | GYOTO_QUANTITY_SPECTRUM_STOKES_U | GYOTO_QUANTITY_SPECTRUM_STOKES_V) //\} /** * \name Gyoto messages * \brief Controling which messages are shown to the user * * The user should be able to choose which messages are shown to * her. In Gyoto, this is determined by a user-settable verbosity * level (see Gyoto::verbose()) and a user-settable debug mode (see * Goyto::debug()). * * The following macros define various debug and verbosity level and * provide short-cuts to display formatted messages only at a given * verbosity level or in debug mode. */ //\{ /// Type for verbosity levels typedef unsigned int Verbosity_t; /// Default debug mode #define GYOTO_DEFAULT_DEBUG_MODE 0 /// Quiet Gyoto::Verbosity_t /** * Only very few messages may be output to stdout at this level. * * Use #GYOTO_QUIET to display messages at this level. */ #define GYOTO_QUIET_VERBOSITY 1 /// Severe warnings /** * Severe warning messages are output to stderr if * Gyoto::verbose()≥GYOTO_SEVERE_VERBOSITY. * * Use #GYOTO_SEVERE to display messages at this level. */ #define GYOTO_SEVERE_VERBOSITY 3 /// Warnings /** * Warning messages are output to stderr if * Gyoto::verbose()≥GYOTO_WARNING_VERBOSITY. * * Use #GYOTO_WARNING to display messages at this level. */ #define GYOTO_WARNING_VERBOSITY GYOTO_SEVERE_VERBOSITY /// Default verbosity level /** * Normal messages are output to stdout if * Gyoto::verbose()≥GYOTO_DEFAULT_VERBOSITY. * * Use #GYOTO_MSG to display messages at this level. */ #define GYOTO_DEFAULT_VERBOSITY 5 /// Informative messages /** * Informative messages are output to stderr if * Gyoto::verbose()≥GYOTO_INFO_VERBOSITY. * * Use #GYOTO_INFO to display messages at this level. */ #define GYOTO_INFO_VERBOSITY 10 /// Maximum verbosity level /** * In debug mode, all messages are displayed in addition to specific * debug information. * * To display debug messages, check #GYOTO_DEBUG_MODE or use * #GYOTO_DEBUG for instance. */ #define GYOTO_DEBUG_VERBOSITY 3000 /// Display a message to stdout even in quiet mode. /** * Only very few messages may be output to stdout at this * level. This should be reserved to messages shown at most once in * a run. * * \code * GYOTO_QUIET << "Important message displayed once" << std::endl; * \endcode */ #define GYOTO_QUIET if (Gyoto::verbose() >= GYOTO_QUIET_VERBOSITY) std::cout /// Display a severe level message to stderr. /** * \code * GYOTO_SEVERE << "Important warning" << std::endl; * \endcode */ #define GYOTO_SEVERE if(Gyoto::verbose()>=GYOTO_SEVERE_VERBOSITY) std::cerr<<"SEVERE: " /// Display a warning level message to stderr. /** * \code * GYOTO_WARNING << "Warning" << std::endl; * \endcode */ #define GYOTO_WARNING if(Gyoto::verbose()>=GYOTO_SEVERE_VERBOSITY) std::cerr<<"WARNING: " /// Display normal message to stdout. /** * The message will by default be shown to the user. To be reserved * to messages shown at most once per Gyoto::Screen row. * * \code * GYOTO_MSG << "Message" << std::endl; * \endcode */ #define GYOTO_MSG if (Gyoto::verbose() >= GYOTO_DEFAULT_VERBOSITY) std::cout /// Display informative message to stderr. /** * Message will be shown to the user only if Gyoto::verbose() has * been explicitely raised. * * \code * GYOTO_MSG << "Message" << std::endl; * \endcode */ #define GYOTO_INFO if (Gyoto::verbose() >= GYOTO_INFO_VERBOSITY) std::cerr<<"INFO: " /// Unit ignored because libudunits2 was disabled. /** * Use this warning when a conversion has been dropped due to * #HAVE_UDUNITS being undefined. * * \param from From unit. * \param to To unit. */ #define GYOTO_WARNING_UDUNITS(from, to) \ GYOTO_WARNING << "unit ignored (trying to convert from \"" << from \ << "\" to " \ << to \ << "\"), you may have more chance recompiling Gyoto with --with-udunits\n" /// Output expression value in debug mode /** * Output, only in debug mode both code and value that code * yield. For instance: * \code * int a=1, b=2; * GYOTO_DEBUG_EXPR(a+b); * \endcode * will essentially output, only in debug mode: * \code * DEBUG: : a+b=3 * \endcode */ #define GYOTO_DEBUG_EXPR(a) GYOTO_DEBUG << #a << "=" << a << std::endl /// Output expression value unconditionally /** * Output both code and value that code yield. For instance: * \code * int a=1, b=2; * GYOTO_DEBUG_THIS_EXPR(a+b); * \endcode * will essentially output: * \code * DEBUG: : a+b=3 * \endcode */ #define GYOTO_DEBUG_THIS_EXPR(a) GYOTO_DEBUG_THIS << #a << "=" << a << std::endl /// Output array content in debug mode /** * Output, only in debug, name and content of array. * For instance: * \code * int a[]= {1, 2, 3}; * GYOTO_DEBUG_ARRAY(a,3); * \endcode * will essentially output, only in debug mode: * \code * DEBUG: : a=[1,2,3] * \endcode * * \param a Array * \param n Number of elements to show (array must be at least this * size). */ #define GYOTO_DEBUG_ARRAY(a,n) if (GYOTO_DEBUG_MODE) { \ std::cerr << "DEBUG: " << __PRETTY_FUNCTION__ << ": " \ << #a << "=[" << a[0] ; \ for (size_t _gyoto_debug_array_i=1; _gyoto_debug_array_i < n; ++_gyoto_debug_array_i) \ std::cerr << "," << a[_gyoto_debug_array_i] ; \ std::cerr << "]" << std::endl ;} /// Display debug message (unconditionally) /** * Message is prepended with the word "DEBUG:" and the signature of * the function. * * \code * GYOTO_DEBUG << "message" << endl; * \endcode */ #define GYOTO_DEBUG_THIS std::cerr << "DEBUG: " << __PRETTY_FUNCTION__ << ": " /// Display debug message (in debug mode) /** * Message is displayed only if #GYOTO_DEBUG_MODE is true and is * prepended with the word "DEBUG:" and the signature of the * function. * * \code * GYOTO_DEBUG << "message" << endl; * \endcode */ #define GYOTO_DEBUG if (GYOTO_DEBUG_MODE) GYOTO_DEBUG_THIS /// Start debug-only block. /** * Code between GYOTO_IF_DEBUG and #GYOTO_ENDIF_DEBUG is only * executed in debug mode. */ #define GYOTO_IF_DEBUG if (GYOTO_DEBUG_MODE) { /// End debug-only block. /** * Code between #GYOTO_IF_DEBUG and GYOTO_ENDIF_DEBUG is only * executed in debug mode. */ #define GYOTO_ENDIF_DEBUG } /// Whether debug mode is activated (run-time). #define GYOTO_DEBUG_MODE Gyoto::debug() //\} //\{ /** * \name Coordinate system kind * GYOTO_COORDKIND_CARTESIAN or GYOTO_COORDKIND_SPHERICAL * * Every Gyoto::Metric has a coordinate system kind. It can be used * by functions which need to express coordinates always in * spherical or always in Cartesian form, with trivial conversion * between the two. */ /** * \brief Type for coordinate system kinds */ typedef unsigned int CoordKind_t; #define GYOTO_COORDKIND_UNSPECIFIED 0 ///< Unspecified coordinate kind #define GYOTO_COORDKIND_CARTESIAN 1 ///< Cartesian-like coordinate system #define GYOTO_COORDKIND_SPHERICAL 2 ///< Spherical-like coordinate system //\} } //{ /** * \name Default values for various things */ #define GYOTO_DEFAULT_X_SIZE 1024 ///< Default size for arrays in a Worldline /** * \brief Default value for the initial step in the integration loop. * * Since the step is (most of the time) adaptive, this default only * has little influence, but sometimes, it matters. Also used in * Scenery. */ #define GYOTO_DEFAULT_DELTA 0.01 /** * \brief Default value for the maximum step in the integration loop. */ #define GYOTO_DEFAULT_DELTA_MAX DBL_MAX /** * \brief Default value for the minimum step in the integration loop. */ #define GYOTO_DEFAULT_DELTA_MIN DBL_MIN /** * \brief Default value for delta_max_over_r_ * * For investigations close to the event horizon, 0.5 is usually * fine. If high accuracy is needed long after deflection (weak * lensing), then this must be smaller. A good test is to look at a * MinDistance map for a FixedStar: it must be smooth. */ #define GYOTO_DEFAULT_DELTA_MAX_OVER_R 1. #define GYOTO_DEFAULT_ABSTOL 1e-6 #define GYOTO_DEFAULT_RELTOL 1e-6 /** * \brief Default value for Gyoto::Worldline::maxiter_ */ #define GYOTO_DEFAULT_MAXITER 100000 /** * \brief Precision on the determination of a date * * E.g. in Gyoto::Photon::findMin(), Gyoto::Photon::findValue(). */ #define GYOTO_T_TOL 1e-4 //1e-7 //1e-4 #define GYOTO_KERR_HORIZON_SECURITY 0.01 /// \brief Default value for Screen::dmax_ #define GYOTO_SCREEN_DMAX DBL_MAX //For displays with setw and setprecision /// Precision when outputting double values #define GYOTO_PREC 15 /// \brief Field width when outputting double values #define GYOTO_WIDTH 25 /* Plugins Stuff */ /// \brief Default list of default plug-ins to load... #ifndef GYOTO_DEFAULT_PLUGINS #define GYOTO_DEFAULT_PLUGINS "stdplug,nofail:lorene" #endif #ifndef GYOTO_PLUGIN_SFX #define GYOTO_PLUGIN_SFX "so" #endif //\} //\{ /** *\name Physical constants */ /// \brief Celerity of light (m/s) #define GYOTO_C 299792458. /// \brief Celerity of light (cm/s) #define GYOTO_C_CGS 2.99792458e10 /// \brief Celerity of light squared c^2 in cgs #define GYOTO_C2_CGS 8.98755178736817668096e+20 /// \brief Inverse of celerity of light squared in cgs #define GYOTO_C2_CGS_M1 1.1126500560536184087938986e-21 /// \brief Gravitational constant (SI = m^3 * kg^-1 * s-2) #define GYOTO_G 6.67428e-11 /// \brief Gravitational constant (cgs: cm^3 * g^-1 * s-2) #define GYOTO_G_CGS 6.67428e-8 /// \brief G/c^2=6.67428e-11/299792458.^2 #define GYOTO_G_OVER_C_SQUARE 7.4261380161175445989e-28 /// \brief G/c^2 in cgs units #define GYOTO_G_OVER_C_SQUARE_CGS 7.4261380161175445989e-29 /// \brief Planck's constant (h) in SI (J.s=kg.m^2/s) #define GYOTO_PLANCK 6.62606896e-34 /// \brief Planck's constant (h) in c.g.s (g.cm^2/s) #define GYOTO_PLANCK_CGS 6.62606896e-27 /// \brief h/c^2 in SI (kg.s) #define GYOTO_PLANCK_OVER_C_SQUARE 7.3724959997591407964e-51 /// \brief Boltzmann's constant (k) in SI (J/K) #define GYOTO_BOLTZMANN 1.3806504e-23 /// \brief Boltzmann's constant (k) in cgs (erg/K) #define GYOTO_BOLTZMANN_CGS 1.3806504e-16 /// \brief Stefan-Boltzmann's constant (sigma) in cgs (erg/cm2/s/K4) #define GYOTO_STEFANBOLTZMANN_CGS 5.670373e-5 /// \brief h/k (K.s = K/Hz) #define GYOTO_PLANCK_OVER_BOLTZMANN 4.7992373449498869688e-11 /// \brief ideal gas constant R in SI #define GYOTO_GAS_CST 8.3144621 /// \brief ideal gas constant R in erg/(K mol) #define GYOTO_GAS_CST_CGS 8.3144621e7 /// \brief Avogadro constant #define GYOTO_AVOGADRO 6.0221413e23 /// \brief Thomson cross-section in cgs #define GYOTO_THOMSON_CGS 6.6524e-25 /// \brief Fine structure constant (=1/137) #define GYOTO_ALPHA_F 0.00729927 /// \brief proton mass in cgs #define GYOTO_PROTON_MASS_CGS 1.67262158e-24 /// \brief electron mass in cgs #define GYOTO_ELECTRON_MASS_CGS 9.10938188e-28 /// \brief electron classical radius in cgs #define GYOTO_ELECTRON_CLASSICAL_RADIUS_CGS 2.8179e-13 /// \brief elementary charge in cgs (erg^{1/2} cm^{1/2}) #define GYOTO_ELEMENTARY_CHARGE_CGS 4.80320427e-10 /// \brief Euler-Mascheroni constant #define GYOTO_EULER_MASCHERONI 0.577216 /// \brief atomic mass unit in cgs #define GYOTO_ATOMIC_MASS_UNIT_CGS 1.660537781e-24 /// \brief Factor to convert Iν from c.g.s. to SI #define GYOTO_INU_CGS_TO_SI 0.001 /// \brief Factor to convert Jν from c.g.s. to SI #define GYOTO_JNU_CGS_TO_SI (GYOTO_INU_CGS_TO_SI * 100.) /// \brief Factor to convert alphaν from c.g.s. to SI #define GYOTO_ANU_CGS_TO_SI 100. /// \brief Sun mass (kg) #define GYOTO_SUN_MASS 1.98843e30 /// \brief Sun mass (g) #define GYOTO_SUN_MASS_CGS 1.98843e33 /// \brief Sun radius (m) #define GYOTO_SUN_RADIUS 6.955e8 /// \brief Kiloparsec (m) #define GYOTO_KPC 3.08568025e19 /// \brief Astronomical Unit (m) #define GYOTO_ASTRONOMICAL_UNIT 1.49597870700e11 /// \brief Light-year (m) #define GYOTO_LIGHT_YEAR 9.4607304725808e15 /// \brief Convert from radians to degrees #define GYOTO_RADEG 57.2957795130823 /// \brief Convert from degrees to radians #define GYOTO_DEGRAD 0.0174532925199433 /// \brief Convert from arcminutes to radians #define GYOTO_MINRAD 2.908882086657216e-04 /// \brief Convert from arcseconds to radians #define GYOTO_SECRAD 4.848136811095360e-06 /// \brief Convert from milliarcseconds to radians #define GYOTO_MASRAD 4.848136811095360e-09 /// \brief Convert from microarcseconds to radians #define GYOTO_MUASRAD 4.848136811095360e-12 /// \brief Convert from eV to Hz #define GYOTO_eV2Hz 2.417989348e+14 //\} //\{ /** *\name Observer kind */ /// \brief Type for observer kind #define obskind_t unsigned int /// \brief ObserverAtInfinity #define GYOTO_OBSKIND_ATINFINITY 0 /// \brief KeplerianObserver #define GYOTO_OBSKIND_KEPLERIAN 1 /// \brief ZAMO #define GYOTO_OBSKIND_ZAMO 2 /// \brief VelocitySpecified #define GYOTO_OBSKIND_VELOCITYSPECIFIED 3 /// \brief FullySpecified #define GYOTO_OBSKIND_FULLYSPECIFIED 4 //\} /// \brief Stringify macro content #define GYOTO_STRINGIFY(a) GYOTO_STRINGIFY_ARGUMENT(a) /// \brief Stringify argument #define GYOTO_STRINGIFY_ARGUMENT(a) #a #ifndef GYOTO_NO_DEPRECATED #warning Using deprecated method names.\ Define GYOTO_NO_DEPRECATED to disable. //\{ /** *\name Renamed methods * * Define GYOTO_NO_DEPRECATED to disable these macros and the warning. For instance: * \code * make CPPFLAGS=-DGYOTO_NO_DEPRECATED * \endcode */ # define getMetric metric # define setMetric metric # define setScreen screen # define getScreen screen # define getRmax rMax # define setRmax rMax # define getMass mass # define setMass mass # define getCoordKind coordKind # define setCoordKind coordKind # define getKind kind # define setKind kind # define getSpin spin # define setSpin spin # define getIntegKind integKind # define setIntegKind integKind # define getFileName fileName # define setFileName fileName # define getDistance distance # define setDistance distance # define getPALN PALN # define setPALN PALN # define getArgument argument # define setArgument argument # define getInclination inclination # define setInclination inclination # define getAstrobj astrobj # define setAstrobj astrobj # define getSpectrometer spectrometer # define setSpectrometer spectrometer # define getSpectrum spectrum # define setSpectrum spectrum # define getOpacity opacity # define setOpacity opacity # define setDelta delta # define getDelta delta # define setDelta delta # define getDelta delta # define setDangle2 dangle2 # define getDangle2 dangle2 # define setDangle1 dangle1 # define getDangle1 dangle1 # define setAnglekind anglekind # define getTmin tMin # define setTmin tMin # define getTime time # define setTime time # define getFreqObs freqObs # define setFreqObs freqObs # define getFieldOfView fieldOfView # define setFieldOfView fieldOfView # define getRadius radius # define setRadius radius # define getLargeRadius largeRadius # define setLargeRadius largeRadius # define getSmallRadius smallRadius # define setSmallRadius smallRadius # define getCentralDensity centralDensity # define setCentralDensity centralDensity # define getDmax dMax # define setDmax dMax # define getTemperature temperature # define setTemperature temperature # define getScaling scaling # define setScaling scaling # define getPatternVelocity patternVelocity # define setPatternVelocity patternVelocity # define getLambda lambda # define setLambda lambda # define getCentralTempOverVirial centralTempOverVirial # define setCentralTempOverVirial centralTempOverVirial # define getBeta beta # define setBeta beta # define getConstant constant # define setConstant constant # define getExponent exponent # define setExponent exponent # define getFlag_radtransf opticallyThin # define setFlag_radtransf opticallyThin # define getNThreads nThreads # define setNThreads nThreads # define getResolution resolution # define setResolution resolution # define getNSamples nSamples # define setNSamples nSamples # define getSpectralOverSampling spectralOversampling # define setSpectralOverSampling spectralOversampling # define setBinSpectrumConverter binSpectrumConverter # define setSpectrumConverter spectrumConverter # define setIntensityConverter intensityConverter # define getSafetyValue safetyValue; # define setSafetyValue safetyValue; # define setInnerRadius innerRadius; # define getInnerRadius innerRadius; # define setOuterRadius outerRadius; # define getOuterRadius outerRadius; # define setThickness thickness; # define getThickness thickness; # define setDir dir; # define getDir dir; # define setBand band; # define setObserverKind observerKind; # define getObserverKind observerKind; //\} #endif #endif Gyoto-2.0.2/include/GyotoDirectionalDisk.h000066400000000000000000000140151455254334400205140ustar00rootroot00000000000000/** * \file GyotoDirectionalDisk.h * \brief Geometrically thin disk read from FITS file * * This class describes a disk contained in the z=0 (equatorial) * plane. The flux emitted * at radius r, making an angle i with respect to the local normal, * at frequency nu is given in a FITS file. * * This astrobj is typically used to compute reflected spectra * in the lamp post model. * * For the time being the metric is imposed to be KerrBL, but should * easily generalized. * * The target of ray-traced Gyoto::Photon */ /* Copyright 2014-2015, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoDirectionalDisk_H_ #define __GyotoDirectionalDisk_H_ #include #include #include namespace Gyoto{ namespace Astrobj { class DirectionalDisk; } } //#include #include /** * \class Gyoto::Astrobj::DirectionalDisk * \brief Geometrically thin disk read from FITS file * * This class describes a disk contained in the z=0 (equatorial) * plane. The flux emitted * at radius r, making an angle i with respect to the local normal, * at frequency nu is given in a FITS file. * */ class Gyoto::Astrobj::DirectionalDisk : public Astrobj::ThinDisk { friend class Gyoto::SmartPointer; private: std::string filename_; ///< Optional FITS file name containing the arrays /** * An array of dimensionality double[nr_][ni_][nnu_]. In FITS * format, the first dimension is nu, the second cosi (direction cosine), * and the third r. There is no phi dependence. */ double * emission_; ///< Iν(ν, r, cosi;) double * radius_; ///< Radius vector double * cosi_; ///< Direction cosine vector double * freq_; ///< Frequencies vector double lampaltitude_; ///< Lamp altitude (z coordinate) in M units size_t nnu_; ///< Number of frequencies provided in DirectionalDisk::emission_ size_t ni_; ///< Number of direction cosine size_t nr_; ///< Number of radius values double minfreq_computed_; ///< Minimum frequency computed by ATM21 double maxfreq_computed_; ///< Maximum frequency computed by ATM21 double minfreq_lampframe_; ///< Minimum frequency emitted by the lamp double maxfreq_lampframe_; ///< Maximum frequency emitted by the lamp bool average_over_angle_; ///< true to average over emission angle // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; // fillProperty is overridden to remove leading "!" from FITS filename void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const; using Generic::metric; void metric(SmartPointer gg); DirectionalDisk(); ///< Standard constructor DirectionalDisk(const DirectionalDisk& ) ;///< Copy constructor virtual DirectionalDisk* clone () const; ///< Cloner virtual ~DirectionalDisk() ; ///< Destructor // Accessors // --------- public: void file(std::string const &f); std::string file() const ; void averageOverAngle(bool t); bool averageOverAngle()const; void lampaltitude(double zz); double lampaltitude() const ; void lampcutoffsinev(std::vector const &v) ; std::vector lampcutoffsinev() const ; #ifdef GYOTO_USE_CFITSIO /// Read parameters and arrays from FITS file virtual void fitsRead(std::string filename_); /// Write parameters and arrays to FITS file virtual void fitsWrite(std::string filename_); #endif /// Set DirectionalDisk::emission_ /** * The pointer is copied directly, not the array content. * * This is a low-level function. Beware that: * - previously allocated array will not be freed automatically; * - array attached when the destructor is called will be freed. */ void setEmission(double * pattern); void radius(double * pattern); /** * DirectionalDisk::emission_ is freed if not NULL, reallocated, and * pattern is copied into emission_. * * Finally, DirectionalDisk::nnu_, DirectionalDisk::ni_, and * DirectionalDisk::nr_ are set according to naxes. * * \param pattern Array to copy as emission_. May be NULL in which * case emission_ is simply deallocated and set to NULL. * * \param naxes { nnu_, ni_, nr_ }. */ virtual void copyIntensity(double const * const pattern = NULL, size_t const naxes[3] = NULL); virtual double const * getIntensity() const;///< Get DirectionalDisk::emission_ virtual void getIntensityNaxes( size_t naxes[3] ) const ; ///< Get DirectionalDisk::nnu_, DirectionalDisk::ni_, and DirectionalDisk::nr_ virtual void copyGridRadius(double const * const pattern = NULL, size_t nr = 0 ); virtual double const * getGridRadius() const; ///< Get DirectionalDisk::radius_ virtual void copyGridCosi(double const * const pattern = NULL, size_t ni = 0 ); virtual double const * getGridCosi() const; ///< Get DirectionalDisk::cosi_ virtual void copyGridFreq(double const * const pattern = NULL, size_t ni = 0 ); virtual double const * getGridFreq() const; ///< Get DirectionalDisk::freq_ protected: void getIndices(size_t i[3], double const co[4], double cosi, double nu=0.) const ; ///< Get emission_ cell corresponding to position co[4] public: using ThinDisk::emission; virtual double emission(double nu_em, double dsem, state_t const &c_ph, double const c_obj[8]=NULL) const; }; #endif Gyoto-2.0.2/include/GyotoDisk3D.h000066400000000000000000000212331455254334400165250ustar00rootroot00000000000000/** * \file GyotoDisk3D.h * \brief A geometrically thick, optically thin disk * * The target of ray-traced Gyoto::Photon */ /* Copyright 2011 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoDisk3D_H_ #define __GyotoDisk3D_H_ #include #include #include namespace Gyoto{ namespace Astrobj { class Disk3D; } } /** * \class Gyoto::Astrobj::Disk3D * \brief Geometrically thick disk read from FITS file * * This class is the base class for thick disks. The emitter's * velocity is given in a FITS file, together with emission * related quantity (typically temperature). * This class mainly implements the Impact() function. * Emission() function is here left to its default, and should * be implemented according to specific needs in heir classes. * Here the disk is supposed not to evolve in time. The dynamical * treatment is provided in heir classes. * * The 3D disk is assumed to be described by a regular * (non adaptive) grid of cylindrical geometry. The disk * is a slab from rin_ to rout_ and zmin_ (typically = -zmax_) to zmax_. * */ class Gyoto::Astrobj::Disk3D : public Gyoto::Astrobj::Generic { friend class Gyoto::SmartPointer; private: std::string filename_; ///< Optional FITS file name containing the arrays /** * An array of dimensionality double[nr_][nz_][nphi_][nnu_]. In FITS * format, the first dimension is nu, the second phi, the third * z and last r. It typically contains temperature and is used only by * subclasses. */ double * emissquant_; ///< Physical quantity yielding emission. double * opacity_; ///< Opacity, same dimensions as emissquant_ /** * An array of dimensionality double[nr_][nz_][nphi_][3]. In FITS format, * the second dimension is phi, the third z and last r. The first plane in * the first FITS dimention is dphi/dt, the second dz/dt the last dr/dt. */ double * velocity_; ///< Velocity(r, z, phi) double dnu_; ///< Frequency scale of PatternDisk::emission_ in Hz double nu0_; ///< Lowest frequency provided in PatternDisk::emission_ in Hz size_t nnu_; ///< Number of frequencies provided in PatternDisk::emission_ double dphi_; ///< δφ between two grid columns double phimin_;///< Minimum φ in grid size_t nphi_; ///< Grid size in the φ direction double phimax_; ///< Maximum φ in grid /** * XML elment: <RepeatPhi>. * FITS keyword: HIERARCH GYOTO Disk3D RepeatPhi */ size_t repeat_phi_; ///< Number of times the pattern should be repeated to cover [0, 2Π] //double phi0_==0, phi max is always 2*M_PI double dz_; ///< Altitude step double zmin_; ///< Minimum altitude size_t nz_; ///< Grid size in the altitude direction double zmax_; ///< Maximum altitude double dr_; ///< Radius step double rin_; ///< Inner radius of the grid size_t nr_; ///< Number of rows in the patternGrid size in the r direction double rout_; ///< Outer radius of the grid int zsym_; ///< 1 to symmetrize the grid z -> -z (default case) double tPattern_; ///< If the disk is being rotated (like a pattern disk) this is the origin of time for this rotation double omegaPattern_; ///< If the disk is being rotated (like a pattern disk) this is the rotation velocity dphi/dt // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; // fillProperty is overridden to remove leading "!" from FITS filename void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const; Disk3D(); ///< Standard constructor. Disk3D(const Disk3D& ) ;///< Copy constructor. virtual Disk3D* clone () const; ///< Cloner. virtual ~Disk3D() ; ///< Destructor. // Accessors // --------- public: #ifdef GYOTO_USE_CFITSIO /// Read parameters and arrays from FITS file. virtual void fitsRead(std::string filename_); /// Write parameters and arrays to FITS file. virtual void fitsWrite(std::string filename_); #endif void file(std::string const &f); std::string file() const; void zsym(bool t); bool zsym() const; void tPattern(double t); double tPattern() const; void omegaPattern(double t); double omegaPattern() const; /// Set Disk3D::emissquant_. /** * The pointer is copied directly, not the array content. * * This is a low-level function. Beware that: * - previously allocated array will not be freed automatically; * - array attached when the destructor is called will be freed. */ void setEmissquant(double * pattern); void opacity(double * pattern); /// Set Disk3D::velocity__. /** * The pointer is copied directly, not the array content. * * This is a low-level function. Beware that: * - previously allocated array will not be freed automatically; * - array attached when the destructor is called will be freed. */ void setVelocity(double * pattern); /// Set Disk3D::emissquant_. /** * Disk3D::emissquant_ is freed if not NULL, reallocated, and * pattern is copied into emission_. * * If Disk3D::velocity_ or has been set previously with mismatching * sizes, it is deallocated too. * * Finally, Disk3D::nnu_, Disk3D::nphi_, Disk3D::nz_ and * Disk3D::nr_ are set according to naxes. * * \param pattern Array to copy as emission_. May be NULL in which * case emission_ is simply deallocated and set to NULL. * * \param naxes { nnu_, nphi_, nz_, nr_ }. */ virtual void copyEmissquant(double const * const pattern = NULL, size_t const naxes[4] = NULL); /// Get Disk3D::emissquant_. virtual double const * getEmissquant() const; /// Get { Disk3D::nnu_, Disk3D::nphi_, Disk3D::nz_, Disk3D::nr_ }. virtual void getEmissquantNaxes( size_t naxes[4] ) const ; virtual void copyOpacity(double const * const pattern = NULL, size_t const naxes[4] = NULL); /// Get Disk3D::opacity_. virtual double const * opacity() const; /// Set Disk3D::velocity_. /** * Disk3D::velocity_ is first freed if not NULL and set to NULL. * * If pattern is not NULL, Disk3D::emissquant_ must have been set * previously with matching dimensions. Disk3D::velocity_ is * then reallocated, and pattern is copied into velocity_. * * \param pattern Array to copy as velocity_. May be NULL in which * case velocity_ is simply deallocated and set to NULL. * * \param naxes { nphi_, nz_, nr_ }. */ virtual void copyVelocity(double const * const pattern = NULL, size_t const naxes[3] = NULL); /// Get Disk3D::velocity_. virtual double const * getVelocity() const; /// Set Disk3D::repeat_phi_. virtual void repeatPhi(size_t n); /// Get Disk3D::repeat_phi_. virtual size_t repeatPhi() const; /// Set Disk3D::nu0_. virtual void nu0(double freq); /// Get Disk3D::nu0_. virtual double nu0() const; /// Set Disk3D::dnu_. virtual void dnu(double dfreq); /// Get Disk3D::dnu_. virtual double dnu() const; /// Set Disk3D::rin_. void rin(double rrin); /// Get Disk3D::rin_. double rin() const; /// Set Disk3D::rout_. void rout(double rout); /// Get Disk3D::rout_. double rout() const; /// Set Disk3D::zmin_. void zmin(double zmin); /// Get Disk3D::zmin_. double zmin() const; /// Set Disk3D::zmax_. void zmax(double zmax); /// Get Disk3D::zmax_. double zmax() const; /// Set Disk3D::phimin_. void phimin(double phimin); /// Get Disk3D::phimin_. double phimin() const; /// Set Disk3D::phimax_. void phimax(double phimax); /// Get Disk3D::phimax_. double phimax() const; protected: void getIndices(size_t i[4], double const co[4], double nu=0.) const ; ///< Get emissquant_ cell corresponding to position co[4]. public: int Impact(Photon *ph, size_t index, Astrobj::Properties *data); /// Get fluid 4-velocity at point. /** * Fill vel with the 4-vector velocity of the fluid at 4-position * pos. * * \param[in] pos 4-position at which to compute velocity; * \param[out] vel 4-velocity at pos. */ virtual void getVelocity(double const pos[4], double vel[4]) ; }; #endif Gyoto-2.0.2/include/GyotoDynamicalDisk.h000066400000000000000000000062051455254334400201620ustar00rootroot00000000000000/** * \file GyotoDynamicalDisk.h * \brief A geometrically thin, optically thick disk, evolving dynamically * * The disk is described by a set of FITS files for a set of different times */ /* Copyright 2011-2015, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoDynamicalDisk_H_ #define __GyotoDynamicalDisk_H_ #include #include #include #include namespace Gyoto{ namespace Astrobj { class DynamicalDisk; } } //#include #include /** * \class Gyoto::Astrobj::DynamicalDisk * \brief Geometrically thin disk read from a set of FITS files * * This class describes a PatternDiskBB that evolves dynamically. * It is described by a set of FITS files. * */ class Gyoto::Astrobj::DynamicalDisk : public Astrobj::PatternDiskBB { friend class Gyoto::SmartPointer; private: char* dirname_; ///< FITS files directory double tinit_; ///< date of the first FITS file double dt_; ///< Time increment between two FITS (assumed constant) int nb_times_; ///< Number of dates int nnu_, nphi_, nr_; ///< Grid dimensions (assumed constant) /// Array of PatternDisk::emission_ arrays double ** emission_array_; /// Array of PatternDisk::velocity_ arrays double ** velocity_array_; ///< /// Array of PatternDisk::radius_ arrays double ** radius_array_; ///< radius vector // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; DynamicalDisk(); ///< Standard constructor DynamicalDisk(const DynamicalDisk& ) ;///< Copy constructor virtual DynamicalDisk* clone () const; ///< Cloner virtual ~DynamicalDisk() ; ///< Destructor // Accessors // --------- public: std::string file() const; void file(std::string const &fname); void tinit(double t); double tinit()const; void dt(double t); double dt()const; // fillProperty is overridden to set only the directory void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const; using PatternDiskBB::emission; virtual double emission(double nu_em, double dsem, state_t const &c_ph, double const c_obj[8]=NULL) const; void getVelocity(double const pos[4], double vel[4]); double const * getVelocity() const; protected: /// Set underlying PatternDisk pointers to a specific date slice. /** * \param iq Index of the date slice. */ void copyQuantities(int iq) ; void nullifyQuantities() ; }; #endif Gyoto-2.0.2/include/GyotoDynamicalDisk3D.h000066400000000000000000000123701455254334400203510ustar00rootroot00000000000000/** * \file GyotoDynamicalDisk3D.h * \brief A geometrically thick, optically thin disk, evolving dynamically, * with black body emission. * * The disk is described by a set of FITS files for a set of different times */ /* Copyright 2011-2016, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoDynamicalDisk3D_H_ #define __GyotoDynamicalDisk3D_H_ #include #include #include #include namespace Gyoto{ namespace Astrobj { class DynamicalDisk3D; } } #include #include /** * \class Gyoto::Astrobj::DynamicalDisk3D * \brief Geometrically thick optically thin disk * read from a set of FITS files. * * This class describes a PatternDiskBB that evolves dynamically. * It is described by a set of FITS files for different times. * Its emission is blackbody. * * The disk is assumed to be described by a regular, * constant in time, grid. * * The metric must be Kerr in BL coordinates. * */ class Gyoto::Astrobj::DynamicalDisk3D : public Astrobj::Disk3D { friend class Gyoto::SmartPointer; protected: SmartPointer spectrumBB_; ///< disk black body ///< emission law private: bool temperature_; ///< 1 if temperature is given in fits data file, 0 if emission coef is directly given char* dirname_; ///< FITS files directory double tinit_; ///< Time of the first FITS file double dt_; ///< Time increment between two FITS (assumed constant) int nb_times_; ///< Number of times double PLindex_; ///< power law index such that density_elec(E) ∝ E-p bool novel_; ///< put to true if velocity of emitting particle is not provided double floortemperature_; ///< if non-zero, emission and absorption are 0 for temperatures below this floor, emission=blackbody and absorption is infty for temperatures above (this is a kind of fake optically thick case, when the emitting surface is inside the grid, not at the boundary of the grid) /** * An array of arrays of dimensionality double[nr_][nz_][nphi_][nnu_]. * In FITS format, the first dimension is nu, the second phi, the third * z, the last r. It contains emission coef, or a closely related quantity. */ double ** emission_array_; /** * An array of arrays of dimensionality double[nr_][nz_][nphi_][nnu_]. * In FITS format, the first dimension is nu, the second phi, the third * z, the last r. It contains absorption coef, or a closely related quantity. */ double ** absorption_array_; /** * An array of arrays of dimensionality double[nr_][nz_][nphi_][3]. * In FITS format, the second dimension is phi, and the third r. * The first plane in the first FITS dimention is dphi/dt, * the second dz/dt, the third dr/dt. */ double ** velocity_array_; ///< velocity(r, z, phi) // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; DynamicalDisk3D(); ///< Standard constructor DynamicalDisk3D(const DynamicalDisk3D& ) ;///< Copy constructor virtual DynamicalDisk3D* clone () const; ///< Cloner virtual ~DynamicalDisk3D() ; ///< Destructor // Accessors // --------- public: using Generic::metric; void metric(SmartPointer gg); void file(std::string const &f); std::string file() const; void tinit(double t); double tinit()const; void dt(double t); double dt()const; void PLindex(double t); double PLindex()const; void floorTemperature(double t); double floorTemperature()const; void temperature(bool t); bool temperature() const; void withVelocity(bool t); bool withVelocity() const; // Stuff // ----- /// Compute emission at one grid date. double emission1date(double nu_em, double dsem, state_t const &c_ph, double const c_obj[8]) const; using Disk3D::emission; /// Interpolate emission between grid dates. virtual double emission(double nu_em, double dsem, state_t const &c_ph, double const c_obj[8]=NULL) const; /// Compute transmission at one grid date. double transmission1date(double nu_em, double dsem, state_t const &c_ph, double const c_obj[8]) const; /// Interpolate transmission between grid dates. double transmission(double nu_em, double dsem, state_t const &cph, double const co[8]) const; void getVelocity(double const pos[4], double vel[4]); double const * getVelocity() const; protected: /// Set underlying Disk3D pointers to a specific date slice. /** * \param iq Index of the date slice. */ void copyQuantities(int iq) ; }; #endif Gyoto-2.0.2/include/GyotoDynamicalDiskBolometric.h000066400000000000000000000045161455254334400222050ustar00rootroot00000000000000/** * \file GyotoDynamicalDiskBolometric.h * \brief A geometrically thin, optically thick disk, evolving dynamically * * The disk is described by a set of FITS files for a set of different times */ /* Copyright 2013, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoDynamicalDiskBolometric_H_ #define __GyotoDynamicalDiskBolometric_H_ #include #include #include #include namespace Gyoto{ namespace Astrobj { class DynamicalDiskBolometric; } } //#include #include /** * \class Gyoto::Astrobj::DynamicalDiskBolometric * \brief Geometrically thin disk read from a set of FITS files * * This class describes a PatternDiskBB that evolves dynamically. * It is described by a set of FITS files. * */ class Gyoto::Astrobj::DynamicalDiskBolometric : public Astrobj::DynamicalDisk { friend class Gyoto::SmartPointer; private: // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; DynamicalDiskBolometric(); ///< Standard constructor DynamicalDiskBolometric(const DynamicalDiskBolometric& ) ;///< Copy constructor virtual DynamicalDiskBolometric* clone () const; ///< Cloner virtual ~DynamicalDiskBolometric() ; ///< Destructor double emission(double nu_em, double dsem, state_t const &, double const coord_obj[8]) const; double bolometricEmission(double dsem, state_t const & cph, double const coord_obj[8]) const; void processHitQuantities(Photon* ph, state_t const &coord_ph_hit, double const *coord_obj_hit, double dt, Properties* data) const; }; #endif Gyoto-2.0.2/include/GyotoEquatorialHotSpot.h000066400000000000000000000063701455254334400211000ustar00rootroot00000000000000/** * \file GyotoEquatorialHotSpot.h * \brief Equatorial hot spot * */ /* Copyright 2013, 2018 Frederic Vincent & Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoEquatorialHotSpot_h #define __GyotoEquatorialHotSpot_h #include #include #include #include #include namespace Gyoto { namespace Astrobj { class EquatorialHotSpot; }; }; class Gyoto::Astrobj::EquatorialHotSpot : public Gyoto::Astrobj::ThinDisk, public Gyoto::Worldline { friend class Gyoto::SmartPointer; private: double sizespot_; enum beaming_t {IsotropicBeaming=0, NormalBeaming=1, RadialBeaming=2, IsotropicConstant=3}; beaming_t beaming_; double beamangle_; SmartPointer spectrumThermalSynch_; // Thermal distribution synchrotron spectrum std::string magneticConfig_; ///< Specify the magnetic field configuration for polarisation public: GYOTO_OBJECT; GYOTO_WORLDLINE; using Gyoto::Worldline::deltaMax; using Gyoto::Astrobj::Generic::deltaMax; EquatorialHotSpot(); EquatorialHotSpot(const EquatorialHotSpot &o); virtual ~EquatorialHotSpot(); virtual EquatorialHotSpot * clone() const ; // Accessors for the Property list void spotRadSize(double t); double spotRadSize() const; void beaming(std::string const &b); std::string beaming() const; void beamAngle(double t); double beamAngle() const; void magneticConfiguration(std::string config); std::string magneticConfiguration() const; // double getMass() const; using Generic::metric; void metric(SmartPointer gg); void setInitialCondition(double coord[8]); void getVelocity(double const pos[4], double vel[4]); double emission(double nu_em, double dsem, state_t const &, double const coord_obj[8]) const; void radiativeQ(double *Inu, double *Qnu, double *Unu, double *Vnu, Eigen::Matrix4d *Onu, double const *nuem , size_t nbnu, double dsem, state_t const &cph, double const *co) const; void radiativeQ(double Inu[], // output double Taunu[], // output double const nu_ems[], size_t nbnu, // input double dsem, state_t const &coord_ph, double const coord_obj[8]) const; // needed for legacy XML files virtual int setParameter(std::string name, std::string content, std::string unit); #ifdef GYOTO_USE_XERCES // needed for wait_pos_ void setParameters(FactoryMessenger* fmp); virtual void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const ; #endif #endif }; Gyoto-2.0.2/include/GyotoError.h000066400000000000000000000124531455254334400165410ustar00rootroot00000000000000/** * \file GyotoError.h * \brief Error handling * * Gyoto dlopens its plug-ins. The throw/catch C++ mechanism cannot * pass the dlopen boundary. The Gyoto::Error mechanism alleviates * this C++ language limitation. * * Every Gyoto method (either in the main Gyoto library or in a Gyoto * plug-in) should check for possible error conditions and throw * adequate Gyoto::Error exceptions through the * Gyoto::Error::throw() function. For instance: * \code * if (error_condition) Gyoto::Error::throw("Useful error message"); * \endcode * * If the main code has set Gyoto::Error::handler_t error handler * using Gyoto::Error::setHandler(), these errors will then be passed * to it. Else, the Error is C++-thrown at the main Gyoto library * level, above the dlopen boundary. * * The main code can then catch these exceptions and act appropriately, * for instance: * \code * try { gyoto_code ; } * catch (Gyoto::Error err) * { * err.Report(); * abort(); * } * \endcode * */ /* Copyright 2011, 2013 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoError_H_ #define __GyotoError_H_ /** * \namespace Gyoto * \brief Namespace for the Gyoto library */ #include #include "GyotoDefs.h" namespace Gyoto { class Error; } /** * \class Gyoto::Error * \brief Class for thowing exceptions. * * Gyoto dlopens its plug-ins. The throw/catch C++ mechanism cannot * pass the dlopen boundary. The Gyoto::Error mechanism alleviates * this C++ language limitation. * * Every Gyoto method (either in the main Gyoto library or in a Gyoto * plug-in) should check for possible error conditions and throw * adequate Gyoto::Error exceptions through the GYOTO_ERROR macro * (which calls the Gyoto::throwError() function). For instance: * \code * if (error_condition) GYOTO_ERROR("Useful error message"); * \endcode * * If the main code has set Gyoto::Error::handler_t error handler * using Gyoto::Error::setHandler(), these errors will then be passed * to it. Else, the Error is C++-thrown at the main Gyoto library * level, above the dlopen boundary. * * The main code can then catch these exceptions and act appropriately, * for instance: * \code * try { gyoto_code ; } * catch (Gyoto::Error err) * { * err.Report(); * abort(); * } * \endcode */ class Gyoto::Error { private: /// Error message. const std::string message; /// Error code. /** * Default value is EXIT_FAILURE from cstdlib. Currently not used in * practice. */ const int errcode; public: /// Constructor with an error message. Error( const std::string m ); // Copy constructor Error( const Gyoto::Error &o); /// Print-out error message on standard error. void Report() const ; /// Retrieve error code. /** * See also operator const char * () const and get_message(). * \return Error code */ int getErrcode() const ; /// Cast to const char *. /** * Retrieve error message as a C string. See also get_message() and * gerErrcode(). */ operator const char * () const; /// Retrieve error message for custom handling of the exception. /** * See also operator const char * () const and getErrCode(). * \return char* message : pointer to the error message */ std::string get_message() const ; /// Error handler type. /** * Instead of catching Gyoto errors directly (for instance if gyoto * itself is dlopened), you can set a Handler_t error handler using * setHandler(). * * A very simple handler could be: * \code * void applicationErrorHandler(const Gyoto::Error e) { * e.Report(); * exit ( e.getErrCode() ); * } * \endcode */ typedef void Handler_t (const Error); /// Set application error handler. /** * Instead of catching Gyoto errors directly (for instance if gyoto * itself is dlopened), you can set an Error::Handler_t error * handler using setHandler(). * * \code * void applicationErrorHandler(const Gyoto::Error e) { * e.Report(); * exit ( e.getErrCode() ); * } * int main() { * Gyoto::Error::setHandler(&applicationErrorHandler); * } * \endcode * \param phandler Function pointer to the handler. */ static void setHandler( Gyoto::Error::Handler_t* phandler); }; namespace Gyoto { /// Throw a Gyoto::Error /** * Most code should use the GYOTO_ERROR macro instead */ void throwError( std::string ); } /// Throw a Gyoto::Error nicely /** * Throw an Error, prepending current function name. Calls * Gyoto::throwError(std::string). */ #define GYOTO_ERROR(msg) Gyoto::throwError(std::string(__FILE__ ":" GYOTO_STRINGIFY(__LINE__) " in ")+ __PRETTY_FUNCTION__ + ": " + msg) #endif Gyoto-2.0.2/include/GyotoFactory.h000066400000000000000000000314431455254334400170570ustar00rootroot00000000000000#ifdef GYOTO_USE_XERCES /** * \file GyotoFactory.h * \brief XML I/O * * The Factory is a place where objects are built. * */ /* Copyright 2011-2014, 2016, 2018 Thibaut Paumard, Frederic Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoFactory_H_ #define __GyotoFactory_H_ #include #include "GyotoConfig.h" /// Xerces internal. /** * For some reason it sometimes need to be set to 0 instead of being * undefined. */ #ifndef XERCES_INCLUDE_WCHAR_H #define XERCES_INCLUDE_WCHAR_H 0 #endif #include #include #include #include #include #include #include #include namespace Gyoto { class Factory; class FactoryMessenger; namespace Spectrometer { class Generic; class Uniform; } } /** * \class Gyoto::Factory * \brief XML input/output * * The Factory is responsible from building objects from their XML * description, and from saving an XML description of existing * objects. Since the Factory doesn't know how to build the variety of * objects available in Gyoto and in external plug-ins, the Factory * orders Metric, Astrobj and Spectrum objects from registered * subcontractors (see SmartPointee::Subcontractor_t). The factory an the * various subcontractors communicate through a FactoryMessenger. * * To read an XML file, you simply create an instance of the Factory * with a filename, and get whichever object type you are interested * in: * \code * Gyoto::Factory * factory = new Gyoto::Factory("some/input/file.xml"); * const std::string kind = factory->kind(); * if (kind.compare("Scenery")) Gyoto::throwError("I wan't a Scenery"); * Gyoto::SmartPointer scenery = factory -> scenery(); * Gyoto::SmartPointer screen = scenery->screen(); * Gyoto::SmartPointer object = scenery->astrobj(); * Gyoto::SmartPointer metric = scenery->metric(); * delete factory; factory=NULL; * \endcode or, for a single object and without checking the kind * (kind()) first: * \code * Gyoto::SmartPointer scenery = Factory("some/input/file.xml").scenery(); * \endcode * * * Writing an object to a file is even easier. Assuming "object" below * is a Gyoto::SmartPointer where "class" is one of Scenery, * Metric::Generic, Astrobj::Generic, Spectrum::Generic, Screen, * Photon or Spectrometer: * \code * Gyoto::Factory * factory = new Gyoto::Factory(object); * factory -> write("some/output/file.xml"); * delete factory; factory=NULL; * \endcode * * or, for short: * \code * Gyoto::Factory(object).write("some/output/file.xml"); * \endcode * * You can also directly display the object to stdout: * \code * std::cout << Gyoto::Factory(object).format() << std::endl; * \endcode */ class Gyoto::Factory { friend class Gyoto::FactoryMessenger; protected: // XERCES MACHINERY /// Xerces error handler xercesc::ErrorHandler *reporter_; /// The document being read or written xercesc::DOMDocument *doc_; /// Root element in Factory::doc_ xercesc::DOMElement *root_; /// Xerces parser xercesc::XercesDOMParser *parser_; /// Xerces resolver xercesc::DOMXPathNSResolver* resolver_; /// Xerces implementation xercesc::DOMImplementation* impl_; // Elements which must happen only once in a file // but may happen about anywhere /// XML element representing the Metric xercesc::DOMElement *gg_el_; /// XML element representing the Astrobj xercesc::DOMElement *obj_el_; /// XML element representing the Photon xercesc::DOMElement *ph_el_; // GYOTO elements /// The Scenery read from or written to Factory::doc_ SmartPointer scenery_; /// The Metric read from or written to Factory::doc_ SmartPointer gg_; /// The Screen read from or written to Factory::doc_ SmartPointer screen_; /// The Astrobj read from or written to Factory::doc_ SmartPointer obj_; /// The Photon read from or written to Factory::doc_ SmartPointer photon_; /// The Spectrometer read from or written to Factory::doc_ SmartPointer spectro_; // Factory stuff /// XML file name, if actually reading from or writting to file. std::string filename_; /// Kind of root element (Scenery, Metric etc.) std::string kind_; public: /// Constructor for reading a file /** * If filename starts with " sc); /// Constructor for saving (or printing) a Metric Factory(SmartPointer gg); /// Constructor for saving (or printing) an Astrobj Factory(SmartPointer ao); /// Constructor for saving (or printing) a Spectrum Factory(SmartPointer sp); /// Constructor for saving (or printing) a Screen Factory(SmartPointer screen); /// Constructor for saving (or printing) a Photon Factory(SmartPointer photon); /// Constructor for saving (or printing) a Spectrometer Factory(SmartPointer Spectrometer); /// Destructor ~Factory(); private: /// Set Xerces reporter void setReporter(xercesc::ErrorHandler*); /// Get Factory::root_ xercesc::DOMElement * getRoot(); /// Get Factory::doc_ xercesc::DOMDocument* getDoc(); public: /// Get Factory::kind_ const std::string kind(); /// Find Scenery element, instantiate it and get it. /** * Scenery must be the root element. scenery() will call * metric(), astrobj() and screen(). */ Gyoto::SmartPointer scenery(); /// Find Metric element, instantiate it and get it. /** * Metric may be either the root element or directly within the root * element. */ Gyoto::SmartPointer metric(); /// Find Screen element, instantiate it and get it. /** * Screen may be either the root element or directly within the root * element. */ Gyoto::SmartPointer screen(); /// Find Astrobj element, instantiate it and get it. /** * Astrobj may be either the root element or directly within the root * element. */ Gyoto::SmartPointer astrobj(); /// Find Photon element, instantiate it and get it. /** * Photon may be either the root element or directly within the root * element. */ Gyoto::SmartPointer photon(); /// Find Photon element, instantiate it and get it. /** * Photon may be either the root element or directly within the root * element. */ Gyoto::SmartPointer spectrum(); /// Find Spectrometer element, instantiate it and get it. /** * Spectrometer may be either the root element or directly within the root * element. */ Gyoto::SmartPointer spectrometer(); // XML OUTPUT /// Write constructed XML representation to file void write(const char* const fname=0); /// Get constructed XML representation as std::string std::string format(); // Setting elements /// Set Metric for this document. /** * If called several times for the same document, the metric * SmartPointers must point to the same instance or an error will be * thrown using Gyoto::throwError(). */ void metric(SmartPointer gg, xercesc::DOMElement *el); /// Set Astrobj for this document. /** * If called several times for the same document, the astrobj * SmartPointers must point to the same instance or an error will be * thrown using Gyoto::throwError(). */ void astrobj(SmartPointer ao, xercesc::DOMElement *el); /// Set Screen for this document. /** * If called several times for the same document, the screen * SmartPointers must point to the same instance or an error will be * thrown using Gyoto::throwError(). */ void screen(SmartPointer scr, xercesc::DOMElement *el); /// Set text content of XML element void setContent(std::string content, xercesc::DOMElement *el); /// Create new XML element without content /** * E.g. * \code * * \endcode * \param name XML entity name. * \param pel Parent XML element. */ void setParameter(std::string name, xercesc::DOMElement *pel); /// Create new XML element with double value /** * E.g. * \code * 2. * \endcode * \param name XML entity name. * \param value Entity content. * \param pel Parent XML element. */ void setParameter(std::string name, double value, xercesc::DOMElement *pel); /// Create new XML element with integer value /** * E.g. * \code * 7 * \endcode * \param name XML entity name. * \param value Entity content. * \param pel Parent XML element. */ void setParameter(std::string name, int value, xercesc::DOMElement *pel); /// Create new XML element with integer value /** * E.g. * \code * 7 * \endcode * \param name XML entity name. * \param value Entity content. * \param pel Parent XML element. */ void setParameter(std::string name, unsigned int value, xercesc::DOMElement *pel); /// Create new XML element with integer value /** * E.g. * \code * 7 * \endcode * \param name XML entity name. * \param value Entity content. * \param pel Parent XML element. */ void setParameter(std::string name, long value, xercesc::DOMElement *pel); /// Create new XML element with integer value /** * E.g. * \code * 7 * \endcode * \param name XML entity name. * \param value Entity content. * \param pel Parent XML element. */ void setParameter(std::string name, unsigned long value, xercesc::DOMElement *pel); /// Create new XML element with string content /** * E.g. * \code * Text * \endcode * * Any parameter can acually be set this way if total control over * Text formatting is wished for. * \param name XML entity name. * \param value Entity content. * \param pel Parent XML element. */ void setParameter(std::string name, std::string value, xercesc::DOMElement*pel); /// Create new XML element with array content /** * E.g. * \code * 0. 10. 3.14. 0. * \endcode * \param[in] name XML entity name. * \param[in] val Entity content. * \param[in] nelem Number of elements in val to output. * \param[in] pel Parent XML element. * \param[out] child If not NULL, set to a new Gyoto::FactoryMessenger * pointing to the new element. It must be deleted later. */ void setParameter(std::string name, double val[], size_t nelem, xercesc::DOMElement* pel, FactoryMessenger **child = NULL); void setParameter(std::string name, std::vector const &val, xercesc::DOMElement* pel, FactoryMessenger **child = NULL); void setParameter(std::string name, std::vector const &val, xercesc::DOMElement* pel, FactoryMessenger **child = NULL); /// Transform relative path into absolute path. /** * relpath is interpreted as follows: * * If it starts with "/", it is interpreted as an absolute path and * is returned as is. * * If it is prefixed with "`pwd`/", the rest of relpath is * interpreted as relative to the current working directory, * i.e. fullPath() tries to mimic how the shell would expand * relpath into an absolute path. * * In any other circumstance, relpath is interpreted to relative to * the directory where the XML file resides. * * \param relpath Path specification. * \return Absolute path to same file. */ std::string fullPath(std::string relpath); }; #endif #endif Gyoto-2.0.2/include/GyotoFactoryMessenger.h000066400000000000000000000376231455254334400207360ustar00rootroot00000000000000/** * \file GyotoFactoryMessenger.h * \brief Factory / SmartPointee::Subcontractor_t interface */ #ifdef GYOTO_USE_XERCES /* Copyright 2011-2014, 2016, 2018 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoFactoryMessenger_H_ #define __GyotoFactoryMessenger_H_ /// Internal to Xerces /** * For obscure reasons, this needs to be set to 0 instead of just * undefined. */ #ifndef XERCES_INCLUDE_WCHAR_H #define XERCES_INCLUDE_WCHAR_H 0 #endif #include #include #include #include #include namespace Gyoto { class Factory; class FactoryMessenger; namespace Metric { class Generic; } namespace Astrobj { class Generic; } namespace Spectrum { class Generic ; } class Screen; class Photon; } /** * \class Gyoto::FactoryMessenger * \brief Factory / SmartPointee::Subcontractor_t interface * * A FactoryMessenger instance is like an employee passing messages * between its employer (the Factory) and a subcontractor (a function * of the SmartPointee::Subcontractor_t type). * * The FactoryMessenger also communicate with the fillElement method * of some classes (Astrobj::Generic::fillElement(), * Metric::Generic::fillElement(), Spectrum::Generic::fillElement()). * * A subcontractor function typically loops calling getNextParameter() * to read all the parameters provided for it in an XML file. If BASE * is one of Astrobj, Metric or Spectrum, and MyClass is an * implementation of BASE::Generic, the subcontractor static member * function often looks like this: * * \code * SmartPointer MyClass::Subcontractor(Gyoto::FactoryMessenger *messenger) { * SmartPointer deliverable = new MyClass(); * while (messenger->getNextParameter(name, content) { * if (name=="SomeProperty") deliverable -> setSomeProperty(content); * else if (name=="AnotherProperty") deliverable -> setAnotherProperty(content); * } * return deliverable; * } * \endcode * * Other get* methods are provided to cope with more complex syntax * (e.g. when XML attributes are used, as in <ParameterName * attribute="attrvalue">ParameterValue</ParameterName> * * Conversely, the Factory asks certain Gyoto classes through their * fillElement() method how they should be printed or saved to an XML * file. Those fillElement() methods use the FactoryMessenger::set*() * methods (in particular setParameter()) as well as, occasionally, * makeChild() to describe themselves to the Factory. */ class Gyoto::FactoryMessenger { private: Gyoto::Factory* employer_; ///< The Factory that sent this messenger xercesc::DOMElement *element_; ///< The XML element concerned by this transaction xercesc::DOMNodeList* children_; ///< The children of the XML element concerned by this transaction XMLSize_t nodeCount_; ///< The number of children of the XML element concerned by this transaction XMLSize_t curNodeIndex_; ///< Current child public: FactoryMessenger(Gyoto::Factory*, xercesc::DOMElement*); ///< Constructor called before subcontracting FactoryMessenger(const FactoryMessenger& parent, std::string) ; ///< Constructor called before fillElement void reset(); ///< Get back to first parameter ///// GET METHODS, CALLED FROM A SUBCONTRACTOR /** * An Gyoto XML file may contain at most a single Metric section * and it may be present about anywhere in the XML tree. Individual * subcontractors should not try to interpret this section directly, * but should call metric() to find and interpret the Metric * section. */ SmartPointer metric () ; ///< Build and get the Metric described in this XML file /** * An Gyoto XML file may contain at most a single Screen section * and it may be present about anywhere in the XML tree. Individual * subcontractors should not try to interpret this section directly, * but should call screen() to find and interpret the Screen * section. */ SmartPointer screen () ; ///< Build and get the Screen described in this XML file /** * An Gyoto XML file may contain at most a single Photon section * and it may be present about anywhere in the XML tree. Individual * subcontractors should not try to interpret this section directly, * but should call photon() to find and interpret the Photon * section. */ SmartPointer photon () ; ///< Build and get the Photon described in this XML file /** * An Gyoto XML file may contain at most a single Astrobj section * and it may be present about anywhere in the XML tree. Individual * subcontractors should not try to interpret this section directly, * but should call astrobj() to find and interpret the Astrobj * section. */ SmartPointer astrobj () ; ///< Build and get the Astrobj described in this XML file /** * On each call, return a pair name-content of one of the * children_. Usually, "name" is the name of a parameter and * "content" is the string representation of the corresponding * value. For instance: * \code * Content * \endcode * * \param name upon output, name of the child * \param content of the child * \param unit= propertty of the child * \return 1 if there remains parameters to retrieve, 0 otherwise. */ int getNextParameter(std::string* name, std::string* content, std::string* unit=NULL); ///< Get name and value of next parameter /** * For instance a Spectrometer description looks like this * \code * 2.0e-6 2.4e-6 * \endcode * and the Spectrometer builder uses getSelfAttribute() to retrieve * the attributes "kind" and "nsamples". * * \param attrname name of the attribute * \return attrvalue */ std::string getSelfAttribute(std::string attrname) const ; ///< Get attribute of FactoryMessenger::element_ /** * For instance * \code * ParameterContent * \endcode * * \param attrname name of the attribute * \return attrvalue */ std::string getAttribute(std::string attrname) const ; ///< Get attribute of a last retrieved parameter /** * In exceptional circumstances, it may be necessary to get the * entire text content of the topmost element * FactoryMessenger::element_ instead or getting only the individual * FactoryMessenger::children_ . * * For instance a Spectrometer description looks like this: * \code * 2.0e-6 2.4e-6 * \endcode * and the Spectrometer builder uses getFullContent() to retrieve * the spectral boundaries (2.0e-6 and 2.4e-6 here). */ std::string getFullContent() const ; ///< Get full content of element_ /** * If one of the FactoryMessenger::children_ is complex (for * instance the complete description of a Gyoto::Spectrum), it is * possible to initialize a new FactoryMessenger and call the * correct subcontractor: * \code * SmartPointer spectrum = NULL; * while (messenger->getNextParameter(name, content) { * if (name=="Spectrum") { * content = messenger->getAttribute("kind"); * FactoryMessenger* child = messenger->getChild(); * deliverable->spectrum( (*Spectrum::getSubcontractor(content))(child) ); * delete child; * } * } * \endcode * The child is allocated with new and must be deleted after use. */ FactoryMessenger * getChild() const ; ///< Get another FactoryMessenger instance initialized to current child /** * This function takes a relative path (e.g. ../foo/bar.data) and * transforms it into a full path (starting with "/"). It is not * guaranteed to be portable (we assume that the path separator is * "/" and that absolute paths start with "/"). * * \param relpath path relative to the directory where the XML file * on which the Factory works is located. * * \return fullpath at full path specification to the same point pon * the file-system. */ std::string fullPath(std::string relpath) ; ///< Transform path into full path specification ///////// SET METHODS, CALLED FROM FILLELEMENT /** * At most one Metric section may be present in a give Gyoto XML file. * * When an object's fillElement() method is called, if this object * is connected to a Metric, it should call metric() with this * Metric. Very often, the Metric will already have been set * previously. The Factory will check that all the objects in the * hierarchy are attached to the same Metric instance, and save this * instance only once. Trying to set the Metric to something else * than the already set Metric instance is an error condition. * * To make things clearer: Assume "scenery" is a fully filled * Scenery. scenery->fillElement(messenger) will call: * \code * messenger->metric(Scenery::gg_) * messenger->screen(Scenery::screen_) * messenger->astrobj(Scenery::obj_); * \endcode * * The Factory will then call screen_->fillElement(child_messenger) * and obj_->fillElement(child_messenger), each of which will also * call metric(). If the same Metric is connected to the Astrobj, * to the Screen and to the Scenery, all is well. Else, you have a * bug to fix. */ void metric(SmartPointer); ///< Set the Metric /** * Same as metric(), but for the Astrobj. */ void astrobj(SmartPointer); ///< Set the Astrobj /** * Same as metric(), but for the Screen. */ void screen(SmartPointer); ///< Set the Screen /** * Create child XML element of the form * \code * * \endcode * for instance when "name" is boolean (present or absent), or only * takes attributes (see FactoryMessenger::setAttribute()). As an * example, Astrobj::Generic::fillElement() uses * setParameter() to set either Opticallythin or OpticallyThick. */ void setParameter(std::string name); ///< Output parameter /** * Convert value to striing "svalue" and create an XML child element * of the form * \code * svalue * \endcode */ void setParameter(std::string name, double value); ///< Output parameter /** * Convert value to striing "svalue" and create an XML child element * of the form * \code * svalue * \endcode */ void setParameter(std::string name, long int value); ///< Output parameter /** * Convert value to striing "svalue" and create an XML child element * of the form * \code * svalue * \endcode */ void setParameter(std::string name, unsigned int value); ///< Output parameter /** * Convert value to striing "svalue" and create an XML child element * of the form * \code * svalue * \endcode */ void setParameter(std::string name, unsigned long value); ///< Output parameter /** * Convert value to string "svalue" and create an XML child element * of the form * \code * svalue * \endcode */ void setParameter(std::string name, int value); ///< Output parameter /** * Create an XML child element of the form * \code * value * \endcode */ void setParameter(std::string name, std::string value); ///< Output parameter /** * For instance: * \code * double val[4] = {1., 2., 3., 4.}; * messenger->setParameter("MyArray", val, 4); * \endcode * will result in something like this: * \code * 1.000000 2.000000 3.000000 4.000000 * \endcode * * The exact format is unspecified, determined at compile time, and * by default, unlike in the example above, outputs a large number * of digits for each double (about 20). * * \param name the name of the parameter * \param val[] an array of doubles * \param n number of cells in val[] * \param child (optional) if not NULL, a new FactoryMessenger is * created to access the new parameter element e.g. to set * attributes in it (using setSelfAttribute()). You then need to * delete the child. */ void setParameter(std::string name, double val[], size_t n, FactoryMessenger** child= NULL); ///< Output an array of parameters void setParameter(std::string name, std::vector const &val, FactoryMessenger** child= NULL); void setParameter(std::string name, std::vector const &val, FactoryMessenger** child= NULL); ///< Output a vector of parameters /** * For instance Spectrometer::fillElement() sets its "kind" * attribute somewhat like this: * \code * messenger->setSelfAttribute("kind", "wave"); * \endcode * to produce something like this: * \code * * \endcode */ void setSelfAttribute(std::string attrname, std::string value) ; ///< Set attribute in FactoryMessenger::element_ /** * See setSelfAttribute(std::string attrname, std::string value) */ void setSelfAttribute(std::string attrname, unsigned long value) ; ///< Set attribute in FactoryMessenger::element_ /** * See setSelfAttribute(std::string attrname, std::string value) */ void setSelfAttribute(std::string attrname, unsigned int value) ; ///< Set attribute in FactoryMessenger::element_ /** * See setSelfAttribute(std::string attrname, std::string value) */ void setSelfAttribute(std::string attrname, double value) ; ///< Set attribute in FactoryMessenger::element_ /** * Exceptionnaly, a class instance may be best described by setting * the entire content of the corresponding element than by setting a * bunch of "parameters". This is the case of the spectrometer, * which sets a couple of attributes and reserves the full content * for the spectral boundaries (see Spectrometer::fillElement()). */ void setFullContent(std::string value) ; ///< Low level, prefer setParameter() /** * To be used from fillElement() methods. For instance, the * Star::fillElement() method calls makeChild() to save the Star's * Spectrum and Opacity members somewhat like this: * \code * FactoryMessenger * child; * child = messenger-> makeChild("Spectrum"); * spectrum_ -> fillElement(child); * delete child; * child = messenger-> makeChild("Opacity"); * opacity_ -> fillElement(child); * delete child; * child=NULL; * \endcode * * The child messenger is allocated with new, you need to delete it * after use. */ FactoryMessenger* makeChild(std::string name); ///< Create child FactoryMessenger /** * \brief Parse string into array * * Parse at most max_tokens tokens from string src into * pre-allocated array dst. Returns the number of tokens actually * found (interpreted using atof). dst must be at least of size * max_tokens. */ static size_t parseArray(std::string src, double dst[], size_t max_tokens); /** * \brief Parse string into array * * Parse tokens from string src, returns them into a * std::vector. */ static std::vector parseArray(std::string src); /** * \brief Parse string into array * * Parse tokens from string src, returns them into a * std::vector. */ static std::vector parseArrayULong(std::string src); }; #endif #endif Gyoto-2.0.2/include/GyotoFitsRW.h000066400000000000000000000063561455254334400166330ustar00rootroot00000000000000/** * \file GyotoFitsRW.h * \brief Class to read/write jnu and anu in FITS File * */ /* Copyright 2019 Frederic Vincent, Thibaut Paumard, Nicolas Aimar This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoFitsRW_H_ #define __GyotoFitsRW_H_ #include #include #include #ifdef GYOTO_USE_CFITSIO #include #endif namespace Gyoto { class FitsRW; } #ifdef GYOTO_USE_XERCES #include #endif /** * \class Gyoto::GridData2D * \brief Class for reading data stored in a 2D grid * * */ class Gyoto::FitsRW { private: size_t nnu_; //number of frequency lines in FITS File double numin_; double numax_; size_t nt_; //number of time steps in FITS File double dt_; double tmin_; double tmax_; public: FitsRW(); ///< Constructor FitsRW(const FitsRW&); ///< Copy constructor virtual FitsRW* clone() const ; virtual ~FitsRW() ; ///< Destructor // Accessors void numin(double numn); double numin() const; void numax(double numx); double numax() const; void nnu(size_t nn); size_t nnu() const; void tmin(double tmn); double tmin() const; void tmax(double tmx); double tmax() const; void nt(size_t nn); size_t nt() const; void dt(double dd); double dt() const; #ifdef GYOTO_USE_CFITSIO /** * \brief Creates a FITS file with dummy primary HDU * * * Opens a new fits file referred to by a fitsfile pointer * and fills the primary HDU by a single pixel equal to 0. * Returns the fitsfile pointer to the new FITS file. * * \param filename Name of fits file to be created * */ fitsfile* fitsCreate(std::string filename); /** * \brief Closes a fits file referred to by a fitsfile pointer * * * \param fptr fitsfile pointer to FITS file to be closed * */ void fitsClose(fitsfile* fptr); /** * \brief Writes specific HDU in FITS files * * * \param fptr fitsfile pointer to FITS file * \param extname Name of extension to be written * \param src Data to be written in extension * * \Brief Data has shape {nnu_,nt_} * */ void fitsWriteHDU(fitsfile* fptr, std::string extname, double* src); void fitsWriteParams(fitsfile* fptr, double n_e, double theta, double kappa, double BB, double t_inj); virtual std::vector fitsReadHDU(fitsfile* fptr, std::string extname, double *& dest); #endif void getIndices(size_t i[2], double const nu, double const tt, double* const freq_array) const ; double interpolate(double nu, double tt, double* const array, double* const freq_array) const ; }; #endifGyoto-2.0.2/include/GyotoFixedStar.h000066400000000000000000000062671455254334400173470ustar00rootroot00000000000000/** * \file GyotoFixedStar.h * \brief Fixed (i.e. non-moving) star * * The target of ray-traced Gyoto::Photon */ /* Copyright 2011 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoFixedStar_H_ #define __GyotoFixedStar_H_ #include #include #include namespace Gyoto{ namespace Astrobj { class FixedStar; } } #include #include /** * \class Gyoto::Astrobj::FixedStar. * \brief Fixed (i.e. non-moving) star (or spherical blob) * * The target of ray-traced Gyoto::Photon */ class Gyoto::Astrobj::FixedStar : public Astrobj::UniformSphere { friend class Gyoto::SmartPointer; // Data : // ----- protected: double pos_[3];///< x, y, z or r, theta, phi bool rotating_; ///< Whether the blob has a non-zero 3-velocity at Metric::circularVelocity(); note that the star anyway is fixed, but it can be useful to give it a non-zero velocity (that will enter the redshift computation) to simulate a snapshot on a rotating star // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; /** * Everything is undefined, call setCoordSys(), setPos() and * radius(). */ FixedStar();///< Default constructor FixedStar(const FixedStar& orig);///< Copy constructor virtual FixedStar* clone() const; FixedStar(SmartPointer gg, double StPsn[3], double radius); ///< Standard constructor virtual ~FixedStar() ; ///< Destructor public: // Accessors // --------- public: double const * getPos() const; ///< Get const pointer to pos_ void getPos(double* dst) const; ///< Get a copy of the pos_ array std::vector position() const; ///< Get vector copy of #pos_ void position(std::vector const&); ///< Set #pos_ from vector double rMax(); bool rotating() const ; void rotating(bool) ; using Generic::metric; virtual void metric(SmartPointer metric) ; using UniformSphere::radius; virtual void radius(double radius); ///< Set radius void setPos(const double[3]); ///< Set pos_ array // void setCoordSys(int); ///< set coordinate system // Outputs // ------- protected: virtual void getCartesian(double const * const dates, size_t const n_dates, double * const x, double * const y, double * const z, double * const xprime=NULL, double * const yprime=NULL, double * const zprime=NULL) ; virtual void getVelocity(double const pos[4], double vel[4]) ; }; #endif Gyoto-2.0.2/include/GyotoFlaredDiskSynchrotron.h000066400000000000000000000125741455254334400217350ustar00rootroot00000000000000/** * \file GyotoFlaredDiskSynchrotron.h * \brief A disk defined from a 2D grid in the equatorial plane * and extrapolated in the vertical direction with H/r<<1 */ /* Copyright 2019-2021 Frederic Vincent, Thibaut Paumard, Nicolas Aimar This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoFlaredDiskSynchrotron_H_ #define __GyotoFlaredDiskSynchrotron_H_ #include #include #include namespace Gyoto{ namespace Astrobj { class FlaredDiskSynchrotron; } class GridData2D; } #include #include #include /** * \class Gyoto::Astrobj::FlaredDiskSynchrotron */ class Gyoto::Astrobj::FlaredDiskSynchrotron : public Astrobj::Standard, public GridData2D, public Hook::Listener { friend class Gyoto::SmartPointer; private: SmartPointer spectrumKappaSynch_; std::string filename_; ///< Optional FITS file name containing the arrays double hoverR_; ///< Value of aspect ratio H/R of flared disk, where R is the radius projected in the equatorial plane and H the altitude above the equatorial plane double numberDensityMax_cgs_; ///< Maximum cgs value of number density double temperatureMax_; ///< Maximum temperature in K double BMax_cgs_; ///< Maximun strenght of the 3 veceor magnetic field, defined by numberDensityMax_cgs_, temperatureMax_ and beta_ double beta_; /** * An array of dimensionality double[nr_][nphi_][nt_]. In FITS * format, the first dimension is t, the second phi, and the third * r. */ double * density_; ///< Surface density (ν, r, φ) /** * An array of dimensionality double[nr_][nphi_][nt_][2]. In FITS format, * the second dimension is phi, and the third r. The first plane in * the first FITS dimention is dr/dt, the second dφ/dt. */ double * velocity_; ///< velocity(r, φ) double * Bvector_; ///< 4vector of the magnetic field double * time_array_; /// 1D Vector containing the times values of each time steps (dt not constant) double magnetizationParameter_; ///< (B2/(4 pi)) / (ne mp c2) double deltat_;///< time translation double gamm1_; /// polytropic index - 1 bool flag_; /// flag for a fixed magnetic field or average public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; // Constructors - Destructor // ------------------------- FlaredDiskSynchrotron(); ///< Standard constructor FlaredDiskSynchrotron(const FlaredDiskSynchrotron& ) ;///< Copy constructor virtual FlaredDiskSynchrotron* clone () const; ///< Cloner virtual ~FlaredDiskSynchrotron() ; ///< Destructor // Accessors // --------- public: void file(std::string const &f) ; std::string file() const; void hoverR(double const hor) ; double hoverR() const; /* timeTranslation shifts the value of GridData2D::tmin_ and tmax_, allowing to scan the full simulation without having to change the value of the Screen observation time (which is typically not provided in M unit in the XML). Choosing a negative timeTranslation, i.e. performing tmin_,tmax_-=dt, amounts to increasing the Screen observation time by the same value, tobs+=dt. */ void timeTranslation_inMunit(double const dt) ; double timeTranslation_inMunit() const ; void magnetizationParameter(double rr); double magnetizationParameter() const; void kappaIndex(double index); double kappaIndex()const; double numberDensityMax() const; double numberDensityMax(std::string const &unit) const; void numberDensityMax(double dens) ; void numberDensityMax(double dens, std::string const &unit); void temperatureMax(double tt); double temperatureMax() const; void polytropicIndex(double gamma); double polytropicIndex() const; void betaAtMax(double beta); double betaAtMax() const; void copyDensity(double const *const density, size_t const naxes[3]); double const * getDensity() const; void copyVelocity(double const *const velocity, size_t const naxes[3]); double const * getVelocity() const; void copyBvector(double const *const Bvector, size_t const naxes[3]); double const * getBvector() const; void copyTimeArray(double const *const time_array, size_t const ntimes); double const * getTimeArray() const; public: using Generic::metric; std::vector fitsRead(std::string filename) ; virtual double operator()(double const coord[4]) ; virtual void radiativeQ(double Inu[], double Taunu[], double const nu_ems[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]) const; virtual void getVelocity(double const pos[4], double vel[4]) ; }; #endif Gyoto-2.0.2/include/GyotoFreeStar.h000066400000000000000000000056521455254334400171660ustar00rootroot00000000000000/** * \file FreeStar.h * \brief UniformShere which follow a user-defined orbit with a constant speed. */ /* Copyright 2019 Frederic Vincent, Thibaut Paumard, Nicolas Aimar This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoFreeStar_H_ #define __GyotoFreeStar_H_ namespace Gyoto{ namespace Astrobj { class FreeStar; } } #include #include #include #include #include #ifdef GYOTO_USE_XERCES #include #endif #include /** * \class Gyoto::Astrobj::FreeStar * \brief UniformShere following a trajectory specified in getVelocity (non-geodesic) with a constant velocity * */ class Gyoto::Astrobj::FreeStar : public Gyoto::Astrobj::UniformSphere{ friend class Gyoto::SmartPointer; // Data : // ----- private: double* posIni_; // 4-position of the star in spherical coordinates double* fourveldt_; // 4-velocity of the star in spherical coordinates (dxi/dt, not dtau) bool posSet_; // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; // This object has a (non-inherited) Property list /** * Create FreeStar object with undefined initial conditions. One needs to * set the coordinate system, the metric, and the initial position * and velocity before integrating the orbit. initCoord() * can be used for that. */ FreeStar(); ///< Default constructor FreeStar(const FreeStar& orig); ///< Copy constructor virtual FreeStar * clone() const ; virtual ~FreeStar() ; ///< Destructor public: virtual std::string className() const ; ///< "FreeStar" virtual std::string className_l() const ; ///< "free_star" public: void initPosition(std::vector const &v); std::vector initPosition() const; void initVelocity(std::vector const &v); std::vector initVelocity() const; void initCoord(std::vector const &v); std::vector initCoord() const; void getCartesian(double const * const dates, size_t const n_dates, double * const x, double * const y, double * const z, double * const xprime=NULL, double * const yprime=NULL, double * const zprime=NULL); void getVelocity(double const pos[4], double vel[4]); }; #endifGyoto-2.0.2/include/GyotoFunctors.h000066400000000000000000000042611455254334400172510ustar00rootroot00000000000000/** * \file GyotoFunctors.h * \brief Classes with an operator() method */ /* Copyright 2011 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoFunctors_H_ #define __GyotoFunctors_H_ namespace Gyoto { /** * \namespace Gyoto::Functor * \brief Classes with an operator() method */ namespace Functor { class Double_constDoubleArray; class Double_Double_const; } } /** * \brief A functor like double (func) (double const data[]) */ class Gyoto::Functor::Double_constDoubleArray { public: virtual ~Double_constDoubleArray(); /** * \brief The actual function */ virtual double operator()(double const data[]) = 0; }; /** * \brief A functor like double (func) (double) const */ class Gyoto::Functor::Double_Double_const { public: virtual ~Double_Double_const(); /** * \brief Exit status code of "various" methods (at least secant() !) */ int status; /** * \brief The actual function */ virtual double operator()(double) const = 0; /** * \brief Ridder's root-finding method applied on operator()() * \param from, to boundaries for root-searching * \return the root */ double ridders(double from, double to) const; /** * \brief Secant root-finding method applied on operator()() * * Sets status to * -0 in case of convergence * -1 if two distinct inputs evaluated to the same output * -2 if maximum number of iterations (20) reached * * \param from, to boundaries for root-finding * \return the root */ double secant(double from, double to); }; #endif Gyoto-2.0.2/include/GyotoGridData2D.h000066400000000000000000000100671455254334400173140ustar00rootroot00000000000000/** * \file GyotoGridData2D.h * \brief Base class for reading 2D gridded data * * */ /* Copyright (c) 2019-2021 Frederic Vincent, Thibaut Paumard, Nicolas Aimar This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoGridData2D_H_ #define __GyotoGridData2D_H_ #include #include #include #ifdef GYOTO_USE_CFITSIO #include #endif namespace Gyoto { class GridData2D; } #ifdef GYOTO_USE_XERCES #include #endif /** * \class Gyoto::GridData2D * \brief Class for reading data stored in a 2D grid * * */ class Gyoto::GridData2D { private: double phimin_; ///< Minimum phi in grid double phimax_; ///< Maximum phi in grid double dphi_; ///< δφ between two grid columns size_t nphi_; ///< Grid size in the φ direction double dr_; ///< Radius step size_t nr_; ///< Grid size in the r direction double rmin_; ///< Minimum r in grid double rmax_; ///< Maximum r in grid double dt_; ///< Time step, if not constant would be ignored size_t nt_; ///< Grid size in the t direction double tmin_; ///< Minimum t in grid double tmax_; ///< Maximum t in grid //NB: phimin, phimax are always assumed to be 0, 2pi public: GridData2D(); ///< Constructor GridData2D(const GridData2D&); ///< Copy constructor virtual GridData2D* clone() const ; virtual ~GridData2D() ; ///< Destructor // Accessors void rmin(double rmn); double rmin() const; void rmax(double rmx); double rmax() const; void nr(size_t nn); size_t nr() const; void dr(double dd); double dr() const; void phimin(double phimn); double phimin() const; void phimax(double phimx); double phimax() const; void dphi(double dd); double dphi() const; void tmin(double tmn); double tmin() const; void tmax(double tmx); double tmax() const; void nt(size_t nn); size_t nt() const; void nphi(size_t nn); size_t nphi() const; #ifdef GYOTO_USE_CFITSIO virtual std::vector fitsReadHDU(fitsfile* fptr, std::string extname, double *& dest, size_t length = 0); /** * \brief Creates a FITS file with dummy primary HDU * * * Opens a new fits file referred to by a fitsfile pointer * and fills the primary HDU by a single pixel equal to 0. * Returns the fitsfile pointer to the new FITS file. * * \param filename Name of fits file to be created * */ fitsfile* fitsCreate(std::string filename); /** * \brief Closes a fits file referred to by a fitsfile pointer * * * \param fptr fitsfile pointer to FITS file to be closed * */ void fitsClose(fitsfile* fptr); /** * \brief Writes specific HDU in FITS files * * * \param fptr fitsfile pointer to FITS file * \param extname Name of extension to be written * \param src Data to be written in extension * \param length Data has shape {nr_,nphi_,nt_} if length is 0 (default; used for storing * scalar data), * or {nr_,nphi_,nt_,length} if length is not 0 (used for storing vector data, * e.g.: length=2 - (v_r, v_phi) - for velocity) * */ void fitsWriteHDU(fitsfile* fptr, std::string extname, double* src, size_t length = 0) ; #endif void getIndices(size_t i[3], double const tt, double const phi, double const rr, double* const time_array=NULL) const ; double interpolate(double tt, double phi, double rr, double* const array, double* const time_array=NULL) const ; }; #endif Gyoto-2.0.2/include/GyotoHayward.h000066400000000000000000000073351455254334400170520ustar00rootroot00000000000000/** * \file GyotoHayward.h * \brief Metric of a regular rotating black hole or naked worm-hole * * This is a regular rotating extension of Hayward's metric. * * See Lamy et al. (2018), Classical and Quantum Gravity, submitted, * https://arxiv.org/abs/1802.01635 */ /* Copyright 2018 Frederic Lamy, Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoHayward_H_ #define __GyotoHayward_H_ namespace Gyoto { namespace Metric { class Hayward; } } #include #include #ifdef GYOTO_USE_XERCES #include #endif /** * \class Gyoto::Metric::Hayward * \brief Metric of a regular rotating black hole or naked worm-hole * * This is a regular rotating extension of Hayward's metric. * * The metric reads: ds^2=-(1-2*M(r)*r/Sigma)*dt^2-(4*a*M(r)*sin^2(theta)/Sigma)*dt*dphi+(Sigma/Delta)*dr^2+(Sigma)*dtheta^2+sin^2(theta)*[r^2+a^2+2*a^2*r*M(r)*sin^2(theta)/Sigma]*dphi^2, * where: * Sigma=r^2+a^2*cos^2(theta) * Delta=r^2-2*M(r)*r+a^2 * M(r)=M*abs(r)^3/(abs(r)^3+2*m*b^2), m being the mass of the black hole seen at infinity and b a magnetic charge parameter. * * See Lamy et al. (2018), Classical and Quantum Gravity, submitted, * https://arxiv.org/abs/1802.01635 * * See Hayward (2006) for the original nonrotating metric, * https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.96.031103 * * See Bambi & Modesto (2013) for a rotating (but singular) extension. * https://www.sciencedirect.com/science/article/pii/S0370269313002505?via%3Dihub */ class Gyoto::Metric::Hayward : public Metric::Generic { friend class Gyoto::SmartPointer; // Data : // ----- protected: double charge_; ///< Magnetic charge parameter double spin_ ; ///< Angular momentum parameter double a2_ ; ///< spin_*spin_ double a3_ ; ///< a2_*spin_ double a4_ ; ///< a2_*a2_ double b2_; ///< charge_*charge_ // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; Hayward(); ///< Default constructor virtual Hayward * clone () const ; // Accessors // --------- void spin(const double spin); ///< Set spin double spin() const ; ///< Returns spin void charge(const double charge); ///< Set charge double charge() const ; ///< Returns charge // Methods needed for PolishDoughnut virtual double getSpecificAngularMomentum(double rr) const; virtual double getPotential(double const pos[4], double l_cst) const; // Keplerian equatorial orbits angular velocity virtual void circularVelocity(double const coor[4], double vel[4], double dir) const; // Actual space-time API void gmunu(double ARGOUT_ARRAY2[4][4], const double IN_ARRAY1[4]) const ; double gmunu(double const x[4], int mu, int nu) const ; void gmunu_up(double ARGOUT_ARRAY2[4][4], const double IN_ARRAY1[4]) const ; double gmunu_up(double const x[4], int mu, int nu) const ; using Generic::christoffel; int christoffel(double dst[4][4][4], const double pos[4]) const ; // Optimized double ScalarProd(const double pos[4], const double u1[4], const double u2[4]) const ; }; #endif Gyoto-2.0.2/include/GyotoHooks.h000066400000000000000000000071151455254334400165320ustar00rootroot00000000000000/** * \file GyotoHooks.h * \brief Tellers tell Listeners when they mutate * * A Listener can hook() to a Teller. The Teller will tell it when * it mutates using Listener::tell(), usually through the highter * lever Teller::tellListeners(). The Listener can later * unhook(). The Listener must therefore implement Listener::tell() * to react when it is told. */ /* Copyright 2012-2013 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoHooks_h #define __GyotoHooks_h /** * \namespace Gyoto::Hook * \brief Listeners attach to Tellers * * A Listener can hook() to a Teller. The Teller will tell it when * it mutates using Listener::tell(), usually through the highter * lever Teller::tellListeners(). The Listener can later * unhook(). The Listener must therefore implement Listener::tell() * to react when it is told. */ namespace Gyoto { namespace Hook { /** * \class Teller * \brief Listen to me and I'll warn you when I change * * Listen to me by calling my hook() method. */ class Teller; /** * \class Listener * \brief I might listen to a Teller * * Whisper to my ear by using my tell() method. */ class Listener; } } class Gyoto::Hook::Listener { friend class Gyoto::Hook::Teller; public: Listener(); ///< Constructor virtual ~Listener(); ///< Destructor protected: /** * \brief This is how a Teller tells * * A teller will basically call listener->tell(this). * * \param msg Teller* the Teller who is telling... Useful if the * Listener listens to several Tellers. */ virtual void tell(Gyoto::Hook::Teller *msg); }; class Gyoto::Hook::Teller { friend class Gyoto::Hook::Listener; private: /** * \class ListenerItem * \brief Private (undocumented) class to hold listeners_ */ class ListenerItem; /** * \brief Linked list of Listener items */ ListenerItem *listeners_; public: Teller(); ///< Default constructor Teller(const Teller &); ///< Copy constructor virtual ~Teller(); ///< Destructor /** * \brief Start listening * * Use from a Hook::Listener object method: * \code * teller->hook(this) * \endcode * where "this" is a Listener and "teller" is a Teller. * * Use unhook() later to stop listening to a given Teller. * * \param listener pointer to the new listener */ virtual void hook (Listener * listener); /** * \brief Stop listening * * Use from a Hook::Listener object method: * \code * teller->unhook(this) * \endcode * where "this" is a Listener, "teller" is a Teller, and "this" has * called teller->hook(this) previously. * * \param listener pointer to the listener */ virtual void unhook (Listener * listener); protected: /** * \brief Call tell() on each hooked Listener * * Whenever a Teller mutates, it should warn any Listener hooked to * it using tellListeners(). */ virtual void tellListeners(); }; #endif Gyoto-2.0.2/include/GyotoInflateStar.h000066400000000000000000000061501455254334400176610ustar00rootroot00000000000000/** * \file GyotoInflateStar.h * \brief Mass-less, spherical object following a timelike geodesic * * A Gyoto::InflateStar evolves in a Gyoto::Metric following time-like * geodesics and is a Gyoto::Astrobj::Generic suitable for * ray-tracing. */ /* Copyright 2011, 2013, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoInflateStar_H_ #define __GyotoInflateStar_H_ namespace Gyoto{ namespace Astrobj { class InflateStar; } } #include #include #ifdef GYOTO_USE_XERCES #include #endif #include /** * \class Gyoto::Astrobj::InflateStar * \brief An Astrobj::Star with growing size * */ class Gyoto::Astrobj::InflateStar : public Gyoto::Astrobj::Star { friend class Gyoto::SmartPointer; // Data : // ----- private: double timeinflateinit_; ///< coordinate time of starting inflation double timeinflatestop_; ///< coordinate time of stopping inflation double radiusstop_; ///< maximum radius of star // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; // This object has a (non-inherited) Property list /** * Create InflateStar object with undefined initial conditions. One needs to * set the coordinate system, the metric, and the initial position * and velocity before integrating the orbit. setInititialCondition() * can be used for that. */ InflateStar(); ///< Default constructor InflateStar(const InflateStar& orig); ///< Copy constructor virtual InflateStar * clone() const ; virtual ~InflateStar() ; ///< Destructor GYOTO_OBJECT_ACCESSORS_UNIT(timeInflateInit); GYOTO_OBJECT_ACCESSORS_UNIT(timeInflateStop); GYOTO_OBJECT_ACCESSORS_UNIT(radiusStop); using Star::radius; virtual double radiusAt(double t) const; ///< Radius at a given time virtual double radiusAt(double t, const std::string &t_unit) const; ///< Radius at a given time virtual double radiusAt(double t, const std::string &t_unit, const std::string &r_unit) const; ///< Radius at a given time // Accessors // --------- public: virtual std::string className() const ; ///< "InflateStar" virtual std::string className_l() const ; ///< "inflate_star" public: virtual int Impact(Gyoto::Photon* ph, size_t index, Astrobj::Properties *data=NULL); virtual double emission(double nu_em, double dsem, state_t const &cp, double const co[8]=NULL) const; }; #endif Gyoto-2.0.2/include/GyotoJet.h000066400000000000000000000137121455254334400161710ustar00rootroot00000000000000/** * \file GyotoJet.h * \brief Simple jet model with thermal or kappa-distribution * synchrotron emission from Pandya et al. (2016) * * This class implements a jet defined as the volume contained * between the two conical surfaces defined by angles jetInnerOpeningAngle_ * and jetOuterOpeningAngle_, with apex located on the black hole rotation * axis at altitude jetBaseHeight_ in units of M. * * The Lorentz factor is assumed constant at gammaJet_. * The electron number density at the base of the jet is baseNumberDensity_cgs_, * its z-evolution is dedictated by mass conservation. * The electron temperature is baseTemperature_, its z-evolution is assumed * to follow a power law z^temperatureSlope_. The magnetic field * amplitude is defined by the magnetization parameter, * magnetizationParameter_. * * The jet emits synchrotron radiation, assuming that the electrons * follow a thermal or kappa distribution, ie the smooth gluing of a thermal * distribution at low electron Lorentz factor, to a power-law distribution * at high electron Lorentz factor. This distribution, as well as the * resulting emission and absorption coefficients are taken from: * Pandya et al., ApJ, 822, 34 (2016), section 5.3.3 */ /* Copyright 2017-2019 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoJet_H_ #define __GyotoJet_H_ #include #include #include namespace Gyoto{ namespace Astrobj { class Jet; } } #include #include #include /** * \class Gyoto::Astrobj::Jet * \brief Simple jet model with thermal or kappa-distribution * synchrotron emission from Pandya et al. (2016) * * This class implements a jet defined as the volume contained * between the two conical surfaces defined by angles jetInnerOpeningAngle_ * and jetOuterOpeningAngle_, with apex located on the black hole rotation * axis at altitude jetBaseHeight_ in units of M. * * The Lorentz factor is assumed constant at gammaJet_. * The electron number density at the base of the jet is baseNumberDensity_cgs_, * its z-evolution is dedictated by mass conservation. * The electron temperature is baseTemperature_, its z-evolution is assumed * to follow a power law z^temperatureSlope_. The magnetic field * amplitude is defined by the magnetization parameter, * magnetizationParameter_. * * The jet emits synchrotron radiation, assuming that the electrons * follow a thermal or kappa distribution, ie the smooth gluing of a thermal * distribution at low electron Lorentz factor, to a power-law distribution * at high electron Lorentz factor. This distribution, as well as the * resulting emission and absorption coefficients are taken from: * Pandya et al., ApJ, 822, 34 (2016), section 5.3.3 */ class Gyoto::Astrobj::Jet : public Astrobj::Standard, public Hook::Listener { friend class Gyoto::SmartPointer; private: SmartPointer spectrumKappaSynch_; SmartPointer spectrumThermalSynch_; double jetOuterOpeningAngle_; ///< Jet outer opening angle (rad) double jetInnerOpeningAngle_; ///< Jet inner opening angle (rad) double jetBaseHeight_; ///< Height of the base of the jet (z value, M units) double gammaJet_; ///< Constant Lorentz factor in jet double jetVphiOverVr_; ///< this is (r*Vphi/Vr) where V is the jet velocity measured by the ZAMO double baseNumberDensity_cgs_; ///< electron nb density at jet base (cgs) double baseTemperature_; ///< electron temperature at jet base (K) double temperatureSlope_; ///< electron temperature \propto z^temperatureSlope_ double magnetizationParameter_; ///< Pmagn/(ne mp c2) // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; Jet(); ///< Standard constructor Jet(const Jet& ) ;///< Copy constructor virtual Jet* clone () const; ///< Cloner virtual ~Jet() ; ///< Destructor // Accessors // --------- public: void jetOuterOpeningAngle(double ang); double jetOuterOpeningAngle() const; void jetInnerOpeningAngle(double ang); double jetInnerOpeningAngle() const; void jetBaseHeight(double hh); double jetBaseHeight() const; void gammaJet(double gam); double gammaJet() const; void jetVphiOverVr(double alpha); double jetVphiOverVr() const; double baseNumberDensity() const; double baseNumberDensity(std::string const &unit) const; void baseNumberDensity(double ne); void baseNumberDensity(double dens, std::string const &unit); void baseTemperature(double tt); double baseTemperature()const; void temperatureSlope(double ss); double temperatureSlope()const; void magnetizationParameter(double rr); double magnetizationParameter()const; void kappaIndex(double index); double kappaIndex()const; public: using Generic::metric; virtual void metric(SmartPointer); virtual double operator()(double const coord[4]) ; virtual void radiativeQ(double Inu[], double Taunu[], double const nu_em[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]=NULL) const ; virtual void getVelocity(double const pos[4], double vel[4]) ; }; #endif Gyoto-2.0.2/include/GyotoKappaDistributionSynchrotronSpectrum.h000066400000000000000000000134611455254334400251000ustar00rootroot00000000000000/** * \file GyotoKappaDistributionSynchrotronSpectrum.h * \brief Powerlaw synchrotron spectrum * */ /* Copyright 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoKappaDistributionSynchrotronSpectrum_H_ #define __GyotoKappaDistributionSynchrotronSpectrum_H_ #include "GyotoSpectrum.h" #include namespace Gyoto { namespace Spectrum { class KappaDistributionSynchrotron; } } /** * \class Gyoto::Spectrum::KappaDistributionSynchrotron * \brief Kappa-distribution synchrotron spectrum from Pandya et al. (2016) * * * Example XML entity: * \code * * * \endcode * */ class Gyoto::Spectrum::KappaDistributionSynchrotron : public Gyoto::Spectrum::Generic { friend class Gyoto::SmartPointer; protected: SmartPointer spectrumBB_; ///< blackbody emission double numberdensityCGS_; ///< Number density in CGS UNITS (careful) double angle_B_pem_; ///< Angle between Bfield and emission direction (rad) double cyclotron_freq_; ///< Cyclotron frequency (e*B / 2*pi*me*c) double thetae_; ///< Dimensionless electron temperature double kappaindex_; ///< Kappa distribution index double hypergeometric_; ///< Hypergeometric function evaluation bool angle_averaged_; ///< Boolean for angle averaging double gamma_max_; ///< Maximum gamma value to integer the distribution public: GYOTO_OBJECT; KappaDistributionSynchrotron(); KappaDistributionSynchrotron(const KappaDistributionSynchrotron &); virtual KappaDistributionSynchrotron * clone() const; ///< Cloner using Gyoto::Spectrum::Generic::operator(); /** * This function returns the optically thick Inu * which is not defined here, returns an error * * \param nu frequency in Hz */ virtual double operator()(double nu) const; /** * This function returns the optically thin increment * to intensity dI_nu = j_nu*ds*exp(-alpha_nu*ds) * in SI units * * \param nu frequency in Hz * \param ds length element in SI (careful to this) */ #ifndef GYOTO_SWIGIMPORTED virtual double operator()(double nu,double ,double ds) const; #endif // NB: the second argument, opacity in the Spectrum API // is useless here double numberdensityCGS() const; void numberdensityCGS(double rho); double angle_B_pem() const; void angle_B_pem(double aa); double cyclotron_freq() const; void cyclotron_freq(double ff); double thetae() const; void thetae(double th); double kappaindex() const; void kappaindex(double ind); double hypergeometric() const; void hypergeometric(double hh); bool angle_averaged() const; void angle_averaged(bool ang); double gamma_max() const; void gamma_max(double gammaMax); /** * Returns the emission coefficient j_nu in cgs units * i.e. erg cm^-3 s^-1 ster^-1 Hz^-1 * * \param nu frequency in Hz */ double jnuCGS(double nu) const; /** * Returns the Stokes Q emission coefficient j_nu in cgs units * i.e. erg cm^-3 s^-1 ster^-1 Hz^-1 * * \param nu frequency in Hz */ double jQnuCGS(double nu) const; /** * Returns the Stokes U emission coefficient j_nu in cgs units * i.e. erg cm^-3 s^-1 ster^-1 Hz^-1 * * \param nu frequency in Hz */ double jUnuCGS(double nu) const; /** * Returns the Stokes V emission coefficient j_nu in cgs units * i.e. erg cm^-3 s^-1 ster^-1 Hz^-1 * * \param nu frequency in Hz */ double jVnuCGS(double nu) const; /** * Returns the absorption coefficient alpha_nu in cgs units [cm^-1] * * \param nu frequency in Hz */ double alphanuCGS(double nu) const; /** * Returns the Stokes Q absorption coefficient alpha_nu in cgs units [cm^-1] * * \param nu frequency in Hz */ double alphaQnuCGS(double nu) const; /** * Returns the Stokes U absorption coefficient alpha_nu in cgs units [cm^-1] * * \param nu frequency in Hz */ double alphaUnuCGS(double nu) const; /** * Returns the Stokes V absorption coefficient alpha_nu in cgs units [cm^-1] * * \param nu frequency in Hz */ double alphaVnuCGS(double nu) const; /** * Returns the Stokes Q Faraday rotation coefficient in cgs units [cm^-1] * * \param nu frequency in Hz */ double rQnuCGS(double nu) const; /** * Returns the Stokes U Faraday rotation coefficient in cgs units [cm^-1] * * \param nu frequency in Hz */ double rUnuCGS(double nu) const; /** * Returns the Stokes V Faraday rotation coefficient in cgs units [cm^-1] * * \param nu frequency in Hz */ double rVnuCGS(double nu) const; /** * Returns the emission and absorption coef in SI * */ void radiativeQ(double jnu[], // output double anu[], // output double const nu_ems[], size_t nbnu ) ; /** * Returns the emission, absorption and Fraday rotation coef in SI for the 4 Stokes parameters * */ void radiativeQ(double jInu[], double jQnu[], double jUnu[], double jVnu[], double aInu[], double aQnu[], double aUnu[], double aVnu[], double rQnu[], double rUnu[], double rVnu[], double const nu_ems[], size_t nbnu ); }; #endif Gyoto-2.0.2/include/GyotoKerrBL.h000066400000000000000000000134161455254334400165710ustar00rootroot00000000000000/** * \file GyotoKerrBL.h * \brief KerrBL metric * */ /* Copyright 2011, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoKerrBL_H_ #define __GyotoKerrBL_H_ namespace Gyoto { namespace Metric { class KerrBL; } } #include #include #ifdef GYOTO_USE_XERCES #include #endif /// Default value for difftol_ #define GYOTO_KERRBL_DEFAULT_DIFFTOL 1e-2 /** * \class Gyoto::Metric::KerrBL * \brief Metric around a Kerr black-hole in Boyer-Lindquist coordinates */ class Gyoto::Metric::KerrBL : public Metric::Generic { friend class Gyoto::SmartPointer; // Data : // ----- protected: double spin_ ; ///< Angular momentum parameter double a2_ ; ///< spin_*spin_ double a3_ ; ///< a2_*spin_ double a4_ ; ///< a2_*a2_ /// Numerical tuning parameter /** * Small values yield more accurate integration at the expanse of * computing time. */ double difftol_; double rsink_; ///< numerical horizon double drhor_; ///< horizon security bool generic_integrator_; ///< which integrator to use // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; KerrBL(); ///< Default constructor virtual KerrBL * clone () const ; // Accessors // --------- public: void spin(const double spin); ///< Set spin double spin() const ; ///< Returns spin double difftol() const; ///< Get difftol_ void difftol(double t); ///< Set difftol_ void horizonSecurity(double drhor); double horizonSecurity() const; void genericIntegrator(bool); bool genericIntegrator() const ; virtual double getRms() const; virtual double getRmb() const; virtual double getSpecificAngularMomentum(double rr) const; virtual double getPotential(double const pos[4], double l_cst) const; void gmunu(double ARGOUT_ARRAY2[4][4], const double IN_ARRAY1[4]) const ; double gmunu(double const x[4], int mu, int nu) const ; /** * \brief gμ,ν */ void gmunu_up(double ARGOUT_ARRAY2[4][4], const double IN_ARRAY1[4]) const ; double gmunu_up(double const x[4], int mu, int nu) const ; using Generic::christoffel; int christoffel(double dst[4][4][4], const double pos[4]) const ; double ScalarProd(const double pos[4], const double u1[4], const double u2[4]) const ; void nullifyCoord(double coord[8], double & tdot2) const; void nullifyCoord(double coord[8]) const; // friend std::ostream& operator<<(std::ostream& , const KerrBL& ) ; // std::ostream& print(std::ostream&) const ; virtual void circularVelocity(double const pos[4], double vel [4], double dir=1.) const ; virtual void zamoVelocity(double const pos[4], double vel[4]) const ; public: virtual void MakeCoord(const double coordin[8], const double cst[5], double coordout[8]) const ; ///< Inverse function of MakeMomentumAndCst ///< Computes pr, ptheta, E and L from rdot, thetadot, phidot, tdot void MakeMomentum(const double coordin[8], const double cst[5], double coordout[8]) const; ///< Transforms from Boyer-Lindquist coordinates [t,r,th,phi,tdot,rdot,thdot,phidot] to [t,r,th,phi,pt,pr,pth,pphi] where pt,pr... are generalized momenta. protected: // outside the API /* RK4 : y=[r,theta,phi,t,pr,ptheta], cst=[a,E,L,Q,1/Q],dy/dtau=F(y,cst), h=proper time step. For KerrBL geodesic computation. */ int myrk4(Worldline * line, Gyoto::state_t const &coordin, double h, Gyoto::state_t &res) const; //external-use RK4 public: int myrk4(const double coor[8], const double cst[5], double h, double res[8]) const;///< Internal-use RK4 proxy int myrk4_adaptive(Gyoto::Worldline* line, Gyoto::state_t const &coor, double lastnorm, double normref, Gyoto::state_t &coor1, double h0, double& h1, double h1max=GYOTO_DEFAULT_DELTA_MAX) const; ///< Internal-use adaptive RK4 proxy /** * \brief Ensure conservation of the constants of motion * * Tweak thetadot if necessary. */ private: int CheckCons(const double coor_init[8], const double cst[5], double coor_fin[8]) const; /** * \brief Normalize 4-velocity * * To 0 or -1. Changes rdot to allow norm conservation. */ void Normalize4v(double coord[8], const double part_mass) const; public: /** F function such as dy/dtau=F(y,cst) */ using Metric::Generic::diff; private: /** * \brief Used in RK4 proxies. */ virtual int diff(const double y[8], const double cst[5], double res[8]) const ; virtual int diff31(state_t const &x, state_t &dxdt, double mass) const ; /** * Compute lapse and shift at given coordinates */ virtual void computeNBeta(const double coord[4],double &NN,double beta[3]) const;//Compute lapse and shift at coord /** Integrator. Computes the evolution of y (initcond=y(0)). */ virtual void computeCst(const double coord[8], double cst[5]) const; public: void setParticleProperties(Worldline* line, const double* coord) const; virtual int isStopCondition(double const coord[8]) const; virtual void observerTetrad(double const pos[4], double fourvel[4], double screen1[4], double screen2[4], double screen3[4]) const ; }; #endif Gyoto-2.0.2/include/GyotoKerrKS.h000066400000000000000000000060771455254334400166160ustar00rootroot00000000000000/** * \file GyotoKerrKS.h * \brief KerrKS metric * * Warning: this metric is seldom used and may be buggy. */ /* Copyright 2011-2015 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoKerrKS_H_ #define __GyotoKerrKS_H_ namespace Gyoto { namespace Metric { class KerrKS; } } #include #include #ifdef GYOTO_USE_XERCES #include #endif /** * \class Gyoto::Metric::KerrKS * \brief Metric around a Kerr black-hole in Kerr-Schild coordinates * Warning: this metric is seldom used and may be buggy. * * By default, uses the generic integrator * (Metric::Generic::myrk4()). Use \code \endcode * to use the specific integretor which is, as of writting, buggy. */ class Gyoto::Metric::KerrKS : public Metric::Generic { friend class Gyoto::SmartPointer; // Data : // ----- protected: double spin_ ; ///< Angular momentum parameter double a2_; ///< spin_*spin_ double rsink_; ///< numerical horizon double drhor_; ///< horizon security // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; KerrKS(); ///< Default constructor virtual KerrKS* clone () const; ///< Copy constructor // Mutators / assignment // --------------------- public: // default operator= is fine void spin(const double spin); ///< Set spin // Accessors // --------- public: double spin() const ; ///< Returns spin void horizonSecurity(double drhor); double horizonSecurity() const; virtual double gmunu(double const x[4], int alpha, int beta) const ; virtual void gmunu(double ARGOUT_ARRAY2[4][4], const double IN_ARRAY1[4]) const ; using Gyoto::Metric::Generic::gmunu_up; /** *\brief The inverse matrix of gmunu */ virtual void gmunu_up(double ARGOUT_ARRAY2[4][4], const double IN_ARRAY1[4]) const; /** * \brief The derivatives of gmunu * * Used in the test suite */ virtual void jacobian(double ARGOUT_ARRAY3[4][4][4], const double x[4]) const ; virtual void gmunu_up_and_jacobian(double ARGOUT_ARRAY2[4][4], double ARGOUT_ARRAY3[4][4][4], const double IN_ARRAY1[4]) const; virtual void circularVelocity(double const pos[4], double vel [4], double dir=1.) const ; virtual int isStopCondition(double const coord[8]) const; virtual int setParameter(std::string name, std::string content, std::string unit); }; #endif Gyoto-2.0.2/include/GyotoMetric.h000066400000000000000000000517511455254334400166770ustar00rootroot00000000000000/** * \file GyotoMetric.h * \brief Base class for metric description * * Classes which represent a metric (e.g. Gyoto::Kerr) should inherit * from Gyoto::Metric::Generic and implement all of the virtual * methods plus at least one of the gmunu methods and one of the * christoffel methods. * */ /* Copyright 2011-2016, 2018-2020 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoMetric_H_ #define __GyotoMetric_H_ #include #include #include #include #include #include #include #include #include #include namespace Gyoto { namespace Metric { class Generic; /// A function to build instances of a specific Metric::Generic sub-class /** * This is a more specific version of the * SmartPointee::Subcontractor_t type. A Metric::Subcontrator_t is * called by the Gyoto::Factory to build an instance of the kind * of metric specified in an XML file (see Register()). The * Factory and Subcontractor_t function communicate through a * Gyoto::FactoryMessenger. */ typedef SmartPointer Subcontractor_t(FactoryMessenger*, std::vector const &); /** * \brief Subcontractor template * * Instead of reimplementing the wheel, your subcontractor can simply be * Gyoto::Metric::Subcontractor * * \tparam T Sub-class of Metric::Generic */ template SmartPointer Subcontractor (FactoryMessenger* fmp, std::vector const &plugins) { SmartPointer gg = new T(); gg -> plugins(plugins); #ifdef GYOTO_USE_XERCES if (fmp) gg -> setParameters(fmp); #endif return gg; } /// Query the Metric register /** * Query the Metric register to get the Metric::Subcontractor_t * correspondig to a given kind name. This function is normally * called only from the Factory. If plugin is specified, only a * subcontractor matching both name and plugin will be returned, * loading the plug-in if necessary. If plugin is the empty * string, then the first subcontractor matching name will be * returned, and the name of the plug-in it belongs to will be * returned in plugin upon output. * * \param[in] name e.g. "KerrBL" * \param[inout] plugin e.g. "stdplug". * \param[in] errmode int=0. If errmode==0, failure to find a * registered Metric by that name is an error. Else, simply * return NULL pointer in that case. * \return pointer to the corresponding subcontractor. */ Gyoto::Metric::Subcontractor_t* getSubcontractor(std::string name, std::vector &plugin, int errmode=0); /// The Metric register /** * Use the Metric::initRegister() once in your program to * initiliaze it, the Metric::Register() function to fill it, and * the Metric::getSubcontractor() function to query it. */ extern Register::Entry * Register_; /// Make a Metric kind known to the Factory /** * Register a new Metric::Generic sub-class so that the * Gyoto::Factory knows it. * * \param kind The kind name which identifies this object type in * an XML file, as in <Metric kind="name"> * * \param scp A pointer to the subcontractor, which will * communicate with the Gyoto::Factory to build an instance of * the class from its XML description */ void Register(std::string kind, Gyoto::Metric::Subcontractor_t* scp); /// Empty the Metric register. /** * This must be called once. It is called by * Gyoto::Register::init(). */ void initRegister(); } /* Documented elswhere */ class Worldline; } /** * \namespace Gyoto::Metric * \brief Access to metrics * * Objects which describe space-time geometry must inherit from the * Gyoto::Metric::Generic class. * * To be usable, a Metric::Generic sub-class should register a * Metric::Subcontractor_t function using the Metric::Register() * function. See also \ref writing_plugins_page . */ /** * \class Gyoto::Metric::Generic * \brief Base class for metrics * * Example: class Gyoto::Metric::KerrBL * * See Gyoto::Metric for an introduction. * */ class Gyoto::Metric::Generic : public Gyoto::SmartPointee, public Gyoto::Object, public Gyoto::Hook::Teller { friend class Gyoto::SmartPointer; private: double mass_; ///< Mass yielding geometrical unit (in kg). int coordkind_; ///< Kind of coordinates (cartesian-like, spherical-like, unspecified) /** * \brief Whether some virtual methods are implemented * * The default implementations of some methods call * one-another. This member is used internally to avoid infinite * recursion. */ int __defaultfeatures; protected: double delta_min_; ///< Minimum integration step for the adaptive integrator double delta_max_; ///< Maximum integration step for the adaptive integrator /** * \brief Numerical tuning parameter * * Ensure that delta (the numerical integration step) is never * larger than a fraction of the distance between the current * location and the center of the coordinate system. * * For investigations close to the event horizon, 0.5 is usually * fine. If high accuracy is needed long after deflection (weak * lensing), then this must be smaller. A good test is to look at a * MinDistance map for a FixedStar: it must be smooth. */ double delta_max_over_r_; bool keplerian_; ///< 1 if circularVelocity should return the Newtonian Keplerian velocity, in r^-3/2 protected: /** * \brief Set coordkind_ * * coordkind(int coordkind) is protected because, for most Metrics, * it should not be changed in runtime. */ void coordKind(int coordkind); ///< Set coordinate kind public: GYOTO_OBJECT; int getRefCount(); // Constructors - Destructor // ------------------------- Generic(); Generic(const int coordkind, const std::string &name); ///< Constructor setting Generic::coordkind_ and kind_ Generic(Generic const &o); ///< Copy constructor virtual ~Generic() ; ///< Destructor // Mutators / assignment // --------------------- virtual Generic * clone() const ; ///< Virtual copy constructor virtual void mass(const double); ///< Set mass used in unitLength() virtual void mass(const double, const std::string &unit); ///< Set mass used in unitLength() // Accessors int coordKind() const; ///< Get coordinate kind double mass() const; ///< Get mass used in unitLength() double mass(const std::string &unit) const; ///< Get mass used in unitLength() /** * Metrics implementations are free to express lengths and distances * in whatever unit they see fit (presumably most often geometrical * units). This function returns this unit in SI (meters). */ double unitLength() const ; ///< M * G / c^2, M is in kg, unitLength in meters double unitLength(const std::string &unit) const ; ///< unitLength expressed in specified unit /** * Returns the marginally bound radius * Should be implemented in derived classes if useful * If called on the base class, returns an error */ virtual double getRmb() const; /** * Returns the marginally stable (ISCO) radius * Should be implemented in derived classes if useful * If called on the base class, returns an error */ virtual double getRms() const; /** * Returns the specific angular momentum l=-u_phi/u_t * Should be implemented in derived classes if useful * If called on the base class, returns an error */ virtual double getSpecificAngularMomentum(double rr) const; /** * Returns potential W=-ln(|u_t|) for a cst specific angular momentum l_cst * Should be implemented in derived classes if useful * If called on the base class, returns an error */ virtual double getPotential(double const pos[4], double l_cst) const; /** * Get delta_min_ */ double deltaMin() const; /** * Set delta_min_ */ void deltaMin(double h1); /** * Get delta_max_ */ double deltaMax() const; /** * Get delta max at a given position * * \param pos 4-position * \param[optional] delta_max_external external constraint on delta_max * \return the smallest value between delta_max_, * delta_max_external, and R*delta_max_over_r_ where R is pos[1] in * spherical coordinates and max(x1, x2, x3) in Cartesian * coordinates. */ virtual double deltaMax(double const pos[8], double delta_max_external) const; /** * Set delta_max_ */ void deltaMax(double h1); double deltaMaxOverR() const; ///< Get delta_max_over_r_ void deltaMaxOverR(double t); ///< Set delta_max_over_r_ bool keplerian() const; ///< Get keplerian_ void keplerian(bool); ///< Set keplerian_ virtual void cartesianVelocity(double const coord[8], double vel[3]); ///< Compute xprime, yprime and zprime from 8-coordinates /** * \param coord 4-position (geometrical units); * \param v 3-velocity dx1/dx0, dx2/dx0, dx3/dx0; * \return tdot = dx0/dtau. */ virtual double SysPrimeToTdot(const double coord[4], const double v[3]) const; ///μ,ν at point x */ virtual double gmunu(double const x[4], int mu, int nu) const; /** * \brief Metric coefficients * * The default implementation calls double gmunu(const double * x, int mu, int nu) const. * * \param[out] ARGOUT_ARRAY2 (g) 4x4 array to store the coeefficients * \param[in] IN_ARRAY1 (x) 4-position at which to compute the coefficients; * \return Metric coefficient gμ,ν at point x */ // Keep argument names for swig! virtual void gmunu(double ARGOUT_ARRAY2[4][4], double const IN_ARRAY1[4]) const; /** * \brief Metric contravariant coefficients * * The default implementation calls Metric:: gmunu_up(double g[4][4], const double * pos) const * * \param x 4-position at which to compute the coefficient; * \param mu 1st index of coefficient, 0≤μ≤3; * \param nu 2nd index of coefficient, 0≤ν≤3; * \return Metric coefficient gμ,ν at point x */ virtual double gmunu_up(double const x[4], int mu, int nu) const; /** * \brief Metric contravariant coefficients * * The default implementation inverts the covariant coefficients matrix. **/ // Keep argument names for swig! virtual void gmunu_up(double ARGOUT_ARRAY2[4][4], const double IN_ARRAY1[4]) const; /** * \brief Derivatives of the metric covariant coefficients * * The default implementation evaluates them numerically. The gmunu * matrix is assumed to be symmetrical but no other assumptions are * made at the moment. **/ // Keep argument names for swig! virtual void jacobian(double ARGOUT_ARRAY3[4][4][4], const double IN_ARRAY1[4]) const; /** * \brief gmunu_up() and jacobian() in one go **/ // Keep argument names for swig! virtual void gmunu_up_and_jacobian(double ARGOUT_ARRAY2[4][4], double ARGOUT_ARRAY3[4][4][4], const double IN_ARRAY1[4]) const; /** * \brief Computes lapse scalar and shift vector at coord. * **/ virtual void computeNBeta(const double coord[4],double &NN,double beta[3]) const; /** * \brief Chistoffel symbol * * Value of Christoffel symbol * Γαμν at point * (x1, x2, x3). */ virtual double christoffel(const double coord[4], const int alpha, const int mu, const int nu) const; /** * \brief Chistoffel symbol * * Value of Christoffel symbol * Γαμν at point * (x1, x2, x3). * * \return 1 on error, 0 otherwise */ virtual int christoffel(double dst[4][4][4], const double coord[4]) const ; /** * \brief RK4 integrator */ virtual int myrk4(Worldline * line, state_t const &coord, double h, state_t &res) const; /// Obsolete, update your code virtual int myrk4(Worldline * line, const double coord[8], double h, double res[8]) const = delete; /** * \brief RK4 integrator with adaptive step */ virtual int myrk4_adaptive(Gyoto::Worldline* line, state_t const &coord, double lastnorm, double normref, state_t &coordnew, double h0, double& h1, double deltamax=GYOTO_DEFAULT_DELTA_MAX) const; /// Obsolete, update your code virtual int myrk4_adaptive(Gyoto::Worldline* line, const double coord[8], double lastnorm, double normref, double coordnew[8], double h0, double& h1, double deltamax=GYOTO_DEFAULT_DELTA_MAX) const = delete; /** * \brief Check whether integration should stop * * The integrating loop will ask this the Metric through this method * whether or not it is happy to continue the integration. * Typically, the Metric should answer 0 when everything is fine, 1 * when too close to the event horizon, inside the BH... * * \param coord 8-coordinate vector to check. */ virtual int isStopCondition(double const coord[8]) const; /** * \brief F function such as dx/dt=F(x,cst) */ virtual int diff(state_t const &x, state_t &dxdt, double mass) const ; /// Obsolete, update your code virtual int diff(state_t const &x, state_t &dxdt) const = delete; virtual int diff(const double y[8], double res[8]) const = delete ; /** * \brief F function such as dx/dt=F(x,cst) for 3+1 case */ virtual int diff31(state_t const &x, state_t &dxdt, double mass) const ; /** * \brief Set Metric-specific constants of motion. Used e.g. in KerrBL. */ virtual void setParticleProperties(Gyoto::Worldline* line, double const coord[8]) const; }; #endif Gyoto-2.0.2/include/GyotoMinkowski.h000066400000000000000000000045311455254334400174210ustar00rootroot00000000000000/** * \file GyotoMinkowski.h * \brief The Minkowski flat-space metric * * Use <Cartesian> or </Spherical> to select the coordinate system * kind. */ /* Copyright 2014, 2015, 2019-2020 Thibaut Paumard & Frédéric Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoMinkowski_H_ #define __GyotoMinkowski_H_ #include namespace Gyoto { namespace Metric { class Minkowski; } } /** * \class Gyoto::Metric::Minkowski * \brief The Minkowski flat-space metric * * Use <Cartesian> or </Spherical> to select the coordinate system * kind. */ class Gyoto::Metric::Minkowski : public Gyoto::Metric::Generic { friend class Gyoto::SmartPointer; private: public: // Those are mere wrappers arround Generic::coordKind(), useful for // declaring a boolen property using the macro GYOTO_PROPERTY_BOOL: void spherical(bool); bool spherical() const; // This is the bare minimum of what a Metric class must implement: GYOTO_OBJECT; Minkowski(); virtual Minkowski* clone() const ; void gmunu(double ARGOUT_ARRAY2[4][4], const double IN_ARRAY1[4]) const ; int christoffel(double dst[4][4][4], const double x[4]) const ; // Those two are implemented as examples. double gmunu(const double x[4], int mu, int nu) const ; double christoffel(const double coord[4], const int alpha, const int mu, const int nu) const ; void observerTetrad(obskind_t obskind, double const pos[4], double fourvel[4], double screen1[4], double screen2[4], double screen3[4]) const; // We reimplement diff to be able to integrate Newton's law of motion virtual int diff(state_t const &x, state_t &dxdt, double mass) const ; }; #endif Gyoto-2.0.2/include/GyotoNeutronStar.h000066400000000000000000000040041455254334400177250ustar00rootroot00000000000000/** * \file GyotoNeutronStar.h * \brief Neutron star defined by its surface ; no emission * * The target of ray-traced Gyoto::Photon */ /* Copyright (c) 2015 Frederic Vincent, 2017 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoNeutronStar_H_ #define __GyotoNeutronStar_H_ #include #include namespace Gyoto{ namespace Astrobj { class NeutronStar; } } /** * \class Gyoto::Astrobj::NeutronStar * \brief Neutron star defined by its surface ; no emission * * The underlying Gyoto::Metric::Generic #gg_ instance must be a * Gyoto::Metric::NumericalMetricLorene describing a neutron star. * */ class Gyoto::Astrobj::NeutronStar : public Astrobj::Standard { friend class Gyoto::SmartPointer; protected: SmartPointer gg_; ///< Underlying metric public: GYOTO_OBJECT; NeutronStar(); ///< Standard constructor NeutronStar(std::string kin); NeutronStar(const NeutronStar& o); ///< Copy constructor virtual NeutronStar * clone() const ; ///< Cloner virtual ~NeutronStar() ; ///< Destructor public: virtual Gyoto::SmartPointer metric() const; ///< Get gg_ virtual void metric(SmartPointer met); ///< Set gg_ virtual double operator()(double const coord[4]); virtual void getVelocity(double const pos[4], double vel[4]) ; }; #endif Gyoto-2.0.2/include/GyotoNeutronStarAnalyticEmission.h000066400000000000000000000042441455254334400231270ustar00rootroot00000000000000/** * \file GyotoNeutronStarAnalyticEmission.h * \brief Neutron star emitting at its surface an analytic * emission, typically blackbody * * The target of ray-traced Gyoto::Photon */ /* Copyright (c) 2017-2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoNeutronStarAnalyticEmission_H_ #define __GyotoNeutronStarAnalyticEmission_H_ #include #include #include #include namespace Gyoto{ namespace Astrobj { class NeutronStarAnalyticEmission; } } /** * \class Gyoto::Astrobj::NeutronStarAnalyticEmission * \brief Neutron star emitting at its surface an analytic * emission, typically blackbody * * The emission law is given by #spectrum_. * */ class Gyoto::Astrobj::NeutronStarAnalyticEmission : public Astrobj::NeutronStar { friend class Gyoto::SmartPointer; protected: SmartPointer spectrum_; ///< Emission spectrum public: GYOTO_OBJECT; NeutronStarAnalyticEmission(); ///< Standard constructor NeutronStarAnalyticEmission(const NeutronStarAnalyticEmission& o); ///< Copy constructor virtual NeutronStarAnalyticEmission * clone() const ; ///< Cloner virtual ~NeutronStarAnalyticEmission() ; ///< Destructor public: virtual void spectrum(SmartPointer); virtual SmartPointer spectrum() const; virtual double emission(double nu_em, double dsem, state_t const &_ph, double const _obj[8]=NULL) const; }; #endif Gyoto-2.0.2/include/GyotoNeutronStarModelAtmosphere.h000066400000000000000000000117541455254334400227500ustar00rootroot00000000000000/** * \file GyotoNeutronStarModelAtmosphere.h * \brief Neutron star emitting at its surface an analytic * emission, typically blackbody * * The target of ray-traced Gyoto::Photon */ /* Copyright (c) 2017, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoNeutronStarModelAtmosphere_H_ #define __GyotoNeutronStarModelAtmosphere_H_ #include #include #include namespace Gyoto{ namespace Astrobj { class NeutronStarModelAtmosphere; } } /** * \class Gyoto::Astrobj::NeutronStarModelAtmosphere * \brief Neutron star emitting at its surface an * emission provided by a FITS table * */ class Gyoto::Astrobj::NeutronStarModelAtmosphere : public Astrobj::NeutronStar { friend class Gyoto::SmartPointer; private: std::string filename_; ///< Optional FITS file name containing the arrays /** * An array of dimensionality double[nsg_][ni_][nnu_]. In FITS * format, the first dimension is nu, the second cosi (direction cosine), * and the third surface gravity. */ double * emission_; ///< Iν(ν, surfgrav, cosi;) double * surfgrav_; ///< Surface gravity vector double * cosi_; ///< Direction cosine vector double * freq_; ///< Frequencies vector size_t nnu_; ///< Number of frequencies provided in NeutronStarModelAtmosphere::emission_ size_t ni_; ///< Number of direction cosine size_t nsg_; ///< Number of surfgrav values bool average_over_angle_; ///< true to average over emission angle protected: public: GYOTO_OBJECT; // fillProperty is overridden to remove leading "!" from FITS filename void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const; NeutronStarModelAtmosphere(); ///< Standard constructor NeutronStarModelAtmosphere(const NeutronStarModelAtmosphere& o); ///< Copy constructor virtual NeutronStarModelAtmosphere * clone() const ; ///< Cloner virtual ~NeutronStarModelAtmosphere() ; ///< Destructor public: void file(std::string const &f); std::string file() const ; void averageOverAngle(bool t); bool averageOverAngle()const; #ifdef GYOTO_USE_CFITSIO /// Read parameters and arrays from FITS file virtual void fitsRead(std::string filename_); /// Write parameters and arrays to FITS file virtual void fitsWrite(std::string filename_); #endif /** * The pointer is copied directly, not the array content. * * This is a low-level function. Beware that: * - previously allocated array will not be freed automatically; * - array attached when the destructor is called will be freed. */ void setEmission(double * pattern); void surfgrav(double * pattern); /** * NeutronStarModelAtmosphere::emission_ is freed if not NULL, * reallocated, and * pattern is copied into emission_. * * Finally, NeutronStarModelAtmosphere::nnu_, * NeutronStarModelAtmosphere::ni_, and * NeutronStarModelAtmosphere::nsg_ are set according to naxes. * * \param pattern Array to copy as emission_. May be NULL in which * case emission_ is simply deallocated and set to NULL. * * \param naxes { nnu_, ni_, nsg_ }. */ virtual void copyIntensity(double const * const pattern = NULL, size_t const naxes[3] = NULL); virtual double const * getIntensity() const;///< Get NeutronStarModelAtmosphere::emission_ virtual void getIntensityNaxes( size_t naxes[3] ) const ; ///< Get NeutronStarModelAtmosphere::nnu_, NeutronStarModelAtmosphere::ni_, and NeutronStarModelAtmosphere::nsg_ virtual void copyGridSurfgrav(double const * const pattern = NULL, size_t nsg = 0 ); virtual double const * getGridSurfgrav() const; ///< Get NeutronStarModelAtmosphere::surfgrav_ virtual void copyGridCosi(double const * const pattern = NULL, size_t ni = 0 ); virtual double const * getGridCosi() const; ///< Get NeutronStarModelAtmosphere::cosi_ virtual void copyGridFreq(double const * const pattern = NULL, size_t ni = 0 ); virtual double const * getGridFreq() const; ///< Get NeutronStarModelAtmosphere::freq_ protected: void getIndices(size_t i[3], double const co[4], double cosi, double nu=0.) const ; ///< Get emission_ cell corresponding to position co[4] public: virtual double emission(double nu_em, double dsem, state_t const &_ph, double const _obj[8]=NULL) const; }; #endif Gyoto-2.0.2/include/GyotoNumericalMetricLorene.h000066400000000000000000000171451455254334400217030ustar00rootroot00000000000000/** * \file GyotoNumericalMetricLorene.h * \brief Base class for 3+1 numerical metrics computed by LORENE * * */ /* * Copyright (c) 2014-2018, 2020 Frederic Vincent, Thibaut Paumard * * */ #ifndef __GyotoNumericalMetricLoreneMetric_H_ #define __GyotoNumericalMetricLoreneMetric_H_ #include #include namespace Gyoto { namespace Metric { class NumericalMetricLorene; } class FactoryMessenger; } // Forward declarations of Lorene classes namespace Lorene { class Scalar; class Vector; class Sym_tensor; class Valeur; } #include #include #include #ifdef GYOTO_USE_XERCES #include #endif /** * \class Gyoto::NumericalMetricLorene * \brief Class for 3+1 numerical metrics computed by LORENE. * This class can handle (so far) any kind of LORENE metric, * stars, collapsing stars, Kerr, boson star e.g. */ class Gyoto::Metric::NumericalMetricLorene : public Gyoto::Metric::Generic { friend class Gyoto::SmartPointer; private: char* filename_; ///< Lorene .d data file(s) path bool mapet_; ///< Kind of Lorene mapping: 'false' for Map_af, 'true' for Map_et bool axisymCirc_; ///< True if sacetime is axisymmetric and circular bool bosonstarcircular_; ///< 1 to implement the circular velocity of a boson star int has_surface_; ///< 1 if the metric source has a surface int has_acceleration_vector_; ///< 1 if the metric source provides an ///< acceleration vector int specify_marginalorbits_; ///< 1 if marginal orbits are specified in file double horizon_; ///< Value of horizon (or any innermost limit) double initial_time_; ///< Time at which (first) metric is given Lorene::Scalar** lapse_tab_; Lorene::Vector** shift_tab_; Lorene::Sym_tensor** gamcov_tab_; Lorene::Sym_tensor** gamcon_tab_; Lorene::Sym_tensor** kij_tab_; double* times_; ///< Coordinate times at which metrics are given int nb_times_; ///< Nb of time slices Lorene::Valeur** nssurf_tab_; ///< Metric source (e.g. star) surface (if any) Lorene::Vector** vsurf_tab_; ///< 4-velocity at surface (if any) Lorene::Vector** accel_tab_; ///< 4-acceleration at surface (if any) Lorene::Scalar** lorentz_tab_; ///< Lorentz factor at surface (if any) Lorene::Valeur** hor_tab_; ///< Apparent horizon (if any) double risco_; ///< ISCO coordinate radius double rico_; ///< Innermost circular orbit coordinate radius double rmb_; ///< Marginally bound orbit coordinate radius void free(); ///< deallocate memory public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; NumericalMetricLorene(); ///< Constructor NumericalMetricLorene(const NumericalMetricLorene&); ///< Copy constructor virtual NumericalMetricLorene* clone() const ; virtual ~NumericalMetricLorene() ; ///< Destructor /** * Access functions to get or set private attributes */ virtual void setMetricSource(); void directory(std::string const &dir) ; std::string directory() const ; double initialTime() const ; void initialTime(double t0); double horizon() const ; void horizon(double t0); double rico() const ; void rico(double r0); bool hasSurface() const; void hasSurface(bool s); bool hasAccelerationVector() const; void hasAccelerationVector(bool aa); bool bosonstarcircular() const; void bosonstarcircular(bool); bool specifyMarginalOrbits() const; void specifyMarginalOrbits(bool s); bool mapEt() const; void mapEt(bool s); bool axisymCirc() const; void axisymCirc(bool s); Lorene::Vector** getShift_tab() const; Lorene::Scalar** getLapse_tab() const; Lorene::Sym_tensor** getGamcon_tab() const; Lorene::Sym_tensor** getGamcov_tab() const; double* getTimes() const; int getNbtimes() const; Lorene::Valeur** getNssurf_tab() const; Lorene::Vector** getVsurf_tab() const; Lorene::Vector** getAccel_tab() const; Lorene::Scalar** getLorentz_tab() const; Lorene::Valeur** getHor_tab() const; double getRms() const; double getRmb() const; void setLapse_tab(Lorene::Scalar* lapse, int ii); void setShift_tab(Lorene::Vector* shift, int ii); void setGamcov_tab(Lorene::Sym_tensor* gamcov, int ii); void setGamcon_tab(Lorene::Sym_tensor* gamcon, int ii); void setKij_tab(Lorene::Sym_tensor* kij, int ii); void setTimes(double time,int ii); virtual double getSpecificAngularMomentum(double rr) const; virtual double getPotential(double const pos[4], double l_cst) const; /** * Compute lapse and shift at given coordinates */ virtual void computeNBeta(const double coord[4],double &NN,double beta[3]) const;//Compute lapse and shift at coord /** * 4-Metric */ using Generic::gmunu; double gmunu(const double x[4], int mu, int nu) const ; double gmunu(const double x[3], int indice_time, int mu, int nu) const ; virtual void gmunu_up(double ARGOUT_ARRAY2[4][4], const double IN_ARRAY1[4]) const ; void gmunu_up(double gup[4][4], const double x[4], int indice_time) const ; void gmunu_di(const double pos[4], double gmunudr[4][4], double gmunudth[4][4]) const ; void gmunu_di(const double pos[4], int indice_time, double gmunudr[4][4], double gmunudth[4][4]) const ; virtual void jacobian(double ARGOUT_ARRAY3[4][4][4], const double IN_ARRAY1[4]) const ; /** * \brief r derivative of contravariant 4-metric */ double gmunu_up_dr(const double x[4], int mu, int nu) const ; double gmunu_up_dr(const double x[3], int indice_time, int mu, int nu) const ; double christoffel(const double coord[4], const int alpha, const int mu, const int nu) const ; double christoffel(const double coord[4], const int alpha, const int mu, const int nu, const int indice_time) const; virtual int christoffel(double dst[4][4][4], const double coord[4]) const; int christoffel(double dst[4][4][4], const double coord[4], const int indice_time) const; /** * \brief 3rd order interpolation routine * * Interpolation at order 3 at point tt, the considered function * taking the values "values" at time indices "indices". * */ double Interpol3rdOrder(double tt, int indice_time, double values[4]) const; /** * \brief Computation of horizon value */ double computeHorizon(const double* pos) const; double computeHorizon(const double* pos, int indice) const; /** * F function such as d(coord)/d(tau)=F(coord) */ //using Generic::diff; virtual int diff(state_t const &coord, state_t &res, double mass) const; int diff(double tt, const double y[7], double res[7]) const ; virtual int diff(const double y[7], double res[7], int indice_time) const ; virtual int diff31(state_t const &x, state_t &dxdt, double mass) const ; /** * \brief Yield circular velocity at a given position * * Give the velocity of a massive particle in circular orbit at the * given position projected onto the equatorial plane. Such a * velocity may not exist everywhere (or anywhere) for a given * metric. This method is intended to be used by Astrobj classes * such as Torus or ThinDisk. * * This circular velocity should be implemented for all specific * numerical metric used. * * If bosonstarcircular_ is set to true, this method returns the * boson star circular velocity. * * \param coor input: position, * \param vel output: velocity, * \param dir 1 for corotating, -1 for counterrotating. */ void circularVelocity(double const coor[4], double vel[3], double dir) const ; void circularVelocity(double const coor[4], double vel[3], double dir, int indice_time) const ; }; #endif Gyoto-2.0.2/include/GyotoObject.h000066400000000000000000000364521455254334400166630ustar00rootroot00000000000000/** * \file GyotoObject.h * \brief Introspectable objects */ /* Copyright 2014-2016 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoObject_H_ #define __GyotoObject_H_ #include "GyotoConfig.h" #include "GyotoSmartPointer.h" #include #include namespace Gyoto { class Object; class Property; class Value; class FactoryMessenger; } /// Declare a pair of accessors to string member in a class declaration /** * The accessors must also be defined in the .C file * * \param method name of the accessors. */ #define GYOTO_OBJECT_ACCESSORS_STRING(method) \ virtual void method(std::string const&); \ virtual std::string method() const; /// Declare a pair of accessors to scalar member in a class declaration /** * The accessors must also be defined in the .C file, which can be * done using #GYOTO_PROPERTY_ACCESSORS * * \param type data type of the memebr beeing accessed. Any scalar * type (double, long, size_t, SmartPointer etc). * \param method name of the accessors. */ #define GYOTO_OBJECT_ACCESSORS(type, method) \ virtual void method(type); \ virtual type method() const; /// Declare a quadruplet of accessors to double member that supports unit /** * The accessors must also be defined in the .C file. * * \param method name of the accessors. */ #define GYOTO_OBJECT_ACCESSORS_UNIT(method) \ GYOTO_OBJECT_ACCESSORS(double, method) \ virtual void method(double, std::string const &); \ virtual double method(std::string const &) const; /// Declare class::properties and class::getProperties() /** * Any derived class that does define Properties (i.e. the macro * GYOTO_PROPERTY_START() is called somewhere in the .C file) must * call the #GYOTO_OBJECT macro in a "public:" section of the class * declaration. Else, the property list is inherited from the direct * parent, and calling GYOTO_PROPERTY_START() in the .C file leads to * a compile-time error. */ #define GYOTO_OBJECT \ static Property const properties[]; \ virtual Property const * getProperties() const; \ static const std::string builtinPluginValue; \ virtual void plugins(std::vector const & plugname); \ virtual std::vector plugins() const /// Declare virtual bool isThreadSafe() const /** * Use this to declare that the object is not (or not always) thread * safe. The corresponding definition of isThreadSafe() must exist. If * the object is always thread unsafe (e.g. Lorene Metrics of Python * based objects), you can simply use GYOTO_PROPERTY_THREAD_SAFETY in * the corresponding .C file. */ #define GYOTO_OBJECT_THREAD_SAFETY \ virtual bool isThreadSafe() const /// Object with properties /** * The Object API allows declaring a list of Properties that can be * set and retrieved using a common, text-based interface. This * interface simplifies a lot how to read and write XML, as well as * writing bindings for interpreted langages (e.g. the Yorick * interface). * * In fact, any class member that has an interface implemented as a * Property can be readily read and written from/to XML as well as * from the Yorick plug-in, without the need for any additional code. * * To declare a Property list: * 1. declare (in the class declaration, .h file) and define (.C * file) the pair or quadruplet of accessors for your Property * (see Property class documentation; * 2. call the #GYOTO_OBJECT macro in in a public section of the * class declaration (in the .h file): * \code * class A: public Object { * public: * GYOTO_OBJECT; * A(); * virtual ~A(); * ... * }; * \endcode * 3. call the various GYOTO_PROPERTY_* macros in the corresponding * .C file (see the documentation of the Property class). * * It is possible to get a Property by name (Assume \a A is a class * deriving from Object): * \code * A myobj(); * Property const *prop=NULL; * prop = myobj.property("PropertyName"); * if (!prop) throwError("No Property by that name in this object"); * \endcode * It then becomes possible to set or get the Property from or to a * Value: * \code * myobj.set(*prop, size_t(12)); * size_t val = myobj.get(*prop); * \endcode * Of course the type of the Value instance and of the Property * instance must match. Refer to the documentation of these to classes * for details. * */ class Gyoto::Object { protected: /// The "kind" that is output in the XML entity /** * E.g. for an Astrobj, fillElement() will ensure * \code * ... * \endcode * is written. */ std::string kind_; /// The plug-ins that needs to be loaded to access this instance's class /** * E.g. for an Astrobj, fillElement() will ensure * \code * ... * \endcode * is written. */ std::vector plugins_; public: /// Whether this class is thread-safe /** * Return True if this object is thread-safe, i.e. if an instance * and its clone can be used in parallel threads (in the context of * Scenery::raytrace()). Known objects which are not thread-safe * include Lorene metrics and everything from the Python plug-in. * * The default implementation considers that the class itself is * thread safe and recurses into the declared properties to check * whether they are safe too. Classes that abide to the * Object/Property paradigm and are themselves thread-safe have * nothing special to do. * * Objects that clone children in their copy constructor that are * not declared as properties must take these children into * account. * * Classes that are never thread-safe must declare it. It acn be * easily done using GYOTO_OBJECT_THREAD_SAFETY in the class * declaration and GYOTO_PROPERTY_THREAD_UNSAFE in the class * definition. */ virtual bool isThreadSafe() const; GYOTO_OBJECT; /** \fn virtual Property const * Object::getProperties() const * \brief Get list of properties * * This method is declared automatically by the #GYOTO_OBJECT macro * and defined automatically by the #GYOTO_PROPERTY_END macro. */ /** \property static Property const properties[] * \brief Property list * * This static member is declared automatically by the #GYOTO_OBJECT * macro and defined automatically by the #GYOTO_PROPERTY_START, * #GYOTO_PROPERTY_END and GYOTO_PROPERTY_* macros. * * The list of properties is implemented as a static array of * Property instances. The last item in a Property of type * Property::empty_t, which evaluates to false, so the list can be * considered to be NULL-terminated (it is actually rather * false-terminated). This empty_t last item can be a link to * another Property list: for instance, the last item in * Gyoto::Astrobj::Standard::properties is a link to * Gyoto::Astrobj::Generic::properties. */ /// Constructor setting kind Object (std::string const &kind) ; /// Default constructor Object () ; /// Deep copy constructor Object (Object const &orig) ; /// Virtual destructor virtual ~Object(); /// Set Value of a Property virtual void set(Property const &p, Value val); /// Set Value (expressed in unit) of a Property virtual void set(Property const &p, Value val, std::string const &unit); /// Set Value of a Property virtual void set(std::string const &pname, Value val); /// Set Value (expressed in unit) of a Property virtual void set(std::string const &pname, Value val, std::string const &unit); /// Get Value of a Property virtual Value get(Property const &p) const; /// Get Value of a Property virtual Value get(std::string const &pname) const; /// Get Value of a Property, converted to unit virtual Value get(Property const &p, std::string const &unit) const; /// Get Value of a Property, converted to unit virtual Value get(std::string const &pname, std::string const &unit) const; /// Find property by name /** * Look into the Property list for a Property whose \a name (or * \a name_false, for a boolean Property) is \a pname. Return a const * pointer to the first such property found, or NULL if none is * found. */ Property const * property(std::string const pname) const; #ifdef GYOTO_USE_XERCES /// Output a single Property to XML /** * The base implementation decides what to do based on the \a * p.type. The format matches how setParameters() an setParameter() * would interpret the XML descition. * * Overriding this method should be avoided, but makes sense in some * cases (for instance Screen::fillProperty() selects a different * unit for \a Distance based on its magnitude, so that stellar * sizes are expressed in solar radii while smaller sizes can be * expressed in meters and larger sizes in parsecs). * * Overriding implementation should fall-back on calling the * implementation in the direct parent class: * \code * class A: public Object {}; * class B: public A { * using B::setParameter; * virtual void fillProperty(Gyoto::FactoryMessenger *fmp, * Property const &p) const ; * }; * void B::fillProperty(Gyoto::FactoryMessenger *fmp, * Property const &p) const { * if (name=="Duff") fmp->doSomething(); * else A::fillProperty(fmp, p); * } * \endcode */ virtual void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const ; /// Fill the XML element for this Object /** * The base implementation simply calls fillProperty() for each * Property defined for the Object. * * Derived classes should avoid overriding fillElement(). It may * make sense occasionally, e.g. to make sure that the metric is * output first. * * To customize how a given Property is rendered, it is better to * override fillProperty(). * * If this method is overridden, the implementation should in * general call fillElement() on the direct base. */ virtual void fillElement(Gyoto::FactoryMessenger *fmp) const ; /// \brief Main loop for parsing Properties from XML description /** * This function queries the FactoryMessenger for elements to parse, * and tries to matche each element to a Property to set it * accordingly. * * Any class that tries to be buildable from XML must supply a * subcontractor (for base classes such as Metric, Astrobj, Spectrum * and Spectrometer, it is done as a template that must be * specialized for each class). * * This subcontractor typically looks somewhat like this: \code SmartPointer Gyoto::Metric::MyKind::Subcontractor(FactoryMessenger* fmp) { SmartPointer gg = new MyKind(); gg -> setParameters(fmp); return gg; } \endcode * * Although this is discouraged, it is possible to override the * following functions to customize how XML entities are parsed: * - setParameters() if low-level access to the * FactoryMessenger is required; * - setParameter(std::string name, * std::string content, * std::string unit) * to interpret an entity that does not match a Property * (e.g. alternative name); * - setParameter(Gyoto::Property const &p, * std::string const &name, * std::string const &content, * std::string const &unit) * to change how a Property is interpreted. */ virtual void setParameters(Gyoto::FactoryMessenger *fmp) ; #endif /** * \brief Set parameter by name * * This function is used when parsing an XML description, if no * Property of this \a name is found. Overriding implementation should * fall-back on calling the direct's parent implementation: * * \code * class A: public Object {}; * class B: public A { * using B::setParameter; * virtual int setParameter(std::string name, * std::string content, * std::string unit); * }; * int B::setParameter(std::string name, * std::string content, * std::string unit) { * if (name=="Duff") doSomething(content, unit); * else return A::setParameter(name, content, unit); * return 0; // name was known * } * \endcode * * \param name XML name of the parameter (XML entity). This may have * a path component, e.g. "Astrobj::Radius", in which case a * property named "Astrobj" will be sought in the current * object, and setParameter will be called recusrively on * this Astrobj with Radius as name. * \param content string representation of the value * \param unit string representation of the unit * \return 0 if this parameter is known, 1 if it is not. */ virtual int setParameter(std::string name, std::string content, std::string unit); /** * \brief Set parameter by Property (and name) * * This function is used when parsing an XML description, if * Property (\a p) of this \a name is found (i.e. either \a p.name or * \a p.name_false is equal to \a name). Implementation should fall-back * on calling the direct's parent implementation: * * \code * class A: public Object {}; * class B: public A { * using B::setParameter; * virtual void setParameter(Gyoto::Property const &p, * std::string name, * std::string content, * std::string unit); * }; * void B::setParameter(Gyoto::Property const &p, * std::string name, * std::string content, * std::string unit) { * if (name=="Duff") doSomething(content, unit); * else A::setParameter(p, name, content, unit); * } * \endcode * * \param p Property that matches \a name (\a p.name == \a name or * \a p.name_false == \a name) * \param name XML name of the parameter (XML entity) * \param content string representation of the value * \param unit string representation of the unit */ virtual void setParameter(Gyoto::Property const &p, std::string const &name, std::string const &content, std::string const &unit); /** * \brief Format desrciption for a property * * Returns a string containing the name(s) and type of the * property, as well as whether it supports unit. */ std::string describeProperty(Gyoto::Property const &p) const ; /** * \brief Print (to stdout) some help on this class * * Describe all properties that this instance supports. */ void help() const ; protected: /** * \brief Set kind_ * * kind(const std::string) is protected because, for most Objects, * it should not be changed in runtime. */ virtual void kind(const std::string); ///< Set kind_ public: virtual std::string kind() const; ///< Get kind_ }; #endif Gyoto-2.0.2/include/GyotoOscilTorus.h000066400000000000000000000063101455254334400175510ustar00rootroot00000000000000/** * \file GyotoOscilTorus.h * \brief Slender torus subject to realistic Blaes 2006 oscillation modes. * * The target of ray-traced Gyoto::Photon */ /* * Copyright (c) 2013, 2018 Frederic Vincent & Thibaut Paumard * * */ #ifndef __OscilTorus_h #define __OscilTorus_h #include #include #include namespace Gyoto { namespace Astrobj { class OscilTorus; }; class FactoryMessenger; namespace Spectrum { class Generic; } }; class Gyoto::Astrobj::OscilTorus : public Gyoto::Astrobj::Standard, public Hook::Listener { friend class Gyoto::SmartPointer; private: // Members corresponding to properties: /** * \brief Large Radius * * Distance from the center of the coordinate system to the center * of the torus tube. The (square of the) radius of a vertical * cross-section is stored in critical_value_. */ double c_; unsigned long mode_; double polycst_; ///< Polytropic constant double polyindex_; ///< Polytropic index double central_density_; ///< Central density enum perturb_t {Radial=1, Vertical=2, X=3, Plus=4, Breathing=5}; perturb_t perturb_kind_; std::string emitting_area_; ///< Only for mode=0, file containing time series of cross section area double perturb_intens_; ///< Perturbation intensity // Cached values: SmartPointer kerrbl_; std::vector tt_; std::vector area_; // tt_ and area_ contain area of cross section at time tt size_t nbt_; ///< numberof tt_ int with_cross_; ///< is 1 if cross section data are given double sigma_; ///< perturbation rescaled pulsation double alpha_; ///< perturbation normalization (oder-unity) double w1_; ///< factors appearing in perturbed surf func double w2_; double omr2_; ///< epicyclic freq at torus center double omth2_; double Omegac_; ///< Omega and l at torus center double lc_; double g_rr_; ///< metric coef at torus center double g_thth_; bool hold_; public: GYOTO_OBJECT; OscilTorus(); OscilTorus(const OscilTorus &o); virtual ~OscilTorus(); virtual OscilTorus * clone() const ; GYOTO_OBJECT_ACCESSORS_UNIT(largeRadius); GYOTO_OBJECT_ACCESSORS(unsigned long, mode); GYOTO_OBJECT_ACCESSORS(double, polyCst); GYOTO_OBJECT_ACCESSORS(double, polyIndex); GYOTO_OBJECT_ACCESSORS(double, centralDensity); GYOTO_OBJECT_ACCESSORS_STRING(perturbKind); GYOTO_OBJECT_ACCESSORS(double, perturbIntens); GYOTO_OBJECT_ACCESSORS_STRING(emittingArea); using Generic::metric; virtual void metric(Gyoto::SmartPointer); virtual double operator()(double const coord[4]) ; virtual void getVelocity(double const pos[4], double vel[4]) ; double emission(double nuem,double,state_t const &,double const *) const; #ifdef GYOTO_USE_XERCES virtual void setParameters(Gyoto::FactoryMessenger *fmp) ; #endif virtual void updateCachedValues(); void computeXbYb(const double * pos, double & xb, double & yb) ; // Hook::Listener API // public: /** * \brief Update cached values * * Calls updateCachedValues(). * * See Hook::Listener::tell() */ virtual void tell(Gyoto::Hook::Teller *msg); }; #endif Gyoto-2.0.2/include/GyotoPageThorneDisk.h000066400000000000000000000113411455254334400203120ustar00rootroot00000000000000/** * \file GyotoPageThorneDisk.h * \brief A geometrically thin, optically thick disk * * This class describes a disk contained in the z=0 (equatorial) * plane, extending from r=r_ISCO to r=infinity. The flux emitted * at radius r is given by Page & Thorne (1974, ApJ 191:499, * Eqs. 11b, 14, 15). * * Only bolometric flux is implemented (as quantity User4), no * spectral resolution. */ /* Copyright 2011-2016, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoPageThorneDisk_H_ #define __GyotoPageThorneDisk_H_ #include #include #include namespace Gyoto{ namespace Astrobj { class PageThorneDisk; } } //#include #include #include /** * \class Gyoto::Astrobj::PageThorneDisk * \brief Geometrically thin disk in Kerr metric * * This class describes a disk contained in the z=0 (equatorial) * plane, extending from r=r_ISCO to r=infinity. The flux emitted * at radius r is given by Page & Thorne (1974, ApJ 191:499, * Eqs. 11b, 14, 15). * * The metric must be either KerrBL or KerrKS. Emission, Spectrum * and BinSpectrum are not provide, the only * intensity provided is provided, as quantity User4 and it is the * default quantity returned if nothing is requested. The other * quantities implemented in ThinDisk are also provided. * */ class Gyoto::Astrobj::PageThorneDisk : public Astrobj::ThinDisk, public Hook::Listener { friend class Gyoto::SmartPointer; private: double aa_; ///< Generic::gg_ spin parameter, monitored by tell() double aa2_; ///< aa_2 double x0_; ///< Value cached for bolometricEmission() double x1_; ///< Value cached for bolometricEmission() double x2_; ///< Value cached for bolometricEmission() double x3_; ///< Value cached for bolometricEmission() double mdot_; ///< accretion rate (for BB spectrum computation) bool uniflux_; ///< Flag for uniform flux = 1 SmartPointer spectrumBB_; ///< disk black body ///< emission law // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; PageThorneDisk(); ///< Standard constructor PageThorneDisk(const PageThorneDisk& ) ;///< Copy constructor virtual PageThorneDisk* clone () const; ///< Cloner virtual ~PageThorneDisk() ; ///< Destructor // Accessors // --------- public: using ThinDisk::metric; virtual void metric(SmartPointer); ///< Set metric, checking that it is either KerrBL or KerrKS /// Set #mdot_ to v void mdot(double v); double mdot() const; void uniFlux(bool t) ; bool uniFlux() const ; private: virtual void updateSpin() ; ///< Get spin from metric, which must be KerrBL or KerrKS public: using ThinDisk::emission; /** * \brief Not implemented * Throws a Gyoto::Error */ virtual double emission(double nu_em, double dsem, state_t const &c_ph, double const c_obj[8]=NULL) const; /** * \brief Bolometric emission * * Similar to Generic::emission(), but bolometric. */ virtual double bolometricEmission(double nuem, double dsem, double const c_obj[8]) const; /** * \brief * processHitQuantities fills the requested data in Impact. For * PageThorneDisk, only fill User4, which corresponds to bolometric * intensity. */ virtual void processHitQuantities(Photon* ph, state_t const &coord_ph_hit, double const *coord_obj_hit, double dt, Astrobj::Properties* data) const; Gyoto::Quantity_t getDefaultQuantities(); // Hook::Listener API // public: /** * \brief Update PageThorneDisk::aa_ * * Calls updateSpin(). * * See Hook::Listener::tell() */ virtual void tell(Gyoto::Hook::Teller *msg); virtual void radiativeQ(double *Inu, double *Qnu, double *Unu, double *Vnu, Eigen::Matrix4d *Onu, double const *nuem , size_t nbnu, double dsem, state_t const &cph, double const *co) const; }; #endif Gyoto-2.0.2/include/GyotoPatternDisk.h000066400000000000000000000224171455254334400177010ustar00rootroot00000000000000/** * \file GyotoPatternDisk.h * \brief A geometrically thin, optically thick disk * * The target of ray-traced Gyoto::Photon */ /* Copyright 2011-2015, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoPatternDisk_H_ #define __GyotoPatternDisk_H_ #include #include #include namespace Gyoto{ namespace Astrobj { class PatternDisk; } } //#include #include /** * \class Gyoto::Astrobj::PatternDisk * \brief Geometrically thin disk read from FITS file * * This class describes a disk contained in the z=0 (equatorial) * plane, extending from r=r_ISCO to r=infinity. The flux emitted * at radius r and longitude phi at frequency nu is given in a FITS * file. * */ class Gyoto::Astrobj::PatternDisk : public Astrobj::ThinDisk { friend class Gyoto::SmartPointer; private: std::string filename_; ///< Optional FITS file name containing the arrays /** * An array of dimensionality double[nr_][nphi_][nnu_]. In FITS * format, the first dimension is nu, the second phi, and the third * r. */ double * emission_; ///< Iν(ν, r, φ) double * opacity_; ///< Same dimenstions as emission, or NULL /** * An array of dimensionality double[nr_][nphi_][2]. In FITS format, * the second dimension is phi, and the third r. The first plane in * the first FITS dimention is dφ/dt, the second dr/dt. */ double * velocity_; ///< velocity(r, φ) /** * In case of adaptive grid. */ double * radius_; ///< Radius vector /** * XML element: <Omega>. * FITS keyword: HIERARCH GYOTO PatternDisk Omega */ double Omega_; ///< Pattern angular velocity /** * XML element: <T0>. * FITS keyword: HIERARCH GYOTO PatternDisk t0 */ double t0_; ///< Date for which i=0 corresponds to phi=0 double dnu_; ///< Frequency scale of PatternDisk::emission_ in Hz double nu0_; ///< Lowest frequency provided in PatternDisk::emission_ in Hz size_t nnu_; ///< Number of frequencies provided in PatternDisk::emission_ double dphi_; ///< δφ between two grid columns double phimin_;///< Minimum φ in grid size_t nphi_; ///< Grid size in the φ direction double phimax_; ///< Maximum φ in grid /** * XML elment: <RepeatPhi>. * FITS keyword: HIERARCH GYOTO PatternDisk RepeatPhi */ size_t repeat_phi_; ///< Number of times the pattern should be repeated to cover [0, 2Π] double dr_; ///< Radius step size_t nr_; ///< Number of rows in the patternGrid size in the r direction // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; // fillProperty is overridden to remove leading "!" from FITS filename void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const; PatternDisk(); ///< Standard constructor PatternDisk(const PatternDisk& ) ;///< Copy constructor virtual PatternDisk* clone () const; ///< Cloner virtual ~PatternDisk() ; ///< Destructor // Accessors // --------- public: using ThinDisk::innerRadius; virtual void innerRadius(double); using ThinDisk::outerRadius; virtual void outerRadius(double); /** * Unit: radians per geometrical unit time. */ virtual void patternVelocity(double); ///< Set PatternDisk::Omega_ virtual double patternVelocity() const; ///< Get PatternDisk::Omega_ virtual void file(std::string const &f); virtual std::string file() const ; #ifdef GYOTO_USE_CFITSIO /// Read parameters and arrays from FITS file virtual void fitsRead(std::string filename_); /// Write parameters and arrays to FITS file virtual void fitsWrite(std::string filename_); #endif /// Set PatternDisk::emission_ /** * The pointer is copied directly, not the array content. * * This is a low-level function. Beware that: * - previously allocated array will not be freed automatically; * - array attached when the destructor is called will be freed. */ void setEmission(double * pattern); /// Set PatternDisk::velocity__ /** * The pointer is copied directly, not the array content. * * This is a low-level function. Beware that: * - previously allocated array will not be freed automatically; * - array attached when the destructor is called will be freed. */ void setVelocity(double * pattern); /// Set PatternDisk::radius_ /** * The pointer is copied directly, not the array content. * * This is a low-level function. Beware that: * - previously allocated array will not be freed automatically; * - array attached when the destructor is called will be freed. */ void radius(double * pattern); /// Set PatternDisk::emission_ /** * PatternDisk::emission_ is freed if not NULL, reallocated, and * pattern is copied into emission_. * * If PatternDisk::opacity_, PatternDisk::velocity_ or * PatternDisk::radius_ have been set previously with mismatching * sizes, they are deallocated too. * * Finally, PatternDisk::nnu_, PatternDisk::nphi_, and * PatternDisk::nr_ are set according to naxes. * * \param pattern Array to copy as emission_. May be NULL in which * case emission_ is simply deallocated and set to NULL. * * \param naxes { nnu_, nphi_, nr_ }. */ virtual void copyIntensity(double const * const pattern = NULL, size_t const naxes[3] = NULL); virtual double const * getIntensity() const;///< Get PatternDisk::emission_ virtual void getIntensityNaxes( size_t naxes[3] ) const ; ///< Get PatternDisk::nnu_, PatternDisk::nphi_, and PatternDisk::nr_ /** * \brief Set PatternDisk::opacity_ * * PatternDisk::opacity_ is first freed if not NULL and set to NULL. * * If pattern is not NULL, PatternDisk::emission_ must have been set * previously with matching dimensions. PatternDisk::opacity_ is * then reallocated, and pattern is copied into opacity_. * * \param pattern Array to copy as opacity_. May be NULL in which * case opacity_ is simply deallocated and set to NULL. * * \param naxes { nnu_, nphi_, nr_ }. */ virtual void copyOpacity(double const * const pattern = NULL, size_t const naxes[3] = NULL); virtual double const * opacity() const; ///< Get PatternDisk::opacity_ /// Set PatternDisk::velocity_ /** * PatternDisk::velocity_ is first freed if not NULL and set to NULL. * * If pattern is not NULL, PatternDisk::emission_ must have been set * previously with matching dimensions. PatternDisk::velocity_ is * then reallocated, and pattern is copied into velocity_. * * \param pattern Array to copy as velocity_. May be NULL in which * case velocity_ is simply deallocated and set to NULL. * * \param naxes { nphi_, nr_ }. */ virtual void copyVelocity(double const * const pattern = NULL, size_t const naxes[2] = NULL); virtual double const * getVelocity() const;///< Get PatternDisk::velocity_ /// Set PatternDisk::radius_ /** * PatternDisk::radius_ is first freed if not NULL and set to NULL. * * If pattern is not NULL, PatternDisk::emission_ must have been set * previously with matching dimensions. PatternDisk::radius_ is * then reallocated, and pattern is copied into radius_. * * \param pattern Array to copy as radius_. May be NULL in which * case radius_ is simply deallocated and set to NULL. * * \param nr size of radius array. */ virtual void copyGridRadius(double const * const pattern = NULL, size_t nr = 0 ); virtual double const * getGridRadius() const; ///< Get PatternDisk::radius_ virtual void repeatPhi(size_t n); ///< Set PatternDisk::repeat_phi_ virtual size_t repeatPhi() const; ///< Get PatternDisk::repeat_phi_ virtual void nu0(double freq); ///< Set PatternDisk::nu0_ virtual double nu0() const; ///< Get PatternDisk::nu0_ virtual void dnu(double dfreq); ///< Set PatternDisk::dnu_ virtual double dnu() const; ///< Get PatternDisk::dnu_ void phimin(double phimin); ///< Set PatternDisk::phimin_ double phimin() const; ///< Get PatternDisk::phimin_ void phimax(double phimax); ///< Set PatternDisk::phimax_ double phimax() const; ///< Get PatternDisk::phimax_ protected: void getIndices(size_t i[3], double const co[4], double nu=0.) const ; ///< Get emission_ cell corresponding to position co[4] public: using ThinDisk::emission; virtual double emission(double nu_em, double dsem, state_t const &c_ph, double const c_obj[8]=NULL) const; virtual double transmission(double nu_em, double dsem, state_t const &, double const coord[8]) const; virtual void getVelocity(double const pos[4], double vel[4]) ; }; #endif Gyoto-2.0.2/include/GyotoPatternDiskBB.h000066400000000000000000000047771455254334400201160ustar00rootroot00000000000000/** * \file GyotoPatternDiskBB.h * \brief A PatternDisk object with possibility to * compute a black body spectrum when * PatternDiskBB::emission_ does not yield * directly Iν but temperature. */ /* Copyright 2012-2016, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoPatternDiskBB_H_ #define __GyotoPatternDiskBB_H_ #include #include #include namespace Gyoto{ namespace Astrobj { class PatternDiskBB; } } //#include #include #include /** * \class Gyoto::Astrobj::PatternDiskBB * \brief Geometrically thin disk read from FITS file with black body * spectrum * * This class describes a disk contained in the z=0 (equatorial) * plane, extending from r=r_ISCO to r=rmax_. The flux emitted * at radius r and longitude phi at frequency nu is given in a FITS * file. * */ class Gyoto::Astrobj::PatternDiskBB : public Astrobj::PatternDisk { friend class Gyoto::SmartPointer; protected: SmartPointer spectrumBB_; ///< disk black body ///< emission law private: /** * \brief 1 if spectral emission. * * XML: SpectralEmission * */ int SpectralEmission_; // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; PatternDiskBB(); ///< Standard constructor PatternDiskBB(const PatternDiskBB& ) ;///< Copy constructor virtual PatternDiskBB* clone () const;///< Cloner virtual ~PatternDiskBB() ; ///< Destructor // Accessors // --------- public: bool spectralEmission() const; void spectralEmission(bool t); public: using PatternDisk::emission; double emission(double nu_em, double dsem, state_t const &c_ph, double const c_obj[8]=NULL) const; }; #endif Gyoto-2.0.2/include/GyotoPhoton.h000066400000000000000000000321131455254334400167120ustar00rootroot00000000000000/** * \file GyotoPhoton.h * \brief A single light ray * * Gyoto::Photon is a class for ray-tracing. * */ /* Copyright 2011-2016 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoPhoton_H_ #define __GyotoPhoton_H_ #include "GyotoFunctors.h" namespace Gyoto{ class Photon; namespace Astrobj { class Generic; } } #include #include #include #include #include #include #include /** * \class Gyoto::Photon * \brief A null geodesic transporting light * * This is the central object for ray-tracing. */ class Gyoto::Photon : public Gyoto::Worldline, public Gyoto::SmartPointee, public Gyoto::Object { friend class Gyoto::SmartPointer; // Data : // ----- protected: /// The astronomical target /** * The (only) possible origin for this Photon. */ SmartPointer object_; /// Photon's frequency in observer's frame /** * In Hz, for quantity Emission */ double freq_obs_; /// Integrated optical transmission /** * At Photon::freq_obs_, between current position and observer. */ double transmission_freqobs_; /// Integrated optical transmission matrix (polarization) /** * At Photon::freq_obs_, between current position and observer. */ Eigen::Matrix4d transmissionMatrix_freqobs_; /// Observer's spectrometer /** * Conveying observation frequencies for quantities Spectrum and * BinSpectrum. */ SmartPointer spectro_; /// Integrated optical transmissions /** * For each frequency in Photon::spectro_->getMidpoints(), between * current position and observer. */ double * transmission_; /// Nb of crossings of equatorial plane z=0, theta=pi/2 int nb_cross_eqplane_; /// Integrated optical transmission matrix (polarization) /** * For each frequency in Photon::spectro_->getMidpoints(), between * current position and observer. */ Eigen::Matrix4d * transmissionMatrix_; // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; GYOTO_WORLDLINE; virtual std::string className() const ; ///< "Photon" virtual std::string className_l() const ; ///< "photon" /** * Allocates the default size (GYOTO_DEFAULT_X_SIZE) for x1, x2 etc. */ Photon() ; ///< Default constructor Photon(const Photon& ) ; ///< Copy constructor Photon* clone() const ; ///< Cloner protected: Photon(Photon* orig, size_t i0, int dir, double step_max); ///< Used by Photon::Refined::Refined() public: /// Same as Photon() followed by setInitialCondition(SmartPointer gg, SmartPointer obj, const double coord[8]) Photon(SmartPointer gg, SmartPointer obj, double* coord) ; /// Same as Photon() followed by setInitialCondition(SmartPointer gg, SmartPointer obj, SmartPointer screen, double d_alpha, double d_delta) Photon(SmartPointer gg, SmartPointer obj, SmartPointer screen, double d_alpha, double d_delta); virtual ~Photon() ; ///< Destructor virtual double getMass() const ; ///< Return 0. /// Set Photon::object_ void astrobj(SmartPointer); /// Get Photon::object_ SmartPointer astrobj() const ; using Worldline::metric; // Set Worldline::metric_ as well as the Astrobj metric void metric(SmartPointer); /// Set Photon::spectro_ void spectrometer(SmartPointer spr); /// Get Photon::spectro_ SmartPointer spectrometer() const ; /// Set Photon::freq_obs__ void freqObs(double); /// Get Photon::freq_obs__ double freqObs() const; /// Set Photon::nb_cross_eqplane_ void nb_cross_eqplane(int); /// Get Photon::nb_cross_eqplane_ int nb_cross_eqplane() const; // Mutators / assignment // --------------------- public: using Worldline::setInitialCondition; /// Set or re-set the initial condition prior to integration. /** * Set initial condition for this Photon. Several versions of this * function, with and without base vectors to parallel-transport, * are provided. If polarization is to be treated, use the version * with the base vectors. * * \param gg Gyoto::SmartPointer to the Gyoto::Metric in this universe; * \param obj Gyoto::SmartPointer to the target Gyoto::Astrobj; * \param coord 8-element array containing the initial condition, * i.e. the 4-position and the 4-velocity of the Photon at * the receiving end; * */ void setInitialCondition(SmartPointer gg, SmartPointer obj, const double coord[8]) ; /// Set or re-set the initial condition prior to integration. /** * Set initial condition for this Photon. Several versions of this * function, with and without base vectors to parallel-transport, * are provided. If polarization is to be treated, use the version * with the base vectors. Initialize those vectors to the two base * vectors for the Stokes parameters in the observer screen. * * \param gg Gyoto::SmartPointer to the Gyoto::Metric in this universe; * \param obj Gyoto::SmartPointer to the target Gyoto::Astrobj; * \param coord 8-element array containing the initial condition, * i.e. the 4-position and the 4-velocity of the Photon at * the receiving end; * \param Ephi initial value of base vector to parallel-transport. * Ignored if #parallel_transport_ is false. * \param Etheta initial value of base vector to parallel-transport. * Ignored if #parallel_transport_ is false. * */ void setInitialCondition(SmartPointer gg, SmartPointer obj, const double coord[8], const double Ephi[4], const double Etheta[4]) ; /// Set or re-set the initial condition prior to integration. /** * Set initial condition for this Photon. This version of this * function automatically takes care of initializing the base * vectors for polarization when needed. * * \param gg Gyoto::SmartPointer to the Gyoto::Metric in this universe; * \param obj Gyoto::SmartPointer to the target Gyoto::Astrobj; * \param screen Observer's screen; * \param d_alpha Direction of arrival (RA offset) in radians; * \param d_delta Direction of arrival (Dec offset) in radians. */ void setInitialCondition(SmartPointer gg, SmartPointer obj, SmartPointer screen, double d_alpha, double d_delta); /// Integrate the geodesic /** * \param[in,out] data Optional Astrobj::Properties to fill with * observational quantities. * \return 1 if object was hit, else 0. */ int hit(Astrobj::Properties *data=NULL); /** * \brief Find minimum of photon--object distance * * Return the minimum of (*object)(this->getCoord()) * between t1 and t2. The date of this minimum is returned in tmin. * * \param[in] object * the distance to minimize is given by * object->operator()(). This method is in particular * implemented by the subclasses of Astrobj::Standard. * \param[in] t1 date * \param[in] t2 date * \param[out] tmin on output, date correspondig to the minimum * \param[in] threshold stop searching for a minimum if a value < * threshold is found (very often, we just want to find * a date below the threshold, not the accurate * minimum). */ double findMin(Functor::Double_constDoubleArray* object, double t1, double t2, double &tmin, double threshold = DBL_MIN) ; /// Find date for which the photon is at a given distance from the object /** * \param[in] object Object, must implement operator() * (e.g. Astrobj::Standard, ThinDisk::Standard) * \param[in] value The value to find * \param[in] tinside A date for which * object->Astrobj::operator()(Photon::getCoord()) is < value * \param[in,out] toutside On input: a date for which * object->Astrobj::operator()(Photon::getCoord()) is > * value. on output, (*object)(getCoord(toutside)) is < * value, very close to value. toutside is closer to tinside * on output than on input. */ void findValue(Functor::Double_constDoubleArray* object, double value, double tinside, double &toutside) ; #ifdef GYOTO_USE_XERCES virtual void setParameters(FactoryMessenger *fmp) ; static SmartPointer Subcontractor(Gyoto::FactoryMessenger*); #endif /* transmission stuff */ public: /// Set transmission to 1 for each channel as well as scalar transmission void resetTransmission() ; /// Set transmission matrix to identity matrix for each frequency void resetTransmissionMatrix(); /// Get transmission /** * Get either Photon::transmission_freqobs_ (with i=-1) or * Photon::transmission_[i]. * * \param i channel number of the requested frequency, -1 for * Photon::freq_obs_. */ double getTransmission(size_t i) const ; /// Get transmission matrix /** * Get either Photon::transmission_freqobs_ (with i=-1) or * Photon::transmission_[i]. * * \param i channel number of the requested frequency, -1 for * Photon::freq_obs_. */ Eigen::Matrix4d getTransmissionMatrix(size_t i) const ; /// Get maximum transmission; /** * Get current maximum of all the transmissions, * Photon::transmission_freqobs_ or one elements of the * Photon::transmission_ array. * */ double getTransmissionMax() const ; /// Get Photon::transmission_ /** * getTansmission()[i] == getTransmission(size_t i) */ double const * getTransmission() const ; /// Get Photon::transmissionMatrix_ /** * getTansmissionMatrix()[i] == getTransmissionMatrix(size_t i) */ Eigen::Matrix4d const * getTransmissionMatrix() const ; /// Update transmission in a given channel /** * getTransmission(size_t i) *= t. * * \param i channel number. -1 for scalar Photon::transmission_freqobs_. * \param t transmission of this fluid element. */ virtual void transmit(size_t i, double t); /// Update transmission matrix in a given channel /** * getTransmissionMatrix(size_t i) *= mat. * * \param i channel number. -1 for Matrix Photon::transmissionMatrix_freqobs_. * \param mat transmission Matrix of this fluid element. */ virtual void transmit(size_t i, Eigen::Matrix4d mat); virtual void transfer(double * Inu, double * Qnu, double * Unu, double * Vnu, Eigen::Matrix4d * Onu); ///< Perform one step of polarized radiative transfert and update transmission matrix private: /// Allocate Photon::transmission_ void _allocateTransmission(); void _allocateTransmissionMatrix(); public: class Refined; }; /** * \class Gyoto::Photon::Refined * \brief Refine last step of integration in a Photon * * The integration step of a Photon's geodesic is adaptive. This is * computationally efficient, but sometimes it is necessary to get the * position of a Photon with a finer * step. Gyoto::ComplexAstrobj::Impact() is a typical use case. * * A Refined photon is linked to its parent. In particular, care is * taken so that the parent's to update the parent's transmissions * whenever the Refined transmissions are touched. * * Don't use this class blindly: what's guaranteed to work is what is * used in Gyoto::ComplexAstrobj::Impact(). * * XML description corresponding to this class is <Photon/>. It * supports all the parameters supported by the Gyoto::Worldline class * plus an optional <Astrobj/> section to attach a instance of a * Gyoto::Astrobj::Generic sub-class. */ class Gyoto::Photon::Refined : public Gyoto::Photon { protected: Photon * parent_; ///< Parent Photon. public: Refined(Photon *parent, size_t i, int dir, double step_max); ///< Constructor virtual void transmit(size_t i, double t); ///< Update transmission both in *this and in *parent_ virtual void transmit(size_t i, Eigen::Matrix4d mat); ///< Update transmission Matrix both in *this and in *parent_ virtual void transfer(double * Inu, double * Qnu, double * Unu, double * Vnu, Eigen::Matrix4d * Onu); ///< Perform one step of polarized radiative transfert and update transmission matrix }; #endif Gyoto-2.0.2/include/GyotoPlasmoid.h000066400000000000000000000102701455254334400172130ustar00rootroot00000000000000/** * \file GyotoPlasmoid.h * \brief Plasmoid sphere formed by magnetic reconnection following a Star orbit, emitting synchrotron, * with two distributions of electrons: * one thermal at "low" temperature and one kappa at "high" temperature * */ /* Copyright 2019 Frederic Vincent, Thibaut Paumard, Nicolas Aimar This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoPlasmoid_H_ #define __GyotoPlasmoid_H_ namespace Gyoto{ namespace Astrobj { class Plasmoid; } } #include #include #include #include #include #include #include //#include #ifdef GYOTO_USE_CFITSIO #include #endif #ifdef GYOTO_USE_XERCES #include #endif #include /** * \class Gyoto::Astrobj::Plasmoid * \brief Plasmoid Shere of plasma emitting synchrotron, following * a trajectory specified in getVelocity (non-geodesic a priori) * */ class Gyoto::Astrobj::Plasmoid : public FitsRW, public Gyoto::Astrobj::UniformSphere{ friend class Gyoto::SmartPointer; // Data : // ----- private: double* posIni_; // 4-position of the plasmoid in spherical coordinates double* fourveldt_; // 4-velocity of the plasmoid in spherical coordinates (dxi/dt, not dtau) std::string flag_; // type of motion "helical" or "equatorial" bool posSet_; double t_inj_; double radiusMax_; // Maximun radius of the Plasmoid in geometrical units std::string varyRadius_; // FITS FILE Quantities std::string filename_; double* freq_array_; double* jnu_array_; double* anu_array_; // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; // This object has a (non-inherited) Property list /** * Create Plasmoid object with undefined initial conditions. One needs to * set the coordinate system, the metric, the type of motion, and the initial position * and velocity before integrating the orbit. initCoord() * can be used for that. */ Plasmoid(); ///< Default constructor Plasmoid(const Plasmoid& orig); ///< Copy constructor virtual Plasmoid * clone() const ; virtual ~Plasmoid() ; ///< Destructor public: virtual std::string className() const ; ///< "Plasmoid" virtual std::string className_l() const ; ///< "inflate_star" public: void motionType(std::string const type); SmartPointer metric() const; void metric(SmartPointer gg); void initPosition(std::vector const &v); std::vector initPosition() const; void initVelocity(std::vector const &v); std::vector initVelocity() const; void initCoord(std::vector const &v); std::vector initCoord() const; void radiusMax(double rr); double radiusMax() const; void Radius(std::string vary); virtual void radiativeQ(double Inu[], double Taunu[], double const nu_em[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]=NULL) const; void getCartesian(double const * const dates, size_t const n_dates, double * const x, double * const y, double * const z, double * const xprime=NULL, double * const yprime=NULL, double * const zprime=NULL); void getVelocity(double const pos[4], double vel[4]); int Impact(Gyoto::Photon* ph, size_t index, Astrobj::Properties *data=NULL); void file(std::string const &f); std::vector fitsRead(std::string filename); }; #endif Gyoto-2.0.2/include/GyotoPolishDoughnut.h000066400000000000000000000245631455254334400204310ustar00rootroot00000000000000/** * \file GyotoPolishDoughnut.h * \brief A magnetized toroidal accretion structure * * Latest reference: Vincent, F. H.; Yan, W.; Straub, O.; * Zdziarski, A. A.; Abramowicz, M. A. 2015, A magnetized torus * for modeling Sagittarius A* millimeter images and spectra, * A&A 574:A48. * * First reference: Straub, O.; Vincent, F. H.; Abramowicz, M. A.; * Gourgoulhon, E.; & Paumard, T. 2012, Modelling the * black hole silhouette in Sagittarius A* with ion tori, * A&A 543:83. * */ /* Copyright (c) 2012-2016, 2018-2019 Frederic Vincent, Odele Straub, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoPolishDoughnut_H_ #define __GyotoPolishDoughnut_H_ namespace Gyoto{ namespace Astrobj { class PolishDoughnut; } class FactoryMessenger; } #include #include #include #include #include #include /** * \brief A toroidal accretion structure * * Latest reference: Vincent, F. H.; Yan, W.; Straub, O.; * Zdziarski, A. A.; Abramowicz, M. A. 2015, A magnetized torus * for modeling Sagittarius A* millimeter images and spectra, * A&A 574:A48. * * Reference: Straub, O.; Vincent, F. H.; Abramowicz, M. A.; * Gourgoulhon, E.; & Paumard, T. 2012, Modelling the * black hole silhouette in Sagittarius A* with ion tori, * A&A 543:83. * */ class Gyoto::Astrobj::PolishDoughnut : public Astrobj::Standard, protected Gyoto::Hook::Listener { friend class Gyoto::SmartPointer; // Data : // ----- protected: SmartPointer spectrumBrems_; SmartPointer spectrumSynch_; SmartPointer spectrumPLSynch_; double l0_; ///< Angular momentum. Tied to PolishDoughnut::lambda_. double lambda_; ///< Adimentionned angular momentum double W_surface_; ///< Potential surface value. Tied to PolishDoughnut::lambda_. double W_centre_; ///< Potential central value. Tied to PolishDoughnut::lambda_. double r_cusp_; ///< Cusp radius in geometrical units. Tied to PolishDoughnut::lambda_. double r_centre_; ///< Central radius in geometrical units. Tied to PolishDoughnut::lambda_. double r_torusouter_ ; ///< Torus outer coordinate radius. Tied to PolishDoughnut::lambda_. double DeltaWm1_; ///< 1./(W_centre_ - W_surface_); double central_enthalpy_cgs_; ///< Central enthalpy per unit volume in erg/cm3 double central_temperature_; ///< Tcenter in K double beta_; ///< Pgas/Pmagn (careful not standard) double magnetizationParameter_; ///< Pmagn/(ne mp c2) (careful, very different from above) double aa_; ///< PolishDoughnut::gg_ spin, cached when setting PolishDoughnut::lambda_ double aa2_; ///< aa_2 size_t spectral_oversampling_;///< Oversampling used in integrateEmission() bool angle_averaged_; ///< 1 if Komissarov model should be angle averaged bool bremsstrahlung_; ///< 1 if Komissarov model should compute Brems radiation /// fraction of thermal energy in non-thermal electrons /** * Obsiously, 0 means no non-thermal electrons at all. In this case, * the (trivial) non-thermal computations are skipped. Ther is thus * non need for an additional "nonthermal_" flag. */ double deltaPL_; ///< Fraction of electrons emitting powerlaw synchro bool adaf_; ///< true to switch to an ADAF model rather tha Polish doughnut double ADAFtemperature_; ///< ADAF central temperature double ADAFdensity_; ///< ADAF central density bool changecusp_; ///< true to apply the fishy rcusp_ change (to be changed) bool rochelobefilling_; ///< true if torus filling its Roche lobe bool defangmomrinner_; ///< true if torus defined from l0 and rin double rintorus_; ///< Inner radius of the doughnut // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; // This object has Properties GYOTO_OBJECT_THREAD_SAFETY; #ifdef GYOTO_USE_XERCES // We need to filter some properties when writing XML void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const; #endif PolishDoughnut() ; ///< Default constructor PolishDoughnut(const PolishDoughnut& ) ; ///< Copy constructor virtual PolishDoughnut* clone() const; virtual ~PolishDoughnut() ; ///< Destructor // Mutators / assignment // --------------------- public: // Accessors // --------- public: double getL0() const; ///< Get PolishDoughnut::l0_ // void setL0(double l0); set by lambda_ double lambda() const; ///< Get PolishDoughnut::lambda_ void lambda(double lambda); ///< Set PolishDoughnut::lambda_ double centralEnthalpyPerUnitVolume() const; ///< Get PolishDoughnut::central_enthalpy_cgs_ double centralEnthalpyPerUnitVolume(std::string const &unit) const; ///< Get PolishDoughnut::central_enthalpy_cgs_ in specified unit void centralEnthalpyPerUnitVolume(double density); ///< Set PolishDoughnut::central_enthalpy_cgs_ void centralEnthalpyPerUnitVolume(double density, std::string const &unit); ///< Set PolishDoughnut::central_enthalpy_cgs_ in specified unit double centralTemp() const; ///< Get PolishDoughnut::central_temperature_ void centralTemp(double val); ///< Set PolishDoughnut::central_temperature_ double beta() const; ///< Get PolishDoughnut::beta_ void beta(double beta);///< Set PolishDoughnut::beta_ void magnetizationParameter(double rr); double magnetizationParameter()const; void spectralOversampling(size_t); ///< Set PolishDoughnut::spectral_oversampling_ size_t spectralOversampling() const ; ///< Get PolishDoughnut::spectral_oversampling_ bool changeCusp() const; ///< Get PolishDoughnut::komissarov_ void changeCusp(bool t); ///< Set PolishDoughnut::komissarov_ bool bremsstrahlung() const; ///< Get PolishDoughnut::bremsstrahlung_ void bremsstrahlung(bool brems); ///< Set PolishDoughnut::bremsstrahlung_ bool angleAveraged() const; ///< Get PolishDoughnut::angle_averaged_ void angleAveraged(bool komis); ///< Set PolishDoughnut::angle_averaged_ void nonThermalDeltaExpo(std::vector const &v); std::vector nonThermalDeltaExpo() const; void angmomrinner(std::vector const &v); std::vector angmomrinner() const; void adafparams(std::vector const &v); std::vector adafparams() const; void adaf(bool t); bool adaf() const; void setParameter(Gyoto::Property const &p, std::string const & name, std::string const & content, std::string const & unit); // Read only members, depend on lambda double getWsurface() const; ///< Get PolishDoughnut::W_surface_ double getWcentre() const; ///< Get PolishDoughnut::W_centre_ double getRcusp() const; ///< Get PolishDoughnut::r_cusp_ double getRcentre() const; ///< Get PolishDoughnut::r_centre_ using Standard::metric; virtual void metric(Gyoto::SmartPointer); // ASTROBJ API // ----------- int Impact(Photon *ph, size_t index, Astrobj::Properties *data); virtual double operator()(double const coord[4]) ; // ASTROBJ processHitQuantities API // -------------------------------- protected: /** * \brief Update PolishDoughnut::aa_ * * See Hook::Listener::tell(). */ virtual void tell(Gyoto::Hook::Teller * msg); virtual void getVelocity(double const pos[4], double vel[4]) ; using Standard::integrateEmission; /** * \brief ∫ν1ν2 Iν dν (or jν) * * PolishDought::emission() is slow. Integrating it is very * slow. This implementation simply oversamples the spectrum by * PolishDoughnut::spectral_oversampling_ and sums the trapezoids. * * For general documentation, see Astrobj::Generic::integrateEmission(double * I, double const * boundaries, size_t const * chaninds, size_t nbnu, double dsem, double *cph, double *co) const . */ virtual void integrateEmission(double * I, double const * boundaries, size_t const * chaninds, size_t nbnu, double dsem, state_t const &cph, double const *co) const; virtual void radiativeQ(double Inu[], double Taunu[], double const nu_em[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]=NULL) const ; // PURELY INTERNAL TO ASTROBJ // -------------------------- private: double potential(double r, double theta) const; ///< Potential defining shape, used by operator()() /** * \class Gyoto::Astrobj::PolishDoughnut::intersection_t * \brief double intersection(double) Functor class * * Implement former double intersection(double) function as a * Gyoto::Functor::Double_Double_const subclass to access generic * root-finding methods. * * This class is instantiated in a single * PolishDoughnut::intersection member. */ class intersection_t : public Gyoto::Functor::Double_Double_const { public: intersection_t(PolishDoughnut* parent); PolishDoughnut * papa; virtual double operator() (double) const; }; friend class intersection_t; intersection_t intersection; ///< double intersection(double) Functor /** * \class Gyoto::Astrobj::PolishDoughnut::outerradius_t * \brief double outerradius(double) Functor class * * To find the outer doughnut radius. * This class is as a local variable in PolishDoughnut::emission() */ class outerradius_t : public Gyoto::Functor::Double_Double_const { public: const PolishDoughnut * papa; virtual double operator() (double) const; }; // Outputs // ------- public: /// Display friend std::ostream& operator<<(std::ostream& , const PolishDoughnut& ) ; public: }; #endif Gyoto-2.0.2/include/GyotoPowerLawSpectrum.h000066400000000000000000000050741455254334400207340ustar00rootroot00000000000000/** * \file GyotoPowerLawSpectrum.h * \brief A power law spectrum : I_nu=constant_*nu^exponent_ * * Light emitted by an astronomical object */ /* Copyright 2011-2014, 2016, 2018 Thibaut Paumard & Frederic Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoPowerLawSpectrum_H_ #define __GyotoPowerLawSpectrum_H_ #include #include namespace Gyoto { namespace Spectrum { class PowerLaw; } } /** * \class Gyoto::Spectrum::PowerLaw * \brief I_nu=constant_*nu^exponent_ * * Light emitted by e.g. a Star. * * XML stanza: * \code * * 0. * 1. * * \endcode */ class Gyoto::Spectrum::PowerLaw : public Gyoto::Spectrum::Generic { friend class Gyoto::SmartPointer; protected: double constant_; ///< I_nu=constant_*nu^exponent_ double exponent_; ///< I_nu=constant_*nu^exponent_ double minfreq_; ///< Lower-frequency cutoff (emits at nu>=minfreq_) double maxfreq_; ///< Upper-frequency cutoff (emits at nu<=maxfreq_) public: GYOTO_OBJECT; PowerLaw(); /** * \brief Constructor setting exponent_ and optionally constant_ */ PowerLaw(double exponent, double constant=1.); // PowerLaw(const Spectrum &); virtual PowerLaw * clone() const; ///< Cloner double constant() const; ///< Get constant_ void constant(double); ///< Set constant_ double exponent() const; ///< Get exponent_ void exponent(double); ///< Set exponent_ std::vector cutoff(std::string const &unit) const; ///< Get cutoffs, specifying unit void cutoff(std::vector const &v, std::string const &unit); ///< Set cutoffs, specifying unit std::vector cutoff() const; ///< Get cutoffs, in Hz void cutoff(std::vector const &v); ///< Set cutoffs, in Hz using Gyoto::Spectrum::Generic::operator(); virtual double operator()(double nu) const; }; #endif Gyoto-2.0.2/include/GyotoPowerLawSynchrotronSpectrum.h000066400000000000000000000127741455254334400232120ustar00rootroot00000000000000/** * \file GyotoPowerLawSynchrotronSpectrum.h * \brief Powerlaw synchrotron spectrum * */ /* Copyright 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoPowerLawSynchrotronSpectrum_H_ #define __GyotoPowerLawSynchrotronSpectrum_H_ #include "GyotoSpectrum.h" #include namespace Gyoto { namespace Spectrum { class PowerLawSynchrotron; } } /** * \class Gyoto::Spectrum::PowerLawSynchrotron * \brief Powerlaw synchrotron spectrum * * * Example XML entity: * \code * * * \endcode * */ class Gyoto::Spectrum::PowerLawSynchrotron : public Gyoto::Spectrum::Generic { friend class Gyoto::SmartPointer; protected: SmartPointer spectrumBB_; ///< blackbody emission double numberdensityCGS_; ///< Number density in CGS UNITS (careful) double angle_B_pem_; ///< Angle between Bfield and emission direction (rad) double cyclotron_freq_; ///< Cyclotron frequency (e*B / 2*pi*me*c) double PLindex_; ///< Power law index: electron spectrum \propto gamma^-PLindex_ bool angle_averaged_; ///< Boolean for angle averaging double gamma_min_; double gamma_max_; public: GYOTO_OBJECT; PowerLawSynchrotron(); PowerLawSynchrotron(const PowerLawSynchrotron &); virtual PowerLawSynchrotron * clone() const; ///< Cloner using Gyoto::Spectrum::Generic::operator(); /** * This function returns the optically thick Inu * which is not defined here, returns an error * * \param nu frequency in Hz */ virtual double operator()(double nu) const; /** * This function returns the optically thin increment * to intensity dI_nu = j_nu*ds*exp(-alpha_nu*ds) * in SI units * * \param nu frequency in Hz * \param ds length element in SI (careful to this) */ #ifndef GYOTO_SWIGIMPORTED virtual double operator()(double nu,double ,double ds) const; #endif // NB: the second argument, opacity in the Spectrum API // is useless here double numberdensityCGS() const; void numberdensityCGS(double rho); double angle_B_pem() const; void angle_B_pem(double rho); double cyclotron_freq() const; void cyclotron_freq(double rho); double PLindex() const; void PLindex(double ind); bool angle_averaged() const; void angle_averaged(bool ang); double gamma_min() const; void gamma_min(double gmin); double gamma_max() const; void gamma_max(double gmax); /** * Returns the emission coefficient j_nu in cgs units * i.e. erg cm^-3 s^-1 ster^-1 Hz^-1 * * \param nu frequency in Hz */ double jnuCGS(double nu) const; /** * Returns the Stokes Q emission coefficient j_nu in cgs units * i.e. erg cm^-3 s^-1 ster^-1 Hz^-1 * * \param nu frequency in Hz */ double jQnuCGS(double nu) const; /** * Returns the Stokes U emission coefficient j_nu in cgs units * i.e. erg cm^-3 s^-1 ster^-1 Hz^-1 * * \param nu frequency in Hz */ double jUnuCGS(double nu) const; /** * Returns the Stokes V emission coefficient j_nu in cgs units * i.e. erg cm^-3 s^-1 ster^-1 Hz^-1 * * \param nu frequency in Hz */ double jVnuCGS(double nu) const; /** * Returns the absorption coefficient alpha_nu in cgs units [cm^-1] * * \param nu frequency in Hz */ double alphanuCGS(double nu) const; /** * Returns the Stokes Q absorption coefficient alpha_nu in cgs units [cm^-1] * * \param nu frequency in Hz */ double alphaQnuCGS(double nu) const; /** * Returns the Stokes U absorption coefficient alpha_nu in cgs units [cm^-1] * * \param nu frequency in Hz */ double alphaUnuCGS(double nu) const; /** * Returns the Stokes V absorption coefficient alpha_nu in cgs units [cm^-1] * * \param nu frequency in Hz */ double alphaVnuCGS(double nu) const; /** * Returns the Stokes Q Faraday rotation coefficient in cgs units [cm^-1] * * \param nu frequency in Hz */ double rQnuCGS(double nu) const; /** * Returns the Stokes U Faraday rotation coefficient in cgs units [cm^-1] * * \param nu frequency in Hz */ double rUnuCGS(double nu) const; /** * Returns the Stokes V Faraday rotation coefficient in cgs units [cm^-1] * * \param nu frequency in Hz */ double rVnuCGS(double nu) const; /** * Returns the emission and absorption coef in SI * */ void radiativeQ(double jnu[], // output double anu[], // output double const nu_ems[], size_t nbnu ) ; /** * Returns the emission, absorption and Fraday rotation coef in SI for the 4 Stokes parameters * */ void radiativeQ(double jInu[], double jQnu[], double jUnu[], double jVnu[], double aInu[], double aQnu[], double aUnu[], double aVnu[], double rQnu[], double rUnu[], double rVnu[], double const nu_ems[], size_t nbnu ); }; #endif Gyoto-2.0.2/include/GyotoProperty.h000066400000000000000000001144031455254334400172720ustar00rootroot00000000000000/** * \file GyotoProperty.h * \brief Introspectable properties */ /* Copyright 2014-2016 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoProperty_H_ #define __GyotoProperty_H_ #include "GyotoConfig.h" #include #include #ifndef GYOTO_PLUGIN #define GYOTO_PLUGIN #endif namespace Gyoto { class Object; class Property; namespace Metric { class Generic; } namespace Astrobj { class Generic; } namespace Spectrum { class Generic; } namespace Spectrometer { class Generic; } class Screen; template class SmartPointer; } /// Define the class as not beeing thread-safe /** * See also GYOTO_OBJECT_THREAD_SAFETY */ #define GYOTO_PROPERTY_THREAD_UNSAFE(class) \ bool class::isThreadSafe() const {return false;} /// Define a pair of accessors to scalar member (double, long, size_t) /** * Accessors must also be declared in the class declaration, which can * be done using #GYOTO_OBJECT_SCALAR_ACCESSORS. */ #define GYOTO_PROPERTY_ACCESSORS(class, type, member, method) \ void class::method(type v) {member=v;} \ type class::method() const {return member;} /// Define a pair of accessors to scalar member (double, long, size_t) /** * Accessors must also be declared in the class declaration, which can * be done using #GYOTO_OBJECT_SCALAR_ACCESSORS. * * This version allows performing sepcial actions in the accessors, in * addition to the usual stuff. * */ #define GYOTO_PROPERTY_ACCESSORS_SPECIAL(class, type, member, method, set, get) \ void class::method(type v) {member=v; set } \ type class::method() const {get ; return member;} /// Define 4 accessors to double scalar member in geometrical units /** * Accessors must also be declared in the class declaration, which can * be done using #GYOTO_OBJECT_ACCESSORS_UNIT. * * \param class class name * \param member member holding the value in geometrical unit * \param method name for accessors * \metric member or expression yielding metric (which defines the * geometrical unit) */ #define GYOTO_PROPERTY_ACCESSORS_GEOMETRICAL(class, member, method, metric) \ GYOTO_PROPERTY_ACCESSORS(class, double, member, method) \ void class::method(double v, std::string const &u) { \ member=Units::ToGeometrical(v, u, metric); \ } \ double class::method(std::string const &u) const { \ return Units::FromGeometrical(member, u, metric); \ } /// GYOTO_PROPERTY_ACCESSORS_GEOMETRICAL + GYOTO_PROPERTY_ACCESSORS_SPECIAL /** * Accessors must also be declared in the class declaration, which can * be done using #GYOTO_OBJECT_ACCESSORS_UNIT. * * \param class class name * \param member member holding the value in geometrical unit * \param method name for accessors * \metric member or expression yielding metric (which defines the * geometrical unit) */ #define GYOTO_PROPERTY_ACCESSORS_GEOMETRICAL_SPECIAL(class, member, method, metric, set, get) \ GYOTO_PROPERTY_ACCESSORS_SPECIAL(class, double, member, method, set, get) \ void class::method(double v, std::string const &u) { \ member=Units::ToGeometrical(v, u, metric); \ } \ double class::method(std::string const &u) const { \ return Units::FromGeometrical(member, u, metric); \ } /// Define 4 accessors to double scalar member in specified units /** * Accessors must also be declared in the class declaration, which can * be done using #GYOTO_OBJECT_ACCESSORS_UNIT. * * \param class class name * \param member member holding the value in specified unit * \param method name for accessors * \unit unit */ #define GYOTO_PROPERTY_ACCESSORS_UNIT(class, member, method, unit) \ GYOTO_PROPERTY_ACCESSORS(class, double, member, method) \ void class::method(double v, std::string const &u) { \ method(Units::Converter(u, unit)(v)); \ } \ double class::method(std::string const &u) const { \ return Units::Converter(unit, u)(method()); \ } /// Start Property list /** * \param class Class for which we are defining a Property list * \param doc Documentation for this class. Optional but recommended. */ #define GYOTO_PROPERTY_START(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ "wrong number of arguments", \ "wrong number of arguments", \ "wrong number of arguments", \ "wrong number of arguments", \ GYOTO_PROPERTY_START_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_START_NODOC(__VA_ARGS__), \ "wrong number of arguments" \ ) /// Define a new Property of type bool /* * Declares a Property named "name". name and namef should not * be quoted. * * \param[in] class Class name * \param[in] name Name of property if true; * \param[in] namef Name of property if false; * \param[in] fname Name of functions for setting or getting the property * \param[in] doc Document string (optional but recommended) */ #define GYOTO_PROPERTY_BOOL(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ "wrong number of arguments", \ GYOTO_PROPERTY_BOOL_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_BOOL_NODOC(__VA_ARGS__), \ "wrong number of arguments", \ "wrong number of arguments", \ "wrong number of arguments", \ "wrong number of arguments" \ ) /// Define a Property of type double /* * Declares a Property named "name". name and namef should not * be quoted. * * \param[in] class Class name * \param[in] name Name of property if true; * \param[in] fname Name of functions for setting or getting the property * \param[in] doc Document string (optional but recommended) */ #define GYOTO_PROPERTY_DOUBLE(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ GYOTO_NOTHING_6, \ GYOTO_NOTHING_5, \ GYOTO_PROPERTY_DOUBLE_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_DOUBLE_NODOC(__VA_ARGS__), \ GYOTO_NOTHING_2, \ GYOTO_NOTHING_1, \ GYOTO_NOTHING_0 \ ) /// Define a Property of type double with unit /* * Declares a Property named "name". name and namef should not * be quoted. * * \param[in] class Class name * \param[in] name Name of property if true; * \param[in] fname Name of functions for setting or getting the property * \param[in] doc Document string (optional but recommended) */ #define GYOTO_PROPERTY_DOUBLE_UNIT(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ GYOTO_NOTHING_6, \ GYOTO_NOTHING_5, \ GYOTO_PROPERTY_DOUBLE_UNIT_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_DOUBLE_UNIT_NODOC(__VA_ARGS__), \ GYOTO_NOTHING_2, \ GYOTO_NOTHING_1, \ GYOTO_NOTHING_0 \ ) /// Define a Property of type vector /* * Declares a Property named "name". name and namef should not * be quoted. * * \param[in] class Class name * \param[in] name Name of property if true; * \param[in] fname Name of functions for setting or getting the property * \param[in] doc Document string (optional but recommended) */ #define GYOTO_PROPERTY_VECTOR_DOUBLE(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ GYOTO_NOTHING_6, \ GYOTO_NOTHING_5, \ GYOTO_PROPERTY_VECTOR_DOUBLE_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_VECTOR_DOUBLE_NODOC(__VA_ARGS__), \ GYOTO_NOTHING_2, \ GYOTO_NOTHING_1, \ GYOTO_NOTHING_0 \ ) /// Define a Property of type vector with unit /* * Declares a Property named "name". name and namef should not * be quoted. * * \param[in] class Class name * \param[in] name Name of property if true; * \param[in] fname Name of functions for setting or getting the property * \param[in] doc Document string (optional but recommended) */ #define GYOTO_PROPERTY_VECTOR_DOUBLE_UNIT(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ GYOTO_NOTHING_6, \ GYOTO_NOTHING_5, \ GYOTO_PROPERTY_VECTOR_DOUBLE_UNIT_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_VECTOR_DOUBLE_UNIT_NODOC(__VA_ARGS__), \ GYOTO_NOTHING_2, \ GYOTO_NOTHING_1, \ GYOTO_NOTHING_0 \ ) /// Define a Property of type String /* * Declares a Property named "name". name and namef should not * be quoted. * * \param[in] class Class name * \param[in] name Name of property if true; * \param[in] fname Name of functions for setting or getting the property * \param[in] doc Document string (optional but recommended) */ #define GYOTO_PROPERTY_STRING(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ GYOTO_NOTHING_6, \ GYOTO_NOTHING_5, \ GYOTO_PROPERTY_STRING_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_STRING_NODOC(__VA_ARGS__), \ GYOTO_NOTHING_2, \ GYOTO_NOTHING_1, \ GYOTO_NOTHING_0 \ ) /// Define a Property of type Filename /* * Declares a Property named "name". name and namef should not * be quoted. * * \param[in] class Class name * \param[in] name Name of property if true; * \param[in] fname Name of functions for setting or getting the property * \param[in] doc Document string (optional but recommended) */ #define GYOTO_PROPERTY_FILENAME(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ GYOTO_NOTHING_6, \ GYOTO_NOTHING_5, \ GYOTO_PROPERTY_FILENAME_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_FILENAME_NODOC(__VA_ARGS__), \ GYOTO_NOTHING_2, \ GYOTO_NOTHING_1, \ GYOTO_NOTHING_0 \ ) /// Define a Property of type long /* * Declares a Property named "name". name and namef should not * be quoted. * * \param[in] class Class name * \param[in] name Name of property if true; * \param[in] fname Name of functions for setting or getting the property * \param[in] doc Document string (optional but recommended) */ #define GYOTO_PROPERTY_LONG(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ GYOTO_NOTHING_6, \ GYOTO_NOTHING_5, \ GYOTO_PROPERTY_LONG_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_LONG_NODOC(__VA_ARGS__), \ GYOTO_NOTHING_2, \ GYOTO_NOTHING_1, \ GYOTO_NOTHING_0 \ ) /// Define a Property of type unsigned long /* * Declares a Property named "name". name and namef should not * be quoted. * * \param[in] class Class name * \param[in] name Name of property if true; * \param[in] fname Name of functions for setting or getting the property * \param[in] doc Document string (optional but recommended) */ #define GYOTO_PROPERTY_UNSIGNED_LONG(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ GYOTO_NOTHING_6, \ GYOTO_NOTHING_5, \ GYOTO_PROPERTY_UNSIGNED_LONG_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_UNSIGNED_LONG_NODOC(__VA_ARGS__), \ GYOTO_NOTHING_2, \ GYOTO_NOTHING_1, \ GYOTO_NOTHING_0 \ ) /// Define a Property of type vector /* * Declares a Property named "name". name and namef should not * be quoted. * * \param[in] class Class name * \param[in] name Name of property if true; * \param[in] fname Name of functions for setting or getting the property * \param[in] doc Document string (optional but recommended) */ #define GYOTO_PROPERTY_VECTOR_UNSIGNED_LONG(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ GYOTO_NOTHING_6, \ GYOTO_NOTHING_5, \ GYOTO_PROPERTY_VECTOR_UNSIGNED_LONG_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_VECTOR_UNSIGNED_LONG_NODOC(__VA_ARGS__), \ GYOTO_NOTHING_2, \ GYOTO_NOTHING_1, \ GYOTO_NOTHING_0 \ ) /// Define a Property of type size_t /* * Declares a Property named "name". name and namef should not * be quoted. * * \param[in] class Class name * \param[in] name Name of property if true; * \param[in] fname Name of functions for setting or getting the property * \param[in] doc Document string (optional but recommended) */ #define GYOTO_PROPERTY_SIZE_T(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ GYOTO_NOTHING_6, \ GYOTO_NOTHING_5, \ GYOTO_PROPERTY_SIZE_T_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_SIZE_T_NODOC(__VA_ARGS__), \ GYOTO_NOTHING_2, \ GYOTO_NOTHING_1, \ GYOTO_NOTHING_0 \ ) /// Define a Property of type Gyoto::Metric::Generic /* * Declares a Property named "name". name and namef should not * be quoted. * * \param[in] class Class name * \param[in] name Name of property if true; * \param[in] fname Name of functions for setting or getting the property * \param[in] doc Document string (optional but recommended) */ #define GYOTO_PROPERTY_METRIC(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ GYOTO_NOTHING_6, \ GYOTO_NOTHING_5, \ GYOTO_PROPERTY_METRIC_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_METRIC_NODOC(__VA_ARGS__), \ GYOTO_NOTHING_2, \ GYOTO_NOTHING_1, \ GYOTO_NOTHING_0 \ ) /// Define a Property of type Gyoto::Spectrum::Generic /* * Declares a Property named "name". name and namef should not * be quoted. * * \param[in] class Class name * \param[in] name Name of property if true; * \param[in] fname Name of functions for setting or getting the property * \param[in] doc Document string (optional but recommended) */ #define GYOTO_PROPERTY_SPECTRUM(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ GYOTO_NOTHING_6, \ GYOTO_NOTHING_5, \ GYOTO_PROPERTY_SPECTRUM_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_SPECTRUM_NODOC(__VA_ARGS__), \ GYOTO_NOTHING_2, \ GYOTO_NOTHING_1, \ GYOTO_NOTHING_0 \ ) /// Define a Property of type Gyoto::Astrobj::Generic /* * Declares a Property named "name". name and namef should not * be quoted. * * \param[in] class Class name * \param[in] name Name of property if true; * \param[in] fname Name of functions for setting or getting the property * \param[in] doc Document string (optional but recommended) */ #define GYOTO_PROPERTY_ASTROBJ(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ GYOTO_NOTHING_6, \ GYOTO_NOTHING_5, \ GYOTO_PROPERTY_ASTROBJ_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_ASTROBJ_NODOC(__VA_ARGS__), \ GYOTO_NOTHING_2, \ GYOTO_NOTHING_1, \ GYOTO_NOTHING_0 \ ) /// Define a Property of type Gyoto::Screen /* * Declares a Property named "name". name and namef should not * be quoted. * * \param[in] class Class name * \param[in] name Name of property if true; * \param[in] fname Name of functions for setting or getting the property * \param[in] doc Document string (optional but recommended) */ #define GYOTO_PROPERTY_SCREEN(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ GYOTO_NOTHING_6, \ GYOTO_NOTHING_5, \ GYOTO_PROPERTY_SCREEN_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_SCREEN_NODOC(__VA_ARGS__), \ GYOTO_NOTHING_2, \ GYOTO_NOTHING_1, \ GYOTO_NOTHING_0 \ ) /// Define a Property of type Gyoto::Spectrometer::Generic /* * Declares a Property named "name". name and namef should not * be quoted. * * \param[in] class Class name * \param[in] name Name of property if true; * \param[in] fname Name of functions for setting or getting the property * \param[in] doc Document string (optional but recommended) */ #define GYOTO_PROPERTY_SPECTROMETER(...) \ GYOTO_PROPERTY_CHOOSER(,##__VA_ARGS__, \ GYOTO_NOTHING_6, \ GYOTO_NOTHING_5, \ GYOTO_PROPERTY_SPECTROMETER_DOC(__VA_ARGS__), \ GYOTO_PROPERTY_SPECTROMETER_NODOC(__VA_ARGS__), \ GYOTO_NOTHING_2, \ GYOTO_NOTHING_1, \ GYOTO_NOTHING_0 \ ) /// Define class::properties and class::getProperties() #define GYOTO_PROPERTY_END(class, next) \ Property(next)}; \ Gyoto::Property const * class::getProperties() const { \ return class::properties; \ } \ const std::string class::builtinPluginValue ( GYOTO_STRINGIFY(GYOTO_PLUGIN) ); \ std::vector class::plugins() const { \ if (plugins_.size() == 0) { \ std::vector p; \ p.push_back(class::builtinPluginValue); \ return p; \ } \ return plugins_; \ } \ void class::plugins(std::vector const & plugname) { \ plugins_=plugname; \ } /// Property that can be set and got using standard methods /** * The Property API makes it easy to declare the parameters that can * be set in a class. * * Developpers who simply write classes (deriving from * Astrobj::Generic, , Metric::Generic, Spectrum::Generic) need not * know the inners of the Property class and interact with it only * using macros to declare the parameters they need to read from XML. * * To make use of the Property framework, a class * must derive from Gyoto::Object and use the #GYOTO_OBJECT in a * public section of the class declaration (i.e. in the .h * file). Then, in the corresponding .C file, the GYOTO_PROPERTY_* * macros are used as follows (note the absence of punctuation after * the macros): * \code * GYOTO_PROPERTY_START(MyClass) * GYOTO_PROPERTY_(MyClass, PropertyName, accessor) * ... * GYOTO_PROPERTY_END(MyClass, ParentClass::properties) * \endcode * * In the above, #GYOTO_PROPERTY_START starts the definition of the * static member MyClass::properties. Each GYOTO_PROPERTY_ macro * declares a new property. #GYOTO_PROPERTY_END ends the definition of * the property list, with an optional pointer to the parent's class * Property list, and defines the MyClass::getProperties() method. * * The underlying accessors must always be defined, both to set and to * get the property. For the sake of simplicity, only a limited number * of data types are allowed: * - double: see #GYOTO_PROPERTY_DOUBLE, #GYOTO_PROPERTY_DOUBLE_UNIT; * - long: see #GYOTO_PROPERTY_LONG; * - unsigned long: see #GYOTO_PROPERTY_UNSIGNED_LONG * (a.k.a. size_t: see #GYOTO_PROPERTY_SIZE_T, this may break on * architectures where size_t is not the same as unsigned long); * - bool: see #GYOTO_PROPERTY_BOOL; * - std::vector: see #GYOTO_PROPERTY_VECTOR_DOUBLE * and #GYOTO_PROPERTY_VECTOR_DOUBLE_UNIT; * - std::vector: * see #GYOTO_PROPERTY_VECTOR_UNSIGNED_LONG; * - Gyoto::SmartPointers to various base classes: Screen, * Metric::Generic, Astrobj::Generic, Spectrum::Generic and * Spectrometer::Generic. See #GYOTO_PROPERTY_METRIC, * #GYOTO_PROPERTY_SCREEN, #GYOTO_PROPERTY_ASTROBJ, * #GYOTO_PROPERTY_SPECTRUM and #GYOTO_PROPERTY_SPECTROMETER. * * For the floating point data-types (double and vector), two * additional accessors supporting units can be provided. The * accessors must have the same name and have specific prototypes, see * the various function pointer typedefs, e.g. #set_double_t and * #get_double_t. * * The type used in these accessors may not be the same as the type of * the underlying class member. For instance, to read an array, it was * chosen to use the std::vector type because it is easy to * read such a vector from XML and to thus determine dynamically the * number of elements provided. But this type is slow, so it is * expected that the class member will rather be a C-style array * (double arr[]) or something else entirely. It is not forbidden to * have a set of high-level accessors for the Property interface on * top of lower-level, more efficient accessors to be used in * compiled, static code: * * \code * void MyClass::arrayMember(double const * const tab) { * for (int i=0; i<5; ++i) member_[i]=tab[i]; * } * void MyClass::arrayMemberVector(std::vector const &vect) { * if (vect.size()!=5) throwError("Please provide 5 elements"); * for (int i=0; i<5; ++i) member_[i]=vect[i]; * } * double const * MyClass::arrayMember() const {return member_;} * std::vector MyClass::arrayMemberVector() const { * std::vector v(5, 0.); * for (int i=0; i<5; ++i) v[i]=member_[i]; * return v; * } * \endcode * * In this example, assuming MyClass is based directly on Object and * member_ is the only parameter to read from XML, the Property list * may be defined as: * \code * GYOTO_PROPERTY_START(MyClass) * GYOTO_PROPERTY_VECTOR_DOUBLE(MyClass, ArrayMember, arrayMemberVector) * GYOTO_PROPERTY_END(MyClass, Object::properties) * \endcode * * Again, nothing more is required to read and write ArrayMember from * XML and from Yorick. */ class Gyoto::Property { private: public: /// Possible type of a Property instance /** * These are all the values that Property::type may take. */ enum type_e { /// Type is double double_t, /// Type is long long_t, /// Type is unsigned long (a.k.a. size_t) unsigned_long_t, /// Type is size_t (only if distinct from unsigned long) size_t_t, /// Type is bool bool_t, /// Type is std::string string_t, /// Type is std::string and holds a file name /** * In this case, the value may be changed to include relative or * absolute path. The prefix "`pwd`/" forces path to be * interpreted relative to the current working directory. If the * value starts with "/", it is interpreted as an absolute * path. Otherwise, when reading from XML, the path is interpreted * relative to the XML file. */ filename_t, /// Type is std::vector vector_double_t, /// Type is std::vector vector_unsigned_long_t, /// Type is Gyoto::SmartPointer metric_t, /// Type is Gyoto::SmartPointer screen_t, /// Type is Gyoto::SmartPointer astrobj_t, /// Type is Gyoto::SmartPointer spectrum_t, /// Type is Gyoto::SmartPointer spectrometer_t, /// Property is empty /** * In this case (and only in this case): * 1. #Gyoto::Property::operator bool() const return false; * 2. Property::parent may be different from NULL and point to * another array of Property instances, that should be * interpreted as appended to this list. */ empty_t}; /// Name of this instance std::string name; /// Name if false /** * Only if #type is #empty_t */ std::string name_false; /// Type of this instance int type; /// Prototype for an accessor to set a double typedef void (Object::* set_double_t)(double val); /// Prototype for an accessor to get a double typedef double (Object::* get_double_t)() const; /// Prototype for an accessor to set a double, with unit typedef void (Object::* set_double_unit_t)(double val, std::string const &unit); /// Prototype for an accessor to get a double, with unit typedef double (Object::* get_double_unit_t)(std::string const &unit) const; /// Prototype for an accessor to set a long typedef void (Object::* set_long_t)(long val); /// Prototype for an accessor to get a long typedef long (Object::* get_long_t)() const; /// Prototype for an accessor to set an unsigned long typedef void (Object::* set_unsigned_long_t)(unsigned long val); /// Prototype for an accessor to get an unsigned long typedef unsigned long (Object::* get_unsigned_long_t)() const; /// Prototype for an accessor to set a size_t typedef void (Object::* set_size_t_t)(size_t val); /// Prototype for an accessor to get a size_t typedef size_t (Object::* get_size_t_t)() const; /// Prototype for an accessor to set a bool typedef void (Object::* set_bool_t)(bool val); /// Prototype for an accessor to get a bool typedef bool (Object::* get_bool_t)() const; /// Prototype for an accessor to set a string typedef void (Object::* set_string_t)(std::string const&); /// Prototype for an accessor to get a string typedef std::string (Object::* get_string_t)() const; /// Prototype for an accessor to set a filename typedef void (Object::* set_fname_t)(std::string const&); /// Prototype for an accessor to get a filename typedef std::string (Object::* get_fname_t)() const; /// Prototype for an accessor to set a std::vector typedef void (Object::* set_vector_double_t)(std::vector const&); /// Prototype for an accessor to get a std::vector typedef std::vector (Object::* get_vector_double_t)() const; /// Prototype for an accessor to set a std::vector, with unit typedef void (Object::* set_vector_double_unit_t)(std::vector const&, std::string const &); /// Prototype for an accessor to get a std::vector, with unit typedef std::vector (Object::* get_vector_double_unit_t)(std::string const &) const; /// Prototype for an accessor to set a std::vector typedef void (Object::* set_vector_unsigned_long_t)(std::vector const&); /// Prototype for an accessor to get a std::vector typedef std::vector (Object::* get_vector_unsigned_long_t)() const; /// Prototype for an accessor to set a Gyoto::SmartPointer typedef void (Object::* set_metric_t) (Gyoto::SmartPointer); /// Prototype for an accessor to get a Gyoto::SmartPointer typedef Gyoto::SmartPointer (Object::* get_metric_t)() const; /// Prototype for an accessor to set a Gyoto::SmartPointer typedef void (Object::* set_screen_t) (Gyoto::SmartPointer); /// Prototype for an accessor to get a Gyoto::SmartPointer typedef Gyoto::SmartPointer (Object::* get_screen_t)() const; /// Prototype for an accessor to set a Gyoto::SmartPointer typedef void (Object::* set_astrobj_t) (Gyoto::SmartPointer); /// Prototype for an accessor to get a Gyoto::SmartPointer typedef Gyoto::SmartPointer (Object::* get_astrobj_t)() const; /// Prototype for an accessor to set a Gyoto::SmartPointer typedef void (Object::* set_spectrum_t) (Gyoto::SmartPointer); /// Prototype for an accessor to get a Gyoto::SmartPointer typedef Gyoto::SmartPointer (Object::* get_spectrum_t)() const; /// Prototype for an accessor to set a Gyoto::SmartPointer typedef void (Object::* set_spectrometer_t) (Gyoto::SmartPointer); /// Prototype for an accessor to get a Gyoto::SmartPointer typedef Gyoto::SmartPointer (Object::* get_spectrometer_t)() const; /// Union holding an accessor to set any type /** * Right type is stored in #type */ union setter_t { set_double_t set_double; set_long_t set_long; set_unsigned_long_t set_unsigned_long; set_size_t_t set_size_t; set_bool_t set_bool; set_string_t set_string; set_vector_double_t set_vdouble; set_vector_unsigned_long_t set_vulong; set_metric_t set_metric; set_screen_t set_screen; set_astrobj_t set_astrobj; set_spectrum_t set_spectrum; set_spectrometer_t set_spectrometer; }; /// Union holding an accessor to get any type /** * Right type is stored in #type */ union getter_t { get_double_t get_double; get_long_t get_long; get_unsigned_long_t get_unsigned_long; get_size_t_t get_size_t; get_bool_t get_bool; get_string_t get_string; get_vector_double_t get_vdouble; get_vector_unsigned_long_t get_vulong; get_metric_t get_metric; get_screen_t get_screen; get_astrobj_t get_astrobj; get_spectrum_t get_spectrum; get_spectrometer_t get_spectrometer; }; /// Union holding an accessor to set double or vector with unit /** * Right type is stored in #type */ union setter_unit_t { set_double_unit_t set_double; set_vector_double_unit_t set_vdouble; }; /// Union holding an accessor to get double or vector with unit union getter_unit_t { get_double_unit_t get_double; get_vector_double_unit_t get_vdouble; }; /// Pointer to the setter method /** * Right type is stored in #type */ setter_t setter; /// Pointer to the getter method /** * Right type is stored in #type */ getter_t getter; /// Pointer to the setter (with unit) method /** * Right type is stored in #type */ setter_unit_t setter_unit; /// Pointer to the getter (with unit) method /** * Right type is stored in #type */ getter_unit_t getter_unit; std::string doc; /// True if #Gyoto::Property::type is not #Gyoto::Property::empty_t operator bool() const ; /// If #type is #empty_t, link to another Property list Property const * const parent; /// Default constructor Property(); /// Constructor for #type==#empty_t Property(Property const * const ancestor); /// Constructor for class name pseudo-property Property(std::string classname, std::string doc=""); /// Constructor for #type==#long_t Property(std::string name, set_long_t set_long, get_long_t get_long, std::string doc); /// Constructor for #type==#unsigned_long_t Property(std::string name, set_unsigned_long_t set_unsigned_long, get_unsigned_long_t get_unsigned_long, std::string doc); /// Constructor for #type==#size_t_t /** * The dummy int parameter is only there to differenciate from the * unsigned long constructor on platforms where size_t is a typdef * to unsigned long. */ Property(std::string name, set_size_t_t set_size_t, get_size_t_t get_size_t, int dummy, std::string doc); /// Constructor for #type==#double_t, without unit support Property(std::string name, set_double_t set_double, get_double_t get_double, std::string doc); /// Constructor for #type==#double_t, with unit support Property(std::string name, set_double_t set_double, get_double_t get_double, set_double_unit_t set_double_unit, get_double_unit_t get_double_unit, std::string doc); /// Constructor for #type==#bool_t Property(std::string name, std::string name_false, set_bool_t set_bool, get_bool_t get_bool, std::string doc); /// Constructor for #type==#string_t or #filename_t /** * \param name name of the Property * \param set_string pointer to the setter accessor * \param get_string pointer to the getter accessor * \param is_filename true means #type=#filename_t */ Property(std::string name, set_string_t set_string, get_string_t get_string, bool is_filename, std::string doc); /// Constructor for #type==#vector_double_t, without unit support Property(std::string name, set_vector_double_t set_vdouble, get_vector_double_t get_vdouble, std::string doc); /// Constructor for #type==#vector_double_t, with unit support Property(std::string name, set_vector_double_t set_vdouble, get_vector_double_t get_vdouble, set_vector_double_unit_t set_vdouble_unit, get_vector_double_unit_t get_vdouble_unit, std::string doc); /// Constructor for #type==#vector_unsigned_long_t Property(std::string name, set_vector_unsigned_long_t set_vulong, get_vector_unsigned_long_t get_vulong, std::string doc); /// Constructor for #type==#metric_t Property(std::string name, set_metric_t set_metric, get_metric_t get_metric, std::string doc); /// Constructor for #type==#screen_t Property(std::string name, set_screen_t set_screen, get_screen_t get_screen, std::string doc); /// Constructor for #type==#astrobj_t Property(std::string name, set_astrobj_t set_astrobj, get_astrobj_t get_astrobj, std::string doc); /// Constructor for #type==#spectrum_t Property(std::string name, set_spectrum_t set_spectrum, get_spectrum_t get_spectrum, std::string doc); /// Constructor for #type==#spectrometer_t Property(std::string name, set_spectrometer_t set_spectrometer, get_spectrometer_t get_spectrometer, std::string doc); /// Constructor setting only #name and #type /** * Used in the Python plug-in to provide peudo-properties */ Property(std::string name, int type); /// Get Property::type_e value from name static type_e typeFromString(std::string stype); }; /// \cond INTERNAL #define GYOTO_PROPERTY_CHOOSER(x, A, B, C, D, E, F, FUNC, ...) FUNC #define GYOTO_PROPERTY_START_DOC(class, doc) \ Property const class::properties[] = { \ Property (#class, doc), #define GYOTO_PROPERTY_START_NODOC(class) \ GYOTO_PROPERTY_START_DOC(class, "") #define GYOTO_PROPERTY_BOOL_DOC(class, name, namef, fname, doc) \ Gyoto::Property \ (#name, \ #namef, \ (Gyoto::Property::set_bool_t)&class :: fname, \ (Gyoto::Property::get_bool_t)&class :: fname, \ doc), #define GYOTO_PROPERTY_BOOL_NODOC(class, name, namef, fname) \ GYOTO_PROPERTY_BOOL_DOC(class, name, namef, fname, "") #define GYOTO_PROPERTY_DOUBLE_DOC(class, name, fname, doc) \ Gyoto::Property \ (#name, \ (Gyoto::Property::set_double_t)&class::fname, \ (Gyoto::Property::get_double_t)&class::fname, \ doc), #define GYOTO_PROPERTY_DOUBLE_NODOC(class, name, fname) \ GYOTO_PROPERTY_DOUBLE_DOC(class, name, fname, "") #define GYOTO_PROPERTY_LONG_DOC(class, name, fname, doc) \ Gyoto::Property \ (#name, \ (Gyoto::Property::set_long_t)&class::fname, \ (Gyoto::Property::get_long_t)&class::fname, \ doc), #define GYOTO_PROPERTY_LONG_NODOC(class, name, fname) \ GYOTO_PROPERTY_LONG_DOC(class, name, fname, "") #define GYOTO_PROPERTY_UNSIGNED_LONG_DOC(class, name, fname, doc) \ Gyoto::Property \ (#name, \ (Gyoto::Property::set_unsigned_long_t)&class::fname, \ (Gyoto::Property::get_unsigned_long_t)&class::fname, \ doc), #define GYOTO_PROPERTY_UNSIGNED_LONG_NODOC(class, name, fname) \ GYOTO_PROPERTY_UNSIGNED_LONG_DOC(class, name, fname, "") #define GYOTO_PROPERTY_SIZE_T_DOC(class, name, fname, doc) \ Gyoto::Property \ (#name, \ (Gyoto::Property::set_size_t_t)&class::fname, \ (Gyoto::Property::get_size_t_t)&class::fname, \ 1, \ doc), #define GYOTO_PROPERTY_SIZE_T_NODOC(class, name, fname) \ GYOTO_PROPERTY_SIZE_T_DOC(class, name, fname, "") #define GYOTO_PROPERTY_DOUBLE_UNIT_DOC(class, name, fname, doc) \ Gyoto::Property \ (#name, \ (Gyoto::Property::set_double_t)&class::fname, \ (Gyoto::Property::get_double_t)&class::fname, \ (Gyoto::Property::set_double_unit_t)&class::fname, \ (Gyoto::Property::get_double_unit_t)&class::fname, \ doc), #define GYOTO_PROPERTY_DOUBLE_UNIT_NODOC(class, name, fname) \ GYOTO_PROPERTY_DOUBLE_UNIT_DOC(class, name, fname, "") #define GYOTO_PROPERTY_FILENAME_DOC(class, name, fname, doc) \ Gyoto::Property \ (#name, \ (Gyoto::Property::set_string_t)&class::fname, \ (Gyoto::Property::get_string_t)&class::fname, \ true, doc), #define GYOTO_PROPERTY_FILENAME_NODOC(class, name, fname) \ GYOTO_PROPERTY_FILENAME_DOC(class, name, fname, "") #define GYOTO_PROPERTY_STRING_DOC(class, name, fname, doc) \ Gyoto::Property \ (#name, \ (Gyoto::Property::set_string_t)&class::fname, \ (Gyoto::Property::get_string_t)&class::fname, \ false, doc), #define GYOTO_PROPERTY_STRING_NODOC(class, name, fname) \ GYOTO_PROPERTY_STRING_DOC(class, name, fname, "") #define GYOTO_PROPERTY_VECTOR_DOUBLE_DOC(class, name, fname, doc) \ Gyoto::Property \ (#name, \ (Gyoto::Property::set_vector_double_t)&class::fname, \ (Gyoto::Property::get_vector_double_t)&class::fname, \ doc), #define GYOTO_PROPERTY_VECTOR_DOUBLE_NODOC(class, name, fname) \ GYOTO_PROPERTY_VECTOR_DOUBLE_DOC(class, name, fname, "") #define GYOTO_PROPERTY_VECTOR_DOUBLE_UNIT_DOC(class, name, fname, doc) \ Gyoto::Property \ (#name, \ (Gyoto::Property::set_vector_double_t)&class::fname, \ (Gyoto::Property::get_vector_double_t)&class::fname, \ (Gyoto::Property::set_vector_double_unit_t)&class::fname, \ (Gyoto::Property::get_vector_double_unit_t)&class::fname, \ doc), #define GYOTO_PROPERTY_VECTOR_DOUBLE_UNIT_NODOC(class, name, fname) \ GYOTO_PROPERTY_VECTOR_DOUBLE_UNIT_DOC(class, name, fname, "") #define GYOTO_PROPERTY_VECTOR_UNSIGNED_LONG_DOC(class, name, fname, doc) \ Gyoto::Property \ (#name, \ (Gyoto::Property::set_vector_unsigned_long_t)&class::fname, \ (Gyoto::Property::get_vector_unsigned_long_t)&class::fname, \ doc), #define GYOTO_PROPERTY_VECTOR_UNSIGNED_LONG_NODOC(class, name, fname) \ GYOTO_PROPERTY_VECTOR_UNSIGNED_LONG_DOC(class, name, fname, "") #define GYOTO_PROPERTY_METRIC_DOC(class, name, fname, doc) \ Gyoto::Property \ (#name, \ (Gyoto::Property::set_metric_t)&class::fname, \ (Gyoto::Property::get_metric_t)&class::fname, \ doc), #define GYOTO_PROPERTY_METRIC_NODOC(class, name, fname) \ GYOTO_PROPERTY_METRIC_DOC(class, name, fname, "") #define GYOTO_PROPERTY_SCREEN_DOC(class, name, fname, doc) \ Gyoto::Property \ (#name, \ (Gyoto::Property::set_screen_t)&class::fname, \ (Gyoto::Property::get_screen_t)&class::fname, \ doc), #define GYOTO_PROPERTY_SCREEN_NODOC(class, name, fname) \ GYOTO_PROPERTY_SCREEN_DOC(class, name, fname, "") #define GYOTO_PROPERTY_ASTROBJ_DOC(class, name, fname, doc) \ Gyoto::Property \ (#name, \ (Gyoto::Property::set_astrobj_t)&class::fname, \ (Gyoto::Property::get_astrobj_t)&class::fname, \ doc), #define GYOTO_PROPERTY_ASTROBJ_NODOC(class, name, fname) \ GYOTO_PROPERTY_ASTROBJ_DOC(class, name, fname, "") #define GYOTO_PROPERTY_SPECTRUM_DOC(class, name, fname, doc) \ Gyoto::Property \ (#name, \ (Gyoto::Property::set_spectrum_t)&class::fname, \ (Gyoto::Property::get_spectrum_t)&class::fname, \ doc), #define GYOTO_PROPERTY_SPECTRUM_NODOC(class, name, fname) \ GYOTO_PROPERTY_SPECTRUM_DOC(class, name, fname, "") #define GYOTO_PROPERTY_SPECTROMETER_DOC(class, name, fname, doc) \ Gyoto::Property \ (#name, \ (Gyoto::Property::set_spectrometer_t)&class::fname, \ (Gyoto::Property::get_spectrometer_t)&class::fname, \ doc), #define GYOTO_PROPERTY_SPECTROMETER_NODOC(class, name, fname) \ GYOTO_PROPERTY_SPECTROMETER_DOC(class, name, fname, "") // \endcond INTERNAL #endif Gyoto-2.0.2/include/GyotoRegister.h000066400000000000000000000145101455254334400172300ustar00rootroot00000000000000/* Copyright 2011-2016 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoRegister_H_ #define __GyotoRegister_H_ #include #include "GyotoSmartPointer.h" /** * \file GyotoRegister.h * \brief Gyoto registers * * Gyoto::Register::Entry instances are used to map kind names to * Gyoto::SmartPointee::Subcontractor_t functions used to instantiate * objects from XML files through the Gyoto::Factory. */ namespace Gyoto { /** * \namespace Gyoto::Register * \brief Gyoto registers * * Gyoto::Register::Entry instances are used to map kind names to * Gyoto::SmartPointee::Subcontractor_t functions used to * instantiate objects from XML files through the Gyoto::Factory. */ namespace Register { /* Documented below */ class Entry; /** * \brief Initialise the various registers * * Normally called once at application start-up, Register::init() * initiaizes the registers, loads the plug-ins, and fills the * registers as appropriate. * * \param pluglist Coma-separated list of plug-ins to load. If * NULL, default to the environment variable GYOTO_PLUGINS, if it * exists. Else use GYOTO_DEFAULT_PLUGINS. Failing to load a * plug-in prepended with "nofail:" is not fatal. */ void init( char const * pluglist = NULL ); /** * \brief List the various registers */ void list(); } /** * \brief Load a plugin by name * * Uses dlopen to load the file libgyoto-<plugname>.so, looks for * the function __Gyoto<plugname>Init inside it and run it. * Plug-ins must be located in the runtime link search path, or in * GYOTO_PKGLIBDIR, or in * GYOTO_PKGLIBDIR/GYOTO_SOVERS/. * * \param[in] plugname C string Plug-in name. * * \param[in] nofail int Unless nofail evals to true, the inability * to find a plug-in or to run the initialization * function inside it throws an Gyoto::Error. If nofail * is 2 or more, such conditions are silently ignored. If * nofail is one, those conditions trigger a warning. * * \return void* handle to the dlopen'ed plug-in. */ void * loadPlugin( char const * const plugname, int nofail = 0); /** * \brief Check whether a given plug-in has already been loaded * * \param[in] plugname std::string Plug-in name. */ bool havePlugin(std::string plugname); /** * \brief Load a plugin by name, only if not loaded yet * * \param[in] plugname std::string Plug-in name. * * \param[in] nofail int Unless nofail evals to true, the inability * to find a plug-in or to run the initialization * function inside it throws an Gyoto::Error. If nofail * is 2 or more, such conditions are silently ignored. If * nofail is one, those conditions trigger a warning. */ void requirePlugin(std::string plugname, int nofail = 0); } /** * \brief Entry in a register (or a full register) * * A register is actually a chained list of Register::Entry * instances. */ class Gyoto::Register::Entry { /** * \brief List the various registers */ friend void Gyoto::Register::list(); protected: std::string name_; ///< Kind name for the entry, as found in the "kind" XML attribute Gyoto::SmartPointee::Subcontractor_t* subcontractor_; ///< Pointer to the Gyoto::SmartPointee::Subcontractor_t function that produces an object of this kind Register::Entry* next_; ///< Next entry in the register, or NULL const std::string plugin_; ///< Plug-in from which this Entry was loaded public: /** * \brief Constructor */ Entry(std::string name, Gyoto::SmartPointee::Subcontractor_t* subcontractor, Entry* next); ~Entry(); ///< Destructor /** * \brief Get subcontractor for a given name * * Search through the register for an Entry matching name and return * the corresponding subcontractor. If plugin is specified, only a * subcontractor matching both name and plugin will be returned. * Note that Gyoto::Entry::getSubcontractor() will not load the * plug-in for you, contrary to * e.g. Gyoto::Metric::getSubcontractor(). If plugin is the empty * string, then the first subcontractor matching name will be * returned, and the name of the plug-in it belongs to will be * returned in plugin upon output. * * \param[in] name Name of the kind to look for. * \param[inout] plugin e.g. "stdplug". * \param[in] errmode 1 if getSubContractor() should return NULL upon * failure. Else a Gyoto::Error is thrown. * \return Pointer to subcontractor function. */ Gyoto::SmartPointee::Subcontractor_t* getSubcontractor(std::string name, std::string &plugin, int errmode=0); }; #define GYOTO_GETSUBCONTRACTOR(space) \ Gyoto::space::Subcontractor_t* \ Gyoto::space::getSubcontractor(std::string name, std::vector &plugin, int errmode) { \ for (size_t i=0; i getSubcontractor(name, plg, errmode); \ plugin.push_back(plg); \ } \ for (size_t i=plugin.size()-1; i>=0 && sctr == NULL; --i) { \ sctr= \ (Subcontractor_t*)Gyoto::space::Register_ \ -> getSubcontractor(name, plugin[i], 1); \ } \ if (!errmode && !sctr) throwError ("Kind not found in the specified plug-ins: "+name); \ return sctr; \ } #endif Gyoto-2.0.2/include/GyotoRezzollaZhidenko.h000066400000000000000000000053031455254334400207420ustar00rootroot00000000000000/** * \file GyotoRezzollaZhidenko.h * \brief Spherically-symmetric parametrized metric of Rezzolla\&Zhidenko 2014 * See the paper: PRD, 90, 084009 * Only epsilon, a0, a1, a2, a3, b0, b1, b2, b3 are allowed non-zero */ /* Copyright 2013, 2018 Frederic Vincent & Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoRezzollaZhidenko_h #define __GyotoRezzollaZhidenko_h #include namespace Gyoto { namespace Metric { class RezzollaZhidenko; }; }; class Gyoto::Metric::RezzollaZhidenko : public Gyoto::Metric::Generic { friend class Gyoto::SmartPointer; private: double epsilon_; ///< horizon parameter, rH=2/(1+eps) double rms_, rmb_; ///< Provide marginally stable and bound orbits if needed double* aparam_; ///< The a-parameter vector [a0,a1,a2,a3] used in RZ14 double* bparam_; ///< The b-parameter vector [b0,b1,b2,b3] used in RZ14 public: GYOTO_OBJECT; RezzollaZhidenko(); RezzollaZhidenko(const RezzollaZhidenko & orig); virtual ~RezzollaZhidenko(); virtual RezzollaZhidenko * clone() const ; // accessors GYOTO_OBJECT_ACCESSORS(double, epsilon); GYOTO_OBJECT_ACCESSORS(double, rms); GYOTO_OBJECT_ACCESSORS(double, rmb); void aparam(std::vector const &v); std::vector aparam() const; void bparam(std::vector const &v); std::vector bparam() const; using Generic::gmunu; double gmunu(double const x[4], int mu, int nu) const ; double N2(const double rr) const; double B2(const double rr) const; double Nprime(const double rr) const; double Bprime(const double rr) const; using Generic::christoffel; int christoffel(double dst[4][4][4], double const pos[4]) const ; int isStopCondition(double const coord[8]) const; virtual double getRmb() const; virtual double getRms() const; virtual double getPotential(double const pos[4], double l_cst) const; virtual double getSpecificAngularMomentum(double rr) const; virtual void circularVelocity(double const pos[4], double vel [4], double dir=1.) const ; #endif }; Gyoto-2.0.2/include/GyotoRotStar3_1.h000066400000000000000000000105171455254334400173500ustar00rootroot00000000000000/** * \file GyotoRotStar3_1.h * \brief Numerical metric around a rotating star in 3+1 formalism * * */ /* Copyright 2011-2014, 2016, 2018, 2020 Frederic Vincent & Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoRotStar3_1_H_ #define __GyotoRotStar3_1_H_ #include #include namespace Lorene{ class Star_rot; } namespace Gyoto { namespace Metric { class RotStar3_1; } } #include #include #include #ifdef GYOTO_USE_XERCES #include #endif /** * \class Gyoto::Metric::RotStar3_1 * \brief Numerical metric around a rotating star in 3+1 formalism */ class Gyoto::Metric::RotStar3_1 : public Gyoto::Metric::Generic { friend class Gyoto::SmartPointer; private: char* filename_; ///< Lorene output file name Lorene::Star_rot * star_; ///< Pointer to underlying Lorene Star_rot instance int integ_kind_;///< 1 if RotStar3_1::myrk4(), 0 if Metric::myrk4() public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; RotStar3_1(); ///< Constructor RotStar3_1(const RotStar3_1& ) ; ///< Copy constructor virtual ~RotStar3_1() ; ///< Destructor virtual RotStar3_1* clone() const ; ///< Cloner (uses RotStar3_1(file, integ_kind)) void fileName(char const *); ///< Set filename_ char const * fileName() const; ///< Get filename_ void file(std::string const &); ///< Set filename_ std::string file() const; ///< Get filename_ void integKind(int); ///< Set integ_kind_ int integKind() const ; ///< Get integ_kind_ void genericIntegrator(bool); ///< Set !integ_kind_ bool genericIntegrator() const ;///< Get !integ_kind_ using Metric::Generic::myrk4; /** * \brief RK4 integrator * * NB: we use the 6-coordinates, here, unlike the inherited function. */ int myrk4(const double coord[6], double h, double res[6]) const; /** * \brief Adaptive RK4 integrator * * Dispatches between Generic::myrk4_adaptive() and myrk4_adaptive(const double coor[6], double lastnorm, double normref, double coornew[6], double cst[2], double& tdot_used, double h0, double& h1, double& hused) const depending on RotStar3_1::integ_kind_ */ int myrk4_adaptive(Gyoto::Worldline* line, state_t const &coord, double lastnorm, double normref, state_t &coordnew, double h0, double& h1, double h1max) const; /** * \brief RK4 integrator (3+1) * * NB: we use the 6-coordinates, here, unlike the inherited function. */ int myrk4_adaptive(const double coor[6], double lastnorm, double normref, double coornew[6], double cst[2], double& tdot_used, double h0, double& h1, double h1max, double& hused) const; /** * \brief F function such as dy/dtau=F(y,cst) */ int diff(state_t const &coord, state_t &res, double mass) const ; /** * \brief Alternate version of diff(const double coord[8], double res[8]) const * * Using only 6 parameters. Last int is not used: it is only here to * distinguish the signature of the two methods. Could have been * done choosing another name, too, but hey... */ int diff(const double y[6], double res[6], int) const ; /** * \brief Tweak coordinates to insure conservation of cst */ void Normalize4v(const double coordin[6], double coordout[6], const double cst[2], double& tdot_used) const; using Generic::gmunu; double gmunu(double const x[4], int mu, int nu) const ; using Generic::christoffel; double christoffel(const double coord[8], const int alpha, const int mu, const int nu) const ; double ScalarProd(const double pos[4], const double u1[4], const double u2[4]) const ; virtual int setParameter(std::string, std::string, std::string); }; #endif Gyoto-2.0.2/include/GyotoScenery.h000066400000000000000000000434231455254334400170610ustar00rootroot00000000000000/** * \file GyotoScenery.h * \brief Ray-tracing framework * * A Metric, an Astrobj and a Screen. */ /* Copyright 2011-2016, 2018-2019 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoScenery_H_ #define __GyotoScenery_H_ namespace Gyoto{ class Scenery; } #include #include #include #include #include #include #include #include #ifdef HAVE_MPI #include "GyotoFactory.h" #include #include #endif /** * \class Gyoto::Scenery * \brief Ray-tracing scene * * An Scenery contains: * - a Metric: used in Astrobj, Screen and Photon; * - a Screen: sets the field-of-view, the position of the camera, * the observation time, and the Spectrometer; * - an Astrobj: light emitter. * * * In addition, Quantities may be specified (or the default Quantity * will be produced: generally Intensity). Not all Astrobj implement * all Quantities. The order in which Quantities are listed is not * relevant (it is not stored). Possible Quantities: * * - Intensity: the intensity that reaches the object, integrated over * the line-of-sight; * - EmissionTime: date of emission; * - MinDistance: minimum distance between the Photon reaching each * pixel and the Astrobj; * - FirstDistMin: last closest approach between Photon and Astrobj; * - Redshift; * - ImpactCoords: 8-coordinates of the object and photon at impact; * - Spectrum: Iν computed at various values frequencies, * corresponding to the Screen's Spectrometer. * - BinSpectrum: * ∫ν1ν2Iνdν * computed between various (ν1, ν2 * pairs corresponding to the Screen's Spectrometer. This is what a * physical spectrometer measures. * * In addition, it is possible to ray-trace an image using several * cores on a single machine (if Gyoto has been compiled with POSIX * threads support). The number of threads can be specified using * NThreads entity. Setting NThreads to 0 is equivalent to setting it * to 1. Beware that setting NThreads to a number higher than the * actual number of cores available on the machine usually leads to a * decrease in performance. * * Finally, Scenery accepts a number of numerical tuning parameters * that are passed directly to the underlying photons (actually, the * Scenery object holds a Photon instance which stores many * parameters, including the Metric and Astrobj): * Adaptive/NonAdaptive, Delta, MinimumTime, MaxIter, PrimaryOnly. * * Thus a fully populated Scenery XML looks like that (the values are * examples, they are not necessary the default nor the best or even * good values): * \code * * * * * * * * * * * * * * Spectrum Intensity ... * * 2 * * Next come the numerical tuning parameters: * Integration step, initial in case of adaptive, reset for * for each ray being traced: * 1 * * Adaptive or NonAdaptive: * * * The integrator to use for integrating the photons: * runge_kutta_fehlberg78 * The "Legacy" integrator is coded in * Metric::Generic::myrk4_adaptive(), may be re-implemented in othe * metrics, and therefore takes its tuning parameters in the Metric * section. The other integrators (runge_kutta_fehlberg78, * runge_kutta_cash_karp54, runge_kutta_dopri5, * runge_kutta_cash_karp54_classic) accept the following tuning * parameters, directly in the Scenery section: * * Absolute and relative tolerance for the adaptive step: * 1e-11 * 1e-11 * Normally, you should not need to tune the other three. If you need * to, try using a higher order integrator: * maximum integration step: * 100 * delta_max/R where R is the current distance to the origin: * 0.1 * minimum step: * 1e-20 * * A few safe-guards to avoid infinite loops: * * Maximum number of iterations for each ray: * 1000000 * * Minimum date a photon may reach backwards in time: * 25e3 * * This one is an experimental, poorly specified feature: * * * * \endcode */ class Gyoto::Scenery : public Gyoto::SmartPointee, public Gyoto::Object { friend class Gyoto::SmartPointer; // Data : // ----- protected: /** * Screen, the camera for this scenery. */ SmartPointer screen_; /** * Default integration step for the photons */ double delta_; // default integration step for the photons /// Quantities to compute /** * Bitwise OR of quantities that will be computed, for instance: * \code * GYOTO_QUANTITY_INTENSITY | GYOTO_QUANTITY_EMISSIONTIME | ... * \endcode */ Gyoto::Quantity_t quantities_; /** * Used internally to not always reallocate memory when operator() * is called and to store all the parameters which affect the * integration, except delta_. */ Gyoto::Photon ph_; ///< Template Photon. /** * When compiled with libpthread, Scenery::rayTrace() may compute * several points of the image in parallel threads. This is the * number of threads to use. */ size_t nthreads_; ///< Number of parallel threads to use in rayTrace() int nprocesses_; ///< Number of parallel processes to use in rayTrace() # ifdef HAVE_UDUNITS /// See Astrobj::Properties::intensity_converter_ Gyoto::SmartPointer intensity_converter_; /// See Astrobj::Properties::intensity_converter_ Gyoto::SmartPointer spectrum_converter_; /// See Astrobj::Properties::intensity_converter_ Gyoto::SmartPointer binspectrum_converter_; # endif public: GYOTO_OBJECT_THREAD_SAFETY; # ifdef HAVE_MPI /// Team of processes for MPI /** * Rank 0 is the manager, other ranks are workers, instances of the * gyoto-mpi-worker executable. */ boost::mpi::communicator * mpi_team_; # endif /// True in instance of gyoto-mpi-worker, otherwise false. static bool am_worker; /// Spawn gyoto-mpi-worker processes /** * If nbchildren is -1 set #mpi_team_ to MPI_COMM_WORLD else spawn * nbchildren processes and set #nprocesses_ accordingly. If a * different number of workers are already running, terminate them * first. If nbchildren is 0, just terminate running workers. * * The approach of Gyoto to MPI is that a manager process (of rank 0 * within a given MPI communicator) will distribute ray-tracing * tasks across worker processes. Several scenarii are supported, * including spawning instances of the gyoto-mpi-worker.version * executable, where "version" matches the version component in the * library name (typically a number, possibly followed by * "unreleased"). * * In all cases, the manager process needs to call this function, * either with -1 if the worker processes are already running or * >1 if workers need to be spawned. * * \param[in] nbchildren number of processes to spawn. */ void mpiSpawn(int nbchildren); /// Terminate worker processes void mpiTerminate (); /// Send a copy of self to the mpi workers /** * Always call mpiClone() before ray-tracing if workers are running. */ void mpiClone(); /// Tags that may be sent to communicate with workers using MPI_Send() enum mpi_tag {give_task, read_scenery, terminate, raytrace, raytrace_done, ready, impactcoords, noimpactcoords}; /// Send a tag to workers void mpiTask(mpi_tag &tag); /// Become an MPI worker /** * Worker processes need to call this function after having called * MPI_Init(). */ static void mpiWorker(); // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; GYOTO_WORLDLINE; Scenery(); ///< Set everything to defaults Scenery (const Scenery& o); ///< Copy constructor Scenery * clone() const; ///< Cloner /// Constructor setting Scenery::gg_, Scenery::screen_, and Scenery::obj_ /** * To ensure consistency, the Metric will be forcibly attached to * the Screen and to the Astrobj (if they are not NULL). */ Scenery(SmartPointer, SmartPointer, SmartPointer); ~Scenery(); // Mutators / assignment // --------------------- public: // Accessors // --------- SmartPointer metric() const; ///< Get ph_.Worldline::metric_ /** * The provided Metric will also be atached to the Screen and the Astrobj. */ void metric(SmartPointer); ///< Set Scenery::gg_ SmartPointer screen() const; ///< Get Scenery::screen_ /** * The Metric attached to the Scenery will be attached to the Screen */ void screen(SmartPointer);///< Set Scenery::screen_ SmartPointer astrobj() const; ///< Get ph_.obj_ /** * The Metric attached to the Scenery will be attached to the Astrobj */ void astrobj(SmartPointer); ///< Set ph_.obj_ /** * \brief Get clone of template Photon */ SmartPointer clonePhoton() const; ///< Clone the internal Photon /** * \brief Get clone of template Photon, intitializing it to pixel */ SmartPointer clonePhoton(size_t i, size_t j); /** * \brief Get clone of template Photon, intitializing it to direction */ SmartPointer clonePhoton(double a, double d); void updatePhoton(); ///< Update values in cached Photon double delta() const ; ///< Get default step in geometrical units double delta(const std::string &unit) const ; ///< Get default step in specified units void delta(double); ///< set default step in geometrical units void delta(double, const std::string &unit); ///< set default step in specified units void initCoord(std::vector c); std::vector initCoord() const; /// Set Scenery::quantities_ /** * \param quant Bitwise OR of desired quantities, e.g. \code GYOTO_QUANTITY_SPECTRUM | GYOTO_QUANTITY_MIN_DISTANCE \endcode */ void setRequestedQuantities(Quantity_t quant) ; /// Set Scenery::quantities_ from string /** * \param squant Coma-separated list of quantities, e.g. "Spectrum * MinDistance". The order is not relevant. */ void requestedQuantitiesString(std::string const &squant) ; /// Get Scenery::quantities_ Quantity_t getRequestedQuantities() const ; /// Get a string representation of Scenery::quantities_ std::string requestedQuantitiesString() const ; /// Get number of requested quantities of scalar nature /** * This is all quantities except Spectrum, BinSpectrum and ImpactCoords. */ size_t getScalarQuantitiesCount(Quantity_t *q=NULL) const ; /// Get number of requested quantities of spectral nature /** * This is Spectrum, SpectrumStokesQ, SpectrumStokesU, SpectrumStokesV and BinSpectrum. */ size_t getSpectralQuantitiesCount(Quantity_t *q=NULL) const ; /// Get ph_.tmin_ double tMin() const ; /// Get ph_.tmin_ in specified unit double tMin(const std::string &unit) const ; /// Set ph_.tmin_ void tMin(double); /// Set ph_.tmin_ in specified unit void tMin(double, const std::string &unit); void adaptive (bool mode) ; ///< Set ph_.adaptive_ bool adaptive () const ; ///< Get ph_.adaptive_ /// Passed to #ph_ void integrator(std::string type); /// Passed to #ph_ std::string integrator() const; /// Passed to #ph_ double deltaMin() const; /// Passed to #ph_ void deltaMin(double h1); /// Passed to #ph_ double deltaMax() const; /// Passed to #ph_ void deltaMax(double h1); /// Passed to #ph_ double deltaMaxOverR() const; /// Passed to #ph_ void deltaMaxOverR(double t); /// Passed to #ph_ void absTol(double); /// Passed to #ph_ double absTol()const; /// Passed to #ph_ void relTol(double); /// Passed to #ph_ double relTol()const; /// Passed to #ph_ void maxCrossEqplane(double); /// Passed to #ph_ double maxCrossEqplane()const; void secondary (bool sec) ; ///< Set ph_.secondary_ bool secondary () const ; ///< Get ph_.secondary_ void integ31(bool integ); ///< Set WorldlinIntegState integ_31_ bool integ31() const ; ///< Get WorldlinIntegState integ_31_ void parallelTransport (bool pt) ; ///< Set ph_.parallel_transport_ bool parallelTransport () const ; ///< Get ph_.parallel_transport_ void maxiter (size_t miter) ; ///< Set ph_.maxiter_ size_t maxiter () const ; ///< Get ph_.maxiter_ void nThreads(size_t); ///< Set nthreads_; size_t nThreads() const ; ///< Get nthreads_; void nProcesses(size_t); ///< Set nprocesses_; size_t nProcesses() const ; ///< Get nprocesses_; /// Set Scenery::intensity_converter_ void intensityConverter(std::string unit); /// Set Scenery::spectrum_converter_ void spectrumConverter(std::string unit); /// Set Scenery::binspectrum_converter_ void binSpectrumConverter(std::string unit); /// Copy converters to Astrobj::Properties instance /** * Copy Scenery::intensity_converter_, Scenery::spectrum_converter_ * and Scenery::binspectrum_converter_ to there alter ego in *prop. */ void setPropertyConverters(Gyoto::Astrobj::Properties *prop); // Worker: public: /// Perform ray-tracing /** * For each directions specified, launch a Photon back in time to * compute the various quantities. * * At this time, the computed quantities depend on on the pointers * in *data which are not NULL. * * rayTrace() uses * - setPropertyConverters() to set the converters in *data; * - Astrobj::Properties::init() to initialize each cell in *data; * - Astrobj::Properties::operator++() to step through the arrays in *data. * * data must have been instantiated prior to calling rayTrace and * the various pointers in *data must be NULL or point to the first * cell in an array of size at least Screen::npix_ squared. * * If MPI support is built-in, MPI_Init() has been called, and * nprocesses_ is ≥1, then rayTrace() will use several processes, * launching them using mpiSpawn() if necessary. * * Else, if Scenery::nthreads_ is ≥2 and Gyoto has been compiled with * pthreads support, rayTrace() will use Scenery::nthreads_ threads * and launch photons in parallel. This works only if the * Astrobj::Generic::clone() and Metric::Generic::clone() methods * have been properly implemented for the specific astrobj and * metric kind, and if they are both thread-safe. At the moment, * unfortunately, Lorene metrics are known to not be thread-safe. * * \param[in] ij Screen::Coord2dSet specification of rays to trace. e.g.: * * \code * Screen::Range irange(imin, imax, di); * Screen::Range jrange(jmin, jmax, dj); * Screen::Grid ij(irange, jrange); * \endcode * * \param[in, out] data Pointer to a preallocated * Astrobj::Properties instance which sets which quantities must be * computed and where to store the output. * * \param[in] impactcoords Optional pointer to an array of * pre-computed impact coordinates. If impactcoords is provided, * rayTracing is skipped and the quantities in *data are fill * assuming that the impact coordinates are correct. This only makes * sense in optically thick mode, when ray-tracing several sceneries * for which the shape of the object is identical but their emission * distributions are not. impactcoords can be computed using the * ImpactCoords quantity. */ void rayTrace( #ifdef GYOTO_SWIGIMPORTED Coord2dSet & ij, #else Screen::Coord2dSet & ij, #endif Astrobj::Properties *data, double * impactcoords=NULL); /// Ray-trace a single pixel in Scenery::screen_ /** * Almost identical to rayTrace(), but for a single pixel. * * If ph is passed, it is assumed to have been properly initialized * (with the right metric and astrobj etc.) already. Else, use * &Scenery::ph_. */ void operator() (size_t i, size_t j, Astrobj::Properties *data, double * impactcoords = NULL, Photon * ph = NULL); /// Ray-trace single direction /** * Almost identical to rayTrace(), but for a single direction. * * If ph is passed, it is assumed to have been properly initialized * (with the right metric and astrobj etc.) already. Else, use * &Scenery::ph_. */ void operator() (double alpha, double delta, Astrobj::Properties *data, Photon * ph = NULL); #ifdef GYOTO_USE_XERCES public: // Override fillProperty() to issue InitCoord only if it was set void fillProperty(FactoryMessenger *fmp, Property const &p) const ; // Override fillElement to fill metric, screen and astrobj first void fillElement(FactoryMessenger *fmp) const; /// Instanciate Scenery from an XML description. static SmartPointer Subcontractor(Gyoto::FactoryMessenger*); #endif }; #endif Gyoto-2.0.2/include/GyotoSchwarzschildHarmonic.h000066400000000000000000000032401455254334400217330ustar00rootroot00000000000000/** * \file GyotoSchwarzschildHarmonic.h * \brief Schwarzschild spacetime in harmonic coordinates. */ /* Copyright 2021 Frederic Vincent & Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoSchwarzschildHarmonic_h #define __GyotoSchwarzschildHarmonic_h #include namespace Gyoto { namespace Metric { class SchwarzschildHarmonic; }; }; class Gyoto::Metric::SchwarzschildHarmonic : public Gyoto::Metric::Generic { friend class Gyoto::SmartPointer; public: GYOTO_OBJECT; SchwarzschildHarmonic(); SchwarzschildHarmonic(const SchwarzschildHarmonic & orig); virtual ~SchwarzschildHarmonic(); virtual SchwarzschildHarmonic * clone() const ; using Generic::gmunu; double gmunu(double const x[4], int mu, int nu) const ; using Generic::christoffel; int christoffel(double dst[4][4][4], double const pos[4]) const ; int isStopCondition(double const coord[8]) const; void circularVelocity(double const * coor, double* vel, double dir) const; #endif }; Gyoto-2.0.2/include/GyotoScreen.h000066400000000000000000000634571455254334400167010ustar00rootroot00000000000000/** * \file GyotoScreen.h * \brief Description of the observer screen * */ /* Copyright 2011-2019 Thibaut Paumard, Frederic Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoScreen_H_ #define __GyotoScreen_H_ #include #include #include #if defined HAVE_BOOST_ARRAY_HPP # include # define GYOTO_ARRAY boost::array # if defined HAVE_MPI # include # if BOOST_VERSION >= 106400 # include # include # endif # endif #else template class GYOTO_ARRAY { private: T buf[sz]; public: T& operator[](size_t c) { return buf[c] ; } }; #endif namespace Gyoto { class Screen; } #include #include #include #include #include #include /** * \class Gyoto::Screen * \brief The camera with which the Astrobj is observed * * In the observer-centric point-of-view, the center of the Metric's * coordinate system is positioned relatively to the observing Screen * using three Euler angles and the distance (in meters). The three * Euler angles are: * - position angle of the line of nodes (North of East); * - inclination (0 = face-on); * - argument of the X axis of the Metric's coordinate system. * We use the z-x-z convention. * See http://en.wikipedia.org/wiki/Euler_angles * * In addition, the Screen conveys: * - the observing date (in geometrical units, but expect it to * change to seconds in a future version); * - the field-of-view of the image; * - the resolution of the camera: number of pixels on each side * (the camera is square); * - the observing frequency. * * The scalar FreqObs defines the observing frequency for Scenery * quantity Intensity. * * Likewise, a Gyoto::Spectrometer defines for which frequencies * spectra are computed (when the Quantity Spectrum is requested in * the Scenery). * * For the sake of theoreticians, there is an alternate way of * specifying the relative position of the Screen and Metric, by * specifying the 4-coordinates of the Screen in the Metric's * coordinate system (in that case, eerything is specified in * geometrical units). * * So an XML stanza for a Screen may look like that: * \code * * * 0.3141592653589793 * 128 * 1e30 * 3.14159 * 2.0944 * -2.0944 * 17. 23. * 1e20 * * \endcode * * or like that: * * \code * * 1000. 1000. 0.15. 0. * 0.3141592653589793 * 128 * 17. 23. * 1e20 * * \endcode * * * Units can be specified using the unit attribute in the XML file, * for instance: * * \code * 8 * \endcode * * Possible units are (with [] noting the default): * - distance: [m], geometrical, cm, km, AU, ly, pc, kpc, Mpc; * - PALN, inclination, argument: [rad], deg. * - frequency: [Hz], µm, GeV... * * When the distance is really large and most of the ray-tracing would * happen de facto in flat space, the camera is transported to a * location at a reasonable distance from the metric and the images * are scaled accordingly. The default value for this distance should * be fine, but it can be customized using the "dmax" attribute of the * "Distance" element. "dmax" is always expressed in geometrical * units: * * \code * 8 * \endcode * * Symptoms when dmax is too large include pixelization of the image * (neighbouring photons are numerically identical) and other * numerical overflows. dmax is too small when it is apparent that * changing it yields projection effects. dmax must be large compared * to rmax in the Astrobj and ideally, changing it by an order of * magnitude should not yield significant changes in the ray-traced * image. * * A mask may be used to limit ray-tracing to only some portions of * the field. The Scenery checks whether a mask is to be used using * Screen::operator()(size_t i, size_t j). The mask can be loaded from * a FITS file as a square image of doubles: * \code * maskfile.fits * \endcode * The mask needs to be have the same size as the Screen itself, so * loading a mask also sets the resolution, and changing the * resolution after setting a mask also removes the mask. The content * of the Mask entity is parsed by Factory::fullPath(), so it can be * an absolute path, a path relative to where the XML file is stored, * or relative to the current working directory if prefixed with * "`pwd`/". * */ class Gyoto::Screen : public Gyoto::SmartPointee, public Gyoto::Object { friend class Gyoto::SmartPointer; private: double tobs_; ///< Observing date in s double fov_; ///< Field-of-view in rad double azimuthal_fov_; ///< Azimuthal field-of-view for Spherical Angles images. Maximal extent of image in the azimuthal b-angle direction. // double tmin_; size_t npix_; ///< Resolution in pixels /** * \brief Mask with 0 where the ray-tracing should not be performed */ double * mask_; /** * \brief Last read or written FITS file * * Used when saving to XML: if the mask was saved or loaded from * FITS file, output this file name in the XML. */ std::string mask_filename_; double distance_; ///< Distance to the observer in m double dmax_; ///< Maximum distance from which the photons are launched (geometrical units) enum anglekind_e { equatorial_angles=0, rectilinear=1, spherical_angles=2}; typedef int anglekind_t; anglekind_t anglekind_; ///< Screen angles kind (0: equatorial, 1: spherical) /** * The angles are position angle of the line of nodes (North of * East), inclination (0 = face-on), argument of X axis. We use the * z-x-z convention. See http://en.wikipedia.org/wiki/Euler_angles */ double euler_[3]; ///< Euler angles double ex_[3]; ///< Sky coordinate of base X vector double ey_[3]; ///< Sky coordinate of base Y vector double ez_[3]; ///< Sky coordinate of base Z vector double fourvel_[4]; ///< Observer's 4-velocity double screen1_[4]; ///< Screen e1 vector double screen2_[4]; ///< Screen e2 vector double screen3_[4]; ///< Screen e3 vector (normal) double dangle1_; ///< Increment to first position angle of Screen; can be typically alpha if in Equatorial Angles, or a if in Spherical Angles double dangle2_; ///< Increment to second position angle of Screen; can be typically delta if in Equatorial Angles, or b if in Spherical Angles SmartPointer gg_; ///< The Metric in this end of the Universe /** * \brief Gyoto::Spectrometer::Generic subclass instance used for quantities Spectrum and BinSpectrum */ SmartPointer spectro_; /** * \brief Frequency at which the observer observes * * For the quantity Intensity */ double freq_obs_; /** * \brief What kind of observer are we considering? (At infinity, ZAMO...) * */ obskind_t observerkind_; public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; // Constructors - Destructor // ------------------------- Screen() ; ///< Default constructor Screen(const Screen& ) ; ///< Copy constructor Screen * clone() const; ///< Cloner virtual ~Screen() ; ///< Destructor // Mutators / assignment // --------------------- /// Set inclination etc. void setProjection(const double paln, const double inclination, const double argument); /// Set distance, inclination etc. void setProjection(const double distance, const double paln, const double inclination, const double argument); /// Set distance from observer /** * \param dist Distance in meters. */ void distance(double dist); /// Set ray-tracing maximum distance /** * \param dist Distance in geometrical units. */ void dMax(double dist); /// Set distance from observer /** * \param dist the distance expressed in the specified unit; * \param unit convertible to meters */ void distance(double dist, const std::string &unit); /// Set inclination relative to line-of-sight /** * Inclination of z-axis relative to line-of-sight, or inclination * of equatorial plane relative to plane of the sky, in radians */ void inclination(double); /// Set inclination relative to line-of-sight /** * Inclination of z-axis relative to line-of-sight, or inclination * of equatorial plane relative to plane of the sky, in specified unit. */ void inclination(double, const std::string &unit); void PALN(double); ///< Set position angle of the line of nodes void PALN(double, const std::string &unit); ///< Set position angle of the line of nodes void argument(double); ///< Set angle beetwen line of nodes and X axis of object void argument(double, const std::string &unit); ///< Set angle beetwen line of nodes and X axis of object void spectrometer(SmartPointer spectro); ///< Set Screen::spectro_ SmartPointer spectrometer() const ; ///< Get Screen::spectro_ /** * \brief Set freq_obs_ * \param fo double: observing frequency in Hz */ void freqObs(double fo); /** * \brief Set freq_obs_ * \param fo double: observing frequency (or wavelength) in "unit" * \param unit string: unit in which fo is expressed, convertible to * Herz or meters or energy. */ void freqObs(double fo, const std::string &unit); /** * \brief Get freq_obs_. */ double freqObs() const ; /** * \brief Get freq_obs_. * \param unit string: unit in which freq_obs_ should be returned is * expressed, convertible to Herz or meters or energy. */ double freqObs(const std::string &unit) const; /// Alternative way to set projection /** * Beware : paln can not be set this way, setting later other * parameters change the observer's coordinates. For observationnal * ray-tracing purposes, prefer setProjection(). * * \param[in] pos position of observer in Screen's coordinate * system. Content is copied. */ void setObserverPos(const double pos[4]); void observerKind(const std::string &kind); std::string observerKind() const; void setFourVel(const double coord[4]); ///< Sets the observer's 4-velocity void setScreen1(const double coord[4]); ///< Sets the screen vector e1 void setScreen2(const double coord[4]); ///< Sets the screen vector e2 void setScreen3(const double coord[4]); ///< Sets the screen vector e3 (normal) // Accessors // --------- /// Get coordinate kind /** * From Screen::gg_. */ int coordKind() const; /// Get distance from observer /** * In meters. */ double distance() const; /// Get distance from observer /** * In specified unit. */ double distance(const std::string&) const; ///< Get distance from observer /// Get maximum ray-tracing distance /** * In geometrical units. */ double dMax() const; /// Get inclination relative to line-of-sight /** * Inclination of z-axis relative to line-of-sight, or inclination * of equatorial plane relative to plane of the sky, in radians. */ double inclination() const; /// Get inclination relative to line-of-sight /** * Inclination of z-axis relative to line-of-sight, or inclination * of equatorial plane relative to plane of the sky, in specified unit. */ double inclination(const std::string&) const; double PALN() const; ///< Get position angle of the line of nodes double PALN(const std::string&) const; ///< Get position angle of the line of nodes double argument() const; ///< Get angle between line of nodes and X axis of object double argument(const std::string&) const; ///< Get angle between line of nodes and X axis of object SmartPointer metric() const; ///< Get Screen::gg_ void metric(SmartPointer gg); ///< Set Screen::gg_ /// Get observing date in seconds double time() const; /// Get observing date in seconds double time(const std::string &) const; /// Set observing date in specified unit void time(double, const std::string &); /// Set observing date in seconds void time(double); /// Get Screen::fov_ in radians double fieldOfView() const; /// Get Screen::fov_ in specified unit double fieldOfView(std::string const &unit) const; /// Set Screen::fov_ in radians void fieldOfView(double); /// Set Screen::fov_ in specified unit void fieldOfView(double, const std::string &unit); /// Get Screen::azimuthal_fov_ double azimuthalFieldOfView() const; /// Set Screen::azimuthal_fov_ void azimuthalFieldOfView(double ff); /// Set increment to first position angle void dangle1(double); /// Set increment to first position angle in specified unit void dangle1(double, const std::string &unit); /// Get increment to first position angle double dangle1() const; /// Get increment to first position angle in specified unit double dangle1(std::string const &unit)const; /// Set increment to second position angle void dangle2(double); /// Set increment to second position angle in specified unit void dangle2(double, const std::string &unit); /// Get increment to second position angle double dangle2() const; /// Get increment to second position angle in specified unit double dangle2(std::string const &unit)const; /// Set Screen::anglekind_ void anglekind(int); void anglekind(std::string const&); std::string anglekind() const; /// Get Screen::npix_ size_t resolution() const; /// Set Screen::npix_ void resolution(size_t); /// Set mask_ from array /** * mm will be copied. mm must be a square resolution x resolution * array. If mm==NULL, just deallocate mask_. */ void mask(double const * const mm, size_t resolution=0); /// Retrieve const pointer to mask_ double const * mask() const ; void maskFile(std::string const &fname); std::string maskFile() const; # ifdef GYOTO_USE_CFITSIO /// Read mask_ from FITS file void fitsReadMask(std::string const &fname); /// Save mask_ from FITS file void fitsWriteMask(std::string const &fname); # endif /// Whether this pixel should be ray-traced /** * If mask_ is not set, always true. Else, true for non-zero cells * in mask_. */ bool operator()(size_t, size_t); /// 4-Position of the observer relative to the metric /** * A Screen is positioned relative to the observer with four elements: * Screen::distance, Screen::inclination, Screen::paln and * Screen::argument. * * This function returns the position of the observer relative to * the metric system in Screen::gg_, using these parameters. The * output parameter is coord. * * \param[out] coord position of the observer. Must be preallocated. */ void getObserverPos(double dest[4]) const; /// Get copy of Screen::fourvel_ /** * \param[out] fourvel preallocated 4-element array */ void getFourVel(double dest[4]) const; void fourVel(std::vector const &); std::vector fourVel() const; void screenVector1(std::vector const &); std::vector screenVector1() const; void screenVector2(std::vector const &); std::vector screenVector2() const; void screenVector3(std::vector const &); std::vector screenVector3() const; /// Get copy of Screen::screen1_ /** * \param[out] dest preallocated 4-element array */ void getScreen1(double dest[4]) const; /// Get copy of Screen::screen2_ /** * \param[out] dest preallocated 4-element array */ void getScreen2(double dest[4]) const; /// Get copy of Screen::screen3_ /** * \param[out] dest preallocated 4-element array */ void getScreen3(double dest[4]) const; /// Get 8-coordinate of Photon hitting screen from a given direction and polarization basis if needed /** * Similar to Screen::getObserverPos() but will return in addition * the 4-velocity of a photon corresponding to the sky direction * given by x and y. * \param[in] x RA (d_alpha*cos(delta)) offset in radians; * \param[in] y Dec offset (d_delta) in radians; * \param[out] dest position-velocity of the observer Photon. Preallocated. * \param[in] compute_polar_basis True if polarization basis Ephi,Etheta is needed * \param[out] Ephi first polarisation direction. Preallocated. Default: NULL. * \param[out] Etheta second polarisation direction. Preallocated. Default: NULL. * */ void getRayTriad(double x, double y, double dest[8], bool compute_polar_basis=false, double Ephi[4]=NULL, double Etheta[4]=NULL) const; /// Get 8-coordinate of Photon hitting screen pixel and polarization basis if needed /** * Similar to Screen::getObserverPos() but will return in addition * the 4-velocity of a photon corresponding to the sky direction * given by x and y. * \param[in] i, j pixel coordinates * \param[out] dest position-velocity of the Photon. Preallocated. * \param[in] compute_polar_basis True if polarization basis Ephi,Etheta is needed * \param[out] Ephi first polarisation direction. Preallocated. Default: NULL. * \param[out] Etheta second polarisation direction. Preallocated. Default: NULL. * */ void getRayTriad(const size_t i, const size_t j, double dest[8], bool compute_polar_basis=false, double Ephi[4]=NULL, double Etheta[4]=NULL) const; /** \brief Convert metric 4-position to sky 3-position * * \param[in] pos 4-position in metric coordinates. * \param[in] dest 3-position in plane of the sky: Cartesian East, North, front. * \param[in] geometrical: if true, #dest will be in geometrical units instead of meters. */ void coordToSky(const double pos[4], double dest[3], bool geometrical=false) const; /** \brief Convert sky 3-position to metric 4-position * * \param[in] sky 3-position in plane of the sky. * \param[in] dest 4-position in metric coordinates (dest[0] is not modified). * \param[in] geometrical: set to true if #sky is in geometrical units instead of meters. */ void skyToCoord(const double sky[3], double dest[4], bool geometrical=false) const; void coordToXYZ(const double pos[4], double dest[3]) const; ///< Convert 4-position to 3-cartesian coordinates void computeBaseVectors() ; ///< Compute base vectors according to projection parameters /// Display // friend std::ostream& operator<<(std::ostream& , const Screen& ) ; std::ostream& print(std::ostream&) const ; ///< Debug helper std::ostream& printBaseVectors(std::ostream&) const ; ///< Debug helper // UDUNITS # ifdef HAVE_UDUNITS /// Map "pix" and "pixel" to angular pixel width in unit system /** * "pix" or "pixel" can then be used in units. * * There is only one unit system in Gyoto: "pix" can therefore be * registered only for one Screen at a time. See Gyoto::Units. * * The unit must later be unmapped with unmapPixUnit(). */ void mapPixUnit(); /// Unmap "pix" and "pixel" from unit system /** * See also mapPixUnit(). */ void unmapPixUnit(); # endif #ifdef GYOTO_USE_XERCES public: void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const; /// Instanciate a Screen from XML entity static SmartPointer Subcontractor(FactoryMessenger* fmp); #endif /// Enum to specify whether a coordinate set (Coord1dSet or Coord2dSet) holds pixel values or angles enum CoordType_e {angle, pixel}; /// Set of 1-d coordinates: indices or angles /** * Acts like a container (array-like) of either size_t (pixel * coordinate) or double (angle) values. This container can be * iterated-through using the operator++(), derefenced using the * operator*() (if containing pixel coordinates) or angle() (in * containing angles). */ class Coord1dSet { public: /// Whether this specifier represents angles or pixels const CoordType_e kind; public: /// Set kind during initialization Coord1dSet(CoordType_e k); /// Virtual destructor virtual ~Coord1dSet(); /// Reset specifier to point to the first value virtual void begin() =0; /// True if pointing to something, false if end has been reached. virtual bool valid() =0; /// Number of values in this container virtual size_t size()=0; /// Get size_t value currently pointed to virtual size_t operator*() const ; /// Get double value currently pointed to virtual double angle() const ; /// Increment iterator (point to next value) virtual Coord1dSet& operator++()=0; /// Get index of value currently pointed to /** * Starts at 0 and is implemented each time operator++ is * called. Depending on the implementation, this may be a real * index or computed on demand. */ virtual size_t index() const=0; }; /// Class to specify a set of points on the Screen /** * Container (array-like) holding several 2D points. Can be a 2D * grid of pixel coordinates or a vector of floating-point (alpha, * delta) pairs, for instance. */ class Coord2dSet { public: /// Whether this set holds pixels or angle specifications const CoordType_e kind; /// Set kind at initialisation Coord2dSet(CoordType_e k); /// Virtual destructor virtual ~Coord2dSet(); /// Increment pointer virtual Coord2dSet& operator++() =0; /// Get pixel coordinates virtual GYOTO_ARRAY operator* () const; /// Get angle coordinates virtual GYOTO_ARRAY angles() const ; /// Reset pointer virtual void begin() =0; /// Whether the end has not been passed virtual bool valid() =0; /// Number of positions contained virtual size_t size()=0; }; /// Class containing 2D-points organized in a grid class Grid: public Coord2dSet { protected: protected: /// If non-NULL, cout j each tims it is incremented. char * prefix_; Coord1dSet &iset_; Coord1dSet &jset_; public: Grid(Coord1dSet &iset, Coord1dSet &jset, const char * const p=NULL); virtual ~Grid(); virtual Coord2dSet& operator++(); virtual GYOTO_ARRAY operator* () const; virtual void begin(); virtual bool valid(); virtual size_t size(); }; /// Class containing arbitrary 2D-points /** * ispec_ and jspec_ must be the same size. */ class Bucket : public Coord2dSet { protected: Coord1dSet &alpha_; Coord1dSet &delta_; public: Bucket(Coord1dSet &iset, Coord1dSet &jset); virtual Coord2dSet& operator++(); virtual GYOTO_ARRAY angles() const; virtual GYOTO_ARRAY operator*() const; virtual void begin(); virtual bool valid(); virtual size_t size(); }; /// A dummy, empty 2D set. class Empty: public Coord2dSet { public: Empty(); virtual Coord2dSet& operator++(); virtual void begin(); virtual bool valid(); virtual size_t size(); }; /// 1D coordinated specifier for a range class Range : public Coord1dSet { protected: const size_t mi_, ma_, d_, sz_; size_t cur_; public: /// Specify min, max and step of this range. Range(size_t mi, size_t ma, size_t d); void begin(); bool valid(); size_t size(); Coord1dSet& operator++(); size_t operator*() const ; virtual size_t index() const ; }; /// 1D specifier for an arbitrary pixel coordinate set. class Indices : public Coord1dSet { protected: size_t * indices_; size_t const sz_; size_t i_; public: Indices (size_t const*const buf, size_t sz); ~Indices(); void begin(); bool valid(); size_t size(); Coord1dSet& operator++(); size_t operator*() const ; virtual size_t index() const ; }; /// 1D specifier for an arbitrary angle coordinate set. class Angles : public Coord1dSet { protected: double * buf_; size_t const sz_; size_t i_; public: Angles (double const*const buf, size_t sz); ~Angles(); void begin(); bool valid(); size_t size(); Coord1dSet& operator++(); double angle() const ; virtual size_t index() const ; }; /// 1D specifier for an angle that is repeated. class RepeatAngle : public Coord1dSet { protected: double const val_; size_t const sz_; size_t i_; public: RepeatAngle (double val, size_t sz); void begin(); bool valid(); size_t size(); Coord1dSet& operator++(); double angle() const ; virtual size_t index() const ; }; }; #endif Gyoto-2.0.2/include/GyotoShift.h000066400000000000000000000046161455254334400165270ustar00rootroot00000000000000/** * \file GyotoShift.h * \brief Shift a metric * */ /* Copyright 2020 Thibaut Paumard & Frédéric Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoShift_H_ #define __GyotoShift_H_ #include namespace Gyoto { namespace Metric { class Shift; } } /** * \class Gyoto::Metric::Shift * \brief The Shift flat-space metric * * Use <Cartesian> or </Spherical> to select the coordinate system * kind. */ class Gyoto::Metric::Shift : public Gyoto::Metric::Generic, public Hook::Listener { friend class Gyoto::SmartPointer; protected: Gyoto::SmartPointer submet_; double offset_[4]; public: // This is the bare minimum of what a Metric class must implement: GYOTO_OBJECT; Shift(); virtual ~Shift(); virtual Shift* clone() const ; virtual SmartPointer subMetric() const; virtual void subMetric(SmartPointer) ; virtual std::vector offset() const; ///< Get vector copy of #pos_ virtual void offset(std::vector const&); ///< Set #pos_ from vector virtual void mass(const double); ///< Set mass used in unitLength() using Generic::gmunu; virtual void gmunu(double ARGOUT_ARRAY2[4][4], const double IN_ARRAY1[4]) const ; using Generic::gmunu_up; virtual void gmunu_up(double ARGOUT_ARRAY2[4][4], const double IN_ARRAY1[4]) const ; virtual void jacobian(double ARGOUT_ARRAY3[4][4][4], const double IN_ARRAY1[4]) const; virtual int isStopCondition(double const coord[8]) const; # ifdef GYOTO_USE_XERCES virtual void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const ; virtual void setParameters(FactoryMessenger *fmp) ; # endif virtual void tell(Gyoto::Hook::Teller *msg); }; #endif Gyoto-2.0.2/include/GyotoSmartPointer.h000066400000000000000000000217571455254334400201060ustar00rootroot00000000000000/** * \file GyotoSmartPointer.h * \brief Reference-counting pointers Template class Gyoto::SmartPointer performs reference counting on its pointee and makes sure the pointed to object is actually deleted when the number of references to it drops to zero. The pointed-to object must inherit from Gyoto::SmartPointee for this to work and be referenced to only by SmartPointers. @code class Gyoto::Metric : public Gyoto::SmartPointee {...}; SmartPointer ObjPtr (new Gyoto::Metric(...)); @endcode */ /* Copyright 2011-2014, 2016, 2020 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoSmartPointer_H_ #define __GyotoSmartPointer_H_ #include "GyotoUtils.h" #ifdef HAVE_PTHREAD #include #endif namespace Gyoto { class SmartPointee; class FactoryMessenger; template class SmartPointer; } #include #include #include #include #include #include /** * \brief Can be pointed to by a SmartPointer * * A class can be pointed to by a SmartPointer when it inherits from * class SmartPointee. * * The SmartPointee methods need to be public to be accessed by all * the SmartPointer < T > classes. However, it is a bad idea to * manipulate the counter directly. To protect these methods inside * your derive object, you can do as in the following example: * * @code * class Gyoto::Metric : protected Gyoto::SmartPointee * { * friend class Gyoto::SmartPointer; * ... * }; * @endcode * */ class Gyoto::SmartPointee { private: int refCount; ///< Reference counter. # ifdef HAVE_PTHREAD /** * When compiled with libpthread */ pthread_mutex_t mutex_; ///< A mutex #endif public: SmartPointee () ; virtual ~SmartPointee() ; SmartPointee (const SmartPointee&) ; ///< Copy constructor void incRefCount () ; ///< Increment the reference counter. Warning: Don't mess with the counter. int decRefCount () ; ///< Decrement the reference counter and return current value. Warning: Don't mess with the counter. int getRefCount () ; ///< Get the current number of references /** * Various classes need to provide a subcontractor to be able to * instantiate themselves upon order from the Factory. A * subcontractor is a function (often a static member function) * which accepts a pointer to a FactoryMessenger as unique * parameter, communicates with the Factory using this messenger to * read an XML description of the object to build, and returns this * objet. SmartPointee::Subcontractor_t* is just generic enough a * typedef to cast to and from other subcontractor types: * Astrobj::Subcontractor_t, Metric::Subcontractor_t, * Spectrum::Subcontractor_t. A subcontractor needs to be registered * using the relevant Register() function: Astrobj::Register(), * Metric::Register(), Spectrum::Register(). */ typedef Gyoto::SmartPointer Subcontractor_t(Gyoto::FactoryMessenger*, std::vector const &); ///< A subcontractor builds an object upon order from the Factory }; /** * \brief Pointers performing reference counting * * Pointee must inherit from class SmartPointee. * * To create an object and a SmartPointer pointing to it: * * \code * SmartPointer ObjPtr (new Gyoto::Metric(...)); * \endcode * * \tparam T Sub-class of Gyoto::SmartPointee. */ template< class T > class Gyoto::SmartPointer { private: /** * \brief Real pointer, don't mess with it. */ T *obj; private: /** * \brief Decrement the reference counter. Warning: don't mess with it. */ void decRef () { if (obj && obj->decRefCount() == 0) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(obj); # endif delete obj; obj = NULL; } } public: /** * \brief Constructor from a standard pointer-to-class * * \param orig : a pointer to an instance of class T, created using new T(). * * Example: * \code * SmartPointer ObjPtr (new Gyoto::Metric(...)); // create SmartPointer ObjPtr * \endcode */ SmartPointer (T *orig = NULL) : obj(orig) { if (obj) obj->incRefCount(); } /** * \brief Copy constructor from same type * * \param orig : a SmartPointer to an instance of class T * * Example: * \code * SmartPointer ObjPtr (new Gyoto::Metric(...)); // create SmartPointer ObjPtr * SmartPointer ObjPtr2 = ObjPtr; // create SmartPointer ObjPtr2 * \endcode * * ObjPtr and ObjPtr2 point to the same instance of class T. Copying * increments the reference counter. */ SmartPointer (const SmartPointer< T > &orig) { obj = orig.obj; if (obj) obj->incRefCount (); } /** * \brief Copy constructor from compatible type (used for casting) * * \param orig : a SmartPointer to an instance of another class U * * Example: MetricPtr is a SmartPoiter, but really points to * an instance of the child class Gyoto::Kerr: * * \code * SmartPointer KerrPtr (MetricPtr); * \endcode * * MetricPtr and KerrPtr point to the same instance of class * Kerr. The methods specific to class Kerr are available only to * KerrPtr. */ template SmartPointer(const SmartPointer& orig) { obj = dynamic_cast(const_cast(orig())); if (obj) obj->incRefCount (); } /** * \brief Dereference operator "*" * * \return address of the pointed-to-object */ T& operator* () { if (!obj) Gyoto::throwError("Null Gyoto::SmartPointer dereference in operator*"); return *obj; } /** * \brief Dereference operator "*" * * \return address of the pointed-to-object */ const T& operator* () const { if (!obj) Gyoto::throwError("Null Gyoto::SmartPointer dereference in operator*"); return *obj; } /** * \brief Dereference operator "->" * * Access to the pointed-to-object's members. */ T* operator-> () { if (!obj) Gyoto::throwError("Null Gyoto::SmartPointer dereference in operator->"); return obj; } /** * \brief Dereference operator "->" (const) * * Access to the pointed-to-object's members. */ T* operator-> () const { if (!obj) Gyoto::throwError("Null Gyoto::SmartPointer dereference in operator->"); return obj; } /** * \brief Comparison operator between two SmartPointer of same kind */ bool operator== (const SmartPointer< T >&right) { return obj == right.obj; } /** * \brief Comparison operator between two SmartPointer of same kind */ bool operator!= (const SmartPointer< T >&right) { return obj != right.obj; } /** * \brief Copy a SmartPointer to another (already defined) * SmartPointer of same kind */ SmartPointer< T > &operator= (SmartPointer< T > &right) { if (this == &right) return *this; if (right.obj) right.obj->incRefCount (); decRef (); obj = right.obj; return *this; } /** * \brief Copy a normal pointer to an (already defined) * SmartPointer of same kind */ SmartPointer< T > &operator= (T* right) { if (obj == right) return *this; decRef (); obj = right; if (obj) obj->incRefCount(); return *this; } /** * \brief Cast SmartPointer to normal pointer */ // template operator U() { return obj; } operator T*() const { return obj; } #if 0 operator const T*() { return obj; } /** * \brief Check whether SmartPointer is valid * \return 0 if SmartPointer is NULL, 1 if valid. */ operator bool () const { return obj != NULL; } /** * \brief Check whether SmartPointer is valid * \return 1 if SmartPointer is NULL, 0 if valid. */ bool operator! () const { return obj == NULL; } #endif ~SmartPointer< T > () { decRef(); } public: /** * \brief Get standard, non-smart pointer to object. Use with care. * * This public method is needed to cast from a SmartPointer flavor * to another. It should almost certainly never be used in user * code, except perhaps for debugging purposes. * * \return usual pointer to object, T*. * */ // const T* address() const { return obj; } const T* operator()() const { return obj; } }; #endif Gyoto-2.0.2/include/GyotoSpectrometer.h000066400000000000000000000264521455254334400201300ustar00rootroot00000000000000/** * \file GyotoSpectrometer.h * \brief Spectroscopic capabilities of a Screen * * Describes the spectroscopic capabilites of a Screen. * */ /* Copyright 2011-2016 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoSpectrometer_H_ #define __GyotoSpectrometer_H_ #include #include #include #include #include #include /** * \namespace Gyoto::Spectrometer * \brief Access to spectrometers * * Objects which describe spectrometers (including one-channel * devices, a.k.a cameras) must inherit from the * Gyoto::Spectrometer::Generic class. * * To be usable, a Spectrometer::Generic sub-class should register a * Spectrometer::Subcontractor_t function using the Spectrometer::Register() * function. See also \ref writing_plugins_page . */ namespace Gyoto{ namespace Register { class Entry; } class FactoryMessenger; namespace Spectrometer { /** * \class Gyoto::Spectrometer::Generic * * \brief Base class for spectrometers * * Example: class Gyoto::Spectrometer::Uniform * * See Gyoto::Spectrometer for an introduction. * * Generic inherits from Gyoto::SmartPointee so that it is * possible to create a SmartPointer to a Spectrometer. * * It also inherits from Gyoto::Hook::Teller. This allows a * consistent implementation of Spectrometer::Complex (in * particular). Any method which mutates a Spectrometer should * call tellListeners(). */ class Generic; /** * \brief Type for Spectrometer kind * * Spectrometer kindid is a unique numerical identifier for that kind, * produced as the address to a static C string variable holding the * kind's name. Most of the time, the address is the only * significant part as this is more reliable and allows for direct * numerical comparison instead of slower string comparison. The * value of the string variable can be used for printing and as * anchor name for Register(), although the anchor name could be * different. */ typedef char const * kind_t; /** * This is a more specific version of the * SmartPointee::Subcontractor_t type. A Spectrometer::Subcontrator_t * is called by the Gyoto::Factory to build an instance of the * kind of spectrometer specified in an XML file (see * Register()). The Factory and Subcontractor_t function * communicate through a Gyoto::FactoryMessenger. */ typedef SmartPointer Subcontractor_t(Gyoto::FactoryMessenger*, std::vector const &); ///< A function to build instances of a specific Astrobj::Generic sub-class /** * \brief Query the Spectrometer register * * Get the Spectrometer::Subcontractor_t correspondig to a given * kind name. This function is normally called only from the * Gyoto::Factory. If plugin is specified, only a * subcontractor matching both name and plugin will be returned, * loading the plug-in if necessary. If plugin is the empty * string, then the first subcontractor matching name will be * returned, and the name of the plug-in it belongs to will be * returned in plugin upon output. * * \param[in] name Name of the subclass to build, e.g. "Complex" * or "wave". * \param[inout] plugin e.g. "stdplug". * \param errmode[in] If name is not registered, * getSubcontractor() return NULL errmode==1, throws a * Gyoto::Error if errmode==0. * \return pointer to the corresponding subcontractor. */ Gyoto::Spectrometer::Subcontractor_t* getSubcontractor(std::string name, std::vector &plugins, int errmode = 0); /** * \brief A template for Subcontractor_t functions * * Instead of reimplementing the wheel, your subcontractor can * simply be Gyoto::Spectrometer::Subcontractor. It must * however implement setParameters(). * * \tparam T A Spectrometer::Generic sub-class. */ template SmartPointer Subcontractor (FactoryMessenger* fmp, std::vector const &plugins) { SmartPointer spectro = new T(); spectro -> plugins(plugins); #ifdef GYOTO_USE_XERCES if (fmp) spectro -> setParameters(fmp); #endif return spectro; } /** * \brief The Spectrometer register * * Use the Spectrometer::initRegister() once in your program to * initiliaze it, the Spectrometer::Register() function to fill it, and * the Spectrometer::getSubcontractor() function to query it. */ extern Gyoto::Register::Entry * Register_; /** * \brief Initialize the Spectrometer register * This must be called once. It initializes Register_ and * registers the standard kinds (Uniform and Complex). */ void initRegister(); /** * \brief Register a new Spectrometer kind * * Register a new Spectrometer::Generic sub-class so that the * Gyoto::Factory knows it. * * \param name The kind name which identifies this object type in * an XML file, as in <Spectrometer kind="name">. For * clarity, this should be the same as the value of kindid_ for this * object, but it is not mandatory. * * \param scp A pointer to the subcontractor, which will * communicate with the Gyoto::Factory to build an instance of * the class from its XML description. If all parameters can be * set using setParameter(), this can be: * \code * &(Gyoto::Spectrometer::Subcontractor) * \endcode */ void Register(std::string name, Gyoto::Spectrometer::Subcontractor_t* scp); } } class Gyoto::Spectrometer::Generic : public Gyoto::SmartPointee, public Gyoto::Object, public Gyoto::Hook::Teller { friend class Gyoto::SmartPointer; protected: /** * \brief Spectrometer kind ID * * The content is not copied. kindid_ should be set (as a parameter to * the Generic() constructor or using kindid()) to the address of a * static variable holding the name. This allows checking the kind * using pointer comparison rather than string comparison. */ kind_t kindid_; public: size_t nsamples_; ///< Number of spectral elements size_t nboundaries_; ///< Size of the boundaries_ array /** * \brief Frequency (in Hz) at the boundaries of the spectral channels * * Array of size nboundaries_ * * Spectral channel i extends from * \code * boundaries_[chanind_[2*i]] * \endcode * to * \code * boundaries_[chanind_[2*i+1]] * \endcode. * Channels may or may not be contiguous or ordered. */ double* boundaries_; /** * \brief Indices in boundaries_ * * Array of size 2*nsamples_ */ size_t* chanind_; /** * \brief Effective frequency (in Hz) of each spectral channel * * Array of size nsamples_ */ double* midpoints_; /** * \brief Width of each channel * * Array of size nsamples_ (in Hz) */ double* widths_; public: GYOTO_OBJECT; /** * \brief Default constructor * * Sets each member to 0. */ Generic(); /** * \brief Constructor setting kindid * * Sets the other members to 0. This is usually the right * constructor to use: * \code * Complex::Complex : Generic(Complex::Kindid) {} * \endcode * * Always set kindid to the address of a static variable, not to a temporary. * Usually your class should have a static member for that purpose: * \code * class MyKind : public Spectrometer::Generic * { * static kind_t Kindid; * }; * kind_t MyKind::Kindid = "MyKind"; * \endcode * */ Generic(kind_t kindid); /** * \brief Copy constructor * * Takes care of (deep) copying all the members known to the base class. */ Generic(const Generic& ) ; /** * \brief Clone an instance * * Use this to get a deep copy of an instance; * \code * SmartPointer myclone = orig->clone(); * \endcode * * Most implementations will use the copy constructor: * \code * Generic* Uniform::clone() const { return new Uniform(*this); } * \endcode */ virtual Generic * clone() const =0; /** * \brief Destructor * * Takes care of deleting the arrays (if the pointers are not NULL). */ virtual ~Generic(); /** * \brief Get kindid_ * * You can check whether the Spectrometer sp is of a given kind * MyKind with something like: * * \code * if (sp->kind()) == MyKind::Kindid; * \endcode * * See Uniform::WaveKind, Uniform::WaveLogKind, Uniform::FreqKind, * Uniform::FreqLogKind and Complex::Kind. * */ virtual kind_t kindid() const ; /** * \brief Set Generic::kindid_ * * This should rarely be used as the Generic::kindid_ attribute usually is set * in the constructor and doesn't change after that. * * Always set to the address of a static variable, not to a temporary. * Usually your class should have a static member for that purpose: * \code * class MyKind : public Spectrometer::Generic * { * static kind_t Kindid; * }; * kind_t MyKind::Kind = "MyKind"; * ... * SmartPointer sp(); * sp->kindid(MyKind::Kindid) * \endcode * */ virtual void kindid(kind_t) ; virtual size_t nSamples() const ; ///< Get Generic::nsamples_. virtual size_t getNBoundaries() const ; ///< Get Generic::nboundaries_ virtual double const * getMidpoints() const ; ///< Get Generic::midpoints_. /** * \brief Copy Generic::midpoints_, converting to unit * \param data an array of Generic::nsamples_ doubles to fill with result * \param unit a string */ virtual void getMidpoints( double data[], std::string unit); /** * \brief Copy Generic::boundaries_, converting to unit * \param data an array of Generic::nboundaries_ doubles to fill with result * \param unit a string */ virtual void getChannelBoundaries( double data[], std::string unit); virtual double const * getChannelBoundaries() const ; ///< Get Generic::boundaries_. virtual size_t const * getChannelIndices() const ; ///< Get Generic::chanind_. virtual double const * getWidths() const ; ///< Get Generic::widths_. /** * \brief Copy Generic::widths_, converting to unit * * Think carefully before using: widths are often used to convert * spectral flux density to flux. If flux density is per Herz, you * don't need to convert widths. * * \param data an array of Generic::nboundaries_ doubles to fill with result * \param unit a string */ virtual void getWidths( double data[], std::string unit); }; #endif Gyoto-2.0.2/include/GyotoSpectrum.h000066400000000000000000000141471455254334400172540ustar00rootroot00000000000000/** * \file GyotoSpectrum.h * \brief Spectrum of a simple object (e.g. Star) * * Light emitted by an astronomical object */ /* Copyright 2011-2016 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoSpectrum_H_ #define __GyotoSpectrum_H_ #include "GyotoRegister.h" #include "GyotoObject.h" namespace Gyoto{ namespace Register { class Entry; } class FactoryMessenger; /// Spectrum of a simple object (e.g. a Gyoto::Astrobj::Star) namespace Spectrum { class Generic; /// A function to build instances of a specific Spectrum::Generic sub-class /** * This is a more specific version of the * SmartPointee::Subcontractor_t type. A Spectrum::Subcontrator_t * is called by the Gyoto::Factory to build an instance of the * kind of spectrum specified in an XML file (see * Register()). The Factory and Subcontractor_t function * communicate through a Gyoto::FactoryMessenger. A template is * provided so that you may not have to code anything. */ typedef Gyoto::SmartPointer Subcontractor_t(Gyoto::FactoryMessenger* fmp, std::vector const &); /** * \brief Subcontractor template * * Instead of reimplementing the wheel, your subcontractor can simply be * Gyoto::Spectrum::Subcontractor * * \tparam T Sub-class of Spectrum::Generic */ template SmartPointer Subcontractor (FactoryMessenger* fmp, std::vector const & plugins) { SmartPointer sp = new T(); sp -> plugins(plugins) ; #ifdef GYOTO_USE_XERCES if (fmp) sp -> setParameters(fmp); #endif return sp; } /// Make a Spectrum kind known to the Factory /** * Register a new Spectrum::Generic sub-class so that the * Gyoto::Factory knows it. * * \param kind The kind name which identifies this object type in * an XML file, as in <Spectrum kind="name"> * * \param scp A pointer to the subcontractor, which will * communicate with the Gyoto::Factory to build an instance of * the class from its XML description */ void Register(std::string kind, Gyoto::Spectrum::Subcontractor_t* scp); /// Query the Spectrum register /** * Query the Spectrum register to get the Metric::Subcontractor_t * correspondig to a given kind name. This function is normally * called only from the Factory. If plugin is specified, only a * subcontractor matching both name and plugin will be returned, * loading the plug-in if necessary. If plugin is the empty * string, then the first subcontractor matching name will be * returned, and the name of the plug-in it belongs to will be * returned in plugin upon output. * * \param[in] name e.g. "PowerLaw" * \param[inout] plugin e.g. "stdplug". * \param[in] errmode int=0. If errmode==0, failure to find a * registered Spectrum by that name is an error. Else, simply * return NULL pointer in that case. * \return pointer to the corresponding subcontractor. */ Gyoto::Spectrum::Subcontractor_t* getSubcontractor(std::string name, std::vector &plugins, int errmode=0); /// The Spectrum register /** * Use the Spectrum::initRegister() once in your program to * initiliaze it, the Spectrum::Register() function to fill it, and * the Spectrum::getSubcontractor() function to query it. */ extern Register::Entry* Register_; /// Empty the Spectrum register. /** * This must be called once. It is called by * Gyoto::Register::init(). */ void initRegister(); } } #include #include /** * \class Gyoto::Spectrum::Generic * \brief Spectrum emitted by an Astrobj * * Light emitted by e.g. a Star * */ class Gyoto::Spectrum::Generic : public Gyoto::SmartPointee, public Gyoto::Object { friend class Gyoto::SmartPointer; protected: public: GYOTO_OBJECT; Generic(); Generic(const std::string kind); ///< Set kind in constructor Generic(const Spectrum::Generic &); virtual Generic * clone() const; ///< Cloner virtual ~Generic() ; ///< Destructor: does nothing. virtual double operator()(double nu) const =0; ///< I_nu = mySpectrum(nu), nu in Hz. Assumes optically thick regime. /** * Generic implementation assumes emissivity = opacity. * * \param nu frequency in Hz * \param opacity such that opacity*ds=optical thickness. * \param ds in geometrical units */ virtual double operator()(double nu, double opacity, double ds) const; ///< I_nu in optically thin regime. /** * \brief Integrate optically thick I_nu * * See operator()(double nu) const * * \param nu1, nu2 boundaries for the integration * \result I, the integral of I_nu between nu1 and nu2 */ virtual double integrate(double nu1, double nu2) ; /** * \brief Integrate optically thin I_nu * * See operator()(double nu, double opacity, double ds) const * * \param nu1, nu2 boundaries for the integration * \param opacity the frequency-dependent opacity law given as a * pointer to a Gyoto::Spectrum::Generic sub-class instance * \param ds the element length for spatial integration * \result I, the integral of I_nu between nu1 and nu2 */ virtual double integrate(double nu1, double nu2, const Spectrum::Generic * opacity, double ds) ; }; #endif Gyoto-2.0.2/include/GyotoSphericalAccretion.h000066400000000000000000000076711455254334400212200ustar00rootroot00000000000000/** * \file GyotoSphericalAccretion.h * \brief A spherically-symmetric accretion flow radially * falling onto the central object. * * Density is assumed to follow a r^{-2} law while temperature * is a power law with a specified slope. * * This astrobj emits thermal synchrotron. */ /* Copyright 2021 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoSphericalAccretion_H_ #define __GyotoSphericalAccretion_H_ #include #include #include namespace Gyoto{ namespace Astrobj { class SphericalAccretion; } } #include #include #include /** * \class Gyoto::Astrobj::SphericalAccretion * \brief A spherically-symmetric accretion flow radially * falling onto the central object. * * Density is assumed to follow a r^{-2} law while temperature * is a power law with a specified slope. * * This astrobj emits thermal synchrotron. */ class Gyoto::Astrobj::SphericalAccretion : public Astrobj::Standard, public Hook::Listener { friend class Gyoto::SmartPointer; private: SmartPointer spectrumThermalSynch_; bool use_selfabsorption_; ///< True if selfabs is used in radiative transfer double sphericalAccretionInnerRadius_; ///< Inner radius of flow in M units double numberDensityAtInnerRadius_cgs_; ///< electron nb density at inner radius (cgs) double densitySlope_; ///< electron density \propto r^{-densitySlope_} double temperatureAtInnerRadius_; ///< electron temperature at inner radius (K) double temperatureSlope_; ///< electron temperature \propto z^temperatureSlope_ double magnetizationParameter_; ///< Pmagn/(ne mp c2) // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; SphericalAccretion(); ///< Standard constructor SphericalAccretion(const SphericalAccretion& ) ;///< Copy constructor virtual SphericalAccretion* clone () const; ///< Cloner virtual ~SphericalAccretion() ; ///< Destructor // Accessors // --------- public: void useSelfAbsorption(bool abs) ; bool useSelfAbsorption() const; void sphericalAccretionInnerRadius(double hh); double sphericalAccretionInnerRadius() const; double numberDensityAtInnerRadius() const; double numberDensityAtInnerRadius(std::string const &unit) const; void numberDensityAtInnerRadius(double ne); void numberDensityAtInnerRadius(double dens, std::string const &unit); void densitySlope(double ss); double densitySlope()const; void temperatureAtInnerRadius(double tt); double temperatureAtInnerRadius()const; void temperatureSlope(double ss); double temperatureSlope()const; void magnetizationParameter(double rr); double magnetizationParameter()const; public: using Generic::metric; virtual void metric(SmartPointer); virtual double operator()(double const coord[4]) ; virtual void radiativeQ(double Inu[], double Taunu[], double const nu_em[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]=NULL) const ; virtual void getVelocity(double const pos[4], double vel[4]) ; }; #endif Gyoto-2.0.2/include/GyotoStandardAstrobj.h000066400000000000000000000135571455254334400205430ustar00rootroot00000000000000/** * \file GyotoStandardAstrobj.h * \brief Astronomical objects defined bya a potential/distance * * Many geometrically thick objects can be defined by the value of a * function of the 4 coordinates, and their emission can often be * defined in terms of an emission law and of a transmission law. * * This is a base class for this standard case which simplifies a lot * writting new Astrobjs. */ /* Copyright 2011 Thibaut Paumard, Frederic Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoStandardAstrobj_H_ #define __GyotoStandardAstrobj_H_ #include #include #include #include #include "GyotoAstrobj.h" #include "GyotoFunctors.h" namespace Gyoto{ namespace Astrobj { class Standard; } } /** * \class Gyoto::Astrobj::Standard * \brief Astronomical objects defined bya a potential/distance * * Many geometrically thick objects can be defined by the value of a * function of the 4 coordinates, and their emission can often be * defined in terms of an emission law and of a transmission law. * * This is a base class for this standard case which simplifies a lot * writting new Astrobjs. * * It is either to implement a sub-class of Astrobj::Standard than a * sub-class of Astrobj::Generic. In particular, there is no need to * implement the Generic::Impact() function. Instead, one needs to * implement a few much simpler functions and most of the complex * ray-tracing algorithms and heuristics is implemented in * Standard::Impact(). It is recommended to read first the * introduction in the Gyoto::Astrobj namespace documentation. * * The geometrical shape of a Gyoto::Astrobj::Standard object is * yielded by a function of the 4 position vector. This function is * implemented as operator()(). The velocity field of the fluid is * implemented in the getVelocity() method. The emission(), * integrateEmission() and transmission() methods implement the * radiative transfer primitives for this object. Finally, you may * choose to reimplement processHitQuantities() and Impact(), but * this should not be necessary (that is the all point of the * Standard class). * * Like any other Astrobj::Generic sub-classes, an Astrobj::Standard * subclass should register an Astrobj::Subcontractor_t function using * the Astrobj::Register() function. See also \ref * writing_plugins_page . */ class Gyoto::Astrobj::Standard : public Gyoto::Astrobj::Generic, public Gyoto::Functor::Double_constDoubleArray { friend class Gyoto::SmartPointer; // Data : // ----- protected: double critical_value_; ///< See operator()(double const coord[4]) double safety_value_; ///< See operator()(double const coord[4]) double delta_inobj_; ///< Constant value of the integration step inside object, in units of the compact object's mass M // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; /** * kind_ = "Default", rmax_ = 0., rmax_set_ = 0. */ Standard(); ///< Default constructor. /** * kind_ = "Default", rmax_ = radmax, rmax_set_ = 1. */ Standard(double radmax); ///< Set rmax in constructor. /** * kind_ = kind, rmax_ = 0., rmax_set_ = 0. */ Standard(std::string kind); ///< Set kind in constructor. /** * Make a deep copy of an Astrobj::Standard instance */ Standard(const Standard& ) ; ///< Copy constructor. virtual ~Standard() ; ///< Destructor: does nothing. // Accessors // --------- public: virtual void safetyValue(double val) ; ///< Set Standard::safety_value_ virtual double safetyValue() const ; ///< Get Standard::safety_value_ /** * Get the constant integration step inside the astrobj * * \return delta_inobj_ in geometrical units */ double deltaInObj() const; ///< Get Generic::delta_inobj_ void deltaInObj(double val); ///< Set Generic::delta_inobj_ // Outputs // ------- public: virtual int Impact(Gyoto::Photon* ph, size_t index, Astrobj::Properties *data=NULL) ; /** * \brief Function defining the object interior * * A potential, distance, or whatever function such that * operator()(double const coord[4]) < Standard::critical_value_ if * and only if coord is inside the object. This function is used by * the default implmenetation of Impact(). If Impact() is * overloaded, it is not necessary to overload operator()(double * coord[4]). The default implementation throws an error. */ virtual double operator()(double const coord[4]) = 0; /** * \brief Fluid velocity field. * * Fill vel with the 4-vector velocity of the fluid at 4-position pos. * * \param[in] pos 4-position at which to compute velocity; * \param[out] vel 4-velocity at pos. */ virtual void getVelocity(double const pos[4], double vel[4]) = 0 ; /** * \brief Maximum δ inside object * * Gives the requested integration step δt (in * coordinate time t) between two neighboring points along a * portion of geodesic inside an astrobj; the current implementation * only considers a constant delta, equal to Standard::deltaInobj() * * \param coord input coordinate at which δt is given */ virtual double giveDelta(double coord[8]); }; #endif Gyoto-2.0.2/include/GyotoStar.h000066400000000000000000000143541455254334400163630ustar00rootroot00000000000000/** * \file GyotoStar.h * \brief Mass-less, spherical object following a timelike geodesic * * A Gyoto::Star evolves in a Gyoto::Metric following time-like * geodesics and is a Gyoto::Astrobj::Generic suitable for * ray-tracing. */ /* Copyright 2011, 2013 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoStar_H_ #define __GyotoStar_H_ namespace Gyoto{ namespace Astrobj { class Star; } } #include #include #include #include #include #ifdef GYOTO_USE_XERCES #include #endif #include /** * \class Gyoto::Astrobj::Star * \brief Mass-less, spherical object following a timelike geodesic * * Gyoto can compute the Star's orbit in a Gyoto::Metric and perform * ray-tracing on this target. The XML description of a Star looks * like: * \code * * * 0. * * 2. * 0. 0. 0.037037 * 600. 9. 1.5707999999999999741 0 * * 6000 * * * 0 * 0.1 * * * * \endcode * * Star supports exactly the union of the parameters supported by * Gyoto::Astrobj::UniformSphere and Gyoto::Worldline. * * The Metric element can be of any kind. This Metric sets the * coordinate system. * * The Star is a coordinate sphere of radius Radius in solid motion. * * Position sets the initial 4-coordinate of the centre of the * sphere. Velocity contains its initial 3-velocity (the time * derivatives of the 3 space coordinates). * * Like many Astrobj::Generic impementations, a Star can be * OpticallyThin or OpticallyThick. * * Spectrum and Opacity (if OpticallyThin) are the descriptions of two * Gyoto::Spectrum::Generic sub-classes. * */ class Gyoto::Astrobj::Star : public Gyoto::Astrobj::UniformSphere, public Gyoto::Worldline { friend class Gyoto::SmartPointer; // Data : // ----- private: SmartPointer spectrumThermalSynch_; // Thermal distribution synchrotron spectrum // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; /** * \brief Create Star object and set initial condition. * \param gg Gyoto::SmartPointer to the Gyoto::Metric in this part of the Universe * \param radius star radius * \param pos initial 4-position * \param v initial 3-velocity */ Star(SmartPointer gg, double radius, double const pos[4], double const v[3]) ; /** * Create Star object with undefined initial conditions. One needs to * set the coordinate system, the metric, and the initial position * and velocity before integrating the orbit. setInititialCondition() * can be used for that. */ Star(); ///< Default constructor Star(const Star& orig); ///< Copy constructor virtual Star * clone() const ; virtual ~Star() ; ///< Destructor // Accessors // --------- public: virtual std::string className() const ; ///< "Star" virtual std::string className_l() const ; ///< "star" virtual void metric(SmartPointer); virtual SmartPointer metric() const; /** * The mass of a Star is always 1. Stars do not perturb the * metric. The only relevant point is that Stars are massive * particules, their exact mass is of no importance. */ virtual double getMass() const ; ///< Return 1. public: using UniformSphere::rMax; virtual double rMax() ; // void setCoordSys(int); ///< Get coordinate system for integration // int getCoordSys(); ///< Set coordinate system for integration virtual void setInitialCondition(double const coord[8]); ///< Same as Worldline::setInitialCondition(gg, coord, sys,1) public: // Object / Property overloading for special needs: // Overload to interpret InitialCoordinate alias, and to interpret // Position/Velocity virtual int setParameter(std::string name, std::string content, std::string unit) ; #ifdef GYOTO_USE_XERCES // Overload to 1- get metric first and 2- interpret Position/Velocity virtual void setParameters(FactoryMessenger *fmp) ; // Overload to dispatch InitCoord into Position and Velocity // for massive particle virtual void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const ; #endif // Declare the wrappers around the Worldline accessors GYOTO_WORLDLINE; // Both base classes have deltaMax methods: we need to explicitly // use both using Gyoto::Worldline::deltaMax; using Gyoto::Astrobj::UniformSphere::deltaMax; public: /// Get the 6 Cartesian coordinates for specific dates. /** * This method is present in both the API of UniformSphere and * Worldline. It is pure virtual in UniformSphere. The Star * reimplementation is a trivial wrapper around * Worldline::getCartesian(). */ virtual void getCartesian(double const * const dates, size_t const n_dates, double * const x, double * const y, double * const z, double * const xprime=NULL, double * const yprime=NULL, double * const zprime=NULL) ; virtual void getVelocity(double const pos[4], double vel[4]) ; virtual void radiativeQ(double *Inu, double *Qnu, double *Unu, double *Vnu, Eigen::Matrix4d *Onu, double const *nuem , size_t nbnu, double dsem, state_t const &cph, double const *co) const; }; #endif Gyoto-2.0.2/include/GyotoStarTrace.h000066400000000000000000000111061455254334400173320ustar00rootroot00000000000000/** * \file GyotoStarTrace.h * \brief Like a Star that would be on all points of its orbit at all time * * A StarTrace is a Star that is considerred to be simultaneously on * all the points of its orbit at all time. The purpose is to * precompute quickly an integrated image that can later be used as a * mask to efficiently compute many images of the underlying Star at * varying observing dates. */ /* Copyright 2013-2015 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoStarTrace_H_ #define __GyotoStarTrace_H_ namespace Gyoto{ namespace Astrobj { class StarTrace; } } #include /** * \class Gyoto::Astrobj::StarTrace * \brief Like a Star that would be on all points of its orbit at all time * * StarTrace inherits all the members and methods from Star. It has * two additional members, tmin_ and tmax_, which specify the time * interval of the Star's orbit that is to be considerred illuminated. * * A StarTrace is not (necessarily) continuous: the Star is * considerred to be present at all the locations computed by xFill(), * meaning that if the integration step is large compared to radius_, * the object will be a collection of discrete blobs. To ensure * continuity, one should use a non-adaptive step and specify a * reasonable step. Computation is also faster in optically thick * mode. * * \code * * ... * 600 * 600 * * 1 * 1 * * \endcode * */ class Gyoto::Astrobj::StarTrace : public Gyoto::Astrobj::Star { friend class Gyoto::SmartPointer; // Data : // ----- protected: double tmin_; ///< Minimum date to consider on the underlying Star orbit double tmax_; ///< Maximum date to consider on the underlying Star orbit double * x_; ///< Cartesian x double * y_; ///< Cartesian y double * z_; ///< Cartesian z // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; /** * \brief Create Star object and set initial condition. * * \param gg Gyoto::SmartPointer to the Gyoto::Metric in this part of the Universe * \param radius star radius * \param pos initial 4-position * \param v initial 3-velocity */ StarTrace(SmartPointer gg, double radius, double const pos[4], double const v[3]) ; /** * Create Star object with undefined initial conditions. One needs to * set the coordinate system, the metric, and the initial position * and velocity before integrating the orbit. setInititialCondition() * can be used for that. */ StarTrace(); ///< Default constructor StarTrace(const StarTrace& orig); ///< Copy constructor /// Build StarTrace from Star StarTrace(const Star& o, double tmin, double tmax); virtual StarTrace * clone() const ; virtual ~StarTrace() ; ///< Destructor using Star::xAllocate; void xAllocate(size_t); void xAllocateXYZ(); ///< Allocate x_, y_, z_ using Star::xExpand; size_t xExpand(int); void computeXYZ(size_t i); ///< Compute (and cache) x_, y_ and z_ for one date void computeXYZ(); ///< Compute (and cache) x_, y_ and z_ using Star::setInitCoord; virtual void setInitCoord(const double coord[8], int dir = 0); using Generic::metric; virtual void metric(SmartPointer gg); virtual void xStore(size_t ind, state_t const &coord, double tau) ; // Accessors // --------- public: virtual std::string className() const ; ///< "StarTrace" virtual std::string className_l() const ; ///< "startrace" double TMin()const; ///< Get tmin_ void TMin(double); ///< Set tmin_ double TMax()const; ///< Get tmax_ void TMax(double); ///< Set tmax_ using Star::setInitialCondition; virtual void setInitialCondition(double const coord[8]); ///< Same as Worldline::setInitialCondition(gg, coord, sys,1) virtual double operator()(double const coord[4]) ; }; #endif Gyoto-2.0.2/include/GyotoThermalBremsstrahlungSpectrum.h000066400000000000000000000061401455254334400235040ustar00rootroot00000000000000/** * \file GyotoThermalBremsstrahlungSpectrum.h * \brief Thermal brems spectrum * */ /* Copyright 2014 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoThermalBremsstrahlungSpectrum_H_ #define __GyotoThermalBremsstrahlungSpectrum_H_ #include "GyotoSpectrum.h" #include namespace Gyoto { namespace Spectrum { class ThermalBremsstrahlung; } } /** * \class Gyoto::Spectrum::ThermalBremsstrahlung * \brief Thermal brems spectrum * * * Example XML entity: * \code * * * \endcode * */ class Gyoto::Spectrum::ThermalBremsstrahlung : public Gyoto::Spectrum::Generic { friend class Gyoto::SmartPointer; protected: SmartPointer spectrumBB_; ///< blackbody emission double T_; ///< Temperature double Tm1_; ///< 1/T double Tm05_; ///< 1/sqrt(T) double numberdensityCGS_; ///< Number density in CGS UNITS (careful) public: GYOTO_OBJECT; ThermalBremsstrahlung(); ThermalBremsstrahlung(const ThermalBremsstrahlung &); virtual ThermalBremsstrahlung * clone() const; ///< Cloner using Gyoto::Spectrum::Generic::operator(); /** * This function returns the optically thick Inu * which is not defined here, returns an error * * \param nu frequency in Hz */ virtual double operator()(double nu) const; /** * This function returns the optically thin increment * to intensity dI_nu = j_nu*ds*exp(-alpha_nu*ds) * in SI units * * \param nu frequency in Hz * \param ds length element in SI (careful to this) */ #ifndef GYOTO_SWIGIMPORTED virtual double operator()(double nu,double ,double ds) const; #endif // NB: the second argument, opacity in the Spectrum API // is useless here double temperature() const; void temperature(double tt); double numberdensityCGS() const; void numberdensityCGS(double rho); /** * Returns the emission coefficient j_nu in cgs units * i.e. erg cm^-3 s^-1 ster^-1 Hz^-1 * * \param nu frequency in Hz */ double jnuCGS(double nu) const; /** * Returns the absorption coefficient alpha_nu in cgs units [cm^-1] * * \param nu frequency in Hz */ double alphanuCGS(double nu) const; /** * Returns the emission and absorption coef jnu and alphanu in SI * */ void radiativeQ(double jnu[], // output double alphanu[], // output double const nu_ems[], size_t nbnu ); }; #endif Gyoto-2.0.2/include/GyotoThermalSynchrotronSpectrum.h000066400000000000000000000125671455254334400230460ustar00rootroot00000000000000/** * \file GyotoThermalSynchrotronSpectrum.h * \brief Thermal synchrotron spectrum * */ /* Copyright 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoThermalSynchrotronSpectrum_H_ #define __GyotoThermalSynchrotronSpectrum_H_ #include "GyotoSpectrum.h" #include namespace Gyoto { namespace Spectrum { class ThermalSynchrotron; } } /** * \class Gyoto::Spectrum::ThermalSynchrotron * \brief Thermal synchrotron spectrum * * * Example XML entity: * \code * * * \endcode * */ class Gyoto::Spectrum::ThermalSynchrotron : public Gyoto::Spectrum::Generic { friend class Gyoto::SmartPointer; protected: SmartPointer spectrumBB_; ///< blackbody emission double T_; ///< Temperature double numberdensityCGS_; ///< Number density in CGS UNITS (careful) double angle_B_pem_; ///< Angle between Bfield and emission direction (rad) double cyclotron_freq_; ///< Cyclotron frequency (e*B / 2*pi*me*c) bool angle_averaged_; ///< Boolean for angle averaging double bessel_K2_; ///< Bessel K2 function public: GYOTO_OBJECT; ThermalSynchrotron(); ThermalSynchrotron(const ThermalSynchrotron &); virtual ThermalSynchrotron * clone() const; ///< Cloner using Gyoto::Spectrum::Generic::operator(); /** * This function returns the optically thick Inu * which is not defined here, returns an error * * \param nu frequency in Hz */ virtual double operator()(double nu) const; /** * This function returns the optically thin increment * to intensity dI_nu = j_nu*ds*exp(-alpha_nu*ds) * in SI units * * \param nu frequency in Hz * \param ds length element in SI (careful to this) */ #ifndef GYOTO_SWIGIMPORTED virtual double operator()(double nu,double ,double ds) const; #endif // NB: the second argument, opacity in the Spectrum API // is useless here double temperature() const; void temperature(double tt); double numberdensityCGS() const; void numberdensityCGS(double rho); double angle_B_pem() const; void angle_B_pem(double rho); double cyclotron_freq() const; void cyclotron_freq(double rho); bool angle_averaged() const; void angle_averaged(bool ang); double besselK2() const; void besselK2(double bessel); /** * Returns the emission coefficient j_nu in cgs units * i.e. erg cm^-3 s^-1 ster^-1 Hz^-1 * * \param nu frequency in Hz */ double jnuCGS(double nu) const; /** * Returns the Stokes Q emission coefficient j_nu in cgs units * i.e. erg cm^-3 s^-1 ster^-1 Hz^-1 * * \param nu frequency in Hz */ double jQnuCGS(double nu) const; /** * Returns the Stokes U emission coefficient j_nu in cgs units * i.e. erg cm^-3 s^-1 ster^-1 Hz^-1 * * \param nu frequency in Hz */ double jUnuCGS(double nu) const; /** * Returns the Stokes V emission coefficient j_nu in cgs units * i.e. erg cm^-3 s^-1 ster^-1 Hz^-1 * * \param nu frequency in Hz */ double jVnuCGS(double nu) const; /** * Returns the absorption coefficient alpha_nu in cgs units [cm^-1] * * \param nu frequency in Hz */ double alphanuCGS(double nu) const; /** * Returns the Stokes Q absorption coefficient alpha_nu in cgs units [cm^-1] * * \param nu frequency in Hz */ double alphaQnuCGS(double nu) const; /** * Returns the Stokes U absorption coefficient alpha_nu in cgs units [cm^-1] * * \param nu frequency in Hz */ double alphaUnuCGS(double nu) const; /** * Returns the Stokes V absorption coefficient alpha_nu in cgs units [cm^-1] * * \param nu frequency in Hz */ double alphaVnuCGS(double nu) const; /** * Returns the Stokes Q Faraday rotation coefficient in cgs units [cm^-1] * * \param nu frequency in Hz */ double rQnuCGS(double nu) const; /** * Returns the Stokes U Faraday rotation coefficient in cgs units [cm^-1] * * \param nu frequency in Hz */ double rUnuCGS(double nu) const; /** * Returns the Stokes V Faraday rotation coefficient in cgs units [cm^-1] * * \param nu frequency in Hz */ double rVnuCGS(double nu) const; /** * Returns the emission and absorption coef in SI * */ void radiativeQ(double jnu[], // output double anu[], // output double const nu_ems[], size_t nbnu ) ; /** * Returns the emission, absorption and Fraday rotation coef in SI for the 4 Stokes parameters * */ void radiativeQ(double jInu[], double jQnu[], double jUnu[], double jVnu[], double aInu[], double aQnu[], double aUnu[], double aVnu[], double rQnu[], double rUnu[], double rVnu[], double const nu_ems[], size_t nbnu ); }; #endif Gyoto-2.0.2/include/GyotoThickDisk.h000066400000000000000000000115041455254334400173210ustar00rootroot00000000000000/** * \file GyotoThickDisk.h * \brief A thick accretion disk described by its * inner radius and the fwhm of the Gaussian factor affecting * the density out of the equatorial plane. * * Density is assumed to follow a r^{-2} law while temperature * is a power law with a specified slope. * * This astrobj emits thermal synchrotron. */ /* Copyright 2019 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoThickDisk_H_ #define __GyotoThickDisk_H_ #include #include #include namespace Gyoto{ namespace Astrobj { class ThickDisk; } } #include #include #include /** * \class Gyoto::Astrobj::ThickDisk * \brief A thick accretion disk described by its * inner radius and the fwhm of the Gaussian factor affecting * the density out of the equatorial plane. * * Density is assumed to follow a r^{-2} law while temperature * is a power law with a specified slope. * * This astrobj emits thermal synchrotron. */ class Gyoto::Astrobj::ThickDisk : public Astrobj::Standard, public Hook::Listener { friend class Gyoto::SmartPointer; private: SmartPointer spectrumThermalSynch_; double thickDiskInnerRadius_; ///< Inner disk radius in M units double thickDiskZGaussianSigma_; ///< Stdev of the Gaussian modulating the density along z in units of cylindrical radius bool use_selfabsorption_; ///< True if selfabs is used in radiative transfer double alpha_veloparam_; ///< alpha such that u^r = u^r_circ + (1-alpha)*(u^r_rad - u^r_circ) double beta_veloparam_; ///< beta such that Omega = Omega_circ + (1-beta)*(Omega_rad - Omega_circ) double numberDensityAtInnerRadius_cgs_; ///< electron nb density at inner radius (cgs) double temperatureAtInnerRadius_; ///< electron temperature at inner radius (K) double temperatureSlope_; ///< electron temperature \propto r^{-temperatureSlope_} double densitySlope_; ///< electron density \propto r^{-densitySlope_} double magnetizationParameter_; ///< Pmagn/(ne mp c2) std::string magneticConfig_; ///< Specify the magnetic field configuration for polarisation // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; ThickDisk(); ///< Standard constructor ThickDisk(const ThickDisk& ) ;///< Copy constructor virtual ThickDisk* clone () const; ///< Cloner virtual ~ThickDisk() ; ///< Destructor // Accessors // --------- public: void thickDiskInnerRadius(double hh); double thickDiskInnerRadius() const; void thickDiskZGaussianSigma(double sig); double thickDiskZGaussianSigma() const; void useSelfAbsorption(bool abs) ; bool useSelfAbsorption() const; void veloParam(std::vector const &v); std::vector veloParam() const; double numberDensityAtInnerRadius() const; double numberDensityAtInnerRadius(std::string const &unit) const; void numberDensityAtInnerRadius(double ne); void numberDensityAtInnerRadius(double dens, std::string const &unit); void temperatureAtInnerRadius(double tt); double temperatureAtInnerRadius()const; void temperatureSlope(double ss); double temperatureSlope()const; void densitySlope(double ss); double densitySlope()const; void magnetizationParameter(double rr); double magnetizationParameter()const; void magneticConfiguration(std::string config); std::string magneticConfiguration() const; public: using Generic::metric; virtual void metric(SmartPointer); virtual double operator()(double const coord[4]) ; virtual void radiativeQ(double Inu[], double Taunu[], double const nu_em[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]=NULL) const ; virtual void getVelocity(double const pos[4], double vel[4]) ; virtual void radiativeQ(double *Inu, double *Qnu, double *Unu, double *Vnu, Eigen::Matrix4d *Onu, double const *nuem , size_t nbnu, double dsem, state_t const &cph, double const *co) const; }; #endif Gyoto-2.0.2/include/GyotoThinDisk.h000066400000000000000000000120221455254334400171550ustar00rootroot00000000000000/** * \file GyotoThinDisk.h * \brief Geometrically thin disks and rings * * Gyoto::Astrobj::ThinDisk is a class to represent geometrically * thin, optically thick or thin disks or rings in the equatorial * plane of the object. It therefore assumes the metric has an * equatorial plane, which orresponds to z==0 in a Cartesian * coordinate system or to theta==M_PI/2 in a sperical coordinate * system. * * This calls is not abstract and can be used as is (it keeps the * very simplistic Generic::emission() and Generci::transmission()), * but it is also a base class to develop classes with more complex * emission laws. * */ /* Copyright 2011-2015 Thibaut Paumard, Frederic Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoThinDisk_H_ #define __GyotoThinDisk_H_ namespace Gyoto{ namespace Astrobj { class ThinDisk; } } #include #include #include #include #ifdef GYOTO_USE_XERCES #include #endif #include /** * \class Gyoto::Astrobj::ThinDisk * \brief Geometrically thin disks and rings \code rin_ rout_ \endcode * ThinDisk::setParameter() also takes care of calling * Generic::setParameter(). */ class Gyoto::Astrobj::ThinDisk : public Gyoto::Astrobj::Generic, public Gyoto::Functor::Double_constDoubleArray { friend class Gyoto::SmartPointer; // Data : // ----- protected: double rin_ ; ///< disk inner radius in geometrical units double rout_ ; ///< disk outer radius in geometrical units /** * Geometrical thickness in geometrical units. Used only in the * optically thin regime (flag_radtransf_==1). Should be << * rin_. Default: 1e-3. */ double thickness_; ///< disk thickness int dir_; ///< 1 for corotating (default), -1 for counterrotating. unsigned int velocitykind_; ///< tag for VelocityKind // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; /** * Create direct ThinDisk object. When initializing a derived class, * always set kind. */ ThinDisk(std::string kind="ThinDisk"); ///< Default constructor ThinDisk(const ThinDisk& orig); ///< Copy constructor virtual ThinDisk* clone () const ; virtual ~ThinDisk() ; ///< Destructor // Accessors // --------- public: virtual double innerRadius() const ; ///< Get rin_ virtual double innerRadius(std::string const &) const ; ///< Get rin_ virtual void innerRadius(double); ///< Set rin_ virtual void innerRadius(double, std::string const &); ///< Set rin_ virtual double outerRadius() const ; ///< Get rout_ virtual double outerRadius(std::string const &) const ; ///< Get rout_ virtual void outerRadius(double); ///< Set rout_ virtual void outerRadius(double, std::string const &); ///< Set rout_ virtual double thickness() const ; ///< Get thickness_ virtual double thickness(std::string const &) const ; ///< Get thickness_ virtual void thickness(double); ///< Set thickness_ virtual void thickness(double, std::string const&); ///< Set thickness_ virtual int dir() const ; ///< Get dir_ virtual void dir(int); ///< Set dir_ virtual bool corotating() const; /// Get dir_==1 virtual void corotating(bool t); /// Set dir_=t?1:-1 virtual std::string velocityKind() const ; ///< Get VelocityKind virtual void velocityKind(std::string const&); ///< Set VelocityKind /** * A function which changes sign on the equatorial plane. */ virtual double operator()(double const coord[]) ; ///< theta-pi/2 or z virtual double projectedRadius(double const coord[]) const ; ///< Projected radius of position coord on the equatorial plane virtual double sphericalPhi(double const coord[]) const; ///< Longitude /// Get fluid 4-velocity at point. /** * Fill vel with the 4-vector velocity of the fluid at 4-position * pos. getVelocity() should work at some distance from the * equatorial plane. The default implementation calls * Metric::Generic::circularVelocity(). * * \param[in] pos 4-position at which to compute velocity; * \param[out] vel 4-velocity at pos. */ virtual void getVelocity(double const pos[4], double vel[4]) ; public: virtual int Impact(Gyoto::Photon* ph, size_t index, Astrobj::Properties *data=NULL) ; }; #endif Gyoto-2.0.2/include/GyotoThinDiskGridIntensity.h000066400000000000000000000065471455254334400217110ustar00rootroot00000000000000/** * \file GyotoThinDiskGridIntensity.h * \brief A disk defined from a 2D grid in the equatorial plane * and extrapolated in the vertical direction with H/r<<1 */ /* Copyright 2019-2021 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoThinDiskGridIntensity_H_ #define __GyotoThinDiskGridIntensity_H_ #include #include #include namespace Gyoto{ namespace Astrobj { class ThinDiskGridIntensity; } class GridData2D; } #include #include /** * \class Gyoto::Astrobj::ThinDiskGridIntensity */ class Gyoto::Astrobj::ThinDiskGridIntensity : public Astrobj::ThinDisk, public GridData2D, public Hook::Listener { friend class Gyoto::SmartPointer; private: std::string filename_; ///< Optional FITS file name containing the arrays /** * An array of dimensionality double[nr_][nphi_][nt_]. In FITS * format, the first dimension is t, the second phi, and the third * r. */ double * intensity_; ///< Intensity (ν, r, φ) double * time_array_; /// 1D Vector containing the times values of each time steps (dt not constant) double deltat_;///< time translation public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; // Constructors - Destructor // ------------------------- ThinDiskGridIntensity(); ///< Standard constructor ThinDiskGridIntensity(const ThinDiskGridIntensity& ) ;///< Copy constructor virtual ThinDiskGridIntensity* clone () const; ///< Cloner virtual ~ThinDiskGridIntensity() ; ///< Destructor // Accessors // --------- public: void file(std::string const &f) ; std::string file() const; /* timeTranslation shifts the value of GridData2D::tmin_ and tmax_, allowing to scan the full simulation without having to change the value of the Screen observation time (which is typically not provided in M unit in the XML). Choosing a negative timeTranslation, i.e. performing tmin_,tmax_-=dt, amounts to increasing the Screen observation time by the same value, tobs+=dt. */ void timeTranslation_inMunit(double const dt) ; double timeTranslation_inMunit() const ; //void dt(double dd); void copyIntensity(double const *const intensity, size_t const naxes[3]); double const * getIntensity() const; void copyTimeArray(double const *const time_array, size_t const ntimes); double const * getTimeArray() const; public: using Generic::metric; std::vector fitsRead(std::string filename) ; virtual double emission(double nu_em, double dsem, state_t const &c_ph,double const c_obj[8]=NULL) const; virtual void getVelocity(double const pos[4], double vel[4]) ; }; #endif Gyoto-2.0.2/include/GyotoThinDiskIronLine.h000066400000000000000000000037371455254334400206320ustar00rootroot00000000000000/* Copyright 2013-2015, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ /** \file GyotoThinDiskIronLine.h */ #ifndef __GyotoThinDiskIronLine_h #define __GyotoThinDiskIronLine_h #include namespace Gyoto { namespace Astrobj { class ThinDiskIronLine; } } class Gyoto::Astrobj::ThinDiskIronLine : public Gyoto::Astrobj::ThinDisk { friend class Gyoto::SmartPointer; private: double plindex_; ///< power law index for line emission double linefreq_; ///< intrinsic line frequency (Hz) double cutradius_; ///< r emission = 0 public: GYOTO_OBJECT; ThinDiskIronLine(); ThinDiskIronLine(const ThinDiskIronLine &o); virtual ~ThinDiskIronLine(); virtual ThinDiskIronLine * clone() const ; using ThinDisk::emission; virtual double emission(double nu_em, double dsem, state_t const &c_ph, double const c_obj[8]=NULL) const; void getVelocity(double const pos[4], double vel[4]); // standard pairs of accessors GYOTO_OBJECT_ACCESSORS(double, PowerLawIndex); GYOTO_OBJECT_ACCESSORS(double, LineFreq); void LineFreq(double v, std::string const &u); double LineFreq(std::string const &u)const; GYOTO_OBJECT_ACCESSORS(double, CutRadius); void CutRadius(double v, std::string const &u); double CutRadius(std::string const &u)const; }; #endif Gyoto-2.0.2/include/GyotoThinDiskPL.h000066400000000000000000000045111455254334400174150ustar00rootroot00000000000000/** * \file GyotoThinDiskPL.h * \brief A subclass of ThinDisk emitting according to a powerlaw * * The target of ray-traced Gyoto::Photon */ /* Copyright 2012-2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoThinDiskPL_H_ #define __GyotoThinDiskPL_H_ #include #include #include namespace Gyoto{ namespace Astrobj { class ThinDiskPL; } } //#include #include #include /** * \class Gyoto::Astrobj::ThinDiskPL * \brief Geometrically thin disk with black-body emission * * Temperature varies with a power-law from the inner radius outwards: * * &T; = &T;0 (rcur/rinner)α * */ class Gyoto::Astrobj::ThinDiskPL : public Astrobj::ThinDisk { friend class Gyoto::SmartPointer; private: double slope_; ///< Power law index double Tinner_; ///< Reference temperature assumed at inner radius protected: SmartPointer spectrumBB_; ///< disk black body // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; ThinDiskPL(); ///< Standard constructor ThinDiskPL(const ThinDiskPL& ) ;///< Copy constructor virtual ThinDiskPL* clone () const; ///< Cloner virtual ~ThinDiskPL() ; ///< Destructor // Accessors // --------- public: void Slope(double); double Slope()const; void Tinner(double); double Tinner()const; public: using ThinDisk::emission; virtual double emission(double nu_em, double dsem, state_t const &c_ph,double const c_obj[8]=NULL) const; }; #endif Gyoto-2.0.2/include/GyotoThinDiskProfile.h000066400000000000000000000051341455254334400205040ustar00rootroot00000000000000/** * \file GyotoThinDiskProfile.h * \brief A subclass of ThinDisk emitting according to some specified profile * that should be hardcoded in emission() * * The target of ray-traced Gyoto::Photon */ /* Copyright 2020 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoThinDiskProfile_H_ #define __GyotoThinDiskProfile_H_ #include #include #include namespace Gyoto{ namespace Astrobj { class ThinDiskProfile; } } //#include #include /** * \class Gyoto::Astrobj::ThinDiskProfile * \brief A subclass of ThinDisk emitting according to some specified profile * that should be hardcoded in emission() * */ class Gyoto::Astrobj::ThinDiskProfile : public Astrobj::ThinDisk { friend class Gyoto::SmartPointer; private: double* model_param_; ///< A vector containing an arbitrary number of parameters necessary to compute the disk image bool circular_motion_; ///< True if motion is circular, else radial fall protected: // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; ThinDiskProfile(); ///< Standard constructor ThinDiskProfile(const ThinDiskProfile& ) ;///< Copy constructor virtual ThinDiskProfile* clone () const; ///< Cloner virtual ~ThinDiskProfile() ; ///< Destructor // Accessors // --------- public: bool circularMotion() const; void circularMotion(bool circ); void model_param(std::vector const &v); std::vector model_param() const; public: virtual double emission(double nu_em, double dsem, state_t const &c_ph,double const c_obj[8]=NULL) const; virtual void getVelocity(double const pos[4], double vel[4]); virtual void processHitQuantities(Photon* ph, state_t const &coord_ph_hit, double const *coord_obj_hit, double dt, Properties* data) const; }; #endif Gyoto-2.0.2/include/GyotoTorus.h000066400000000000000000000103541455254334400165620ustar00rootroot00000000000000/** * \file GyotoTorus.h * \brief A simple torus * */ /* Copyright 2011, 2018 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoTorus_H_ #define __GyotoTorus_H_ #include #include #include #include namespace Gyoto{ namespace Astrobj { class Torus; } } #include #include #include #include /** * \class Gyoto::Astrobj::Torus * \brief Optically thin or thick torus in circular rotation * * Any Metric::Generic is acceptable as long as it implements * Metric::Generic::circularVelocity(). */ class Gyoto::Astrobj::Torus : public Gyoto::Astrobj::Standard { friend class Gyoto::SmartPointer; // Data : // ----- protected: /** * Distance from the center of the coordinate system to the center * of the torus tube. The (square of the) radius of a vertical * cross-section is stored in critical_value_. */ double c_; ///< Large Radius SmartPointer spectrum_; ///< Emission law SmartPointer opacity_; ///< Absorption law SmartPointer spectrumThermalSynch_; // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; /** * kind_ = "Torus", c_ = 3.5, a_=0.5 */ Torus(); ///< Default constructor. Torus(const Torus& ) ; ///< Copy constructor. virtual Torus* clone() const; ///< "Virtual" copy constructor virtual ~Torus() ; ///< Destructor: does nothing. // Accessors // --------- public: /** * Get large radius Torus::c_ in geometrical units */ double largeRadius() const; /** * Get large radius Torus::c_ in specified unit */ double largeRadius(std::string unit) const; /** * Get small radius in geometrical units */ double smallRadius() const; /** * Get small radius in specified unit */ double smallRadius(std::string unit) const; /** * \brief Set large radius Torus::c_ */ void largeRadius(double c); /** * \brief Set small radius */ void smallRadius(double a); /** * \brief Set large radius Torus::c_ in specified unit */ void largeRadius(double c, std::string unit); /** * \brief Set small radius in specified unit */ void smallRadius(double a, std::string unit); /** * \brief Set Torus::spectrum_ */ virtual void spectrum(SmartPointer); /** * \brief Get Torus::spectrum_ */ virtual SmartPointer spectrum() const; /** * \brief Set Torus::opacity_ */ virtual void opacity(SmartPointer); /** * \brief Get Torus::opacity_ */ virtual SmartPointer opacity() const; using Standard::rMax; virtual double rMax(); // Outputs // ------- public: virtual double operator()(double const coord[4]) ; virtual double deltaMax(double*); protected: virtual void getVelocity(double const pos[4], double vel[4]) ; using Standard::emission; virtual double emission(double nu_em, double dsem, state_t const &coord_ph, double const coord_obj[8]=NULL) const ; using Standard::integrateEmission; virtual double integrateEmission(double nu1, double nu2, double dsem, state_t const &c_ph, double const c_obj[8]=NULL) const; virtual double transmission(double nuem, double dsem, state_t const &, double const *) const ; virtual void radiativeQ(double Inu[], double Taunu[], double const nu_em[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]=NULL) const ; }; #endif Gyoto-2.0.2/include/GyotoUniformSpectrometer.h000066400000000000000000000125071455254334400214640ustar00rootroot00000000000000/** * \file GyotoUniformSpectrometer.h * \brief Uniformly spaced spectrometers * * Spectral channels are contiguous and uniformly spaced in either * wavelength, frequency or log10 of * either. Gyoto::Spectrometer::Uniform is registered four times in * the factory: as kind="wave", "wavelog", "freq" and * "freqlog". Example XML entity: * \code * * 2.0 2.4 * * \endcode * * The content of the entity yields the band pass expressed in "unit" * or in log10(unit). * */ /* Copyright 2011-2013 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoUniformSpectrometer_H_ #define __GyotoUniformSpectrometer_H_ #include namespace Gyoto{ namespace Spectrometer { class Uniform; } } /** * \class Gyoto::Spectrometer::Uniform * \brief Uniformly spaced spectrometers * * Spectral channels are contiguous and uniformly spaced in either * wavelength, frequency or log10 of * either. Gyoto::Spectrometer::Uniform is registered four times in * the factory: as kind="wave", "wavelog", "freq" and * "freqlog". Example XML entity: * \code * * 2.0 2.4 * * \endcode * * The content of the entity yields the band pass expressed in "unit" * or in log10(unit). */ class Gyoto::Spectrometer::Uniform : public Gyoto::Spectrometer::Generic { friend class Gyoto::SmartPointer; protected: /** * \brief boundaries of the spectro. * * Depending on the kind, band_ is stored in Hz, log10(Hz), m or log10(m). */ double band_[2]; void reset_(); ///< Computes boundaries_, midpoints_ and widths_ public: GYOTO_OBJECT; Uniform() ; ///< Default constructor Uniform(size_t nsamples, double band_min, double band_max, kind_t kind); ///< Constructor setting everything Uniform(const Uniform& ) ; ///< Copy constructor Generic * clone() const; ///< Cloner virtual ~Uniform() ; ///< Destructor using Generic::kindid; void kindid(kind_t); /** * \brief Set Generic::kind_ from a std::string * * Generic::kind_ will actually be set to one of Uniform::WaveKind, * Uniform::WaveLogKind, Uniform::FreqKind or Uniform::FreqLogKind. * * \param name std::string, one of "wave", "wavelog", "freq" or * "freqlog" */ void kind(std::string const &name); std::string kind() const; using Generic::nSamples; /** * \brief Set Generic::nsamples_ */ void nSamples(size_t n); void band(std::vector const &nu); void band(std::vector const &nu, std::string const &unit); std::vectorband() const; std::vectorband(std::string const &unit) const; /** * \brief Set Uniform::band_ * * \param nu 2-element vector, in Hz, m, log10(Hz) or log10(m) * depending on Generic::kind_ */ void band(double nu[2]); /** * \brief Set the spectral band boundaries in specified unit * * If kind is not specified, member kind_ is used. Else kind_ is updated. * * unit is actually the unit for 10^nu for freqlog and wavelog. Defaults: * - kind==freq: nu in Hz * - kind==freqlog: 10^nu in Hz * - kind==wave: nu in meters * - kind==wavelog: 10^nu in meters * */ void band(double nu[2], std::string const &unit, std::string const &kind); void band(double nu[], std::string const &unit); double const * getBand() const ; ///< Get Uniform::band_ public: void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const; #ifdef GYOTO_USE_XERCES virtual void setParameters(FactoryMessenger *fmp); #endif /** * \brief "wave" * * Use this static member attribute to check whether a Spectrometer * object spectro is of this kind: * \code * if (spectro->kind() == Uniform::WaveKind) ... ; * \endcode * */ static kind_t const WaveKind; ///< "wave" /** * \brief "wavelog" * * Use this static member attribute to check whether a Spectrometer * object spectro is of this kind: * \code * if (spectro->kind() == Uniform::WaveLogKind) ... ; * \endcode * */ static kind_t const WaveLogKind; /** * \brief "freq" * * Use this static member attribute to check whether a Spectrometer * object spectro is of this kind: * \code * if (spectro->kind() == Uniform::FreqKind) ... ; * \endcode * */ static kind_t const FreqKind; /** * \brief "freqlog" * * Use this static member attribute to check whether a Spectrometer * object spectro is of this kind: * \code * if (spectro->kind() == Uniform::FreqLogKind) ... ; * \endcode * */ static kind_t const FreqLogKind; }; #endif Gyoto-2.0.2/include/GyotoUniformSphere.h000066400000000000000000000155471455254334400202450ustar00rootroot00000000000000/** * \file GyotoUniformSphere.h * \brief Optically thick or thin, spherical objects * * Gyoto::Astrobj::UniformSphere is an abstract type from which * uniform, spherical objects inherit (in particular, the * Gyoto::Astrobj::Star and Gyoto::Astrobj::FixedStar classes). * */ /* Copyright 2011-2014, 2018-2019 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoUniformSphere_H_ #define __GyotoUniformSphere_H_ namespace Gyoto{ namespace Astrobj { class UniformSphere; } } #include #include #include #ifdef GYOTO_USE_XERCES #include #endif #include /** * \class Gyoto::Astrobj::UniformSphere * \brief Optically thick or thin, spherical objects * * Gyoto::Astrobj::UniformSphere is an abstract type from which * uniform, spherical objects inherit (in particular, the * Gyoto::Astrobj::Star and Gyoto::Astrobj::FixedStar classes). * * These objects are coordinate-spherical: they comprise all the * points within a given radius from a centre. The distance is the * usual Euclidian distance in a Cartesian coordinate system which is * trivially determined by the coordinate system in which the Metric * is expressed. * * The sphere is in solid motion: all the points have the same * 4-velocity. The centre of the sphere may move. This motion and the * velocity are provided by the derived classes through the * getCartesian() and getVelocity() methods. * * The spheres can be optically thick or optically thin. In the * optically thin case, the opacity law provided as a Gyoto::Spectrum * also sets both the emissivity. Another Gyoto::Spectrum provides * the emission law of the source, which is uniform. * * Gyoto::Astrobj::UniformSphere::setParameters() take care of * interpreting the XML elements describing the parameters of the * sphere: * \code * value * parameters for this spectrum kind * parameters for this spectrum kind * * The following are numerical parameters mostly usefull when the * sphere is far from the compact object. Larger values speed up * computation but may miss the sphere. * 0.1 * 0.1 * \endcode * setGenericParameters() also takes care of calling * setParameter(). */ class Gyoto::Astrobj::UniformSphere : public Gyoto::Astrobj::Standard { friend class Gyoto::SmartPointer; // Data : // ----- protected: double radius_ ; ///< sphere radius [geometrical units] bool isotropic_; ///< if 1, then emission just returns 1 SmartPointer spectrum_; ///< sphere emission law SmartPointer opacity_; ///< if optically thin, opacity law double dltmor_; ///< see deltaMax(double*) double dltmod_; ///< see deltaMax(double*) // Constructors - Destructor // ------------------------- public: GYOTO_OBJECT; /** * Create UniformSphere object. * \param kind: specifi kind (e.g. "Star" or "FixedStar") * \param gg: Gyoto::SmartPointer to the Gyoto::Metric in this part of the Universe * \param radius: sphere radius */ UniformSphere(std::string kind, SmartPointer gg, double radius) ; ///< Standard constructor /** * Create UniformSphere object. Use metric(), radius(), * spectrum() and opacity() to set the members. * * \param kind: specify kind (e.g. "Star" or "FixedStar") */ UniformSphere(std::string kind); ///< Default constructor UniformSphere(const UniformSphere& orig); ///< Copy constructor virtual ~UniformSphere() ; ///< Destructor // Accessors // --------- public: virtual std::string className() const ; ///< "UniformSphere" virtual std::string className_l() const ; ///< "uniformsphere" virtual void spectrum(SmartPointer); ///< Set spectrum_ virtual SmartPointer spectrum() const; ///< Get spectrum_ virtual void opacity(SmartPointer); ///< Set opacity_ virtual SmartPointer opacity() const; ///< Get opacity_ double radius() const ; ///< Get radius_ in geometrical units virtual void radius(double); ///< Set radius_ in geometrical units double radius(std::string const &) const ; ///< Get radius_ in specified unit virtual void radius(double, std::string const &); ///< Set radius_ in specified unit double deltaMaxOverRadius() const ; ///< Get dltmor_ virtual void deltaMaxOverRadius(double f); ///< Set dltmor_ double deltaMaxOverDistance() const ; ///< Get dltmod_ virtual void deltaMaxOverDistance(double f); ///< Set dltmod_ bool isotropic() const; void isotropic(bool); double alpha() const ; void alpha(double); public: virtual double operator()(double const coord[4]) ; ///< Square distance to the center of the sphere ///< Ensure integration does not miss the object /** * \param[in] coord current photon position * \return max( #dltmor_*#radius_, #dltmod_*operator()(double coord[]) ) */ virtual double deltaMax(double*coord); protected: /** * If the coordinate system of the Metric object is spherical, use a * trivial conversion. */ virtual void getCartesian(double const * const dates, size_t const n_dates, double * const x, double * const y, double * const z, double * const xprime=NULL, double * const yprime=NULL, double * const zprime=NULL) =0; ///< Yield the Cartesian coordinates of the center of the sphere virtual void getVelocity(double const pos[4], double vel[4]) = 0; ///< Yield velocity of the center of the sphere. using Standard::emission; virtual double emission(double nu_em, double dsem, state_t const &cp, double const co[8]=NULL) const; ///< Emission is determined by spectrum_ and opacity_ using Standard::integrateEmission; virtual double integrateEmission(double nu1, double nu2, double dsem, state_t const &c_ph, double const *c_obj=NULL) const; virtual double transmission(double nuem, double dsem, state_t const &, double const *) const ; ///< Transmission is determined by opacity_ }; #endif Gyoto-2.0.2/include/GyotoUtils.h000066400000000000000000000111211455254334400165370ustar00rootroot00000000000000/** * \file GyotoUtils.h * \brief GYOTO utilities * * Various utilities */ /* Copyright 2011, 2016 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoUtils_H_ #define __GyotoUtils_H_ #include "GyotoDefs.h" #include #include namespace Gyoto { /// Set debug mode /** * \param mode 1 to turn on debug mode, 0 to turn it off. */ void debug(int mode); /// Get debug mode /** * \return >=1 if debug mode is on, else 0. */ int debug(); /// Set verbosity level /** * See standard verbosity levels defined in GyotoDefs.h: * * - GYOTO_DEFAULT_DEBUG_MODE * - GYOTO_QUIET_VERBOSITY * - GYOTO_SEVERE_VERBOSITY * - GYOTO_WARNING_VERBOSITY * - GYOTO_DEFAULT_VERBOSITY * - GYOTO_INFO_VERBOSITY * - GYOTO_DEBUG_VERBOSITY */ void verbose(int mode); /// Get verbosity level /** * See verbose(int mode). */ int verbose(); /// Convert lengths (deprecated) /** * \deprecated Will be removed once it is not used anymore in Gyoto * per se. Prefer Gyoto::Units framework. * * \param[in,out] x Lengths to convert, in geometrical units on * input, in specified unit on output. * \param[in] nelem Size of x array. * \param[in] mass_sun Black-hole mass in Solar masses. * \param[in] distance_kpc Distance from observer in kiloparsecs. * \param[in] unit One of "geometrical", "m", "km", "sun radius", * "rad", "degree", "arcmin", "arcsec", "mas", "uas". */ void convert(double * const x, const std::size_t nelem, const double mass_sun, const double distance_kpc, const std::string unit); /// Interpret C string as double /** * Wrapper around std::atof() that also interprets DBL_MIN, DBL_MAX, * -DBL_MIN and -DBL_MAX. * * If str starts with "(-)DBL_M" and is not one of the four special * values, then an error is thrown. * * \param[in] str C string to interpret * \return double valu represented by str. */ double atof(const char * str); /// Print help on class /** * \param[in] class_name e.g. "Gyoto::Screen", "Gyoto::Astrobj::Torus". */ void help(std::string class_name); /// Split string std::vector split(std::string const &src, std::string const &delim); /// Bessel function computation /* boost Bessel function as implemented in #include are 50% longer than the following, while the following give results accurate at ~1e-6 which is more than enough. */ double bessi0(double xx);///< Modified Bessel function I0 double bessi1(double xx);///< Modified Bessel function I1 double bessk0(double xx);///< Modified Bessel function K0 double bessk1(double xx);///< Modified Bessel function K1 double bessk(int nn, double xx);///< Modified Bessel function double hypergeom (double kappaIndex, double thetae); ///< Gauss hypergeometric 2F1 term for kappa-distribution synchrotron /// Tranform from Cartesian 3-position to spherical 3-position void cartesianToSpherical(double const cpos[3], double spos[3]); /// Tranform from spherical 3-position to Cartesian 3-position void sphericalToCartesian(double const spos[3], double cpos[3]); /// Invert 4x4 matrix /** * \param[in] IN_ARRAY2 the 4×4 matrix to invert * \param[out] ARGOUT_ARRAY2 the invert matrix of IN_ARRAY2 */ // Keep argument names for swig! void matrix4Invert(double ARGOUT_ARRAY2[4][4], double const IN_ARRAY2[4][4]); /// Invert 4x4 circular spacetime metric /** * A circular spacetime metric (in the right coordinate system) * - is symmetrical (like all metric matrices); * - has only 6 non-zero element: the diagonal and the corners. * * \param[in] IN_ARRAY2 the 4×4 matrix to invert * \param[out] ARGOUT_ARRAY2 the invert matrix of IN_ARRAY2 */ // Keep argument names for swig! void matrix4CircularInvert(double ARGOUT_ARRAY2[4][4], double const IN_ARRAY2[4][4]); } #endif Gyoto-2.0.2/include/GyotoValue.h000066400000000000000000000121131455254334400165150ustar00rootroot00000000000000/** * \file GyotoValue.h * \brief Introspectable value */ /* Copyright 2014 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoValue_H_ #define __GyotoValue_H_ #include "GyotoConfig.h" #include "GyotoSmartPointer.h" #include #include namespace Gyoto { class Value; namespace Metric {class Generic;} namespace Astrobj {class Generic;} namespace Spectrum {class Generic;} namespace Spectrometer {class Generic;} class Screen; } /// Container for the value of a Property /** * The Value class is very similar to the C union type (although not * as memory efficient): it can hold several type of values, but only * one at a time. Care must be taken to ensure only the member that * was set is retrieved. The purpose of the Value class is to be used * together with the Property class: code determines dynamicaly the * type of a Property, reads the corresponding value appropriateley * (e.g. from XML or from the Yorick prompt), stores the value in a * Value instance, and sets the Property using the Object::set() * method. Likewise, the Object::get() method returns a * Gyoto::Value. Property::type must be used to determine which member * of the Value is meaningful. * * Casting between Value and the various data type it can hold is * normally automatic, but the members can also be accessed * explicitly make code more easy to read and less ambiguous. */ class Gyoto::Value { public: /// Constructor Value(); /// Destructor ~Value(); /// Assignement operator Value& operator=(Value const&); /// Type of this instance int type; private: /// A double value double Double; public: /// Construct/cast from double Value(double); /// Cast to double operator double() const; private: /// A boolean value bool Bool; public: /// Construct/cast from boolean Value(bool); /// Cast to bool operator bool() const; private: /// A long value long Long; public: /// Construct/cast from long Value(long); /// Cast to long operator long() const; private: /// An unsigned long (a.k.a. size_t) unsigned long ULong; public: /// Construct/cast from unsigned long Value(unsigned long); /// Cast to unsigned long operator unsigned long() const; private: /// A size_t (only if distinct from unsigned long) size_t SizeT; public: #if !defined(GYOTO_SIZE__T_IS_UNSIGNED_LONG) /// Construct/cast from unsigned long Value(size_t); /// Cast to unsigned long operator size_t() const; #endif private: /// A string value std::string String; public: /// Construct/cast from string Value(std::string); /// Cast to string operator std::string() const; private: /// A vector of double values std::vector VDouble; public: /// Construct/cast from vector of doubles Value(std::vector); /// Cast to vector of doubles operator std::vector() const; private: /// A vector of unsigned long values std::vector VULong; public: /// Construct/cast from vector of unsigned long values Value(std::vector); /// Cast to vector of unsigned long values operator std::vector() const; private: /// A Metric object Gyoto::SmartPointer Metric; public: /// Cast from Metric object Value(Gyoto::SmartPointer); /// Cast to Metric object operator Gyoto::SmartPointer() const; private: /// An Astrobj Object Gyoto::SmartPointer Astrobj; public: /// Cast from Astrobj Value(Gyoto::SmartPointer); /// Cast to Astrobj operator Gyoto::SmartPointer() const; private: /// A Spectrum object Gyoto::SmartPointer Spectrum; public: /// Cast from Spectrum Value(Gyoto::SmartPointer); /// Cast to Spectrum operator Gyoto::SmartPointer() const; private: /// A Spectrometer object Gyoto::SmartPointer Spectrometer; public: /// Cast from Spectrometer Value(Gyoto::SmartPointer); /// Cast to Spectrometer operator Gyoto::SmartPointer() const; private: /// A Screen object Gyoto::SmartPointer Screen; public: /// Cast from Screen Value(Gyoto::SmartPointer); /// Cast to Screen operator Gyoto::SmartPointer() const; }; #endif Gyoto-2.0.2/include/GyotoWIP.h000066400000000000000000000030711455254334400161030ustar00rootroot00000000000000/** * \file GyotoWIP.h * \brief Work in progress class * * A lot of work in Gyoto is still in progress. When created, every * classe should be inherit from this class, untill considered stable * by the developpers. * */ /* Copyright 2014 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoWIP_H_ #define __GyotoWIP_H_ #include namespace Gyoto { class WIP; } /** * \class Gyoto::WIP * \brief Base class for work in progress * * The constructors of this class simply issue a warning that the * (derived) class is work in progress. */ class Gyoto::WIP { public: /// Issue a warning WIP(); /// Issue a warning specifying the name of the derived class /** * If classname is the empty string (""), the warning is not issued. * Use this to mark that a class is no more work in progress without * breaking the ABI (i.e. in the Gyoto stable branch). */ WIP(std::string classname); }; #endif Gyoto-2.0.2/include/GyotoWorldline.h000066400000000000000000001143761455254334400174160ustar00rootroot00000000000000/** * \file GyotoWorldline.h * \brief Timelike or null geodesics */ /* Copyright 2011-2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoWorldline_H_ #define __GyotoWorldline_H_ #include #include #include #include #include #ifdef GYOTO_HAVE_BOOST_INTEGRATORS # include # include # include #endif namespace Gyoto { class Worldline; class FactoryMessenger; } #include #include #include #include /// Define the bunch of Properties that make up the Worldline interface /** * This macro, which is called automatically by * GYOTO_WORLDLINE_PROPERTY_END(c, a), must be inserted in the * definition of the Property list for any class derived from * Worldline. */ #define GYOTO_WORLDLINE_PROPERTIES(c) \ Gyoto::Property("Gyoto::Worldline", "Time-like or null geodesic."), \ GYOTO_PROPERTY_BOOL(c, Integ31, Integ4D, _integ31, \ "Whether to integrate the 3+1 or 4D equation of geodesics.") \ GYOTO_PROPERTY_BOOL(c, HighOrderImages, PrimaryOnly, _secondary, \ "Whether to stop Photon integration at 180° deflection.") \ GYOTO_PROPERTY_BOOL(c, ParallelTransport, NoParallelTransport, _parallelTransport, \ "Whether to perform parallel transport of a local triad (used for polarization).") \ GYOTO_PROPERTY_DOUBLE(c, MaxCrossEqplane, _maxCrossEqplane, \ "Maximum number of crossings of the equatorial plane allowed for this worldline") \ GYOTO_PROPERTY_DOUBLE(c, RelTol, _relTol, \ "Relative tolerance for the adaptive step integrators.") \ GYOTO_PROPERTY_DOUBLE(c, AbsTol, _absTol, \ "Absolute tolerance for the adaptive step integrators.") \ GYOTO_PROPERTY_DOUBLE(c, DeltaMaxOverR, _deltaMaxOverR, \ "Maximum value of step/distance from center of mass.") \ GYOTO_PROPERTY_DOUBLE(c, DeltaMax, _deltaMax, "Maximum step (geometrical units).") \ GYOTO_PROPERTY_DOUBLE(c, DeltaMin, _deltaMin, "Minimum step (geometrical units).") \ GYOTO_PROPERTY_STRING(c, Integrator, _integrator, \ "Name of integrator (\"runge_kutta_fehlberg78\").") \ GYOTO_PROPERTY_SIZE_T(c, MaxIter, _maxiter, \ "Maximum number of integration steps.") \ GYOTO_PROPERTY_BOOL(c, Adaptive, NonAdaptive, _adaptive, \ "Whether to use an adaptive step.") \ GYOTO_PROPERTY_DOUBLE_UNIT(c, MinimumTime, _tMin, \ "Do not integrate earlier than this date (geometrical_time).") \ GYOTO_PROPERTY_DOUBLE_UNIT(c, Delta, _delta, \ "Initial integration step (geometrical units).") \ GYOTO_PROPERTY_VECTOR_DOUBLE(c, InitCoord, _initCoord, \ "Initial 8-coordinate.") \ GYOTO_PROPERTY_METRIC(c, Metric, _metric, \ "The geometry of space-time at this end of the Universe.") /// Define the wrapper accessors used in GYOTO_WORLDLINE_PROPERTIES(class) /** This macro, which is called automatically by GYOTO_WORLDLINE_PROPERTY_END(c, a), must be called once with the definition of the methods (.C file) of any class that derives from Worldline. The corresponding macro GYOTO_WORLDLINE must be called in the corresponding class declaration (.h file). This is made necessary by how multiple inheritence works: directly using the accessors in the Worldline API leads to segfault at runtime (unless too much extra care is taken) and may go unnoticed. These accessors must be declared in the class declaration using the GYOTO_WORLDLINE macro. */ #define GYOTO_WORLDLINE_ACCESSORS(c) \ void c::_integ31(bool s) {integ31(s);} \ bool c::_integ31() const {return integ31();} \ void c::_secondary(bool s) {secondary(s);} \ bool c::_secondary() const {return secondary();} \ void c::_parallelTransport(bool s) {parallelTransport(s);} \ bool c::_parallelTransport() const {return parallelTransport();} \ void c::_adaptive(bool s) {adaptive(s);} \ bool c::_adaptive() const {return adaptive();} \ void c::_maxCrossEqplane(double max){maxCrossEqplane(max);} \ double c::_maxCrossEqplane()const{return maxCrossEqplane();} \ void c::_relTol(double f){relTol(f);} \ double c::_relTol()const{return relTol();} \ void c::_absTol(double f){absTol(f);} \ double c::_absTol()const{return absTol();} \ void c::_deltaMin(double f){deltaMin(f);} \ double c::_deltaMin()const{return deltaMin();} \ void c::_deltaMax(double f){deltaMax(f);} \ double c::_deltaMax()const{return deltaMax();} \ void c::_deltaMaxOverR(double f){deltaMaxOverR(f);} \ double c::_deltaMaxOverR()const{return deltaMaxOverR();} \ void c::_delta(double f){delta(f);} \ double c::_delta()const{return delta();} \ void c::_delta(double f, std::string const &u){delta(f, u);} \ double c::_delta(std::string const &u)const{return delta(u);} \ void c::_tMin(double f){tMin(f);} \ double c::_tMin()const{return tMin();} \ void c::_tMin(double f, std::string const &u){tMin(f, u);} \ double c::_tMin(std::string const &u)const{return tMin(u);} \ void c::_maxiter(size_t f){maxiter(f);} \ size_t c::_maxiter()const{return maxiter();} \ void c::_integrator(std::string const &f){integrator(f);} \ std::string c::_integrator() const {return integrator();} \ std::vector c::_initCoord()const{return initCoord();} \ void c::_initCoord(std::vector const &f){initCoord(f);} \ void c::_metric(SmartPointerf){metric(f);} \ SmartPointer c::_metric() const{return metric();} /// Drop-in replacement for GYOTO_PROPERTY_END(), which adds the Worldline interface /** * This macro replaces GYOTO_PROPERTY_END(c, a) for classes that * derive from Worldline. It calls GYOTO_WORLDLINE_PROPERTIES(a) and * GYOTO_WORLDLINE_ACCESSORS(c). If this macro is used, * GYOTO_WORLDLINE must be called in the class declaration (.h file). */ #define GYOTO_WORLDLINE_PROPERTY_END(c, a) \ GYOTO_WORLDLINE_PROPERTIES(c) \ GYOTO_PROPERTY_END(c, a) \ GYOTO_WORLDLINE_ACCESSORS(c) /// Declare the Worldline interface wrappers /** This macro must be called in the class declaration (.h file), in a public section. Its sibling GYOTO_WORLDLINE_ACCESSORS(c) must be called with the class method definition (.C file). Note that GYOTO_WORLDLINE_PROPERTY_END(c, a) calls GYOTO_WORLDLINE_ACCESSORS(c). */ #define GYOTO_WORLDLINE \ void _delta(const double delta); \ void _delta(double, const std::string &unit); \ double _delta() const ; \ double _delta(const std::string &unit) const ; \ void _tMin(const double tmin); \ void _tMin(double, const std::string &unit); \ double _tMin() const ; \ double _tMin(const std::string &unit) const ; \ void _adaptive (bool mode) ; \ bool _adaptive () const ; \ void _secondary (bool sec) ; \ bool _secondary () const ; \ void _integ31 (bool sec) ; \ bool _integ31 () const ; \ void _parallelTransport (bool sec) ; \ bool _parallelTransport () const ; \ void _maxiter (size_t miter) ; \ size_t _maxiter () const ; \ void _integrator(std::string const & type); \ std::string _integrator() const ; \ double _deltaMin() const; \ void _deltaMin(double h1); \ void _absTol(double); \ double _absTol()const; \ void _maxCrossEqplane(double); \ double _maxCrossEqplane()const; \ void _relTol(double); \ double _relTol()const; \ void _deltaMax(double h1); \ double _deltaMax()const; \ double _deltaMaxOverR() const; \ void _deltaMaxOverR(double t); \ std::vector _initCoord()const; \ void _initCoord(std::vector const&f); \ void _metric(SmartPointer); \ SmartPointer _metric() const; /** * \class Gyoto::Worldline * \brief Timelike or null geodesics * * Their are two derived classes: Photon and Star. A Worldline can be * integrated from an initial condition either backward or forward in * time using xFill() (Photon::hit() also integrates the * Worldline). Member #state_ holds the integration state as well as * an integrator. There are several kinds of integration states, that * derive from IntegState::Generic. * * The coordinates of the Worldline are stored in #x0_, #x1_, #x2_, * #x3_, #x0dot_, #x1dot_, #x2dot_ ans #x3dot_. Those arrays are * extended as needed using xExpand(). These coordinates can be * retrieved using get_t(), get_xyz(), getCartesian(), getCoord() etc. * * Worldline does not derive from Object, and does not instantiate a * Property list. This is because this would lead to multiple * inheritance of the Object base in derived classes. Instead, * #GyotoWorldline.h provides a few macros that can be used to include * the Worldline properties in a derived classe's Property list: * - #GYOTO_WORLDLINE is to be used in a public section of the * derived class declaration (.h file); it declares wrappers * around the Worldline property accessors; * - #GYOTO_WORLDLINE_ACCESSORS is to be used with the class * definition (.C file; it defines the accessors declared by * #GYOTO_WORLDLINE; * - #GYOTO_WORLDLINE_PROPERTIES declares the Properties that use * these accessors. It must be used like * e.g. #GYOTO_PROPERTY_DOUBLE, between #GYOTO_PROPERTY_START andf * #GYOTO_PROPERTY_END. * - Finally, #GYOTO_WORLDLINE_PROPERTY_END is a drop-in replacement * for #GYOTO_PROPERTY_END that calls #GYOTO_WORLDLINE_PROPERTIES * and #GYOTO_WORLDLINE_ACCESSORS. * */ class Gyoto::Worldline : protected Gyoto::Hook::Listener { // Data : // ----- public: int stopcond; ///< Whether and why integration is finished protected: SmartPointer metric_ ; ///< The Gyoto::Metric in this part of the universe double* tau_; ///< proper time or affine parameter double* x0_;///< t or T double* x1_;///< r or x double* x2_;///< θ or y double* x3_;///< φ or z double* x0dot_;///< tdot or Tdot double* x1dot_;///< rdot or xdot double* x2dot_;///< θdot or ydot double* x3dot_;///< φdot or zdot double* ep0_;/// Coordinate of first base vector to parallel transport double* ep1_;/// Coordinate of first base vector to parallel transport double* ep2_;/// Coordinate of first base vector to parallel transport double* ep3_;/// Coordinate of first base vector to parallel transport double* et0_;/// Coordinate of Second base vector to parallel transport double* et1_;/// Coordinate of Second base vector to parallel transport double* et2_;/// Coordinate of Second base vector to parallel transport double* et3_;/// Coordinate of Second base vector to parallel transport size_t x_size_;///< Size of #x0_, #x1_... arrays size_t imin_;///< Minimum index for which #x0_, #x1_... have been computed size_t i0_; ///< Index of initial condition in array size_t imax_;///< Maximum index for which #x0_, #x1_... have been computed bool adaptive_; ///< Whether integration should use adaptive delta /** * \brief Experimental: choose 0 to compute only primary image * * This feature is in development. */ bool secondary_; /** * \brief Whether to parallel transport a local triad * * Typically used to trace the base in which the Stokes parameters * are expressed in the context of polarization. */ bool parallel_transport_; /** * \brief Initial integrating step * * Default: #GYOTO_DEFAULT_DELTA */ double delta_; /** * \brief Time limit for the integration (geometrical units) * * Computation does not go back before #tmin_. Default is -DBL_MAX. #tmin_ is * always expressed in geometrical units, it is essentially a tuning * parameter for the ray-tracing process. #tmin_ should be chosen to * always be longer than the distance between the screen and the * object. */ double tmin_; double * cst_; ///< Worldline's csts of motion (if any) size_t cst_n_; ///< Number of constants of motion int wait_pos_; ///< Hack in setParameters() double * init_vel_; ///< Hack in setParameters() size_t maxiter_ ; ///< Maximum number of iterations when integrating /** * \brief Minimum integration step for the adaptive integrator * * The default (#GYOTO_DEFAULT_DELTA_MIN) is usually fine. * * For IntegState::Legacy, set it in the Metric instead! */ double delta_min_; /** * \brief Maximum integration step for the adaptive integrator * * The default (#GYOTO_DEFAULT_DELTA_MAX) is usually fine. * * For IntegState::Legacy, set it in the Metric instead! */ double delta_max_; /** * \brief Numerical tuning parameter * * For IntegState::Legacy, set it in the Metric instead! * * Ensure that delta (the numerical integration step) is never * larger than a fraction of the distance between the current * location and the center of the coordinate system. * * The default (#GYOTO_DEFAULT_DELTA_MAX_OVER_R) is usually fine. */ double delta_max_over_r_; /** * \brief Absolute tolerance of the integrator * * Used by the adaptive integrators implemented in * IntegState::Boost. Refer to the boost::numeric::odeint * documentation for more details. */ double abstol_; /** * \brief Absolute tolerance of the integrator * * Used by the adaptive integrators implemented in * IntegState::Boost. Refer to the boost::numeric::odeint * documentation for more details. */ double reltol_; /** * \brief Maximum number of crossings of equatorial plane * * Used to determine how much higher-order image features * should be kept. */ double maxCrossEqplane_; // Constructors - Destructor // ------------------------- public: Worldline() ; ///< Default constructor Worldline(const Worldline& ) ; ///< Copy constructor /// Refine constructor /** * Meant to instantiate a copy of orig with a smaller step to refine * integration, for instance for more accurate radiative transfer * integration. * * See Photon::Photon(Photon* orig, size_t i0, int dir, double * step_max) and Photon::Refined. * * \param orig Worldline to refine * \param i0 Index of coordinate in orig to take as initial condition * \param dir Direction of integration * \param step_max Maximum integration step */ Worldline(Worldline* orig, size_t i0, int dir, double step_max) ; virtual ~Worldline() ; ///< Destructor size_t getImin() const; ///< Get #imin_ size_t getImax() const; ///< Get #imax_ size_t getI0() const; ///< Get #i0_ virtual double getMass() const = 0; ///< Get mass of particule. void metric(SmartPointer); ///< Set metric Smartpointer SmartPointer metric() const; ///< Get metric void initCoord(std::vector const&); std::vector initCoord() const; /** * \brief Set Initial coordinate * * Set #imin_=#imax_=#i0_, and x_[i0_]=coord[]. * * If dir==1, #i0_ is set to 0. If dir==-1, #i0_ is set to #x_size_-1. * * If dir==0 and the Worldine has never been computed (#i0_==0, * #imin_==1 and #imax_==0), then dir defaults to 1 for a massive * particle and -1 for a massless particle. * * If dir==0 and the Worldine has already been computed, #i0_ is not * changed. * * \param coord new initial coordinates * \param dir direction of integration. 1 for forward integration, * -1 for backards integration, 0 for unknown or both * \param Ephi initial value of base vector to parallel-transport. * Ignored if #parallel_transport_ is false. * \param Etheta initial value of base vector to parallel-transport. * Ignored if #parallel_transport_ is false. */ virtual void setInitCoord(const double coord[8], int dir, double const Ephi[4], double const Etheta[4]); /** * \brief Set Initial coordinate * * Set #imin_=#imax_=#i0_, and x_[i0_]=coord[]. * * If dir==1, #i0_ is set to 0. If dir==-1, #i0_ is set to #x_size_-1. * * If dir==0 and the Worldine has never been computed (#i0_==0, * #imin_==1 and #imax_==0), then dir defaults to 1 for a massive * particle and -1 for a massless particle. * * If dir==0 and the Worldine has already been computed, #i0_ is not * changed. * * \param coord new initial coordinates * \param dir direction of integration. 1 for forward integration, * -1 for backards integration, 0 for unknown or both */ virtual void setInitCoord(const double coord[8], int dir = 0); /** * \brief Set initial coordinate * * \param pos initial 4-position * \param vel initial 3-velocity * \param dir direction of integration */ virtual void setInitCoord(double const pos[4], double const vel[3], int dir=0); virtual void setPosition(double const pos[4]); ///< Set initial 4-position virtual void setVelocity(double const vel[3]); ///< Set initial 3-velocity void reset() ; ///< Forget integration, keeping initial contition void reInit() ; ///< Reset and recompute particle properties virtual std::string className() const ; ///< "Worldline" virtual std::string className_l() const ; ///< "worldline" /** * \brief Set the integrator * * Initialize #state_ to use the required integrator. * * \param[in] type Either "Legacy" or (if GYOTO_HAVE_BOOST_INTEGRATORS) one of * "runge_kutta_cash_karp54", * "runge_kutta_fehlberg78", "runge_kutta_dopri5", * "runge_kutta_cash_karp54_classic" */ void integrator(std::string const & type); /** * \brief Describe the integrator used by #state_ */ std::string integrator() const ; /** * \brief Set the integrator kind to 3+1 or 4D * * Initialize #state_ to use the required geodesic equation. * */ void integ31(bool integ); /** * \brief Get the kind of geodesic equation integrated by #state_ */ bool integ31() const ; /** * \brief Get #delta_min_ */ double deltaMin() const; /** * \brief Set #delta_min_ */ void deltaMin(double h1); /** * \brief Get #delta_max_ */ double deltaMax() const; void absTol(double); ///< Set #abstol_ double absTol()const; ///< Get #abstol_ void relTol(double); ///< Set #reltol_ double relTol()const; ///< Get #reltol_ void maxCrossEqplane(double); ///< Set #maxCrosEqplane_ double maxCrossEqplane()const; ///< Get #maxCrossEqplane_ /** * Get delta max at a given position * * \param[in] pos 4-position * \param[in] delta_max_external external constraint on delta_max * \return the smallest value between #delta_max_, * delta_max_external, and R*#delta_max_over_r_ where R is pos[1] in * spherical coordinates and max(x1, x2, x3) in Cartesian * coordinates. */ virtual double deltaMax(double const pos[8], double delta_max_external) const; /** * Set delta_max_ */ void deltaMax(double h1); double deltaMaxOverR() const; ///< Get #delta_max_over_r_ void deltaMaxOverR(double t); ///< Set #delta_max_over_r_ // Memory management // ----------------- protected: /** * The default size is #GYOTO_DEFAULT_X_SIZE */ virtual void xAllocate(); ///< Allocate x0, x1 etc. with default size /** * \param size : number of cells in each array x0, x1 etc. */ virtual void xAllocate(size_t size); ///< Allocate x0, x1 etc. with a specified size. /** * Double the size of arrays x0, x1 etc. and copy old version of the * array in the first half if dir =1 and in the second half if dir * =-1. * * \param dir : 1 to expand after last element, -1 to expand before * first element * * \return ind : if dir=1, new index of old last element, if dir=-1, * new index of old first element */ virtual size_t xExpand(int dir); ///< Expand x0, x1 etc... to hold more elements /** * If you need to expand more arrays than x0_ ... x3_ and the dots, * call this on your array before calling xExpand(int dir). * * \param[inout] x array to expand * \param[in] dir */ virtual void xExpand(double * &x, int dir); ///< Expand one array to hold more elements /** * Allocate memory for polarization vectors */ virtual void eAllocate (); ///< Allocate ep0_ ... et3_. /** * Deallocate memory for polarization vectors */ virtual void eDeallocate (); ///< Deallocate ep0_ ... et3_. /** * Call #xExpand(double * &x, int dir) on #ep0_, #ep1_ etc. */ virtual void eExpand(int dir); /// Expand memory slots for polarization vectors // Mutators / assignment // --------------------- public: /// Assignment to another Worldline void delta(const double delta); ///< Set #delta_ void delta(double, const std::string &unit); ///< Set #delta_ in specified units double delta() const ; ///< Get #delta_ double delta(const std::string &unit) const ; ///< Get #delta_ in specified units double tMin() const ; ///< Get #tmin_ double tMin(const std::string &unit) const ; ///< Get #tmin_ in specified unit void tMin(double tlim); ///< Set #tmin_ void tMin(double, const std::string &unit); ///< Set #tmin_ in specified unit void adaptive (bool mode) ; ///< Set #adaptive_ bool adaptive () const ; ///< Get #adaptive_ void secondary (bool sec) ; ///< Set #secondary_ bool secondary () const ; ///< Get #secondary_ void parallelTransport (bool pt) ; ///< Set #parallel_transport_ bool parallelTransport () const ; ///< Get #parallel_transport_ void maxiter (size_t miter) ; ///< Set #maxiter_ size_t maxiter () const ; ///< Get #maxiter_ /** * Return pointer to array holding the previously set * Metric-specific constants of motion. * * This function returns a pointer to the actual storage location * and should be handled with care. std::vector * Worldline:constantsOfMotion() const provides a convenient way to * retrieve a copy of the content. */ double const * getCst() const ; ///< Returns the worldline's cst of motion (if any) /// Set Metric-specific constants of motion /** * The will (re)allocate Worldline::cst_, copy cst into it, and set * Worldline::cst_n_. * * This is the same as void * Worldline:constantsOfMotion(std::vector const cstv) using * a C-style array instead of a vector. */ void setCst(double const * cst, size_t const ncsts) ; /// Set Metric-specific constants of motion /** * The will (re)allocate Worldline::cst_, copy cst into it, and set * Worldline::cst_n_. * * This is the same as getCst using a vector instead of a C-style array. */ void constantsOfMotion(std::vector const cstv) ; /// Return a copy of the Metric-specific constants of motion /** * This function return a copy of the constants of motion. getCst() * can be used to retrieve a pointer to the actual array used * internally which is slightly more efficient for read-only access. */ std::vector constantsOfMotion() const ; /// Set or re-set the initial condition prior to integration. /** * \param gg Gyoto::SmartPointer to the Gyoto::Metric in this universe; * \param coord 8 element array containing the initial condition, * i.e. the 4-position and the 4-velocity of the Photon at * the receiving end; * \param dir direction: 1 for future, -1 for past. * \param Ephi initial value of base vector to parallel-transport. * Ignored if #parallel_transport_ is false. * \param Etheta initial value of base vector to parallel-transport. * Ignored if #parallel_transport_ is false. */ void setInitialCondition(SmartPointer gg, const double coord[8], const int dir, double const Ephi[4], double const Etheta[4]) ; /// Set or re-set the initial condition prior to integration. /** * \param gg Gyoto::SmartPointer to the Gyoto::Metric in this universe; * \param coord 8 element array containing the initial condition, * i.e. the 4-position and the 4-velocity of the Photon at * the receiving end; * \param dir direction: 1 for future, -1 for past. */ void setInitialCondition(SmartPointer gg, const double coord[8], const int dir) ; /** * Depending on the size of dest and on the value of * #parallel_transport_, get position (xi_), velocity (xidot_) and * possibly other triad vectors (epi_ and eti_). */ void getInitialCoord(std::vector &dest) const; ///< Get initial coordinates + base vectors /** * Depending on the value of #parallel_transport_, get position * (xi_), velocity (xidot_) and possibly other triad vectors (epi_ * and eti_). coord is resized to the right number of elements. */ void getCoord(size_t index, Gyoto::state_t &dest) const; ///< Get coordinates+base vectors corresponding to index /** * We need this non-const implementation to allow the const, size_t * and the non-const, double implementations to coexist. */ void getCoord(size_t index, Gyoto::state_t &dest) ; ///< Get coordinates+base vectors corresponding to index /** * Depending on the value of #parallel_transport_, get position * (xi_), velocity (xidot_) and possibly other triad vectors (epi_ * and eti_). coord is resized to the right number of elements. */ void getCoord(double date, Gyoto::state_t &dest, bool proper=false); ///< Get coordinates+base vectors corresponding to date dest[0]. void getCartesianPos(size_t index, double dest[4]) const; ///< Get Cartesian expression of 4-position at index. virtual void xStore(size_t ind, state_t const &coord, double tau) ; ///< Store coord at index ind virtual void xStore(size_t ind, state_t const &coord) =delete; ///< Obsolete, update your code virtual void xStore(size_t ind, double const coord[8]) = delete; ///< Obsolete, update your code virtual void xFill(double tlim, bool proper=false) ; ///< Fill x0, x1... by integrating the Worldline from previously set inittial condition to time tlim // Accessors // --------- public: /** * \brief Get number of computed dates */ size_t get_nelements() const; /** * \brief Get computed dates */ void get_t(double *dest) const; /** * \brief Get computed proper times or values of the affine parameter */ void get_tau(double *dest) const; /// Get the 6 Cartesian coordinates for specific dates. /** * The 6 coordinates (x, y, z, dx/dt, dy/dt, dz/dt) will be computed * using the integrator and interpolated if necessary, so they will * be as accurate as possible. Transforming to Cartesian coordinates * is not necessarily meaningful. * * \param[in] dates List of dates for which the coordinates are to * be computed; * * \param[in] n_dates Number of dates to compute ; * * \param[out] x, y, z, xprime, yprime, zprime Arrays in which to * store the result. These pointer may be set to NULL to retrieve * only part of the information. Else, they must be pre-allocated. * */ void getCartesian(double const * const dates, size_t const n_dates, double * const x, double * const y, double * const z, double * const xprime=NULL, double * const yprime=NULL, double * const zprime=NULL) ; /** * \brief Get 3-position in cartesian coordinates for computed dates */ void get_xyz(double* x, double *y, double *z) const; /** * \brief Get 8-coordinates for specific dates. * * The coordinates will be * computed using the integrator, so they will be as accurate as * possible. Some heuristics are used to speed up the process and it * is presumably faster to call this routine with a sorted list of * dates. The line will be integrated further as required. An error * will be thrown if it is not possible to reach a certain date. * * \param[in] dates the list of dates for which the coordinates are to * be computed in proper time or affine parameter if * #proper is true or in coordinate time if #proper * is false (default); * \param[in] n_dates the number of dates to compute ; * \param[out] x1dest, x2dest, x3dest, x0dot, x1dot, x2dot, x3dot arrays * in which to store the result. These pointer may be * set to NULL to retrieve only part of the * information. They must be pre-allocated. * \param[out] ephi0, ephi1, ephi2, ephi3, etheta0, etheta1, * etheta2, etheta3 arrays in which to store the ephi * and etheta (parallel transport case). These pointer * may be set to NULL to retrieve only part of the * information. They must be pre-allocated. * \param[out] otime array in which to store the other time: * coordinate time if #proper, else proper time or * affine parameter. * \param[in] proper bool: whether #dates is proper time (or affine * parameter) or coordinate time. * */ void getCoord(double const * const dates, size_t const n_dates, double * const x1dest, double * const x2dest, double * const x3dest, double * const x0dot=NULL, double * const x1dot=NULL, double * const x2dot=NULL, double * const x3dot=NULL, double * ep0=NULL, double * ep1=NULL, double * ep2=NULL, double * ep3=NULL, double * et0=NULL, double * et1=NULL, double * et2=NULL, double * et3=NULL, double * otime=NULL, bool proper=false) ; /** * \brief Get all computed positions * * Get all the pre-computed 8 coordinates (e.g. thanks to a prior * call to xFill()) of this worldline. */ void getCoord(double *x0, double *x1, double *x2, double *x3) const ; /** * \brief Bring θ in [0,Π] and φ in [0,2Π] * * checkPhiTheta() Modifies coord if the corrdinates are spherical-like * so that coord[2]=theta is in [0,pi] and coord[3]=phi is in [0,2pi]. * Important to use in all astrobj in spherical coordinates * to prevent "z-axis problems". */ void checkPhiTheta(double coord[8]) const; /** * \brief Get computed positions in sky coordinates */ void getSkyPos(SmartPointer screen, double *dalpha, double *ddellta, double *dD) const; /** * \brief Get computed 4-velocities */ void get_dot(double *x0dot, double *x1dot, double *x2dot, double *x3dot) const ; /** * \brief Get computed 3-velocities */ void get_prime(double *x1prime, double *x2prime, double *x3prime) const ; // Outputs // ------- public: //virtual void sauve(FILE *) const ; ///< Save in a file void save_txyz(char * fichierxyz) const ; ///< Save in a file void save_txyz(char* const filename, double const t1, double const mass_sun, double const distance_kpc, std::string const unit, SmartPointer sc = NULL);///< Save, converted protected: virtual void tell(Gyoto::Hook::Teller*); class IntegState { public: class Generic; class Legacy; #ifdef GYOTO_HAVE_BOOST_INTEGRATORS class Boost; #endif }; /** * \brief An object to hold the integration state */ SmartPointer state_; }; #ifndef GYOTO_SWIGIMPORTED /** * \class Gyoto::Worldline::IntegState::Generic * \brief Current state of a geodesic integration */ class Gyoto::Worldline::IntegState::Generic : public SmartPointee { friend class Gyoto::SmartPointer; protected: /// Worldline that we are integrating. /** * Beware this is not a SmartPointer. Make sure line_ still exists * when calling nestStep(). */ Worldline * line_; // add 31 flag bool integ_31_; ///< Whether to integrate the 3+1 equation of geodesics instead of the 4D one. double delta_; ///< Integration step (current in case of #adaptive_). bool adaptive_; ///< Whether to use an adaptive step bool parallel_transport_; ///< Whether to parallel-transport base vectors double norm_; ///< Current norm of the 4-velocity. double normref_; ///< Initial norm of the 4-velocity. /// The Metric in this end of the Universe. /** * Taken from Worldline::line_, never updated. */ Gyoto::SmartPointer gg_; public: /** * \brief Normal constructor * * Sets #line_ */ Generic(Worldline *parent); /** * \brief Virtual destructor */ virtual ~Generic(); /** * \brief Deep copy * * Derived classes must implement it */ virtual Generic * clone(Worldline*newparent) const =0 ; /** * \param line The Worldline that we are integrating. Sets: * Worldline::line_, Worldline::gg_, Worldline::adaptive_. * \param coord Initial coordinate. * \param delta Integration step. Sign determines direction. */ virtual void init(Worldline * line, const state_t &coord, const double delta); /// Obsolete, update your code virtual void init(Worldline * line, const double *coord, const double delta) = delete; /** * \brief Cache whatever needs to be cached * * This is called by all the methods in Worldline each time an * member that could be cached in Worldline::state_ * changes. Therefore, user code should normally not have to call * it. */ virtual void init(); /** * \brief Check norm * * Issue a warning using #GYOTO_SEVERE if norm is * drifting. nextStep() implementations should call it. */ virtual void checkNorm(double coord[8]); /** * \brief Return the integrator kind */ virtual std::string kind()=0; /** * \brief Defines the kind of geodesic equation to integrate (3+1, 4D) */ void integ31(bool integ); bool integ31() const ; /// Make one step. /** * \param[out] coord Next position-velocity; * \param[out] tau Next proper time or affine parameter * \param[in] h1max maximum step in case of adaptive integration */ virtual int nextStep(state_t &coord, double &tau, double h1max=GYOTO_DEFAULT_DELTA_MAX)=0; /// Obsolete, update your code virtual int nextStep(double *coord, double h1max=GYOTO_DEFAULT_DELTA_MAX) = delete; /// Make one step of exactly this size. /** * doStep() is meant to refine a computation made using * nextStep(). In particular, there is no checking for norm * conservation. * * \param[in] coordin current position-velocity; * \param[in] step exact step to use. * \param[out] coordout next position-velocity; */ virtual void doStep(state_t const &coordin, double step, state_t &coordout)=0; /// Obsolete, update your code virtual void doStep(double const coordin[8], double step, double coordout[8]) = delete; }; /** * \class Gyoto::Worldline::IntegState::Legacy * \brief Obsolete: Home-brewed integrator * * Will be removed soon. * * The integrator used by this IntegState::Generic implementation is * actually implemented in Metric::Generic::myrk4_adaptive(). It does * not use most of the tuning parameters Worldline, it uses the * homonym parameters in Metric::Generic instead. to use this * integrator, pass "Legacy" to Worldline::integrator(std::string * type). */ class Gyoto::Worldline::IntegState::Legacy : public Generic { friend class Gyoto::SmartPointer; private: state_t coord_; ///< Previously determined coordinate. public: /// Constructor Legacy(Worldline *parent); Legacy * clone(Worldline*newparent) const ; using Generic::init; void init(Worldline * line, const state_t &coord, const double delta); virtual std::string kind(); virtual int nextStep(state_t &coord, double &tau, double h1max=1e6); virtual void doStep(state_t const &coordin, double step, state_t &coordout); virtual ~Legacy(); }; #ifdef GYOTO_HAVE_BOOST_INTEGRATORS /** * \class Gyoto::Worldline::IntegState::Boost * \brief Boost integrator * * This Worldline::IntegState::Generic implementation provides several * integrators from the boost::numeric::odeint library. To select it, * pass one of "runge_kutta_cash_karp54", "runge_kutta_fehlberg78", * "runge_kutta_dopri5", or "runge_kutta_cash_karp54_classic" to * Worldline::integrator(std::string type). */ class Gyoto::Worldline::IntegState::Boost : public Generic { friend class Gyoto::SmartPointer; public: /** * \brief Enum to represent the integrator flavour */ enum Kind {runge_kutta_cash_karp54, runge_kutta_fehlberg78, runge_kutta_dopri5, runge_kutta_cash_karp54_classic }; private: /// Integrator flavour Kind kind_; typedef std::function try_step_t; typedef std::function do_step_t; typedef std::function system_t; /// Stepper used by the adaptive-step integrator try_step_t try_step_; /// Stepper used by the non-adaptive-step integrator do_step_t do_step_; public: /// Constructor /** * Since this IntegState::Generic implementation can actually be * used to implement several distinct integrators, it is necessary * to specify which one is meant. */ Boost(Worldline* parent, std::string type); /// Constructor /** * Since this IntegState::Generic implementation can actually be * used to implement several distinct integrators, it is necessary * to specify which one is meant. */ Boost(Worldline* parent, Kind type); Boost * clone(Worldline* newparent) const ; virtual ~Boost(); virtual void init(); virtual void init(Worldline * line, const state_t &coord, const double delta); virtual int nextStep(state_t &coord, double &tau, double h1max=1e6); virtual void doStep(state_t const &coordin, double step, state_t &coordout); virtual std::string kind(); }; #endif /// GYOTO_HAVE_BOOST_INTEGRATORS #endif /// GYOTO_SWIGIMPORTED #endif Gyoto-2.0.2/include/GyotoXillverReflection.h000066400000000000000000000153431455254334400211110ustar00rootroot00000000000000/** * \file GyotoXillverReflection.h * \brief The illumination table specifies how the thin disk is * illuminated while the reflection table deduces from that * the reflected spectrum as computed by Javier Garcia's XILLVER code. * The metric is imposed to be Kerr for simplicity. * * The target of ray-traced Gyoto::Photon */ /* Copyright (c) 2017, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #ifndef __GyotoXillverReflection_H_ #define __GyotoXillverReflection_H_ #include namespace Gyoto{ namespace Astrobj { class XillverReflection; } } /** * \class Gyoto::Astrobj::XillverReflection * \brief The illumination table specifies how the thin disk is * illuminated while the reflection table deduces from that * the reflected spectrum as computed by Javier Garcia's XILLVER code. * */ class Gyoto::Astrobj::XillverReflection : public Astrobj::ThinDisk, public Hook::Listener { friend class Gyoto::SmartPointer; private: std::string filenameIllum_; ///< FITS file containing the illumination pattern std::string filenameRefl_; ///< FITS file containing the reflection pattern /** * An array of dimensionality double[nxi_][ni_][nnu_]. In FITS * format, the first dimension is nu, the second is incl (the emission angle), * and the third is log(ionization parameter). */ double * reflection_; double * logxi_; ///< log of ionization param double * incl_; ///< emission angle double * freq_; ///< frequencies vector size_t nnu_; ///< Number of frequencies size_t ni_; ///< Number of emission angles size_t nxi_; ///< Number of log(ionization param) double * illumination_; double * radius_; ///< radii at which illumination is known double * phi_; ///< azimuthal angle at which illumination is known size_t nr_; ///< numbar of radii size_t nphi_; ///< numbar of phi double aa_; ///< Spin of Kerr BH double lampradius_; ///< Coordinate radius at which the lamp is in Keplerian rotation double timelampphizero_; ///< Time at which lamp is at phi=0 bool average_over_angle_; ///< true to average over emission angle protected: public: GYOTO_OBJECT; // fillProperty is overridden to remove leading "!" from FITS filename void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const; XillverReflection(); ///< Standard constructor XillverReflection(const XillverReflection& o); ///< Copy constructor virtual XillverReflection * clone() const ; ///< Cloner virtual ~XillverReflection() ; ///< Destructor public: void timelampphizero(double tt); double timelampphizero() const; void lampradius(double rr); double lampradius() const; void fileillumination(std::string const &f); std::string fileillumination() const ; void filereflection(std::string const &f); std::string filereflection() const ; void averageOverAngle(bool t); bool averageOverAngle()const; #ifdef GYOTO_USE_CFITSIO /// Read parameters and arrays from FITS file virtual void fitsReadIllum(std::string filename); /// Write parameters and arrays to FITS file virtual void fitsWriteIllum(std::string filename); /// Read parameters and arrays from FITS file virtual void fitsReadRefl(std::string filename); /// Write parameters and arrays to FITS file virtual void fitsWriteRefl(std::string filename); #endif /** * The pointer is copied directly, not the array content. * * This is a low-level function. Beware that: * - previously allocated array will not be freed automatically; * - array attached when the destructor is called will be freed. */ void setIllumination(double * pattern); void setReflection(double * pattern); /** * XillverReflection::emission_ is freed if not NULL, * reallocated, and * pattern is copied into emission_. * * Finally, XillverReflection::nnu_, * XillverReflection::ni_, and * XillverReflection::nsg_ are set according to naxes. * * \param pattern Array to copy as emission_. May be NULL in which * case emission_ is simply deallocated and set to NULL. * * \param naxes { nnu_, ni_, nsg_ }. */ virtual void copyIllumination(double const * const pattern = NULL, size_t const naxes[2] = NULL); virtual double const * getIllumination() const; virtual void getIlluminationNaxes( size_t naxes[2] ) const ; ///< Get XillverReflection::nr_, XillverReflection::nphi_ virtual void copyReflection(double const * const pattern = NULL, size_t const naxes[3] = NULL); virtual double const * getReflection() const; virtual void getReflectionNaxes( size_t naxes[3] ) const ; ///< Get XillverReflection::nnu_, XillverReflection::ni_, XillverReflection::nxi_ virtual void copyGridReflLogxi(double const * const pattern = NULL, size_t nxi = 0 ); virtual double const * getGridReflLogxi() const; ///< Get XillverReflection::logxi_ virtual void copyGridReflIncl(double const * const pattern = NULL, size_t ni = 0 ); virtual double const * getGridReflIncl() const; ///< Get XillverReflection::incl_ virtual void copyGridReflFreq(double const * const pattern = NULL, size_t nnu = 0 ); virtual double const * getGridReflFreq() const; ///< Get XillverReflection::freq_ virtual void copyGridIllumRadius(double const * const pattern = NULL, size_t nr = 0 ); virtual double const * getGridIllumRadius() const; ///< Get XillverReflection::radius_ virtual void copyGridIllumPhi(double const * const pattern = NULL, size_t nphi = 0 ); virtual double const * getGridIllumPhi() const; ///< Get XillverReflection::phi_ protected: void getIndicesRefl(size_t i[3], double const co[4], double logxi, double incl, double nu=0.) const ; ///< Get reflection_ cell corresponding to position co[4] void getIndicesIllum(size_t i[3], double const co[4]) const ; ///< Get illumination_ cell corresponding to position co[4] public: virtual double emission(double nu_em, double dsem, state_t const &_ph, double const _obj[8]=NULL) const; virtual void updateSpin() ; virtual void tell(Gyoto::Hook::Teller *msg); using Generic::metric; virtual void metric(SmartPointer); }; #endif Gyoto-2.0.2/install-sh000077500000000000000000000332551455254334400146410ustar00rootroot00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2011-11-20.07; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # 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: Gyoto-2.0.2/lib/000077500000000000000000000000001455254334400133735ustar00rootroot00000000000000Gyoto-2.0.2/lib/Astrobj.C000066400000000000000000001761701455254334400151170ustar00rootroot00000000000000/* Copyright 2011-2016, 2018-2020 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ // GYOTO HEADERS #include "GyotoUtils.h" #include "GyotoAstrobj.h" #include "GyotoMetric.h" #include "GyotoPhoton.h" #include "GyotoRegister.h" #include "GyotoFactoryMessenger.h" #include "GyotoProperty.h" // SYSTEM HEADERS #include #include #include #include #include #include #include #include // NAMESPACES using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; using namespace Eigen; Register::Entry* Gyoto::Astrobj::Register_ = NULL; GYOTO_PROPERTY_START(Gyoto::Astrobj::Generic, "Whatever emits or absorbs light.") GYOTO_PROPERTY_METRIC(Generic, Metric, metric, "The geometry of space-time at this end of the Universe.") GYOTO_PROPERTY_DOUBLE_UNIT(Generic, RMax, rMax, "Maximum distance from the centre of mass (geometrical units).") GYOTO_PROPERTY_DOUBLE_UNIT(Generic, DeltaMaxInsideRMax, deltaMaxInsideRMax, "Maximum step for Photon integration inside RMax (geometrical units).") GYOTO_PROPERTY_BOOL(Generic, Redshift, NoRedshift, redshift, "Whether to take redshift into account.") GYOTO_PROPERTY_BOOL(Generic, ShowShadow, NoShowShadow, showshadow, "Whether to highlight the shadow region on the image.") GYOTO_PROPERTY_BOOL(Generic, OpticallyThin, OpticallyThick, opticallyThin, "Whether the object should be considered optically thin or thick.") GYOTO_PROPERTY_END(Generic, Object::properties) Generic::Generic(string kin) : SmartPointee(), Object(kin), __defaultfeatures(0), gg_(NULL), rmax_(DBL_MAX), deltamaxinsidermax_(1.), flag_radtransf_(0), noredshift_(0), shadow_(0) { #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; #endif } Generic::Generic() : SmartPointee(), Object("Default"), __defaultfeatures(0), gg_(NULL), rmax_(DBL_MAX), deltamaxinsidermax_(1.), flag_radtransf_(0), noredshift_(0), shadow_(0) { #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; #endif } Generic::Generic(double radmax) : SmartPointee(), Object("Default"), __defaultfeatures(0), gg_(NULL), rmax_(radmax), deltamaxinsidermax_(1.), flag_radtransf_(0), noredshift_(0), shadow_(0) { #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; #endif } Generic::Generic(const Generic& orig) : SmartPointee(orig), Object(orig), __defaultfeatures(orig.__defaultfeatures), gg_(NULL), rmax_(orig.rmax_), deltamaxinsidermax_(orig.deltamaxinsidermax_), flag_radtransf_(orig.flag_radtransf_), noredshift_(orig.noredshift_), shadow_(orig.shadow_) { #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; #endif if (orig.gg_()) { #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "orig had a metric, cloning"<< endl; #endif gg_=orig.gg_->clone(); } #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "done" << endl; #endif } Generic::~Generic() { #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; #endif } SmartPointer Generic::metric() const { return gg_; } void Generic::metric(SmartPointer gg) {gg_=gg;} double Generic::rMax() { return rmax_; } double Generic::rMax() const { return rmax_; } double Generic::rMax(string const &unit) { return Units::FromGeometrical(rMax(), unit, gg_); } double Generic::rMax(string const &unit) const { return Units::FromGeometrical(rMax(), unit, gg_); } void Generic::rMax(double val) { rmax_=val; } void Generic::rMax(double val, string const &unit) { rMax(Units::ToGeometrical(val, unit, gg_)); } double Generic::deltaMaxInsideRMax() const { return deltamaxinsidermax_; } double Generic::deltaMaxInsideRMax(string const &unit) const { return Units::FromGeometrical(deltaMaxInsideRMax(), unit, gg_); } void Generic::deltaMaxInsideRMax(double val) { deltamaxinsidermax_=val; } void Generic::deltaMaxInsideRMax(double val, string const &unit) { deltaMaxInsideRMax(Units::ToGeometrical(val, unit, gg_)); } #ifdef GYOTO_USE_XERCES void Generic::setParameters(FactoryMessenger *fmp) { if (fmp) metric(fmp->metric()); Object::setParameters(fmp); } #endif void Generic::opticallyThin(bool flag) {flag_radtransf_=flag;} bool Generic::opticallyThin() const {return flag_radtransf_;} void Generic::showshadow(bool flag) {shadow_=flag;} bool Generic::showshadow() const {return shadow_;} void Generic::redshift(bool flag) {noredshift_=!flag;} bool Generic::redshift() const {return !noredshift_;} void Generic::processHitQuantities(Photon * ph, state_t const &coord_ph_hit, double const * coord_obj_hit, double dt, Properties* data) const { #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; #endif // cout << "flagra= " << flag_radtransf_ << endl; /* NB: freqObs is the observer's frequency chosen in Screen::getRayCoord for the actual computation of the geodesic ; the physical value of nuobs will be used in spectrum computations by resorting to the xml specifications of the user (see below) ; this freqObs is used to transform the null worldline parameter dlambda (see below) */ double freqObs=ph->freqObs(); // this is a useless quantity, always 1 SmartPointer spr = ph -> spectrometer(); size_t nbnuobs = spr() ? spr -> nSamples() : 0 ; double const * const nuobs = nbnuobs ? spr -> getMidpoints() : NULL; double dlambda = dt/coord_ph_hit[4]; //dlambda = dt/tdot // cout << "freqObs="<ScalarProd(&coord_ph_hit[0],coord_obj_hit+4, &coord_ph_hit[4]);// / 1.; //this is nu_em/nu_obs // for nuobs=1. Hz if (noredshift_) ggredm1=1.; double ggred = 1./ggredm1; //this is nu_obs/nu_em double dsem = dlambda*ggredm1; // * 1Hz ? double inc =0.; if (data) { #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "data requested. " << "freqObs=" << freqObs << ", ggredm1=" << ggredm1 << ", ggred=" << ggred << endl; #endif if (data->redshift) { *data->redshift=ggred; #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(*data->redshift); #endif } if (data->time) { *data->time=coord_ph_hit[0]; #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(*data->time); #endif } if (data->impactcoords && data->impactcoords[0]==DBL_MAX) { if (coord_ph_hit.size() > 8) GYOTO_ERROR("ImpactCoords is incompatible with parallel transport"); memcpy(data->impactcoords, coord_obj_hit, 8 * sizeof(double)); memcpy(data->impactcoords+8, &coord_ph_hit[0], 8 * sizeof(double)); } #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "dlambda = (dt="<< dt << ")/(tdot="<< coord_ph_hit[4] << ") = " << dlambda << ", dsem=" << dsem << endl; #endif if (data->intensity) { /* Comment on intensity integration: Eq of radiative transfer used: dI_nu_em/ds_em = j_nu_em (assumes no absorption for simplicity) where : nu_em is measured by the emitter, ds_em is the proper length measured by the emitter corresponding to an increase dlambda of the parameter of the null worldline of the photon ; We have (see manual for demo) : ds_em = dlambda*nu_em BUT: dlambda is depending on the choice of freqObs (defined above) ; indeed we have: dlambda(freqObs) * freqObs = cst (i.e. independent of the choice of freqObs). Thus, for spectra computations where the observed frequency varies, we have to use the dlambda corresponding to the physical frequency chosen by the user, dlambda(nuobs), instead of dlambda(freqObs). The conversion is easy : dlambda(nuobs) = dlambda(freqObs)*freqObs/nuobs Thus: ds_em = dlambda(nuobs)*nu_em = dlambda(freqObs)*freqObs*ggredm1 Then, j_nu_em is computed by the emission() function of the Astrobj [NB: with rad. transfer emission() computes j_nu*dsem, without rad. transfer it computes I_nu, thus the result is always homogenous to intensity] Finally: I_nu_obs = I_nu_em*(nu_obs/nu_em)^3 */ //Intensity increment : GYOTO_DEBUG_EXPR(freqObs); GYOTO_DEBUG_EXPR(freqObs*ggredm1); inc = (emission(freqObs*ggredm1, dsem, coord_ph_hit, coord_obj_hit)) * (ph -> getTransmission(size_t(-1))) * ggred*ggred*ggred; // I_nu/nu^3 invariant #ifdef HAVE_UDUNITS if (data -> intensity_converter_) inc = (*data -> intensity_converter_)(inc); #endif *data->intensity += inc; #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "intensity +=" << *data->intensity << "= emission((dsem=" << dsem << "))=" << (emission(freqObs*ggredm1,dsem,coord_ph_hit, coord_obj_hit)) << ")*(ggred=" << ggred << ")^3*(transmission=" << (ph -> getTransmission(size_t(-1))) << ")" << endl; #endif } if (data->binspectrum) { size_t nbounds = spr-> getNBoundaries(); double const * const channels = spr -> getChannelBoundaries(); size_t const * const chaninds = spr -> getChannelIndices(); double * I = new double[nbnuobs]; double * boundaries = new double[nbounds]; for (size_t ii=0; ii getTransmission(ii) * ggred*ggred*ggred*ggred; #ifdef HAVE_UDUNITS if (data -> binspectrum_converter_) inc = (*data -> binspectrum_converter_)(inc); #endif data->binspectrum[ii*data->offset] += inc ; #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "nuobs[" << ii << "]="<< channels[ii] << ", nuem=" << boundaries[ii] << ", binspectrum[" << ii+data->offset << "]=" << data->binspectrum[ii*data->offset]<< endl; #endif if (!data->spectrum) // else it will be done in spectrum ph -> transmit(ii,transmission(nuobs[ii]*ggredm1,dsem,coord_ph_hit, coord_obj_hit)); } delete [] I; delete [] boundaries; } if (data->spectrum||data->stokesQ||data->stokesU||data->stokesV) { if (ph -> parallelTransport()) { // Compute polarization double * Inu = new double[nbnuobs]; double * Qnu = new double[nbnuobs]; double * Unu = new double[nbnuobs]; double * Vnu = new double[nbnuobs]; double * nuem = new double[nbnuobs]; Matrix4d * Onu = new Matrix4d[nbnuobs]; for (size_t ii=0; ii transfer(Inu, Qnu, Unu, Vnu, Onu); double ggred3 = ggred*ggred*ggred; for (size_t ii=0; ii spectrum) { inc = Inu[ii] * ggred3; #ifdef HAVE_UDUNITS if (data -> spectrum_converter_) inc = (*data -> spectrum_converter_)(inc); #endif data->spectrum[ii*data->offset] += inc; } if (data-> stokesQ) { inc = Qnu[ii] * ggred3; #ifdef HAVE_UDUNITS if (data -> spectrum_converter_) inc = (*data -> spectrum_converter_)(inc); #endif data->stokesQ [ii*data->offset] += inc; } if (data-> stokesU) { inc = Unu[ii] * ggred3; #ifdef HAVE_UDUNITS if (data -> spectrum_converter_) inc = (*data -> spectrum_converter_)(inc); #endif data->stokesU [ii*data->offset] += inc; } if (data-> stokesV) { inc = Vnu[ii] * ggred3; #ifdef HAVE_UDUNITS if (data -> spectrum_converter_) inc = (*data -> spectrum_converter_)(inc); #endif data->stokesV [ii*data->offset] += inc; } #if GYOTO_DEBUG_ENABLED { //double t=ph -> getTransmission(ii); Matrix4d mat=ph -> getTransmissionMatrix(ii); double t=mat(0,0); double o = t>0?-log(t):(-std::numeric_limits::infinity()); //cout << " r th I Q U V= " << coord_ph_hit[1] << " " << coord_ph_hit[2]*180./M_PI << " " << data->spectrum[ii*data->offset] << " " << data->stokesQ[ii*data->offset] << " " << data->stokesU[ii*data->offset] << " " << data->stokesV[ii*data->offset] << endl; GYOTO_DEBUG // cout << "rxyz= " << coord_ph_hit[1] << " " << coord_ph_hit[1]*sin(coord_ph_hit[2])*cos(coord_ph_hit[3]) << " " << coord_ph_hit[1]*sin(coord_ph_hit[2])*sin(coord_ph_hit[3]) << " " << coord_ph_hit[1]*cos(coord_ph_hit[2]) << " " << "DEBUG: Generic::processHitQuantities(): " << "nuobs[" << ii << "]="<< nuobs[ii] << ", nuem=" << nuem[ii] << ", dsem=" << dsem << ", Inu * GM/c2=" << Inu[ii] << ", spectrum[" << ii*data->offset << "]=" << data->spectrum[ii*data->offset] << ", sotkesQ[" << ii*data->offset << "]=" << data->stokesQ[ii*data->offset] << ", transmission=" << t << ", optical depth=" << o << ", redshift=" << ggred << ")\n" << endl; //cout << "I, Q, U obs= " << data->spectrum[ii*data->offset] << " " << data->stokesQ[ii*data->offset] << " " << data->stokesU[ii*data->offset]<< endl; } #endif } delete [] Inu; delete [] Qnu; delete [] Unu; delete [] Vnu; delete [] Onu; delete [] nuem; } else { // No polarization double * Inu = new double[nbnuobs]; double * Taunu = new double[nbnuobs]; double * nuem = new double[nbnuobs]; for (size_t ii=0; ii getTransmission(ii) * ggred*ggred*ggred; #ifdef HAVE_UDUNITS if (data -> spectrum_converter_) inc = (*data -> spectrum_converter_)(inc); #endif data->spectrum[ii*data->offset] += inc; ph -> transmit(ii,Taunu[ii]); #if GYOTO_DEBUG_ENABLED { double t = ph -> getTransmission(ii); double o = t>0?-log(t):(-std::numeric_limits::infinity()); GYOTO_DEBUG << "DEBUG: Generic::processHitQuantities(): " << "nuobs[" << ii << "]="<< nuobs[ii] << ", nuem=" << nuem[ii] << ", dsem=" << dsem << ", Inu * GM/c2=" << Inu[ii] << ", spectrum[" << ii*data->offset << "]=" << data->spectrum[ii*data->offset] << ", transmission=" << t << ", optical depth=" << o << ", redshift=" << ggred << ")\n" << endl; } #endif } delete [] Inu; delete [] Taunu; delete [] nuem; } } if (data->redshift||data->time||data->impactcoords||data->intensity||data->binspectrum){ /* update photon's transmission */ ph -> transmit(size_t(-1), transmission(freqObs*ggredm1, dsem,coord_ph_hit, coord_obj_hit)); } } else { #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "NO data requested!" << endl; #endif } } /* User code is free to provide any or none of the various versions of emission(), transmission() and radiativeQ(). The default implementations call one another to try and find user-provided code. In order to avoid infinite recursion as well as for efficiency, several of those methose set a flag in __defaultfeatures if they are called to inform the other methods. This is what each method will try: - polarized radiativeQ: + unpolarized radiativeQ; - unpolarized radiativeQ: + polarized radiativeQ; + emission(double*, ...) and transmission; - emission(double*, ...): + unpolarized radiativeQ; + polarized radiativeQ; + emission(double, ...); - emission(double, ...): + emission(double*, ...); + unpolarized radiativeQ; + fall back to uniform, unit emission; - transmission: + unpolarized radiativeQ; + fall-back to uniform, unit opacity. */ #define __default_radiativeQ_polar 1 #define __default_radiativeQ 2 #define __default_emission_vector 4 double Generic::transmission(double nuem, double dsem, state_t const &coord_ph, double const coord_obj[8]) const { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(flag_radtransf_); GYOTO_DEBUG_EXPR(__defaultfeatures); # endif //cout << (__defaultfeatures & __default_radiativeQ) << endl; //cout << (__defaultfeatures & __default_radiativeQ_polar) << endl; //cout << __defaultfeatures << "," << __default_radiativeQ << "," << __default_radiativeQ_polar << endl; if ((!(__defaultfeatures & __default_radiativeQ)) || (!(__defaultfeatures & __default_radiativeQ_polar))) { // We don't know (yet?) whether both radiativeQ are the default // implementations. Let's call the unpolarized version, which will // call the polarized version if the former is not reimplemented. double Inu, Taunu; radiativeQ(&Inu, &Taunu, &nuem, 1, dsem, coord_ph, coord_obj); return Taunu; // If radiativeQ is also the default implementation, it will set // __defaultfeatures and recurse back here } return double(flag_radtransf_); } double Generic::emission(double nuem, double dsem, state_t const &cph, double const *co) const { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(__defaultfeatures); # endif if (!(__defaultfeatures & __default_emission_vector)) { // We don't know (yet?) whether emission(double* ,...) is the // default implementation, let's call it double Inu; emission(&Inu, &nuem , 1, dsem, cph, co); return Inu; } else if ((!(__defaultfeatures & __default_radiativeQ)) || (!(__defaultfeatures & __default_radiativeQ_polar))) { // emission(double*, ...) is the default implementation, but // we don't know (yet?) about radiativeQ(); let's call it double Inu, Taunu; radiativeQ(&Inu, &Taunu, &nuem, 1, dsem, cph, co); return Inu; } // emission(double*, ...) and radiativeQ are the default // implementations: we are on our own. Fall-back to uniform // emission. # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(flag_radtransf_); # endif if (flag_radtransf_) return dsem; return 1.; } void Generic::emission(double * Inu, double const * nuem , size_t nbnu, double dsem, state_t const &cph, double const *co) const { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(__defaultfeatures); # endif // Inform emission(double, ...) that emission(double *, ...) is // the default implementation and that it should not recurse back const_cast(this)->__defaultfeatures |= __default_emission_vector; if (!(__defaultfeatures & __default_radiativeQ)) { // We don't know (yet?) whether unpolarized radiativeQ is the // default implementation, let's call it double * Taunu = new double[nbnu]; radiativeQ(Inu, Taunu, nuem, nbnu, dsem, cph, co); delete [] Taunu; // If radiativeQ is the default implementation, it will recurse // back here and we are going to skip to the next case below return; } else if (!(__defaultfeatures & __default_radiativeQ_polar)) { // We don't know (yet?) whether polarized radiativeQ is the // default implementation, let's call it double * Taunu = new double[nbnu]; double * Qnu = new double[nbnu]; double * Unu = new double[nbnu]; double * Vnu = new double[nbnu]; Matrix4d * Onu = new Matrix4d[nbnu]; double Chi=0; radiativeQ(Inu, Qnu, Unu, Vnu, Onu, nuem , nbnu, dsem, cph, co); // in all cases, clean up delete [] Qnu; delete [] Unu; delete [] Vnu; delete [] Taunu; delete [] Onu; return; } // If both radiativeQ() versions are the default implementations, // fall back to emission(double, ...) for (size_t i=0; i< nbnu; ++i) Inu[i]=emission(nuem[i], dsem, cph, co); } void Generic::radiativeQ(double * Inu, double * Taunu, double const * nuem , size_t nbnu, double dsem, state_t const &cph, double const *co) const { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(flag_radtransf_); # endif // Inform emission() and transmission() that radiativeQ is the // default implementation and that they should not recurse back here const_cast(this)->__defaultfeatures |= __default_radiativeQ; if (!(__defaultfeatures & __default_radiativeQ_polar)) { // We don't know (yet?) whether polarized radiativeQ is the // default implementation, let's call it double * Qnu = new double[nbnu]; double * Unu = new double[nbnu]; double * Vnu = new double[nbnu]; double * alphaInu = new double[nbnu]; Matrix4d * Onu = new Matrix4d[nbnu]; radiativeQ(Inu, Qnu, Unu, Vnu, Onu, nuem , nbnu, dsem, cph, co); if (!(__defaultfeatures & __default_radiativeQ_polar)) { for (size_t i=0; i(this)->__defaultfeatures |= __default_radiativeQ_polar; // Compute the output from the non-polarized radiativeQ(). double * Taunu = new double[nbnu]; double * alphaInu = new double[nbnu]; Matrix4d identity; identity << 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1; radiativeQ(Inu, Taunu, nuem, nbnu, dsem, cph, co); for (size_t i=0; i::infinity(); // Cause floatting point exception alphaInu[i] = 1.e300; // something very big } else alphaInu[i] = -log(Taunu[i])/(dsem*gg_->unitLength()); GYOTO_DEBUG_EXPR(alphaInu[i]); Onu[i]=identity*alphaInu[i]; //Default transmission matrix with all polarisation set to 0, MUST be reimplemented } delete [] Taunu; delete [] alphaInu; } Matrix4d Generic::Omatrix(double alphanu[4], double rnu[3], double Chi, double dsem) const{ return Omatrix(alphanu[0], alphanu[1], alphanu[2], alphanu[3], rnu[0], rnu[1], rnu[2], sin(2.*Chi), cos(2.*Chi), dsem); } Matrix4d Generic::Omatrix(double alphanu[4], double rnu[3], double sin2Chi, double cos2Chi, double dsem) const{ return Omatrix(alphanu[0], alphanu[1], alphanu[2], alphanu[3], rnu[0], rnu[1], rnu[2], sin2Chi, cos2Chi, dsem); } Matrix4d Generic::Omatrix(double alphaInu, double alphaQnu, double alphaUnu, double alphaVnu, double rQnu, double rUnu, double rVnu, double Chi, double dsem) const{ return Omatrix(alphaInu, alphaQnu, alphaUnu, alphaVnu, rQnu, rUnu, rVnu, sin(2.*Chi), cos(2.*Chi), dsem); } Matrix4d Generic::Omatrix(double alphaInu, double alphaQnu, double alphaUnu, double alphaVnu, double rQnu, double rUnu, double rVnu, double sin2Chi, double cos2Chi, double dsem) const{ /** Function which compute the O matrix (see RadiativeTransfertVadeMecum) which represent the exponential * of the Mueller Matrix containing the absorption and Faraday coefficients */ Matrix4d Onu; double alpha2, r2, lambda1, lambda2, Theta, sigma; double aI=alphaInu, aV=alphaVnu; double aQ=alphaQnu*cos2Chi-alphaUnu*sin2Chi; double aU=alphaUnu*cos2Chi+alphaQnu*sin2Chi; double rQ=rQnu*cos2Chi-rUnu*sin2Chi; double rU=rUnu*cos2Chi+rQnu*sin2Chi; double rV=rVnu; //aU*=-1.; rU*=-1.; // changing sign of Stokes U to comply with IAU sign convention, see Gyoto polar paper for details. alpha2 = aQ*aQ+aU*aU+aV*aV; r2 = rQ*rQ+rU*rU+rV*rV; lambda1 = pow(pow(pow(alpha2-r2,2.)/4.+pow(aQ*rQ+aU*rU+aV*rV,2.),0.5)+pow(alpha2-r2,1.)/2.,0.5); lambda2 = pow(pow(pow(alpha2-r2,2.)/4.+pow(aQ*rQ+aU*rU+aV*rV,2.),0.5)-pow(alpha2-r2,1.)/2.,0.5); Theta = pow(lambda1,2)+pow(lambda2,2); sigma = (aQ*rQ+aU*rU+aV*rV) < 0 ? -1. : 1.; GYOTO_DEBUG << "alphaS : " << aI << ", " << aQ << ", " << aU << ", " << aV << "\n" << "rhoS : " << rQ << ", " << rU << ", " << rV << "\n" << "alpha2 : " << alpha2 << "\n" << "r2 : " << r2 << "\n" << "lambda : " << lambda1 << ", " << lambda2 << "\n" << "Theta, sigma : " << Theta << ", " << sigma << "\n" << "dsem*gg_ : " << dsem*gg_->unitLength() << endl; double coshlb1=cosh(lambda1*dsem*gg_->unitLength()), sinhlb1=sinh(lambda1*dsem*gg_->unitLength()), coslb2=cos(lambda2*dsem*gg_->unitLength()), sinlb2=sin(lambda2*dsem*gg_->unitLength()); if (coshlb1==coshlb1+1. || sinhlb1==sinhlb1+1.) GYOTO_ERROR("In Omatrix : the cosh or sinh is infinite or NaN, at least one of the coefficient is to large/low !"); Matrix4d zero; zero << 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0; Matrix4d M1, M2, M3, M4; // Fill of M1 M1 = zero; for (int ii=0;ii<4;ii++){ M1(ii,ii)=1.; } //cout << "M1 :\n" << M1 << endl; // Fill of M2 M2 = zero; M2(0,1)=lambda2*aQ-sigma*lambda1*rQ; M2(0,2)=lambda2*aU-sigma*lambda1*rU; M2(0,3)=lambda2*aV-sigma*lambda1*rV; M2(1,0)=M2(0,1); M2(1,2)=sigma*lambda1*aV+lambda2*rV; M2(1,3)=-sigma*lambda1*aU-lambda2*rU; M2(2,0)=M2(0,2); M2(2,1)=-M2(1,2); M2(2,3)=sigma*lambda1*aQ+lambda2*rQ; M2(3,0)=M2(0,3); M2(3,1)=-M2(1,3); M2(3,2)=-M2(2,3); //cout << "M2 :\n" << M2 << endl; // Fill of M3 M3 = zero; M3(0,1)=lambda1*aQ+sigma*lambda2*rQ; M3(0,2)=lambda1*aU+sigma*lambda2*rU; M3(0,3)=lambda1*aV+sigma*lambda2*rV; M3(1,0)=M3(0,1); M3(1,2)=-sigma*lambda2*aV+lambda1*rV; M3(1,3)=sigma*lambda2*aU-lambda1*rU; M3(2,0)=M3(0,2); M3(2,1)=-M3(1,2); M3(2,3)=-sigma*lambda2*aQ+lambda1*rQ; M3(3,0)=M3(0,3); M3(3,1)=-M3(1,3); M3(3,2)=-M3(2,3); //cout << "M3 :\n" << M3 << endl; // Fill of M4 M4 = zero; M4(0,0)= (alpha2+r2)/2.; M4(0,1)=aV*rU-aU*rV; M4(0,2)=aQ*rV-aV*rQ; M4(0,3)=aU*rQ-aQ*rU; M4(1,0)=-M4(0,1); M4(1,1)=pow(aQ,2)+pow(rQ,2)-(alpha2+r2)/2.; M4(1,2)=aQ*aU+rQ*rU; M4(1,3)=aV*aQ+rV*rQ; M4(2,0)=-M4(0,2); M4(2,1)=M4(1,2); M4(2,2)=pow(aU,2)+pow(rU,2)-(alpha2+r2)/2.; M4(2,3)=aU*aV+rU*rV; M4(3,0)=-M4(0,3); M4(3,1)=M4(1,3); M4(3,2)=M4(2,3); M4(3,3)=pow(aV,2)+pow(rV,2)-(alpha2+r2)/2.; //cout << "M4 :\n" << M4 << endl; Theta = (Theta==0.)?1.:Theta; // Theta equal zero means all coefficients are zero thus the O matrix is Identity and Theta should be 1. // Filling O matrix, output Onu=exp(-aI*dsem*gg_->unitLength())*\ ((coshlb1+coslb2)*M1/2. \ -sinlb2*M2/Theta \ -sinhlb1*M3/Theta \ +(coshlb1-coslb2)*M4/Theta); return Onu; } Matrix4d Generic::Pmatrix(double alphaInu, double alphaQnu, double alphaUnu, double alphaVnu, double rQnu, double rUnu, double rVnu, double sin2Chi, double cos2Chi, double dsem) const{ /** Function which compute the O matrix (see RadiativeTransfertVadeMecum) which represent the exponential * of the Mueller Matrix containing the absorption and Faraday coefficients */ Matrix4d Pnu; double alpha2, r2, lambda1, lambda2, Theta, sigma; double aI=alphaInu, aV=alphaVnu; double aQ=alphaQnu*cos2Chi-alphaUnu*sin2Chi; double aU=alphaUnu*cos2Chi+alphaQnu*sin2Chi; double rQ=rQnu*cos2Chi-rUnu*sin2Chi; double rU=rUnu*cos2Chi+rQnu*sin2Chi; double rV=rVnu; //aU*=-1.; rU*=-1.; // changing sign of Stokes U to comply with IAU sign convention, see Gyoto polar paper for details. alpha2 = aQ*aQ+aU*aU+aV*aV; r2 = rQ*rQ+rU*rU+rV*rV; lambda1 = pow(pow(pow(alpha2-r2,2.)/4.+pow(aQ*rQ+aU*rU+aV*rV,2.),0.5)+pow(alpha2-r2,1.)/2.,0.5); lambda2 = pow(pow(pow(alpha2-r2,2.)/4.+pow(aQ*rQ+aU*rU+aV*rV,2.),0.5)-pow(alpha2-r2,1.)/2.,0.5); Theta = pow(lambda1,2)+pow(lambda2,2); sigma = (aQ*rQ+aU*rU+aV*rV) < 0 ? -1. : 1.; double f1=1./(aI*aI - lambda1*lambda1), f2=1./(aI*aI + lambda2*lambda2); GYOTO_DEBUG << "alphaS : " << aI << ", " << aQ << ", " << aU << ", " << aV << "\n" << "rhoS : " << rQ << ", " << rU << ", " << rV << "\n" << "alpha2 : " << alpha2 << "\n" << "r2 : " << r2 << "\n" << "lambda : " << lambda1 << ", " << lambda2 << "\n" << "Theta, sigma : " << Theta << ", " << sigma << "\n" << "dsem*gg_ : " << dsem*gg_->unitLength() << endl; double coshlb1=cosh(lambda1*dsem*gg_->unitLength()), sinhlb1=sinh(lambda1*dsem*gg_->unitLength()), coslb2=cos(lambda2*dsem*gg_->unitLength()), sinlb2=sin(lambda2*dsem*gg_->unitLength()); if (coshlb1==coshlb1+1. || sinhlb1==sinhlb1+1.) GYOTO_ERROR("In Omatrix : the cosh or sinh is infinite or NaN, at least one of the coefficient is to large/low !"); Matrix4d zero; zero << 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0; Matrix4d M1, M2, M3, M4; // Fill of M1 M1 = zero; for (int ii=0;ii<4;ii++){ M1(ii,ii)=1.; } //cout << "M1 :\n" << M1 << endl; // Fill of M2 M2 = zero; M2(0,1)=lambda2*aQ-sigma*lambda1*rQ; M2(0,2)=lambda2*aU-sigma*lambda1*rU; M2(0,3)=lambda2*aV-sigma*lambda1*rV; M2(1,0)=M2(0,1); M2(1,2)=sigma*lambda1*aV+lambda2*rV; M2(1,3)=-sigma*lambda1*aU-lambda2*rU; M2(2,0)=M2(0,2); M2(2,1)=-M2(1,2); M2(2,3)=sigma*lambda1*aQ+lambda2*rQ; M2(3,0)=M2(0,3); M2(3,1)=-M2(1,3); M2(3,2)=-M2(2,3); //cout << "M2 :\n" << M2 << endl; // Fill of M3 M3 = zero; M3(0,1)=lambda1*aQ+sigma*lambda2*rQ; M3(0,2)=lambda1*aU+sigma*lambda2*rU; M3(0,3)=lambda1*aV+sigma*lambda2*rV; M3(1,0)=M3(0,1); M3(1,2)=-sigma*lambda2*aV+lambda1*rV; M3(1,3)=sigma*lambda2*aU-lambda1*rU; M3(2,0)=M3(0,2); M3(2,1)=-M3(1,2); M3(2,3)=-sigma*lambda2*aQ+lambda1*rQ; M3(3,0)=M3(0,3); M3(3,1)=-M3(1,3); M3(3,2)=-M3(2,3); //cout << "M3 :\n" << M3 << endl; // Fill of M4 M4 = zero; M4(0,0)= (alpha2+r2)/2.; M4(0,1)=aV*rU-aU*rV; M4(0,2)=aQ*rV-aV*rQ; M4(0,3)=aU*rQ-aQ*rU; M4(1,0)=-M4(0,1); M4(1,1)=pow(aQ,2)+pow(rQ,2)-(alpha2+r2)/2.; M4(1,2)=aQ*aU+rQ*rU; M4(1,3)=aV*aQ+rV*rQ; M4(2,0)=-M4(0,2); M4(2,1)=M4(1,2); M4(2,2)=pow(aU,2)+pow(rU,2)-(alpha2+r2)/2.; M4(2,3)=aU*aV+rU*rV; M4(3,0)=-M4(0,3); M4(3,1)=M4(1,3); M4(3,2)=M4(2,3); M4(3,3)=pow(aV,2)+pow(rV,2)-(alpha2+r2)/2.; //cout << "M4 :\n" << M4 << endl; Theta = (Theta==0.)?1.:Theta; // Theta equal zero means all coefficients are zero thus the O matrix is Identity and Theta should be 1. // Filling O matrix, output Pnu=-lambda1*f1*M3/Theta +aI*f1/2.*(M1 + 2.*M4/Theta) -lambda2*f2*M2/Theta // typo in Monika's paper minus not plus +aI*f2/2.*(M1 - 2.*M4/Theta) -exp(-aI*dsem*gg_->unitLength())* ( (-lambda1*f1*M3/Theta + aI*f1/2.*(M1 + 2.*M4/Theta)) * coshlb1 +(-lambda2*f2*M2/Theta + aI*f2/2.*(M1 - 2.*M4/Theta)) * coslb2 +(-aI*f2*M2/Theta - lambda2*f2/2.*(M1 - 2.*M4/Theta)) * sinlb2 -(aI*f1*M3/Theta - lambda1*f1/2.*((M1 + 2.*M4/Theta))) * sinhlb1 ); return Pnu; } Vector4d Generic::rotateJs(double jInu, double jQnu, double jUnu, double jVnu, double Chi) const{ return rotateJs(jInu, jQnu, jUnu, jVnu, sin(2.*Chi), cos(2.*Chi)); } Vector4d Generic::rotateJs(double jInu, double jQnu, double jUnu, double jVnu, double sin2Chi, double cos2Chi) const{ Matrix4d rot; rot << 1., 0. , 0. , 0., 0., cos2Chi, -sin2Chi, 0., 0., sin2Chi, cos2Chi, 0., 0., 0. , 0. , 1.; // See RadiativeTransfertVadeMecum.pdf Vector4d jStokes; jStokes(0)=jInu; jStokes(1)=jQnu; jStokes(2)=jUnu; jStokes(3)=jVnu; jStokes = rot * jStokes; //jStokes(2)*=-1.; // changing sign of Stokes U to comply with IAU sign convention, see Gyoto polar paper for details. return jStokes; } double Generic::getChi(double const fourvect[4], state_t const &cph, double const vel[4], bool elec) const{ int locprint=0; // for debuging internally if (cph.size()!=16) GYOTO_ERROR("Impossible to compute the Chi angle without Ephi and Etheta !"); double Ephi[4]; double Etheta[4]; double photon_tgvec[4]; for (int ii=0;ii<4;ii++){ photon_tgvec[ii]=cph[ii+4]; // photon wave vector Ephi[ii]=cph[ii+8]; // polarization basis vector 1 Etheta[ii]=cph[ii+12]; // polarization basis vector 2 } //cout << "In Astrobj at r th ph= " << cph[1] << " " << cph[2] << " " << cph[3] << endl; // Check that wave vector, Ephi and Etheta are orthogonal: double test_tol=1e-3; if (fabs(gg_->ScalarProd(&cph[0],Ephi,Etheta))>test_tol or fabs(gg_->ScalarProd(&cph[0],Ephi,photon_tgvec))>test_tol or fabs(gg_->ScalarProd(&cph[0],Etheta,photon_tgvec))>test_tol or fabs(gg_->norm(&cph[0],Ephi)-1.)>test_tol or fabs(gg_->norm(&cph[0],Etheta)-1.)>test_tol){ //or fabs(gg_->ScalarProd(&cph[0],photon_tgvec,photon_tgvec))>test_tol){ cerr << "(Ephi.Etheta, Ephi.K, Etheta.K)= " << fabs(gg_->ScalarProd(&cph[0],Ephi,Etheta)) << " " << fabs(gg_->ScalarProd(&cph[0],Ephi,photon_tgvec)) << " " << fabs(gg_->ScalarProd(&cph[0],Etheta,photon_tgvec)) << "\n" << "(Ephi.Ephi, Etheta.Etheta, K.K)= " << fabs(gg_->norm(&cph[0],Ephi)) << " " << fabs(gg_->norm(&cph[0],Etheta)) << " " << fabs(gg_->ScalarProd(&cph[0],photon_tgvec,photon_tgvec)) << endl; //<< "K: " << photon_tgvec[0] << " " << photon_tgvec[1] << " " << photon_tgvec[2] << " " << photon_tgvec[3] << endl; throwError("Polarization basis is not properly parallel transported!\n Reduce the tolerance values of integration steps (relTol or absTol) or deltaMaxOverR."); } // *** Projection into the rest frame of the emitter *** /* *** PART ONE: WAVE VECTOR */ // NB: projectFourVect(pos, res, u) projects the initial res // orthogonally to u; so res is modified in the process. double photon_tgvec_orthu[4]; for (int ii=0;ii<4;ii++) photon_tgvec_orthu[ii] = photon_tgvec[ii]; // initialize. gg_->projectFourVect(&cph[0], photon_tgvec_orthu, vel); // project. // So from here on, // photon_tgvec_orthu contains the projection orthogonal to u of the // wave vector. // Normalizing this projection (which is not by default): double norm=gg_->norm(&cph[0],photon_tgvec_orthu); gg_->multiplyFourVect(photon_tgvec_orthu,1./norm); //cout << "kk: " << photon_tgvec[0] << " " << photon_tgvec[1] << " " << photon_tgvec[2] << " " << photon_tgvec[3] << endl; //cout << "KK: " << photon_tgvec_orthu[0] << " " << photon_tgvec_orthu[1] << " " << photon_tgvec_orthu[2] << " " << photon_tgvec_orthu[3] << endl; // For testing, Sch tetrad compo of photon tgvec (assumes rotating emitter). // Not needed except for tests. double gtt=gg_->gmunu(&cph[0],0,0), grr=gg_->gmunu(&cph[0],1,1), gthth=gg_->gmunu(&cph[0],2,2), gpp=gg_->gmunu(&cph[0],3,3), Kr_tetrad=sqrt(grr)*photon_tgvec_orthu[1], Kth_tetrad=sqrt(gthth)*photon_tgvec_orthu[2], Kp_tetrad=sqrt(-gtt*gpp)*(photon_tgvec_orthu[3]*vel[0] -photon_tgvec_orthu[0]*vel[3]); if (locprint==1) cout << "Tetrad K compo= " << Kr_tetrad << " " << Kth_tetrad << " " << Kp_tetrad << endl; /* ***PART TWO: FIELD VECTOR (could be B or E depending on elec) */ double Vectproj[4]; norm=gg_->norm(&cph[0],fourvect); //cout << "BB, norm: " << fourvect[0] << " " << fourvect[1] << " " << fourvect[2] << " " << fourvect[3] << " ---- " << norm << endl; if (norm<=test_tol) GYOTO_ERROR("norm of magnetic (or electric) vector is zero"); for (int ii=0;ii<4;ii++) Vectproj[ii] = fourvect[ii]/norm; // initialize (normalised) //cout << "Check normalization to u: " << fabs(gg_->ScalarProd(&cph[0],Vectproj,vel)) << endl; // Check if vector fourvect is already orthogonal to 4-velocity: if (fabs(gg_->ScalarProd(&cph[0],Vectproj,vel))>1e-6){ gg_->projectFourVect(&cph[0],Vectproj,vel); // Here we project the // magnetic 4vector orthogonal to u. // Normalize it: norm=gg_->norm(&cph[0],Vectproj); double gtt=gg_->gmunu(&cph[0],0,0), grr = gg_->gmunu(&cph[0],1,1), gthth = gg_->gmunu(&cph[0],2,2), gpp=gg_->gmunu(&cph[0],3,3); if (fabs(norm)<=test_tol){ cout << "norm, r, gtt, grr, gthth, gpp: " << norm << "," << cph[1] << "," << gtt << "," << grr << "," << gthth << "," << gpp << endl; GYOTO_ERROR("Magnetic field vector is null."); } gg_->multiplyFourVect(Vectproj,1./norm); } // Project fourvect orthogonally to K and normalize gg_->projectFourVect(&cph[0], Vectproj, photon_tgvec_orthu); // project. norm=gg_->norm(&cph[0],Vectproj); gg_->multiplyFourVect(Vectproj,1./norm); //cout << "Bproj= " << Vectproj[0] << " " << Vectproj[1] << " " << Vectproj[2] << " " << Vectproj[3] << endl; // For checking only: Sch tetrad compo of Vectproj: double Br_tetrad=sqrt(grr)*Vectproj[1], Bth_tetrad=sqrt(gthth)*Vectproj[2], Bp_tetrad=sqrt(-gtt*gpp)*(Vectproj[3]*vel[0]-Vectproj[0]*vel[3]); if (locprint==1) cout << "Tetrad B compo= " << Br_tetrad << " " << Bth_tetrad << " " << Bp_tetrad << endl; /* ***PART THREE: NORTH AND WEST SCREEN DIRECTIONS */ // Modify the polarization basis vectors by adding to them a multiple // of the wavevector, which does not affect the EVPA. // This allows to obtain a well-defined // orthonormal triad in the emitter's rest frame, see FV rad transfer // notes for details. // Formula: Ephi -> Ephi - (Ephi.u)/(k.u) k double Ephi_prime[4], tmp[4]; for (int ii=0;ii<4;ii++) { tmp[ii]=cph[ii+4]; Ephi_prime[ii]=Ephi[ii]; // initialize. } gg_->multiplyFourVect(tmp,-gg_->ScalarProd(&cph[0],Ephi,vel)/gg_->ScalarProd(&cph[0],tmp,vel)); // this is well // defined because the denominator cannot be zero, // it is the scalar prod of a timelike by a null vector gg_->addFourVect(Ephi_prime, tmp); // At this point, Ephi_prime lives in the rest frame // of the emitter and is orthogonal to photon_tgvec_orthu. // It is by construction a unit vector. if (fabs(gg_->ScalarProd(&cph[0],Ephi_prime,photon_tgvec_orthu))>test_tol or fabs(gg_->ScalarProd(&cph[0],Ephi_prime,vel))>test_tol or fabs(gg_->norm(&cph[0],Ephi_prime)-1.)>test_tol){ cerr << "Prod scal Ephi: " << gg_->ScalarProd(&cph[0],Ephi_prime,photon_tgvec_orthu) << " " << gg_->ScalarProd(&cph[0],Ephi_prime,vel) << " " << gg_->ScalarProd(&cph[0],Ephi_prime,Ephi_prime) << endl; throwError("Bad transformation of the polarization basis Ephi!"); } // For checking only: Sch tetrad compo of Ephi: double Ephi_r_tetrad=sqrt(grr)*Ephi_prime[1], Ephi_th_tetrad=sqrt(gthth)*Ephi_prime[2], Ephi_p_tetrad=sqrt(-gtt*gpp)*(Ephi_prime[3]*vel[0]-Ephi_prime[0]*vel[3]); if (locprint==1) cout << "Tetrad Ephi compo= " << Ephi_r_tetrad << " " << Ephi_th_tetrad << " " << Ephi_p_tetrad << endl; // Same game for the second polarization basis vector: double Etheta_prime[4]; for (int ii=0;ii<4;ii++){ tmp[ii]=cph[ii+4]; Etheta_prime[ii]=Etheta[ii]; // initialize. } //cout << "North: " << Etheta[0] << " " << Etheta[1] << " " << Etheta[2] << " " << Etheta[3] << endl; gg_->multiplyFourVect(tmp,-gg_->ScalarProd(&cph[0],Etheta,vel)/gg_->ScalarProd(&cph[0],tmp,vel)); gg_->addFourVect(Etheta_prime, tmp); //cout << "North prime: " << Etheta_prime[0] << " " << Etheta_prime[1] << " " << Etheta_prime[2] << " " << Etheta_prime[3] << endl; if (fabs(gg_->ScalarProd(&cph[0],Etheta_prime,photon_tgvec_orthu))>test_tol or fabs(gg_->ScalarProd(&cph[0],Etheta_prime,vel))>test_tol or fabs(gg_->ScalarProd(&cph[0],Etheta_prime,Ephi_prime))>test_tol or fabs(gg_->norm(&cph[0],Etheta_prime))-1.>test_tol or fabs(gg_->norm(&cph[0],photon_tgvec_orthu))-1.>test_tol){ cerr << "Prod scal Etheta: " << fabs(gg_->ScalarProd(&cph[0],Etheta_prime,photon_tgvec_orthu)) << " " << fabs(gg_->ScalarProd(&cph[0],Etheta_prime,vel)) << " " << fabs(gg_->ScalarProd(&cph[0],Etheta_prime,Ephi_prime)) << " " << fabs(gg_->norm(&cph[0],Etheta_prime)-1.) << " " << fabs(gg_->norm(&cph[0],photon_tgvec_orthu)-1.) << endl; throwError("Bad transformation of the polarization basis Etheta!"); } // For checking only: Sch tetrad compo of Etheta: double Etheta_r_tetrad=sqrt(grr)*Etheta_prime[1], Etheta_th_tetrad=sqrt(gthth)*Etheta_prime[2], Etheta_p_tetrad=sqrt(-gtt*gpp)*(Etheta_prime[3]*vel[0]-Etheta_prime[0]*vel[3]); if (locprint==1) cout << "Tetrad Etheta compo= " << Etheta_r_tetrad << " " << Etheta_th_tetrad << " " << Etheta_p_tetrad << endl; // So at this point, all vectors have been projected // in the rest frame of the emitter, orthogonal to its 4vel, // and we have a well-defined "observer's" orthonormal basis // (Ephi_prime, Etheta_prime, photon_tgvec_orthu). //cout << "Etheta (North): " << Etheta[0] << " " << Etheta[1] << " " << Etheta[2] << " " << Etheta[3] << endl; //cout << "Etheta prime (North): " << Etheta_prime[0] << " " << Etheta_prime[1] << " " << Etheta_prime[2] << " " << Etheta_prime[3] << endl; //cout << "Ephi (West): " << Ephi[0] << " " << Ephi[1] << " " << Ephi[2] << " " << Ephi[3] << endl; //cout << "Ephi prime (West): " << Ephi_prime[0] << " " << Ephi_prime[1] << " " << Ephi_prime[2] << " " << Ephi_prime[3] << endl; /* ***PART FOUR: POLAR ANGLE IN (NORTH,WEST) BASIS */ // Compute angles between Vectproj and North,West double Vectproj_North=gg_->ScalarProd(&cph[0],Vectproj,Etheta_prime), Vectproj_West=gg_->ScalarProd(&cph[0],Vectproj,Ephi_prime); //cout << "Brpoj.North, Vectproj.West= " << Vectproj_North << " " << Vectproj_West << endl; //cout << "Bproj: " << Vectproj[0] << " " << Vectproj[1] << " " << Vectproj[2] << " " << Vectproj[3] << endl; //cout << "North: " << Etheta_prime[0] << " " << Etheta_prime[1] << " " << Etheta_prime[2] << " " << Etheta_prime[3] << endl; // Angle East of North between North direction and Vectproj double EVPA=-atan2(Vectproj_West,Vectproj_North); if (!elec){ // fourvect is the magnetic field // Then EVPA is 90° between Vectproj and polar, + the angle above EVPA+=M_PI/2.; //cout << "EVPA in Astrobj= " << EVPA*180./M_PI << endl; } // EVPA defined modulo pi and should lie in [-pi/2, pi/2], but the angle // above is defined in [-pi/2,3pi/2] if (EVPA>M_PI/2.) EVPA -= M_PI; // For checking only: Define the polarization vector in tetrad formalism: double polar_vec[3]={Kth_tetrad*Bp_tetrad - Kp_tetrad*Bth_tetrad, -Kr_tetrad*Bp_tetrad+Kp_tetrad*Br_tetrad, Kr_tetrad*Bth_tetrad-Kth_tetrad*Br_tetrad}; if (locprint==1) cout << "polar vector = KxB= in triad "<< polar_vec[0] << " " << polar_vec[1] << " " << polar_vec[2] << endl; double polar_dot_North=polar_vec[0]*Etheta_r_tetrad + polar_vec[1]*Etheta_th_tetrad + polar_vec[2]*Etheta_p_tetrad, polar_dot_West = polar_vec[0]*Ephi_r_tetrad + polar_vec[1]*Ephi_th_tetrad + polar_vec[2]*Ephi_p_tetrad; //cout << "polar vec = " << polar_dot_North << "*North + " << polar_dot_West << "*West." << endl; double Vectproj_dot_North=Br_tetrad*Etheta_r_tetrad + Bth_tetrad*Etheta_th_tetrad + Bp_tetrad*Etheta_p_tetrad, Vectproj_dot_West = Br_tetrad*Ephi_r_tetrad + Bth_tetrad*Ephi_th_tetrad + Bp_tetrad*Ephi_p_tetrad; //cout << "Vectproj vec = " << Vectproj_dot_North << "*North + " << Vectproj_dot_West << "*West." << endl; if (EVPA!=EVPA) GYOTO_ERROR("In Astrobj::getChi(): EVPA is nan"); if (EVPA==EVPA+1.) GYOTO_ERROR("In Astrobj::getChi(): EVPA is infinite"); if (EVPA>M_PI/2. or EVPA<-M_PI/2.) GYOTO_ERROR("Bad domain for EVPA"); return EVPA; } void Generic::getSinCos2Chi(double const fourvect[4], state_t const &cph, double const vel[4], double* sin2Chi, double* cos2Chi, bool elec) const{ if (cph.size()!=16) GYOTO_ERROR("Ephi and Etheta not defined. Enable parallel transport or implement the non polarised case in polarised RadiativeQ (see example in SimplePolarStar.C) "); double Chi = getChi(fourvect, cph, vel, elec); *sin2Chi = sin(2.*Chi); *cos2Chi =cos(2.*Chi); } void Generic::computeB4vect(double B4vect[4], std::string const magneticConfig, double const co[8], state_t const &cph) const{ double rr, rcyl, theta, zz=0.; switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rr = cph[1]; rcyl = cph[1]*sin(cph[2]); theta = cph[2]; zz = cph[1]*cos(cph[2]); break; case GYOTO_COORDKIND_CARTESIAN: rcyl = pow(cph[1]*cph[1]+cph[2]*cph[2], 0.5); rr = sqrt(cph[1]*cph[1]+cph[2]*cph[2] +cph[3]*cph[3]); theta = acos(cph[3]/rr); zz = cph[3]; break; default: GYOTO_ERROR("In Astrobj::Generic::computeB4vect : Unknown coordinate system kind"); } double vel[4]; // 4-velocity of emitter for (int ii=0;ii<4;ii++){ vel[ii]=co[ii+4]; } //cout << "vel : " << vel[0] << "," << vel[1] << "," << vel[2] << "," << vel[3] << endl; /*********************/ /* GYOTO B FORMALISM */ /*********************/ // Define B by requiring: B.B=1 (we care only about B direction), // and B.u=0 (B defined in emitter's frame). double gtt = gg_->gmunu(&cph[0],0,0), grr = gg_->gmunu(&cph[0],1,1), gthth = gg_->gmunu(&cph[0],2,2), gtp = gg_->gmunu(&cph[0],0,3), gpp = gg_->gmunu(&cph[0],3,3); // So far only circular velocity case is implemented if (vel[2]>GYOTO_DEFAULT_ABSTOL) GYOTO_ERROR("mf config only defined for utheta=0"); if (magneticConfig=="Vertical"){ double Afact = vel[1]*sqrt(grr)/(vel[0]*gtt+vel[3]*gtp) * cos(theta), alphafact = sqrt(1./(1.+gtt*Afact*Afact)); double Bt = -alphafact*Afact, Br = alphafact*cos(cph[2])/sqrt(grr), // cos(cph[2])/sqrt(grr) Bth = -alphafact*sin(cph[2])/sqrt(gthth); // -sin([2])/sqrt(gthth) --> along +ez B4vect[0]=Bt; B4vect[1]=Br; B4vect[2]=Bth; B4vect[3]=0.; }else if(magneticConfig=="Radial"){ double Afact = vel[1]*sqrt(grr)/(vel[0]*gtt+vel[3]*gtp), alphafact = sqrt(1./(1.+gtt*Afact*Afact)); double Bt = -alphafact*Afact, Br = alphafact/sqrt(grr); // along +er B4vect[0]=Bt; B4vect[1]=Br; B4vect[2]=0.; B4vect[3]=0.; }else if(magneticConfig=="Toroidal"){ // Only case where a bit of computation is needed // Let B=(Bt,0,0,Bp), write B.B=1 and B.u=0, and find: if (vel[0]==0.) GYOTO_ERROR("Undefined 4-velocity for toroidal mf"); double omega=vel[3]/vel[0], omega2 = omega*omega; double Afact = (gtp + omega*gpp)/(gtt+omega*gtp); double Bp2 = 1./(Afact*Afact*gtt - 2*gtp*Afact + gpp); if (Bp2<0.) GYOTO_ERROR("Bad configuration for toroidal mf"); double Bp = sqrt(Bp2); double Bt = -Bp*Afact; B4vect[0]=Bt; B4vect[1]=0.; B4vect[2]=0.; B4vect[3]=Bp; }else{ GYOTO_ERROR("Not implemented Bfield orientation"); } return; } void Generic::computeB4vect_ipole(double B4vect[4], std::string const magneticConfig, double const co[8], state_t const &cph, double spin) const{ double rr, rcyl, theta, zz=0.; switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rr = cph[1]; rcyl = cph[1]*sin(cph[2]); theta = cph[2]; zz = cph[1]*cos(cph[2]); break; case GYOTO_COORDKIND_CARTESIAN: rcyl = pow(cph[1]*cph[1]+cph[2]*cph[2], 0.5); rr = sqrt(cph[1]*cph[1]+cph[2]*cph[2] +cph[3]*cph[3]); theta = acos(cph[3]/rr); zz = cph[3]; break; default: GYOTO_ERROR("In Astrobj::Generic::computeB4vect_ipole : Unknown coordinate system kind"); } double vel[4]; // 4-velocity of emitter for (int ii=0;ii<4;ii++){ vel[ii]=co[ii+4]; } /*********************/ /* IPOLE B FORMALISM */ /*********************/ double B_1=0.,B_2=0.,B_3=0; double gtt = gg_->gmunu(&cph[0],0,0), grr = gg_->gmunu(&cph[0],1,1), gthth = gg_->gmunu(&cph[0],2,2), gpp = gg_->gmunu(&cph[0],3,3); double dx1=0.025, dx2=0.025; if (magneticConfig=="None") GYOTO_ERROR("Specify the magnetic field configuration"); if (magneticConfig=="Vertical"){ double g_det = sqrt(M_PI*M_PI*pow(rr,6)*pow(sin(theta),2)); double F11 = exp(log(rr)-dx1)*sin(theta-dx2*M_PI), F12 = exp(log(rr)-dx1)*sin(theta+dx2*M_PI), F21 = exp(log(rr)+dx1)*sin(theta-dx2*M_PI), F22 = exp(log(rr)+dx1)*sin(theta+dx2*M_PI); B_1 = -(F11-F12+F21-F22)/(2.*dx2*g_det); B_2 = (F11+F12-F21-F22)/(2.*dx1*g_det); B_3 = 0.; } else if (magneticConfig=="Radial"){ double g_det = sqrt(M_PI*M_PI*pow(rr,6)*pow(sin(theta),2)); double F11 = 1.-cos(theta-dx2*M_PI), F12 = 1.-cos(theta+dx2*M_PI), F21 = 1.-cos(theta-dx2*M_PI), F22 = 1.-cos(theta+dx2*M_PI); B_1 = -(F11-F12+F21-F22)/(2.*dx2*g_det), B_2 = (F11+F12-F21-F22)/(2.*dx1*g_det), B_3 = 0.; } else if (magneticConfig=="Toroidal"){ B_1 = 0.; B_2 = 0.; B_3 = 1.; } else GYOTO_ERROR("Unknown magnetic field configuration"); // compute contravariant velocity in KS' from BL double dtKS_drBL = 2. * rr / (rr*rr - 2.*rr + spin*spin); double dphiKS_drBL = spin / (rr*rr - 2.*rr + spin*spin); double Ucon_KSm[4]={0.,0.,0.,0.}; Ucon_KSm[0]=vel[0]+vel[1]*dtKS_drBL; Ucon_KSm[1]=vel[1]/rr; Ucon_KSm[2]=vel[2]/M_PI; Ucon_KSm[3]=vel[3]+vel[1]*dphiKS_drBL; // Compute KS' metric double gcov_ksm[4][4]; double sin2=sin(theta)*sin(theta), rho2=rr*rr+spin*spin*cos(theta)*cos(theta); double gcov_ks[4][4]; for(int mu=0;mu<4;mu++) for(int nu=0;nu<4;nu++) gcov_ks[mu][nu]=0.; gcov_ks[0][0] = -1. + 2. * rr / rho2 ; gcov_ks[0][1] = 2. * rr / rho2 ; gcov_ks[0][3] = -2. * spin * rr * sin(theta)*sin(theta) / rho2; gcov_ks[1][0] = gcov_ks[0][1]; gcov_ks[1][1] = 1. + 2. * rr / rho2 ; gcov_ks[1][3] = -spin * sin(theta)*sin(theta) * (1. + 2. * rr / rho2); gcov_ks[2][2] = rho2 ; gcov_ks[3][0] = gcov_ks[0][3]; gcov_ks[3][1] = gcov_ks[1][3]; gcov_ks[3][3] = sin(theta)*sin(theta) * (rho2 + spin * spin * sin(theta)*sin(theta) * (1. + 2. * rr / rho2)); // convert from ks metric to a modified one using Jacobian double dxdX[4][4]; double hslope=0.; for(int mu=0;mu<4;mu++) for(int nu=0;nu<4;nu++) dxdX[mu][nu]=0.; dxdX[0][0] = 1.; dxdX[1][1] = rr; dxdX[2][2] = M_PI + hslope*2*M_PI*cos(2*theta); dxdX[3][3] = 1.; for(int mu=0;mu<4;mu++){ for(int nu=0;nu<4;nu++){ gcov_ksm[mu][nu] = 0; for (int lam = 0; lam < 4; ++lam) { for (int kap = 0; kap < 4; ++kap) { gcov_ksm[mu][nu] += gcov_ks[lam][kap] * dxdX[lam][mu] * dxdX[kap][nu]; } } } } // Compute covariante velocity in KS' double Ucov_KSm[4]={0.,0.,0.,0.}; for(int mu=0;mu<4;mu++){ for(int nu=0;nu<4;nu++){ Ucov_KSm[mu] += gcov_ksm[mu][nu]*Ucon_KSm[nu]; } } // Copute Magnetic field in KS' double B0=B_1*Ucov_KSm[1]+B_2*Ucov_KSm[2]+B_3*Ucov_KSm[3], B1=(B_1+B0*Ucon_KSm[1])/Ucon_KSm[0], B2=(B_2+B0*Ucon_KSm[2])/Ucon_KSm[0], B3=(B_3+B0*Ucon_KSm[3])/Ucon_KSm[0]; // Conversion Magnetic field from KS' -> BL double Delta = pow(rr,2)-2.*rr+pow(spin,2.); B4vect[0]=B0-B1*2.*pow(rr,2)/Delta; B4vect[1]=B1*rr; B4vect[2]=B2*M_PI; B4vect[3]=B3-B1*spin*rr/Delta; // end of ipole Bfield formalism return; } double Generic::interp1d(double const x, double const y0, double const y1) const{ return y0+x*(y1-y0); } double Generic::interpNd(int const N, double* const Xq, double** const X, double* const Y, std::string const *cond_limit) const{ double res=0.; int n=N; int len = pow(2,N); double* Xdim, *Xsub_dim; Xdim = new double[len]; memcpy(Xdim, Y, sizeof(double)*len); while (n!=0) { int arr_len = pow(2,n-1); Xsub_dim = new double[arr_len]; double t = (Xq[N-n]-X[0][N-n])/(X[2*(N-n)+1][N-n]-X[0][N-n]); if (t<0. or t>1.){ if (cond_limit[n-1]!="Constant" and cond_limit[n-1]!="Linear"){ GYOTO_ERROR("In interpNd : Query position out of interpolation boundaries."); }else if (cond_limit[n-1]=="Constant"){ if (t<0.) t=0.; else t=1.; } } for (int i=0; ix_max){ // Query value out of boundary, check limit condition if (cond_limit == "None") GYOTO_ERROR("In getIndice : query value out of boundaries (with None boundary condition)."); else if (cond_limit == "Periodic"){ if (xq > x_max) xq = std::fmod(xq, x_max) + x_min; // equivalent of (xq % x_max) + x_min for double else xq = std::fmod(xq, x_max) + x_min + x_max; ind = int(floor((xq-x_min)/dx)); } else if (cond_limit == "Constant" or cond_limit=="Linear"){ if (xqX[i_x] && xq>X[i_x+1] && i_x=0; n--){ tab_indX[n] = ind_X/pow(2.,n); ind_X-=tab_indX[n]*pow(2.,n); if (indices[n]!=-1){ X_array[ii][n]=X[n][indices[n]+tab_indX[n]]; }else{ return 0.; // "Null" bondary condition } } int ind_Y = 0; for (int n=0; n=0; n--){ tab_indX[n] = ind_X/pow(2.,n); ind_X-=tab_indX[n]*pow(2.,n); if (indices[n]!=-1){ int nx = X_params[n][2]; double xmin = X_params[n][0], xmax = X_params[n][1], dx = (xmax - xmin)/(nx-1); X_array[ii][n]= xmin+(indices[n]+tab_indX[n])*dx; }else{ return 0.; // "Null" bondary condition } } int ind_Y = 0; for (int n=0; nnu2) {nu=nu1; nu1=nu2; nu2=nu;} double Inu1 = emission(nu1, dsem, coord_ph, coord_obj); double Inu2 = emission(nu2, dsem, coord_ph, coord_obj); double dnux2 = ((nu2-nu1)*2.); double Icur = (Inu2+Inu1)*dnux2*0.25; double Iprev; # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(Icur); # endif do { Iprev = Icur; dnux2 *= 0.5; for (nu = nu1 + 0.5*dnux2; nu < nu2; nu += dnux2) { Icur += emission(nu, dsem, coord_ph, coord_obj) * dnux2; } Icur *= 0.5; # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(Icur); # endif } while( fabs(Icur-Iprev) > (1e-2 * Icur) ); # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "dnu=" << dnux2*0.5 << "=(nu2-nu1)/" << (nu2-nu1)/(dnux2*0.5) << endl; # endif return Icur; } Quantity_t Generic::getDefaultQuantities() { return GYOTO_QUANTITY_INTENSITY; } void Astrobj::initRegister() { if (Gyoto::Astrobj::Register_) delete Gyoto::Astrobj::Register_; Gyoto::Astrobj::Register_ = NULL; } double Generic::deltaMax(double coord[8]) { double rr=0.,h1max; if (!gg_) GYOTO_ERROR("Please set metric before calling Astrobj::Generic::deltaMax()"); switch (gg_ -> coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rr=coord[1]; break; case GYOTO_COORDKIND_CARTESIAN: rr=sqrt(coord[1]*coord[1]+coord[2]*coord[2]+coord[3]*coord[3]); break; default: GYOTO_ERROR("Incompatible coordinate kind in Astrobj.C"); } if (rr conv) { intensity_converter_ = conv ; } void Astrobj::Properties::intensityConverter(string unit) { intensity_converter_ = new Units::Converter("J.m-2.s-1.sr-1.Hz-1", unit!=""?unit:"J.m-2.s-1.sr-1.Hz-1"); } void Astrobj::Properties::spectrumConverter(SmartPointer conv) { spectrum_converter_ = conv; } void Astrobj::Properties::spectrumConverter(string unit) { spectrum_converter_ = new Units::Converter("J.m-2.s-1.sr-1.Hz-1", unit!=""?unit:"J.m-2.s-1.sr-1.Hz-1"); } void Astrobj::Properties::binSpectrumConverter(SmartPointer conv) { binspectrum_converter_ = conv; } void Astrobj::Properties::binSpectrumConverter(string unit) { binspectrum_converter_ = new Units::Converter("J.m-2.s-1.sr-1", unit!=""?unit:"J.m-2.s-1.sr-1"); } #endif Astrobj::Properties& Astrobj::Properties::operator+=(ptrdiff_t ofset) { if (intensity) intensity += ofset; if (time) time += ofset; if (distance) distance += ofset; if (first_dmin) first_dmin += ofset; if (redshift) redshift += ofset; if (nbcrosseqplane) nbcrosseqplane += ofset; if (spectrum) spectrum += ofset; if (stokesQ) stokesQ += ofset; if (stokesU) stokesU += ofset; if (stokesV) stokesV += ofset; if (binspectrum) binspectrum += ofset; if (impactcoords) impactcoords += 16*ofset; if (user1) user1 += ofset; if (user2) user2 += ofset; if (user3) user3 += ofset; if (user4) user4 += ofset; if (user5) user5 += ofset; return *this; } Astrobj::Properties& Astrobj::Properties::operator++() { (*this) += 1; return *this; } Astrobj::Properties::operator Quantity_t () const { Quantity_t res=GYOTO_QUANTITY_NONE; if (intensity) res |= GYOTO_QUANTITY_INTENSITY; if (time) res |= GYOTO_QUANTITY_EMISSIONTIME; if (distance) res |= GYOTO_QUANTITY_MIN_DISTANCE; if (first_dmin) res |= GYOTO_QUANTITY_FIRST_DMIN; if (redshift) res |= GYOTO_QUANTITY_REDSHIFT; if (nbcrosseqplane) res |= GYOTO_QUANTITY_NBCROSSEQPLANE; if (spectrum) res |= GYOTO_QUANTITY_SPECTRUM; if (stokesQ) res |= GYOTO_QUANTITY_SPECTRUM_STOKES_Q; if (stokesU) res |= GYOTO_QUANTITY_SPECTRUM_STOKES_U; if (stokesV) res |= GYOTO_QUANTITY_SPECTRUM_STOKES_V; if (binspectrum) res |= GYOTO_QUANTITY_BINSPECTRUM; if (impactcoords) res |= GYOTO_QUANTITY_IMPACTCOORDS; if (user1) res |= GYOTO_QUANTITY_USER1; if (user2) res |= GYOTO_QUANTITY_USER2; if (user3) res |= GYOTO_QUANTITY_USER3; if (user4) res |= GYOTO_QUANTITY_USER4; if (user5) res |= GYOTO_QUANTITY_USER5; return res; } Gyoto-2.0.2/lib/BlackBodySpectrum.C000066400000000000000000000044071455254334400170610ustar00rootroot00000000000000/* Copyright 2011-2012, 2014, 2017, 2019-2020 Thibaut Paumard & Frederic Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoBlackBodySpectrum.h" #include "GyotoDefs.h" #include #ifdef GYOTO_USE_XERCES #include "GyotoFactory.h" #include "GyotoFactoryMessenger.h" #endif using namespace Gyoto; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(Spectrum::BlackBody) GYOTO_PROPERTY_DOUBLE(Spectrum::BlackBody, Temperature, temperature) GYOTO_PROPERTY_DOUBLE(Spectrum::BlackBody, Scaling, scaling) GYOTO_PROPERTY_DOUBLE(Spectrum::BlackBody, ColorCorrection, colorCorrection) GYOTO_PROPERTY_END(Spectrum::BlackBody, Generic::properties) /// Spectrum::BlackBody::BlackBody() : Spectrum::Generic("BlackBody"), T_(10000.), colorcor_(1.), colorcorm4_(1.), cst_(2.*GYOTO_PLANCK_OVER_C_SQUARE) {Tm1_=1./T_;} Spectrum::BlackBody::BlackBody(double T, double c) : Spectrum::Generic("BlackBody"), T_(T), cst_(c), colorcor_(1.), colorcorm4_(1.) {Tm1_=1./T_;} Spectrum::BlackBody * Spectrum::BlackBody::clone() const { return new Spectrum::BlackBody(*this); } double Spectrum::BlackBody::temperature() const { return T_; } void Spectrum::BlackBody::temperature(double c) { T_ = c; Tm1_=1./T_; } double Spectrum::BlackBody::scaling() const { return cst_; } void Spectrum::BlackBody::scaling(double c) { cst_ = c; } double Spectrum::BlackBody::colorCorrection() const { return colorcor_; } void Spectrum::BlackBody::colorCorrection(double c) { colorcor_ = c; colorcorm4_ = 1./(c*c*c*c); T_*=c; Tm1_/=c;} double Spectrum::BlackBody::operator()(double nu) const { return colorcorm4_*cst_*nu*nu*nu /(expm1(GYOTO_PLANCK_OVER_BOLTZMANN*nu*Tm1_)); } Gyoto-2.0.2/lib/Blob.C000066400000000000000000000512501455254334400143600ustar00rootroot00000000000000/* Copyright 2019, 2020 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoBlob.h" #include "GyotoPhoton.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrBL.h" #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; using namespace Eigen; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(Blob, "Synchrotron-emitting orbiting blob of plasma") GYOTO_PROPERTY_DOUBLE_UNIT(Blob, NumberDensity, numberDensity, "cgs number density, constant through blob") GYOTO_PROPERTY_DOUBLE(Blob, Temperature, temperature, "temperature, constant through blob") GYOTO_PROPERTY_DOUBLE_UNIT(Blob, TimeRef, timeRef, "time of max of Gaussian evolution " "of blob density and temperature") GYOTO_PROPERTY_DOUBLE_UNIT(Blob, TimeSigma, timeSigma, "temporal sigma of Gaussian evolution " "of blob density and temperature") GYOTO_PROPERTY_DOUBLE(Blob, MagnetizationParameter, magnetizationParameter, "magnetization parameter") GYOTO_PROPERTY_DOUBLE(Blob, KappaIndex, kappaIndex, "PL index of kappa-synchrotron") GYOTO_PROPERTY_STRING(Blob, ElectronDistribution, electronDistribution, "\"Thermal\" (default), or \"Kappa\".") GYOTO_PROPERTY_END(Blob, Star::properties) #define USE_IPOLE_FORMALISM 0 Blob::Blob() : Star(), numberDensity_cgs_(1.), temperature_(1.), timeRef_M_(1.), timeSigma_M_(1.), magnetizationParameter_(1.), kappaIndex_(1.), magneticConfig_("None"), spectrumKappaSynch_(NULL), spectrumPLSynch_(NULL), spectrumThermalSynch_(NULL), electronDistrib_("Thermal") { kind_="Blob"; # ifdef GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "done." << endl; # endif spectrumKappaSynch_ = new Spectrum::KappaDistributionSynchrotron(); spectrumPLSynch_ = new Spectrum::PowerLawSynchrotron(); spectrumThermalSynch_ = new Spectrum::ThermalSynchrotron(); } Blob::Blob(const Blob& orig) : Star(orig), numberDensity_cgs_(orig.numberDensity_cgs_), temperature_(orig.temperature_), timeRef_M_(orig.timeRef_M_), timeSigma_M_(orig.timeSigma_M_), kappaIndex_(orig.kappaIndex_), magnetizationParameter_(orig.magnetizationParameter_), magneticConfig_(orig.magneticConfig_), spectrumKappaSynch_(NULL), spectrumPLSynch_(NULL), spectrumThermalSynch_(NULL), electronDistrib_(orig.electronDistrib_) { if (orig.spectrumKappaSynch_()) spectrumKappaSynch_=orig.spectrumKappaSynch_->clone(); if (orig.spectrumPLSynch_()) spectrumPLSynch_=orig.spectrumPLSynch_->clone(); if (orig.spectrumThermalSynch_()) spectrumThermalSynch_=orig.spectrumThermalSynch_->clone(); } Blob* Blob::clone() const { return new Blob(*this); } Blob::~Blob() { if (debug()) cerr << "DEBUG: Blob::~Blob()\n"; } void Blob::electronDistribution(const string &kind) { if(kind == "Thermal") electronDistrib_ = "Thermal"; else if(kind == "Kappa") electronDistrib_ = "Kappa"; else if (kind == "PL") electronDistrib_ = "PL"; else throwError("unknown electron distribution!"); } string Blob::electronDistribution() const { return electronDistrib_; } string Blob::className() const { return string("Blob"); } string Blob::className_l() const { return string("blob"); } void Blob::radiativeQ(double Inu[], // output double Taunu[], // output double const nu_ems[], size_t nbnu, // input double dsem, state_t const &coord_ph, double const coord_obj[8]) const { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif double tcur=coord_ph[0]; //*GMoc3/60.; // in min double modulation = exp(-pow((tcur-timeRef_M_)/timeSigma_M_,2)); double temperature = modulation*temperature_, number_density = modulation*numberDensity_cgs_; //cout << "spot tcur, time_ref, time_sigma, modulation, number_density=" << tcur << " " << timeRef_M_ << " " << timeSigma_M_ << " " << modulation << " " << numberDensity_cgs_ << " " << temperature_ << " " << number_density << " " << temperature << " " << kappaIndex_ << " " << magnetizationParameter_ << endl; double thetae = GYOTO_BOLTZMANN_CGS*temperature /(GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS); double hypergeom = Gyoto::hypergeom(kappaIndex_, thetae); double BB = sqrt(4.*M_PI*magnetizationParameter_ *GYOTO_PROTON_MASS_CGS * GYOTO_C_CGS * GYOTO_C_CGS *number_density); double nu0 = GYOTO_ELEMENTARY_CHARGE_CGS*BB /(2.*M_PI*GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS); // cyclotron freq // Defining jnus, anus double jnu_synch_kappa[nbnu], anu_synch_kappa[nbnu]; for (size_t ii=0; iikappaindex(kappaIndex_); spectrumKappaSynch_->numberdensityCGS(number_density); spectrumKappaSynch_->angle_averaged(1); spectrumKappaSynch_->angle_B_pem(0.); // avg so we don't care spectrumKappaSynch_->cyclotron_freq(nu0); spectrumKappaSynch_->thetae(thetae); spectrumKappaSynch_->hypergeometric(hypergeom); spectrumKappaSynch_->radiativeQ(jnu_synch_kappa,anu_synch_kappa, nu_ems,nbnu); // RETURNING TOTAL INTENSITY AND TRANSMISSION for (size_t ii=0; iiunitLength()); Taunu[ii] = em1+1.; Inu[ii] = anu_tot == 0. ? jnu_tot * dsem * gg_->unitLength() : -jnu_tot / anu_tot * em1; if (Inu[ii]<0.) GYOTO_ERROR("In Blob::radiativeQ: Inu<0"); if (Inu[ii]!=Inu[ii] or Taunu[ii]!=Taunu[ii]) GYOTO_ERROR("In Blob::radiativeQ: Inu or Taunu is nan"); if (Inu[ii]==Inu[ii]+1. or Taunu[ii]==Taunu[ii]+1.) GYOTO_ERROR("In Blob::radiativeQ: Inu or Taunu is infinite"); } } double Blob::numberDensity() const { // Converts internal cgs central enthalpy to SI double dens=numberDensity_cgs_; # ifdef HAVE_UDUNITS dens = Units::Converter("cm-3", "m-3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif return dens; } double Blob::numberDensity(string const &unit) const { double dens = numberDensity(); if (unit != "") { # ifdef HAVE_UDUNITS dens = Units::Converter("m-3", unit)(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif } return dens; } void Blob::numberDensity(double dens) { # ifdef HAVE_UDUNITS dens = Units::Converter("m-3", "cm-3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif numberDensity_cgs_=dens; } void Blob::numberDensity(double dens, string const &unit) { if (unit != "") { # ifdef HAVE_UDUNITS dens = Units::Converter(unit, "m-3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif } numberDensity(dens); } double Blob::temperature() const { return temperature_; } void Blob::temperature(double tt) { temperature_ = tt; } double Blob::timeRef() const { // Converts internal M-unit time to SI double tt=timeRef_M_; # ifdef HAVE_UDUNITS if (gg_) tt = Units::ToSeconds(tt,"geometrical_time",gg_); else GYOTO_SEVERE << "Cannot convert to seconds as metric is not set!" << endl; # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif return tt; } double Blob::timeRef(string const &unit) const { double tt = timeRef(); if (unit != "") { # ifdef HAVE_UDUNITS tt = Units::Converter("s", unit)(tt); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif } return tt; } void Blob::timeRef(double tt) { # ifdef HAVE_UDUNITS tt = Units::ToGeometricalTime(tt, "s", gg_); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif timeRef_M_ = tt; } void Blob::timeRef(double tt, string const &unit) { if (unit != "") { # ifdef HAVE_UDUNITS if (gg_) tt = Units::ToSeconds(tt,unit,gg_); else GYOTO_SEVERE << "Cannot convert to seconds as metric is not set!" << endl; # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif } timeRef(tt); } double Blob::timeSigma() const { // Converts internal M-unit time to SI double tt=timeSigma_M_; # ifdef HAVE_UDUNITS if (gg_) tt = Units::ToSeconds(tt,"geometrical_time",gg_); else GYOTO_SEVERE << "Cannot convert to seconds as metric is not set!" << endl; # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif return tt; } double Blob::timeSigma(string const &unit) const { double tt = timeSigma(); if (unit != "") { # ifdef HAVE_UDUNITS tt = Units::Converter("s", unit)(tt); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif } return tt; } void Blob::timeSigma(double tt) { # ifdef HAVE_UDUNITS tt = Units::ToGeometricalTime(tt, "s", gg_); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif timeSigma_M_ = tt; } void Blob::timeSigma(double tt, string const &unit) { if (unit != "") { # ifdef HAVE_UDUNITS tt = Units::ToSeconds(tt,unit,gg_); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif } timeSigma(tt); } void Blob::magnetizationParameter(double rr) { magnetizationParameter_=rr;} double Blob::magnetizationParameter()const{ return magnetizationParameter_;} double Blob::kappaIndex() const { return kappaIndex_; } void Blob::kappaIndex(double ind) { kappaIndex_ = ind; } void Blob::radiativeQ(double *Inu, double *Qnu, double *Unu, double *Vnu, Eigen::Matrix4d *Onu, double const *nuem , size_t nbnu, double dsem, state_t const &coord_ph, double const *co) const { string kin = gg_->kind(); if (kin != "KerrBL" and kin != "Minkowski") GYOTO_ERROR("Blob should be in Kerr or Minko!"); double spin = 0.; if (kin == "KerrBL"){ // Check that Kerr spin is 0 (mf formulas below are so far in Sch only) spin = static_cast >(gg_) -> spin(); if (spin!=0.) GYOTO_ERROR("Blob should be in Schwarzschild!"); } double mynuem[1]; // TEST!!! mynuem[0]=1.36e14; //nuem[0]; // polarized radiativeQ double rr, rcyl, theta, phi, xx, yy, zz=0.; switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rr = coord_ph[1]; theta = coord_ph[2]; phi = coord_ph[3]; rcyl = rr*sin(theta); xx = rcyl*cos(phi); yy = rcyl*sin(phi); zz = rr*cos(theta); break; case GYOTO_COORDKIND_CARTESIAN: rcyl = pow(coord_ph[1]*coord_ph[1]+coord_ph[2]*coord_ph[2], 0.5); rr = sqrt(coord_ph[1]*coord_ph[1]+coord_ph[2]*coord_ph[2] +coord_ph[3]*coord_ph[3]); theta = acos(coord_ph[3]/rr); xx = coord_ph[1]; yy = coord_ph[2]; zz = coord_ph[3]; break; default: GYOTO_ERROR("In Blob::radiativeQ(): Unknown coordinate system kind"); } double vel[4]; // 4-velocity of emitter for (int ii=0;ii<4;ii++){ vel[ii]=co[ii+4]; } //cout << "***blob velo in orthonorm frame= " << vel[0] << " " << vel[1] << " " << coord_ph[1]*vel[2] << " " << coord_ph[1]*abs(sin(coord_ph[2]))*vel[3] << endl; double tcur=coord_ph[0]; //*GMoc3/60.; // in min double modulation = exp(-pow((tcur-timeRef_M_)/timeSigma_M_,2)); double temperature = modulation*temperature_, number_density = modulation*numberDensity_cgs_; //cout << "spot tcur, time_ref, time_sigma, modulation, number_density=" << tcur << " " << timeRef_M_ << " " << timeSigma_M_ << " " << modulation << " " << numberDensity_cgs_ << " " << temperature_ << " " << number_density << " " << temperature << " " << kappaIndex_ << " " << magnetizationParameter_ << endl; double thetae = GYOTO_BOLTZMANN_CGS*temperature /(GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS); double BB = sqrt(4.*M_PI*magnetizationParameter_ *GYOTO_PROTON_MASS_CGS * GYOTO_C_CGS * GYOTO_C_CGS *number_density); double nu0 = GYOTO_ELEMENTARY_CHARGE_CGS*BB /(2.*M_PI*GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS); // cyclotron freq double Theta = GYOTO_BOLTZMANN_CGS*temperature /(GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS); double hypergeom = Gyoto::hypergeom(kappaIndex_, Theta); // CHOOSE BFIELD GEOMETRY // Note: Bfield is simply a normalized spacelike vector, we only // need its direction, the norm is computed independently. double B4vect[4]={0.,0.,0.,0.}; computeB4vect(B4vect, magneticConfig_, co, coord_ph); //cout << "***BL mf in orthonorm frame= "<< B4vect[0] << " " << B4vect[1] << " " << coord_ph[1]*B4vect[2] << " " << coord_ph[1]*abs(sin(coord_ph[2]))*B4vect[3] << endl; //cout << "***k photon in orthonorm frame= " << coord_ph[4] << " " << coord_ph[5] << " " << coord_ph[1]*coord_ph[6] << " " << coord_ph[1]*abs(sin(coord_ph[2]))*coord_ph[7] << endl; double norm=sqrt(gg_->ScalarProd(&coord_ph[0], B4vect, B4vect)); //cout << "norm= " << norm << endl; if (fabs(norm-1.)>GYOTO_DEFAULT_ABSTOL) GYOTO_ERROR("Bad mf normalization"); double Chi=getChi(B4vect, coord_ph, vel); // this is EVPA //cout << "At r,x,y,z= " << coord_ph[1] << " " << coord_ph[1]*sin(coord_ph[2])*cos(coord_ph[3]) << " " << coord_ph[1]*sin(coord_ph[2])*sin(coord_ph[3]) << " " << coord_ph[1]*cos(coord_ph[2]) << " ; Chi=" << Chi << endl; // Computing the angle theta_mag between the magnetic field vector and photon tgt vector in the rest frame of the emitter gg_->projectFourVect(&coord_ph[0],B4vect,vel); //Projection of the 4-vector B to 4-velocity to be in the rest frame of the emitter double photon_emframe[4]; // photon tgt vector projected in comoving frame for (int ii=0;ii<4;ii++){ photon_emframe[ii]=coord_ph[ii+4]; } // Angle between mf and K in emitter's frame. B is already in this frame, // it is by construction normal to u. We still need to project k // normal to u, this is K = k + (k.u) u. Then: // cos(thetaB) = (K / |K|) . (B / |B|) gg_->projectFourVect(&coord_ph[0],photon_emframe,vel); //cout << "***K photon proj in orthonorm frame= " << photon_emframe[0] << " " << photon_emframe[1] << " " << coord_ph[1]*photon_emframe[2] << " " << coord_ph[1]*abs(sin(coord_ph[2]))*photon_emframe[3] << endl; //cout << endl; double bnorm = gg_->norm(&coord_ph[0],B4vect); double lnorm = gg_->norm(&coord_ph[0],photon_emframe); double lscalb = gg_->ScalarProd(&coord_ph[0],photon_emframe,B4vect); double theta_mag = acos(lscalb/(lnorm*bnorm)); if (theta_mag<0. or theta_mag>M_PI) throwError("Blob: bad B angle"); Eigen::Matrix4d Omat; Omat << 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1; // Defining emission, absoprtion and rotation coefficients for the transmission matrix double jInu[nbnu], jQnu[nbnu], jUnu[nbnu], jVnu[nbnu]; double aInu[nbnu], aQnu[nbnu], aUnu[nbnu], aVnu[nbnu]; double rotQnu[nbnu], rotUnu[nbnu], rotVnu[nbnu]; for (size_t ii=0; iitemperature(temperature); spectrumThermalSynch_->numberdensityCGS(number_density); spectrumThermalSynch_->angle_averaged(0); // no angle avg of course spectrumThermalSynch_->angle_B_pem(theta_mag); //spectrumThermalSynch_->angle_B_pem(0.785); // TEST!! spectrumThermalSynch_->cyclotron_freq(nu0); spectrumThermalSynch_->besselK2(besselK2); //cout << "for anu jnu: " << coord_ph[1] << " " << zz << " " << temperature << " " << number_density << " " << nu0 << " " << thetae << " " << besselK2 << endl; spectrumThermalSynch_->radiativeQ(jInu, jQnu, jUnu, jVnu, aInu, aQnu, aUnu, aVnu, rotQnu, rotUnu, rotVnu, nuem, nbnu); }else if (electronDistrib_=="Kappa"){ // KAPPA SYNCHRO //double hypergeom = Gyoto::hypergeom(kappaIndex_, 10.); // TEST //cout << "In Blob: ne, temperature, BB, nu0, besselK2, theta_mag: " << number_density << " " << temperature << " " << BB << " " << nu0 << " " << hypergeom << " " << theta_mag << endl; spectrumKappaSynch_->kappaindex(kappaIndex_); spectrumKappaSynch_->numberdensityCGS(number_density); spectrumKappaSynch_->angle_averaged(0); // TEST!! //cout << "In Blob: sin theta (k,B) = " << sin(theta_mag) << endl; spectrumKappaSynch_->angle_B_pem(theta_mag); //spectrumKappaSynch_->angle_B_pem(0.785); // TEST!! spectrumKappaSynch_->cyclotron_freq(nu0); spectrumKappaSynch_->thetae(Theta); spectrumKappaSynch_->hypergeometric(hypergeom); spectrumKappaSynch_->radiativeQ(jInu, jQnu, jUnu, jVnu, aInu, aQnu, aUnu, aVnu, rotQnu, rotUnu, rotVnu, nuem, nbnu); //rotQnu, rotUnu, rotVnu, mynuem, nbnu); // TEST!!! }else if (electronDistrib_ == "PL"){ spectrumPLSynch_->numberdensityCGS(number_density); spectrumPLSynch_->angle_averaged(0); //cout << "In Blob: sin theta (k,B) = " << sin(theta_mag) << endl; spectrumPLSynch_->angle_B_pem(theta_mag); //spectrumPLSynch_->angle_B_pem(0.785); // TEST!! spectrumPLSynch_->cyclotron_freq(nu0); spectrumPLSynch_->PLindex(kappaIndex_-1); spectrumPLSynch_->radiativeQ(jInu, jQnu, jUnu, jVnu, aInu, aQnu, aUnu, aVnu, rotQnu, rotUnu, rotVnu, nuem, nbnu); }else{ GYOTO_ERROR("Unknown electron distribution"); } // RETURNING TOTAL INTENSITY AND TRANSMISSION for (size_t ii=0; iiunitLength(); //cout << Jstokes << endl; Omat = Omatrix(aInu[ii], aQnu[ii], aUnu[ii], aVnu[ii], rotQnu[ii], rotUnu[ii], rotVnu[ii], Chi, dsem); //cout << Omat << endl; // Computing the increment of the Stokes parameters. Equivalent to dInu=exp(-anu*dsem)*jnu*dsem in the non-polarised case. Eigen::Vector4d Stokes=Omat*Jstokes; //cout << Stokes << endl; Inu[ii] = Stokes(0); Qnu[ii] = Stokes(1); Unu[ii] = Stokes(2); //cout << "Q and U and U/Q= " << Qnu[ii] << " " << Unu[ii] << " " << Unu[ii]/Qnu[ii] << endl; //cout << endl; Vnu[ii] = Stokes(3); Onu[ii] = Omat; //cout << "In Blob: r,th,ph, Inu, Qnu, Unu, Vnu, dsem, LP: " << rr << " " << theta << " " << phi << " " << Inu[ii] << ", " << Qnu[ii] << ", " << Unu[ii] << ", " << Vnu[ii] << ", " << dsem << ", " << pow(Qnu[ii]*Qnu[ii]+Unu[ii]*Unu[ii],0.5)/Inu[ii] << endl; if (Inu[ii]<0.) GYOTO_ERROR("In Blob::radiativeQ(): Inu<0"); if (Inu[ii]!=Inu[ii] or Onu[ii](0,0)!=Onu[ii](0,0)) GYOTO_ERROR("In Blob::radiativeQ(): Inu or Taunu is nan"); if (Inu[ii]==Inu[ii]+1. or Onu[ii](0,0)==Onu[ii](0,0)+1.) GYOTO_ERROR("In Blob::radiativeQ(): Inu or Taunu is infinite"); } } void Blob::magneticConfiguration(string config){ magneticConfig_=config; } string Blob::magneticConfiguration() const{ return magneticConfig_; } Gyoto-2.0.2/lib/ChernSimons.C000066400000000000000000000213411455254334400157300ustar00rootroot00000000000000/* Copyright 2013, 2016 Frederic Vincent & Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoChernSimons.h" #include #include #include using namespace Gyoto; using namespace Gyoto::Metric; using namespace std; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(ChernSimons, "Chern-Simons 1st order perturbation to KerrBL metric") GYOTO_PROPERTY_DOUBLE(ChernSimons, DzetaCS, dzetaCS, "Chern-Simons coupling constant") GYOTO_PROPERTY_END(ChernSimons, KerrBL::properties) // accessor void ChernSimons::dzetaCS(double d) {dzetaCS_=d;} double ChernSimons::dzetaCS() const {return dzetaCS_;} /// #define drhor 2e-1 // 1e-1 leads to problem close to horizon Gyoto::Metric::ChernSimons::ChernSimons() : KerrBL(), dzetaCS_(0.) { // The constructor should only initialize to default values, the // subcontractor will later call setParameter() to set each // parameter. kind("ChernSimons"); GYOTO_DEBUG << "Building ChernSimons" << endl; } Gyoto::Metric::ChernSimons::ChernSimons(const ChernSimons &o) : KerrBL(o), dzetaCS_(o.dzetaCS_) { // don't forget to copy each member here kind("ChernSimons"); GYOTO_DEBUG << "Copying ChernSimons" << endl; } ChernSimons * ChernSimons::clone() const { return new ChernSimons(*this); } Gyoto::Metric::ChernSimons::~ChernSimons() { // delete each member pointers or decremente smartpointers by // setting them to NULL GYOTO_DEBUG << "Destroying ChernSimons"; } double ChernSimons::gmunu(const double * pos, int mu, int nu) const { double r = pos[1]; double sth2, cth2; sincos(pos[2], &sth2, &cth2); sth2*=sth2; cth2*=cth2; double r2=r*r, r3=r2*r; double a2=spin_*spin_; double sigma=r2+a2*cth2; double delta=r2-2.*r+a2; double ff=1.-2./r; if ((mu==0) && (nu==0)) { return -ff-2.*a2/r3*cth2; } if ((mu==1) && (nu==1)) return 1./ff+a2/(ff*r2)*(cth2-1./ff); if ((mu==2) && (nu==2)) return sigma; if ((mu==3) && (nu==3)) return r2*sth2+a2*sth2*(1.+2./r*sth2); if (((mu==0) && (nu==3)) || ((mu==3) && (nu==0))){ return -2*spin_/r*sth2 +5./8.*dzetaCS_*spin_/(r2*r2)*(1.+12./7.*1./r+27./10.*1./r2)*sth2; } return 0.; } void ChernSimons::gmunu(double ARGOUT_ARRAY2[4][4], double const IN_ARRAY1[4]) const { // Let's make sure the Generic version is called, not the KerrBL one Generic::gmunu(ARGOUT_ARRAY2, IN_ARRAY1); } int ChernSimons::christoffel(double ARGOUT_ARRAY3[4][4][4], double const IN_ARRAY1[4]) const { // Let's make sure the Generic version is called, not the KerrBL one return Generic::christoffel(ARGOUT_ARRAY3, IN_ARRAY1); } double ChernSimons::christoffel(const double coord[4], const int alpha, const int mu, const int nu) const { return Generic::christoffel(coord, alpha, mu, nu); } void ChernSimons::gmunu_up(double ARGOUT_ARRAY2[4][4], double const IN_ARRAY1[4]) const { double g[4][4]; gmunu(g, IN_ARRAY1); matrix4CircularInvert(ARGOUT_ARRAY2, g); return; } double ChernSimons::gmunu_up(const double * pos, int mu, int nu) const { return Generic::gmunu_up(pos, mu, nu); } int ChernSimons::diff(const double* coordGen, const double* cst, double* res) const{ double a2=spin_*spin_; //int width=25;//15; //int prec=15;//8; double rsink=1.+sqrt(1.-a2)+drhor; double r = coordGen[1]; if (r < 0.) { cerr << "r= " << r << endl; GYOTO_ERROR( "ChernSimons.C: r negative!!!!! the horizon" " may have been crossed..." ); } if (r < rsink) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "Too close to horizon in ChernSimons::diff at r= " << r << endl; # endif return 1; } double r2 = r*r; double r3 = r2*r; double r4 = r2*r2; double r5=r4*r; double ff = 1.-2./r; // compute and store efficiently sin, cos, cotan double theta=coordGen[2]; double costheta, sintheta; sincos(theta, &sintheta, &costheta); double costheta2=costheta*costheta; if (sintheta==0.) GYOTO_ERROR("sintheta==0"); double cotantheta=costheta/sintheta; double cotantheta2=cotantheta*cotantheta; double cotantheta3=cotantheta2*cotantheta; double sin2theta=2.*sintheta*costheta; double cos2theta=2.*costheta2-1.; double pr=coordGen[5]; double ptheta=coordGen[6]; double a3=a2*spin_; double Sigma=r2+a2*costheta2; if (Sigma==0) GYOTO_ERROR("In ChernSimons::diff(): Sigma==0"); double Sigmam1=1./Sigma; double Sigmam2=Sigmam1*Sigmam1; double Delta=r2-2*r+a2; double E=cst[1]; double E2=E*E; double L=cst[2]; double L2=L*L; double tmp1=(2.*Delta*Sigma); if (tmp1==0) GYOTO_ERROR("In ChernSimons::diff(): 2.*Delta*Sigma==0"); double tmp1m1=1./tmp1; if (Delta==0) GYOTO_ERROR("In ChernSimons::diff(): Delta==0"); //NB: equations of motion are independent of Carter constant in this //form. However, the dependency of the dynamic on this constant //appears when transforming from principal momenta to coordinate //derivatives (e.g. p_theta -> thetadot) /* ---> Standard Kerr equations of geodesics, slow rotation approx. */ res[0] = 1./(2.*ff*r4) *(2.*( r*(-2.*spin_*L+E*r3+a2*E*(2.+r))+a2*E*(a2+r*(-2.+r))*costheta2 ) ) - 1./(2.*ff*r4)*a2/r2*(costheta2-1./ff) *(2.*( E*r4 // to order zero in a2 ) );// tdot res[1] = (ff+a2/r2*(1.-ff*costheta2))*pr; //rdot res[2] = 1./r2*(1.-a2/r2*costheta2)*ptheta; //thetadot res[3] = -1./(2.*ff*r4) *(-2.*( r*(2.*spin_*E+L*(-2.+r))+L*(a2+r*(-2.+r))*cotantheta2 ) ) +1./(2.*ff*r4)*a2/r2*(costheta2-1./ff) *(-2.*(r*(2.*spin_*E+L*(-2.+r))+L*(r*(-2.+r)) *cotantheta2) ) ; //phidot res[4] = 0.;// ptdot: pt = cst = -E double tmp2=r2+a2*costheta2; if (tmp2==0) GYOTO_ERROR("r2+a2*costheta2==0"); double tmp2m2=1./(tmp2*tmp2); double tmp3=a2+r*(-2.+r); double tmp3_2=tmp3*tmp3; res[5] = (-1./r4*(r*(r-a2)-a2*(1.-r)*costheta2)+2.*a2*costheta2/r4)*pr*pr +1./r3*(1.-2.*a2/r2*costheta2)*ptheta*ptheta +(1./(r4*r4*ff*ff) *( costheta2*a2*E2*r3*(r-4.) -2.*r3*spin_*E*L*(4.-3.*r) -r2*a2*(L2+2*E2*r*(r-2.)) -r3*(E2*r3-L2*(r-2.)*(r-2.)) +L2*cotantheta2*r4*r*ff*ff*(1.+2*a2/(ff*r2)) ) -2.*a2/(r4*r4*r2*ff*ff)*(costheta2+1./ff) *( -r3*(E2*r3-L2*(r-2.)*(r-2.)) +L2*cotantheta2*r5*ff*ff*(1.+2.*a2/(ff*r2)) ) );// prdot res[6]= -0.5*(a2*sin2theta*ff/r2)*pr*pr -0.5*(a2*sin2theta*1./r4)*ptheta*ptheta +( 1./r4 *( L2*r2*cotantheta +0.5*L2*(a2+2.*r2+a2*cos2theta)*cotantheta3 +a2/(ff*r)*(L2*(2.-r)+2.*E2*r2)*costheta*sintheta ) -2.*a2*costheta2/(r4*r2) *( L2*r2*cotantheta+L2*r2*cotantheta3 ) ); // pthetadot res[7] = 0.;//pphidot: pphi = cst = L /* ---> Chern-Simons modifications to 1st order Checked Jul 10: OK */ res[0]+= 1./(2.*ff*r4)*spin_*L*(189.+120.*r+70.*r2)*dzetaCS_/(56.*r2*r2); //tdot res[3]+= -1./(2.*ff*r4)*spin_*E*(189.+120.*r+70.*r2)*dzetaCS_/(56.*r2*r2); //phidot res[5]+=-spin_*E*L*dzetaCS_/(56.*r4*r2*(r-2.))* ( -1323.+36.*r+70.*r2+210.*r2*r ) / ( r2*(r-2.)+2.*a2*costheta2*(r-2.)+2.*a2*r ); res[6]+=a3*E*L*dzetaCS_* (189.+120.*r+70.*r2)*costheta*sintheta / (56.*r4*r4*(a2+r*(r-2.)*(1.+2.*a2/r2*costheta2))); //pthdot return 0; } void ChernSimons::circularVelocity(double const coor[4], double vel[4], double dir) const { if (keplerian_) { // If keplerian_ is true, let the generic implementation return // the Keplerian velocity instead of the true circular velocity Generic::circularVelocity(coor, vel, dir); return; } # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG<<"coor=["< [cardinal_]; for (size_t i=0; i< cardinal_; ++i) { elements_[i] = o[i]->clone(); } } metric(gg_); // to set the same metric in all elements } Complex *Complex::clone() const {return new Complex(*this); } Complex::~Complex() { if (cardinal_) for (size_t i=0; i< cardinal_; ++i) elements_[i] = NULL; } bool Complex::isThreadSafe() const { bool safe = Generic::isThreadSafe(); for (size_t i=0; i < cardinal_; ++i) safe &= elements_[i] -> isThreadSafe(); return safe; } void Complex::metric(SmartPointer gg) { Generic::metric(gg); for (size_t i=0; ikind(); cerr << ". Setting metric." << endl; } elements_[i]->metric(gg_); } } void Complex::append(SmartPointer e) { if (debug()) cerr << "DEBUG: in Complex::append(SmartPointer e)" << endl; if (cardinal_+1 == 0) GYOTO_ERROR("Complex::append(): OVERFLOW"); SmartPointer * orig = elements_; elements_ = new SmartPointer [cardinal_+1]; for (size_t i=0; i< cardinal_; ++i) { elements_[i] = orig[i]; orig[i] = NULL; } delete [] orig; orig = NULL; elements_[cardinal_] = e; ++cardinal_; if (gg_) e->metric(gg_); else gg_ = e->metric(); if (debug()) cerr << "DEBUG: out Complex::append(SmartPointer e)" << endl; } SmartPointer& Complex::operator[](size_t i) { if (i >= cardinal_) GYOTO_ERROR("Complex::operator[](size_t i): no such element"); return elements_[i]; } SmartPointer const& Complex::operator[](size_t i) const { if (i >= cardinal_) GYOTO_ERROR("Complex::operator[](size_t i): no such element"); return elements_[i]; } void Complex::remove(size_t i) { if (i >= cardinal_) GYOTO_ERROR("Complex::remove(size_t i): no such element"); SmartPointer * orig = elements_; if (--cardinal_) elements_ = new SmartPointer [cardinal_]; else elements_ = NULL; size_t k, j=0; for (k=0; k<= cardinal_; ++k) { if (k != i) elements_[j++] = orig[k]; orig[k] = NULL; } delete [] orig; } size_t Complex::getCardinal() const {return cardinal_; } double Complex::deltaMax(double coord[8]) { double h1max=DBL_MAX, tmp; for (size_t i=0; i (tmp=elements_[i]->deltaMax(coord))) h1max=tmp; return h1max; } double Complex::rMax() { double rmax = Generic::rMax(), rmaxnew=0.; for (size_t i=0; i rMax())) rmax=rmaxnew; return rmax; } int Complex::Impact(Photon* ph, size_t index, Properties *data) { int res=0, *impact = new int[cardinal_]; size_t n_impact = 0; for (size_t i=0; i Impact(ph, index, NULL); if (debug()) cerr << "DEBUG: Complex::Impact(...): " < Impact(ph, index, data); } else if (n_impact >= 2) { res = 1; if (debug()) cerr << "DEBUG: Complex::Impact(...): refining Photon" << endl; Photon::Refined refine (ph, index, 1, step_max_); size_t n_refine = refine . get_nelements(); if (debug()) cerr << "DEBUG: Complex::Impact(...): n_refine=="<kind() << ")" << endl; elements_[i]->Impact(&refine, n, data); } } } delete [] impact; return res; } #ifdef GYOTO_USE_XERCES void Complex::fillElement(FactoryMessenger *fmp) const { FactoryMessenger * childfmp=NULL; fmp -> metric (metric()) ; for (size_t i=0; i makeChild ( "SubAstrobj" ); elements_[i] -> fillElement(childfmp); delete childfmp; } Astrobj::Generic::fillElement(fmp); } void Complex::setParameters(FactoryMessenger *fmp) { if (debug()) cerr << "DEBUG: in Complex::setParameters()" << endl; string name="", content="", unit=""; vector plugin; FactoryMessenger * child = NULL; metric( fmp->metric() ); while (fmp->getNextParameter(&name, &content, &unit)) { if (debug()) cerr << "DEBUG: Astrobj::Complex::Subcontractor(): name=" << name << endl; if (name=="SubAstrobj") { content = fmp -> getAttribute("kind"); plugin = split(fmp -> getAttribute("plugin"), ","); child = fmp -> getChild(); append ((*Astrobj::getSubcontractor(content, plugin))(child, plugin)); delete child; } else setParameter(name, content, unit); } if (debug()) cerr << "DEBUG: out Complex::setParameters()" << endl; } #endif Gyoto-2.0.2/lib/ComplexMetric.C000066400000000000000000000115321455254334400162540ustar00rootroot00000000000000/* Copyright 2020 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ /* TODO: what about mass? */ #include "GyotoComplexMetric.h" #include "GyotoFactoryMessenger.h" using namespace Gyoto; using namespace Gyoto::Metric; Complex::Complex() : WIP("Gyoto::Metric::Complex"), Generic(GYOTO_COORDKIND_UNSPECIFIED, "Complex"), cardinal_(0), elements_(NULL) {} Complex::Complex(const Complex& o) : Metric::Generic(o), cardinal_(o.cardinal_), elements_(NULL) { coordKind(o.coordKind()); if (cardinal_) { elements_ = new SmartPointer [cardinal_]; for (size_t i=0; i< cardinal_; ++i) { elements_[i] = o[i]->clone(); } } } Complex *Complex::clone() const {return new Complex(*this); } Complex::~Complex() { if (cardinal_) for (size_t i=0; i< cardinal_; ++i) elements_[i] = NULL; } bool Complex::isThreadSafe() const { bool safe = Generic::isThreadSafe(); for (size_t i=0; i < cardinal_; ++i) safe &= elements_[i] -> isThreadSafe(); return safe; } void Complex::append(SmartPointer e) { GYOTO_DEBUG << std::endl; if (cardinal_+1 == 0) GYOTO_ERROR("Complex::append(): OVERFLOW"); if (cardinal_ && (e->coordKind() != coordKind())) GYOTO_ERROR("inconsistent coord kind"); SmartPointer * orig = elements_; elements_ = new SmartPointer [cardinal_+1]; for (size_t i=0; i< cardinal_; ++i) { elements_[i] = orig[i]; orig[i] = NULL; } delete [] orig; orig = NULL; elements_[cardinal_] = e; ++cardinal_; coordKind(e->coordKind()); GYOTO_DEBUG << "done" << std::endl; } SmartPointer& Complex::operator[](size_t i) { if (i >= cardinal_) GYOTO_ERROR("Complex::operator[](size_t i): no such element"); return elements_[i]; } SmartPointer const& Complex::operator[](size_t i) const { if (i >= cardinal_) GYOTO_ERROR("Complex::operator[](size_t i): no such element"); return elements_[i]; } void Complex::remove(size_t i) { if (i >= cardinal_) GYOTO_ERROR("Complex::remove(size_t i): no such element"); SmartPointer * orig = elements_; if (--cardinal_) elements_ = new SmartPointer [cardinal_]; else elements_ = NULL; size_t k, j=0; for (k=0; k<= cardinal_; ++k) { if (k != i) elements_[j++] = orig[k]; orig[k] = NULL; } delete [] orig; if (!cardinal_) coordKind(GYOTO_COORDKIND_UNSPECIFIED); } size_t Complex::getCardinal() const {return cardinal_; } void Complex::gmunu(double g[4][4], const double x[4]) const { size_t mu, nu, k; double cur[4][4]; for (mu=0; mu<4 ; ++mu) for (nu=0; nu<4 ; ++nu) g[mu][nu] = 0.; for (k=0; kgmunu(cur, x); for (mu=0; mu<4 ; ++mu) for (nu=0; nu<4 ; ++nu) g[mu][nu] += cur[mu][nu]; } } void Complex::jacobian(double jac[4][4][4], const double x[4]) const { size_t a, mu, nu, k; double cjac[4][4][4]; for (mu=0; mu<4 ; ++mu) for (nu=0; nu<4 ; ++nu) for (a=0; a<4; ++a) jac[a][mu][nu] = 0.; for (k=0; kjacobian(cjac, x); for (mu=0; mu<4 ; ++mu) for (nu=0; nu<4 ; ++nu) for (a=0; a<4; ++a) jac[a][mu][nu] += cjac[a][mu][nu]; } } #ifdef GYOTO_USE_XERCES void Complex::fillElement(FactoryMessenger *fmp) const { FactoryMessenger * childfmp=NULL; for (size_t i=0; i makeChild ( "SubMetric" ); elements_[i] -> fillElement(childfmp); delete childfmp; } Metric::Generic::fillElement(fmp); } void Complex::setParameters(FactoryMessenger *fmp) { GYOTO_DEBUG << std::endl; std::string name="", content="", unit=""; std::vector plugin; FactoryMessenger * child = NULL; while (fmp->getNextParameter(&name, &content, &unit)) { GYOTO_DEBUG_EXPR(name); if (name=="SubMetric") { content = fmp -> getAttribute("kind"); plugin = split(fmp -> getAttribute("plugin"), ","); child = fmp -> getChild(); append ((*Metric::getSubcontractor(content, plugin))(child, plugin)); delete child; } else setParameter(name, content, unit); } GYOTO_DEBUG << "done" << std::endl; } #endif int Complex::isStopCondition(double const coord[8]) const { for (size_t k=0; k isStopCondition(coord)) return 1; return 0; } Gyoto-2.0.2/lib/ComplexSpectrometer.C000066400000000000000000000126521455254334400175110ustar00rootroot00000000000000/* Copyright 2013-2014, 2016 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoComplexSpectrometer.h" #include "GyotoFactoryMessenger.h" #include "GyotoMetric.h" #include "GyotoPhoton.h" #include using namespace std; using namespace Gyoto; using namespace Gyoto::Spectrometer; kind_t const Complex::Kind = "Complex"; Complex::Complex() : Generic(Complex::Kind), cardinal_(0), elements_(NULL) { } Complex::Complex(const Complex& o) : Generic(o), cardinal_(o.cardinal_), elements_(NULL) { if (cardinal_) { elements_ = new SmartPointer [cardinal_]; for (size_t i=0; i< cardinal_; ++i) { elements_[i] = o[i]->clone(); } } } Complex *Complex::clone() const {return new Complex(*this); } bool Complex::isThreadSafe() const { bool safe = Generic::isThreadSafe(); for (size_t i=0; i < cardinal_; ++i) safe &= elements_[i] -> isThreadSafe(); return safe; } Complex::~Complex() { if (cardinal_) for (size_t i=0; i< cardinal_; ++i) elements_[i] = NULL; } void Complex::append(SmartPointer e) { GYOTO_DEBUG << "DEBUG: in Complex::append(SmartPointer e)" << endl; if (cardinal_+1 == 0) GYOTO_ERROR("Complex::append(): OVERFLOW"); SmartPointer * orig = elements_; elements_ = new SmartPointer [cardinal_+1]; for (size_t i=0; i< cardinal_; ++i) { elements_[i] = orig[i]; orig[i] = NULL; } delete [] orig; orig = NULL; elements_[cardinal_] = e; ++cardinal_; e->hook(this); GYOTO_DEBUG << "DEBUG: out Complex::append(SmartPointer e)" << endl; tell(this); } SmartPointer & Complex::operator[](size_t i) { if (i > cardinal_) GYOTO_ERROR("Complex::operator[](size_t i): no such element"); return elements_[i]; } SmartPointer const & Complex::operator[](size_t i) const { if (i > cardinal_) GYOTO_ERROR("Complex::operator[](size_t i): no such element"); return elements_[i]; } void Complex::remove(size_t i) { if (i >= cardinal_) GYOTO_ERROR("Complex::remove(size_t i): no such element"); elements_[i]->unhook(this); SmartPointer * orig = elements_; if (--cardinal_) elements_ = new SmartPointer [cardinal_]; else elements_ = NULL; size_t k, j=0; for (k=0; k<= cardinal_; ++k) { if (k != i) elements_[j++] = orig[k]; orig[k] = NULL; } delete [] orig; tell(this); // tell self! } size_t Complex::getCardinal() const {return cardinal_; } #ifdef GYOTO_USE_XERCES void Complex::fillElement(FactoryMessenger *fmp) const { FactoryMessenger * childfmp=NULL; for (size_t i=0; i makeChild ( "SubSpectrometer" ); elements_[i] -> fillElement(childfmp); delete childfmp; } Spectrometer::Generic::fillElement(fmp); } void Complex::setParameters(FactoryMessenger *fmp) { if (debug()) cerr << "DEBUG: in Complex::setParameters()" << endl; string name="", content="", unit=""; std::vector plugin; FactoryMessenger * child = NULL; while (fmp->getNextParameter(&name, &content, &unit)) { if (debug()) cerr << "DEBUG: Spectrometer::Complex::Subcontractor(): name=" << name << endl; if (name=="SubSpectrometer") { content = fmp -> getAttribute("kind"); child = fmp -> getChild(); plugin = split(fmp -> getAttribute("plugin"), ","); append ((*Spectrometer::getSubcontractor(content, plugin))(child, plugin)); delete child; } else setParameter(name, content, unit); } if (debug()) cerr << "DEBUG: out Complex::setParameters()" << endl; } #endif void Complex::tell(Gyoto::Hook::Teller *) { // This is called each time an element is added or mutated // This is suboptimal, but most straightforward nboundaries_=nsamples_=0; for (size_t i=0; inSamples(); nboundaries_ += elements_[i]->getNBoundaries(); } if (boundaries_) delete [] boundaries_; if (widths_) delete [] widths_; if (midpoints_) delete [] midpoints_; if (chanind_) delete [] chanind_; boundaries_ = new double [nboundaries_]; widths_ = new double [nsamples_]; midpoints_ = new double [nsamples_]; chanind_ = new size_t [2*nsamples_]; size_t boffset=0, offset=0; size_t const * chanind=0; for (size_t i=0; igetNBoundaries(); size_t ens = elements_[i]->nSamples(); memcpy(boundaries_+boffset, elements_[i]->getChannelBoundaries(), enb*sizeof(double)); memcpy(widths_+offset, elements_[i]->getWidths(), ens*sizeof(double)); memcpy(midpoints_+offset, elements_[i]->getMidpoints(), ens*sizeof(double)); chanind=elements_[i]->getChannelIndices(); for (size_t j=0; j<2*ens; ++j) chanind_[2*offset+j]=chanind[j]+boffset; boffset += enb; offset += ens ; } tellListeners(); } Gyoto-2.0.2/lib/Converters.C000066400000000000000000000322621455254334400156360ustar00rootroot00000000000000/* Copyright 2012-2015 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoConverters.h" #include "GyotoError.h" #include "GyotoMetric.h" using namespace Gyoto::Units ; using namespace std ; #ifdef HAVE_UDUNITS static ut_system * SI (NULL); static Gyoto::SmartPointer Meter (NULL); static Gyoto::SmartPointer Second (NULL); static Gyoto::SmartPointer KiloGram (NULL); #endif void Gyoto::Units::Init() { #ifdef HAVE_UDUNITS ut_set_error_message_handler(ut_ignore); SI = ut_read_xml(NULL); ut_unit * tmpu = NULL, * tmpu2 = NULL; /* Map pc for parsec */ tmpu = ut_get_unit_by_name(SI, "parsec"); ut_map_symbol_to_unit("pc", UT_UTF8, tmpu); ut_free(tmpu); tmpu = NULL; /* astronomical_unit aliases */ tmpu = ut_get_unit_by_name(SI, "astronomical_unit"); ut_map_symbol_to_unit("au", UT_UTF8, tmpu); ut_map_symbol_to_unit("AU", UT_UTF8, tmpu); ut_map_symbol_to_unit("ua", UT_UTF8, tmpu); ut_map_symbol_to_unit("astronomicalunit", UT_UTF8, tmpu); ut_free(tmpu); tmpu = NULL; /* as symbol for arcsec */ tmpu = ut_get_unit_by_name(SI, "arcsec"); if (!tmpu) GYOTO_ERROR("error initializing arcsec unit"); ut_map_symbol_to_unit("as", UT_UTF8, tmpu); ut_free(tmpu); tmpu = NULL; /* sunradius */ tmpu = ut_get_unit_by_name(SI, "meter"); tmpu2 = ut_scale(GYOTO_SUN_RADIUS, tmpu); ut_map_symbol_to_unit("sunradius", UT_UTF8, tmpu2); ut_free(tmpu2); ut_free(tmpu); /* ly */ tmpu = ut_get_unit_by_name(SI, "light_year"); ut_map_symbol_to_unit("ly", UT_UTF8, tmpu); ut_free(tmpu); /* sunmass */ tmpu = ut_get_unit_by_symbol(SI, "kg"); tmpu2 = ut_scale(GYOTO_SUN_MASS, tmpu); ut_map_symbol_to_unit("sunmass", UT_UTF8, tmpu2); ut_free(tmpu2); ut_free(tmpu); /* Jansky */ tmpu = ut_parse(SI, "W.m-2.Hz-1", UT_UTF8); if (!tmpu) GYOTO_ERROR("Cannot initialize Jansky"); tmpu2=ut_scale(1e-26, tmpu); ut_map_name_to_unit("Jansky", UT_UTF8, tmpu2); ut_map_symbol_to_unit("Jy", UT_UTF8, tmpu2); ut_free(tmpu2); ut_free(tmpu); Meter = new Unit("meter"); Second = new Unit("second"); KiloGram = new Unit("kilogram"); #endif } #ifdef HAVE_UDUNITS /* Unit class */ Unit::Unit(const string &unit) : unit_(NULL), kind_(unit) { # ifdef GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(kind_); # endif if (kind_!="") { unit_ = ut_parse(SI, unit.c_str(), UT_UTF8); # ifdef GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(unit_); # endif if (!unit_) GYOTO_ERROR(string("Error initializing Unit: ")+unit); } } Unit::Unit(char const * const unit) : unit_(NULL), kind_(unit) { # ifdef GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(kind_); # endif if (kind_!="") { unit_ = ut_parse(SI, unit, UT_UTF8); # ifdef GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(unit_); # endif if (!unit_) GYOTO_ERROR(string("Error initializing Unit: ")+unit); } } Unit::~Unit() { ut_free(unit_); } double Unit::To(double val, const Unit &from_unit) { return Converter(from_unit, *this)(val); } double Unit::From(double val, const Unit &to_unit) { return Converter(*this, to_unit)(val); } Unit::operator std::string() const { return kind_; } Unit::operator ut_unit*() const { return unit_; } /* Converter */ Converter::Converter() : converter_(cv_get_trivial()) {} Converter::Converter(const Gyoto::Units::Unit &from, const Gyoto::Units::Unit &to) : converter_(NULL) { reset(from, to); } void Converter::reset() { if (converter_) cv_free(converter_); converter_ = cv_get_trivial(); } void Converter::reset(const Gyoto::Units::Unit &from, const Gyoto::Units::Unit &to) { if (converter_) { cv_free(converter_); converter_=NULL; } if ((ut_unit*)(from) && (ut_unit*)(to)) { if (areConvertible(from, to)) converter_ = ut_get_converter(from, to); else { stringstream ss; ss << "Unsupported conversion: from \"" << string(from) << "\" to " << string(to) << "\""; GYOTO_ERROR(ss.str()); } } else reset(); } Converter::~Converter() { if (converter_) { cv_free(converter_); converter_ = NULL; } } double Converter::operator()(double val) const { return cv_convert_double(converter_, val); } ut_system * Gyoto::Units::getSystem() { return SI; } #endif double Gyoto::Units::ToMeters(double val, const string &unit, const SmartPointer &gg) { if (unit=="" || unit=="m") return val ; if (unit=="geometrical") { if (gg) return val * gg -> unitLength(); else GYOTO_ERROR("Metric required for geometrical -> meter conversion"); } # ifdef HAVE_UDUNITS Unit from(unit); if (areConvertible(from, *Meter)) return Meter->To(val, from); if (areConvertible(from, *Second)) return Second->To(val, from)*GYOTO_C; return GYOTO_C/ToHerz(val, unit); # else if (unit=="cm") return val * 1e-2; if (unit=="km") return val * 1e3; if (unit=="sunradius") return val * GYOTO_SUN_RADIUS; if ((unit=="astronomicalunit") || (unit=="astronomical_unit") || (unit=="AU") || (unit=="au") || (unit=="ua")) return val * GYOTO_ASTRONOMICAL_UNIT; if (unit=="ly") return val * GYOTO_LIGHT_YEAR; if (unit=="pc") return val * GYOTO_KPC * 1e-3; if (unit=="kpc") return val * GYOTO_KPC; if (unit=="Mpc") return val * GYOTO_KPC * 1e3; stringstream ss; ss << "Unsupported conversion: \"" << unit; GYOTO_ERROR(ss.str()); return 0; # endif } double Gyoto::Units::FromMeters(double val, const string &unit, const SmartPointer &gg) { if ((unit=="") || (unit=="m")) return val ; if (unit=="geometrical") { if (gg) return val / gg -> unitLength(); else GYOTO_ERROR("Metric required for meter -> geometrical conversion"); } # ifdef HAVE_UDUNITS Unit to (unit); if (areConvertible(to, *Meter)) return Meter->From(val, to); if (areConvertible(to, *Second)) return Second->From(val*GYOTO_C, to); return FromHerz(GYOTO_C/val, unit); # else if (unit=="cm") return val * 1e2; if (unit=="km") return val * 1e-3; if (unit=="sunradius") return val / GYOTO_SUN_RADIUS; if ((unit=="astronomicalunit") || (unit=="astronomical_unit") || (unit=="AU") || (unit=="au") || (unit=="ua")) return val / GYOTO_ASTRONOMICAL_UNIT; if (unit=="ly") return val / GYOTO_LIGHT_YEAR; if (unit=="pc") return val / GYOTO_KPC * 1e3; if (unit=="kpc") return val / GYOTO_KPC; if (unit=="Mpc") return val / GYOTO_KPC * 1e-3; stringstream ss; ss << "Unsupported conversion: \"" << unit; GYOTO_ERROR(ss.str()); return 0; # endif } double Gyoto::Units::ToSeconds(double val, const string &unit, const SmartPointer &gg) { # ifdef GYOTO_DEBUG_ENABLED GYOTO_IF_DEBUG GYOTO_DEBUG_EXPR(val); GYOTO_DEBUG_EXPR(unit); GYOTO_DEBUG_EXPR(gg); GYOTO_ENDIF_DEBUG # endif if (unit=="" || unit=="s") ; else if (unit=="geometrical_time" || unit=="geometrical") { if (unit=="geometrical") GYOTO_WARNING << "Please use \"geometrical_time\" instead of " "\"geometrical\" for time unit, \"geometrical\" in this context " "is deprecated and will be removed soon"; if (gg) val *= gg -> unitLength() / GYOTO_C ; else GYOTO_ERROR("Metric required for geometrical_time -> second conversion"); } # ifdef HAVE_UDUNITS else { Unit from (unit); if (areConvertible(from, *Meter)) val=Meter->To(val, from)/GYOTO_C; else val = Second->To(val, from); } # else else if (unit=="min") val *= 60. ; else if (unit=="h") val *= 3600. ; else if (unit=="d") val *= 86400. ; else if (unit=="yr") val *= 3.15576e+07; else if (unit=="kyr") val *= 3.15576e+10; else { stringstream ss; ss << "Screen::time(): unknown unit \"" << unit << "\". Accepted units: " << "[s] geometrical min h d y"; GYOTO_ERROR (ss.str()); } # endif return val; } double Gyoto::Units::FromSeconds(double val, const string &unit, const SmartPointer &gg) { if (unit=="" || unit=="s") ; else if (unit=="geometrical_time" || unit=="geometrical") { if (unit=="geometrical") GYOTO_WARNING << "Please use \"geometrical_time\" instead of " "\"geometrical\" for time unit, \"geometrical\" in this context " "is deprecated and will be removed soon"; if (gg) val *= GYOTO_C / gg -> unitLength() ; else GYOTO_ERROR("Metric required for second -> geometrical_time conversion"); } # ifdef HAVE_UDUNITS else { Unit to (unit); if (areConvertible(to, *Meter)) val=Meter->From(val*GYOTO_C, to); else val = Second->From(val, to); } # else else if (unit=="min") val /= 60. ; else if (unit=="h") val /= 3600. ; else if (unit=="d") val /= 86400. ; else if (unit=="yr") val /= 3.15576e+07; else if (unit=="kyr") val /= 3.15576e+10; else { stringstream ss; ss << "Screen::time(): unknown unit \"" << unit << "\". Accepted units: " << "[s] geometrical min h d y"; GYOTO_ERROR (ss.str()); } # endif return val; } double Gyoto::Units::ToKilograms(double val, const string &unit) { # ifdef HAVE_UDUNITS if (unit=="" || unit=="kg") return val; return KiloGram->To(val, unit); # else if (unit=="" || unit=="kg") ; // do nothing ! else if (unit=="sunmass") val *= GYOTO_SUN_MASS; else if (unit=="g") val*= 1e-3; else { stringstream ss; ss << "Unsupported mass unit: \"" << unit << "\". Supported units: [kg] g sunmass"; GYOTO_ERROR(ss.str()); } return val; # endif } double Gyoto::Units::FromKilograms(double val, const string &unit) { if (unit=="" || unit=="kg") return val; # ifdef HAVE_UDUNITS return KiloGram->From(val, unit); # else else if (unit=="sunmass") val /= GYOTO_SUN_MASS; else if (unit=="g") val*= 1e3; else { stringstream ss; ss << "Unsupported mass unit: \"" << unit << "\". Supported units: [kg] g sunmass"; GYOTO_ERROR(ss.str()); } return val; # endif } double Gyoto::Units::ToGeometrical(double val, const string &unit, const SmartPointer &gg) { if (unit == "" || unit == "geometrical") return val; if (!gg) GYOTO_ERROR("Need Metric to convert to geometrical units"); return ToMeters(val, unit) / gg->unitLength(); } double Gyoto::Units::FromGeometrical(double val, const string &unit, const SmartPointer &gg) { if (unit == "" || unit == "geometrical") return val; if (!gg) GYOTO_ERROR("Need Metric to convert from geometrical units"); return FromMeters(val * gg->unitLength(), unit); } double Gyoto::Units::ToGeometricalTime(double val, const string &unit, const SmartPointer &gg) { if (unit == "" || unit == "geometrical_time") return val; if (!gg) GYOTO_ERROR("Need Metric to convert to geometrical units"); return ToSeconds(val, unit) / gg->unitLength() * GYOTO_C; } double Gyoto::Units::FromGeometricalTime(double val, const string &unit, const SmartPointer &gg) { if (unit == "" || unit == "geometrical_time") return val; if (!gg) GYOTO_ERROR("Need Metric to convert from geometrical units"); return FromSeconds(val * gg->unitLength() / GYOTO_C, unit); } double Gyoto::Units::ToHerz(double value, const string &unit) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "converting " << value << string(unit) << "to Herz" << endl; # endif if (unit == "" || unit == "Hz") return value; # ifdef HAVE_UDUNITS Unit from (unit), Hz("Hz"); if (areConvertible(from, Hz)) return Hz.To(value, from); if (areConvertible(from, *Meter)) return GYOTO_C/Meter->To(value, from); Unit eV("eV"); if (areConvertible(from, eV)) return eV.To(value, from) * GYOTO_eV2Hz; stringstream ss; ss << "Units::ToHerz(): unknown unit \"" << unit << "\"."; GYOTO_ERROR (ss.str()); # else GYOTO_WARNING_UDUNITS(unit, "Hz"); return value; # endif GYOTO_ERROR("unit conversion failed"); return 0.; } double Gyoto::Units::FromHerz(double value, const string &unit) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "converting " << value << "Hz to " << string(unit) << endl; # endif # ifdef HAVE_UDUNITS if (unit == "" || unit == "Hz") return value; Unit to(unit), Hz("Hz"); if (areConvertible(to, Hz)) return Hz.From(value, to); if (areConvertible(to, *Meter)) return Meter->From(GYOTO_C/value, to); Unit eV("eV"); if (areConvertible(to, eV)) return eV.From(value / GYOTO_eV2Hz, to); stringstream ss; ss << "Units::ToHerz(): unknown unit \"" << unit << "\"."; GYOTO_ERROR (ss.str()); # else GYOTO_WARNING_UDUNITS(unit, "Hz"); # endif return 0.; } # ifdef HAVE_UDUNITS bool Gyoto::Units::areConvertible(const Unit &unit1, const Unit &unit2) { return ut_are_convertible(unit1, unit2); } # endif Gyoto-2.0.2/lib/DeformedTorus.C000066400000000000000000000231311455254334400162610ustar00rootroot00000000000000#include "GyotoDeformedTorus.h" #include "GyotoFactoryMessenger.h" #include "GyotoUtils.h" #include "GyotoPhoton.h" #include "GyotoDefs.h" #include "GyotoSpectrum.h" #include #include #include #include #include using namespace Gyoto; using namespace Gyoto::Astrobj; using namespace std; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(DeformedTorus, "Slender torus subject to simple time-periodic deformations") GYOTO_PROPERTY_SPECTRUM(DeformedTorus, Spectrum, spectrum) GYOTO_PROPERTY_DOUBLE(DeformedTorus, LargeRadius, largeRadius) GYOTO_PROPERTY_DOUBLE(DeformedTorus, Beta, beta) GYOTO_PROPERTY_DOUBLE(DeformedTorus, BetaSt, betaSt) GYOTO_PROPERTY_DOUBLE(DeformedTorus, Eta, eta) GYOTO_PROPERTY_UNSIGNED_LONG(DeformedTorus, Mode, mode) GYOTO_PROPERTY_STRING(DeformedTorus, PerturbKind, perturbKind) GYOTO_PROPERTY_END(DeformedTorus, Standard::properties) // Accessors GYOTO_PROPERTY_ACCESSORS(DeformedTorus, SmartPointer, spectrum_, spectrum) GYOTO_PROPERTY_ACCESSORS(DeformedTorus, double, c_, largeRadius) GYOTO_PROPERTY_ACCESSORS_SPECIAL(DeformedTorus, double, param_beta_, beta, if (param_beta_>=1.) GYOTO_ERROR("In DeformedTorus.C: beta should be << 1"); , ) GYOTO_PROPERTY_ACCESSORS(DeformedTorus, double, param_beta_st_, betaSt) GYOTO_PROPERTY_ACCESSORS(DeformedTorus, double, param_eta_, eta) GYOTO_PROPERTY_ACCESSORS(DeformedTorus, unsigned long, mode_, mode) void DeformedTorus::perturbKind(std::string const &k) { if (k == "RadialTranslation") perturb_kind_ = RadialTranslation; else if (k == "VerticalTranslation") perturb_kind_ = VerticalTranslation; else if (k == "Rotation") perturb_kind_ = Rotation; else if (k == "Expansion") perturb_kind_ = Expansion; else if (k == "RadialShear") perturb_kind_ = RadialShear; else if (k == "VerticalShear") perturb_kind_ = VerticalShear; else if (k == "PureShear") perturb_kind_ = PureShear; else { string errmsg="unknown perturbation kind: '"; errmsg += k + "'"; GYOTO_ERROR(errmsg.c_str()); } } std::string DeformedTorus::perturbKind() const { switch (perturb_kind_) { case RadialTranslation: return "RadialTranslation"; case VerticalTranslation: return "VerticalTranslation"; case Rotation: return "Rotation"; case Expansion: return "Expansion"; case RadialShear: return "RadialShear"; case VerticalShear: return "VerticalShear"; case PureShear: return "PureShear"; default: GYOTO_ERROR("Unknown perturbation kind"); } return ""; } /// Gyoto::Astrobj::DeformedTorus::DeformedTorus() : Standard("DeformedTorus"), gg_(NULL), spectrum_(NULL), c_(10.8), mode_(0), param_beta_(0.01), param_beta_st_(0.01), param_eta_(0.01), perturb_kind_(RadialTranslation) { GYOTO_DEBUG << "Building DeformedTorus" << endl; } Gyoto::Astrobj::DeformedTorus::DeformedTorus(const DeformedTorus &orig) : Standard(orig), gg_(NULL), spectrum_(NULL), c_(orig.c_), mode_(orig.mode_), param_beta_(orig.param_beta_), param_beta_st_(orig.param_beta_st_), param_eta_(orig.param_eta_), perturb_kind_(orig.perturb_kind_) { if (orig.gg_()) { gg_=orig.gg_->clone(); Standard::gg_ = gg_; } if (orig.spectrum_()) spectrum_ = orig.spectrum_->clone(); GYOTO_DEBUG << "Copying DeformedTorus" << endl; } DeformedTorus * DeformedTorus::clone() const { return new DeformedTorus(*this); } Gyoto::Astrobj::DeformedTorus::~DeformedTorus() { GYOTO_DEBUG << "Destroying DeformedTorus" << endl; } double DeformedTorus::operator()(double const pos[4]) { // needed: operator()() < 0. <=> inside torus double posc[4]={0.,c_,M_PI/2.,0.};//don't care about t and phi double g_rr=gg_->gmunu(posc,1,1);// covar components double g_thth=gg_->gmunu(posc,2,2); double aa=gg_->spin(); double Omegac=1./(pow(c_,1.5)+aa); double omr2=1.-6./c_+8.*aa*pow(c_,-1.5) -3.*aa*aa/(c_*c_); double omth2=1.-4*aa*pow(c_,-1.5) +3.*aa*aa/(c_*c_); double x_bar=1./param_beta_ *sqrt(g_rr)*(pos[1]-c_)/c_; double xb2=x_bar*x_bar; double y_bar=1./param_beta_ *sqrt(g_thth)*(M_PI/2.-pos[2])/c_; double yb2=y_bar*y_bar; double a1=0., a2=0., a3=0., b1=0., b2=0., b3=0.; switch (perturb_kind_) { case 1: // Radial translation a1=1.;a3=param_eta_*sin(Omegac*pos[0]); b2=1.; break; case 2: // Vertical translation a1=1.; b2=1.;b3=param_eta_*sin(Omegac*pos[0]); break; case 3: // Rotation a1=cos(Omegac*pos[0]);a2=sin(Omegac*pos[0]); b1=-sin(Omegac*pos[0]);b2=cos(Omegac*pos[0]); break; case 4: // Expansion a1=1.+param_eta_*sin(Omegac*pos[0]); b2=1.+param_eta_*sin(Omegac*pos[0]); break; case 5: // Simple shear radial a1=1.;a2=param_eta_*sin(Omegac*pos[0]); b2=1.; break; case 6: // Simple shear vertical a1=1.; b1=param_eta_*sin(Omegac*pos[0]);b2=1.; break; case 7: // Pure shear a1=1.+param_eta_*sin(Omegac*pos[0]); b2=1./a1; break; default: GYOTO_ERROR("In DeformedTorus.C::operator():" "Unrecognized perturbation kind"); } double deforx = a1*x_bar+a2*y_bar+a3; double defory = b1*x_bar+b2*y_bar+b3; double ff = omr2*deforx*deforx +omth2*defory*defory -1.; return ff; } void DeformedTorus::getVelocity(double const pos[4], double vel[4]) { //cout << "pos in getvel: " << pos[2] << " " << pos[3] << endl; double aa=gg_->spin(); // Computations at the torus center for Omegac, lc double posc[4]={0.,c_,M_PI/2.,0.};//don't care about t and phi double g_tt=gg_->gmunu(posc,0,0);// covar components double g_rr=gg_->gmunu(posc,1,1); double g_thth=gg_->gmunu(posc,2,2); double g_tp=gg_->gmunu(posc,0,3); double g_pp=gg_->gmunu(posc,3,3); double Omegac=1./(pow(c_,1.5)+aa); // Kepler rotation vel double lc=-(Omegac*g_pp+g_tp)/(Omegac*g_tp+g_tt); // Rescaled ang mom // Now computations at the torus surface for gmunu_up coef double gtt=gg_->gmunu_up(pos,0,0); double gthth=gg_->gmunu_up(pos,2,2); double grr=gg_->gmunu_up(pos,1,1); double gpp=gg_->gmunu_up(pos,3,3); double gtp=gg_->gmunu_up(pos,0,3); // xbar and ybar unperturbed double xbar=1./param_beta_ *sqrt(g_rr)*(pos[1]-c_)/c_; double ybar=1./param_beta_ *sqrt(g_thth)*(M_PI/2.-pos[2])/c_; // dr/dt and dtheta/dt depending on transformation double drdt=0., dthdt=0.; switch (perturb_kind_) { case 1: // Radial translation drdt=c_/sqrt(g_rr)*param_beta_*param_eta_ *Omegac*cos(Omegac*pos[0]); break; case 2: // Vertical translation dthdt=-c_/sqrt(g_thth)*param_beta_*param_eta_ *Omegac*cos(Omegac*pos[0]); break; case 3: // Rotation { double x0 = xbar*cos(Omegac*pos[0])-ybar*sin(Omegac*pos[0]), y0 = xbar*sin(Omegac*pos[0])+ybar*cos(Omegac*pos[0]); drdt = c_/sqrt(g_rr)*param_beta_*Omegac *(-sin(Omegac*pos[0])*x0+cos(Omegac*pos[0])*y0); dthdt = -c_/sqrt(g_thth)*param_beta_*Omegac *(-cos(Omegac*pos[0])*x0-sin(Omegac*pos[0])*y0); } break; case 4: // Expansion { double x0 = xbar/(1.+param_eta_*sin(Omegac*pos[0])), y0 = ybar/(1.+param_eta_*sin(Omegac*pos[0])); drdt = c_/sqrt(g_rr)*param_beta_*Omegac*param_eta_ *cos(Omegac*pos[0])*x0; dthdt = -c_/sqrt(g_thth)*param_beta_*Omegac*param_eta_ *cos(Omegac*pos[0])*y0; } break; case 5: // Simple shear radial { double y0 = ybar; drdt = c_/sqrt(g_rr)*param_beta_*Omegac*param_eta_ *cos(Omegac*pos[0])*y0; } break; case 6: // Simple shear vertical { double x0 = xbar; dthdt = -c_/sqrt(g_thth)*param_beta_*Omegac*param_eta_ *cos(Omegac*pos[0])*x0; } break; case 7: // Pure shear { double x0 = xbar/(1.+param_eta_*sin(Omegac*pos[0])), y0 = ybar*(1.+param_eta_*sin(Omegac*pos[0])); drdt = c_/sqrt(g_rr)*param_beta_*Omegac*param_eta_ *cos(Omegac*pos[0])*x0; dthdt = -c_/sqrt(g_thth)*param_beta_*Omegac*param_eta_ *( -cos(Omegac*pos[0]) /( (1.+param_eta_*sin(Omegac*pos[0]))* (1.+param_eta_*sin(Omegac*pos[0])) ) )*y0; } break; default: GYOTO_ERROR("In DeformedTorus.C::operator():" "Unrecognized perturbation kind"); } double u_t2 = -1./ (gtt+lc*lc*gpp-2.*lc*gtp+drdt*drdt*grr+dthdt*dthdt*gthth); if (u_t2 < 0.) { stringstream ss; ss << "DeformedTorus::getVelocity(pos=["; for (int i=0; i<3; ++i) ss << pos[i] << ", "; ss << pos[3] << "]): u_t^2 is negative."; GYOTO_ERROR(ss.str()); } double u_t=-sqrt(u_t2); double u_p=-lc*u_t; vel[0] = gtt*u_t+gtp*u_p; vel[1] = drdt*vel[0]; vel[2] = dthdt*vel[0]; vel[3] = gpp*u_p+gtp*u_t; } void DeformedTorus::metric(Gyoto::SmartPointer met) { if (met->kind() != "KerrBL") GYOTO_ERROR("DeformedTorus::metric(): only KerrBL, please"); //if (gg_) gg_ -> unhook(this); gg_ = SmartPointer(met); Generic::gg_ = gg_; //if (gg_) gg_ -> hook(this); } /*int DeformedTorus::Impact(Gyoto::Photon* ph, size_t index, Astrobj::Properties *data) { double p1[8], p2[8]; ph->getCoord(index, p1); ph->getCoord(index+1, p2); double tmin, minval; if (gg_ -> coordKind() == GYOTO_COORDKIND_SPHERICAL){ //Allows theta and phi to be in the correct range checkPhiTheta(p1); checkPhiTheta(p2); } double t1 = p1[0], t2 = p2[0]; double val1=(*this)(p1), val2=(*this)(p2); return 0; }*/ double DeformedTorus::emission(double nu_em, double, state_t const &, double const *) const{ if (flag_radtransf_) GYOTO_ERROR("Radiative transfer not implemented for DeformedTorus."); //cout << "in flaring emission" << endl; //return (*spectrum_)(nu_em); return 1.; } Gyoto-2.0.2/lib/DirectionalDisk.C000066400000000000000000000624451455254334400165620ustar00rootroot00000000000000/* Copyright 2014, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoPhoton.h" #include "GyotoDirectionalDisk.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoProperty.h" #include "GyotoKerrBL.h" #include "GyotoKerrKS.h" #ifdef GYOTO_USE_CFITSIO #include #define throwCfitsioError(status) \ { fits_get_errstatus(status, ermsg); GYOTO_ERROR(ermsg); } #endif #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; //// Properties: GYOTO_PROPERTY_START(DirectionalDisk) GYOTO_PROPERTY_FILENAME(DirectionalDisk, File, file) GYOTO_PROPERTY_DOUBLE(DirectionalDisk, LampAltitude, lampaltitude) GYOTO_PROPERTY_VECTOR_DOUBLE(DirectionalDisk, LampCutOffsIneV, lampcutoffsinev) GYOTO_PROPERTY_BOOL(DirectionalDisk, AverageOverAngle, DontAverageOverAngle, averageOverAngle) GYOTO_PROPERTY_END(DirectionalDisk, ThinDisk::properties) void DirectionalDisk::fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const { if (p.name == "File") fmp->setParameter("File", (filename_.compare(0,1,"!") ? filename_ : filename_.substr(1)) ); else ThinDisk::fillProperty(fmp, p); } //// DirectionalDisk::DirectionalDisk() : ThinDisk("DirectionalDisk"), filename_(""), emission_(NULL), radius_(NULL), cosi_(NULL), freq_(NULL), nnu_(0), ni_(0), nr_(0), lampaltitude_(10.), minfreq_computed_(DBL_MIN), maxfreq_computed_(DBL_MAX), minfreq_lampframe_(1.), maxfreq_lampframe_(1e30), average_over_angle_(0) { GYOTO_DEBUG << "DirectionalDisk Construction" << endl; } DirectionalDisk::DirectionalDisk(const DirectionalDisk& o) : ThinDisk(o), filename_(o.filename_), emission_(NULL), radius_(NULL), cosi_(NULL), freq_(NULL), nnu_(o.nnu_), ni_(o.ni_), nr_(o.nr_), lampaltitude_(o.lampaltitude_), minfreq_computed_(o.minfreq_computed_), maxfreq_computed_(o.maxfreq_computed_), minfreq_lampframe_(o.minfreq_lampframe_), maxfreq_lampframe_(o.maxfreq_lampframe_), average_over_angle_(o.average_over_angle_) { GYOTO_DEBUG << "DirectionalDisk Copy" << endl; size_t ncells = 0; if (o.emission_) { emission_ = new double[ncells = nnu_ * ni_ * nr_]; memcpy(emission_, o.emission_, ncells * sizeof(double)); } if (o.freq_) { freq_ = new double[ncells = nnu_]; memcpy(freq_, o.freq_, ncells * sizeof(double)); } if (o.cosi_) { cosi_ = new double[ncells = ni_]; memcpy(cosi_, o.cosi_, ncells * sizeof(double)); } if (o.radius_) { radius_ = new double[ncells = nr_]; memcpy(radius_, o.radius_, ncells * sizeof(double)); } } DirectionalDisk* DirectionalDisk::clone() const { return new DirectionalDisk(*this); } DirectionalDisk::~DirectionalDisk() { GYOTO_DEBUG << "DirectionalDisk Destruction" << endl; if (emission_) delete [] emission_; if (radius_) delete [] radius_; if (cosi_) delete [] cosi_; if (freq_) delete [] freq_; } void DirectionalDisk::setEmission(double * pattern) { emission_ = pattern; } void DirectionalDisk::radius(double * pattern) { radius_ = pattern; } void DirectionalDisk::copyIntensity(double const *const pattern, size_t const naxes[3]) { GYOTO_DEBUG << endl; if (emission_) { GYOTO_DEBUG << "delete [] emission_;" << endl; delete [] emission_; emission_ = NULL; } if (pattern) { size_t nel; if (nnu_ != naxes[0]) { GYOTO_DEBUG <<"nnu_ changed, freeing freq_" << endl; if (freq_) { delete [] freq_; freq_ = NULL; } } if (ni_ != naxes[1]) { GYOTO_DEBUG <<"ni_ changed, freeing freq_ and cosi_" << endl; if (freq_) { delete [] freq_; freq_ = NULL; } if (cosi_) { delete [] cosi_; cosi_= NULL; } } if (nr_ != naxes[2]) { GYOTO_DEBUG <<"nr_ changed, freeing freq_, cosi_ and radius_" << endl; if (freq_) { delete [] freq_; freq_ = NULL; } if (cosi_) { delete [] cosi_; cosi_= NULL; } if (radius_) { delete [] radius_; radius_ = NULL; } } if (!(nel=(nnu_ = naxes[0]) * (ni_=naxes[1]) * (nr_=naxes[2]))) GYOTO_ERROR( "dimensions can't be null"); GYOTO_DEBUG << "allocate emission_;" << endl; emission_ = new double[nel]; GYOTO_DEBUG << "pattern >> emission_" << endl; memcpy(emission_, pattern, nel*sizeof(double)); } } double const * DirectionalDisk::getIntensity() const { return emission_; } void DirectionalDisk::getIntensityNaxes( size_t naxes[3] ) const { naxes[0] = nnu_; naxes[1] = ni_; naxes[2] = nr_; } void DirectionalDisk::copyGridRadius(double const *const rad, size_t nr) { GYOTO_DEBUG << endl; if (radius_) { GYOTO_DEBUG << "delete [] radius_;" << endl; delete [] radius_; radius_ = NULL; } if (rad) { if (!emission_) GYOTO_ERROR("Please use copyIntensity() before copyGridRadius()"); if (nr_ != nr) GYOTO_ERROR("emission_ and radius_ have inconsistent dimensions"); GYOTO_DEBUG << "allocate radius_;" << endl; radius_ = new double[nr_]; GYOTO_DEBUG << "radius >> radius_" << endl; memcpy(radius_, rad, nr_*sizeof(double)); } } double const * DirectionalDisk::getGridRadius() const { return radius_; } void DirectionalDisk::copyGridCosi(double const *const cosi, size_t ni) { GYOTO_DEBUG << endl; if (cosi_) { GYOTO_DEBUG << "delete [] cosi_;" << endl; delete [] cosi_; cosi_ = NULL; } if (cosi) { if (!emission_) GYOTO_ERROR("Please use copyIntensity() before copyGridCosi()"); if (ni_ != ni) GYOTO_ERROR("emission_ and cosi_ have inconsistent dimensions"); GYOTO_DEBUG << "allocate cosi_;" << endl; cosi_ = new double[ni_]; GYOTO_DEBUG << "cosi >> cosi_" << endl; memcpy(cosi_, cosi, ni_*sizeof(double)); } } double const * DirectionalDisk::getGridCosi() const { return cosi_; } void DirectionalDisk::copyGridFreq(double const *const freq, size_t nnu) { GYOTO_DEBUG << endl; if (freq_) { GYOTO_DEBUG << "delete [] freq_;" << endl; delete [] freq_; freq_ = NULL; } if (freq) { if (!emission_) GYOTO_ERROR("Please use copyIntensity() before copyGridFreq()"); if (nnu_ != nnu) GYOTO_ERROR("emission_ and freq_ have inconsistent dimensions"); GYOTO_DEBUG << "allocate freq_;" << endl; freq_ = new double[nnu_]; GYOTO_DEBUG << "freq >> freq_" << endl; memcpy(freq_, freq, nnu_*sizeof(double)); } } double const * DirectionalDisk::getGridFreq() const { return freq_; } void DirectionalDisk::averageOverAngle(bool t) {average_over_angle_=t;} bool DirectionalDisk::averageOverAngle()const {return average_over_angle_;} void DirectionalDisk::file(std::string const &f) { # ifdef GYOTO_USE_CFITSIO fitsRead(f); # else GYOTO_ERROR("This Gyoto has no FITS i/o"); # endif } std::string DirectionalDisk::file() const { return filename_; } void DirectionalDisk::lampaltitude(double zz) { lampaltitude_ = zz; } double DirectionalDisk::lampaltitude() const { return lampaltitude_; } void DirectionalDisk::lampcutoffsinev(std::vector const &v) { if (v.size() != 2) GYOTO_ERROR("In DirectionalDisk: Only 2 arguments to define lamp energy range"); minfreq_lampframe_ = v[0]*GYOTO_eV2Hz; maxfreq_lampframe_ = v[1]*GYOTO_eV2Hz; } std::vector DirectionalDisk::lampcutoffsinev() const { std::vector v (2, 0.); v[0]=minfreq_lampframe_; v[1]=maxfreq_lampframe_; return v; } #ifdef GYOTO_USE_CFITSIO void DirectionalDisk::fitsRead(string filename) { GYOTO_MSG << "DirectionalDisk reading FITS file: " << filename << endl; filename_ = filename; char* pixfile = const_cast(filename_.c_str()); fitsfile* fptr = NULL; int status = 0; int anynul = 0; long naxes [] = {1, 1, 1}; long fpixel[] = {1,1,1}; long inc [] = {1,1,1}; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() GYOTO_DEBUG << "DirectionalDisk::readFile(): opening file" << endl; if (fits_open_file(&fptr, pixfile, 0, &status)) throwCfitsioError(status) ; ////// FIND MANDATORY EMISSION HDU, READ KWDS & DATA /////// GYOTO_DEBUG << "DirectionalDisk::readFile(): search emission HDU" << endl; if (fits_movnam_hdu(fptr, ANY_HDU, const_cast("GYOTO DirectionalDisk emission"), 0, &status)) throwCfitsioError(status) ; GYOTO_DEBUG << "DirectionalDisk::readFile(): get image size" << endl; if (fits_get_img_size(fptr, 3, naxes, &status)) throwCfitsioError(status) ; //update nnu_, ni_, nr_ nnu_ = naxes[0]; ni_ = naxes[1]; nr_ = naxes[2]; if (emission_) { delete [] emission_; emission_ = NULL; } emission_ = new double[nnu_ * ni_ * nr_]; if (debug()) cerr << "DirectionalDisk::readFile(): read emission: " << "nnu_=" << nnu_ << ", ni_="<("GYOTO DirectionalDisk freq"), 0, &status)) throwCfitsioError(status) ; if (fits_get_img_size(fptr, 1, naxes, &status)) throwCfitsioError(status) ; if (size_t(naxes[0]) != nnu_) GYOTO_ERROR("DirectionalDisk::readFile(): freq array not conformable"); if (freq_) { delete [] freq_; freq_ = NULL; } freq_ = new double[nnu_]; if (fits_read_subset(fptr, TDOUBLE, fpixel, naxes, inc, 0, freq_,&anynul,&status)) { delete [] freq_; freq_=NULL; throwCfitsioError(status) ; } // Computing min and max of freq_ minfreq_computed_ = DBL_MAX; maxfreq_computed_ = DBL_MIN; for (int ii=0;iimaxfreq_computed_) maxfreq_computed_=freq_[ii]; } GYOTO_DEBUG << "Min, max freq= " << minfreq_computed_ << " " << maxfreq_computed_ << endl; ////// FIND MANDATORY COSI HDU /////// if (fits_movnam_hdu(fptr, ANY_HDU, const_cast("GYOTO DirectionalDisk cosi"), 0, &status)) throwCfitsioError(status) ; if (fits_get_img_size(fptr, 1, naxes, &status)) throwCfitsioError(status) ; if (size_t(naxes[0]) != ni_) GYOTO_ERROR("DirectionalDisk::readFile(): cosi array not conformable"); if (cosi_) { delete [] cosi_; cosi_ = NULL; } cosi_ = new double[ni_]; if (fits_read_subset(fptr, TDOUBLE, fpixel, naxes, inc, 0, cosi_,&anynul,&status)) { delete [] cosi_; cosi_=NULL; throwCfitsioError(status) ; } ////// FIND MANDATORY RADIUS HDU /////// if (fits_movnam_hdu(fptr, ANY_HDU, const_cast("GYOTO DirectionalDisk radius"), 0, &status)) throwCfitsioError(status) ; if (fits_get_img_size(fptr, 1, naxes, &status)) throwCfitsioError(status) ; if (size_t(naxes[0]) != nr_) GYOTO_ERROR("DirectionalDisk::readFile(): radius array not conformable"); if (radius_) { delete [] radius_; radius_ = NULL; } radius_ = new double[nr_]; if (fits_read_subset(fptr, TDOUBLE, fpixel, naxes, inc, 0, radius_,&anynul,&status)) { delete [] radius_; radius_=NULL; throwCfitsioError(status) ; } ////// CLOSING FITS ///////// if (fits_close_file(fptr, &status)) throwCfitsioError(status) ; fptr = NULL; } void DirectionalDisk::fitsWrite(string filename) { if (!emission_) GYOTO_ERROR("DirectionalDisk::fitsWrite(filename): nothing to save!"); filename_ = filename; char* pixfile = const_cast(filename_.c_str()); fitsfile* fptr = NULL; int status = 0; long naxes [] = {long(nnu_), long(ni_), long(nr_)}; long fpixel[] = {1,1,1}; char * CNULL=NULL; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() ////// CREATE FILE GYOTO_DEBUG << "creating file \"" << pixfile << "\"... "; fits_create_file(&fptr, pixfile, &status); if (debug()) cerr << "done." << endl; fits_create_img(fptr, DOUBLE_IMG, 3, naxes, &status); if (status) throwCfitsioError(status) ; ////// SAVE EMISSION IN PRIMARY HDU /////// GYOTO_DEBUG << "saving emission_\n"; fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO DirectionalDisk emission"), CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, nnu_*ni_*nr_, emission_, &status); if (status) throwCfitsioError(status) ; ////// SAVE FREQ HDU /////// if (!freq_) GYOTO_ERROR("DirectionalDisk::fitsWrite(filename): no freq to save!"); GYOTO_DEBUG << "saving freq_\n"; fits_create_img(fptr, DOUBLE_IMG, 1, naxes, &status); fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO DirectionalDisk freq"), CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, nnu_, freq_, &status); if (status) throwCfitsioError(status) ; ////// SAVE COSI HDU /////// if (!cosi_) GYOTO_ERROR("DirectionalDisk::fitsWrite(filename): no cosi to save!"); GYOTO_DEBUG << "saving cosi_\n"; fits_create_img(fptr, DOUBLE_IMG, 1, naxes+1, &status); fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO DirectionalDisk cosi"), CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, ni_, cosi_, &status); if (status) throwCfitsioError(status) ; ////// SAVE RADIUS HDU /////// if (!radius_) GYOTO_ERROR("DirectionalDisk::fitsWrite(filename): no radius to save!"); GYOTO_DEBUG << "saving radius_\n"; fits_create_img(fptr, DOUBLE_IMG, 1, naxes+2, &status); fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO DirectionalDisk radius"), CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, nr_, radius_, &status); if (status) throwCfitsioError(status) ; ////// CLOSING FILE /////// GYOTO_DEBUG << "close FITS file\n"; if (fits_close_file(fptr, &status)) throwCfitsioError(status) ; fptr = NULL; } #endif void DirectionalDisk::getIndices(size_t i[3], double const co[4], double cosi, double nu) const { double rr = projectedRadius(co); if (radius_) { if (rr >= radius_[nr_-1]) i[2] = nr_-1; // emission will be 0 else { for(i[2]=0; rr > radius_[i[2]]; ++i[2]){} /* With this definition: radius_[i[2]-1] <= r < radius_[i[2]] The case i[2]=0 (if r= cosi_[ni_-1]) i[1] = ni_-1; else { for(i[1]=0; cosi > cosi_[i[1]]; ++i[1]){} /* cosi_[i[1]-1] <= cosi < cosi_[i[1]] */ } } else { GYOTO_ERROR("In DirectionalDisk::getIndices: cosi undefined!"); } if (freq_) { if (nu <= freq_[nnu_-1]) i[0] = nnu_-1; else { for(i[0]=nnu_-1; nu > freq_[i[0]]; --i[0]){} /* Caution: freq is ordered decreasingly! freq_[i[0]+1] <= nu < freq_[i[0]] */ } } else { GYOTO_ERROR("In DirectionalDisk::getIndices: freq undefined!"); } } double DirectionalDisk::emission(double nu, double, state_t const &cp, double const co[8]) const{ GYOTO_DEBUG << endl; // Checking whether the current freq is outside of // the redshifted illumination range double aa = static_cast >(gg_) -> spin(); double zz = lampaltitude_; double rr = co[1]; double gg_lampdisk = (pow(rr,1.5)+aa)/sqrt(rr*rr*rr+2*aa*pow(rr,1.5)-3*rr*rr) *sqrt((zz*zz+aa*aa-2.*zz)/(zz*zz+aa*aa)); // this is the redshift factor // linking the lamp-frame and the disk-frame, it has nothing to do with the // redshift factor between the disk and the far-away-observer frames. double minfreq_diskframe = minfreq_lampframe_*gg_lampdisk, maxfreq_diskframe = maxfreq_lampframe_*gg_lampdisk; //cout << "Limits computed= " << minfreq_computed_ << " " << maxfreq_computed_<< endl; //cout << "Limits lamp= " << minfreq_lampframe_ << " " << maxfreq_lampframe_<< endl; //cout << "Limits disk= " << minfreq_diskframe << " " << maxfreq_diskframe << endl; //cout << "Local nu= " << nu << endl; if (minfreq_diskframe < minfreq_computed_ || maxfreq_diskframe > maxfreq_computed_){ GYOTO_ERROR("In DirectionalDisk::emission(): " "bad freq value ; update LampCutOffsIneV in XML"); } // Cut-offs in disk frame: if the local freq is not inside the // redshifted illumination band, no signal if (nu < minfreq_diskframe || nu > maxfreq_diskframe) return 0.; // Compute angle between photon direction and normal double normal[4]={0.,0.,-1.,0.}; // parallel to -d_theta (upwards) double normal_norm=gg_->ScalarProd(&cp[0],normal,normal); if (normal_norm<=0.) GYOTO_ERROR("In DirectionalDisk::emission" " normal should be spacelike"); normal_norm=sqrt(normal_norm); double np = 1./normal_norm*gg_->ScalarProd(&cp[0],normal,&cp[4]), up = gg_->ScalarProd(&cp[0],co+4,&cp[4]); double cosi = fabs(-np/up); double tolcos = 0.005; GYOTO_DEBUG_EXPR(cosi); GYOTO_DEBUG_ARRAY(co, 8); GYOTO_DEBUG_ARRAY(cp, 8); if (cosi>1.){ if (fabs(cosi-1)>tolcos) GYOTO_ERROR("In DirectionalDisk: bad cos!"); cosi=1.; } //cout << "cosi= " << cosi << endl; // Don't put a "return cosi" here, see later // cos between unit normal n and tangent to photon p // is equal -n.p/u.p (u being the emitter's 4-vel); // fabs because assuming plane symmetry // Indices of the current closest grid point size_t ind[3]; // {i_nu, i_cosi, i_r} getIndices(ind, co, cosi, nu); //cout << "r, i2, nr= " << co[1] << " " << ind[2] << " " << nr_ <=radius_[nr_-1]) return 0.; if (nu<=freq_[nnu_-1] || nu>=freq_[0]) return 0.; // So here, ind[2] should be >0 and ind[0]= cosi_[ni_-1]){ // If cosi is out of the cosi_ range, bilinear interpol in nu,r size_t i1=ind[1]; //cout << "cos value unique= " << cosi_[i1] << endl; double I00 = emission_[i2l*(ni_*nnu_)+i1*nnu_+i0l], // I_{nu,r} I01 = emission_[i2u*(ni_*nnu_)+i1*nnu_+i0l], I10 = emission_[i2l*(ni_*nnu_)+i1*nnu_+i0u], I11 = emission_[i2u*(ni_*nnu_)+i1*nnu_+i0u]; //cout << "bilin dir: " << I00 << " " << I01 << " " << I10 << " " << I11 << endl; double rationu = (nu-freq_[i0l])/(freq_[i0u]-freq_[i0l]), ratior = (rr-radius_[i2l])/(radius_[i2u]-radius_[i2l]); Iem = I00+(I10-I00)*rationu +(I01-I00)*ratior +(I11-I01-I10+I00)*rationu*ratior; //cout << "I interp= " << Iem << endl; }else{ // Trilinear interpol if (ind[1]==0){ GYOTO_ERROR("In DirectionalDisk::emission " "bad cosi indice"); } size_t i1l=ind[1]-1, i1u=ind[1]; double I000 = emission_[i2l*(ni_*nnu_)+i1l*nnu_+i0l], // I_{nu,cosi,r} I100 = emission_[i2l*(ni_*nnu_)+i1l*nnu_+i0u], I110 = emission_[i2l*(ni_*nnu_)+i1u*nnu_+i0u], I010 = emission_[i2l*(ni_*nnu_)+i1u*nnu_+i0l], I001 = emission_[i2u*(ni_*nnu_)+i1l*nnu_+i0l], I101 = emission_[i2u*(ni_*nnu_)+i1l*nnu_+i0u], I111 = emission_[i2u*(ni_*nnu_)+i1u*nnu_+i0u], I011 = emission_[i2u*(ni_*nnu_)+i1u*nnu_+i0l]; //cout << "trilin dir: " << I000 << " " << I100 << " " << I110 << " " << I010 << " " << I001 << " " << I101 << " " << I111 << " " << I011 << endl; double rationu = (nu-freq_[i0l])/(freq_[i0u]-freq_[i0l]), ratioi = (cosi-cosi_[i1l])/(cosi_[i1u]-cosi_[i1l]), ratior = (rr-radius_[i2l])/(radius_[i2u]-radius_[i2l]); Iem = I000 + (I100-I000)*rationu + (I010-I000)*ratioi + (I001-I000)*ratior + (I110-I010-I100+I000)*rationu*ratioi + (I011-I010-I001+I000)*ratioi*ratior + (I101-I001-I100+I000)*rationu*ratior + (I111-I011-I101-I110+I100+I001+I010-I000)*rationu*ratioi*ratior; //cout << "I interp= " << Iem << endl; } }else{ // Average over cosi values // with bilinear interpol in nu,r double I00=0., I01=0., I10=0., I11=0.; double I00min=DBL_MAX, I00max=DBL_MIN, I01min=DBL_MAX, I01max=DBL_MIN, I10min=DBL_MAX, I10max=DBL_MIN, I11min=DBL_MAX, I11max=DBL_MIN; /* Using trapezoidal rule, I_integ = \int I(mu)*dmu, mu=cos(i) NB: in Garcia+14, they compute a flux because they don't raytrace, so they use F = 1/4pi * \int I(i) cos(i) di = 1/2 * \int I(mu) mu dmu, here we are not interested in the same quantity */ double dcostot = 0.; // will contain \int d\mu (~1 but not exactly) for (size_t ii=0; iiI00max) I00max=emission_[i2l*(ni_*nnu_)+(ii+1)*nnu_+i0l]; if (emission_[i2l*(ni_*nnu_)+(ii)*nnu_+i0l]>I00max) I00max=emission_[i2l*(ni_*nnu_)+(ii)*nnu_+i0l]; if (emission_[i2u*(ni_*nnu_)+(ii+1)*nnu_+i0l]>I01max) I01max=emission_[i2u*(ni_*nnu_)+(ii+1)*nnu_+i0l]; if (emission_[i2u*(ni_*nnu_)+(ii)*nnu_+i0l]>I01max) I01max=emission_[i2u*(ni_*nnu_)+(ii)*nnu_+i0l]; if (emission_[i2l*(ni_*nnu_)+(ii+1)*nnu_+i0u]>I10max) I10max=emission_[i2l*(ni_*nnu_)+(ii+1)*nnu_+i0u]; if (emission_[i2l*(ni_*nnu_)+(ii)*nnu_+i0u]>I10max) I10max=emission_[i2l*(ni_*nnu_)+(ii)*nnu_+i0u]; if (emission_[i2u*(ni_*nnu_)+(ii+1)*nnu_+i0u]>I11max) I11max=emission_[i2u*(ni_*nnu_)+(ii+1)*nnu_+i0u]; if (emission_[i2u*(ni_*nnu_)+(ii)*nnu_+i0u]>I11max) I11max=emission_[i2u*(ni_*nnu_)+(ii)*nnu_+i0u]; */ //cout << "Raw data 1 for I00= " << radius_[i2l]/2. << " " << radius_[i2u]/2. << " " << freq_[i0l]/GYOTO_eV2Hz << " " << freq_[i0u]/GYOTO_eV2Hz << " " << cosi_[ii] << " " << cosi_[ii+1] << endl; //cout << "Raw data 2 for I00= " << emission_[i2l*(ni_*nnu_)+(ii+1)*nnu_+i0l] << " " << emission_[i2l*(ni_*nnu_)+ii*nnu_+i0l] << endl; //cout << "IO in avg i= " << ii << " and I0= " << I00 << endl; } // Normalizing (int d co(i) is very close to 1 but not exactly 1) I00/=dcostot; I01/=dcostot; I10/=dcostot; I11/=dcostot; //cout << "bilin avg: " << I00 << " " << I01 << " " << I10 << " " << I11 << endl; //if (I00I00max || I01>I01max || I10>I10max || I11>I11max) GYOTO_ERROR("test"); double rationu = (nu-freq_[i0l])/(freq_[i0u]-freq_[i0l]), ratior = (rr-radius_[i2l])/(radius_[i2u]-radius_[i2l]); Iem = I00+(I10-I00)*rationu +(I01-I00)*ratior +(I11-I01-I10+I00)*rationu*ratior; //cout << "I interp= " << Iem << endl; } //cout << "return= " << Iem << endl; return Iem; } void DirectionalDisk::metric(SmartPointer gg) { //Metric must be KerrBL (see emission function) string kin = gg->kind(); if (kin != "KerrBL") GYOTO_ERROR("DirectionalDisk::metric(): metric must be KerrBL"); ThinDisk::metric(gg); } Gyoto-2.0.2/lib/Disk3D.C000066400000000000000000000627631455254334400145760ustar00rootroot00000000000000/* Copyright 2012-2015, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoPhoton.h" #include "GyotoDisk3D.h" #include "GyotoProperty.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrBL.h" #include "GyotoKerrKS.h" #ifdef GYOTO_USE_CFITSIO #include #define throwCfitsioError(status) \ { fits_get_errstatus(status, ermsg); GYOTO_ERROR(ermsg); } #endif #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; GYOTO_PROPERTY_START(Disk3D) GYOTO_PROPERTY_FILENAME(Disk3D, File, file) GYOTO_PROPERTY_BOOL(Disk3D, ZsymmetrizeGrid, NoZsymmetrizeGrid, zsym) GYOTO_PROPERTY_DOUBLE(Disk3D, tPattern, tPattern) GYOTO_PROPERTY_DOUBLE(Disk3D, omegaPattern, omegaPattern) GYOTO_PROPERTY_END(Disk3D, Generic::properties) void Disk3D::fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const { if (p.name == "File") fmp->setParameter("File", (filename_.compare(0,1,"!") ? filename_ : filename_.substr(1)) ); else Generic::fillProperty(fmp, p); } void Disk3D::file(std::string const &f) { #ifdef GYOTO_USE_CFITSIO fitsRead(f); #else GYOTO_ERROR("This Gyoto has no FITS i/o"); #endif } std::string Disk3D::file() const {return filename_;} void Disk3D::zsym(bool t) {zsym_=t;} bool Disk3D::zsym() const {return zsym_;} void Disk3D::tPattern(double t) {tPattern_=t;} double Disk3D::tPattern() const {return tPattern_;} void Disk3D::omegaPattern(double t) {omegaPattern_=t;} double Disk3D::omegaPattern() const {return omegaPattern_;} Disk3D::Disk3D() : Generic("Disk3D"), filename_(""), emissquant_(NULL), opacity_(NULL), velocity_(NULL), dnu_(1.), nu0_(0), nnu_(0), dphi_(0.), phimin_(-DBL_MAX), nphi_(0), phimax_(DBL_MAX), repeat_phi_(1), dz_(0.), zmin_(-DBL_MAX), nz_(0), zmax_(DBL_MAX), dr_(0.), rin_(-DBL_MAX), nr_(0), rout_(DBL_MAX), zsym_(1), tPattern_(0.), omegaPattern_(0.) { GYOTO_DEBUG << "Disk3D Construction" << endl; } Disk3D::Disk3D(const Disk3D& o) : Generic(o), filename_(o.filename_), emissquant_(NULL), opacity_(NULL), velocity_(NULL), dnu_(o.dnu_), nu0_(o.nu0_), nnu_(o.nnu_), dphi_(o.dphi_), phimin_(o.phimin_), nphi_(o.nphi_), phimax_(o.phimax_), repeat_phi_(o.repeat_phi_), dz_(o.dz_), zmin_(o.zmin_), nz_(o.nz_), zmax_(o.zmax_), dr_(o.dr_), rin_(o.rin_), nr_(o.nr_), rout_(o.rout_), zsym_(o.zsym_), tPattern_(o.tPattern_), omegaPattern_(o.omegaPattern_) { GYOTO_DEBUG << "Disk3D Copy" << endl; size_t ncells = 0; if (o.emissquant_) { emissquant_ = new double[ncells = nnu_ * nphi_ * nz_ * nr_]; memcpy(emissquant_, o.emissquant_, ncells * sizeof(double)); } if (o.opacity_) { opacity_ = new double[ncells = nnu_ * nphi_ * nz_ * nr_]; memcpy(opacity_, o.opacity_, ncells * sizeof(double)); } if (o.velocity_) { velocity_ = new double[ncells = 3 * nphi_ * nz_ * nr_]; memcpy(velocity_, o.velocity_, ncells * sizeof(double)); } } Disk3D* Disk3D::clone() const { return new Disk3D(*this); } Disk3D::~Disk3D() { GYOTO_DEBUG << "Disk3D Destruction" << endl; if (emissquant_) delete [] emissquant_; if (velocity_) delete [] velocity_; } void Disk3D::setEmissquant(double * pattern) { emissquant_ = pattern; } void Disk3D::opacity(double * pattern) { opacity_ = pattern; } void Disk3D::setVelocity(double * pattern) { velocity_ = pattern; } void Disk3D::copyEmissquant(double const *const pattern, size_t const naxes[4]) { GYOTO_DEBUG << endl; if (emissquant_) { GYOTO_DEBUG << "delete [] emissquant_;" << endl; delete [] emissquant_; emissquant_ = NULL; } if (pattern) { size_t nel; if (nphi_ != naxes[1]) { GYOTO_DEBUG <<"nphi_ changed, freeing velocity_" << endl; if (velocity_) { delete [] velocity_; velocity_= NULL; } } if (nz_ != naxes[2]) { GYOTO_DEBUG <<"nz_ changed, freeing velocity_" << endl; if (velocity_) { delete [] velocity_; velocity_= NULL; } } if (nr_ != naxes[3]) { GYOTO_DEBUG <<"nr_ changed, freeing velocity_" << endl; if (velocity_) { delete [] velocity_; velocity_= NULL; } } if (!(nel=(nnu_ = naxes[0]) * (nphi_=naxes[1]) * (nz_=naxes[2]) * (nr_=naxes[3]))) GYOTO_ERROR( "dimensions can't be null"); if (nr_==1 || nz_==1 || nphi_==1) GYOTO_ERROR("In Disk3D::CopyEmissquant: dimensions should be >1"); dr_ = (rout_ - rin_) / double(nr_-1); dz_ = (zmax_ - zmin_) / double(nz_-1); if (repeat_phi_==0.) GYOTO_ERROR("In Disk3D::CopyEmissquant: repeat_phi is 0!"); //dphi_ = 2.*M_PI/double((nphi_-1.)*repeat_phi_); dphi_ = (phimax_-phimin_)/double((nphi_-1)*repeat_phi_); GYOTO_DEBUG << "allocate emissquant_;" << endl; emissquant_ = new double[nel]; GYOTO_DEBUG << "pattern >> emissquant_" << endl; memcpy(emissquant_, pattern, nel*sizeof(double)); } } double const * Disk3D::getEmissquant() const { return emissquant_; } void Disk3D::getEmissquantNaxes( size_t naxes[3] ) const { naxes[0] = nnu_; naxes[1] = nphi_; naxes[2] = nz_; naxes[3] = nr_; } void Disk3D::copyOpacity(double const *const opac, size_t const naxes[4]) { GYOTO_DEBUG << endl; if (opacity_) { GYOTO_DEBUG << "delete [] opacity_;" << endl; delete [] opacity_; opacity_ = NULL; flag_radtransf_=0; } if (opac) { if (nnu_ != naxes[0] || nphi_ != naxes[1] || nz_ != naxes[2] || nr_ != naxes[3]) GYOTO_ERROR("Please set intensity before opacity. " "The two arrays must have the same dimensions."); GYOTO_DEBUG << "allocate opacity_;" << endl; opacity_ = new double[nnu_ * nphi_ * nz_ * nr_]; GYOTO_DEBUG << "opacity >> opacity_" << endl; memcpy(opacity_, opac, nnu_ * nphi_ * nz_ * nr_ * sizeof(double)); flag_radtransf_=1; } } double const * Disk3D::opacity() const { return opacity_; } void Disk3D::copyVelocity(double const *const velocity, size_t const naxes[3]) { GYOTO_DEBUG << endl; if (velocity_) { GYOTO_DEBUG << "delete [] velocity_;\n"; delete [] velocity_; velocity_ = NULL; } if (velocity) { if (!emissquant_) GYOTO_ERROR("Please use copyEmissquant() before copyVelocity()"); if (nphi_ != naxes[0] || nz_ != naxes[1] || nr_ != naxes[2]) GYOTO_ERROR("emissquant_ and velocity_ have inconsistent dimensions"); GYOTO_DEBUG << "allocate velocity_;" << endl; velocity_ = new double[3*nphi_*nz_*nr_]; GYOTO_DEBUG << "velocity >> velocity_" << endl; memcpy(velocity_, velocity, 3*nphi_*nz_*nr_*sizeof(double)); } } double const * Disk3D::getVelocity() const { return velocity_; } void Disk3D::repeatPhi(size_t n) { repeat_phi_ = n; if (nphi_>1 && repeat_phi_>0.) dphi_=(phimax_-phimin_)/double((nphi_-1)*repeat_phi_); //dphi_=2.*M_PI/double((nphi_-1.)*repeat_phi_); } size_t Disk3D::repeatPhi() const { return repeat_phi_; } void Disk3D::nu0(double freq) { nu0_ = freq; } double Disk3D::nu0() const { return nu0_; } void Disk3D::dnu(double dfreq) { dnu_ = dfreq; } double Disk3D::dnu() const { return dnu_; } void Disk3D::rin(double rrin) { rin_ = rrin; if (nr_>1) dr_ = (rout_-rin_) / double(nr_-1); } double Disk3D::rin() const {return rin_;} void Disk3D::rout(double rrout) { rout_ = rrout; if (nr_>1) dr_ = (rout_-rin_) / double(nr_-1); } double Disk3D::rout() const {return rout_;} void Disk3D::zmin(double zzmin) { zmin_ = zzmin; if (nz_>1) dz_ = (zmax_-zmin_) / double(nz_-1); } double Disk3D::zmin() const {return zmin_;} void Disk3D::zmax(double zzmax) { zmax_ = zzmax; if (nz_>1) dz_ = (zmax_-zmin_) / double(nz_-1); } double Disk3D::zmax() const {return zmax_;} void Disk3D::phimin(double phimn) { phimin_ = phimn; if (nphi_>1) dphi_ = (phimax_-phimin_) / double(nphi_-1); } double Disk3D::phimin() const {return phimin_;} void Disk3D::phimax(double phimx) { phimax_ = phimx; if (nphi_>1) dphi_ = (phimax_-phimin_) / double(nphi_-1); } double Disk3D::phimax() const {return phimax_;} #ifdef GYOTO_USE_CFITSIO void Disk3D::fitsRead(string filename) { GYOTO_MSG << "Disk3D reading FITS file: " << filename << endl; filename_ = filename; char* pixfile = const_cast(filename_.c_str()); fitsfile* fptr = NULL; int status = 0; int anynul = 0; long tmpl; double tmpd; long naxes [] = {1, 1, 1, 1}; long fpixel[] = {1,1,1,1}; long inc [] = {1,1,1,1}; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() GYOTO_DEBUG << "Disk3D::fitsRead(): opening file" << endl; if (fits_open_file(&fptr, pixfile, 0, &status)) throwCfitsioError(status) ; ////// READ FITS KEYWORDS COMMON TO ALL TABLES /////// GYOTO_DEBUG << "Disk3D::fitsRead(): read RepeatPhi_" << endl; fits_read_key(fptr, TLONG, "GYOTO Disk3D RepeatPhi", &tmpl, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else repeat_phi_ = size_t(tmpl); // RepeatPhi found GYOTO_DEBUG << "Disk3D::fitsRead(): read Rin_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO Disk3D Rin", &tmpd, NULL, &status); if (status) { //if (status == KEY_NO_EXIST) status = 0; // not fatal -> now fatal in 3D throwCfitsioError(status) ; } else { rin_ = tmpd; // InnerRadius found } GYOTO_DEBUG << "Disk3D::fitsRead(): read Rout_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO Disk3D Rout", &tmpd, NULL, &status); if (status) { //if (status == KEY_NO_EXIST) status = 0; // not fatal -> now fatal in 3D throwCfitsioError(status) ; } else { rout_ = tmpd; // OuterRadius found } GYOTO_DEBUG << "Disk3D::fitsRead(): read Zmin_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO Disk3D Zmin", &tmpd, NULL, &status); if (status) { throwCfitsioError(status) ; } else { zmin_ = tmpd; // Zmin found } GYOTO_DEBUG << "Disk3D::fitsRead(): read Zmax_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO Disk3D Zmax", &tmpd, NULL, &status); if (status) { throwCfitsioError(status) ; } else { zmax_ = tmpd; // Zmax found } GYOTO_DEBUG << "Disk3D::fitsRead(): read Phimin_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO Disk3D Phimin", &tmpd, NULL, &status); if (status) { throwCfitsioError(status) ; } else { phimin_ = tmpd; // Phimin found } GYOTO_DEBUG << "Disk3D::fitsRead(): read Phimax_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO Disk3D Phimax", &tmpd, NULL, &status); if (status) { throwCfitsioError(status) ; } else { phimax_ = tmpd; // Phimax found } ////// FIND MANDATORY EMISSION HDU, READ KWDS & DATA /////// GYOTO_DEBUG << "Disk3D::fitsRead(): search emissquant HDU" << endl; if (fits_movnam_hdu(fptr, ANY_HDU, const_cast("GYOTO Disk3D emissquant"), 0, &status)) throwCfitsioError(status) ; GYOTO_DEBUG << "Disk3D::fitsRead(): get image size" << endl; if (fits_get_img_size(fptr, 4, naxes, &status)) throwCfitsioError(status) ; //update nu0_, nnu_, dnu_; nnu_ = naxes[0]; double CRPIX1; GYOTO_DEBUG << "Disk3D::fitsRead(): read CRPIX1, CRVAL1, CDELT1" << endl; fits_read_key(fptr, TDOUBLE, "CRVAL1", &nu0_, NULL, &status); fits_read_key(fptr, TDOUBLE, "CDELT1", &dnu_, NULL, &status); fits_read_key(fptr, TDOUBLE, "CRPIX1", &CRPIX1, NULL, &status); if (status) throwCfitsioError(status) ; if (CRPIX1 != 1) nu0_ -= dnu_*(CRPIX1 - 1.); if (naxes[1]*naxes[2]*naxes[3]==0.) GYOTO_ERROR("In Disk3D::fitsRead: dimensions can't be null!"); // update nphi_, dphi_ nphi_ = naxes[1]; if (nphi_==1) GYOTO_ERROR("In Disk3D::fitsRead: dimensions should be >1"); //dphi_ = 2.*M_PI/double((nphi_-1.)*repeat_phi_); dphi_ = (phimax_-phimin_)/double((nphi_-1)*repeat_phi_); // update nz_, nr_, dz_, dr_ nz_ = naxes[2]; nr_ = naxes[3]; if (nr_==1 || nz_==1) GYOTO_ERROR("In Disk3D::fitsRead: dimensions should be >1"); dr_ = (rout_ - rin_) / double(nr_-1); dz_ = (zmax_ - zmin_) / double(nz_-1); if (emissquant_) { delete [] emissquant_; emissquant_ = NULL; } emissquant_ = new double[nnu_ * nphi_ * nz_ * nr_]; if (debug()) cerr << "Disk3D::fitsRead(): read emission: " << "nnu_=" << nnu_ << ", nphi_="<("GYOTO Disk3D opacity"), 0, &status); if (status) { if (status == BAD_HDU_NUM) { GYOTO_INFO << "FITS file does not contain opacity extension" << endl; // FITS file does not contain opacity information status = 0; if (opacity_) { delete [] opacity_; opacity_ = NULL; } } else throwCfitsioError(status) ; } else { GYOTO_INFO << "FITS file contains opacity extension" << endl; if (fits_get_img_size(fptr, 4, naxes, &status)) throwCfitsioError(status) ; if ( size_t(naxes[0]) != nnu_ || size_t(naxes[1]) != nphi_ || size_t(naxes[2]) != nz_ || size_t(naxes[3]) != nr_ ) GYOTO_ERROR("Disk3D::readFile(): opacity array not conformable"); if (opacity_) { delete [] opacity_; opacity_ = NULL; } opacity_ = new double[nnu_ * nphi_ * nz_ * nr_]; if (fits_read_subset(fptr, TDOUBLE, fpixel, naxes, inc, 0, opacity_,&anynul,&status)) { delete [] opacity_; opacity_=NULL; throwCfitsioError(status) ; } } ////// FIND MANDATORY VELOCITY HDU /////// fits_movnam_hdu(fptr, ANY_HDU, const_cast("GYOTO Disk3D velocity"), 0, &status); if (status) { if (status == BAD_HDU_NUM) throwCfitsioError(status) ; } else { if (fits_get_img_size(fptr, 4, naxes, &status)) throwCfitsioError(status) ; if ( size_t(naxes[0]) != size_t(3) || size_t(naxes[1]) != nphi_ || size_t(naxes[2]) != nz_ || size_t(naxes[3]) != nr_) GYOTO_ERROR("Disk3D::fitsRead(): velocity array not conformable"); if (velocity_) { delete [] velocity_; velocity_ = NULL; } velocity_ = new double[3 * nphi_ * nz_ * nr_]; if (fits_read_subset(fptr, TDOUBLE, fpixel, naxes, inc, 0, velocity_,&anynul,&status)) { delete [] velocity_; velocity_=NULL; throwCfitsioError(status) ; } } if (fits_close_file(fptr, &status)) throwCfitsioError(status) ; fptr = NULL; } void Disk3D::fitsWrite(string filename) { if (!emissquant_) GYOTO_ERROR("Disk3D::fitsWrite(filename): nothing to save!"); filename_ = filename; char* pixfile = const_cast(filename_.c_str()); fitsfile* fptr = NULL; int status = 0; long naxes [] = {long(nnu_), long(nphi_), long(nz_), long(nr_)}; long fpixel[] = {1,1,1,1}; char * CNULL=NULL; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() ////// CREATE FILE GYOTO_DEBUG << "creating file" << endl; fits_create_file(&fptr, pixfile, &status); fits_create_img(fptr, DOUBLE_IMG, 4, naxes, &status); if (status) throwCfitsioError(status) ; ////// WRITE FITS KEYWORDS COMMON TO ALL TABLES /////// if (repeat_phi_!=1) fits_write_key(fptr, TLONG, const_cast("GYOTO Disk3D RepeatPhi"), &repeat_phi_, CNULL, &status); if (rin_ > -DBL_MAX){ fits_write_key(fptr, TDOUBLE, const_cast("GYOTO Disk3D Rin"), &rin_, CNULL, &status); }else{ cout << "Disk3D::fitsWrite Error rin_ not set!" << endl; status=1; throwCfitsioError(status) } if (rout_ < DBL_MAX){ fits_write_key(fptr, TDOUBLE, const_cast("GYOTO Disk3D Rout"), &rout_, CNULL, &status); }else{ cout << "Disk3D::fitsWrite Error rout_ not set!" << endl; status=1; throwCfitsioError(status) } if (zmin_ > -DBL_MAX){ fits_write_key(fptr, TDOUBLE, const_cast("GYOTO Disk3D Zmin"), &zmin_, CNULL, &status); }else{ cout << "Disk3D::fitsWrite Error zmin_ not set!" << endl; status=1; throwCfitsioError(status) } if (zmax_ < DBL_MAX){ fits_write_key(fptr, TDOUBLE, const_cast("GYOTO Disk3D Zmax"), &zmax_, CNULL, &status); }else{ cout << "Disk3D::fitsWrite Error zmax_ not set!" << endl; status=1; throwCfitsioError(status) } if (phimin_ > -DBL_MAX){ fits_write_key(fptr, TDOUBLE, const_cast("GYOTO Disk3D Phimin"), &phimin_, CNULL, &status); }else{ cout << "Disk3D::fitsWrite Error Phimin_ not set!" << endl; status=1; throwCfitsioError(status) } if (phimax_ < DBL_MAX){ fits_write_key(fptr, TDOUBLE, const_cast("GYOTO Disk3D Phimax"), &phimax_, CNULL, &status); }else{ cout << "Disk3D::fitsWrite Error Phimax_ not set!" << endl; status=1; throwCfitsioError(status) } ////// SAVE EMISSION IN PRIMARY HDU /////// GYOTO_DEBUG << "saving emissquant_\n"; fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO Disk3D emissquant"), CNULL, &status); fits_write_key(fptr, TDOUBLE, const_cast("CRVAL1"), &nu0_, CNULL, &status); fits_write_key(fptr, TDOUBLE, const_cast("CDELT1"), &dnu_, CNULL, &status); double CRPIX1 = 1.; fits_write_key(fptr, TDOUBLE, const_cast("CRPIX1"), &CRPIX1, CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, nnu_*nphi_*nz_*nr_, emissquant_, &status); if (status) throwCfitsioError(status) ; ////// SAVE OPTIONAL OPACITY HDU /////// if (opacity_) { GYOTO_DEBUG << "saving opacity_\n"; fits_create_img(fptr, DOUBLE_IMG, 4, naxes, &status); fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO Disk3D opacity"), CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, nnu_*nphi_*nz_*nr_, opacity_, &status); if (status) throwCfitsioError(status) ; } ////// SAVE MANDATORY VELOCITY HDU /////// if (velocity_) { GYOTO_DEBUG << "saving velocity_\n"; naxes[0]=3; fits_create_img(fptr, DOUBLE_IMG, 4, naxes, &status); fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO Disk3D velocity"), CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, 3*nphi_*nz_*nr_, velocity_, &status); if (status) throwCfitsioError(status) ; } ////// CLOSING FILE /////// GYOTO_DEBUG << "close FITS file\n"; if (fits_close_file(fptr, &status)) throwCfitsioError(status) ; fptr = NULL; } void Disk3D::getIndices(size_t i[4], double const co[4], double nu) const { GYOTO_DEBUG << "dnu_="<2.*M_PI) phi -= 2.*M_PI; if (phiphimax_) i[1]=nphi_-1; else i[1] = size_t(floor((phi-phimin_)/dphi_+0.5)) % nphi_; //z indice if (zz<0. && zmin_>=0.) zz*=-1.; //if zmin>=0, assume disk is symmetric i[2] = size_t(floor((zz-zmin_)/dz_+0.5)); if (i[2] == nz_) i[2] = nz_ - 1; else if (i[2] > nz_) GYOTO_ERROR("In Disk3D::getIndices() impossible indice value for z"); //r indice i[3] = size_t(floor((rr-rin_)/dr_+0.5)); if (i[3] == nr_) i[3] = nr_ - 1; else if (i[3] > nr_) GYOTO_ERROR("In Disk3D::getIndices() impossible indice value for r"); } #endif void Disk3D::getVelocity(double const pos[4], double vel[4]) { if (velocity_) { size_t i[4]; // {i_nu, i_phi, i_z, i_r} getIndices(i, pos); double phiprime=velocity_[i[3]*3*nphi_*nz_+i[2]*3*nphi_+i[1]*3+0]; double zprime=velocity_[i[3]*3*nphi_*nz_+i[2]*3*nphi_+i[1]*3+1]; double rprime=velocity_[i[3]*3*nphi_*nz_+i[2]*3*nphi_+i[1]*3+2]; switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: { //Formula from derivation of rsph^2=rcyl^2+zz^2 //and rsph*cos(th)=zz where rsph and rcyl //are spherical and cylindrical radii double rsph=pos[1], th=pos[2], zz= rsph*cos(th), rcyl=sqrt(rsph*rsph-zz*zz); vel[1] = (rcyl*rprime+zz*zprime)/rsph; vel[2] = (vel[1]*cos(th)-zprime)/(rsph*sin(th)); vel[3] = phiprime; vel[0] = gg_->SysPrimeToTdot(pos, vel+1); vel[1] *= vel[0]; vel[2] *= vel[0]; vel[3] *= vel[0]; } break; case GYOTO_COORDKIND_CARTESIAN: GYOTO_ERROR("Disk3D::getVelocity(): metric must be in " "spherical coordinates"); break; default: GYOTO_ERROR("Disk3D::getVelocity(): unknown COORDKIND"); } }else GYOTO_ERROR("In Disk3D::getVelocity(): velocity_==NULL!"); } int Disk3D::Impact(Photon *ph, size_t index, Astrobj::Properties *data) { GYOTO_DEBUG << endl; state_t coord_ph_hit(ph->parallelTransport()?16:8);; double coord_obj_hit[8]; state_t coord1, coord2; ph->getCoord(index, coord1); ph->getCoord(index+1, coord2); ph->checkPhiTheta(&coord1[0]); ph->checkPhiTheta(&coord2[0]); // HEURISTIC TESTS TO PREVENT TOO MANY INTEGRATION STEPS // Speeds up a lot! // Idea: no test if r1,r2 > factr*rdiskmax_ AND z1,z2 have same sign double r1=coord1[1], r2=coord2[1], z1=r1*cos(coord1[2]), z2=r2*cos(coord2[2]); double factr=2.; double rtol=factr*rout_; if (r1>rtol && r2>rtol && z1*z2>0.) return 0; double t1=coord1[0], t2=coord2[0]; double deltatmin=0.1;//, deltat12=fabs(t2-t1)*0.1; //Break the worldline in pieces of "size" deltat: //double deltat= deltat12 < deltatmin ? deltat12 : deltatmin; double deltat= deltatmin; /* IMPORTANT REMARK: putting deltat to either deltatmin or deltat12 leads to changing significantly the intensity of two nearby pixels for a very optically thick object as then the final intensity is typically 'some quantity'*deltat. Thus the value of deltat should be the same for all pixels. The value of deltatmin is thus a tricky point if one is interested in a very precise radiative transfer. */ double tcur=t2; double myrcur=coord2[1], thetacur=coord2[2], zcur=myrcur*cos(thetacur),rcur=sqrt(myrcur*myrcur-zcur*zcur); //NB: myrcur is r in spherical coord, rcur is r in cylindrical coord /*** FIND GRID ENTRY POINT BETWEEN t1 AND t2 ***/ //Following while loop determines (if any) the entry and out points //along the geodesic that goes throw the disk while (tcur>t1+deltat && ( (zsym_ && ((zmin_<0. && zcur=0. && zcur<-zmax_)) ) || (!zsym_ && zcurzmax_ || rcur>rout_ || rcur=0 tcur-=deltat; ph -> getCoord(tcur, coord_ph_hit); //Cylindrical z and r coordinates myrcur=coord_ph_hit[1]; thetacur=coord_ph_hit[2]; zcur=myrcur*cos(thetacur); rcur=sqrt(myrcur*myrcur-zcur*zcur); } /*** IF NO INTERSECTION WITH GRID, RETURN ***/ if (tcur<=t1+deltat) { //Then no point inside grid found between t1 and t2 return 0; } // Else: t1t1){ if (tcur>t1+deltat){ tcur-=deltat; }else{//this is for last step of this loop //to integrate until t1 //deltat=tcur-t1; //No: see important remark above, don't change deltat tcur=t1; } ph -> getCoord(tcur, coord_ph_hit); //Cylindrical z and r coordinates myrcur=coord_ph_hit[1]; thetacur=coord_ph_hit[2]; zcur=myrcur*cos(thetacur); rcur=sqrt(myrcur*myrcur-zcur*zcur); if ( (zsym_ && ((zmin_<0. && zcur=0. && zcur<-zmax_)) ) || (!zsym_ && zcurzmax_ || rcur>rout_ || rcurcheckPhiTheta(&coord_ph_hit[0]); for (int ii=0;ii<4;ii++) coord_obj_hit[ii]=coord_ph_hit[ii]; getVelocity(coord_obj_hit, coord_obj_hit+4); if (data) { //Store impact time in user1 if (data->user1) *data->user1=tcur; } processHitQuantities(ph, coord_ph_hit, coord_obj_hit, deltat, data); if (!flag_radtransf_) indisk=0;//not to go on integrating } } return 1; } Gyoto-2.0.2/lib/DynamicalDisk.C000066400000000000000000000242111455254334400162130ustar00rootroot00000000000000/* Copyright 2011, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoPhoton.h" #include "GyotoDynamicalDisk.h" #include "GyotoProperty.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrBL.h" #include "GyotoKerrKS.h" #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; /// Properties GYOTO_PROPERTY_START(DynamicalDisk) GYOTO_PROPERTY_DOUBLE(DynamicalDisk, tinit, tinit) GYOTO_PROPERTY_DOUBLE(DynamicalDisk, dt, dt) GYOTO_PROPERTY_END(DynamicalDisk, PatternDiskBB::properties) /// DynamicalDisk::DynamicalDisk() : PatternDiskBB(), dirname_(NULL), tinit_(0.), dt_(1.), nb_times_(0), nnu_(0), nphi_(0), nr_(0), emission_array_(NULL), velocity_array_(NULL), radius_array_(NULL) { kind_="DynamicalDisk"; GYOTO_DEBUG << "DynamicalDisk Construction" << endl; std::string str = ""; dirname_ = new char[str.length() + 1]; strcpy(dirname_, str.c_str()); } DynamicalDisk::DynamicalDisk(const DynamicalDisk& o) : PatternDiskBB(o), dirname_(NULL), tinit_(o.tinit_), dt_(o.dt_), nb_times_(0), nnu_(o.nnu_), nphi_(o.nphi_), nr_(o.nr_), emission_array_(NULL), velocity_array_(NULL), radius_array_(NULL) { GYOTO_DEBUG << "DynamicalDisk Copy" << endl; #ifdef GYOTO_USE_CFITSIO if (o.dirname_) { dirname_ = new char[strlen(o.dirname_)+1]; strcpy(dirname_,o.dirname_); } if (!nb_times_) return; emission_array_ = new double*[nb_times_] ; velocity_array_ = new double*[nb_times_] ; radius_array_ = new double*[nb_times_] ; for (int i=1; i<=nb_times_; i++) { size_t nel1=nnu_*nphi_*nr_, nel2=2*nr_*nphi_; emission_array_[i-1] = new double[nel1]; velocity_array_[i-1] = new double[nel2]; radius_array_ [i-1] = new double[nr_ ]; memcpy(emission_array_[i-1], o.emission_array_[i-1], nel1*sizeof(double)); memcpy(velocity_array_[i-1], o.velocity_array_[i-1], nel2*sizeof(double)); memcpy(radius_array_ [i-1], o.radius_array_ [i-1], nr_ *sizeof(double)); } #endif } DynamicalDisk* DynamicalDisk::clone() const { return new DynamicalDisk(*this); } DynamicalDisk::~DynamicalDisk() { GYOTO_DEBUG << "DynamicalDisk Destruction" << endl; for (int i=1; i<=nb_times_; i++) { if (emission_array_) delete [] emission_array_[i-1]; if (velocity_array_) delete [] velocity_array_[i-1]; if (radius_array_) delete [] radius_array_[i-1]; } if (emission_array_) delete [] emission_array_; if (velocity_array_) delete [] velocity_array_; if (radius_array_) delete [] radius_array_ ; emission_array_ = NULL; velocity_array_ = NULL; radius_array_ = NULL; nb_times_ = 0; if (dirname_) delete dirname_; } double const * DynamicalDisk::getVelocity() const { return PatternDiskBB::getVelocity(); } void DynamicalDisk::copyQuantities(int iq) { if (iq<1 || iq>nb_times_) GYOTO_ERROR("In DynamicalDisk::copyQuantities: incoherent value of iq"); setEmission(emission_array_[iq-1]); setVelocity(velocity_array_[iq-1]); radius(radius_array_[iq-1]); } void DynamicalDisk::nullifyQuantities() { // This function is necessary to remove a malloc error // in PatternDisk destructor; I don't understand why (May 2017) setEmission(NULL); setVelocity(NULL); radius(NULL); } void DynamicalDisk::getVelocity(double const pos[4], double vel[4]) { double time = pos[0], tcomp=tinit_; int ifits=1; //cout << "time in dyna velo: " << time << " " << tinit_ << endl; while(time>tcomp && ifitstcomp && ifits(this)->copyQuantities(ifits-1); I1=PatternDiskBB::emission(nu,dsem,cp,co); const_cast(this)->copyQuantities(ifits); I2=PatternDiskBB::emission(nu,dsem,cp,co); double t1 = tinit_+(ifits-2)*dt_; const_cast(this)->nullifyQuantities(); //cout << "in dyna I1, I2, time, t1, dt= " << I1 << " " << I2 << " " << time << " " << t1 << " " << dt_ << endl; //cout << "in dyna interpo time= " << I1+(I2-I1)/dt_*(time-t1) << endl; return I1+(I2-I1)/dt_*(time-t1); } return 0.; } std::string DynamicalDisk::file() const {return dirname_?dirname_:"";} void DynamicalDisk::file(std::string const &fname) { #ifdef GYOTO_USE_CFITSIO if (nb_times_) { // first free current arrays, if any for (int i=1; i<=nb_times_; i++) { if (emission_array_) delete [] emission_array_[i-1]; if (velocity_array_) delete [] velocity_array_[i-1]; if (radius_array_) delete [] radius_array_ [i-1]; } if (emission_array_) delete [] emission_array_; if (velocity_array_) delete [] velocity_array_; if (radius_array_) delete [] radius_array_ ; emission_array_ = NULL; velocity_array_ = NULL; radius_array_ = NULL; nb_times_ = 0; } if (dirname_) delete dirname_; dirname_ = new char[strlen(fname.c_str())+1]; strcpy(dirname_,fname.c_str()); DIR *dp; struct dirent *dirp; if((dp = opendir(dirname_)) == NULL) { GYOTO_ERROR("In DynamicalDisk.C constructor : bad dirname_"); } nb_times_=0; while ((dirp = readdir(dp)) != NULL) { nb_times_++; } nb_times_-=2; //for directories . and .. /* NB: ***Caution***, here it is assumed that dirname_ contains ONLY the FITS files, nothing else. */ closedir(dp); GYOTO_DEBUG << "FITS directory, number of FITS files= " << dirname_ << " " << nb_times_ << endl; if (nb_times_<1) GYOTO_ERROR("In DynamicalDisk.C: bad nb_times_ value"); emission_array_ = new double*[nb_times_] ; velocity_array_ = new double*[nb_times_] ; radius_array_ = new double*[nb_times_] ; for (int i=1; i<=nb_times_; i++) { ostringstream stream_name ; stream_name << dirname_ << "data" << setw(4) << setfill('0') << i << ".fits.gz" ; string filename = stream_name.str(); GYOTO_DEBUG << "Reading FITS file: " << filename << endl ; fitsRead(filename); size_t naxes[3]; getIntensityNaxes(naxes); if (i==1){ nnu_=naxes[0],nphi_=naxes[1],nr_=naxes[2]; }else{ if (nnu_!=naxes[0] || nphi_!=naxes[1] || nr_!=naxes[2]){ GYOTO_ERROR("In DynDisk::file: grid dimensions changing!"); } } // nel = (nnu=naxes[0])*(nphi=naxes[1])*(nr=naxes[2]); size_t nel1=nnu_*nphi_*nr_, nel2=2*nr_*nphi_; //save emission if (getIntensity()){ double * emtemp = const_cast(getIntensity()); emission_array_[i-1] = new double[nel1]; for (size_t j=0;j(getVelocity()); velocity_array_[i-1] = new double[nel2]; for (size_t j=0;j(getGridRadius()); radius_array_[i-1] = new double[nr_]; for (size_t j=0;jsetParameter("File", dirname_ ); } else ThinDisk::fillProperty(fmp, p); }Gyoto-2.0.2/lib/DynamicalDisk3D.C000066400000000000000000000454771455254334400164230ustar00rootroot00000000000000/* Copyright 2013-2016, 2018-2020 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoPhoton.h" #include "GyotoDynamicalDisk3D.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrBL.h" #include "GyotoKerrKS.h" #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; #include "GyotoProperty.h" GYOTO_PROPERTY_START(DynamicalDisk3D) GYOTO_PROPERTY_FILENAME(DynamicalDisk3D, File, file) GYOTO_PROPERTY_DOUBLE(DynamicalDisk3D, tinit, tinit) GYOTO_PROPERTY_DOUBLE(DynamicalDisk3D, dt, dt) GYOTO_PROPERTY_BOOL(DynamicalDisk3D, TemperatureGrid, IntensityGrid, temperature) GYOTO_PROPERTY_DOUBLE(DynamicalDisk3D, PLindex, PLindex) GYOTO_PROPERTY_BOOL(DynamicalDisk3D, WithVelocity, NoVelocity, withVelocity) GYOTO_PROPERTY_DOUBLE(DynamicalDisk3D, FloorTemperature, floorTemperature) GYOTO_PROPERTY_END(DynamicalDisk3D, Disk3D::properties) DynamicalDisk3D::DynamicalDisk3D() : Disk3D(), spectrumBB_(NULL), temperature_(1), dirname_(NULL), tinit_(0.), dt_(1.), nb_times_(1), PLindex_(3), novel_(0), floortemperature_(0), emission_array_(NULL), velocity_array_(NULL), absorption_array_(NULL) { GYOTO_DEBUG << "DynamicalDisk3D Construction" << endl; spectrumBB_ = new Spectrum::BlackBody(); } DynamicalDisk3D::DynamicalDisk3D(const DynamicalDisk3D& o) : Disk3D(o), spectrumBB_(NULL), temperature_(o.temperature_), dirname_(NULL), tinit_(o.tinit_), dt_(o.dt_), nb_times_(o.nb_times_), PLindex_(o.PLindex_), novel_(o.novel_), floortemperature_(o.floortemperature_), emission_array_(NULL), velocity_array_(NULL), absorption_array_(NULL) { GYOTO_DEBUG << "DynamicalDisk3D Copy" << endl; if (o.spectrumBB_()) spectrumBB_=o.spectrumBB_->clone(); if (o.dirname_){ //dirname_ copy size_t length = strlen(o.dirname_)+1; dirname_ = new char[length]; memcpy(dirname_, o.dirname_, length); } if (o.emission_array_ && o.velocity_array_){ // emission_array_ and velocity_array_ copy size_t naxes[4]; getEmissquantNaxes(naxes); size_t nnu=naxes[0], nphi=naxes[1], nz=naxes[2], nr=naxes[3]; // Allocate emission_array_ = new double*[nb_times_]; velocity_array_ = new double*[nb_times_]; // Copy size_t nel1=nnu*nphi*nz*nr, nel2=3*nphi*nz*nr, szt=nel1*sizeof(double), szv=nel2*sizeof(double); for (int i=1; i<=nb_times_; i++) { emission_array_[i-1] = new double[nel1]; velocity_array_[i-1] = new double[nel2]; memcpy(emission_array_[i-1], o.emission_array_[i-1], szt); memcpy(velocity_array_[i-1], o.velocity_array_[i-1], szv); } // If absorption is given, copy if (o.absorption_array_){ absorption_array_ = new double*[nb_times_]; for (int i=1; i<=nb_times_; i++) { absorption_array_[i-1] = new double[nel1]; memcpy(absorption_array_[i-1], o.absorption_array_[i-1], szt); } } } } DynamicalDisk3D* DynamicalDisk3D::clone() const { return new DynamicalDisk3D(*this); } bool DynamicalDisk3D::isThreadSafe() const { // spectrumBB_ is not handled by a property. return Disk3D::isThreadSafe() && (!spectrumBB_ || spectrumBB_ -> isThreadSafe()); } DynamicalDisk3D::~DynamicalDisk3D() { GYOTO_DEBUG << "DynamicalDisk3D Destruction" << endl; if (emission_array_) delete [] emission_array_; if (absorption_array_) delete [] absorption_array_; if (velocity_array_) delete [] velocity_array_; } double const * DynamicalDisk3D::getVelocity() const { return Disk3D::getVelocity(); } void DynamicalDisk3D::copyQuantities(int iq) { if (iq<1 || iq>nb_times_) GYOTO_ERROR("In DynamicalDisk3D::copyQuantities: incoherent value of iq"); setEmissquant(emission_array_[iq-1]); if (absorption_array_) opacity(absorption_array_[iq-1]); setVelocity(velocity_array_[iq-1]); } void DynamicalDisk3D::getVelocity(double const pos[4], double vel[4]) { if (novel_){ // Velocity of emitted particle is not provided (only bulk velocity // is known). Then put velocity to default, redshift factor will // be constant. vel[0]=1.;vel[1]=0.;vel[2]=0.;vel[3]=0.; }else{ double rcur=pos[1]; double risco; switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: { string kin = gg_->kind(); if (kin == "KerrBL") risco = static_cast >(gg_) -> getRms(); else if (kin == "Minkowski") risco = 6.; else risco=0., GYOTO_ERROR("In DynamicalDisk3D::getVelocity: bad metric"); break; } default: GYOTO_ERROR("DynamicalDisk3D::getVelocity: bad COORDKIND"); risco=0.; } if (rcurtcomp && ifits(getEmissquant()); double risco; switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: { string kin = gg_->kind(); if (kin == "KerrBL") risco = static_cast >(gg_) -> getRms(); else if (kin == "Minkowski") risco = 6.; else risco=0., GYOTO_ERROR("In DynamicalDisk3D::getVelocity: bad metric"); break; } default: GYOTO_ERROR("DynamicalDisk3D::emission1date(): bad COORDKIND" ", should be BL corrdinates"); risco=0.; } double rcur=co[1]; if (rcur*fabs(sin(co[2])) > rout() || rcur < risco) return 0.; size_t i[4]; // {i_nu, i_phi, i_z, i_r} getIndices(i,co,nu); size_t naxes[4]; getEmissquantNaxes(naxes); size_t nnu=naxes[0], nphi=naxes[1], nz=naxes[2]; double emissq = emiss[i[3]*nphi*nz*nnu+i[2]*nphi*nnu+i[1]*nnu+i[0]]; //This is a quantity from which emiss. coef. j_nu is known //this is temperature in K if temperature_=1 //or directly j_nu, up to the nu dependence, if temperature_=0 double Ires=-1.; // emitted specific intensity if (!flag_radtransf_){ // optically thick case if (temperature_){ spectrumBB_->temperature(emissq); Ires=(*spectrumBB_)(nu); //cout << "in emis: " << emissq << " " << Ires << endl; }else{ Ires=emissq; } }else{// // optically thin case if (temperature_){ // cout << "in DD3 Ires= " << rcur << " " << th << " " << emissq << " " << floortemperature_ << " "; if (emissqtemperature(emissq); Ires=(*spectrumBB_)(nu); //cout << "return " << emissq << " " << Ires << endl; // BELOW: BREMS computation for 2012 RWI paper // //SI value of cylindrical r coordinate: // double dist_unit = gg_->unitLength(); // /* // Following fact (in SI units) is defined by: // fact=RR/(Mm*kappa*gamma) // with: // RR=8.3144621; // Perfect gas constant in SI // Mm=6e-4; //This is N_avogadro*M_atomicmassunit/gamma in kg/mol // kappa=3e10; // p = kappa*density^gamma // gamma=1.66667; // [see DynaDisk3D.i] // */ // double fact=2.77149e-07; // //See DynaDisk3D.i, or paper, for relation between emissq and density // double density=pow(fact*emissq,1.5);// 1.5 is 1/(gamma-1) // //density is in SI units, kg/m^3 // /*** Computing emission coef: ***/ // //Emission coef jnu for thermal bremsstrahlung // // (see RybickiLightman 5.14a) // /* // fact2=1/4pi * 2^5*pi*e^6/(3*me*c^3) * sqrt(2pi/(3*kB*me)) * 1/mu^2 // in SI, with: me=electron mass, e=electron charge, kB=boltzman, // mu=atomic mass unit // Anyway this factor has no importance, // we are interested in relative values // */ // double fact2=7.83315e-12; // double hok=4.79924e-11; //planck cst / boltzman cst // double jnu = fact2 * 1./sqrt(emissq) * density*density // * exp(-hok*nu/emissq); // //Elementary intensity added by current dsem segment of worldline // //in SI units: // Ires=jnu*dsem*dist_unit; // usd e.g. for 3D RWI computation // //cout << "stuff: " << density << " " << fact2 << " " << emissq << " " << dsem << " " << jnu << endl; } // cout << Ires << endl; // TEST }else{ //Ires=Iem; // used e.g. for GC blob computation double dist_unit = gg_->unitLength()*100.; // unit length in cgs double jnu = emissq*pow(nu,-(PLindex_-1.)/2.); Ires=jnu*dsem*dist_unit; } } return Ires; } double DynamicalDisk3D::emission(double nu, double dsem, state_t const &cph, double const co[8]) const { GYOTO_DEBUG << endl; double time = co[0], tcomp=tinit_; int ifits=1; while(time>tcomp && ifits(this)->copyQuantities(ifits); //awful trick to avoid problems with constness of function emission -> to improve return emission1date(nu,dsem,cph,co); }else{ double I1, I2; const_cast(this)->copyQuantities(ifits-1); I1=emission1date(nu,dsem,cph,co); const_cast(this)->copyQuantities(ifits); I2=emission1date(nu,dsem,cph,co); double t1 = tinit_+(ifits-2)*dt_; return I1+(I2-I1)/dt_*(time-t1); } return 0.; } double DynamicalDisk3D::transmission1date(double nu, double dsem, state_t const &, double const co[8]) const{ GYOTO_DEBUG << endl; if (!flag_radtransf_) return 0.; double risco; switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: { string kin = gg_->kind(); if (kin == "KerrBL") risco = static_cast >(gg_) -> getRms(); else if (kin == "Minkowski") risco = 6.; else risco=0., GYOTO_ERROR("In DynamicalDisk3D::getVelocity: bad metric"); break; } default: GYOTO_ERROR("DynamicalDisk3D::emission1date(): bad COORDKIND" ", should be BL corrdinates"); risco=0.; } double rcur=co[1]; if (rcur*fabs(sin(co[2])) > rout() || rcur < risco) return 0.; size_t i[4]; // {i_nu, i_phi, i_z, i_r} getIndices(i,co,nu); size_t naxes[4]; getEmissquantNaxes(naxes); size_t nnu=naxes[0], nphi=naxes[1], nz=naxes[2]; if (temperature_){ double * emiss = const_cast(getEmissquant()); double emissq = emiss[i[3]*nphi*nz*nnu+i[2]*nphi*nnu+i[1]*nnu+i[0]]; //emissq is local temperature in K //cout << "in trans DD3: " << rcur << " " << th << " " << emissq << " " << floortemperature_ << endl; if (emissqtemperature(emissq); // double BnuT=(*spectrumBB_)(nu); //Planck function // double jnu=emission1date(nu,dsem,NULL,co); // Emission coef * ds // double alphanu=0.; //absorption coef. // if (BnuT==0.){ // /* // BnuT can be 0 in the region close to ISCO where density // decreases very fast. Then jnu should be 0 too (density~0). // If both are 0, then nothing happens (no absorption, no emission, // it's free space). Thus leave alphanu=0. // If jnu!=0 then alphanu is not defined, this should not happen. // */ // if (jnu!=0.){ // cout << "r= " << rcur << " " << emissq << " " << jnu << " " << BnuT << endl; // GYOTO_ERROR("In DynamicalDisk3D::" // "transmission1date absorption coef. undefined!"); // } // }else{ // alphanu=jnu/BnuT; // } // //Thermal emission assumed, use Kirchhoff alphanu=jnu/Bnu // return exp(-alphanu); // the dsem factor is already included // //in alphanu via jnu=emission1date(...,dsem,...) }else{ if (absorption_array_){ double * abs = const_cast(opacity()); double absq = abs[i[3]*nphi*nz*nnu+i[2]*nphi*nnu+i[1]*nnu+i[0]]; double dist_unit = gg_->unitLength()*100.; //dist unit in cgs double alphanu=absq*pow(nu,-(PLindex_+4.)/2.); return exp(-alphanu*dsem*dist_unit); }else{ GYOTO_ERROR("In DynamicalDisk3D: in non-BB optically thin case, " "opacity should be provided"); } } GYOTO_ERROR("BUG: should not reach this point!"); return 0.; // avoid pedantic warning } double DynamicalDisk3D::transmission(double nuem, double dsem, state_t const &cp, double const *co) const { GYOTO_DEBUG << endl; double time = co[0], tcomp=tinit_; int ifits=1; while(time>tcomp && ifits(this)->copyQuantities(ifits); //awful trick to avoid problems with constness of function transmission -> to improve return transmission1date(nuem,dsem,cp,co); }else{ double I1, I2; const_cast(this)->copyQuantities(ifits-1); I1=transmission1date(nuem,dsem,cp,co); const_cast(this)->copyQuantities(ifits); I2=transmission1date(nuem,dsem,cp,co); double t1 = tinit_+(ifits-2)*dt_; return I1+(I2-I1)/dt_*(time-t1); } return double(flag_radtransf_); } void DynamicalDisk3D::metric(SmartPointer gg) { //Metric must be KerrBL (see emission function) string kin = gg->kind(); if (kin != "KerrBL" && kin != "Minkowski") GYOTO_ERROR ("DynamicalDisk3D::metric(): metric must be KerrBL"); Disk3D::metric(gg); } void DynamicalDisk3D::file(std::string const &content) { #ifdef GYOTO_USE_CFITSIO int withopacity=0; dirname_ = new char[strlen(content.c_str())+1]; strcpy(dirname_,content.c_str()); DIR *dp; struct dirent *dirp; if((dp = opendir(dirname_)) == NULL) { GYOTO_ERROR("In DynamicalDisk3D.C constructor : bad dirname_"); } nb_times_=0; while ((dirp = readdir(dp)) != NULL) { nb_times_++; } nb_times_-=2; //for directories . and .. /* NB: ***Caution***, here it is assumed that dirname_ contains ONLY the FITS files, nothing else. */ closedir(dp); GYOTO_DEBUG << "FITS directory, number of FITS files= " << dirname_ << " " << nb_times_ << endl; if (nb_times_<1) GYOTO_ERROR("In DynamicalDisk3D.C: bad nb_times_ value"); //check whether absorption is provided { // make declarations local (avoid warning) ostringstream stream_name ; stream_name << dirname_ << "data3D0001.fits.gz"; string filename = stream_name.str(); fitsRead(filename); } if (opacity()) { //cout << "WITH OPACITY" << endl; withopacity=1; } //initialize emission, absorption, velocity arrays emission_array_ = new double*[nb_times_] ; if (withopacity) absorption_array_ = new double*[nb_times_] ; else absorption_array_=NULL; velocity_array_ = new double*[nb_times_] ; double nu0b=0., zminb=0., zmaxb=0., rinb=0., routb=0.; size_t nnub=0, nphib=0, nzb=0, nrb=0; //fill in the arrays for (int i=1; i<=nb_times_; i++) { ostringstream stream_name ; stream_name << dirname_ << "data3D" << setw(4) << setfill('0') << i << ".fits.gz" ; string filename = stream_name.str(); GYOTO_DEBUG << "Reading FITS file: " << filename << endl ; fitsRead(filename); size_t naxes[4]; getEmissquantNaxes(naxes); size_t nnu=naxes[0], nphi=naxes[1], nz=naxes[2], nr=naxes[3]; size_t nel1=nnu*nphi*nz*nr, nel2=3*nr*nz*nphi; //save emission if (getEmissquant()){ double * emtemp = const_cast(getEmissquant()); emission_array_[i-1] = new double[nel1]; for (size_t j=0;j(opacity()); absorption_array_[i-1] = new double[nel1]; for (size_t j=0;j(getVelocity()); velocity_array_[i-1] = new double[nel2]; for (size_t j=0;j. */ #define throwCfitsioError(status) \ { fits_get_errstatus(status, ermsg); GYOTO_ERROR(ermsg); } #include "GyotoPhoton.h" #include "GyotoDynamicalDiskBolometric.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrBL.h" #include "GyotoKerrKS.h" #include #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(DynamicalDiskBolometric, "DynamicalDisk with bolometric emission") GYOTO_PROPERTY_END(DynamicalDiskBolometric, DynamicalDisk::properties) DynamicalDiskBolometric::DynamicalDiskBolometric() : DynamicalDisk() { GYOTO_DEBUG << "DynamicalDiskBolometric Construction" << endl; } DynamicalDiskBolometric::DynamicalDiskBolometric(const DynamicalDiskBolometric& o) : DynamicalDisk(o) { GYOTO_DEBUG << "DynamicalDiskBolometric Copy" << endl; } DynamicalDiskBolometric* DynamicalDiskBolometric::clone() const { return new DynamicalDiskBolometric(*this); } DynamicalDiskBolometric::~DynamicalDiskBolometric() { GYOTO_DEBUG << "DynamicalDiskBolometric Destruction" << endl; } double DynamicalDiskBolometric::emission(double nu_em, double dsem, state_t const &, double const coord_obj[8]) const{ GYOTO_ERROR("In DynamicalDiskBolometric::emission: " "not implemented"); return 0.; } double DynamicalDiskBolometric::bolometricEmission(double dsem, state_t const &cph, double const coord_obj[8]) const{ // cout << "in bolometricem, will return: " << DynamicalDisk::emission(0.,dsem,coord_obj,coord_obj) << endl; return DynamicalDisk::emission(0.,dsem,cph,coord_obj); //never mind about 1st and 3rd elements } void DynamicalDiskBolometric::processHitQuantities(Photon* ph, state_t const & coord_ph_hit, double const * coord_obj_hit, double dt, Properties* data) const { #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; #endif /* NB: freqObs is the observer's frequency chosen in Screen::getRayCoord for the actual computation of the geodesic ; the physical value of nuobs will be used in spectrum computations by resorting to the xml specifications of the user (see below) ; this freqObs is used to transform the null worldline parameter dlambda (see below) */ double freqObs=ph->freqObs(); // this is a useless quantity, always 1 double dlambda = dt/coord_ph_hit[4]; //dlambda = dt/tdot double ggredm1 = -gg_->ScalarProd(&coord_ph_hit[0],&coord_obj_hit[4], &coord_ph_hit[4]);// / 1.; //this is nu_em/nu_obs double ggred = 1./ggredm1; //this is nu_obs/nu_em double dsem = dlambda*ggredm1; // *1. double inc =0.; if (data) { #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "data requested. " << ", ggredm1=" << ggredm1 << ", ggred=" << ggred << endl; #endif if (data->redshift) { *data->redshift=ggred; #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(*data->redshift); #endif } if (data->time) { *data->time=coord_ph_hit[0]; #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(*data->time); #endif } if (data->impactcoords) { if (coord_ph_hit.size()>8) GYOTO_ERROR("ImpactCoord incompatible with parallel transport"); memcpy(data->impactcoords, coord_obj_hit, 8 * sizeof(double)); memcpy(data->impactcoords+8, &coord_ph_hit[0], 8 * sizeof(double)); } #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "dlambda = (dt="<< dt << ")/(tdot="<< coord_ph_hit[4] << ") = " << dlambda << ", dsem=" << dsem << endl; #endif if (data->intensity) GYOTO_ERROR("In DynamicalDiskBolometric::process: " "unimplemented"); else if (data->user4) { inc = (bolometricEmission(dsem, coord_ph_hit, coord_obj_hit)) * (ph -> getTransmission(size_t(-1))) * ggred*ggred*ggred*ggred; // I/nu^4 invariant *data->user4 += inc; #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(*data->user4); #endif } if (data->binspectrum) GYOTO_ERROR("In DynamicalDiskBolometric::process: " "unimplemented"); if (data->spectrum) GYOTO_ERROR("In DynamicalDiskBolometric::process: " "unimplemented"); /* update photon's transmission */ ph -> transmit(size_t(-1), transmission(freqObs*ggredm1, dsem,coord_ph_hit, coord_obj_hit)); } else { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "NO data requested!" << endl; # endif } } Gyoto-2.0.2/lib/EquatorialHotSpot.C000066400000000000000000000357651455254334400171460ustar00rootroot00000000000000/* Copyright 2016, 2018-2020 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoEquatorialHotSpot.h" #include "GyotoPhoton.h" #include "GyotoPageThorneDisk.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrBL.h" #include "GyotoKerrKS.h" #include #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(EquatorialHotSpot, "Equatorial hot spot with beaming") GYOTO_PROPERTY_DOUBLE(EquatorialHotSpot, SpotRadSize, spotRadSize) GYOTO_PROPERTY_STRING(EquatorialHotSpot, BeamingKind, beaming, "One of: IsotropicBeaming, NormalBeaming, RadialBeaming, " "IsotropicConstant (emission is isotropic and constant" "equals to 1)") GYOTO_PROPERTY_DOUBLE(EquatorialHotSpot, BeamAngle, beamAngle) GYOTO_WORLDLINE_PROPERTY_END(EquatorialHotSpot, ThinDisk::properties) // accessors void EquatorialHotSpot::spotRadSize(double t) {sizespot_=t;} double EquatorialHotSpot::spotRadSize() const {return sizespot_;} void EquatorialHotSpot::beaming(std::string const &b) { if (b=="IsotropicBeaming") beaming_=IsotropicBeaming; else if (b=="NormalBeaming") beaming_=NormalBeaming; else if (b=="RadialBeaming") beaming_=RadialBeaming; else if (b=="IsotropicConstant") beaming_=IsotropicConstant; else GYOTO_ERROR("Unknown beaming kind"); } std::string EquatorialHotSpot::beaming() const { string b; switch (beaming_) { case IsotropicBeaming: b="IsotropicBeaming"; break; case NormalBeaming: b="NormalBeaming"; break; case RadialBeaming: b="RadialBeaming"; break; case IsotropicConstant: b="IsotropicConstant"; break; default: GYOTO_ERROR("Unknown beaming kind"); } return b; } void EquatorialHotSpot::beamAngle(double t) {beamangle_=t;} double EquatorialHotSpot::beamAngle() const {return beamangle_;} // Needed for legacy XML files int EquatorialHotSpot::setParameter(string name, string content, string unit) { double coord[8]; char* tc = const_cast(content.c_str()); if (name=="InitialCoordinate") { name="InitCoord"; return ThinDisk::setParameter(name, content, unit); } else if (name=="Position") { if (FactoryMessenger::parseArray(content, coord, 4) != 4) GYOTO_ERROR("Worldline \"Position\" requires exactly 4 tokens"); if (init_vel_) { setInitCoord(coord, init_vel_); delete[] init_vel_; init_vel_=NULL; } else setPosition(coord); wait_pos_ = 0; } else if (name=="Velocity") { if (FactoryMessenger::parseArray(content, coord, 3) != 3) GYOTO_ERROR("Worldline \"Velocity\" requires exactly 3 tokens"); if (wait_pos_) { if (init_vel_) delete [] init_vel_; init_vel_ = new double[3]; memcpy(init_vel_, coord, 3*sizeof(double)); } else setVelocity(coord); } else if (name=="NormalBeaming") { GYOTO_WARNING << "<" << name << "/> is deprecated, please use " " " << name << " instead"; beaming(name); } else if (name=="NormalBeaming" || name=="RadialBeaming") { GYOTO_WARNING << "<" << name << "/> is deprecated, please use \n"; GYOTO_WARNING << " " << name << " " << endl; GYOTO_WARNING << " " << content << "" << endl; GYOTO_WARNING <<" instead"; beaming(name); setParameter("BeamAngle", content, unit); } else return ThinDisk::setParameter(name, content, unit); return 0; } // Needed for wait_pos_ #ifdef GYOTO_USE_XERCES void EquatorialHotSpot::fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const { if (p.name == "InitCoord") { if (imin_ <= imax_) { state_t coord; getInitialCoord(coord); // For massive particule, express initial condition with 3-velocity double vel[3] = {coord[5]/coord[4], coord[6]/coord[4], coord[7]/coord[4]}; fmp -> setParameter ("Position", &coord[0], 4); fmp -> setParameter ("Velocity", vel, 3); } return; } ThinDisk::fillProperty(fmp, p); } void EquatorialHotSpot::setParameters(FactoryMessenger* fmp) { wait_pos_ = 1; ThinDisk::setParameters(fmp); wait_pos_ = 0; if (init_vel_) { delete[] init_vel_; init_vel_=NULL; GYOTO_ERROR("Worldline::setParameters(): " "Velocity was found but not Position"); } } #endif /// Gyoto::Astrobj::EquatorialHotSpot::EquatorialHotSpot() : ThinDisk("EquatorialHotSpot"), Worldline(), sizespot_(0.), beaming_(IsotropicBeaming), beamangle_(0.), spectrumThermalSynch_(NULL), magneticConfig_("None") { GYOTO_DEBUG << "Building EquatorialHotSpot"; spectrumThermalSynch_ = new Spectrum::ThermalSynchrotron(); } Gyoto::Astrobj::EquatorialHotSpot::EquatorialHotSpot(const EquatorialHotSpot &o) : ThinDisk(o), Worldline(o), sizespot_(o.sizespot_), beaming_(o.beaming_), beamangle_(o.beamangle_), spectrumThermalSynch_(NULL), magneticConfig_(o.magneticConfig_) { GYOTO_DEBUG << "Copying EquatorialHotSpot"; if (o.spectrumThermalSynch_()) spectrumThermalSynch_=o.spectrumThermalSynch_->clone(); } EquatorialHotSpot * EquatorialHotSpot::clone() const { return new EquatorialHotSpot(*this); } Gyoto::Astrobj::EquatorialHotSpot::~EquatorialHotSpot() { GYOTO_DEBUG << "Destroying EquatorialHotSpot"; } double EquatorialHotSpot::getMass() const {return 1. ;} void EquatorialHotSpot::metric(SmartPointer gg) { ThinDisk::metric(gg); Worldline::metric(gg); } void EquatorialHotSpot::setInitialCondition(double coord[8]) { if (!metric_) GYOTO_ERROR("Please set metric before calling " "EquatorialHotSpot::setInitialCondition(double*)"); Worldline::setInitialCondition(metric_, coord, 1); } void EquatorialHotSpot::getVelocity(double const pos[4], double vel[4]) { double coord_spot[4]={pos[0]}; const_cast(this) ->getCoord(coord_spot, 1, coord_spot+1, coord_spot+2, coord_spot+3); gg_ -> circularVelocity(coord_spot, vel, dir_); //cout << "equat Omega= " << vel[3]/vel[0] << endl; } double EquatorialHotSpot::emission(double nu_em, double dsem, state_t const &coord_ph, double const coord_obj[8]) const{ double coord_spot[4]={coord_obj[0]}; const_cast(this) ->getCartesian(coord_spot, 1, coord_spot+1, coord_spot+2, coord_spot+3); //above: nasty trick to deal with constness of emission double xspot=coord_spot[1], yspot=coord_spot[2]; //cout << "spot is at xy= " << xspot << " " << yspot << endl; double rr=coord_obj[1], phi=coord_obj[3]; double difx=(rr*cos(phi)-xspot), dify=(rr*sin(phi)-yspot); double d2 = difx*difx+dify*dify; double ds2=sizespot_*sizespot_; if (d2 < 16*ds2){ // we are within 4*rspot, // same as in Schnittman & Bertschinger 2004 // computing the angle (normal,photon tangent) double cosalpha=0.; if (beaming_ == NormalBeaming or beaming_ == RadialBeaming){ double gthth=gg_->gmunu(&coord_ph[0],2,2); double pth=coord_ph[6]; double uemitter[4]; const_cast(this) ->getVelocity(&coord_ph[0],uemitter); double pscalu=fabs(gg_->ScalarProd(&coord_ph[0],&coord_ph[4], uemitter)); if (pscalu==0.) GYOTO_ERROR("Undefined cosalpha!"); cosalpha = 1./pscalu*sqrt(gthth)*fabs(pth); // = |cos(alpha)| if (fabs(cosalpha)>1.) GYOTO_ERROR("cosalpha>1!"); } // emission Gaussian width double sigma2=ds2 ; // following choice of Schnittman & Bertschinger 2004: // sigma = Rspot switch (beaming_) { case IsotropicBeaming: return exp(-d2/(2*sigma2)); case IsotropicConstant: return 1.; case NormalBeaming: return cosalpha*cosalpha*exp(-d2/(2*sigma2)); case RadialBeaming: return (1.-cosalpha)*(1.-cosalpha)*exp(-d2/(2*sigma2)); default: GYOTO_ERROR("In EquatorialHotSpot::emission:" " incorrect beaming argument"); } } // else return 0.; } void EquatorialHotSpot::radiativeQ(double *Inu, double *Qnu, double *Unu, double *Vnu, Eigen::Matrix4d *Onu, double const *nuem , size_t nbnu, double dsem, state_t const &cph, double const *co) const { // polarized radiativeQ double vel[4]; // 4-velocity of emitter for (int ii=0;ii<4;ii++){ vel[ii]=co[ii+4]; } Eigen::Matrix4d Omat; Omat << 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1; // Defining emission, absoprtion and rotation coefficients for the transmission matrix double jInu[nbnu], jQnu[nbnu], jUnu[nbnu], jVnu[nbnu]; double aInu[nbnu], aQnu[nbnu], aUnu[nbnu], aVnu[nbnu]; double rotQnu[nbnu], rotUnu[nbnu], rotVnu[nbnu]; for (size_t ii=0; iigmunu(&cph[0],0,0), gpp=gg_->gmunu(&cph[0],3,3), Bp=1., Bt=(-gpp*Bp*vel[3])/(gtt*vel[0]); B4vect[0]=Bt; B4vect[3]=Bp; } else if (magneticConfig_=="Radial-Azimuthal"){ double gtt=gg_->gmunu(&cph[0],0,0), gpp=gg_->gmunu(&cph[0],3,3), Bp=1., Bt=(-gpp*Bp*vel[3])/(gtt*vel[0]); B4vect[0]=Bt; B4vect[1]=1.; B4vect[3]=Bp; } else GYOTO_ERROR("Unknown magnetic field configuration"); double B0 = 100.; // Gauss double norm=sqrt(gg_->ScalarProd(&cph[0], B4vect, B4vect)); gg_->multiplyFourVect(B4vect,1./norm); double Chi=getChi(B4vect, cph, vel); // this is EVPA double nu0 = GYOTO_ELEMENTARY_CHARGE_CGS*B0 /(2.*M_PI*GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS); // cyclotron freq // Computing the angle theta_mag between the magnetic field vector and photon tgt vector in the rest frame of the emitter gg_->projectFourVect(&cph[0],B4vect,vel); //Projection of the 4-vector B to 4-velocity to be in the rest frame of the emitter double photon_emframe[4]; // photon tgt vector projected in comoving frame for (int ii=0;ii<4;ii++){ photon_emframe[ii]=cph[ii+4]+vel[ii]*gg_->ScalarProd(&cph[0],&cph[4],vel); } double bnorm = gg_->norm(&cph[0],B4vect); double lnorm = gg_->norm(&cph[0],photon_emframe); double lscalb = gg_->ScalarProd(&cph[0],photon_emframe,B4vect); double theta_mag = acos(lscalb/(lnorm*bnorm)); double n0 = 6e6; // cm-3 double Theta0=200; // Dimensionless temperature double coord_spot[4]={co[0]}; const_cast(this) ->getCartesian(coord_spot, 1, coord_spot+1, coord_spot+2, coord_spot+3); //above: nasty trick to deal with constness of emission double xspot=coord_spot[1], yspot=coord_spot[2]; //cout << "spot is at xy= " << xspot << " " << yspot << endl; double rr=co[1], phi=co[3]; double difx=(rr*cos(phi)-xspot), dify=(rr*sin(phi)-yspot); double d2 = difx*difx+dify*dify; double ds2=sizespot_*sizespot_; double number_density=n0/3.*exp(-d2/(2.*ds2)), Theta=Theta0*exp(-d2/(2.*ds2))*pow(rr,-0.84); if (number_density<1e5) number_density=0.; double temperature=GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS*Theta/GYOTO_BOLTZMANN_CGS; double bessK2 = bessk(2, 1./Theta); //cout << "In EquatorialHotSpot: ne, temperature, BB, nu0, besselK2, theta_mag: " << number_density << " " << temperature << " " << B0 << " " << nu0 << " " << bessK2 << " " << theta_mag << endl; // THERMAL SYNCHRO spectrumThermalSynch_->numberdensityCGS(number_density); spectrumThermalSynch_->temperature(temperature); spectrumThermalSynch_->besselK2(bessK2); spectrumThermalSynch_->angle_averaged(0); spectrumThermalSynch_->angle_B_pem(theta_mag); spectrumThermalSynch_->cyclotron_freq(nu0); spectrumThermalSynch_->radiativeQ(jInu, jQnu, jUnu, jVnu, aInu, aQnu, aUnu, aVnu, rotQnu, rotUnu, rotVnu, nuem, nbnu); for (size_t ii=0; iiunitLength(); //cout << Jstokes << endl; Omat = Omatrix(aInu[ii], aQnu[ii], aUnu[ii], aVnu[ii], rotQnu[ii], rotUnu[ii], rotVnu[ii], Chi, dsem); //cout << Omat << endl; // Computing the increment of the Stokes parameters. Equivalent to dInu=exp(-anu*dsem)*jnu*dsem in the non-polarised case. Eigen::Vector4d Stokes=Omat*Jstokes; //cout << Stokes << endl; Inu[ii] = Stokes(0); Qnu[ii] = Stokes(1); Unu[ii] = Stokes(2); Vnu[ii] = Stokes(3); Onu[ii] = Omat; if (Inu[ii]<0.) GYOTO_ERROR("In Blob::radiativeQ: Inu<0"); if (Inu[ii]!=Inu[ii] or Onu[ii](0,0)!=Onu[ii](0,0)) GYOTO_ERROR("In Blob::radiativeQ: Inu or Taunu is nan"); if (Inu[ii]==Inu[ii]+1. or Onu[ii](0,0)==Onu[ii](0,0)+1.) GYOTO_ERROR("In Blob::radiativeQ: Inu or Taunu is infinite"); //cout << "In EquatorialHotSpot: Inu, Qnu, Unu, Vnu, dsem: " << Inu[ii] << ", " << Qnu[ii] << ", " << Unu[ii] << ", " << Vnu[ii] << ", " << dsem << endl; //cout << "Onu :" << endl; //cout << Omat << endl; } } void EquatorialHotSpot::radiativeQ(double Inu[], // output double Taunu[], // output double const nu_ems[], size_t nbnu, // input double dsem, state_t const &coord_ph, double const coord_obj[8]) const { // unpolarized radiativeQ for (size_t ii=0; ii. */ #include #include #include using namespace Gyoto; using namespace std; Error::Error( const std::string m ) : message(m), errcode(EXIT_FAILURE) { } Error::Error( const Gyoto::Error &o): message(o.message), errcode(o.errcode) {} void Error::Report() const { cerr << message << endl; } int Error::getErrcode() const { return errcode ; } //char const * const Error::get_message() const { return message; } std::string Error::get_message() const { return message; } static Gyoto::Error::Handler_t * GyotoErrorHandler = NULL; void Gyoto::Error::setHandler( Gyoto::Error::Handler_t* handler ) { GyotoErrorHandler = handler ; } void Gyoto::throwError( const std::string m ) { if (GyotoErrorHandler) (*GyotoErrorHandler)(Error(m)); else throw Error(m); } Gyoto::Error::operator const char * () const { return message.c_str(); } Gyoto-2.0.2/lib/Factory.C000066400000000000000000001010751455254334400151120ustar00rootroot00000000000000/* Copyright 2011-2016, 2018-2020 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoConfig.h" #ifdef GYOTO_USE_XERCES #include "GyotoFactory.h" #include "GyotoFactoryMessenger.h" #include "GyotoUtils.h" #include #include #include #include #include // Let's imbue 'C' locale to every stream to make sure decimal_point // is always actually a '.' static std::locale Cloc("C"); #include "GyotoMetric.h" #include "GyotoAstrobj.h" #include "GyotoSpectrum.h" #include "GyotoSpectrometer.h" #include #include #include #include #include #include #include using namespace Gyoto; using namespace xercesc; using namespace std; // max length should be at least 26: " -0.1234567890123456E+123 \0" #define dvalLength 30 #define dfmt " %.16g " // support DBL_MIN, DBL_MAX, and put right format #define d2txt(txt, val) \ if (val== DBL_MAX) strcpy(txt, "DBL_MAX"); \ else if (val==-DBL_MAX) strcpy(txt, "-DBL_MAX"); \ else if (val== DBL_MIN) strcpy(txt, "DBL_MIN"); \ else if (val==-DBL_MIN) strcpy(txt, "-DBL_MIN"); \ else { \ ostringstream ss; \ ss.imbue(Cloc); \ ss << setprecision(GYOTO_PREC) \ << setw(GYOTO_WIDTH) << val; \ strcpy(txt, ss.str().c_str()); \ } #define ifmt " %li " #define i2txt(txt, val) sprintf( txt, ifmt, val); class XStr { public : // ----------------------------------------------------------------------- // Constructors and Destructor // ----------------------------------------------------------------------- XStr(const char* const toTranscode) : fASCIIForm(NULL) { // Call the private transcoding method fUnicodeForm = XMLString::transcode(toTranscode); } XStr(const XMLCh* const toTranscode) : fUnicodeForm(NULL) { // Call the private transcoding method fASCIIForm = XMLString::transcode(toTranscode); } ~XStr() { if (fUnicodeForm) XMLString::release(&fUnicodeForm); if (fASCIIForm) XMLString::release(&fASCIIForm); } // ----------------------------------------------------------------------- // Getter methods // ----------------------------------------------------------------------- const XMLCh* getXForm() const { return fUnicodeForm; } const char* getCForm() const { return fASCIIForm; } private : // ----------------------------------------------------------------------- // Private data members // // fUnicodeForm // This is the Unicode XMLCh format of the string. // ----------------------------------------------------------------------- XMLCh* fUnicodeForm; char* fASCIIForm; }; #define X(str) XStr(str).getXForm() string Cs (const XMLCh* str) { XStr bidule (str); string truc(bidule.getCForm()); return truc;} //#define C(str) string(XStr(str).getCForm()).c_str() #define C(str) Cs(str).c_str() ///// First setup the reporter class. It doesn't need to be in the API. namespace Gyoto { class DOMErrorReporter; } class Gyoto::DOMErrorReporter : public ErrorHandler { public: // ----------------------------------------------------------------------- // Constructors and Destructor // ----------------------------------------------------------------------- DOMErrorReporter() : fSawErrors(false) { } ~DOMErrorReporter() { } // ----------------------------------------------------------------------- // Implementation of the error handler interface // ----------------------------------------------------------------------- void warning(const SAXParseException& toCatch); void error(const SAXParseException& toCatch); void fatalError(const SAXParseException& toCatch); void resetErrors(); // ----------------------------------------------------------------------- // Getter methods // ----------------------------------------------------------------------- bool getSawErrors() const; // ----------------------------------------------------------------------- // Private data members // // fSawErrors // This is set if we get any errors, and is queryable via a getter // method. Its used by the main code to suppress output if there are // errors. // ----------------------------------------------------------------------- bool fSawErrors; }; void DOMErrorReporter::warning(const SAXParseException&) { //y_print(); } void DOMErrorReporter::error(const SAXParseException& toCatch) { fSawErrors = true; GYOTO_ERROR(C(toCatch.getMessage())); } void DOMErrorReporter::fatalError(const SAXParseException& toCatch) { fSawErrors = true; GYOTO_ERROR(C(toCatch.getMessage())); } void DOMErrorReporter::resetErrors() { fSawErrors = false; } //// Now for the public API Factory::Factory(char * data) : reporter_(NULL), gg_el_(NULL), obj_el_(NULL), ph_el_(NULL), scenery_(NULL), gg_(NULL), screen_(NULL), obj_(NULL), photon_(NULL), spectro_(NULL), filename_("") { // Initialize Xerces XML parser XMLPlatformUtils::Initialize(); parser_ = new XercesDOMParser(); parser_->setValidationScheme(XercesDOMParser::Val_Never); parser_->setDoNamespaces(true); // optional DOMErrorReporter *errReporter = new DOMErrorReporter(); reporter_=errReporter; parser_->setErrorHandler(errReporter); // Parse file // If data start with "parse(data); } else { filename_="Gyoto XML data (in memory)"; xercesc::MemBufInputSource xml_buf(reinterpret_cast(data), len, filename_.c_str()); parser_->parse(xml_buf); } doc_ = parser_ -> getDocument(); root_ = doc_ -> getDocumentElement(); if (!root_ ) throw(Error( "empty XML document" )); resolver_=doc_->createNSResolver(root_); kind_=(C(root_->getTagName())); } Factory::~Factory() { // XMLString::release(&kind_); if (resolver_) delete resolver_; if (reporter_) delete reporter_; if (parser_) delete parser_; else if (doc_) delete doc_; // parser_ takes care of doc_ // if (impl_) delete impl_; // Terminate takes care of that one XMLPlatformUtils::Terminate(); gg_=NULL; obj_=NULL; scenery_=NULL; photon_=NULL; spectro_=NULL; } void Factory::setReporter(ErrorHandler* eh) { reporter_=eh; parser_->setErrorHandler(eh); } DOMElement * Factory::getRoot() { return root_; } DOMDocument * Factory::getDoc() { return doc_; } SmartPointer Factory::metric() { if (!gg_) { DOMElement *MetricDOM; if (kind_.compare("Metric")){ DOMXPathResult* result; result=doc_->evaluate( X(("/"+kind_+"/Metric").c_str()), root_, resolver_, DOMXPathResult::ORDERED_NODE_SNAPSHOT_TYPE, NULL); if (!result->getSnapshotLength()) { delete result; return NULL; } MetricDOM = static_cast< xercesc::DOMElement* >(result -> getNodeValue()); delete result; } else MetricDOM = root_; vector Plugin = Gyoto::split(C(MetricDOM->getAttribute(X("plugin"))), ","); string Kind = C(MetricDOM->getAttribute(X("kind"))); FactoryMessenger fm(this, MetricDOM); gg_= (*Metric::getSubcontractor(Kind, Plugin))(&fm, Plugin); } return gg_; } SmartPointer Factory::astrobj(){ if (!obj_) { DOMXPathResult* result; DOMElement *tmpEl; if (kind_=="Astrobj") { obj_el_ = tmpEl = root_; } else { result=doc_->evaluate( X(("/"+kind_+"/Astrobj").c_str()), root_, resolver_, DOMXPathResult::ORDERED_NODE_SNAPSHOT_TYPE, NULL); if (!result->getSnapshotLength()) { delete result; return NULL; } tmpEl = static_cast< xercesc::DOMElement* >(result -> getNodeValue()); delete result; } vector Plugin = split(C(tmpEl->getAttribute(X("plugin"))), ","); string AstrobjKind = Cs(tmpEl->getAttribute(X("kind"))); GYOTO_DEBUG_EXPR(AstrobjKind); FactoryMessenger fm(this, tmpEl); obj_ = (*Astrobj::getSubcontractor(AstrobjKind, Plugin))(&fm, Plugin); } return obj_; } SmartPointer Factory::photon(){ if (!photon_) { DOMXPathResult* result; DOMElement *tmpEl; if (kind_=="Photon") { ph_el_ = tmpEl = root_; } else { result=doc_->evaluate( X(("/"+kind_+"/Photon").c_str()), root_, resolver_, DOMXPathResult::ORDERED_NODE_SNAPSHOT_TYPE, NULL); if (!result->getSnapshotLength()) { delete result; return NULL; } tmpEl = static_cast< xercesc::DOMElement* >(result -> getNodeValue()); delete result; } FactoryMessenger fm(this, tmpEl); photon_ = Photon::Subcontractor(&fm); } return photon_; } SmartPointer Factory::spectrum(){ DOMXPathResult* result; DOMElement *tmpEl; if (kind_=="Spectrum") { tmpEl = root_; } else { result=doc_->evaluate( X(("/"+kind_+"/Spectrum").c_str()), root_, resolver_, DOMXPathResult::ORDERED_NODE_SNAPSHOT_TYPE, NULL); if (!result->getSnapshotLength()) { delete result; return NULL; } tmpEl = static_cast< xercesc::DOMElement* >(result -> getNodeValue()); delete result; } vector Plugin = split(C(tmpEl->getAttribute(X("plugin"))), ","); string Kind = Cs(tmpEl->getAttribute(X("kind"))); GYOTO_DEBUG_EXPR(Kind); FactoryMessenger fm(this, tmpEl); return (*Spectrum::getSubcontractor(Kind, Plugin))(&fm, Plugin); } SmartPointer Factory::spectrometer(){ DOMXPathResult* result; DOMElement *tmpEl; if (kind_=="Spectrometer") { tmpEl = root_; } else { result=doc_->evaluate( X(("/"+kind_+"/Spectrometer").c_str()), root_, resolver_, DOMXPathResult::ORDERED_NODE_SNAPSHOT_TYPE, NULL); if (!result->getSnapshotLength()) { delete result; return NULL; } tmpEl = static_cast< xercesc::DOMElement* >(result -> getNodeValue()); delete result; } vector Plugin = split(C(tmpEl->getAttribute(X("plugin"))), ","); string Kind = Cs(tmpEl->getAttribute(X("kind"))); GYOTO_DEBUG_EXPR(Kind); FactoryMessenger fm(this, tmpEl); return (*Spectrometer::getSubcontractor(Kind, Plugin))(&fm, Plugin); } /// Scenery SmartPointer Factory::scenery () { if (!scenery_) { DOMXPathResult* result; DOMElement *tmpEl; result=doc_->evaluate( X("/Scenery"), root_, resolver_, DOMXPathResult::ORDERED_NODE_SNAPSHOT_TYPE, NULL); tmpEl = static_cast< xercesc::DOMElement* >(result -> getNodeValue()); FactoryMessenger fm(this, tmpEl); scenery_ = Scenery::Subcontractor(&fm); delete result; } return scenery_; } SmartPointer Factory::screen(){ if (!screen_) { DOMXPathResult* result; DOMElement *ScreenDOM; result=doc_->evaluate( X(("/"+kind_+"/Screen").c_str()), root_, resolver_, DOMXPathResult::ORDERED_NODE_SNAPSHOT_TYPE, NULL); if (!result->getSnapshotLength()) { delete result; return NULL; } ScreenDOM = static_cast< xercesc::DOMElement* >(result -> getNodeValue()); FactoryMessenger fm ( this, ScreenDOM ); screen_ = Screen::Subcontractor(&fm); delete result; } return screen_; } const string Factory::kind() { return kind_ ; } Factory::Factory(SmartPointer sc) : reporter_(NULL), parser_(NULL), resolver_(NULL), gg_el_(NULL), obj_el_(NULL), ph_el_(NULL), scenery_(sc), gg_(sc->metric()), screen_(NULL), obj_(sc->astrobj()), photon_(NULL), spectro_(NULL), filename_("") { GYOTO_DEBUG << "Initializing XML stuff" << endl; XMLPlatformUtils::Initialize(); impl_ = DOMImplementationRegistry::getDOMImplementation(X("Core")); if (!impl_) GYOTO_ERROR("Problem initializing DOMImplementation"); doc_ = impl_->createDocument( 0, // root element namespace URI. X("Scenery"), // root element name 0); // document type object (DTD). root_ = doc_->getDocumentElement(); GYOTO_DEBUG << "Creating FactoryMessenger" << endl; FactoryMessenger fm(this, root_); GYOTO_DEBUG << "scenery_ -> fillElement(&fm);" << endl; scenery_ -> fillElement(&fm); } Factory::Factory(SmartPointer scr) : reporter_(NULL), parser_(NULL), resolver_(NULL), gg_el_(NULL), obj_el_(NULL), ph_el_(NULL), scenery_(NULL), gg_(scr->metric()), screen_(scr), obj_(), photon_(NULL), spectro_(NULL), filename_("") { XMLPlatformUtils::Initialize(); impl_ = DOMImplementationRegistry::getDOMImplementation(X("Core")); if (!impl_) GYOTO_ERROR("Problem initializing DOMImplementation"); doc_ = impl_->createDocument( 0, // root element namespace URI. X("Screen"), // root element name 0); // document type object (DTD). root_ = doc_->getDocumentElement(); FactoryMessenger fm(this, root_); screen_ -> fillElement(&fm); } Factory::Factory(SmartPointer gg) : reporter_(NULL), parser_(NULL), resolver_(NULL), gg_el_(NULL), obj_el_(NULL), ph_el_(NULL), scenery_(NULL), gg_(gg), screen_(NULL), obj_(NULL), photon_(NULL), spectro_(NULL), filename_("") { XMLPlatformUtils::Initialize(); impl_ = DOMImplementationRegistry::getDOMImplementation(X("Core")); if (!impl_) GYOTO_ERROR("Problem initializing DOMImplementation"); doc_ = impl_->createDocument( 0, // root element namespace URI. X("Metric"), // root element name 0); // document type object (DTD). gg_el_ = root_ = doc_->getDocumentElement(); FactoryMessenger fm(this, gg_el_); gg -> fillElement(&fm); } Factory::Factory(SmartPointer ao) : reporter_(NULL), parser_(NULL), resolver_(NULL), gg_el_(NULL), scenery_(NULL), gg_(NULL), obj_(ao), photon_(NULL), spectro_(NULL), filename_("") { XMLPlatformUtils::Initialize(); impl_ = DOMImplementationRegistry::getDOMImplementation(X("Core")); if (!impl_) GYOTO_ERROR("Problem initializing DOMImplementation"); doc_ = impl_->createDocument( 0, // root element namespace URI. X("Astrobj"), // root element name 0); // document type object (DTD). obj_el_ = root_ = doc_->getDocumentElement(); FactoryMessenger fm(this, obj_el_); ao -> fillElement(&fm); } Factory::Factory(SmartPointer sp) : reporter_(NULL), parser_(NULL), resolver_(NULL), gg_el_(NULL), scenery_(NULL), gg_(NULL), obj_(NULL), photon_(NULL), spectro_(NULL), filename_("") { XMLPlatformUtils::Initialize(); impl_ = DOMImplementationRegistry::getDOMImplementation(X("Core")); if (!impl_) GYOTO_ERROR("Problem initializing DOMImplementation"); doc_ = impl_->createDocument( 0, // root element namespace URI. X("Spectrum"), // root element name 0); // document type object (DTD). obj_el_ = root_ = doc_->getDocumentElement(); FactoryMessenger fm(this, obj_el_); sp -> fillElement(&fm); } Factory::Factory(SmartPointer ph) : reporter_(NULL), parser_(NULL), resolver_(NULL), gg_el_(NULL), obj_el_(NULL), ph_el_(NULL), scenery_(NULL), gg_(ph->metric()), obj_(ph->astrobj()), photon_(ph), spectro_(NULL), filename_("") { XMLPlatformUtils::Initialize(); impl_ = DOMImplementationRegistry::getDOMImplementation(X("Core")); if (!impl_) GYOTO_ERROR("Problem initializing DOMImplementation"); doc_ = impl_->createDocument( 0, // root element namespace URI. X("Photon"), // root element name 0); // document type object (DTD). ph_el_ = root_ = doc_->getDocumentElement(); FactoryMessenger fm(this, root_); photon_ -> fillElement(&fm); } Factory::Factory(SmartPointer sp) : reporter_(NULL), parser_(NULL), resolver_(NULL), gg_el_(NULL), obj_el_(NULL), ph_el_(NULL), scenery_(NULL), gg_(NULL), obj_(NULL), photon_(NULL), spectro_(sp), filename_("") { XMLPlatformUtils::Initialize(); impl_ = DOMImplementationRegistry::getDOMImplementation(X("Core")); if (!impl_) GYOTO_ERROR("Problem initializing DOMImplementation"); doc_ = impl_->createDocument( 0, // root element namespace URI. X("Spectrometer"), // root element name 0); // document type object (DTD). root_ = doc_->getDocumentElement(); FactoryMessenger fm(this, root_); spectro_ -> fillElement(&fm); } void Factory::metric(SmartPointer gg, DOMElement *el) { if (!gg && !gg_) return; if (gg_ && gg && gg!= gg_) GYOTO_ERROR("Inconsistent use of Metrics"); if (gg && !gg_el_) { gg_ = gg; gg_el_ = doc_->createElement(X("Metric")); el->appendChild(gg_el_); FactoryMessenger fm(this, gg_el_); gg -> fillElement(&fm); } } void Factory::astrobj(SmartPointer ao, DOMElement *el) { GYOTO_DEBUG << endl; if (!ao && !obj_) return; if (obj_ && ao && ao!= obj_) GYOTO_ERROR("Inconsistent use of Astrobjs"); if (ao && !obj_el_) { GYOTO_DEBUG <<"obj_ = ao;" << endl; obj_ = ao; GYOTO_DEBUG <<"XML stuff" << endl; obj_el_ = doc_->createElement(X("Astrobj")); el->appendChild(obj_el_); GYOTO_DEBUG <<"XML stuffnew FactoryMessenger" << endl; FactoryMessenger fm(this, obj_el_); GYOTO_DEBUG <<"ao -> fillElement(&fm);" << endl; ao -> fillElement(&fm); } } void Factory::screen(SmartPointer scr, DOMElement *el) { if (!scr && !screen_) return; if (screen_ && scr && scr!= screen_) GYOTO_ERROR("Inconsistent use of Screens"); if (scr && !screen_) { screen_ = scr; DOMElement * scr_el = doc_->createElement(X("Screen")); el->appendChild(scr_el); FactoryMessenger fm(this, scr_el); scr -> fillElement(&fm); } } void Factory::write(const char* const goutputfile) { filename_ = goutputfile; // write file DOMLSSerializer *theSerializer = (static_cast(impl_))->createLSSerializer(); DOMConfiguration *serializerConfig = theSerializer->getDomConfig(); DOMLSOutput *theOutputDesc = (static_cast(impl_))->createLSOutput(); XMLFormatTarget *myFormTarget; if (serializerConfig->canSetParameter(XMLUni::fgDOMWRTFormatPrettyPrint,true)) serializerConfig->setParameter(XMLUni::fgDOMWRTFormatPrettyPrint, true); if (goutputfile) myFormTarget=new LocalFileFormatTarget(goutputfile); else myFormTarget=new StdOutFormatTarget(); theOutputDesc->setByteStream(myFormTarget); theSerializer->write(doc_, theOutputDesc); delete myFormTarget; theOutputDesc->release(); theSerializer->release(); } string Factory::format() { // write file DOMLSSerializer *theSerializer = (static_cast(impl_))->createLSSerializer(); DOMConfiguration *serializerConfig = theSerializer->getDomConfig(); DOMLSOutput *theOutputDesc = (static_cast(impl_))->createLSOutput(); MemBufFormatTarget *myFormTarget = new MemBufFormatTarget(); if (serializerConfig->canSetParameter(XMLUni::fgDOMWRTFormatPrettyPrint,true)) serializerConfig->setParameter(XMLUni::fgDOMWRTFormatPrettyPrint, true); theOutputDesc->setByteStream(myFormTarget); theSerializer->write(doc_, theOutputDesc); string res=(const char*) myFormTarget->getRawBuffer(); delete myFormTarget; theOutputDesc->release(); theSerializer->release(); return res; } void Factory::setParameter(std::string name, DOMElement *pel) { DOMElement* el = doc_->createElement(X(name.c_str())); pel -> appendChild(el); } void Factory::setParameter(std::string name, double value, DOMElement *pel) { DOMElement* el = doc_->createElement(X(name.c_str())); pel -> appendChild(el); char val_string[dvalLength]; d2txt(val_string,value); el->appendChild(doc_->createTextNode(X(val_string))); } void Factory::setParameter(std::string name, int value, DOMElement *pel) { DOMElement* el = doc_->createElement(X(name.c_str())); pel -> appendChild(el); char val_string[dvalLength]; sprintf( val_string, " %i ", value); el->appendChild(doc_->createTextNode(X(val_string))); } void Factory::setParameter(std::string name, unsigned int value, DOMElement *pel) { DOMElement* el = doc_->createElement(X(name.c_str())); pel -> appendChild(el); char val_string[dvalLength]; sprintf( val_string, " %u ", value); el->appendChild(doc_->createTextNode(X(val_string))); } void Factory::setParameter(std::string name, long value, DOMElement *pel) { DOMElement* el = doc_->createElement(X(name.c_str())); pel -> appendChild(el); char val_string[dvalLength]; sprintf( val_string, " %li ", value); el->appendChild(doc_->createTextNode(X(val_string))); } void Factory::setParameter(std::string name, unsigned long int value, DOMElement *pel) { DOMElement* el = doc_->createElement(X(name.c_str())); pel -> appendChild(el); char val_string[dvalLength]; sprintf( val_string, " %lu ", value); el->appendChild(doc_->createTextNode(X(val_string))); } void Factory::setParameter(std::string name, std::string val, DOMElement *pel) { DOMElement* el = doc_->createElement(X(name.c_str())); pel -> appendChild(el); el->appendChild(doc_->createTextNode(X(val.c_str()))); } void Factory::setParameter(std::string name, double val[], size_t n, DOMElement *pel, FactoryMessenger **child){ ostringstream ss; ss.imbue(Cloc); // set local to 'C' ss << setprecision(GYOTO_PREC) << setw(GYOTO_WIDTH) << val[0]; for (size_t i=1; icreateElement(X(name.c_str())); pel -> appendChild(el); el->appendChild( doc_->createTextNode(X(ss.str().c_str())) ); if (child) *child = new FactoryMessenger(this, el); } void Factory::setParameter(std::string name, std::vector const &val, DOMElement *pel, FactoryMessenger **child){ DOMElement* el = doc_->createElement(X(name.c_str())); pel -> appendChild(el); size_t n=val.size(); if (n) { ostringstream ss; ss.imbue(Cloc); // set local to 'C' ss << setprecision(GYOTO_PREC) << setw(GYOTO_WIDTH) << val[0]; for (size_t i=1; iappendChild( doc_->createTextNode(X(ss.str().c_str())) ); } if (child) *child = new FactoryMessenger(this, el); } void Factory::setParameter(std::string name, std::vector const &val, DOMElement *pel, FactoryMessenger **child){ DOMElement* el = doc_->createElement(X(name.c_str())); pel -> appendChild(el); size_t n=val.size(); if (n) { ostringstream ss; ss.imbue(Cloc); // set local to 'C' ss << val[0]; for (size_t i=1; iappendChild( doc_->createTextNode(X(ss.str().c_str())) ); } if (child) *child = new FactoryMessenger(this, el); } void Factory::setContent(std::string content, DOMElement *el) { el -> appendChild( doc_->createTextNode( X( content.c_str() ) ) ); } ///////// Factory Messenger Class /////////// FactoryMessenger::FactoryMessenger(Gyoto::Factory* emp, xercesc::DOMElement* el) : employer_(emp), element_(el), curNodeIndex_(0) { children_ = element_->getChildNodes(); nodeCount_ = children_->getLength(); } FactoryMessenger::FactoryMessenger(const FactoryMessenger& fm, std::string name) : employer_(fm.employer_), element_(NULL), curNodeIndex_(0) { element_ = employer_ -> doc_ -> createElement(X(name.c_str())); fm.element_ -> appendChild (element_) ; children_ = element_->getChildNodes(); nodeCount_ = children_->getLength(); } void FactoryMessenger::reset() { curNodeIndex_=0; } int FactoryMessenger::getNextParameter(std::string* namep, std::string* contp, std::string* unitp) { GYOTO_DEBUG << "namep=" << namep << ", contp=" << contp << ": " << "*namep=" << *namep << ", *contp=" << *contp << endl; if (curNodeIndex_ >= nodeCount_) return 0; DOMNode *currentNode = children_->item(curNodeIndex_++); if( currentNode->getNodeType() && // true is not NULL currentNode->getNodeType() == DOMNode::ELEMENT_NODE ) // is element { // Found node which is an Element. Re-cast node as element DOMElement *currentElement = static_cast< xercesc::DOMElement* >( currentNode ); *namep = C(currentElement->getTagName()); *contp = C(currentElement->getTextContent()); if (unitp) *unitp = C(currentElement->getAttribute(X("unit"))); return 1; } return getNextParameter(namep, contp, unitp); } FactoryMessenger* FactoryMessenger::makeChild(std::string name) { return new FactoryMessenger(*this, name); } void FactoryMessenger::setSelfAttribute(std::string attrname, std::string attrvalue) { element_->setAttribute(X(attrname.c_str()), X(attrvalue.c_str())); } void FactoryMessenger::setSelfAttribute(std::string attrname, unsigned long attrvalue) { char val_string[dvalLength]; sprintf( val_string, "%lu", attrvalue); element_->setAttribute(X(attrname.c_str()), X(val_string)); } void FactoryMessenger::setSelfAttribute(std::string attrname, unsigned int attrvalue) { setSelfAttribute(attrname, (unsigned long)(attrvalue)); } void FactoryMessenger::setSelfAttribute(std::string attrname, double attrvalue) { char val_string[dvalLength]; d2txt(val_string, attrvalue); element_->setAttribute(X(attrname.c_str()), X(val_string)); } string FactoryMessenger::getAttribute(std::string attrname) const { DOMNode *currentNode = children_->item(curNodeIndex_-1); DOMElement *currentElement = static_cast< xercesc::DOMElement* >( currentNode ); return Cs(currentElement->getAttribute(X(attrname.c_str()))); } string FactoryMessenger::getSelfAttribute(std::string attrname) const { return Cs(element_->getAttribute(X(attrname.c_str()))); } string FactoryMessenger::getFullContent() const { return Cs(element_->getTextContent()); } void FactoryMessenger::setFullContent(std::string content) { employer_ -> setContent (content, element_) ; } FactoryMessenger* FactoryMessenger::getChild() const { DOMNode *currentNode = children_->item(curNodeIndex_-1); DOMElement *currentElement = static_cast< xercesc::DOMElement* >( currentNode ); return new FactoryMessenger(employer_, currentElement); } void FactoryMessenger::astrobj(SmartPointer gg) { employer_ -> astrobj (gg, element_); } void FactoryMessenger::screen(SmartPointer gg) { employer_ -> screen (gg, element_); } void FactoryMessenger::metric(SmartPointer gg) { employer_ -> metric (gg, element_); } SmartPointer FactoryMessenger::metric() { return employer_ -> metric (); } SmartPointer FactoryMessenger::screen() { return employer_ -> screen (); } SmartPointer FactoryMessenger::photon() { return employer_ -> photon (); } SmartPointer FactoryMessenger::astrobj() { return employer_ -> astrobj (); } void FactoryMessenger::setParameter(std::string name){ employer_ -> setParameter(name, element_); } void FactoryMessenger::setParameter(std::string name, double value){ employer_ -> setParameter(name, value, element_); } void FactoryMessenger::setParameter(std::string name, int value){ employer_ -> setParameter(name, value, element_); } void FactoryMessenger::setParameter(std::string name, long value){ employer_ -> setParameter(name, value, element_); } void FactoryMessenger::setParameter(std::string name, unsigned int value){ employer_ -> setParameter(name, value, element_); } void FactoryMessenger::setParameter(std::string name, unsigned long value){ employer_ -> setParameter(name, value, element_); } void FactoryMessenger::setParameter(std::string name, std::string value){ employer_ -> setParameter(name, value, element_); } void FactoryMessenger::setParameter(std::string name, double val[], size_t n, FactoryMessenger **child){ employer_ -> setParameter(name, val, n, element_, child); } void FactoryMessenger::setParameter(std::string name, std::vector const &val, FactoryMessenger **child){ employer_ -> setParameter(name, val, element_, child); } void FactoryMessenger::setParameter(std::string name, std::vector const &val, FactoryMessenger **child){ employer_ -> setParameter(name, val, element_, child); } size_t FactoryMessenger::parseArray(std::string content, double val[], size_t max_tokens) { char const * const delim = " \t\n" ; char const * const c_content=content.c_str(); size_t len=strlen(c_content); if (len==0) return 0; size_t n=0; char * const tc = new char[len+1]; memcpy(tc, c_content, len+1); char * sub = strtok(tc, delim); while (sub && n FactoryMessenger::parseArray(std::string content) { std::vector result; char const * const delim = " \t\n" ; char const * const c_content=content.c_str(); size_t len=strlen(c_content); if (len==0) return result; char * const tc = new char[len+1]; memcpy(tc, c_content, len+1); char * sub = strtok(tc, delim); while (sub) { result.push_back(Gyoto::atof(sub)); sub = strtok(NULL, delim); } delete [] tc; return result; } std::vector FactoryMessenger::parseArrayULong(std::string content) { std::vector result; char const * const delim = " \t\n" ; char const * const c_content=content.c_str(); size_t len=strlen(c_content); if (len==0) return result; char * const tc = new char[len+1]; memcpy(tc, c_content, len+1); char * sub = strtok(tc, delim); while (sub) { result.push_back(atol(sub)); sub = strtok(NULL, delim); } delete [] tc; return result; } std::string FactoryMessenger::fullPath(std::string fname) { return employer_ -> fullPath(fname); } std::string Factory::fullPath(std::string fname) { GYOTO_DEBUG << endl; if (!fname.compare(0, 1, "/")) return fname; // fname is already absolute string fpath = ""; string xmlpath="", curwd=""; { // Make sure we call dirname and getcwd correctly and free memory. // We do this in a block to scope the temporary variables. char * xmlfile = strdup(filename_.c_str()); // why strdup? because xmlpath = dirname(xmlfile); // dirname may modify xmlfile. free (xmlfile); xmlfile = NULL; char * cwd = getcwd(NULL, 0); curwd = cwd; free (cwd); cwd = NULL; } string prefix="`pwd`/"; if (fname.compare(0, prefix.size(), prefix)) { // fname does not start with "`pwd`/": // it is relative to xmlpath if (xmlpath.compare(0, 1, "/")) fpath = curwd + "/" ; fpath += xmlpath + "/"; fpath += fname; } else { // fname starts with "`pwd`/": relative to working directory fpath = curwd + "/"; fpath += fname.substr(prefix.size()); } GYOTO_DEBUG << "returns " << fpath << endl; return fpath; } #endif Gyoto-2.0.2/lib/FitsRW.C000066400000000000000000000312601455254334400146570ustar00rootroot00000000000000/* Copyright 2019-2021 Frederic Vincent, Thibaut Paumard, Nicolas Aimar This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ //Gyoto headers #include "GyotoUtils.h" #include "GyotoFitsRW.h" #ifdef GYOTO_USE_CFITSIO #define throwCfitsioError(status) \ { fits_get_errstatus(status, ermsg); GYOTO_ERROR(ermsg); } #endif //Std headers #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; FitsRW::FitsRW() : nnu_(0), dt_(0.), nt_(0), numin_(0.), numax_(DBL_MAX), tmin_(-DBL_MAX), tmax_(DBL_MAX) { GYOTO_DEBUG << endl; } FitsRW::FitsRW(const FitsRW&o): nnu_(o.nnu_), dt_(o.dt_), nt_(o.nt_), numin_(o.numin_), numax_(o.numax_), tmin_(o.tmin_), tmax_(o.tmax_) { GYOTO_DEBUG << endl; } FitsRW* FitsRW::clone() const{ GYOTO_DEBUG << endl; return new FitsRW(*this); } FitsRW::~FitsRW() { GYOTO_DEBUG<< endl; } void FitsRW::numin(double numn) { numin_ = numn; } double FitsRW::numin() const {return numin_;} void FitsRW::numax(double numx) { numax_ = numx; } double FitsRW::numax() const {return numax_;} void FitsRW::nnu(size_t nn) { nnu_ = nn;} size_t FitsRW::nnu() const {return nnu_;} void FitsRW::tmin(double tmn) { tmin_ = tmn; if (nt_>1) dt_ = (tmax_-tmin_) / double(nt_-1); } double FitsRW::tmin() const {return tmin_;} void FitsRW::tmax(double tmx) { tmax_ = tmx; if (nt_>1) dt_ = (tmax_-tmin_) / double(nt_-1); } double FitsRW::tmax() const {return tmax_;} void FitsRW::nt(size_t nn) { nt_ = nn;} size_t FitsRW::nt() const {return nt_;} void FitsRW::dt(double dd) { dt_ = dd; } double FitsRW::dt() const {return dt_;} #ifdef GYOTO_USE_CFITSIO fitsfile* FitsRW::fitsCreate(string filename){ //GYOTO_MSG << "FitsRW creating FITS file " << filename << endl; --> THIS leads to bug; CHECK; it seems that only this function, whcih doesn't returns a void, is affected; the same happens if I use cout; however cerr works: GYOTO_MSG << "FitsRW creating FITS file " << filename << endl; char* pixfile = const_cast(filename.c_str()); int status = 0; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() long fpixel[] = {1}; fitsfile* fptr; // pointer to FITS file char * CNULL = NULL; fits_create_file(&fptr, pixfile, &status); long naxes [] = {1}; // Create the primary extension containing a zero pixel fits_create_img(fptr, DOUBLE_IMG, 1, naxes, &status); double src[1] = {0.}; fits_write_pix(fptr, TDOUBLE, fpixel, 1, src, &status); if (status) throwCfitsioError(status); // Create HDU containing the boundary of the arrays fits_create_img(fptr, DOUBLE_IMG, 1, naxes, &status); std::stringstream ss; ss << "GYOTO FitsRW " << "KEYS"; fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast(ss.str().c_str()), CNULL, &status); if (status) throwCfitsioError(status) ; ////// WRITE KEYWORDS (tmin_,tmax_,numin_,numax_) /////// if (tmin_>-DBL_MAX) { fits_write_key(fptr, TDOUBLE, const_cast("GYOTO FitsRW tmin"), &tmin_, CNULL, &status); if (status) throwCfitsioError(status) ; }else GYOTO_ERROR("In FitsRW::fitsCreate Please set tmin before calling this function"); if (tmax_("GYOTO FitsRW tmax"), &tmax_, CNULL, &status); if (status) throwCfitsioError(status) ; }else GYOTO_ERROR("In FitsRW::fitsCreate Please set tmax before calling this function"); if (numin_>0.) { fits_write_key(fptr, TDOUBLE, const_cast("GYOTO FitsRW numin"), &numin_, CNULL, &status); if (status) throwCfitsioError(status) ; }else GYOTO_ERROR("In FitsRW::fitsCreate Please set numin before calling this function"); if (numax_("GYOTO FitsRW numax"), &numax_, CNULL, &status); if (status) throwCfitsioError(status) ; }else GYOTO_ERROR("In FitsRW::fitsCreate Please set numax before calling this function"); return fptr; } void FitsRW::fitsClose(fitsfile* fptr) { GYOTO_MSG << "FitsRW Closing FITS file" << endl; int status = 0; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() int res=0; if (fits_close_file(fptr, &status)) throwCfitsioError(status) ; fptr = NULL; } void FitsRW::fitsWriteParams(fitsfile* fptr, double n_e, double theta, double kappa, double BB, double t_inj){ int status = 0; char * CNULL = NULL; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() string ss = "GYOTO FitsRW KEYS"; fits_movnam_hdu(fptr, ANY_HDU, const_cast(ss.c_str()), 0, &status); if (n_e>0.){ fits_write_key(fptr, TDOUBLE, const_cast("GYOTO FitsRW ne"), &n_e, CNULL, &status); if (status) throwCfitsioError(status) ; }else GYOTO_ERROR("In fitsWriteParams : n_e<0"); if (theta>0.){ fits_write_key(fptr, TDOUBLE, const_cast("GYOTO FitsRW theta"), &theta, CNULL, &status); if (status) throwCfitsioError(status) ; }else GYOTO_ERROR("In fitsWriteParams : theta<0"); if (kappa>0.){ fits_write_key(fptr, TDOUBLE, const_cast("GYOTO FitsRW kappa"), &kappa, CNULL, &status); if (status) throwCfitsioError(status) ; }else GYOTO_ERROR("In fitsWriteParams : kappa<0"); if (BB>0.){ fits_write_key(fptr, TDOUBLE, const_cast("GYOTO FitsRW BB"), &BB, CNULL, &status); if (status) throwCfitsioError(status) ; }else GYOTO_ERROR("In fitsWriteParams : BB<0"); if (t_inj>0.){ fits_write_key(fptr, TDOUBLE, const_cast("GYOTO FitsRW t_inj"), &t_inj, CNULL, &status); if (status) throwCfitsioError(status) ; }else GYOTO_ERROR("In fitsWriteParams : t_inj<0"); } void FitsRW::fitsWriteHDU(fitsfile* fptr, string const extname, double* const src) { GYOTO_MSG << "FitsRW writing HDU " << extname << endl; if (!src) GYOTO_ERROR("FitsRW::fitsWrite: nothing to save!"); int status = 0; long fpixel [] = {1,1}; long ndim = 2; long naxes [] = {long(nnu_),long(nt_)}; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() char * CNULL = NULL; if (nt_==0 || nnu_==0) GYOTO_ERROR("Axes lengths should be defined"); //cout << "tmin, tmax, numin, numax= " << tmin_ << "," << tmax_ << "," << numin_ << "," << numax_ << endl; ////// SAVE SRC IN APPROPRIATE HDU /////// if (extname!="FREQUENCY"){ fits_create_img(fptr, DOUBLE_IMG, ndim, naxes, &status); std::stringstream ss; ss << "GYOTO FitsRW " << extname; fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast(ss.str().c_str()), CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, nnu_*nt_, src, &status); if (status) throwCfitsioError(status) ; }else{ long naxe [] = {long(nnu_)}, fpix []={1}; fits_create_img(fptr, DOUBLE_IMG, 1, naxe, &status); std::stringstream ss; ss << "GYOTO FitsRW " << extname; fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast(ss.str().c_str()), CNULL, &status); fits_write_pix(fptr,TDOUBLE, fpix, nnu_, src, &status); if (status) throwCfitsioError(status) ; } } vector FitsRW::fitsReadHDU(fitsfile* fptr, string extname, double *& dest) { //GYOTO_MSG << "FitsRW reading FITS extension " << extname << endl; int status = 0; int anynul = 0; double tmpd; long ndim = 2; long naxes [] = {1,1}; long fpixel[] = {1,1}; long inc [] = {1,1}; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() ////// READ REQUIRED EXTENSION /////// if (extname!="GYOTO FitsRW FREQUENCY"){ GYOTO_DEBUG << "FitsRW::fitsRead(): search " << extname << " HDU" << endl; if (fits_movnam_hdu(fptr, ANY_HDU, const_cast(extname.c_str()), 0, &status)) throwCfitsioError(status) ; GYOTO_DEBUG << "FitsRW::fitsRead(): get image size" << endl; if (fits_get_img_size(fptr, ndim, naxes, &status)) throwCfitsioError(status) ; // update nt_, dt_ nt_ = naxes[1]; if (nt_>1) dt_ = (tmax_-tmin_)/double((nt_-1)); // update nnu_ nnu_ = naxes[0]; if (dest) { delete [] dest; dest = NULL; } dest = new double[nnu_*nt_]; for (int ii=0;ii dims(ndim, nnu_); dims[1] = nt_; return dims; } else{ // Read FREQUENCY long naxe[] = {1}, inc[]={1}; GYOTO_DEBUG << "FitsRW::fitsRead(): search " << extname << " HDU" << endl; if (fits_movnam_hdu(fptr, ANY_HDU, const_cast(extname.c_str()), 0, &status)) throwCfitsioError(status) ; GYOTO_DEBUG << "FitsRW::fitsRead(): get image size" << endl; if (fits_get_img_size(fptr, 1, naxe, &status)) throwCfitsioError(status) ; nt_ = naxe[0]; if (dest) { delete [] dest; dest = NULL; } dest = new double[nt_]; for (int ii=0;ii dims(1, nnu_); return dims; } } #endif void FitsRW::getIndices(size_t i[2], double const nu, double const tt, double* const freq_array) const { //cout << "tmin, tmax, tt, numin, numax, nu= " << tmin_ << "," << tmax_ << "," << tt << "," << numin_ << "," << numax_ << "," << nu << endl; if (tmin_>-DBL_MAX && tmax_0. && dt_>0.) { // >1 time must be properly defined if (tttmax_) i[1]=nt_-1;// and after tmax_ else i[1] = size_t(floor((tt-tmin_)/dt_)); // index of closest grid point smaller than tt }else GYOTO_ERROR("In FitsRW::getIndices: time undefined!"); if (nnu_>0.) { if (numin_ > 0. && numax_nu && numin_tmax_) GYOTO_ERROR("In FitsRW::interpolate t>tmax"); // Bilinear in nu,tt size_t inul=ind[0], inuu=ind[0]+1, itl=ind[1], itu=ind[1]+1; double array_ll = array[itl*nnu_+inul], // array_{nu,tt}, l=lower index, u=upper index array_lu = array[itl*nnu_+inuu], array_ul = array[itu*nnu_+inul], array_uu = array[itu*nnu_+inuu]; double tl = tmin_+dt_*itl, tu = tmin_+dt_*itu, nul=freq_array[inul], nuu=freq_array[inuu]; double rationu = (nu-nul)/(nuu-nul), ratiot = (tt-tl)/(tu-tl); array_interpo = array_ll+(array_ul-array_ll)*ratiot +(array_lu-array_ll)*rationu +(array_uu-array_lu-array_ul+array_ll)*rationu*ratiot; /*cout << "bilin interpo stuff: " << endl; cout << "T: " << tl << " " << tt << " " << tu << endl; cout << "NU: " << nul << " " << nu << " " << nuu << endl; cout << "ARRAY at 4 corners (tt,nu)=(ll,lu,ul,uu) + interpo: " << array_ll << " " << array_lu << " " << array_ul << " " << array_uu << " " << array_interpo << endl;*/ return array_interpo; }Gyoto-2.0.2/lib/FixedStar.C000066400000000000000000000117051455254334400153740ustar00rootroot00000000000000/* Copyright 2011 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoPhoton.h" #include "GyotoFixedStar.h" #include "GyotoProperty.h" #include "GyotoFactoryMessenger.h" #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; GYOTO_PROPERTY_START(FixedStar, "Coordinate-spherical blob with fixed centre coordinates.") GYOTO_PROPERTY_VECTOR_DOUBLE(FixedStar, Position, position, "Space coordinates (3 components).") GYOTO_PROPERTY_BOOL(FixedStar, Rotating, NonRotating, rotating, "Is fluid at rest or in circular rotation in coordinate system.") GYOTO_PROPERTY_END(FixedStar, UniformSphere::properties) FixedStar::FixedStar() : UniformSphere("FixedStar"), rotating_(false) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif for (int i=0;i<3;++i) pos_[i]=0.; } FixedStar::FixedStar(SmartPointer gg, double StPsn[3], double rad) : UniformSphere("FixedStar", gg, rad), rotating_(false) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "(metric, pos, rad)" << endl; # endif for (int i=0;i<3;++i) pos_[i] = StPsn[i]; radius(rad); # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "done" << endl; # endif } FixedStar::FixedStar(const FixedStar& orig) : UniformSphere(orig), rotating_(orig.rotating_) { for (int i=0; i<3; ++i) pos_[i] = orig.pos_[i]; } FixedStar* FixedStar::clone() const { return new FixedStar(*this); } FixedStar::~FixedStar() { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif } void FixedStar::getCartesian(double const * const , size_t const n_dates, double * const x, double * const y, double * const z, double * const xprime, double * const yprime, double * const zprime) { double xs, ys, zs; switch (gg_->coordKind()) { case GYOTO_COORDKIND_CARTESIAN: xs= pos_[0]; ys= pos_[1]; zs= pos_[2]; break; case GYOTO_COORDKIND_SPHERICAL: { double rs=pos_[0]; double ths=pos_[1]; double phs=pos_[2]; double st, ct, sp, cp; sincos(ths, &st, &ct); sincos(phs, &sp, &cp); xs= rs*st*cp; ys= rs*st*sp; zs= rs*ct; } break; default: GYOTO_ERROR("unsupported coordkind"); xs=ys=zs=0.; } for (size_t i=0; icircularVelocity(pos, vel); else { for (size_t i=0; i<4; ++i) vel[i]=0.; vel[0]=gg_->SysPrimeToTdot(pos, vel+1); } } void FixedStar::rotating(bool rot) {rotating_=rot;} bool FixedStar::rotating() const { return rotating_; } double const * FixedStar::getPos() const { return pos_; } void FixedStar::getPos(double dst[3]) const { for (int i=0; i<3;++i) dst[i]=pos_[i]; } void FixedStar::metric(SmartPointer gg) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif Generic::metric(gg); radius(radius_); } void FixedStar::radius(double r) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(r) ; # endif UniformSphere::radius(r); if (!gg_()) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "metric is not set yet" << endl; # endif return; } } double FixedStar::rMax() { if (rmax_==DBL_MAX) { switch (gg_ -> coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rmax_=3.*(pos_[0]+radius_); break; case GYOTO_COORDKIND_CARTESIAN: rmax_=3.*(sqrt(pos_[0]*pos_[0]+pos_[1]*pos_[1]+pos_[2]*pos_[2])+radius_); break; default: GYOTO_ERROR("unimplemented coordinate system in FixedStar"); } } return rmax_; } void FixedStar::setPos(const double p[3]) { for (int i=0; i<3; ++i) pos_[i]=p[i]; radius(radius_);} void FixedStar::position(std::vector const &v) { GYOTO_DEBUG_EXPR(v.size()); if (v.size() !=3) GYOTO_ERROR("FixedStar position needs exactly 3 tokens"); for (int i=0; i<3; ++i) pos_[i]=v[i]; radius(radius_); } std::vector FixedStar::position() const { std::vector res(3, 0.); for (int i=0; i<3; ++i) res[i]=pos_[i]; return res; } Gyoto-2.0.2/lib/FlaredDiskSynchrotron.C000066400000000000000000000657121455254334400177730ustar00rootroot00000000000000/* Copyright 2019-2021 Frederic Vincent & Thibaut Paumard & Nicolas Aimar This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoPhoton.h" #include "GyotoFlaredDiskSynchrotron.h" #include "GyotoProperty.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #ifdef GYOTO_USE_CFITSIO #define throwCfitsioError(status) \ { fits_get_errstatus(status, ermsg); GYOTO_ERROR(ermsg); } #endif #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; GYOTO_PROPERTY_START(FlaredDiskSynchrotron) GYOTO_PROPERTY_FILENAME(FlaredDiskSynchrotron, File, file, "File name of FITS file containing data") GYOTO_PROPERTY_DOUBLE(FlaredDiskSynchrotron, TimeTranslation_inMunit, timeTranslation_inMunit, "Shift simulation times by this amount, in GM/c3 unit") GYOTO_PROPERTY_DOUBLE(FlaredDiskSynchrotron, HoverR, hoverR, "Aspect ratio H/r of flared disk") GYOTO_PROPERTY_DOUBLE_UNIT(FlaredDiskSynchrotron, NumberDensityMax, numberDensityMax, "Maximum value of nb density in SI") GYOTO_PROPERTY_DOUBLE(FlaredDiskSynchrotron, TemperatureMax, temperatureMax, "Maximum value of temperature in K") GYOTO_PROPERTY_DOUBLE(FlaredDiskSynchrotron, BetaAtMax, betaAtMax, "Value of Beta at Maximum nb density") GYOTO_PROPERTY_DOUBLE(FlaredDiskSynchrotron, MagnetizationParameter, magnetizationParameter, "Standard magnetization parameter (B^2/4pi) / (rho*c^2) " "where rho is mass density") GYOTO_PROPERTY_DOUBLE(FlaredDiskSynchrotron, KappaIndex, kappaIndex) GYOTO_PROPERTY_DOUBLE(FlaredDiskSynchrotron, PolytropicIndex, polytropicIndex) GYOTO_PROPERTY_END(FlaredDiskSynchrotron, Standard::properties) FlaredDiskSynchrotron::FlaredDiskSynchrotron() : Standard("FlaredDiskSynchrotron"), GridData2D(), filename_(""), hoverR_(0.), time_array_(NULL), density_(NULL), velocity_(NULL), Bvector_(NULL), numberDensityMax_cgs_(0.), temperatureMax_(0.), BMax_cgs_(0.), beta_(1.), magnetizationParameter_(1.), deltat_(0.), flag_(false), gamm1_(5./3.) { GYOTO_DEBUG << endl; spectrumKappaSynch_ = new Spectrum::KappaDistributionSynchrotron(); } FlaredDiskSynchrotron::FlaredDiskSynchrotron(const FlaredDiskSynchrotron& o) : Standard(o), GridData2D(o), filename_(o.filename_), hoverR_(o.hoverR_), time_array_(NULL), density_(NULL), velocity_(NULL), Bvector_(NULL), numberDensityMax_cgs_(o.numberDensityMax_cgs_), temperatureMax_(o.temperatureMax_), beta_(o.beta_), magnetizationParameter_(o.magnetizationParameter_), deltat_(o.deltat_), flag_(o.flag_), gamm1_(o.gamm1_), BMax_cgs_(o.BMax_cgs_) { GYOTO_DEBUG << endl; size_t ncells = 0; size_t nt=GridData2D::nt(), nphi=GridData2D::nphi(), nr=GridData2D::nr(); if (o.density_) { density_ = new double[ncells = nt * nphi * nr]; memcpy(density_, o.density_, ncells * sizeof(double)); } if (o.velocity_) { velocity_ = new double[ncells = 2 * nt * nphi * nr]; memcpy(velocity_, o.velocity_, ncells * sizeof(double)); } if (o.Bvector_) { Bvector_= new double[ncells = 4* nt * nphi * nr]; memcpy(Bvector_,o.Bvector_, ncells * sizeof(double)); } if (o.time_array_) { time_array_ = new double[nt]; memcpy(time_array_,o.time_array_, nt*sizeof(double)); } if (o.spectrumKappaSynch_()) spectrumKappaSynch_=o.spectrumKappaSynch_->clone(); } FlaredDiskSynchrotron* FlaredDiskSynchrotron::clone() const { return new FlaredDiskSynchrotron(*this); } FlaredDiskSynchrotron::~FlaredDiskSynchrotron() { GYOTO_DEBUG << endl; if (density_) delete [] density_; if (velocity_) delete [] velocity_; if (time_array_) delete [] time_array_; if (Bvector_) delete [] Bvector_; } void FlaredDiskSynchrotron::file(std::string const &f) { # ifdef GYOTO_USE_CFITSIO fitsRead(f); # else GYOTO_ERROR("This Gyoto has no FITS i/o"); # endif } std::string FlaredDiskSynchrotron::file() const { return filename_; } void FlaredDiskSynchrotron::hoverR(double const hor) { double hmin=1e-4; if (hor < hmin){ cerr << " " << endl; cerr << "***!!WARNING!!*** In FlaredDiskSynchrotron::hoverR: " "H/R very small, you might not resolve your disk; " "increase H/R or decrease GYOTO_T_TOL." << endl; cerr << " " << endl; } hoverR_ = hor; } double FlaredDiskSynchrotron::hoverR() const { return hoverR_; } void FlaredDiskSynchrotron::timeTranslation_inMunit(double const dt) { double tmin=GridData2D::tmin(), tmax=GridData2D::tmax(); GridData2D::tmin(tmin-deltat_+dt); GridData2D::tmax(tmax-deltat_+dt); deltat_=dt; if (GridData2D::nt()==0) GYOTO_ERROR("In FlaredDiskSynchrotron::timeTranslation nt not yet defined"); int nt = GridData2D::nt(); if (!time_array_) GYOTO_ERROR("In FlaredDiskSynchrotron::timeTranslation time_array_ not defined. Please use FlaredDiskSynchrotron::file(string) before this function"); for (int ii=0;ii0) cout << "\nWARNING : tmin is positive, in most cases the stationnary boundary condition will be applied. You should decrease more timeTranslation_inMunit until at least " << -tmin << "\n" << endl; } double FlaredDiskSynchrotron::timeTranslation_inMunit() const { return deltat_; } double FlaredDiskSynchrotron::numberDensityMax() const { // Converts internal cgs dens to SI double dens=numberDensityMax_cgs_; # ifdef HAVE_UDUNITS dens = Units::Converter("cm-3", "m-3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif return dens; } double FlaredDiskSynchrotron::numberDensityMax(string const &unit) const { double dens = numberDensityMax(); if (unit != "") { # ifdef HAVE_UDUNITS dens = Units::Converter("m-3", unit)(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif } return dens; } void FlaredDiskSynchrotron::numberDensityMax(double dens) { # ifdef HAVE_UDUNITS dens = Units::Converter("m-3", "cm-3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif numberDensityMax_cgs_=dens; BMax_cgs_=sqrt(8.*M_PI*numberDensityMax_cgs_*GYOTO_BOLTZMANN_CGS*temperatureMax_/beta_); } void FlaredDiskSynchrotron::numberDensityMax(double dens, string const &unit) { if (unit != "") { # ifdef HAVE_UDUNITS dens = Units::Converter(unit, "m-3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif } numberDensityMax(dens); } void FlaredDiskSynchrotron::temperatureMax(double tt) { temperatureMax_=tt; BMax_cgs_=sqrt(8.*M_PI*numberDensityMax_cgs_*GYOTO_BOLTZMANN_CGS*temperatureMax_/beta_); } double FlaredDiskSynchrotron::temperatureMax() const{return temperatureMax_;} void FlaredDiskSynchrotron::polytropicIndex(double gamma) {gamm1_=gamma-1;} double FlaredDiskSynchrotron::polytropicIndex() const {return gamm1_+1;} void FlaredDiskSynchrotron::betaAtMax(double beta){ if (beta<=0.) GYOTO_ERROR("In betaAtMax: beta must be >0!"); beta_=beta; BMax_cgs_=sqrt(8.*M_PI*numberDensityMax_cgs_*GYOTO_BOLTZMANN_CGS*temperatureMax_/beta_); } double FlaredDiskSynchrotron::betaAtMax() const {return beta_;} void FlaredDiskSynchrotron::magnetizationParameter(double rr) { magnetizationParameter_=rr;} double FlaredDiskSynchrotron::magnetizationParameter()const{ return magnetizationParameter_;} void FlaredDiskSynchrotron::kappaIndex(double index) { spectrumKappaSynch_->kappaindex(index); } double FlaredDiskSynchrotron::kappaIndex()const{ return spectrumKappaSynch_->kappaindex(); } void FlaredDiskSynchrotron::copyDensity(double const *const density, size_t const naxes[3]) { GYOTO_DEBUG << endl; if (density_) { GYOTO_DEBUG << "delete [] density_;" << endl; delete [] density_; density_ = NULL; } size_t nt=GridData2D::nt(), nphi=GridData2D::nphi(), nr=GridData2D::nr(); if (density) { if (nt != naxes[2] || nphi != naxes[1] || nr != naxes[0]) { GYOTO_DEBUG <<"grid dims changed, freeing velocity_" << endl; if (velocity_) { delete [] velocity_; velocity_= NULL; } } size_t nel; GridData2D::nt(naxes[2]); GridData2D::nphi(naxes[1]); GridData2D::nr(naxes[0]); //cout << naxes[0] << "," << naxes[1] << "," << naxes[2] << endl; if (!(nel=naxes[0] * naxes[1] * naxes[2])) GYOTO_ERROR( "dimensions can't be null"); // NB: not updating dr_ contrary to PD GYOTO_DEBUG << "allocate density_;" << endl; density_ = new double[nel]; GYOTO_DEBUG << "density >> density_" << endl; memcpy(density_, density, nel*sizeof(double)); } //cout << "density stored= " << endl; //for (int ii=0;ii<30;ii++) cerr << density_[ii] << " " ; //cout << endl; } double const * FlaredDiskSynchrotron::getDensity() const { return density_; } void FlaredDiskSynchrotron::copyVelocity(double const *const velocity, size_t const naxes[3]) { GYOTO_DEBUG << endl; if (velocity_) { GYOTO_DEBUG << "delete [] velocity_;\n"; delete [] velocity_; velocity_ = NULL; } size_t nt=GridData2D::nt(), nphi=GridData2D::nphi(), nr=GridData2D::nr(); if (velocity) { if (!density_) GYOTO_ERROR("Please use copyDensity() before copyVelocity()"); if (nt != naxes[2] || nphi != naxes[1] || nr != naxes[0]) GYOTO_ERROR("density_ and velocity_ have inconsistent dimensions"); GYOTO_DEBUG << "allocate velocity_;" << endl; size_t nel = 2*nt*nphi*nr; velocity_ = new double[nel]; GYOTO_DEBUG << "velocity >> velocity_" << endl; memcpy(velocity_, velocity, nel*sizeof(double)); } //cout << "velo stored= " << endl; //for (int ii=0;ii<60;ii++) cerr << velocity_[ii] << " " ; //cout << endl; } double const * FlaredDiskSynchrotron::getVelocity() const { return velocity_; } void FlaredDiskSynchrotron::copyBvector(double const *const Bvector, size_t const naxes[3]) { GYOTO_DEBUG << endl; if (Bvector_) { GYOTO_DEBUG << "delete [] Bvector_;\n"; delete [] Bvector_; Bvector_ = NULL; } size_t nt=GridData2D::nt(), nphi=GridData2D::nphi(), nr=GridData2D::nr(); if (Bvector) { if (!density_) GYOTO_ERROR("Please use copyDensity() before copyBvector()"); if (nt != naxes[2] || nphi != naxes[1] || nr != naxes[0]) GYOTO_ERROR("density_ and Bvector_ have inconsistent dimensions"); GYOTO_DEBUG << "allocate Bvector_;" << endl; size_t nel = 4*nt*nphi*nr; Bvector_ = new double[nel]; GYOTO_DEBUG << "Bvector >> Bvector_" << endl; memcpy(Bvector_, Bvector, nel*sizeof(double)); flag_=true; } //cout << "velo stored= " << endl; //for (int ii=0;ii<60;ii++) cerr << velocity_[ii] << " " ; //cout << endl; } double const * FlaredDiskSynchrotron::getBvector() const { return Bvector_; } void FlaredDiskSynchrotron::copyTimeArray(double const *const time_array, size_t const ntimes) { GYOTO_DEBUG << endl; if (time_array_) { GYOTO_DEBUG << "delete [] time_array_;\n"; delete [] time_array_; time_array_ = NULL; } size_t nt=GridData2D::nt(); if (time_array) { if (nt != ntimes) GYOTO_ERROR("the given ntimes and nt from FITS file are inconsistent"); GYOTO_DEBUG << "allocate time_array_;" << endl; time_array_ = new double[ntimes]; GYOTO_DEBUG << "time_array >> time_array_" << endl; memcpy(time_array_, time_array, ntimes*sizeof(double)); } } double const * FlaredDiskSynchrotron::getTimeArray() const { return time_array_; } #ifdef GYOTO_USE_CFITSIO vector FlaredDiskSynchrotron::fitsRead(string filename) { // Remove first char if it is "!" if (filename.substr(0,1)=="!") filename.erase(0,1); GYOTO_MSG << "FlaredDiskSynchrotron reading FITS file: " << filename << endl; filename_ = filename; char* pixfile = const_cast(filename_.c_str()); fitsfile* fptr = NULL; int status = 0; double tmpd; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() GYOTO_DEBUG << "FlaredDiskSynchrotron::fitsRead: opening file" << endl; if (fits_open_file(&fptr, pixfile, 0, &status)) throwCfitsioError(status) ; ////// READ FITS KEYWORDS COMMON TO ALL TABLES /////// // These are: tmin, tmax, rmin, rmax, phimin, phimax GYOTO_DEBUG << "FlaredDiskSynchrotron::fitsRead(): read tmin_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO GridData2D tmin", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else GridData2D::tmin(tmpd+deltat_); // tmin_ found GYOTO_DEBUG << "FlaredDiskSynchrotron::fitsRead(): read tmax_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO GridData2D tmax", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else GridData2D::tmax(tmpd+deltat_); // tmax_ found GYOTO_DEBUG << "FlaredDiskSynchrotron::fitsRead(): read rmin_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO GridData2D rmin", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else GridData2D::rmin(tmpd); // rmin_ found GYOTO_DEBUG << "FlaredDiskSynchrotron::fitsRead(): read rmax_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO GridData2D rmax", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else GridData2D::rmax(tmpd); // rmax_ found GYOTO_DEBUG << "FlaredDiskSynchrotron::fitsRead(): read phimin_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO GridData2D phimin", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else GridData2D::phimin(tmpd); // phimin_ found GYOTO_DEBUG << "FlaredDiskSynchrotron::fitsRead(): read phimax_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO GridData2D phimax", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else GridData2D::phimax(tmpd); // phimax_ found // READ EXTENSIONS // Density vector naxes_dens = GridData2D::fitsReadHDU(fptr,"GYOTO GridData2D DENSITY", density_); //cout << "density read= " << endl; //for (int ii=0;ii<30;ii++) cerr << density_[ii] << " " ; //cout << endl; // Velocity size_t length=2; // velocity is a 2-vector vector naxes_velo = GridData2D::fitsReadHDU(fptr,"GYOTO GridData2D VELOCITY", velocity_, length); if (naxes_dens[0]!=naxes_velo[0] || naxes_dens[1]!=naxes_velo[1] || naxes_dens[2]!=naxes_velo[2]) throwError("In FlaredDiskSynchro: density and velocity, dimensions " "do not agree"); // 4-vector B string name="GYOTO GridData2D BVECTOR"; fits_movnam_hdu(fptr, ANY_HDU, const_cast(name.c_str()), 0, &status); if (status==0){ // read only if the HDU exist flag_=true; size_t lengthB=4; // Bvector is a 4-vector vector naxes_Bvec = GridData2D::fitsReadHDU(fptr,"GYOTO GridData2D BVECTOR", Bvector_, lengthB); if (naxes_dens[0]!=naxes_velo[0] || naxes_dens[0]!=naxes_Bvec[0] || naxes_dens[1]!=naxes_velo[1] || naxes_dens[1]!=naxes_Bvec[1] || naxes_dens[2]!=naxes_velo[2] || naxes_dens[2]!=naxes_Bvec[2]) throwError("In FlaredDiskSynchro: density and B4vector dimensions " "do not agree"); /*cout << "B4vector read= " << endl; for (int ii=0;ii<4*naxes_Bvec[1]*naxes_Bvec[2];ii++) cerr << Bvector_[ii] << " " ; cout << endl;*/ } // Time array vector naxes_time = GridData2D::fitsReadHDU(fptr,"GYOTO GridData2D TIMEARRAY", time_array_); if (naxes_time[0]!=naxes_dens[2]) GYOTO_ERROR("In FlaredDiskSynchro: ntimes differ from density array and time_array"); /*cout << "velo read= " << endl; for (int ii=0;ii<60;ii++) cerr << velocity_[ii] << " " ; cout << endl;*/ GridData2D::nr(naxes_dens[0]); GridData2D::nphi(naxes_dens[1]); GridData2D::nt(naxes_dens[2]); //cout << "axes dens: " << naxes_dens[0] << " " << naxes_dens[1] << " " << naxes_dens[2] << endl; //cout << "axes velo: " << naxes_velo[0] << " " << naxes_velo[1] << " " << naxes_velo[2] << " " << naxes_velo[3] << endl; return naxes_velo; } #endif double FlaredDiskSynchrotron::operator()(double const coord[4]) { // zpos: modulus of altitude above equatorial plane // rproj: radius projected in the equatorial plane double zpos=0., rproj=0.; switch (gg_ -> coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rproj = coord[1]*sin(coord[2]); zpos = fabs(coord[1]*cos(coord[2])); break; case GYOTO_COORDKIND_CARTESIAN: zpos = fabs(coord[3]); rproj = sqrt(coord[1]*coord[1]+coord[2]*coord[2]); break; default: GYOTO_ERROR("FlaredDiskSynchrotron::operator(): unknown COORDKIND"); } //cout << coord[0] << ", " << coord[1] << ", " << coord[2] << ", " << coord[3] << endl; if (rproj < GridData2D::rmin() or rproj > GridData2D::rmax()) return 1.; // outside disk double zdisk = rproj*hoverR_; // altitude of flared disk at this rproj return zpos - zdisk; // >0 outside, <0 inside flared disk } void FlaredDiskSynchrotron::radiativeQ(double Inu[], // output double Taunu[], // output double const nu_ems[], size_t nbnu, // input double dsem, state_t const &coord_ph, double const coord_obj[8]) const { double rcyl=0.; // cylindrical radius double zz=0.; // height, z coord switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rcyl = coord_ph[1]*sin(coord_ph[2]); zz = coord_ph[1]*cos(coord_ph[2]); break; case GYOTO_COORDKIND_CARTESIAN: rcyl = pow(coord_ph[1]*coord_ph[1]+coord_ph[2]*coord_ph[2], 0.5); zz = coord_ph[3]; break; default: GYOTO_ERROR("In FlaredDiskSynchrotron::radiativeQ: Unknown coordinate system kind"); } double tt = coord_ph[0], phi = coord_ph[3]; if (rcylGridData2D::rmax()) throwError("In FlaredDiskSynchrotron::radiativeQ: r is not in grid!"); if (phi<0. or phi>2.*M_PI) throwError("In FlaredDiskSynchrotron::radiativeQ: phi is not in 0,2pi!"); // NB: phi is always in grid, and t might be outside, assuming stationnary // disk at ttmax_ //cout << "CALLING INTERPO FOR RHO" << endl; // Interpolating the density_ table, which contains // Sigma/r (surface density divided by radius), normalized. double Sigma_over_r_interpo=GridData2D::interpolate(tt,phi,rcyl,density_,time_array_); // Polytrop: p = kappa*rho^gamma double HH = hoverR_*rcyl; // Height of the flared disk at the local rcyl // 3D number density as a function of 2D surface density, // for a polytropic disk. See notes for details: double zfactor = 1.-zz*zz/(HH*HH), number_density = Sigma_over_r_interpo*numberDensityMax_cgs_ *pow(zfactor,1./gamm1_); // 3D temperature now, see notes for details. // Perfect gas: p = (rho/mp)*k*T // Thus: T \propto rho^{gamma-1} double temperature = pow(Sigma_over_r_interpo,gamm1_)*temperatureMax_*zfactor; //cout << "stuff: " << Sigma_over_r_interpo << " " << hoverR_ << " " << rcyl << " " << zz << " " << HH << " " << zfactor << endl; double thetae = GYOTO_BOLTZMANN_CGS*temperature /(GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS); double hypergeom = Gyoto::hypergeom(kappaIndex(), thetae); double BB=0; double theta_mag=0.; if (flag_){ // magnetic field defined in FITS data size_t nr = GridData2D::nr(), nphi = GridData2D::nphi(), nt = GridData2D::nt(), nel = nt*nphi*nr-1; //cout << "CALLING INTERPO FOR B" << endl; double Bt=GridData2D::interpolate(tt, phi, rcyl, Bvector_, time_array_), Br=GridData2D::interpolate(tt, phi, rcyl, Bvector_+nel+1, time_array_), Btheta=GridData2D::interpolate(tt, phi, rcyl, Bvector_+2*(nel+1), time_array_), Bphi=GridData2D::interpolate(tt, phi, rcyl, Bvector_+3*(nel+1), time_array_); double b4vec[4]={Bt,Br,Btheta,Bphi}; // B 4-vector in BL frame double vel[4]; // 4-velocity of emitter const_cast(this)->getVelocity(coord_obj, vel); gg_->projectFourVect(&coord_ph[0],b4vec,vel); //Projection of the 4-vector B to 4-velocity to be in the rest frame of the emitter double photon_emframe[4]; // photon tgt vector projected in comoving frame for (int ii=0;ii<4;ii++){ photon_emframe[ii]=coord_ph[ii+4]+vel[ii]*gg_->ScalarProd(&coord_ph[0],&coord_ph[4],vel); } double bnorm = gg_->norm(&coord_ph[0],b4vec); double lnorm = gg_->norm(&coord_ph[0],photon_emframe); double lscalb = gg_->ScalarProd(&coord_ph[0],photon_emframe,b4vec); theta_mag = acos(lscalb/(lnorm*bnorm)); double sth = sin(theta_mag);//, cth = cos(theta_mag); if (sth==0.) GYOTO_ERROR("In FlaredDiskSynchrotron::radiativeQ: " "theta_mag is zero leads to undefined emission"); if (sth!=sth) GYOTO_ERROR("In FlaredDiskSynchrotron::radiativeQ: " "theta_mag is nan"); spectrumKappaSynch_->angle_averaged(0); //cout << "4 composant of B: " << b4vec[0] << "," << b4vec[1] << "," << b4vec[2] << "," << b4vec[3] << endl; BB = BMax_cgs_*sqrt(pow(b4vec[1],2.)+pow(b4vec[2],2.)+pow(b4vec[3],2.)); // norm of the 3-vector B } else{ spectrumKappaSynch_->angle_averaged(1); // impose angle-averaging BB = sqrt(4.*M_PI*magnetizationParameter_ *GYOTO_PROTON_MASS_CGS * GYOTO_C_CGS * GYOTO_C_CGS *number_density); } double nu0 = GYOTO_ELEMENTARY_CHARGE_CGS*BB /(2.*M_PI*GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS); // cyclotron freq //cout << "jet stuff= " << coord_ph[1] << " " << coord_ph[2] << " " << zz << " " << rcyljetbase << " " << rcyl << " " << number_density << " " << thetae << " " << temperatureSlope_ << " " << nu0 << endl; //cout << "jet zz,rcyl,th,ph,ne,Te= " << zz << " " << rcyl << " " << coord_ph[2] << " " << coord_ph[3] << " " << number_density << " " << temperature << endl; // Use that line for Compton study: //cout << zz << " " << rcyl << " " << number_density << " " << temperature << endl; // KAPPA-DISTRIB SYNCHROTRON double jnu_synch_kappa[nbnu], anu_synch_kappa[nbnu]; for (size_t ii=0; iinumberdensityCGS(number_density); spectrumKappaSynch_->cyclotron_freq(nu0); spectrumKappaSynch_->thetae(thetae); spectrumKappaSynch_->angle_B_pem(theta_mag); // so we don't care about angle spectrumKappaSynch_->hypergeometric(hypergeom); //cout << "jet stuff for kappa: " << nu_ems[0] << " " << number_density << " " << nu0 << " " << thetae << " " << BB << " " << temperature << " " << hypergeom << endl; spectrumKappaSynch_->radiativeQ(jnu_synch_kappa,anu_synch_kappa, nu_ems,nbnu); // RETURNING TOTAL INTENSITY AND TRANSMISSION for (size_t ii=0; iiunitLength()); Taunu[ii] = em1+1.; Inu[ii] = anu_tot == 0. ? jnu_tot * dsem * gg_->unitLength() : -jnu_tot / anu_tot * em1; if (Inu[ii]<0.) GYOTO_ERROR("In FlaredDiskSynchrotron::radiativeQ: Inu<0"); if (Inu[ii]!=Inu[ii] or Taunu[ii]!=Taunu[ii]){ GYOTO_ERROR("In FlaredDiskSynchrotron::radiativeQ: Inu or Taunu is nan"); } if (Inu[ii]==Inu[ii]+1. or Taunu[ii]==Taunu[ii]+1.) GYOTO_ERROR("In FlaredDiskSynchrotron::radiativeQ: Inu or Taunu is infinite"); } } void FlaredDiskSynchrotron::getVelocity(double const pos[4], double vel[4]){ double rcyl=0.; // cylindrical radius double zz=0.; // height, z coord switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rcyl = pos[1]*sin(pos[2]); zz = pos[1]*cos(pos[2]); break; case GYOTO_COORDKIND_CARTESIAN: rcyl = pow(pos[1]*pos[1]+pos[2]*pos[2], 0.5); zz = pos[3]; break; default: GYOTO_ERROR("In FlaredDiskSynchrotron::getVelocity: " " Unknown coordinate system kind"); } double tt = pos[0], phi = pos[3]; if (rcylGridData2D::rmax()) throwError("In FlaredDiskSynchrotron::getVelocity: r is not in grid!"); if (phi<0. or phi>2*M_PI) throwError("In FlaredDiskSynchrotron::getVelocity phi is not in 0;2pi!"); // NB: phi is always in grid, and t might be outside, assuming stationnary // disk at ttmax_ size_t nr = GridData2D::nr(), nphi = GridData2D::nphi(), nt = GridData2D::nt(), nel = nt*nphi*nr-1; // first half od velocity_ contains all values of dr/dt // second hald contains all values of dphi/dt //cout << "In VELO R: " << velocity_[0] << " " << velocity_[1] << " " << velocity_[nr-1] << " " << velocity_[nr] << " " << velocity_[nr*nphi-1] << endl; //cout << "In VELO PHI: " << velocity_[0+nr*nphi] << " " << velocity_[1+nr*nphi] << " " << velocity_[nr-1+nr*nphi] << " " << velocity_[nr+nr*nphi] << " " << velocity_[nr*nphi-1+nr*nphi] << endl; //cout << "CALLING INTERPO FOR DR/DT" << endl; double drdt_interpo=GridData2D::interpolate(tt,phi,rcyl,velocity_,time_array_); //cout << "CALLING INTERPO FOR DPHI/DT" << endl; double dphidt_interpo=GridData2D::interpolate(tt,phi,rcyl,velocity_+nel+1,time_array_); switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: { vel[1] = drdt_interpo; vel[2] = 0.; vel[3] = dphidt_interpo; //cout << "IN FLARED: pos and vel= " << pos[1] << " " << pos[2] << " " << pos[3] << " " << vel[1] << " " << vel[2] << " " << vel[3] << endl; vel[0] = gg_->SysPrimeToTdot(pos, vel+1); vel[1] *= vel[0]; vel[3] *= vel[0]; } break; case GYOTO_COORDKIND_CARTESIAN: GYOTO_ERROR("FlaredDiskSynchro::getVelocity(): metric must be in " "spherical coordinates if velocity field is provided"); break; default: GYOTO_ERROR("FlaredDiskSynchro::getVelocity(): unknown COORDKIND"); } } bool FlaredDiskSynchrotron::isThreadSafe() const { return Standard::isThreadSafe(); } Gyoto-2.0.2/lib/FreeStar.C000066400000000000000000000124471455254334400152220ustar00rootroot00000000000000/* Copyright 2019, 2020 Frederic Vincent, Thibaut Paumard, Nicolas Aimar This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoFreeStar.h" #include "GyotoProperty.h" #include "GyotoPhoton.h" #include "GyotoPowerLawSpectrum.h" #include "GyotoBlackBodySpectrum.h" #include "GyotoFactoryMessenger.h" #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; /// Properties GYOTO_PROPERTY_START(Gyoto::Astrobj::FreeStar, "UniformSphere with a user defined orbit (not time-like).") GYOTO_PROPERTY_VECTOR_DOUBLE(FreeStar, InitPosition, initPosition, "(t,r,theta,phi) initial position of freeStar") GYOTO_PROPERTY_VECTOR_DOUBLE(FreeStar, InitVelocity, initVelocity, "(dr/dt,dtheta/dt,dphi/dt) initial 3-velocity of freeStar") GYOTO_PROPERTY_END(FreeStar, UniformSphere::properties) FreeStar::FreeStar() : UniformSphere("FreeStar"), posSet_(false), posIni_(NULL), fourveldt_(NULL) { kind_="FreeStar"; # ifdef GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "done." << endl; # endif posIni_= new double[4]; fourveldt_= new double[4]; } FreeStar::FreeStar(const FreeStar& orig) : UniformSphere(orig), posSet_(orig.posSet_), posIni_(NULL), fourveldt_(NULL) { if(orig.posIni_){ posIni_= new double[4]; memcpy(posIni_,orig.posIni_, 4*sizeof(double)); } if(orig.fourveldt_){ fourveldt_= new double[4]; memcpy(fourveldt_,orig.fourveldt_, 4*sizeof(double)); } } FreeStar* FreeStar::clone() const { return new FreeStar(*this); } FreeStar::~FreeStar() { if (debug()) cerr << "DEBUG: FreeStar::~FreeStar()\n"; } string FreeStar::className() const { return string("FreeStar"); } string FreeStar::className_l() const { return string("freeStar"); } void FreeStar::initPosition(std::vector const &v) { posIni_[0] = v[0]; posIni_[1] = v[1]; posIni_[2] = v[2]; posIni_[3] = v[3]; posSet_=true; } std::vector FreeStar::initPosition() const { std::vector v (4, 0.); v[0] = posIni_[0]; v[1] = posIni_[1]; v[2] = posIni_[2]; v[3] = posIni_[3]; return v; } void FreeStar::initVelocity(std::vector const &v) { if (!posSet_) GYOTO_ERROR("In FreeStar::initVelocity initial Position not defined"); fourveldt_[1] = v[0]; fourveldt_[2] = v[1]; fourveldt_[3] = v[2]; fourveldt_[0] = 1.; double sum = 0; double g[4][4]; gg_->gmunu(g, posIni_); for (int i=0;i<4;++i) { for (int j=0;j<4;++j) { sum+=g[i][j]*fourveldt_[i]*fourveldt_[j]; } } if (sum>=0) GYOTO_ERROR("In FreeStar::initVelocity Initial Velocity over C"); gg_->normalizeFourVel(posIni_, fourveldt_); } std::vector FreeStar::initVelocity() const { std::vector v (3, 0.); v[0] = fourveldt_[1]; v[1] = fourveldt_[2]; v[2] = fourveldt_[3]; return v; } void FreeStar::initCoord(std::vector const &v) { posIni_[0] = v[0]; posIni_[1] = v[1]; posIni_[2] = v[2]; posIni_[3] = v[3]; fourveldt_[0] = v[4]; fourveldt_[1] = v[5]; fourveldt_[2] = v[6]; fourveldt_[3] = v[7]; } std::vector FreeStar::initCoord() const { std::vector v (8, 0.); v[0] = posIni_[0]; v[1] = posIni_[1]; v[2] = posIni_[2]; v[3] = posIni_[3]; v[4] = fourveldt_[0]; v[5] = fourveldt_[1]; v[6] = fourveldt_[2]; v[7] = fourveldt_[3]; return v; } void FreeStar::getCartesian(double const * const dates, size_t const n_dates, double * const x, double * const y, double * const z, double * const xprime, double * const yprime, double * const zprime){ // this yields the position of the center of the UnifSphere // at time t // fourveldt_ is the initial 3-velocity dxi/dt // vel is the 4-velocity dxnu/dtau if (n_dates!=1) GYOTO_ERROR("In FreeStar::getCartesian n_dates!=1"); double tt=dates[0]; double r, theta, phi; // spherical coordinates double vel[4]; getVelocity(posIni_, vel); r = posIni_[1]+vel[1]/vel[0]*(tt-posIni_[0]); theta = posIni_[2]+vel[2]/vel[0]*(tt-posIni_[0]); phi = posIni_[3] + vel[3]/vel[0]*(tt-posIni_[0]); // Convertion into cartesian coordinates x[0] = r*sin(theta)*cos(phi); y[0] = r*sin(theta)*sin(phi); z[0] = r*cos(theta); if (xprime!=NULL && yprime!=NULL && zprime!=NULL) { xprime[0] = r*sin(theta)*sin(phi)*vel[2]; yprime[0] = -r*sin(theta)*cos(phi)*vel[2]; zprime[0] = 0.; } } void FreeStar::getVelocity(double const pos[4], double vel[4]){ if (!gg_) GYOTO_ERROR("In FreeStar::getVelocity Metric not set"); vel[0] = fourveldt_[0]; vel[1] = fourveldt_[1]; vel[2] = fourveldt_[2]; vel[3] = fourveldt_[3]; }Gyoto-2.0.2/lib/Functors.C000066400000000000000000000046741455254334400153150ustar00rootroot00000000000000/* Copyright 2012 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoFunctors.h" #include "GyotoError.h" #include #include #include #define dr_tol 1e-5 #define f_tol 1e-9 #define sign(a) (a>=0?1:-1) Gyoto::Functor::Double_constDoubleArray::~Double_constDoubleArray() {} Gyoto::Functor::Double_Double_const::~Double_Double_const() {} double Gyoto::Functor::Double_Double_const::ridders(double r1, double r2) const { // Ridders' root-finding method applied to operator() double val1 = operator()(r1); double val2 = operator()(r2); double r3, r4, val3, val4; do { r3 = 0.5*(r1+r2); val3 = operator()(r3); r4 = r3+(r3-r1) * sign(val1-val2)*val3/sqrt(val3*val3-val1*val2); val4 = operator()(r4); if (sign(val3)!=sign(val4)) { // use r3 and r4 for next iteration r1=r3; val1=val3; r2=r4; val2=val4; } else if (sign(val1) != sign(val4)) { // use r1 and r4 for next iteration r2=r4; val2=val4; } else { // use r4 and r2 for next iteration r1=r4; val1=val4; } } while (fabs(r1-r2) >= dr_tol && fabs(val4) > f_tol) ; return r4; } double Gyoto::Functor::Double_Double_const::secant(double r1, double r2) { // Secant root-finding method applied to operator() double val1 = operator()(r1); double val2 = operator()(r2); double r3, val3=DBL_MAX; unsigned int maxiter=20, iter; for (iter = 0; iter < maxiter; ++iter) { r3=r1-val1*(r2-r1)/(val2-val1); val3 = operator()(r3); if (fabs(r2-r3) <= fabs(r1-r3)) { r1=r3; val1=val3; } else { r2=r3; val2=val3; } if ( (fabs(r1-r2) < dr_tol) || (fabs(val3) < f_tol) ) break; if (val2==val1) { status=1; return r3; } } if (iter==maxiter) { status=2; return r3; } status=0; return r3; } Gyoto-2.0.2/lib/GridData2D.C000066400000000000000000000411321455254334400153450ustar00rootroot00000000000000/* Copyright 2019-2021 Frederic Vincent, Thibaut Paumard, Nicolas Aimar This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ //Gyoto headers #include "GyotoUtils.h" #include "GyotoGridData2D.h" #ifdef GYOTO_USE_CFITSIO #define throwCfitsioError(status) \ { fits_get_errstatus(status, ermsg); GYOTO_ERROR(ermsg); } #endif //Std headers #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; GridData2D::GridData2D() : dphi_(0.), nphi_(0), dr_(0.), nr_(0.), dt_(0.), nt_(0), rmin_(0.), rmax_(DBL_MAX), phimin_(0.), phimax_(2.*M_PI), tmin_(-DBL_MAX), tmax_(DBL_MAX) { GYOTO_DEBUG << endl; } GridData2D::GridData2D(const GridData2D&o): dphi_(o.dphi_), nphi_(o.nphi_), dr_(o.dr_), nr_(o.nr_), dt_(o.dt_), nt_(o.nt_), rmin_(o.rmin_), rmax_(o.rmax_), phimin_(o.phimin_), phimax_(o.phimax_), tmin_(o.tmin_), tmax_(o.tmax_) { GYOTO_DEBUG << endl; } GridData2D* GridData2D::clone() const{ GYOTO_DEBUG << endl; return new GridData2D(*this); } GridData2D::~GridData2D() { GYOTO_DEBUG<< endl; } void GridData2D::rmin(double rmn) { rmin_ = rmn; if (nr_>1) dr_ = (rmax_-rmin_) / double(nr_-1); } double GridData2D::rmin() const {return rmin_;} void GridData2D::rmax(double rmx) { rmax_ = rmx; if (nr_>1) dr_ = (rmax_-rmin_) / double(nr_-1); } double GridData2D::rmax() const {return rmax_;} void GridData2D::nr(size_t nn) { nr_ = nn;} size_t GridData2D::nr() const {return nr_;} void GridData2D::dr(double dd) { dr_ = dd;} double GridData2D::dr() const {return dr_;} void GridData2D::phimin(double phimn) { if (phimn<0. or phimn>2.*M_PI) throwError("In GridData2D::phimin: bad phimin"); phimin_ = phimn; if (nphi_>1) dphi_ = (phimax_-phimin_) / double(nphi_-1); } double GridData2D::phimin() const {return phimin_;} void GridData2D::phimax(double phimx) { if (phimx<0. or phimx>2.*M_PI) throwError("In GridData2D::phimax: bad phimax"); phimax_ = phimx; if (nphi_>1) dphi_ = (phimax_-phimin_) / double(nphi_-1); } double GridData2D::phimax() const {return phimax_;} void GridData2D::dphi(double dd) { dphi_ = dd;} double GridData2D::dphi() const {return dphi_;} void GridData2D::tmin(double tmn) { tmin_ = tmn; if (nt_>1) dt_ = (tmax_-tmin_) / double(nt_-1); } double GridData2D::tmin() const {return tmin_;} void GridData2D::tmax(double tmx) { tmax_ = tmx; if (nt_>1) dt_ = (tmax_-tmin_) / double(nt_-1); } double GridData2D::tmax() const {return tmax_;} void GridData2D::nt(size_t nn) { nt_ = nn;} size_t GridData2D::nt() const {return nt_;} void GridData2D::nphi(size_t nn) { nphi_ = nn;} size_t GridData2D::nphi() const {return nphi_;} #ifdef GYOTO_USE_CFITSIO vector GridData2D::fitsReadHDU(fitsfile* fptr, string extname, double *& dest, size_t length) { GYOTO_MSG << "GridData2D reading FITS extension " << extname << endl; int status = 0; int anynul = 0; double tmpd; long ndim = length?4:3; long naxes [] = {1,1,1,1}; long fpixel[] = {1,1,1,1}; long inc [] = {1,1,1,1}; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() ////// READ REQUIRED EXTENSION /////// if (extname!="GYOTO GridData2D TIMEARRAY"){ GYOTO_DEBUG << "GridData2D::fitsRead(): search " << extname << " HDU" << endl; if (fits_movnam_hdu(fptr, ANY_HDU, const_cast(extname.c_str()), 0, &status)) throwCfitsioError(status) ; GYOTO_DEBUG << "GridData2D::fitsRead(): get image size" << endl; if (fits_get_img_size(fptr, ndim, naxes, &status)) throwCfitsioError(status) ; // update nt_, dt_ nt_ = naxes[2]; if (nt_>1) dt_ = (tmax_-tmin_)/double((nt_-1)); // update nphi_, dphi_ nphi_ = naxes[1]; if (nphi_>1) dphi_ = (phimax_ - phimin_)/double((nphi_-1)); // update nr_, dr_ nr_ = naxes[0]; if (nr_>1) dr_ = (rmax_-rmin_) / double(nr_-1); if (dest) { delete [] dest; dest = NULL; } dest = new double[nt_ * nphi_ * nr_ * (length?length:1)]; for (int ii=0;ii dims(ndim, nr_); dims[1] = nphi_; dims[2] = nt_; if (length) dims[3]=length; return dims; } else{ // Read TIME_ARRAY long naxe[] = {1}, inc[]={1}; GYOTO_DEBUG << "GridData2D::fitsRead(): search " << extname << " HDU" << endl; if (fits_movnam_hdu(fptr, ANY_HDU, const_cast(extname.c_str()), 0, &status)) throwCfitsioError(status) ; GYOTO_DEBUG << "GridData2D::fitsRead(): get image size" << endl; if (fits_get_img_size(fptr, 1, naxe, &status)) throwCfitsioError(status) ; if (dest) { delete [] dest; dest = NULL; } dest = new double[nt_]; for (int ii=0;ii dims(1, nt_); return dims; } } fitsfile* GridData2D::fitsCreate(string filename){ // size_t const naxes[3]) { //GYOTO_MSG << "GridData2D creating FITS file " << filename << endl; --> THIS leads to bug; CHECK; it seems that only this function, whcih doesn't returns a void, is affected; the same happens if I use cout; however cerr works: GYOTO_MSG << "GridData2D creating FITS file " << filename << endl; char* pixfile = const_cast(filename.c_str()); int status = 0; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() long fpixel[] = {1}; fitsfile* fptr; // pointer to FITS file fits_create_file(&fptr, pixfile, &status); long naxes [] = {1}; // Create the primary extension containing a zero pixel fits_create_img(fptr, DOUBLE_IMG, 1, naxes, &status); double src[1] = {0.}; fits_write_pix(fptr, TDOUBLE, fpixel, 1, src, &status); if (status) throwCfitsioError(status) ; return fptr; } void GridData2D::fitsWriteHDU(fitsfile* fptr, string const extname, double* const src, size_t length ) { GYOTO_MSG << "GridData2D writing HDU " << extname << endl; if (!src) GYOTO_ERROR("GridData2D::fitsWrite: nothing to save!"); int status = 0; long fpixel [] = {1,1,1,1}; long ndim = length?4:3; long naxes [] = {long(nr_),long(nphi_),long(nt_),long(length)}; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() char * CNULL = NULL; if (nt_==0 || nr_==0 || nphi_==0) GYOTO_ERROR("Axes lengths should be defined"); ////// WRITE KEYWORDS (tmin_,tmax_,rmin_,rmax_) /////// if (extname=="VELOCITY") { // Writing primary HDU keywords (only once, when writing velocity) // Should ideally be placed in fitsCreate but leads to unclear code freezing // when calling fits_close_file if (tmin_>-DBL_MAX) { fits_write_key(fptr, TDOUBLE, const_cast("GYOTO GridData2D tmin"), &tmin_, CNULL, &status); if (status) throwCfitsioError(status) ; } if (tmax_("GYOTO GridData2D tmax"), &tmax_, CNULL, &status); if (status) throwCfitsioError(status) ; } if (rmin_>0.) { fits_write_key(fptr, TDOUBLE, const_cast("GYOTO GridData2D rmin"), &rmin_, CNULL, &status); if (status) throwCfitsioError(status) ; } if (rmax_("GYOTO GridData2D rmax"), &rmax_, CNULL, &status); if (status) throwCfitsioError(status) ; } if (phimin_>0.) { fits_write_key(fptr, TDOUBLE, const_cast("GYOTO GridData2D phimin"), &phimin_, CNULL, &status); if (status) throwCfitsioError(status) ; } if (phimax_<2.*M_PI) { fits_write_key(fptr, TDOUBLE, const_cast("GYOTO GridData2D phimax"), &phimax_, CNULL, &status); if (status) throwCfitsioError(status) ; } } ////// SAVE SRC IN APPROPRIATE HDU /////// if (extname!="TIMEARRAY"){ fits_create_img(fptr, DOUBLE_IMG, ndim, naxes, &status); std::stringstream ss; ss << "GYOTO GridData2D " << extname; fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast(ss.str().c_str()), CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, nt_*nphi_*nr_*(length?length:1), src, &status); if (status) throwCfitsioError(status) ; }else{ long naxe [] = {long(nt_)}, fpix []={1}; fits_create_img(fptr, DOUBLE_IMG, 1, naxe, &status); std::stringstream ss; ss << "GYOTO GridData2D " << extname; fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast(ss.str().c_str()), CNULL, &status); fits_write_pix(fptr,TDOUBLE, fpix, nt_, src, &status); if (status) throwCfitsioError(status) ; } } void GridData2D::fitsClose(fitsfile* fptr) { GYOTO_MSG << "GridData2D Closing FITS file" << endl; int status = 0; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() int res=0; if (fits_close_file(fptr, &status)) throwCfitsioError(status) ; fptr = NULL; } #endif void GridData2D::getIndices(size_t i[3], double const tt, double const phi, double const rr, double* const time_array) const { // rr is the radius projected in the equaotiral plane //cout << "in getInd R: " << rmin_ << " " << rmax_ << " " << nr_ << " " << dr_ << endl; if (rmin_>0. && rmax_0. && dr_>0.) { // >1 radii must be properly defined i[2] = size_t(floor((rr-rmin_)/dr_)); // index of closest grid point smaller than rr // (and same for phi,t) } else { GYOTO_ERROR("In GridData2D::getIndices: radius undefined!"); } // Then: rmin_ + dr_*i[2] < r < rmin_ + dr_*(i[2]+1) //cout << "in getInd PHI: " << phimin_ << " " << phimax_ << " " << nphi_ << " " << dphi_ << endl; if (nphi_>0.) { // necessary condition if (dphi_>0.) {// then >1 phi values provided if (phiphimax_) i[1]=nphi_-1; // idem else i[1] = size_t(floor((phi-phimin_)/dphi_)); // then phimin_+dphi_*i[1] < phi < phimin_ +dphi_*(i[1]+1) } else // then 1 phi value only, axisym i[1] = 0; } else { GYOTO_ERROR("In GridData2D::getIndices: phi undefined!"); } //cout << "in getInd T: " << tmin_ << " " << tmax_ << " " << nt_ << " " << dt_ << endl; if (nt_>0.) { // necessary condition if (tmin_ > -DBL_MAX && tmax_1 time values provided if (tttmax_) i[0]=nt_-1;// and after tmax_ else { if (!time_array){ i[0] = size_t(floor((tt-tmin_)/dt_)); }else{ size_t i_t=0; while (tt>time_array[i_t] && tt>time_array[i_t+1] && i_t1 phi values size_t iphil=-1, iphiu=-1; double phil=-1., phiu=-1.; // Special treatment for phi to deal with phiphimax (both valid) if (phiphimax_){ iphil=nphi_-1; iphiu=0; phil=phimax_; // this a slightly <0 value phiu=phimin_+2.*M_PI; // Then: phil < phi < phiu as it should }else{ iphil=ind[1]; iphiu=ind[1]+1; phil = phimin_+dphi_*iphil; phiu = phimin_+dphi_*iphiu; } if (nt_==1 || tt<=tmin_ || tt>=tmax_){ // Bilinear in r,phi size_t irl=ind[2], iru=ind[2]+1, it=ind[0]; double array_ll = array[it*nr_*nphi_+iphil*nr_+irl], // array_{phi,r}, l=lower index, u=upper index array_lu = array[it*nr_*nphi_+iphil*nr_+iru], array_ul = array[it*nr_*nphi_+iphiu*nr_+irl], array_uu = array[it*nr_*nphi_+iphiu*nr_+iru]; double rl = rmin_+dr_*irl, ru = rmin_+dr_*iru; double ratiophi = (phi-phil)/(phiu-phil), ratior = (rcyl-rl)/(ru-rl); if (ratiophi<0. || ratior<0.) GYOTO_ERROR("One ratio is negative (over t, phi or r) !"); array_interpo = array_ll+(array_ul-array_ll)*ratiophi +(array_lu-array_ll)*ratior +(array_uu-array_lu-array_ul+array_ll)*ratiophi*ratior; /*cout << "bilin interpo stuff: " << endl; cout << "T: " << tmin_ << " " << tt << " " << tmax_ << " " << it << endl; cout << "PHI: " << phil << " " << phi << " " << phiu << endl; cout << "R: " << rl << " " << rcyl << " " << ru << endl; cout << "ARRAY at 4 corners (phi,r)=(ll,lu,ul,uu) + interpo: " << array_ll << " " << array_lu << " " << array_ul << " " << array_uu << " " << array_interpo << endl;*/ }else{ // Trilinear in r,phi,t size_t irl=ind[2], iru=ind[2]+1, itl=ind[0], itu=ind[0]+1; double array_lll = array[itl*nr_*nphi_+iphil*nr_+irl], // array_{t,phi,r} array_llu = array[itl*nr_*nphi_+iphil*nr_+iru], array_lul = array[itl*nr_*nphi_+iphiu*nr_+irl], array_luu = array[itl*nr_*nphi_+iphiu*nr_+iru], array_ull = array[itu*nr_*nphi_+iphil*nr_+irl], array_ulu = array[itu*nr_*nphi_+iphil*nr_+iru], array_uul = array[itu*nr_*nphi_+iphiu*nr_+irl], array_uuu = array[itu*nr_*nphi_+iphiu*nr_+iru]; double rl = rmin_+dr_*irl, ru = rmin_+dr_*iru, tl = 0, tu = 0; if (time_array){ tl = time_array[itl], tu = time_array[itu]; }else{ tl = tmin_+dt_*itl; tu = rmin_+dt_*itu; } double ratiot = (tt-tl)/(tu-tl), ratiophi = (phi-phil)/(phiu-phil), ratior = (rcyl-rl)/(ru-rl); if (ratiot<0. || ratiophi<0. || ratior<0.) GYOTO_ERROR("One ratio is negative (over t, phi or r) !"); array_interpo = array_lll + (array_ull-array_lll)*ratiot + (array_lul-array_lll)*ratiophi + (array_llu-array_lll)*ratior +(array_uul-array_lul-array_ull+array_lll)*ratiot*ratiophi +(array_luu-array_lul-array_llu+array_lll)*ratiophi*ratior +(array_ulu-array_llu-array_ull+array_lll)*ratiot*ratior +(array_uuu-array_luu-array_ulu-array_uul +array_ull+array_llu+array_lul-array_lll)*ratiot*ratiophi*ratior; /*cout << "trilin interpo stuff: " << endl; cout << "T: " << tl << " " << tt << " " << tu << endl; cout << "PHI: " << phil << " " << phi << " " << phiu << endl; cout << "R: " << rl << " " << rcyl << " " << ru << endl; cout << "ratiot,phi,r= " << ratiot << " " << ratiophi << " " << ratior << endl; cout << "ARRAY at 8 corners (t,phi,r)=(lll,llu,lul,luu,ull,ulu,uul,uuu) + interpo: " << array_lll << " " << array_llu << " " << array_lul << " " << array_luu << " " << array_ull << " " << array_ulu << " " << array_uul << " " << array_uuu << " " << array_interpo << endl;*/ } return array_interpo; } Gyoto-2.0.2/lib/Hayward.C000066400000000000000000000566001455254334400151050ustar00rootroot00000000000000/* Copyright 2018-2019 Frederic Lamy, Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoHayward.h" #include "GyotoWorldline.h" #include "GyotoError.h" #include "GyotoProperty.h" #include #include #include #include #include #include #include using namespace std ; using namespace Gyoto ; using namespace Gyoto::Metric ; GYOTO_PROPERTY_START(Hayward, "Metric around a rotating black-hole, in spherical Boyer-Lindquist coordinates. Cf. Lamy et al. 2018, https://arxiv.org/abs/1802.01635") GYOTO_PROPERTY_DOUBLE(Hayward, Spin, spin, "Spin parameter (adimensioned, 0).") GYOTO_PROPERTY_DOUBLE(Hayward, Charge, charge, "Charge parameter (adimensioned, 0).") GYOTO_PROPERTY_END(Hayward, Generic::properties) Hayward::Hayward() : Generic(GYOTO_COORDKIND_SPHERICAL, "Hayward"), spin_(0.), a2_(0.), a3_(0.), a4_(0.), charge_(0.), b2_(0.) {} // default copy constructor should be fine Hayward * Hayward::clone () const { return new Hayward(*this); } // Mutators void Hayward::spin(const double a) { spin_=a; a2_=spin_*spin_; a3_=a2_*spin_; a4_=a2_*a2_; tellListeners(); } void Hayward::charge(const double b) { charge_=b; b2_=charge_*charge_; tellListeners(); } // Accessors double Hayward::spin() const { return spin_ ; } double Hayward::charge() const { return charge_ ; } double Hayward::getSpecificAngularMomentum(double rr) const { // this is l = -u_phi/u_t for a circular equatorial 4-velocity double r2=rr*rr,r3=r2*rr, r5=r3*r2; double aa=spin_, a2=aa*spin_, a3=a2*spin_; double bb=charge_, b2=bb*charge_; double md=r3+2.*b2_; double m=r3/md; double mdot=-3.*r5/md/md+3.*r2/md; double sqrtr=sqrt(rr); double sqrt1=sqrt(m-rr*mdot); return(((a2*rr+r3+2.*a2*m)*sqrt1*sqrtr-(a3+3.*spin_*r2)*m+(a3*rr+spin_*r3)*mdot)/(a2*rr*mdot+r3+2*sqrt1*spin_*m*sqrtr-(a2+2.*r2)*m)); } double Hayward::getPotential(double const pos[4], double l_cst) const { // this is W = -ln(|u_t|) for a circular equatorial 4-velocity double gtt = gmunu(pos,0,0); double gtp = gmunu(pos,0,3); double gpp = gmunu(pos,3,3); double Omega = -(gtp + l_cst * gtt)/(gpp + l_cst * gtp) ; double W = 0.5 * log(abs(gtt + 2. * Omega * gtp + Omega*Omega * gpp)) - log(abs(gtt + Omega * gtp)) ; return W ; } void Hayward::circularVelocity(double const coor[4], double vel[4], double dir) const { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG<<"coor=["< #include using namespace Gyoto; using namespace Gyoto::Hook; //////// LOCAL TO THIS FILE //////// /* LISTENER LIST */ class Gyoto::Hook::Teller::ListenerItem { friend class Gyoto::Hook::Teller; friend class Gyoto::Hook::Listener; protected: Listener * listener; ListenerItem * next; public: ListenerItem(Listener*, ListenerItem*); virtual ~ListenerItem(); virtual void tell(Gyoto::Hook::Teller *); size_t len() const; }; Teller::ListenerItem::ListenerItem(Listener*hear, ListenerItem * nxt) : listener(hear), next(nxt) {} Teller::ListenerItem::~ListenerItem() {if (next) delete next;} void Teller::ListenerItem::tell(Teller * teller) { GYOTO_DEBUG<tell(teller); if (next) next->tell(teller); } size_t Teller::ListenerItem::len() const { size_t l = 1; if (next) l += next->len(); return l; } ///////////////////////////////////// /* LISTENER */ Listener::Listener() {} Listener::~Listener() {} void Listener::tell(Teller *) {} /* TELLER */ Teller::Teller() : listeners_(0) {} Teller::Teller(const Teller &) : listeners_(0) {} Teller::~Teller() {if (listeners_) delete listeners_;} void Teller::hook(Listener * hear) { GYOTO_DEBUG <<"new hook: "<< hear <<" for Teller " << this << std::endl; listeners_ = new ListenerItem(hear, listeners_); } void Teller::unhook(Listener * hear) { GYOTO_DEBUG <<"removing hook: "<< hear <<" from Teller " << this << std::endl; ListenerItem * item = listeners_; ListenerItem ** parent = &listeners_; while (item) { if (item->listener==hear) { *parent=item->next; item->next=0; delete item; item=*parent; } else { parent=&(item->next); item=item->next; } } } void Teller::tellListeners() { if (listeners_) listeners_->tell(this); } Gyoto-2.0.2/lib/InflateStar.C000066400000000000000000000106141455254334400157150ustar00rootroot00000000000000/* Copyright 2011, 2018 Thibaut Paumard, Frederic Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoInflateStar.h" #include "GyotoPhoton.h" #include "GyotoPowerLawSpectrum.h" #include "GyotoBlackBodySpectrum.h" #include "GyotoFactoryMessenger.h" #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(InflateStar, "Star with inflation") GYOTO_PROPERTY_DOUBLE_UNIT(InflateStar, TimeInflateInit, timeInflateInit, "Start time of inflation (geometrical units)") GYOTO_PROPERTY_DOUBLE_UNIT(InflateStar, TimeInflateStop, timeInflateStop, "End time of inflation (geometrical units)") GYOTO_PROPERTY_DOUBLE_UNIT(InflateStar, RadiusStop, radiusStop, "End radius (geometrical units)") GYOTO_PROPERTY_END(InflateStar, Star::properties) GYOTO_PROPERTY_ACCESSORS(InflateStar, double, timeinflateinit_, timeInflateInit) double InflateStar::timeInflateInit(const string &unit) const { return Units::FromGeometricalTime(timeInflateInit(), unit, gg_); } void InflateStar::timeInflateInit(double t, const string &unit) { timeInflateInit(Units::ToGeometricalTime(t, unit, gg_)); } GYOTO_PROPERTY_ACCESSORS(InflateStar, double, timeinflatestop_, timeInflateStop) double InflateStar::timeInflateStop(const string &unit) const { return Units::FromGeometricalTime(timeInflateStop(), unit, gg_); } void InflateStar::timeInflateStop(double t, const string &unit) { timeInflateStop(Units::ToGeometricalTime(t, unit, gg_)); } GYOTO_PROPERTY_ACCESSORS_GEOMETRICAL(InflateStar, radiusstop_, radiusStop, gg_) double InflateStar::radiusAt(double time) const { double radinit = radius(); double radcur=radinit; if (time>=timeinflatestop_) radcur=radiusstop_; else if (time>timeinflateinit_){ // linear increase of radius in between extreme times radcur = radinit+(time-timeinflateinit_)/(timeinflatestop_-timeinflateinit_) *(radiusstop_-radinit); } return radcur; } double InflateStar::radiusAt(double time, const string &t_unit) const { return radiusAt(Units::ToGeometricalTime(time, t_unit, gg_)); } double InflateStar::radiusAt(double time, const string &t_unit, const string &r_unit) const { return Units::FromGeometrical(radiusAt(time, t_unit), r_unit, gg_); } InflateStar::InflateStar() : Star(), timeinflateinit_(0.), timeinflatestop_(0.), radiusstop_(DBL_MAX) { kind_="InflateStar"; # ifdef GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "done." << endl; # endif } InflateStar::InflateStar(const InflateStar& orig) : Star(orig), timeinflateinit_(orig.timeinflateinit_), timeinflatestop_(orig.timeinflatestop_), radiusstop_(orig.radiusstop_) { } InflateStar* InflateStar::clone() const { return new InflateStar(*this); } InflateStar::~InflateStar() { if (debug()) cerr << "DEBUG: InflateStar::~InflateStar()\n"; } string InflateStar::className() const { return string("InflateStar"); } string InflateStar::className_l() const { return string("inflate_star"); } int InflateStar::Impact(Gyoto::Photon* ph, size_t index, Astrobj::Properties *data) { state_t p1; ph->getCoord(index, p1); double time = p1[0]; double radinit = radius(); double radcur=radiusAt(time); critical_value_=radcur*radcur; return UniformSphere::Impact(ph,index,data); } double InflateStar::emission(double nu_em, double dsem, state_t const &coord_ph, double const coord_obj[8]) const { double time = coord_ph[0]; double radinit = radius(); double radcur=radiusAt(time); double volume=radcur*radcur*radcur; double volumei=radinit*radinit*radinit; return volumei/volume * UniformSphere::emission(nu_em, dsem, coord_ph, coord_obj); } Gyoto-2.0.2/lib/Jet.C000066400000000000000000000362011455254334400142230ustar00rootroot00000000000000/* Copyright 2017-2019 Frederic Vincent & Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoPhoton.h" #include "GyotoJet.h" #include "GyotoProperty.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrBL.h" #include "GyotoKerrKS.h" #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; GYOTO_PROPERTY_START(Jet) GYOTO_PROPERTY_DOUBLE(Jet, JetOuterOpeningAngle, jetOuterOpeningAngle) GYOTO_PROPERTY_DOUBLE(Jet, JetInnerOpeningAngle, jetInnerOpeningAngle) GYOTO_PROPERTY_DOUBLE(Jet, JetBaseHeight, jetBaseHeight) GYOTO_PROPERTY_DOUBLE(Jet, GammaJet, gammaJet) GYOTO_PROPERTY_DOUBLE(Jet, JetVphiOverVr, jetVphiOverVr,"this is (r*Vphi/Vr) where V is the jet velocity measured by the ZAMO") GYOTO_PROPERTY_DOUBLE_UNIT(Jet, BaseNumberDensity, baseNumberDensity) GYOTO_PROPERTY_DOUBLE(Jet, BaseTemperature, baseTemperature) GYOTO_PROPERTY_DOUBLE(Jet, TemperatureSlope, temperatureSlope) GYOTO_PROPERTY_DOUBLE(Jet, MagnetizationParameter, magnetizationParameter) GYOTO_PROPERTY_DOUBLE(Jet, KappaIndex, kappaIndex, "Index of kappa-distribution synchrotron; leave non-specified to use thermal synchrotron") GYOTO_PROPERTY_END(Jet, Standard::properties) #define nstep_angint 10 // for angle-averaging integration #define default_kappaindex -1 // default (absurd value) kappa index // ACCESSORS void Jet::jetOuterOpeningAngle(double ang) {jetOuterOpeningAngle_=ang;} double Jet::jetOuterOpeningAngle()const{return jetOuterOpeningAngle_;} void Jet::jetInnerOpeningAngle(double ang) {jetInnerOpeningAngle_=ang;} double Jet::jetInnerOpeningAngle()const{return jetInnerOpeningAngle_;} void Jet::jetBaseHeight(double hh) {jetBaseHeight_=hh;} double Jet::jetBaseHeight()const{return jetBaseHeight_;} void Jet::gammaJet(double gam) {gammaJet_=gam;} double Jet::gammaJet()const{return gammaJet_;} void Jet::jetVphiOverVr(double alpha) {jetVphiOverVr_=alpha;} double Jet::jetVphiOverVr()const{return jetVphiOverVr_;} double Jet::baseNumberDensity() const { // Converts internal cgs central enthalpy to SI double dens=baseNumberDensity_cgs_; # ifdef HAVE_UDUNITS dens = Units::Converter("cm-3", "m-3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif return dens; } double Jet::baseNumberDensity(string const &unit) const { double dens = baseNumberDensity(); if (unit != "") { # ifdef HAVE_UDUNITS dens = Units::Converter("m-3", unit)(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif } return dens; } void Jet::baseNumberDensity(double dens) { # ifdef HAVE_UDUNITS dens = Units::Converter("m-3", "cm-3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif baseNumberDensity_cgs_=dens; } void Jet::baseNumberDensity(double dens, string const &unit) { if (unit != "") { # ifdef HAVE_UDUNITS dens = Units::Converter(unit, "m-3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif } baseNumberDensity(dens); } void Jet::baseTemperature(double tt) {baseTemperature_=tt;} double Jet::baseTemperature()const{return baseTemperature_;} void Jet::temperatureSlope(double ss) {temperatureSlope_=ss;} double Jet::temperatureSlope()const{return temperatureSlope_;} void Jet::magnetizationParameter(double rr) { magnetizationParameter_=rr;} double Jet::magnetizationParameter()const{ return magnetizationParameter_;} void Jet::kappaIndex(double index) { spectrumKappaSynch_->kappaindex(index); } double Jet::kappaIndex()const{ return spectrumKappaSynch_->kappaindex(); } // Jet::Jet() : Standard("Jet"), jetOuterOpeningAngle_(0.785), jetInnerOpeningAngle_(0.5), jetBaseHeight_(2.), gammaJet_(1.), jetVphiOverVr_(0.), baseNumberDensity_cgs_(1.), baseTemperature_(1e10), temperatureSlope_(1.), magnetizationParameter_(1.) { GYOTO_DEBUG << endl; spectrumKappaSynch_ = new Spectrum::KappaDistributionSynchrotron(); spectrumKappaSynch_->kappaindex(default_kappaindex); spectrumThermalSynch_ = new Spectrum::ThermalSynchrotron(); } Jet::Jet(const Jet& o) : Standard(o), jetOuterOpeningAngle_(o.jetOuterOpeningAngle_), jetInnerOpeningAngle_(o.jetInnerOpeningAngle_), jetBaseHeight_(o.jetBaseHeight_), gammaJet_(o.gammaJet_), jetVphiOverVr_(o.jetVphiOverVr_), baseNumberDensity_cgs_(o.baseNumberDensity_cgs_), baseTemperature_(o.baseTemperature_), temperatureSlope_(o.temperatureSlope_), magnetizationParameter_(o.magnetizationParameter_), spectrumKappaSynch_(NULL), spectrumThermalSynch_(NULL) { GYOTO_DEBUG << endl; if (gg_) gg_->hook(this); if (o.spectrumKappaSynch_()) spectrumKappaSynch_=o.spectrumKappaSynch_->clone(); if (o.spectrumThermalSynch_()) spectrumThermalSynch_=o.spectrumThermalSynch_->clone(); } Jet* Jet::clone() const { return new Jet(*this); } Jet::~Jet() { GYOTO_DEBUG << endl; if (gg_) gg_->unhook(this); } void Jet::radiativeQ(double Inu[], // output double Taunu[], // output double const nu_ems[], size_t nbnu, // input double dsem, state_t const &coord_ph, double const coord_obj[8]) const { double rcyl=0.; // cylindrical radius double zz=0.; // height, z coord switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rcyl = coord_ph[1]*sin(coord_ph[2]); zz = coord_ph[1]*cos(coord_ph[2]); break; case GYOTO_COORDKIND_CARTESIAN: rcyl = pow(coord_ph[1]*coord_ph[1]+coord_ph[2]*coord_ph[2], 0.5); zz = coord_ph[3]; break; default: GYOTO_ERROR("In Jet::radiativeQ: Unknown coordinate system kind"); } double rcyljetbase = jetBaseHeight_*tan(jetOuterOpeningAngle_); //cout << "rcyl, rcylB, zz= " << rcyl << " " << rcyljetbase << " " << zz << endl; //rcyl=rcyljetbase; //zz=2.; // TEST!!! double number_density = baseNumberDensity_cgs_ *(rcyljetbase*rcyljetbase)/(rcyl*rcyl); double temperature = baseTemperature_*pow(jetBaseHeight_/fabs(zz), temperatureSlope_); double thetae = GYOTO_BOLTZMANN_CGS*temperature /(GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS); double BB = sqrt(4.*M_PI*magnetizationParameter_ *GYOTO_PROTON_MASS_CGS * GYOTO_C_CGS * GYOTO_C_CGS *number_density); //cout << "r, z, dens, T, B= " << rcyl << " " << zz << " " << number_density << " " << temperature << " " << BB << endl; //cout << "r, z, ne, nebase, B, Bbase= " << coord_ph[1] << " " << zz << " " << number_density << " " << baseNumberDensity_cgs_ << " " << BB << " " << sqrt(8.*M_PI*magnetizationParameter_*GYOTO_PROTON_MASS_CGS * GYOTO_C_CGS * GYOTO_C_CGS*baseNumberDensity_cgs_) << endl; //GYOTO_ERROR("testjet"); double nu0 = GYOTO_ELEMENTARY_CHARGE_CGS*BB /(2.*M_PI*GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS); // cyclotron freq //cout << "jet stuff= " << coord_ph[1] << " " << coord_ph[2] << " " << zz << " " << rcyljetbase << " " << rcyl << " " << number_density << " " << thetae << " " << temperatureSlope_ << " " << nu0 << endl; //cout << "jet zz,rcyl,th,ph,ne,Te= " << zz << " " << rcyl << " " << coord_ph[2] << " " << coord_ph[3] << " " << number_density << " " << temperature << endl; // Use that line for Compton study: //cout << "jet emis: " << zz << " " << rcyl << " " << number_density << " " << temperature << endl; // Emission and absorption synchrotron coefs double jnu_synch[nbnu], anu_synch[nbnu]; for (size_t ii=0; iinumberdensityCGS(number_density); spectrumKappaSynch_->angle_averaged(1); // impose angle-averaging spectrumKappaSynch_->angle_B_pem(0.); // so we don't care about angle spectrumKappaSynch_->cyclotron_freq(nu0); spectrumKappaSynch_->thetae(thetae); double hypergeom = Gyoto::hypergeom(kappaIndex(), thetae); spectrumKappaSynch_->hypergeometric(hypergeom); //cout << "jet stuff for kappa: " << nu_ems[0] << " " << number_density << " " << nu0 << " " << thetae << " " << BB << " " << temperature << " " << hypergeom << endl; spectrumKappaSynch_->radiativeQ(jnu_synch,anu_synch, nu_ems,nbnu); }else{ // THERMAL SYNCHROTRON spectrumThermalSynch_->temperature(temperature); spectrumThermalSynch_->numberdensityCGS(number_density); spectrumThermalSynch_->angle_averaged(1); // impose angle-averaging spectrumThermalSynch_->angle_B_pem(0.); // so we don't care about angle spectrumThermalSynch_->cyclotron_freq(nu0); double besselK2 = bessk(2, 1./thetae); spectrumThermalSynch_->besselK2(besselK2); //cout << "for anu jnu: " << coord_ph[1] << " " << zz << " " << temperature << " " << number_density << " " << nu0 << " " << thetae << " " << besselK2 << endl; //cout << "nu passed to synchro= " << nu_ems[0] << endl; spectrumThermalSynch_->radiativeQ(jnu_synch,anu_synch, nu_ems,nbnu); } // RETURNING TOTAL INTENSITY AND TRANSMISSION for (size_t ii=0; iiunitLength()); Taunu[ii] = em1+1.; Inu[ii] = anu_tot == 0. ? jnu_tot * dsem * gg_->unitLength() : -jnu_tot / anu_tot * em1; if (Inu[ii]<0.) GYOTO_ERROR("In Jet::radiativeQ: Inu<0"); if (Inu[ii]!=Inu[ii] or Taunu[ii]!=Taunu[ii]) GYOTO_ERROR("In Jet::radiativeQ: Inu or Taunu is nan"); if (Inu[ii]==Inu[ii]+1. or Taunu[ii]==Taunu[ii]+1.) GYOTO_ERROR("In Jet::radiativeQ: Inu or Taunu is infinite"); } } double Jet::operator()(double const coord[4]) { //cout << "photon at r,z= " << coord[1] << " " << coord[1]*cos(coord[2]) << endl; double rcyl=0.; // cylindrical radius double zz=0.; // height, z coord, positive switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rcyl = coord[1]*sin(coord[2]); zz = fabs(coord[1]*cos(coord[2])); break; case GYOTO_COORDKIND_CARTESIAN: rcyl = pow(coord[1]*coord[1]+coord[2]*coord[2], 0.5); zz = fabs(coord[3]); break; default: GYOTO_ERROR("In Jet::operator(): Unknown coordinate system kind"); } // if (fabs(zz) < jetBaseHeight_) return 1.; // outside jet // double rcyljetout = fabs(zz*tan(jetOuterOpeningAngle_)), // rcyljetin = fabs(zz*tan(jetInnerOpeningAngle_)); // //double radbase=10.; // TO BE PARAM // //double rcyljetout = radbase // // + fabs((zz-jetBaseHeight_)*tan(jetOuterOpeningAngle_)), // // rcyljetin = radbase + fabs((zz-jetBaseHeight_)*tan(jetInnerOpeningAngle_)); // if ((rcyl < rcyljetout) and (rcyl > rcyljetin)) return -1.; // inside jet // else return 1.; // outside jet // //cout << "r, rjet, z, theta0, ht= " << rcyl << " " << rcyljet << " " << zz << " " << theta0 << " " << ht << endl; double hjetin = rcyl/tan(jetInnerOpeningAngle_), hjetout = rcyl/tan(jetOuterOpeningAngle_); // double distance = (zz - hjetin)*(zz - hjetout); // <0 inside jet sheath // if (zz < jetBaseHeight_) // remove part below jet basis // distance = fabs(distance) + (jetBaseHeight_ - zz); //double distance = (zz - jetBaseHeight_ - hjetin) // *(zz - jetBaseHeight_ - hjetout); // <0 inside jet sheath double rcyljetin = zz*tan(jetInnerOpeningAngle_), rcyljetout = zz*tan(jetOuterOpeningAngle_); double distance = (rcyl - rcyljetin)*(rcyl - rcyljetout); if (zz < jetBaseHeight_) // remove part below jet basis distance = fabs(distance) + (jetBaseHeight_ - zz); return distance; } void Jet::getVelocity(double const pos[4], double vel[4]) { double rr = pos[1]; double Vjet = sqrt(gammaJet_*gammaJet_-1.)/gammaJet_; //double Vr = Vjet/(sqrt(gg_->gmunu(pos,1,1) // +jetVphiOverVr_*jetVphiOverVr_/(rr*rr)*gg_->gmunu(pos,3,3))); //double Vphi = jetVphiOverVr_/rr*Vr; //cout << "NEW STUFF" << endl; //cout << "V2= " << gg_->gmunu(pos,1,1) * Vr*Vr + gg_->gmunu(pos,3,3) * Vphi*Vphi<< " " << (gammaJet_*gammaJet_-1.)/(gammaJet_*gammaJet_) << endl; // KerrBL-specific part -- to generalize if possible double gpp = gg_->gmunu(pos,3,3), gtt = gg_->gmunu(pos,0,0), grr = gg_->gmunu(pos,1,1), gtp = gg_->gmunu(pos,0,3); double utZAMO = sqrt(-gpp/(gtt*gpp-gtp*gtp)), uphiZAMO = -utZAMO*gtp/gpp; double Vphi = jetVphiOverVr_*Vjet/sqrt(gpp), Vr = sqrt(1-jetVphiOverVr_*jetVphiOverVr_)*Vjet / sqrt(grr); //cout << "ZAMO=" << gtt*utZAMO*utZAMO + 2*gtp*utZAMO*uphiZAMO + gpp*uphiZAMO*uphiZAMO << endl; // Paper def: vel[0] = gammaJet_*utZAMO; vel[1] = -gammaJet_*Vr; vel[2] = 0.; //vel[3] = gammaJet_*uphiZAMO; vel[3] = gammaJet_*(uphiZAMO+Vphi); double u2 = gg_->ScalarProd(pos,vel,vel); double tol = 1e-6; if (fabs(u2+1)>tol) throwError("In Jett::getVelo: bad jet velocity"); // TEST //vel[0] = 1.; //vel[1] = 0.; //vel[2] = 0.; //vel[3] = 0.; // June 2019 def: /*double gammar = 1., gammaphi = 1.5, ur = sqrt(gammar*gammar-1.)/gammar, uphi = 1./pos[1]*sqrt(gammaphi*gammaphi-1.)/gammaphi, grr = gg_->gmunu(pos,1,1), aa = gtt, bb = 2.*gtp*uphi, cc = 1.+gpp*uphi*uphi+grr*ur*ur, Delta = bb*bb-4.*aa*cc, ut1 = (-bb - sqrt(Delta))/(2.*aa), ut2 = (-bb + sqrt(Delta))/(2.*aa); vel[0]=ut1; vel[1]=ur; vel[2]=0.; vel[3]=uphi;*/ //cout << "V2= " << gg_->gmunu(pos,1,1)*Vr*Vr + gg_->gmunu(pos,3,3)*Vphi*Vphi << endl; //cout << "u2 = " << gg_->ScalarProd(pos,vel,vel) << endl; } bool Jet::isThreadSafe() const { return Standard::isThreadSafe() && (!spectrumKappaSynch_ || spectrumKappaSynch_->isThreadSafe()) && (!spectrumThermalSynch_ || spectrumThermalSynch_->isThreadSafe()); } void Jet::metric(SmartPointer gg) { if (gg_) gg_->unhook(this); string kin = gg->kind(); //if (kin != "KerrBL" or kin!="NumericalMetricLorene") // GYOTO_ERROR // ("Jet::metric(): metric must be KerrBL"); // NB: KerrBL needed for ZAMO velocity in getVelocity, // could be generalized if needed Generic::metric(gg); } Gyoto-2.0.2/lib/KappaDistributionSynchrotronSpectrum.C000066400000000000000000000472631455254334400231430ustar00rootroot00000000000000/* Copyright 2018-2020 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoKappaDistributionSynchrotronSpectrum.h" #include "GyotoDefs.h" #include #ifdef GYOTO_USE_XERCES #include "GyotoFactory.h" #include "GyotoFactoryMessenger.h" #endif using namespace Gyoto; using namespace std; #include "GyotoProperty.h" GYOTO_PROPERTY_START(Spectrum::KappaDistributionSynchrotron, "Kappa synchrotron emission") GYOTO_PROPERTY_END(Spectrum::KappaDistributionSynchrotron, Generic::properties) #define nstep_angint 100 // for angle-averaging integration Spectrum::KappaDistributionSynchrotron::KappaDistributionSynchrotron() : Spectrum::Generic("KappaDistributionSynchrotron"), numberdensityCGS_(0.), angle_B_pem_(0.), cyclotron_freq_(1.), thetae_(1.), kappaindex_(0.), angle_averaged_(0), hypergeometric_(1) {} Spectrum::KappaDistributionSynchrotron::KappaDistributionSynchrotron(const KappaDistributionSynchrotron &o) : Spectrum::Generic(o), spectrumBB_(NULL), numberdensityCGS_(o.numberdensityCGS_), angle_B_pem_(o.angle_B_pem_), cyclotron_freq_(o.cyclotron_freq_), thetae_(o.thetae_), kappaindex_(o.kappaindex_), hypergeometric_(o.hypergeometric_), angle_averaged_(o.angle_averaged_) { if (o.spectrumBB_()) spectrumBB_=o.spectrumBB_->clone(); } double Spectrum::KappaDistributionSynchrotron::numberdensityCGS() const { return numberdensityCGS_; } void Spectrum::KappaDistributionSynchrotron::numberdensityCGS(double rho) { numberdensityCGS_ = rho; } double Spectrum::KappaDistributionSynchrotron::angle_B_pem() const { return angle_B_pem_; } void Spectrum::KappaDistributionSynchrotron::angle_B_pem(double angle) { angle_B_pem_ = angle; } double Spectrum::KappaDistributionSynchrotron::cyclotron_freq() const { return cyclotron_freq_; } void Spectrum::KappaDistributionSynchrotron::cyclotron_freq(double freq) { cyclotron_freq_ = freq; } double Spectrum::KappaDistributionSynchrotron::thetae() const { return thetae_; } void Spectrum::KappaDistributionSynchrotron::thetae(double th) { thetae_ = th; } double Spectrum::KappaDistributionSynchrotron::kappaindex() const { return kappaindex_; } void Spectrum::KappaDistributionSynchrotron::kappaindex(double ind) { kappaindex_ = ind; } double Spectrum::KappaDistributionSynchrotron::hypergeometric() const { return hypergeometric_; } void Spectrum::KappaDistributionSynchrotron::hypergeometric(double hh) { hypergeometric_ = hh; } bool Spectrum::KappaDistributionSynchrotron::angle_averaged() const { return angle_averaged_; } void Spectrum::KappaDistributionSynchrotron::angle_averaged(bool ang) { angle_averaged_ = ang; } Spectrum::KappaDistributionSynchrotron * Spectrum::KappaDistributionSynchrotron::clone() const { return new Spectrum::KappaDistributionSynchrotron(*this); } double Spectrum::KappaDistributionSynchrotron::operator()(double nu) const { GYOTO_ERROR("In PLSynch: " "Synchrotron emission not defined for optically thick case"); return 0.; } double Spectrum::KappaDistributionSynchrotron::operator()(double nu, double , double ds) const{ double dsCGS = ds*100.; // ds should be given in SI // Returns intensity increment in SI: return jnuCGS(nu)*dsCGS*exp(-alphanuCGS(nu)*dsCGS)*GYOTO_INU_CGS_TO_SI; } double Spectrum::KappaDistributionSynchrotron::jnuCGS(double nu) const{ // Pandya, Zhang, Chandra, Gammie, 2016 //cout << "in kappa jnu stuff: " << cyclotron_freq_ << " " << thetae_ << " " << kappaindex_ << endl; double sinth = sin(angle_B_pem_), nuk = cyclotron_freq_*pow(thetae_*kappaindex_,2.)*sinth, Xk = nu/nuk, Js_low = pow(Xk,1./3.)*sinth*4.*M_PI*tgamma(kappaindex_-4./3.)/ \ (pow(3.,7./3.)*tgamma(kappaindex_-2.)), Js_high = pow(Xk,-(kappaindex_-2.)/2.)*sinth*pow(3.,(kappaindex_-1.)/2.)* \ (kappaindex_-1.)*(kappaindex_-2.)/4.*tgamma(kappaindex_/4.-1./3.)* \ tgamma(kappaindex_/4.+4./3.), expo = 3.*pow(kappaindex_,-3./2.), Js = pow(pow(Js_low,-expo) + pow(Js_high,-expo),-1./expo); double emis_synch = numberdensityCGS_* \ GYOTO_ELEMENTARY_CHARGE_CGS*GYOTO_ELEMENTARY_CHARGE_CGS*cyclotron_freq_/ \ GYOTO_C_CGS* \ Js; //cout << "in kappa spec angleB jnu= " << angle_B_pem_ << " " << emis_synch << endl; return emis_synch; } double Spectrum::KappaDistributionSynchrotron::jQnuCGS(double nu) const{ // Marszewski, Prather, Joshi, Pandya, Gammie 2021 //cout << "in kappa jnu stuff: " << cyclotron_freq_ << " " << thetae_ << " " << kappaindex_ << endl; double sinth = sin(angle_B_pem_), nuk = cyclotron_freq_*pow(thetae_*kappaindex_,2.)*sinth, Xk = nu/nuk, Js_low = 0.5*pow(Xk,1./3.)*sinth*4.*M_PI*tgamma(kappaindex_-4./3.)/ \ (pow(3.,7./3.)*tgamma(kappaindex_-2.)), Js_high = (pow(4./5.,2.)+kappaindex_/50.)*pow(Xk,-(kappaindex_-2.)/2.)*sinth*pow(3.,(kappaindex_-1.)/2.)* \ (kappaindex_-1.)*(kappaindex_-2.)/4.*tgamma(kappaindex_/4.-1./3.)* \ tgamma(kappaindex_/4.+4./3.), expo = 3.7*pow(kappaindex_,-8./5.), Js = pow(pow(Js_low,-expo) + pow(Js_high,-expo),-1./expo); double emis_synch = numberdensityCGS_* \ GYOTO_ELEMENTARY_CHARGE_CGS*GYOTO_ELEMENTARY_CHARGE_CGS*cyclotron_freq_/ \ GYOTO_C_CGS* \ Js; //cout << "in kappa spec angleB jnu= " << angle_B_pem_ << " " << emis_synch << endl; return emis_synch; } double Spectrum::KappaDistributionSynchrotron::jUnuCGS(double nu) const{ // Marszewski, Prather, Joshi, Pandya, Gammie 2021 return 0.; } double Spectrum::KappaDistributionSynchrotron::jVnuCGS(double nu) const{ // Marszewski, Prather, Joshi, Pandya, Gammie 2021 //cout << "in kappa jnu stuff: " << cyclotron_freq_ << " " << thetae_ << " " << kappaindex_ << endl; double sinth = sin(angle_B_pem_), nuk = cyclotron_freq_*pow(thetae_*kappaindex_,2.)*sinth, Xk = nu/nuk, Js_low = pow(3./4.,2.)*pow(pow(sinth,-12./5.)-1.,12./25.)*pow(kappaindex_, -66./125.)/thetae_*\ pow(Xk,-7./20.)*pow(Xk,1./3.)*sinth*4.*M_PI*tgamma(kappaindex_-4./3.)/ \ (pow(3.,7./3.)*tgamma(kappaindex_-2.)), Js_high = pow(7./8.,2.)*pow(pow(sinth,-5./2.)-1.,11./25.)*pow(kappaindex_, -11./25.)/thetae_*\ pow(Xk,-1./2.)*pow(Xk,-(kappaindex_-2.)/2.)*sinth*pow(3.,(kappaindex_-1.)/2.)* \ (kappaindex_-1.)*(kappaindex_-2.)/4.*tgamma(kappaindex_/4.-1./3.)* \ tgamma(kappaindex_/4.+4./3.), expo = 3.*pow(kappaindex_,-3./2.), Js = pow(pow(Js_low,-expo) + pow(Js_high,-expo),-1./expo)*cos(angle_B_pem_)/abs(cos(angle_B_pem_)); double emis_synch = numberdensityCGS_* \ GYOTO_ELEMENTARY_CHARGE_CGS*GYOTO_ELEMENTARY_CHARGE_CGS*cyclotron_freq_/ \ GYOTO_C_CGS* \ Js; //cout << "in kappa spec angleB jnu= " << angle_B_pem_ << " " << emis_synch << endl; return emis_synch; } double Spectrum::KappaDistributionSynchrotron::alphanuCGS(double nu) const{ // Pandya, Zhang, Chandra, Gammie, 2016 //cout << "in kappa anu stuff: " << cyclotron_freq_ << " " << thetae_ << " " << kappaindex_ << " " << hypergeometric_ << endl; double sinth = sin(angle_B_pem_), nuk = cyclotron_freq_*pow(thetae_*kappaindex_,2.)*sinth, Xk = nu/nuk, As_low = pow(Xk,-2./3.)*pow(3.,1./6.)*10./41.* \ 2.*M_PI/pow(thetae_*kappaindex_,10./3.-kappaindex_) * \ (kappaindex_-1.)*(kappaindex_-2.)*kappaindex_/(3.*kappaindex_-1.) * \ tgamma(5./3.)*hypergeometric_, As_high = pow(Xk,-(1.+kappaindex_)/2.)*pow(M_PI,3./2.)/3. * \ (kappaindex_-1.)*(kappaindex_-2.)*kappaindex_/pow(thetae_*kappaindex_,3.)* \ (2.*tgamma(2.+kappaindex_/2.)/(2.+kappaindex_)-1.)* \ (pow(3./kappaindex_,19./4.)+3./5.), expo = pow(-7./4.+8./5.*kappaindex_,-43./50.), As = pow(pow(As_low,-expo) + pow(As_high,-expo),-1./expo); double abs_synch = numberdensityCGS_* \ GYOTO_ELEMENTARY_CHARGE_CGS*GYOTO_ELEMENTARY_CHARGE_CGS/ \ (nu*GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS)* \ As; //cout << "in kappa spec angleB anu= " << angle_B_pem_ << " " << abs_synch << endl; return abs_synch; } double Spectrum::KappaDistributionSynchrotron::alphaQnuCGS(double nu) const{ // Marszewski, Prather, Joshi, Pandya, Gammie 2021 //cout << "in kappa anu stuff: " << cyclotron_freq_ << " " << thetae_ << " " << kappaindex_ << " " << hypergeometric_ << endl; double sinth = sin(angle_B_pem_), nuk = cyclotron_freq_*pow(thetae_*kappaindex_,2.)*sinth, Xk = nu/nuk, As_low = 25./48.*pow(Xk,-2./3.)*pow(3.,1./6.)*10./41.* \ 2.*M_PI/pow(thetae_*kappaindex_,10./3.-kappaindex_) * \ (kappaindex_-1.)*(kappaindex_-2.)*kappaindex_/(3.*kappaindex_-1.) * \ tgamma(5./3.)*hypergeometric_, As_high = pow(Xk,-(1.+kappaindex_)/2.)*pow(M_PI,3./2.)/3. * \ (kappaindex_-1.)*(kappaindex_-2.)*kappaindex_/pow(thetae_*kappaindex_,3.)* \ (2.*tgamma(2.+kappaindex_/2.)/(2.+kappaindex_)-1.)* \ (pow(21.,2.)*pow(kappaindex_,-pow(12./5.,2.))+11./20.), expo = 7./5.*pow(kappaindex_,-23./20.), As = pow(pow(As_low,-expo) + pow(As_high,-expo),-1./expo); double abs_synch = numberdensityCGS_* \ GYOTO_ELEMENTARY_CHARGE_CGS*GYOTO_ELEMENTARY_CHARGE_CGS/ \ (nu*GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS)* \ As; //cout << "in kappa spec angleB anu= " << angle_B_pem_ << " " << abs_synch << endl; return abs_synch; } double Spectrum::KappaDistributionSynchrotron::alphaUnuCGS(double nu) const{ // Marszewski, Prather, Joshi, Pandya, Gammie 2021 return 0.; } double Spectrum::KappaDistributionSynchrotron::alphaVnuCGS(double nu) const{ // Marszewski, Prather, Joshi, Pandya, Gammie 2021 //cout << "in kappa anu stuff: " << cyclotron_freq_ << " " << thetae_ << " " << kappaindex_ << " " << hypergeometric_ << endl; double sinth = sin(angle_B_pem_), nuk = cyclotron_freq_*pow(thetae_*kappaindex_,2.)*sinth, Xk = nu/nuk, As_low = 77./100./thetae_*pow(pow(sinth,-114./50.)-1.,223./500.)*pow(kappaindex_,-7./10.) *\ pow(Xk,-7./20.)*pow(Xk,-2./3.)*pow(3.,1./6.)*10./41.* \ 2.*M_PI/pow(thetae_*kappaindex_,10./3.-kappaindex_) * \ (kappaindex_-1.)*(kappaindex_-2.)*kappaindex_/(3.*kappaindex_-1.) * \ tgamma(5./3.)*hypergeometric_, As_high = pow(Xk,-(1.+kappaindex_)/2.)*pow(M_PI,3./2.)/3. * \ (kappaindex_-1.)*(kappaindex_-2.)*kappaindex_/pow(thetae_*kappaindex_,3.)* \ (2.*tgamma(2.+kappaindex_/2.)/(2.+kappaindex_)-1.)* \ 143./10.*pow(thetae_,-116./125.)*pow(pow(sinth,-41./20.)-1.,1./2.) *\ (pow(13.,2.)*pow(kappaindex_,-8.)+13./2500.*kappaindex_-263./5000.+47./200./kappaindex_)*pow(Xk,-0.5), expo = 61./50.*pow(kappaindex_,-142./125.)+7./1000., As = pow(pow(As_low,-expo) + pow(As_high,-expo),-1./expo)*cos(angle_B_pem_)/abs(cos(angle_B_pem_)); double abs_synch = numberdensityCGS_* \ GYOTO_ELEMENTARY_CHARGE_CGS*GYOTO_ELEMENTARY_CHARGE_CGS/ \ (nu*GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS)* \ As; //cout << "in kappa spec angleB anu= " << angle_B_pem_ << " " << abs_synch << endl; return abs_synch; } double Spectrum::KappaDistributionSynchrotron::rQnuCGS(double nu) const{ // Marszewski, Prather, Joshi, Pandya, Gammie 2021 double rho_Q=0; double sinth = sin(angle_B_pem_), nuk = cyclotron_freq_*pow(thetae_*kappaindex_,2.)*sinth, Xk = nu/nuk, rho_kappa=0; if (Xk<0.1) GYOTO_ERROR("Xk too low to compute rhoQ with these formula"); switch(int(kappaindex_*10)) { case 35: rho_kappa=17.*thetae_-3.*sqrt(thetae_)+7.*sqrt(thetae_)*exp(-5.*thetae_)*\ (1-exp(-pow(Xk,0.84)/30.)-sin(Xk/10.)*exp(-3./2.*pow(Xk,0.471))); break; case 40: rho_kappa=46./3.*thetae_-5./3.*sqrt(thetae_)+17./3.*sqrt(thetae_)*exp(-5.*thetae_)*\ (1-exp(-pow(Xk,0.84)/18.)-sin(Xk/6.)*exp(-7./4.*pow(Xk,0.5))); break; case 45: rho_kappa=14.*thetae_-13./8.*sqrt(thetae_)+9./2.*sqrt(thetae_)*exp(-5.*thetae_)*\ (1-exp(-pow(Xk,0.84)/12.)-sin(Xk/4.)*exp(-2.*pow(Xk,0.525))); break; case 50: rho_kappa=25./2.*thetae_-sqrt(thetae_)+5.*sqrt(thetae_)*exp(-5.*thetae_)*\ (1-exp(-pow(Xk,0.84)/8.)-sin(3.*Xk/8.)*exp(-9./4.*pow(Xk,0.541))); break; default: GYOTO_ERROR("Faraday coefficients not defined for values of kappa different of 3.5, 4., 4.5, 5."); } rho_Q=numberdensityCGS_*pow(GYOTO_ELEMENTARY_CHARGE_CGS*cyclotron_freq_*sinth,2.)/ \ (GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS*pow(nu,3.))* \ rho_kappa; return rho_Q; } double Spectrum::KappaDistributionSynchrotron::rUnuCGS(double nu) const{ // Marszewski, Prather, Joshi, Pandya, Gammie 2021 return 0.; } double Spectrum::KappaDistributionSynchrotron::rVnuCGS(double nu) const{ // Marszewski, Prather, Joshi, Pandya, Gammie 2021 double rho_V=0; double sinth = sin(angle_B_pem_), nuk = cyclotron_freq_*pow(thetae_*kappaindex_,2.)*sinth, Xk = nu/nuk, rho_kappa=0; if (Xk<0.1) GYOTO_ERROR("Xk too low to compute rhoQ with these formula"); switch(int(kappaindex_*10)) { case 35: rho_kappa=(pow(thetae_,2.)+2.*thetae_+1.)/ \ (25./8.*pow(thetae_,2.)+4.*thetae_+1.)* \ (1-0.17*log(1.+0.447*pow(Xk,-0.5))); break; case 40: rho_kappa=(pow(thetae_,2.)+54.*thetae_+50.)/ \ (30./11.*pow(thetae_,2.)+134.*thetae_+50.)* \ (1-0.17*log(1.+0.391*pow(Xk,-0.5))); break; case 45: rho_kappa=(pow(thetae_,2.)+43.*thetae_+38.)/ \ (7./3.*pow(thetae_,2.)+185./2.*thetae_+38.)* \ (1-0.17*log(1.+0.348*pow(Xk,-0.5))); break; case 50: rho_kappa=(thetae_+13./14.)/ \ (2.*thetae_+13./14.)* \ (1-0.17*log(1.+0.313*pow(Xk,-0.5))); break; default: GYOTO_ERROR("Faraday coefficients not defined for values of kappa different of 3.5, 4., 4.5, 5."); } rho_V=2.*numberdensityCGS_*pow(GYOTO_ELEMENTARY_CHARGE_CGS,2.)*cyclotron_freq_*cos(angle_B_pem_)*bessk0(1./thetae_)/ \ (GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS*pow(nu,2.)*bessk(2.,1./thetae_))* \ rho_kappa; return rho_V; } void Spectrum::KappaDistributionSynchrotron::radiativeQ(double jnu[], // output double alphanu[], // output double const nu_ems[], size_t nbnu ) { for (size_t ii=0; ii< nbnu; ++ii){ double nu = nu_ems[ii]; double jnucur=0., anucur=0.; if (!angle_averaged_){ jnucur = jnuCGS(nu); anucur = alphanuCGS(nu); }else{ double th0=0.01, thNm1=M_PI-0.01; // avoiding sinth=0. double hh=(thNm1-th0)/double(nstep_angint); double theta=th0; angle_B_pem(theta); double jnusinprev=jnuCGS(nu)*sin(theta), jnusinnext=jnusinprev; double anusinprev=alphanuCGS(nu)*sin(theta), anusinnext=anusinprev; for (int jj=1;jj<=nstep_angint;jj++){ theta=th0+double(jj)*hh; angle_B_pem(theta); jnusinnext=jnuCGS(nu)*sin(theta); anusinnext=alphanuCGS(nu)*sin(theta); jnucur+=0.5*0.5*hh*(jnusinprev+jnusinnext); anucur+=0.5*0.5*hh*(anusinprev+anusinnext); jnusinprev=jnusinnext; anusinprev=anusinnext; //NB: averaged jnu is: \int jnu dOmega = 1/2 * \int jnu*sinth dth } } // OUTPUTS jnu[ii]= jnucur * GYOTO_JNU_CGS_TO_SI; alphanu[ii]= anucur * GYOTO_ANU_CGS_TO_SI; } } void Spectrum::KappaDistributionSynchrotron::radiativeQ(double jInu[], double jQnu[], double jUnu[], double jVnu[], // Output double aInu[], double aQnu[], double aUnu[], double aVnu[], // Output double rQnu[], double rUnu[], double rVnu[], // Output double const nu_ems[], size_t nbnu ){ for (size_t ii=0; ii< nbnu; ++ii){ double nu = nu_ems[ii]; double jInucur=0., jQnucur=0.,jUnucur=0.,jVnucur=0.; double aInucur=0., aQnucur=0., aUnucur=0., aVnucur=0.; double rQnucur=0., rUnucur=0., rVnucur=0.; if (!angle_averaged_){ jInucur = jnuCGS(nu); jQnucur = jQnuCGS(nu); jUnucur = jUnuCGS(nu); jVnucur = jVnuCGS(nu); aInucur = alphanuCGS(nu); aQnucur = alphaQnuCGS(nu); aUnucur = alphaUnuCGS(nu); aVnucur = alphaVnuCGS(nu); rQnucur = rQnuCGS(nu); rUnucur = rUnuCGS(nu); rVnucur = rVnuCGS(nu); }else{ double th0=0.01, thNm1=M_PI-0.01; // sin(theta) must never be 0 double hh=(thNm1-th0)/double(nstep_angint); double theta=th0; angle_B_pem(theta); double jInusinprev=jnuCGS(nu)*sin(theta), jInusinnext=jInusinprev; double jQnusinprev=jQnuCGS(nu)*sin(theta), jQnusinnext=jQnusinprev; double jUnusinprev=jUnuCGS(nu)*sin(theta), jUnusinnext=jUnusinprev; double jVnusinprev=jVnuCGS(nu)*sin(theta), jVnusinnext=jVnusinprev; double aInusinprev=alphanuCGS(nu)*sin(theta), aInusinnext=aInusinprev; double aQnusinprev=alphaQnuCGS(nu)*sin(theta), aQnusinnext=aQnusinprev; double aUnusinprev=alphaUnuCGS(nu)*sin(theta), aUnusinnext=aUnusinprev; double aVnusinprev=alphaVnuCGS(nu)*sin(theta), aVnusinnext=aVnusinprev; double rQnusinprev=rQnuCGS(nu)*sin(theta), rQnusinnext=rQnusinprev; double rUnusinprev=rUnuCGS(nu)*sin(theta), rUnusinnext=rUnusinprev; double rVnusinprev=rVnuCGS(nu)*sin(theta), rVnusinnext=rVnusinprev; for (int jj=1;jj<=nstep_angint;jj++){ theta=th0+double(jj)*hh; angle_B_pem(theta); jInusinnext=jnuCGS(nu)*sin(theta); jQnusinnext=jQnuCGS(nu)*sin(theta); jUnusinnext=jUnuCGS(nu)*sin(theta); jVnusinnext=jVnuCGS(nu)*sin(theta); aInusinnext=alphanuCGS(nu)*sin(theta); aQnusinnext=alphaQnuCGS(nu)*sin(theta); aUnusinnext=alphaUnuCGS(nu)*sin(theta); aVnusinnext=alphaVnuCGS(nu)*sin(theta); rQnusinnext=rQnuCGS(nu)*sin(theta); rUnusinnext=rUnuCGS(nu)*sin(theta); rVnusinnext=rVnuCGS(nu)*sin(theta); jInucur+=0.5*0.5*hh*(jInusinprev+jInusinnext); jQnucur+=0.5*0.5*hh*(jQnusinprev+jQnusinnext); jUnucur+=0.5*0.5*hh*(jUnusinprev+jUnusinnext); jVnucur+=0.5*0.5*hh*(jVnusinprev+jVnusinnext); aInucur+=0.5*0.5*hh*(aInusinprev+aInusinnext); aQnucur+=0.5*0.5*hh*(aQnusinprev+aQnusinnext); aUnucur+=0.5*0.5*hh*(aUnusinprev+aUnusinnext); aVnucur+=0.5*0.5*hh*(aVnusinprev+aVnusinnext); rQnucur+=0.5*0.5*hh*(rQnusinprev+rQnusinnext); rUnucur+=0.5*0.5*hh*(rUnusinprev+rUnusinnext); rVnucur+=0.5*0.5*hh*(rVnusinprev+rVnusinnext); jInusinprev=jInusinnext; jQnusinprev=jQnusinnext; jUnusinprev=jUnusinnext; jVnusinprev=jVnusinnext; aInusinprev=aInusinnext; aQnusinprev=aQnusinnext; aUnusinprev=aUnusinnext; aVnusinprev=aVnusinnext; rQnusinprev=rQnusinnext; rUnusinprev=rUnusinnext; rVnusinprev=rVnusinnext; //NB: averaged jnu is: 1/4pi * \int jnu dOmega = 1/2 * \int jnu*sinth dth } } // OUTPUTS jInu[ii]=jInucur * GYOTO_JNU_CGS_TO_SI; jQnu[ii]=jQnucur * GYOTO_JNU_CGS_TO_SI; jUnu[ii]=jUnucur * GYOTO_JNU_CGS_TO_SI; jVnu[ii]=jVnucur * GYOTO_JNU_CGS_TO_SI; aInu[ii]=aInucur * GYOTO_ANU_CGS_TO_SI; aQnu[ii]=aQnucur * GYOTO_ANU_CGS_TO_SI; aUnu[ii]=aUnucur * GYOTO_ANU_CGS_TO_SI; aVnu[ii]=aVnucur * GYOTO_ANU_CGS_TO_SI; rQnu[ii]=rQnucur * GYOTO_ANU_CGS_TO_SI; rUnu[ii]=rUnucur * GYOTO_ANU_CGS_TO_SI; rVnu[ii]=rVnucur * GYOTO_ANU_CGS_TO_SI; } }Gyoto-2.0.2/lib/KerrBL.C000066400000000000000000001157151455254334400146320ustar00rootroot00000000000000/* Copyright 2011-2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrBL.h" #include "GyotoWorldline.h" #include "GyotoError.h" #include "GyotoProperty.h" #include #include #include #include #include #include #include using namespace std ; using namespace Gyoto ; using namespace Gyoto::Metric ; GYOTO_PROPERTY_START(KerrBL, "Metric around a rotating black-hole, in spherical Boyer-Lindquist coordinates.") GYOTO_PROPERTY_DOUBLE(KerrBL, Spin, spin, "Spin parameter (adimensioned, 0).") GYOTO_PROPERTY_DOUBLE(KerrBL, HorizonSecurity, horizonSecurity, "Thickness of sink layer around horizon (geometrical units, 0.01).") GYOTO_PROPERTY_BOOL(KerrBL, GenericIntegrator, SpecificIntegrator, genericIntegrator, "Which version of the Legacy integrator should be used (specific).") GYOTO_PROPERTY_DOUBLE(KerrBL, DiffTol, difftol, "Tuning parameter for the specific Legacy integrator (0.01).") GYOTO_PROPERTY_END(KerrBL, Generic::properties) /* NB: points delicats de KerrBL: - z-axis problems (d'ou interet de KS? a creuser) - probleme pres de l'horizon (d'ou interet de KS? a creuser) - changement de thetadot dans CheckCons (mais: test dans RK4ada pour eviter de "trop" changer) - changement de rdot dans Normalize4v (mais: test dans RK4ada pour eviter de "trop" changer) */ /* Comment on z-axis problem: z-axis pb is never launched by the condition theta 50 && zaxis)....) which should never be read : the integration is stopped brutally if it's read. A message is printed on the screen and the case must be investigated. The parameter 50 (=countbis_max) can also be changed (put higher) in order to try to avoid the manu militari stop. [*] see also the same .C just changing delta to pi/4N. With same value of i. */ //#define GYOTO_MIN_THETA 1e-5 //seems too big #define GYOTO_MIN_THETA 1e-10 KerrBL::KerrBL() : Generic(GYOTO_COORDKIND_SPHERICAL, "KerrBL"), spin_(0.), a2_(0.), a3_(0.), a4_(0.), difftol_(GYOTO_KERRBL_DEFAULT_DIFFTOL), rsink_(2.+GYOTO_KERR_HORIZON_SECURITY), drhor_(GYOTO_KERR_HORIZON_SECURITY), generic_integrator_(false) {} // default copy constructor should be fine KerrBL * KerrBL::clone () const { return new KerrBL(*this); } // Mutators void KerrBL::spin(const double a) { spin_=a; a2_=spin_*spin_; a3_=a2_*spin_; a4_=a2_*a2_; rsink_=1.+sqrt(1.-a2_)+drhor_; tellListeners(); } // Accessors double KerrBL::spin() const { return spin_ ; } double KerrBL::difftol() const { return difftol_;} void KerrBL::difftol(double t) {difftol_=t;} void KerrBL::horizonSecurity(const double drhor) { drhor_=drhor; rsink_=1.+sqrt(1.-a2_)+drhor_; tellListeners(); } double KerrBL::horizonSecurity() const {return drhor_; } void KerrBL::genericIntegrator(bool t) { generic_integrator_=t; tellListeners(); } bool KerrBL::genericIntegrator() const {return generic_integrator_;} int KerrBL::isStopCondition(double const * const coord) const { return coord[1] < rsink_ ; } //Prograde marginally stable orbit double KerrBL::getRms() const { double aa=spin_; double z1 = 1. + pow((1. - a2_),1./3.)*(pow((1. + aa),1./3.) + pow((1. - aa),1./3.)); double z2 = pow(3.*a2_ + z1*z1,1./2.); return (3. + z2 - pow((3. - z1)*(3. + z1 + 2.*z2),1./2.)); } //Prograde marginally bound orbit double KerrBL::getRmb() const { return 2.-spin_+2.*sqrt(1.-spin_); } double KerrBL::getSpecificAngularMomentum(double rr) const { // this is l = -u_phi/u_t for a circular equatorial 4-velocity double aa=spin_, sqrtr=sqrt(rr); return (rr*rr-2.*aa*sqrtr+aa*aa)/(pow(rr,1.5)-2.*sqrtr+aa); } double KerrBL::getPotential(double const pos[4], double l_cst) const { // this is W = -ln(|u_t|) for a circular equatorial 4-velocity double gtt = gmunu(pos,0,0); double gtp = gmunu(pos,0,3); double gpp = gmunu(pos,3,3); double Omega = -(gtp + l_cst * gtt)/(gpp + l_cst * gtp) ; double W = 0.5 * log(abs(gtt + 2. * Omega * gtp + Omega*Omega * gpp)) - log(abs(gtt + Omega * gtp)) ; return W ; } //Computation of metric coefficients in covariant form void KerrBL::gmunu(double g[4][4], const double * pos) const { double r = pos[1]; double sth2, cth2; sincos(pos[2], &sth2, &cth2); sth2*=sth2; cth2*=cth2; double r2=r*r; double sigma=r2+a2_*cth2; double delta=r2-2.*r+a2_; int mu, nu; for (mu=0; mu<4; ++mu) for (nu=0; nu<4; ++nu) g[mu][nu]=0.; g[0][0] = -1.+2.*r/sigma; g[1][1] = sigma/delta; g[2][2] = sigma; g[3][3] = (r2+a2_+2.*r*a2_*sth2/sigma)*sth2; g[0][3] = g[3][0] = -2*spin_*r*sth2/sigma; } double KerrBL::gmunu(const double * pos, int mu, int nu) const { double r = pos[1]; double sth2, cth2; sincos(pos[2], &sth2, &cth2); sth2*=sth2; cth2*=cth2; double r2=r*r; double sigma=r2+a2_*cth2; double delta=r2-2.*r+a2_; if ((mu==0) && (nu==0)) return -(1.-2.*r/sigma); if ((mu==1) && (nu==1)) return sigma/delta; if ((mu==2) && (nu==2)) return sigma; if ((mu==3) && (nu==3)) return (r2+a2_+2.*r*a2_*sth2/sigma)*sth2; if (((mu==0) && (nu==3)) || ((mu==3) && (nu==0))){ return -2*spin_*r*sth2/sigma; } return 0.; } //Computation of metric coefficients in contravariant form void KerrBL::gmunu_up(double gup[4][4], const double * pos) const { double r = pos[1]; double sth2, cth2; sincos(pos[2], &sth2, &cth2); sth2*=sth2; cth2*=cth2; double r2=r*r; double sigma=r2+a2_*cth2; double delta=r2-2.*r+a2_; double xi=(r2+a2_)*(r2+a2_)-a2_*delta*sth2; int mu, nu; for (mu=0; mu<4; ++mu) for (nu=0; nu<4; ++nu) gup[mu][nu]=0.; gup[0][0]=-xi/(delta*sigma); gup[1][1]=delta/sigma; gup[2][2]=1./sigma; gup[3][3]=(delta-a2_*sth2)/(sigma*delta*sth2); gup[0][3] = gup[3][0] = -2*spin_*r/(sigma*delta); } double KerrBL::gmunu_up(const double * pos, int mu, int nu) const { double r = pos[1]; double sth2, cth2; sincos(pos[2], &sth2, &cth2); sth2*=sth2; cth2*=cth2; double r2=r*r; double sigma=r2+a2_*cth2; double delta=r2-2.*r+a2_; double xi=(r2+a2_)*(r2+a2_)-a2_*delta*sth2; if ((mu==0) && (nu==0)) { return -xi/(delta*sigma); } if ((mu==1) && (nu==1)) return delta/sigma; if ((mu==2) && (nu==2)) return 1./sigma; if ((mu==3) && (nu==3)) { return (delta-a2_*sth2)/(sigma*delta*sth2); } if (((mu==0) && (nu==3)) || ((mu==3) && (nu==0))){ return -2*spin_*r/(sigma*delta); } return 0.; } int KerrBL::christoffel(double dst[4][4][4], double const pos[4]) const { int a, mu, nu; for (a=0; a<4; ++a) for(mu=0; mu<4; ++mu) for(nu=0; nu<4; ++nu) dst[a][mu][nu]=0.; double r = pos[1]; double sth, cth; sincos(pos[2], &sth, &cth); double sth2 = sth*sth, cth2 = cth*cth, sth4=sth2*sth2, s2th = 2.*sth*cth, c2th=cth2-sth2, s4th = 2.*s2th*c2th, s2th2= s2th*s2th, ctgth=cth/sth; double r2=r*r, r4=r2*r2, r6=r4*r2; double Sigma=r2+a2_*cth2, Sigma2=Sigma*Sigma; double Delta=r2-2.*r+a2_; double Deltam1=1./Delta, Sigmam1=1./Sigma, Sigmam2=Sigmam1*Sigmam1, Sigmam3=Sigmam2*Sigmam1, a2cthsth=a2_*cth*sth, rSigmam1=r*Sigmam1, Deltam1Sigmam2=Deltam1*Sigmam2, r2plusa2 = r2+a2_; // These formulas are taken from Semerak, MNRAS, 308, 863 (1999) // appendix A, and have been compared against the SageMath expressions // for some particular spacetime point (not in the equatorial plane); // they agree at machine precision dst[1][1][1]=(1.-r)*Deltam1+rSigmam1; dst[1][2][1]=dst[1][1][2]=-a2cthsth*Sigmam1; dst[1][2][2]=-Delta*rSigmam1; dst[1][3][3]=-Delta*sth2*(r+(a2_*(-2.*r2+Sigma)*sth2)/Sigma2)/Sigma; dst[1][3][0]=dst[1][0][3]=spin_*Delta*(-2*r2+Sigma)*sth2*Sigmam3; dst[1][0][0]=-Delta*(-2.*r2+Sigma)*Sigmam3; dst[2][1][1]=a2cthsth*Deltam1*Sigmam1; dst[2][2][1]=dst[2][1][2]=rSigmam1; dst[2][2][2]=-a2cthsth*Sigmam1; dst[2][3][3]= -sth*cth*Sigmam3 * (Delta*Sigma2 + 2.*r*r2plusa2*r2plusa2); dst[2][0][3]=dst[2][3][0]=spin_*r*r2plusa2*s2th*Sigmam3; dst[2][0][0]=-2.*a2cthsth*r*Sigmam3; dst[3][3][1]=dst[3][1][3]= Deltam1*Sigmam2 * (r*Sigma*(Sigma-2.*r) + a2_*(Sigma-2.*r2)*sth2); dst[3][3][2]=dst[3][2][3]= Sigmam2*ctgth * (-(Sigma+Delta)*a2_*sth2 + r2plusa2*r2plusa2); dst[3][0][1]=dst[3][1][0]=spin_*(2.*r2-Sigma)*Deltam1Sigmam2; dst[3][0][2]=dst[3][2][0]=-2.*spin_*r*ctgth*Sigmam2; dst[0][3][1]=dst[0][1][3]= -spin_*sth2*Deltam1Sigmam2 * (2.*r2*r2plusa2 + Sigma*(r2-a2_)); dst[0][3][2]=dst[0][2][3]=Sigmam2*spin_*a2_*r*sth2*s2th; dst[0][0][1]=dst[0][1][0]=(a2_+r2)*(2.*r2-Sigma)*Deltam1Sigmam2; dst[0][0][2]=dst[0][2][0]=-a2_*r*s2th*Sigmam2; return 0; } // Optimized version double KerrBL::ScalarProd(const double* pos, const double* u1, const double* u2) const { double g[4][4]; gmunu(g, pos); double res= g[0][0]*u1[0]*u2[0]+ g[1][1]*u1[1]*u2[1]+ g[2][2]*u1[2]*u2[2]+ g[3][3]*u1[3]*u2[3]+ g[0][3]*u1[0]*u2[3]+ g[3][0]*u1[3]*u2[0]; # if GYOTO_DEBUG_ENABLED GYOTO_IF_DEBUG GYOTO_DEBUG_ARRAY(pos, 4); GYOTO_DEBUG_ARRAY(u1, 4); GYOTO_DEBUG_ARRAY(u2, 4); GYOTO_DEBUG << "ScalarProd(pos, u1, u2)=" << res << endl; GYOTO_ENDIF_DEBUG # endif return res; } void KerrBL::computeNBeta(const double coord[4], double &NN,double beta[3]) const { // Expressions from Eric's BH notes double rr=coord[1], r2=rr*rr, th=coord[2], cost=cos(th), cost2=cost*cost, sint=sin(th), sint2=sint*sint, spin2=spin_*spin_; double Delta = r2 - 2.*rr + spin2, rho2 = r2+spin2*cost2, B2 = r2 + spin2 + 2*spin2*rr*sint2 / rho2; NN = sqrt(Delta/B2); beta[0]=0.; beta[1]=0.; beta[2]=-2.*spin_*rr / (rho2*(r2+spin2) + 2.*spin2*rr*sint2); } int KerrBL::diff31(const state_t &x, state_t &dxdt, double /* mass */) const { // Expressions from Eric's BH notes (N,beta,gamma) // and KerrBL Sage notebook (Kij) double EE=x[0], rr=x[1], r2=rr*rr, th=x[2], cost=cos(th), sint=sin(th), cost2=cost*cost, sint2=sint*sint, Vr=x[4], Vth=x[5], Vph=x[6], spin2=spin_*spin_; double Delta = r2 - 2.*rr + spin2, Delta_r = 2.*(rr - 1.), rho2 = r2+spin2*cost2, rho4 = rho2*rho2, B2 = r2 + spin2 + 2*spin2*rr*sint2 / rho2, B2_squared = B2*B2, B2_r = 2.*rr + 2.*spin2*sint2*(spin2*cost2 - r2)/rho4, B2_t = 4.*spin2*rr*sint*cost*(spin2+r2)/rho4; double NN = sqrt(Delta/B2), N_r = 0.5/NN*(Delta_r*B2 - Delta*B2_r)/B2_squared, N_t = -0.5/NN*Delta*B2_t/B2_squared, num = -2.*spin_*rr, deno = rho2*(r2+spin2) + 2.*spin2*rr*sint2, betap = num/deno, deno2 = deno*deno, num_r = -2.*spin_, deno_r = 4.*r2*rr + 2.*spin2*(sint2 + rr*(1.+cost2)), deno_t = -2.*spin2*cost*sint*Delta, betap_r = (num_r*deno - num*deno_r)/deno2, betap_t = -(num*deno_t)/deno2, gamma_rr = rho2/Delta, gammarr = 1./gamma_rr, gamma_tt = rho2, gammatt = 1./gamma_tt, gamma_pp = B2*sint2, gammapp = 1./gamma_pp, Krp = spin_*sint2*(3*r2*r2+spin2*r2+spin2*(r2-spin2)*cost2) / (rho2*rho2*sqrt(Delta*B2)), Kyp = 2.*rr*spin2*spin_*sint2*cost*sqrt(Delta)/(rho2*rho2*sqrt(B2)), // Kyp is for y=cost as used in Eric's Sage notebook Ktp = -sint*Kyp; // 3 christo double rho2_r = 2.*rr, rho2_t = -2.*spin2*sint*cost, gamma_rr_r = (rho2_r*Delta - rho2*Delta_r)/(Delta*Delta), gamma_rr_t = rho2_t/Delta, gamma_tt_r = rho2_r, gamma_tt_t = rho2_t, gamma_pp_r = B2_r*sint2, gamma_pp_t = B2_t*sint2 + 2.*cost*sint*B2, Grrr = 0.5*gammarr*gamma_rr_r, Grrt = 0.5*gammarr*gamma_rr_t, Grtt = -0.5*gammarr*gamma_tt_r, Grpp = -0.5*gammarr*gamma_pp_r, Gttt = 0.5*gammatt*gamma_tt_t, Gtpp = -0.5*gammatt*gamma_pp_t, Gtrr = -0.5*gammatt*gamma_rr_t, Gtrt = 0.5*gammatt*gamma_tt_r, Gprp = 0.5*gammapp*gamma_pp_r, Gptp = 0.5*gammapp*gamma_pp_t; double Christo_r=Vr*Vr*Grrr+2.*Grrt*Vr*Vth+Grtt*Vth*Vth+Grpp*Vph*Vph, Christo_th=Gtrr*Vr*Vr+2.*Gtrt*Vr*Vth+Gttt*Vth*Vth+Gtpp*Vph*Vph, Christo_ph=2.*Gprp*Vr*Vph+2.*Gptp*Vth*Vph; double prefact=1./NN*Vr*N_r+1./NN*Vth*N_t-2.*Krp*Vr*Vph-2.*Ktp*Vth*Vph; double Vrdot = NN*(Vr*prefact+2.*gammarr*Krp*Vph-Christo_r)-gammarr*N_r, Vthdot = NN*(Vth*prefact+2.*gammatt*Ktp*Vph-Christo_th)-gammatt*N_t, Vphdot = NN*(Vph*prefact+2.*gammapp*(Krp*Vr+Ktp*Vth)-Christo_ph) -Vr*betap_r-Vth*betap_t; // dot=d/dt here dxdt[0] = EE*NN*2.*(Krp*Vr*Vph+Ktp*Vth*Vph) - EE*(Vr*N_r+Vth*N_t); dxdt[1] = NN*Vr; dxdt[2] = NN*Vth; dxdt[3] = NN*Vph-betap; dxdt[4] = Vrdot; dxdt[5] = Vthdot; dxdt[6] = Vphdot; return 0; } /*For integration of KerrBL geodesics. diff is such that : y_dot=diff(y,cst) where cst are constants of motion (mu,E,L,Q in KerrBL) and y contains [r,theta,phi,t,pr,ptheta] (pr and ptheta are canonical momentum) and y_dot is [rdot,thetadot,phidot,tdot,prdot,pthetadot] */ int KerrBL::diff(const double* coordGen, const double* cst, double* res) const{ double a=spin_; //int width=25;//15; //int prec=15;//8; double r = coordGen[1] ; if (r < 0.) { cerr << "r= " << r << endl; GYOTO_ERROR( "KerrBL.C : r negative!!!!! the horizon may have been crossed..." ); } if (r < rsink_) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "Too close to horizon in KerrBL::diff at r= " << r << endl; # endif return 1; } double r2 = r*r ; double r3 = r2*r ; // compute and store efficiently sin, cos, cotan double theta=coordGen[2]; double costheta, sintheta; sincos(theta, &sintheta, &costheta); double costheta2=costheta*costheta; if (sintheta==0.) GYOTO_ERROR("sintheta==0"); double cotantheta=costheta/sintheta; double cotantheta2=cotantheta*cotantheta; double cotantheta3=cotantheta2*cotantheta; double sin2theta=2.*sintheta*costheta; double cos2theta=2.*costheta2-1.; double pr=coordGen[5]; double ptheta=coordGen[6]; double Sigma=r2+a2_*costheta2; if (Sigma==0) GYOTO_ERROR("In KerrBL::diff(): Sigma==0"); double Sigmam1=1./Sigma; double Sigmam2=Sigmam1*Sigmam1; double Delta=r2-2*r+a2_; double E=cst[1]; double E2=E*E; double L=cst[2]; double L2=L*L; double tmp1=(2.*Delta*Sigma); if (tmp1==0) GYOTO_ERROR("In KerrBL::diff(): 2.*Delta*Sigma==0"); double tmp1m1=1./tmp1; if (Delta==0) GYOTO_ERROR("In KerrBL::diff(): Delta==0"); //NB: equations of motion are independent of Carter constant in this //form. However, the dependency of the dynamic on this constant //appears when transforming from principal momenta to coordinate //derivatives (e.g. p_theta -> thetadot) /* ---> Standard Kerr equations of geodesics */ res[0] = tmp1m1*(2.*(r*(-2.*a*L+E*r3+a2_*E*(2.+r))+a2_*E*(a2_+r*(-2.+r)) *costheta2));// tdot res[1] = Delta*Sigmam1*pr; //rdot res[2] = Sigmam1*ptheta; //thetadot res[3] = -tmp1m1*(-2.*(r*(2.*a*E+L*(-2.+r))+L*(a2_+r*(-2.+r)) *cotantheta2)); //phidot res[4] = 0.;// ptdot: pt = cst = -E double tmp2=r2+a2_*costheta2; if (tmp2==0) GYOTO_ERROR("r2+a2*costheta2==0"); double tmp2m2=1./(tmp2*tmp2); double tmp3=a2_+r*(-2.+r); double tmp3_2=tmp3*tmp3; res[5] = -0.5*(2.*(r*(r-a2_)-a2_*(1.-r)*costheta2)*tmp2m2)*pr*pr -0.5*(-2.*r*tmp2m2)*ptheta*ptheta +(tmp2m2/tmp3_2 *(a2_*(a4_*E2-2.*a3_*E*L+2.*a*E*L*r2+E2*r3*(-4.+r) +a2_*(L2*(1.-r)+2*E2*r2))*costheta2 +r*(-r*(a4_*E2-2.*a3_*E*L+2.*a*E*L*(4.-3.*r)*r +a2_*(L2+2.*E2*r*(-2.+r))+r*(E2*r3-L2*(-2.+r)*(-2.+r))) +L2*tmp3_2*cotantheta2)));// prdot res[6]= -0.5*(a2_*Delta*sin2theta*Sigmam2)*pr*pr -0.5*(a2_*sin2theta*Sigmam2)*ptheta*ptheta +( Sigmam2 *( L2*r2*cotantheta +0.5*L2*(a2_+2.*r2+a2_*cos2theta)*cotantheta3 +a2_*r*(2.*a2_*E2-4.*a*E*L+L2*(2.-r)+2.*E2*r2)*costheta*sintheta/Delta ) ); // pthetadot res[7] = 0.;//pphidot: pphi = cst = L return 0; } void KerrBL::circularVelocity(double const coor[4], double vel[4], double dir) const { if (keplerian_) { // If keplerian_ is true, let the generic implementation return // the Newtonian Keplerian (i.e. r^-3/2, no spin) velocity // instead of the true circular velocity Generic::circularVelocity(coor, vel, dir); return; } # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG<<"coor=["< throw z-axis pb by // returning 1; if ( (thetacompare < thetatol) && (fabs(k1[5]) > derlim || fabs(k1[6]) > derlim) ){ return 1; } for (int i=0;i<8;i++) { k1[i]=h*k1[i]; coor_plus_halfk1[i]=coor[i]+0.5*k1[i]; sixth_k1[i]=1./6.*k1[i]; } if (diff(coor_plus_halfk1,cst,k2)) return 2; if ( (thetacompare < thetatol) && (fabs(k2[5]) > derlim || fabs(k2[6]) > derlim) ){ return 1; } for (int i=0;i<8;i++) { k2[i]=h*k2[i]; coor_plus_halfk2[i]=coor[i]+0.5*k2[i]; third_k2[i]=1./3.*k2[i]; } if (diff(coor_plus_halfk2,cst,k3)) return 2 ; if ( (thetacompare < thetatol) && (fabs(k3[5]) > derlim || fabs(k3[6]) > derlim) ){ return 1; } for (int i=0;i<8;i++) { k3[i]=h*k3[i]; coor_plus_k3[i]=coor[i]+k3[i]; third_k3[i]=1./3.*k3[i]; } if (diff(coor_plus_k3,cst,k4)) return 2 ; if ( (thetacompare < thetatol) && (fabs(k4[5]) > derlim || fabs(k4[6]) > derlim) ){ return 1; } for (int i=0;i<8;i++) { k4[i]=h*k4[i]; sixth_k4[i]=1./6.*k4[i]; } for (int i=0;i<8;i++) res[i]=coor[i]+sixth_k1[i]+third_k2[i]+third_k3[i]+sixth_k4[i]; return 0; } int KerrBL::myrk4_adaptive(Worldline * line, state_t const &coordin, double lastnorm, double normref, state_t &coordout1, double h0, double& h1, double h1max) const { if (generic_integrator_) return Generic::myrk4_adaptive(line, coordin, lastnorm, normref, coordout1, h0, h1, h1max); /*Switch BL -> principal momenta*/ double coor[8], coor1[8], cstest[5], coorhalf[8], coor2[8], coor1bis[8], mycoor[8], delta1[8]; double const * const cst = line -> getCst(); MakeMomentum(coordin.data(),cst,coor); double delta0[8], dcoor[8]; double delta0min=1e-15, eps=0.0001, S=0.9, errmin=1e-6, hbis=0.5*h0, err, diffr, diffth, normtemp, cstol_gen=1e-3, cstol_hor=1e-2, cstol, div, QCarter; int countbis=0, countbislim=50, zaxis=0; // for z-axis problem in myrk4 //int norm1=0, normhalf=0, norm2=0, rk1=0, rkhalf=0, rk2=0, update, makerr=0.; int norm1=0, rk1=0, rkhalf=0, rk2=0, update, makerr=0; double a=spin_, factrtol=3., rtol=factrtol*(1.+sqrt(1.-a*a)), rlimitol=10.; h1max=deltaMax(coor, h1max); if (coor[1] < rtol) cstol = cstol_hor; // for tests of cst of motion conservation; don't ask too much // if near horizon... else cstol = cstol_gen; //NB: following test ok only if theta is 0-pi // coz -pi/2[pi]=-pi/2 ... /*if (fabs(fmod(coor[2]+M_PI/2, M_PI)-M_PI/2) < GYOTO_MIN_THETA) { cout << "in kerr th= " << coor[2] << endl; GYOTO_WARNING << "Too close to Z axis: stopping integration"<< endl; return 1; }*/ //Fred: Test removed Feb 2013, seems not necessary if (diff(coor,cst,dcoor)) return 1 ; for (int i = 0;i<8;i++) delta0[i]=delta0min+eps*(fabs(h0*dcoor[i])); while (1){ err=0.; countbis++; //*** z-axis problem *** /* This while loop tests whether theta is too close to zero (coordinate singularity in BL) and whether we are outside horizon. */ double hinit=h0, steptol=1e3; while ( (( (rk1 =myrk4(coor,cst,h0,coor1) ) == 1) || (rk1 == 2)) || (( (rkhalf=myrk4(coor,cst,hbis,coorhalf) ) == 1) || (rkhalf == 2)) || (( (rk2 =myrk4(coorhalf,cst,hbis,coor2)) == 1) || (rk2 == 2)) ) { if (rk1==2 || rkhalf==2 || rk2==2){ //if any of rks is 2, stop integration, we're inside horizon return 1; } zaxis=1; h0*=1.1; hbis*=1.1; GYOTO_INFO << "NOTE: Passing close to z-axis at theta= " << coor[2] << " and r= " << coor[1] << ", jumping ahead with h0= " << h0 << endl; if (h0/hinit>steptol){ GYOTO_SEVERE << "In KerrBL::myrk4_adaptive: " "stop integration because unsolved z-axis problem" << endl; return 1; } } if (countbis > countbislim && zaxis) { // If the "jumping ahead" trick above does not work and leads to // infinite jumping ahead behavior (should never happen of // course) GYOTO_INFO << "WARNING: " << endl << "in KerrBL.C couldn't solve z-axis problem ; stopping..." << endl; return 1; } //*** Error determination: *** for (int i = 0;i<8;i++){ delta1[i]=coor2[i]-coor1[i]; if ((err1) { h0=S*h0*pow(err,-0.25); hbis=0.5*h0; }else{ h1=(err > errmin ? S*h0*pow(err,-0.2) : 4.*h0);//pour éviter les explosions if (fabs(h1)0)?delta_min_:-delta_min_; } if (fabs(h1)>h1max) h1=(h1>0.)?h1max:-h1max; //*** Normalizing *** update=1; norm1=CheckCons(coor1,cst,coor1bis); // pr and ptheta relative difference (NB: only pr and ptheta are modified in CheckCons) if (coor1[5]) diffr = fabs(coor1[5]-coor1bis[5])/fabs(coor1[5]); else if (coor1bis[5]) diffr = fabs(coor1[5]-coor1bis[5])/fabs(coor1[5]); else diffr = 0.; if (coor1[6]) diffth = fabs(coor1[6]-coor1bis[6])/fabs(coor1[6]); else if (coor1bis[6]) diffth = fabs(coor1[6]-coor1bis[6])/fabs(coor1[6]); else diffth = 0.; if ((diffr > difftol_ || diffth > difftol_)) { // don't update coordinates if the relative differences are // more than 1% --> consequence = norm and Carter cst // won't be exactly the same for this step --> below, // test to be sure they're not "too much violated"; NB: // if this test is not performed, the "corrected" // worldline can diverge from the "true" one after a long // time of integration. update=0; MakeCoord(coor1,cst,mycoor); normtemp = ScalarProd(mycoor, mycoor+4, mycoor+4); computeCst(mycoor,cstest); if (cst[3]>cstol) { QCarter=cst[3]; div = cst[4]; // cst[4] = cst[3]==0? 1. : 1./cst[3] } else { QCarter=0.; div=1.; } if ( fabs(normtemp+cst[0])>cstol ) makerr=1; // cst[0] == -real_norm if ( makerr && (fabs(cstest[3]-QCarter)*div>cstol) ) makerr=3; if ( fabs(cstest[3]-QCarter)*div>cstol ) makerr=2; if (makerr) { if (verbose() >= GYOTO_SEVERE_VERBOSITY) { cerr << "WARNING: at r=" << coordin[1] << endl; if (makerr==1) cerr << "Real norm, current norm= " << (cst[0]?-1.:0.) << " " << normtemp << endl; else if (makerr==2){ cerr << "Carter cst error= (" << QCarter << "-" << cstest[3] << ")*" << div << "*100.= " << fabs(QCarter-cstest[3])*div*100. << " %, cstol=" << cstol << endl; }else{ cerr << "Real norm, current norm= " << (cst[0]?-1.:0.) << " " << normtemp << endl << "Carter cst error= (" << QCarter << "-" << cstest[3] << ")*" << div << "*100.= " << fabs(QCarter-cstest[3])*div*100. << " %" << endl; } } if (coor1[1] to be investigated" << ", or maybe increase parameter cstol" << "in KerrBL.C" << endl; } } } //Update coord if (update && !norm1){ // norm1=1 if impossible to normalize in CheckCons due to z-axis pb for (int i=0;i<8;i++) coor1[i]=coor1bis[i]; } // cout << "KerrBL Used h0= " << h0 << endl; //*** Switch principal momenta -> BL: *** MakeCoord(coor1,cst,coordout1.data()); break; } //err>1 if-loop end } // while loop end //line -> checkPhiTheta(coordout1); //for some reason the above line leads to infinite iteration with fixed star return 0; } int KerrBL::CheckCons(const double coor_init[8], const double cst[5], double coor_fin[8]) const { /* Ensures that the cst of motion are conserved. E and L always are (see diff). But Q and norm may not be. */ double mycoor[8]; //int thetalert=0; /* *** From momenta to normal BL coordinates *** */ MakeCoord(coor_init,cst,mycoor); //Computes mycoor=[t,r,theta,phi,tdot,rdot,thetadot,phidot] from coor_init=[t,r,theta,phi,pt=-E,pr,ptheta,pphi=L] and cst /* *** Carter constant's check *** As the equations of motion (cf diff) are independent of Q, it is necessary to check whether this constant is conserved. */ double costh, sinth; sincos(mycoor[2], &sinth, &costh); double sinthm2=1./(sinth*sinth), costh2=costh*costh; double mu=cst[0], EE=cst[1], LL=cst[2], QQ=cst[3], QQm1=cst[4]; double argsqrt, limarg=1e-6*QQ, limargbis=0.1*QQ; double mu2=mu*mu, EE2=EE*EE, LL2=LL*LL; double Sigma=mycoor[1]*mycoor[1]+a2_*costh2; double Sigma2=Sigma*Sigma; double Qtest= Sigma2*mycoor[6]*mycoor[6]+costh2*(a2_*(mu2-EE2)+LL2*sinthm2); //this should be equal to constant QQ int thdotpos=1; # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "mu="<limarg) {//if it is <0 and "big", two cases: either we are too close to z-axis which causes theta coordinate to behave badly (then return 1: "z-axis problem" in RK4 adaptive); or Error if (fabs(fmod(coor_init[2]+M_PI/2, M_PI)-M_PI/2) < M_PI/50.) { return 1; // z-axis problem }else{ if (fabs(argsqrt)>limargbis) GYOTO_ERROR("In KerrBL::CheckCons Impossible to determine thetadot; " "maybe try to increase parameter limarg"); GYOTO_INFO << "KerrBL::CheckCons argsqrt= " << argsqrt << " at theta= " << coor_init[2] << ". Putting it to 0..." << endl; argsqrt=0.; } } mycoor[6]=sqrt(argsqrt)/Sigma;//update thetadot to impose QQ constant if (!thdotpos) mycoor[6]*=-1.; } //*** Normalizing 4v: *** Normalize4v(mycoor,mu); //*** Back to generalized momenta: *** MakeMomentum(mycoor,cst,coor_fin); return 0; } void KerrBL::Normalize4v(double coord[8], const double part_mass) const { /* Changes rdot to allow norm conservation. */ double aa=spin_; double rhor=1.+sqrt(1.-aa*aa); double g[4][4]; gmunu(g, coord); double gtt=g[0][0], gtph=g[0][3], grr=g[1][1], gthth=g[2][2], gphph=g[3][3]; double rr=coord[1], tdot=coord[4], rdot=coord[5], thdot=coord[6], phdot=coord[7]; int valuepos;//to preserve rdot sign if (rdot>0.) valuepos=1; else valuepos=0; if (part_mass==0.){// *** ZERO - NORM CASE *** double argrac=-(gtt*tdot*tdot+2.*gtph*phdot*tdot+gthth*thdot*thdot+gphph*phdot*phdot)/grr;//rdot should be equal to the sqrt of this quantity double arglim=1e-4;//generates lots of warning with argrac /approx 1e-5... if (argrac<0 && fabs(argrac) put it to 0 argrac=0.; } if (argrac<0 && fabs(argrac)>arglim) { if (rr/rhor < 2.) {//A AFFINER?? //if the quantity is <0 and "big", but we are close to horizon --> put it to zero with Warning message if (verbose() >= GYOTO_WARNING_VERBOSITY) { GYOTO_WARNING << "0-NORM CLOSE TO HORIZON : " << "in KerrBL::Normalize4v impossible to normalize 0-mass " << "particule next to horizon. Putting argrac to 0. " << "Effective value of argrac= " << argrac << endl << "with coord= "; for (int myind=0;myind<8;myind++) cerr << coord[myind] << " "; cerr << endl; } argrac=0.; }else{//if the quantity is <0 and "big", and we are not close to horizon --> error GYOTO_ERROR( "In KerrBL::Normalize4v impossible to normalize 0-mass particle outside horizon!" ); } } coord[5]=sqrt(argrac);//update rdot if (!valuepos) coord[5]*=-1.; }else if (part_mass>0.){ // *** -1 - NORM CASE *** double argrac=-(1.+gtt*tdot*tdot+2.*gtph*phdot*tdot+gthth*thdot*thdot+gphph*phdot*phdot)/grr; double arglim=1e-7; GYOTO_DEBUG_ARRAY(coord, 8); GYOTO_DEBUG_EXPR(argrac); GYOTO_DEBUG_EXPR(rr/rhor); if (argrac<0 && fabs(argrac)arglim) { if (rr/rhor < 2.) {//A AFFINER?? if (verbose()>=GYOTO_WARNING_VERBOSITY) { cerr << "WARNING -1 - NORM CLOSE TO HORIZON : " << "in KerrBL::Normalize4v impossible to normalize massive " << "particle next to horizon. Putting argrac to 0. " << "Effective value of argrac= " << argrac << endl << "with coord= "; for (int myind=0;myind<8;myind++) cerr << coord[myind] << " "; cerr << endl; } argrac=0.; }else{ GYOTO_ERROR( "In KerrBL::Normalize4v impossible to normalize massive particule outside horizon!" ); } } coord[5]=sqrt(argrac);//update rdot if (!valuepos) coord[5]*=-1.; }else{ GYOTO_ERROR("In KerrBL::Normalize4v: negative mass!"); } } void KerrBL::MakeCoord(const double coordin[8], const double cst[5], double coord[8]) const { double tt=coordin[0], rr = coordin[1], theta=coordin[2], phi=coordin[3], pr=coordin[5], ptheta=coordin[6]; double g[4][4]; gmunu(g, coordin); double gtt=g[0][0], gtp=g[0][3], gpp =g[3][3], det=gtp*gtp-gtt*gpp, detm1=1./det, guprr=gmunu_up(coordin,1,1), gupthth=gmunu_up(coordin,2,2); double EE=cst[1], LL=cst[2]; double rdot=guprr*pr, thetadot = gupthth*ptheta, phidot=-(gtt*LL+gtp*EE)*detm1, tdot=(gtp*LL+gpp*EE)*detm1; coord[0]=tt;coord[1]=rr;coord[2]=theta;coord[3]=phi;coord[4]=tdot; coord[5]=rdot;coord[6]=thetadot;coord[7]=phidot; } void KerrBL::MakeMomentum(const double coord[8], const double cst[5], double coordout[8]) const{ double EE=cst[1], LL=cst[2]; double tt=coord[0], rr = coord[1], theta=coord[2], phi=coord[3], rdot=coord[5], thetadot=coord[6]; double g[4][4]; gmunu(g, coord); double pr=g[1][1]*rdot, ptheta=g[2][2]*thetadot; coordout[0]=tt;coordout[1]=rr;coordout[2]=theta; coordout[3]=phi;coordout[4]=-EE;coordout[5]=pr; coordout[6]=ptheta;coordout[7]=LL; } void KerrBL::nullifyCoord(double coord[8]) const { double tdot2; nullifyCoord(coord,tdot2); } void KerrBL::nullifyCoord(double coord[4], double & tdot2) const { int i; double a, b=0., c=0.; double g[4][4]; gmunu(g, coord); a=g[0][0]; b=g[0][3]*coord[7]; for (i=1;i<=3;++i){ c+=g[i][i]*coord[4+i]*coord[4+i]; } double sDelta=sqrt(b*b-a*c), am1=1./a; tdot2=(-b+sDelta)*am1; coord[4]=(-b-sDelta)*am1; } void KerrBL::computeCst(const double coord[8], double cst[5]) const{ double norm=ScalarProd(coord, coord+4, coord+4); double mu;//Particule mass: 0 or 1 if (fabs(norm) setCst(cst,5); } void KerrBL::observerTetrad(double const pos[4], double fourvel[4], double screen1[4], double screen2[4], double screen3[4]) const{ // following Krolik & Hawley 2004 // https://iopscience.iop.org/article/10.1086/427932/fulltext/ // First make sure FourVel is normalized normalizeFourVel(pos, fourvel); double g[4][4]; gmunu(g, pos); double gtt = g[0][0], grr = g[1][1], gthth = g[2][2], gpp = g[3][3], gtp = g[0][3], rho2 = gtp*gtp-gtt*gpp; double cst; double const * const uu = fourvel; // alias for fourvel double ud[4]; dualOneForm(pos, uu, ud); // down form // screen1 is ephi cst = -1./sqrt(-(uu[0]*ud[0]+uu[3]*ud[3])*rho2); screen1[0] = cst*ud[3]; screen1[1] = 0.; screen1[2] = 0.; screen1[3] = -cst*ud[0]; // screen2 is etheta cst = -1./sqrt(gthth*(1.+ud[2]*uu[2])); screen2[0] = cst*uu[0]*ud[2]; screen2[1] = cst*uu[1]*ud[2]; screen2[2] = cst*(1.+uu[2]*ud[2]); screen2[3] = cst*uu[3]*ud[2]; // screen3 is er cst = -1./sqrt(-grr*(1+ud[2]*uu[2])*(uu[0]*ud[0]+uu[3]*ud[3])); screen3[0] = cst*uu[0]*ud[1]; screen3[1] = -cst*(uu[0]*ud[0]+uu[3]*ud[3]); screen3[2] = 0.; screen3[3] = cst*uu[3]*ud[1]; } Gyoto-2.0.2/lib/KerrKS.C000066400000000000000000000211011455254334400146330ustar00rootroot00000000000000/* Copyright 2011-2015 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrKS.h" #include "GyotoWorldline.h" #include "GyotoError.h" #include "GyotoProperty.h" #include #include #include #include #include #include #include using namespace std ; using namespace Gyoto ; using namespace Gyoto::Metric ; GYOTO_PROPERTY_START(KerrKS, "Metric around a rotating black-hole, in Cartesian Kerr-Schild coordinates.") GYOTO_PROPERTY_DOUBLE(KerrKS, Spin, spin, "Spin parameter (adimensioned, 0).") GYOTO_PROPERTY_DOUBLE(KerrKS, HorizonSecurity, horizonSecurity, "Thickness of sink layer around horizon (geometrical units, 0.01).") GYOTO_PROPERTY_END(KerrKS, Generic::properties) KerrKS::KerrKS(): Generic(GYOTO_COORDKIND_CARTESIAN, "KerrKS"), spin_(0.), a2_(0.), rsink_(2.+GYOTO_KERR_HORIZON_SECURITY), drhor_(GYOTO_KERR_HORIZON_SECURITY) {} KerrKS * KerrKS::clone () const { return new KerrKS(*this); } // Mutators void KerrKS::spin(const double a) { spin_=a; a2_=spin_*spin_; rsink_=1.+sqrt(1.-a2_)+drhor_; tellListeners(); } void KerrKS::horizonSecurity(const double drhor) { drhor_=drhor; rsink_=1.+sqrt(1.-a2_)+drhor_; tellListeners(); } // Accessors double KerrKS::spin() const { return spin_ ; } double KerrKS::horizonSecurity() const {return drhor_; } int KerrKS::setParameter(std::string name, std::string content, std::string unit) { if (name=="GenericIntegrator") { GYOTO_WARNING << "Specifying GenericIntegrator is useless and obsolete\n"; } else if (name=="SpecificIntegrator") { GYOTO_SEVERE << "SpecificIntegrator is not supported anymore\n"; } else return Metric::Generic::setParameter(name, content, unit); return 0; } void KerrKS::gmunu(double g[4][4], const double * pos) const { double x=pos[1], y=pos[2], z=pos[3], x2=x*x, y2=y*y, z2=z*z, tau=x2+y2+z2-a2_, r2=0.5*(tau+sqrt(tau*tau+4*a2_*z2)), r=sqrt(r2), r3=r2*r, r4=r2*r2, r2_a2=r2+a2_, f=2.*r3/(r4+a2_*z2); double k[4]= { 1., (r*x+spin_*y)/r2_a2, (r*y-spin_*x)/r2_a2, z/r }; for (int mu=0; mu<4; ++mu) for (int nu=0; nu<=mu;++nu) g[mu][nu]=g[nu][mu]=f*k[mu]*k[nu]; g[0][0] -= 1.; for (int mu=1; mu<4; ++mu) g[mu][mu]+=1.; } // The thee macros below are used two or three times each to optimally implement // gmunu_up, jacobian, and gmunu_up_and_jacobian // intermediate results #define _COMMON_TERMS \ double \ x=pos[1], y=pos[2], z=pos[3], \ x2=x*x, y2=y*y, z2=z*z, a2z2=a2_*z2, \ x2_y2_z2=x2+y2+z2, \ tau=x2_y2_z2-a2_, \ rho2=tau*tau+4.*a2z2, rho=sqrt(rho2), \ r2=0.5*(tau+rho), \ r=sqrt(r2), r3=r2*r, r4=r2*r2, r2_a2=r2+a2_, \ rx_ay=r*x+spin_*y, ry_ax=r*y-spin_*x, \ f=2.*r3/(r4+a2_*z2);//, fr2=f*r2; // gmunu_up #define _FILL_GMUNU_UP \ { \ double frac = f/ \ (-fr2*(rx_ay*rx_ay + ry_ax*ry_ax)+ r2_a2*r2_a2 *(-r2 +fr2 -f*z2));\ double kup[4]= \ { \ -r*r2_a2, \ r*rx_ay, \ r*ry_ax, \ r2_a2*z \ }; \ for (mu=0; mu<4; ++mu) { \ for (nu=0; nu<=mu;++nu) { \ gup[mu][nu]=gup[nu][mu]=frac*kup[mu]*kup[nu]; \ } \ } \ gup[0][0] -= 1.; \ for (mu=1; mu<4; ++mu) gup[mu][mu] += 1.; \ } // jacobian #define _FILL_JACOBIAN \ { \ double k[4]= \ { \ 1., \ rx_ay/r2_a2, \ ry_ax/r2_a2, \ z/r \ }; \ double \ a4=a2_*a2_, \ r4_a2z2=r4+a2z2, \ temp=-(2.*r3*(r4-3.*a2z2))/(r4_a2z2*r4_a2z2*rho), \ temp2=(a4+2.*r2*x2_y2_z2 - a2_* (x2_y2_z2 - 4.* z2 + rho)); \ double df[4]= \ { \ 0., \ x*temp, \ y*temp, \ -((4.*r*z*(2.* a4*a2_ + (a2_ + 2.*r2)*x2_y2_z2*x2_y2_z2 + \ a4*(-3.*x2 - 3.*y2 + z2 - 2.*rho) + \ a2_*(x2 + y2 - z2)*rho))/(rho*temp2*temp2)) \ }; \ double \ frac1=1./(r2_a2*r2_a2*rho), \ frac2=z/(r2_a2*r*rho), \ frac3=-z/(r*rho); \ double dk[4][4]= \ { \ /* d/dt */ \ {0., 0., 0., 0.}, \ /* d/dx */ \ { \ 0., \ (r3*(x2+rho)-rx_ay*x*(x2+y2+z2+rho)+a2_*(rx_ay*x+r*(x2+rho)))*frac1, \ (x*(r3*y+a2_*(ry_ax+r*y)-ry_ax*(x2+y2+z2))-(spin_*r2_a2+ry_ax*x)*rho)*frac1, \ x*frac3 \ }, \ /* d/dy */ \ { \ 0., \ (a2_*(rx_ay+r*x)*y+r2_a2*spin_*rho-y*(-r3*x+rx_ay*(x2+y2+z2+rho)))*frac1, \ (r3*(y2+rho)-ry_ax*y*(x2+y2+z2+rho)+a2_*(ry_ax*y+r*(y2+rho)))*frac1, \ y*frac3 \ }, \ /* d/dz */ \ { \ 0., \ ((a2_-r2)*x-2*spin_*r*y)*frac2, \ ((a2_-r2)*y+2*spin_*r*x)*frac2, \ (2.*r2- (z2*(a2_ + x2 + y2 + z2 + rho))/rho)/(2.*r3) \ } \ }; \ for(a=0; a<4; ++a) \ for (mu=0; mu<4; ++mu) \ for (nu=0; nu<=mu;++nu) \ jac[a][mu][nu]=jac[a][nu][mu]=df[a]*k[mu]*k[nu]+f*dk[a][mu]*k[nu]+f*k[mu]*dk[a][nu]; \ } void KerrKS::gmunu_up(double gup[4][4], const double * pos) const { size_t mu, nu; _COMMON_TERMS; double fr2=f*r2; _FILL_GMUNU_UP; } void KerrKS::jacobian(double jac[4][4][4], const double * pos) const { size_t a, mu, nu, i; _COMMON_TERMS; _FILL_JACOBIAN; } void KerrKS::gmunu_up_and_jacobian(double gup[4][4], double jac[4][4][4], const double * pos) const { size_t a, mu, nu, i; _COMMON_TERMS; double fr2=f*r2; _FILL_GMUNU_UP; _FILL_JACOBIAN; } double KerrKS::gmunu(const double * pos, int mu, int nu) const { if (mu<0 || nu<0 || mu>3 || nu>3) GYOTO_ERROR ("KerrKS::gmunu: incorrect value for mu or nu"); //double x=pos[0], y=pos[1], z=pos[2]; double x=pos[1], y=pos[2], z=pos[3]; double x2=x*x; double y2=y*y; double z2=z*z; double temp=x2+y2+z2-a2_; double rr=sqrt(0.5*(temp+sqrt(temp*temp+4*a2_*z2))); double r2=rr*rr; double r3=rr*r2; double r4=rr*r3; double fact=2.*r3/(r4+a2_*z2); double res=0.; if (mu==nu) { if ((mu==0) && (nu==0)) res=fact-1.; if ((mu==1) && (nu==1)) res= 1.+fact*pow((rr*x+spin_*y)/(r2+a2_),2); if ((mu==2) && (nu==2)) res= 1.+fact*pow((rr*y-spin_*x)/(r2+a2_),2); if ((mu==3) && (nu==3)) res= 1.+fact*z2/r2; } if (nu0 && Tdot>0); return (r. */ // include Metric headers #include "GyotoRotStar3_1.h" #include "GyotoNumericalMetricLorene.h" // include Astrobj headers #include "GyotoNeutronStar.h" #include "GyotoNeutronStarAnalyticEmission.h" #include "GyotoNeutronStarModelAtmosphere.h" /* namespace Gyoto { void __StdLibInit(); } */ extern "C" void __GyotoloreneInit() { Gyoto::Metric::Register("RotStar3_1", &(Gyoto::Metric::Subcontractor )); Gyoto::Metric::Register("NumericalMetricLorene", &(Gyoto::Metric::Subcontractor )); Gyoto::Astrobj::Register("NeutronStar", &(Gyoto::Astrobj::Subcontractor )); Gyoto::Astrobj::Register("NeutronStarAnalyticEmission", &(Gyoto::Astrobj::Subcontractor )); Gyoto::Astrobj::Register("NeutronStarModelAtmosphere", &(Gyoto::Astrobj::Subcontractor )); } Gyoto-2.0.2/lib/Makefile.am000066400000000000000000000062151455254334400154330ustar00rootroot00000000000000ACLOCAL_AMFLAGS = -I m4 AM_CPPFLAGS = -I@top_srcdir@/include $(XERCES_CFLAGS) $(UDUNITS_CFLAGS) $(BOOST_CPPFLAGS) $(CFITSIO_CFLAGS) $(ARBLIB_CFLAGS) $(AEAE_CFLAGS) $(EIGEN_CFLAGS) AM_LDFLAGS = $(XERCES_LIBS) -export-dynamic $(PTHREAD_LIBS) \ $(UDUNITS_LIBS) $(CFITSIO_LIBS) $(ARBLIB_LIBS) AM_CXXFLAGS = $(PTHREAD_CFLAGS) -DGYOTO_PKGLIBDIR=\"${pkglibdir}\" if HAVE_LOCALPKGLIBDIR AM_CXXFLAGS += -DGYOTO_LOCALPKGLIBDIR=\"${localpkglibdir}\" endif if HAVE_MPI AM_LDFLAGS += $(BOOST_MPI_LDFLAGS) $(BOOST_MPI_LIBS) \ $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) endif # HEADERS: where they are, where to install them library_includedir=$(includedir)/Gyoto library_include_HEADERS=$(top_srcdir)/include/*.h $(top_builddir)/include/*.h # MAIN LIBRARY lib_LTLIBRARIES = libgyoto@FEATURES@.la libgyoto@FEATURES@_la_SOURCES = \ Value.C Property.C Object.C \ Astrobj.C Factory.C Register.C SmartPointer.C Utils.C Metric.C \ WIP.C Worldline.C Photon.C Scenery.C \ WorldlineIntegState.C Error.C Screen.C Spectrum.C \ Spectrometer.C ComplexSpectrometer.C UniformSpectrometer.C \ StandardAstrobj.C ThinDisk.C Converters.C Functors.C Hooks.C \ GridData2D.C FitsRW.C libgyoto@FEATURES@_la_LIBS = $(XERCES_LIBS) libgyoto@FEATURES@_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(VERSINFO) # STANDARD PLUGIN soverdir=$(pkglibdir)/@sovers@ sover_LTLIBRARIES = libgyoto-stdplug.la libgyoto_stdplug_la_CPPFLAGS = $(AM_CPPFLAGS) -DGYOTO_PLUGIN=stdplug libgyoto_stdplug_la_SOURCES = KerrBL.C KerrKS.C Minkowski.C \ ChernSimons.C RezzollaZhidenko.C Hayward.C SchwarzschildHarmonic.C \ Star.C StarTrace.C FixedStar.C InflateStar.C \ Torus.C OscilTorus.C \ PowerLawSpectrum.C BlackBodySpectrum.C \ ThermalBremsstrahlungSpectrum.C \ ThermalSynchrotronSpectrum.C \ PowerLawSynchrotronSpectrum.C KappaDistributionSynchrotronSpectrum.C \ ComplexAstrobj.C UniformSphere.C \ ComplexMetric.C Shift.C PageThorneDisk.C \ ThinDiskPL.C PolishDoughnut.C ThinDiskIronLine.C\ DeformedTorus.C EquatorialHotSpot.C Jet.C Blob.C Plasmoid.C FreeStar.C ThickDisk.C\ ThinDiskProfile.C SphericalAccretion.C StdPlug.C # those files need cfitsio for some functionality cfitsio_stdplug_sources = PatternDisk.C PatternDiskBB.C \ DynamicalDisk.C DynamicalDiskBolometric.C \ Disk3D.C DynamicalDisk3D.C DirectionalDisk.C XillverReflection.C \ FlaredDiskSynchrotron.C ThinDiskGridIntensity.C EXTRA_libgyoto_stdplug_la_SOURCES = $(cfitsio_stdplug_sources) libgyoto_stdplug_la_SOURCES += $(cfitsio_stdplug_sources) libgyoto_stdplug_la_LDFLAGS = -module -export-dynamic $(AM_LDFLAGS) -avoid-version # LORENE PLUGIN if HAVE_LORENE sover_LTLIBRARIES += libgyoto-lorene.la endif libgyoto_lorene_la_SOURCES = RotStar3_1.C NumericalMetricLorene.C \ NeutronStar.C NeutronStarAnalyticEmission.C \ NeutronStarModelAtmosphere.C LorenePlug.C libgyoto_lorene_la_LDFLAGS = -module -export-dynamic $(LORENELDFLAGS) $(AM_LDFLAGS) -avoid-version libgyoto_lorene_la_CPPFLAGS = $(AM_CPPFLAGS) $(LORENECPPFLAGS) -DGYOTO_PLUGIN=lorene # pkg-config file pkgconfigdir=$(libdir)/pkgconfig pkgconfig_DATA=gyoto.pc uninstall-hook: -rmdir $(DESTDIR)$(soverdir) -rmdir $(DESTDIR)$(pkglibdir) -rmdir $(DESTDIR)$(library_includedir) Gyoto-2.0.2/lib/Makefile.in000066400000000000000000003541601455254334400154510ustar00rootroot00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ 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@ target_triplet = @target@ @HAVE_LOCALPKGLIBDIR_TRUE@am__append_1 = -DGYOTO_LOCALPKGLIBDIR=\"${localpkglibdir}\" @HAVE_MPI_TRUE@am__append_2 = $(BOOST_MPI_LDFLAGS) $(BOOST_MPI_LIBS) \ @HAVE_MPI_TRUE@ $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) # LORENE PLUGIN @HAVE_LORENE_TRUE@am__append_3 = libgyoto-lorene.la subdir = lib ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_append_compile_flags.m4 \ $(top_srcdir)/m4/ax_append_flag.m4 \ $(top_srcdir)/m4/ax_append_link_flags.m4 \ $(top_srcdir)/m4/ax_check_compile_flag.m4 \ $(top_srcdir)/m4/ax_check_link_flag.m4 \ $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.m4 \ $(top_srcdir)/m4/ax_pkg_swig.m4 $(top_srcdir)/m4/ax_pthread.m4 \ $(top_srcdir)/m4/ax_require_defined.m4 \ $(top_srcdir)/m4/boost.m4 $(top_srcdir)/m4/gyoto.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)/m4/python.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(library_include_HEADERS) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h \ $(top_builddir)/include/GyotoConfig.h CONFIG_CLEAN_FILES = gyoto.pc gyoto-uninstalled.pc CONFIG_CLEAN_VPATH_FILES = 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)$(libdir)" "$(DESTDIR)$(soverdir)" \ "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(library_includedir)" LTLIBRARIES = $(lib_LTLIBRARIES) $(sover_LTLIBRARIES) libgyoto_lorene_la_LIBADD = am_libgyoto_lorene_la_OBJECTS = libgyoto_lorene_la-RotStar3_1.lo \ libgyoto_lorene_la-NumericalMetricLorene.lo \ libgyoto_lorene_la-NeutronStar.lo \ libgyoto_lorene_la-NeutronStarAnalyticEmission.lo \ libgyoto_lorene_la-NeutronStarModelAtmosphere.lo \ libgyoto_lorene_la-LorenePlug.lo libgyoto_lorene_la_OBJECTS = $(am_libgyoto_lorene_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libgyoto_lorene_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(AM_CXXFLAGS) $(CXXFLAGS) $(libgyoto_lorene_la_LDFLAGS) \ $(LDFLAGS) -o $@ @HAVE_LORENE_TRUE@am_libgyoto_lorene_la_rpath = -rpath $(soverdir) libgyoto_stdplug_la_LIBADD = am__objects_1 = libgyoto_stdplug_la-PatternDisk.lo \ libgyoto_stdplug_la-PatternDiskBB.lo \ libgyoto_stdplug_la-DynamicalDisk.lo \ libgyoto_stdplug_la-DynamicalDiskBolometric.lo \ libgyoto_stdplug_la-Disk3D.lo \ libgyoto_stdplug_la-DynamicalDisk3D.lo \ libgyoto_stdplug_la-DirectionalDisk.lo \ libgyoto_stdplug_la-XillverReflection.lo \ libgyoto_stdplug_la-FlaredDiskSynchrotron.lo \ libgyoto_stdplug_la-ThinDiskGridIntensity.lo am_libgyoto_stdplug_la_OBJECTS = libgyoto_stdplug_la-KerrBL.lo \ libgyoto_stdplug_la-KerrKS.lo libgyoto_stdplug_la-Minkowski.lo \ libgyoto_stdplug_la-ChernSimons.lo \ libgyoto_stdplug_la-RezzollaZhidenko.lo \ libgyoto_stdplug_la-Hayward.lo \ libgyoto_stdplug_la-SchwarzschildHarmonic.lo \ libgyoto_stdplug_la-Star.lo libgyoto_stdplug_la-StarTrace.lo \ libgyoto_stdplug_la-FixedStar.lo \ libgyoto_stdplug_la-InflateStar.lo \ libgyoto_stdplug_la-Torus.lo libgyoto_stdplug_la-OscilTorus.lo \ libgyoto_stdplug_la-PowerLawSpectrum.lo \ libgyoto_stdplug_la-BlackBodySpectrum.lo \ libgyoto_stdplug_la-ThermalBremsstrahlungSpectrum.lo \ libgyoto_stdplug_la-ThermalSynchrotronSpectrum.lo \ libgyoto_stdplug_la-PowerLawSynchrotronSpectrum.lo \ libgyoto_stdplug_la-KappaDistributionSynchrotronSpectrum.lo \ libgyoto_stdplug_la-ComplexAstrobj.lo \ libgyoto_stdplug_la-UniformSphere.lo \ libgyoto_stdplug_la-ComplexMetric.lo \ libgyoto_stdplug_la-Shift.lo \ libgyoto_stdplug_la-PageThorneDisk.lo \ libgyoto_stdplug_la-ThinDiskPL.lo \ libgyoto_stdplug_la-PolishDoughnut.lo \ libgyoto_stdplug_la-ThinDiskIronLine.lo \ libgyoto_stdplug_la-DeformedTorus.lo \ libgyoto_stdplug_la-EquatorialHotSpot.lo \ libgyoto_stdplug_la-Jet.lo libgyoto_stdplug_la-Blob.lo \ libgyoto_stdplug_la-Plasmoid.lo \ libgyoto_stdplug_la-FreeStar.lo \ libgyoto_stdplug_la-ThickDisk.lo \ libgyoto_stdplug_la-ThinDiskProfile.lo \ libgyoto_stdplug_la-SphericalAccretion.lo \ libgyoto_stdplug_la-StdPlug.lo $(am__objects_1) libgyoto_stdplug_la_OBJECTS = $(am_libgyoto_stdplug_la_OBJECTS) libgyoto_stdplug_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(AM_CXXFLAGS) $(CXXFLAGS) $(libgyoto_stdplug_la_LDFLAGS) \ $(LDFLAGS) -o $@ libgyoto@FEATURES@_la_LIBADD = am_libgyoto@FEATURES@_la_OBJECTS = Value.lo Property.lo Object.lo \ Astrobj.lo Factory.lo Register.lo SmartPointer.lo Utils.lo \ Metric.lo WIP.lo Worldline.lo Photon.lo Scenery.lo \ WorldlineIntegState.lo Error.lo Screen.lo Spectrum.lo \ Spectrometer.lo ComplexSpectrometer.lo UniformSpectrometer.lo \ StandardAstrobj.lo ThinDisk.lo Converters.lo Functors.lo \ Hooks.lo GridData2D.lo FitsRW.lo libgyoto@FEATURES@_la_OBJECTS = $(am_libgyoto@FEATURES@_la_OBJECTS) libgyoto@FEATURES@_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(AM_CXXFLAGS) $(CXXFLAGS) $(libgyoto@FEATURES@_la_LDFLAGS) \ $(LDFLAGS) -o $@ 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 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/include depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/Astrobj.Plo \ ./$(DEPDIR)/ComplexSpectrometer.Plo ./$(DEPDIR)/Converters.Plo \ ./$(DEPDIR)/Error.Plo ./$(DEPDIR)/Factory.Plo \ ./$(DEPDIR)/FitsRW.Plo ./$(DEPDIR)/Functors.Plo \ ./$(DEPDIR)/GridData2D.Plo ./$(DEPDIR)/Hooks.Plo \ ./$(DEPDIR)/Metric.Plo ./$(DEPDIR)/Object.Plo \ ./$(DEPDIR)/Photon.Plo ./$(DEPDIR)/Property.Plo \ ./$(DEPDIR)/Register.Plo ./$(DEPDIR)/Scenery.Plo \ ./$(DEPDIR)/Screen.Plo ./$(DEPDIR)/SmartPointer.Plo \ ./$(DEPDIR)/Spectrometer.Plo ./$(DEPDIR)/Spectrum.Plo \ ./$(DEPDIR)/StandardAstrobj.Plo ./$(DEPDIR)/ThinDisk.Plo \ ./$(DEPDIR)/UniformSpectrometer.Plo ./$(DEPDIR)/Utils.Plo \ ./$(DEPDIR)/Value.Plo ./$(DEPDIR)/WIP.Plo \ ./$(DEPDIR)/Worldline.Plo ./$(DEPDIR)/WorldlineIntegState.Plo \ ./$(DEPDIR)/libgyoto_lorene_la-LorenePlug.Plo \ ./$(DEPDIR)/libgyoto_lorene_la-NeutronStar.Plo \ ./$(DEPDIR)/libgyoto_lorene_la-NeutronStarAnalyticEmission.Plo \ ./$(DEPDIR)/libgyoto_lorene_la-NeutronStarModelAtmosphere.Plo \ ./$(DEPDIR)/libgyoto_lorene_la-NumericalMetricLorene.Plo \ ./$(DEPDIR)/libgyoto_lorene_la-RotStar3_1.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-BlackBodySpectrum.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-Blob.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-ChernSimons.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-ComplexAstrobj.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-ComplexMetric.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-DeformedTorus.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-DirectionalDisk.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-Disk3D.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-DynamicalDisk.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-DynamicalDisk3D.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-DynamicalDiskBolometric.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-EquatorialHotSpot.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-FixedStar.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-FlaredDiskSynchrotron.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-FreeStar.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-Hayward.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-InflateStar.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-Jet.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-KappaDistributionSynchrotronSpectrum.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-KerrBL.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-KerrKS.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-Minkowski.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-OscilTorus.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-PageThorneDisk.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-PatternDisk.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-PatternDiskBB.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-Plasmoid.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-PolishDoughnut.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-PowerLawSpectrum.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-PowerLawSynchrotronSpectrum.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-RezzollaZhidenko.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-SchwarzschildHarmonic.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-Shift.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-SphericalAccretion.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-Star.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-StarTrace.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-StdPlug.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-ThermalBremsstrahlungSpectrum.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-ThermalSynchrotronSpectrum.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-ThickDisk.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-ThinDiskGridIntensity.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-ThinDiskIronLine.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-ThinDiskPL.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-ThinDiskProfile.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-Torus.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-UniformSphere.Plo \ ./$(DEPDIR)/libgyoto_stdplug_la-XillverReflection.Plo am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(libgyoto_lorene_la_SOURCES) $(libgyoto_stdplug_la_SOURCES) \ $(EXTRA_libgyoto_stdplug_la_SOURCES) \ $(libgyoto@FEATURES@_la_SOURCES) DIST_SOURCES = $(libgyoto_lorene_la_SOURCES) \ $(libgyoto_stdplug_la_SOURCES) \ $(EXTRA_libgyoto_stdplug_la_SOURCES) \ $(libgyoto@FEATURES@_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DATA = $(pkgconfig_DATA) HEADERS = $(library_include_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # 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)` am__DIST_COMMON = $(srcdir)/Makefile.in \ $(srcdir)/gyoto-uninstalled.pc.in $(srcdir)/gyoto.pc.in \ $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AEAE_CFLAGS = @AEAE_CFLAGS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ ARBLIB_CFLAGS = @ARBLIB_CFLAGS@ ARBLIB_LIBS = @ARBLIB_LIBS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BIBTEX = @BIBTEX@ BOOST_CPPFLAGS = @BOOST_CPPFLAGS@ BOOST_LDPATH = @BOOST_LDPATH@ BOOST_MPI_LDFLAGS = @BOOST_MPI_LDFLAGS@ BOOST_MPI_LDPATH = @BOOST_MPI_LDPATH@ BOOST_MPI_LIBS = @BOOST_MPI_LIBS@ BOOST_ROOT = @BOOST_ROOT@ BOOST_SERIALIZATION_LDFLAGS = @BOOST_SERIALIZATION_LDFLAGS@ BOOST_SERIALIZATION_LDPATH = @BOOST_SERIALIZATION_LDPATH@ BOOST_SERIALIZATION_LIBS = @BOOST_SERIALIZATION_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFITSIO_CFLAGS = @CFITSIO_CFLAGS@ CFITSIO_LIBS = @CFITSIO_LIBS@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CXXFLAGS_EXEC = @CXXFLAGS_EXEC@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@ DLLTOOL = @DLLTOOL@ DOXYGEN = @DOXYGEN@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DYLIB_VAR = @DYLIB_VAR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EIGEN_CFLAGS = @EIGEN_CFLAGS@ EIGEN_LIBS = @EIGEN_LIBS@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FEATURES = @FEATURES@ FGREP = @FGREP@ FILECMD = @FILECMD@ GREP = @GREP@ GYOTO_PLUGIN_SFX = @GYOTO_PLUGIN_SFX@ HAVE_CXX11 = @HAVE_CXX11@ HOME_LORENE = @HOME_LORENE@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ KPSEWHICH = @KPSEWHICH@ LD = @LD@ LDFLAGS = @LDFLAGS@ LDFLAGS_EXEC = @LDFLAGS_EXEC@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LORENECPPFLAGS = @LORENECPPFLAGS@ LORENELDFLAGS = @LORENELDFLAGS@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MAKE_S = @MAKE_S@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPICXX = @MPICXX@ 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@ PDFLATEX = @PDFLATEX@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POW_LIB = @POW_LIB@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYTHON = @PYTHON@ PYTHON_CFLAGS = @PYTHON_CFLAGS@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_EXTENSION_SUFFIX = @PYTHON_EXTENSION_SUFFIX@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBS = @PYTHON_LIBS@ PYTHON_PREFIX = @PYTHON_PREFIX@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SWIG = @SWIG@ SWIG_LIB = @SWIG_LIB@ SYS = @SYS@ UDUNITS_CFLAGS = @UDUNITS_CFLAGS@ UDUNITS_LIBS = @UDUNITS_LIBS@ VERBATIM = @VERBATIM@ VERSINFO = @VERSINFO@ VERSION = @VERSION@ VIRTUALENV = @VIRTUALENV@ VIRTUALENV_FLAGS = @VIRTUALENV_FLAGS@ XERCES_CFLAGS = @XERCES_CFLAGS@ XERCES_LIBS = @XERCES_LIBS@ YORICK = @YORICK@ Y_INST_HOME = @Y_INST_HOME@ Y_INST_SITE = @Y_INST_SITE@ 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@ ax_pthread_config = @ax_pthread_config@ 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@ localpkglibdir = @localpkglibdir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ mySUBDIRS = @mySUBDIRS@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkg_cflags = @pkg_cflags@ pkg_libs = @pkg_libs@ pkg_requires = @pkg_requires@ pkgpythondir = @pkgpythondir@ plugin_sfx = @plugin_sfx@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sovers = @sovers@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ACLOCAL_AMFLAGS = -I m4 AM_CPPFLAGS = -I@top_srcdir@/include $(XERCES_CFLAGS) $(UDUNITS_CFLAGS) $(BOOST_CPPFLAGS) $(CFITSIO_CFLAGS) $(ARBLIB_CFLAGS) $(AEAE_CFLAGS) $(EIGEN_CFLAGS) AM_LDFLAGS = $(XERCES_LIBS) -export-dynamic $(PTHREAD_LIBS) \ $(UDUNITS_LIBS) $(CFITSIO_LIBS) $(ARBLIB_LIBS) $(am__append_2) AM_CXXFLAGS = $(PTHREAD_CFLAGS) -DGYOTO_PKGLIBDIR=\"${pkglibdir}\" \ $(am__append_1) # HEADERS: where they are, where to install them library_includedir = $(includedir)/Gyoto library_include_HEADERS = $(top_srcdir)/include/*.h $(top_builddir)/include/*.h # MAIN LIBRARY lib_LTLIBRARIES = libgyoto@FEATURES@.la libgyoto@FEATURES@_la_SOURCES = \ Value.C Property.C Object.C \ Astrobj.C Factory.C Register.C SmartPointer.C Utils.C Metric.C \ WIP.C Worldline.C Photon.C Scenery.C \ WorldlineIntegState.C Error.C Screen.C Spectrum.C \ Spectrometer.C ComplexSpectrometer.C UniformSpectrometer.C \ StandardAstrobj.C ThinDisk.C Converters.C Functors.C Hooks.C \ GridData2D.C FitsRW.C libgyoto@FEATURES@_la_LIBS = $(XERCES_LIBS) libgyoto@FEATURES@_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(VERSINFO) # STANDARD PLUGIN soverdir = $(pkglibdir)/@sovers@ sover_LTLIBRARIES = libgyoto-stdplug.la $(am__append_3) libgyoto_stdplug_la_CPPFLAGS = $(AM_CPPFLAGS) -DGYOTO_PLUGIN=stdplug libgyoto_stdplug_la_SOURCES = KerrBL.C KerrKS.C Minkowski.C \ ChernSimons.C RezzollaZhidenko.C Hayward.C \ SchwarzschildHarmonic.C Star.C StarTrace.C FixedStar.C \ InflateStar.C Torus.C OscilTorus.C PowerLawSpectrum.C \ BlackBodySpectrum.C ThermalBremsstrahlungSpectrum.C \ ThermalSynchrotronSpectrum.C PowerLawSynchrotronSpectrum.C \ KappaDistributionSynchrotronSpectrum.C ComplexAstrobj.C \ UniformSphere.C ComplexMetric.C Shift.C PageThorneDisk.C \ ThinDiskPL.C PolishDoughnut.C ThinDiskIronLine.C \ DeformedTorus.C EquatorialHotSpot.C Jet.C Blob.C Plasmoid.C \ FreeStar.C ThickDisk.C ThinDiskProfile.C SphericalAccretion.C \ StdPlug.C $(cfitsio_stdplug_sources) # those files need cfitsio for some functionality cfitsio_stdplug_sources = PatternDisk.C PatternDiskBB.C \ DynamicalDisk.C DynamicalDiskBolometric.C \ Disk3D.C DynamicalDisk3D.C DirectionalDisk.C XillverReflection.C \ FlaredDiskSynchrotron.C ThinDiskGridIntensity.C EXTRA_libgyoto_stdplug_la_SOURCES = $(cfitsio_stdplug_sources) libgyoto_stdplug_la_LDFLAGS = -module -export-dynamic $(AM_LDFLAGS) -avoid-version libgyoto_lorene_la_SOURCES = RotStar3_1.C NumericalMetricLorene.C \ NeutronStar.C NeutronStarAnalyticEmission.C \ NeutronStarModelAtmosphere.C LorenePlug.C libgyoto_lorene_la_LDFLAGS = -module -export-dynamic $(LORENELDFLAGS) $(AM_LDFLAGS) -avoid-version libgyoto_lorene_la_CPPFLAGS = $(AM_CPPFLAGS) $(LORENECPPFLAGS) -DGYOTO_PLUGIN=lorene # pkg-config file pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = gyoto.pc all: all-am .SUFFIXES: .SUFFIXES: .C .lo .o .obj $(srcdir)/Makefile.in: $(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 lib/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign lib/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__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): gyoto.pc: $(top_builddir)/config.status $(srcdir)/gyoto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ gyoto-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/gyoto-uninstalled.pc.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } install-soverLTLIBRARIES: $(sover_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(sover_LTLIBRARIES)'; test -n "$(soverdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(soverdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(soverdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(soverdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(soverdir)"; \ } uninstall-soverLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(sover_LTLIBRARIES)'; test -n "$(soverdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(soverdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(soverdir)/$$f"; \ done clean-soverLTLIBRARIES: -test -z "$(sover_LTLIBRARIES)" || rm -f $(sover_LTLIBRARIES) @list='$(sover_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libgyoto-lorene.la: $(libgyoto_lorene_la_OBJECTS) $(libgyoto_lorene_la_DEPENDENCIES) $(EXTRA_libgyoto_lorene_la_DEPENDENCIES) $(AM_V_CXXLD)$(libgyoto_lorene_la_LINK) $(am_libgyoto_lorene_la_rpath) $(libgyoto_lorene_la_OBJECTS) $(libgyoto_lorene_la_LIBADD) $(LIBS) libgyoto-stdplug.la: $(libgyoto_stdplug_la_OBJECTS) $(libgyoto_stdplug_la_DEPENDENCIES) $(EXTRA_libgyoto_stdplug_la_DEPENDENCIES) $(AM_V_CXXLD)$(libgyoto_stdplug_la_LINK) -rpath $(soverdir) $(libgyoto_stdplug_la_OBJECTS) $(libgyoto_stdplug_la_LIBADD) $(LIBS) libgyoto@FEATURES@.la: $(libgyoto@FEATURES@_la_OBJECTS) $(libgyoto@FEATURES@_la_DEPENDENCIES) $(EXTRA_libgyoto@FEATURES@_la_DEPENDENCIES) $(AM_V_CXXLD)$(libgyoto@FEATURES@_la_LINK) -rpath $(libdir) $(libgyoto@FEATURES@_la_OBJECTS) $(libgyoto@FEATURES@_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Astrobj.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ComplexSpectrometer.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Converters.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Factory.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/FitsRW.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Functors.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GridData2D.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Hooks.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Metric.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Object.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Photon.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Property.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Register.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Scenery.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Screen.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SmartPointer.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Spectrometer.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Spectrum.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/StandardAstrobj.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ThinDisk.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/UniformSpectrometer.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Utils.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Value.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WIP.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Worldline.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WorldlineIntegState.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_lorene_la-LorenePlug.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_lorene_la-NeutronStar.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_lorene_la-NeutronStarAnalyticEmission.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_lorene_la-NeutronStarModelAtmosphere.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_lorene_la-NumericalMetricLorene.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_lorene_la-RotStar3_1.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-BlackBodySpectrum.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-Blob.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-ChernSimons.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-ComplexAstrobj.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-ComplexMetric.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-DeformedTorus.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-DirectionalDisk.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-Disk3D.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-DynamicalDisk.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-DynamicalDisk3D.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-DynamicalDiskBolometric.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-EquatorialHotSpot.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-FixedStar.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-FlaredDiskSynchrotron.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-FreeStar.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-Hayward.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-InflateStar.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-Jet.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-KappaDistributionSynchrotronSpectrum.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-KerrBL.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-KerrKS.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-Minkowski.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-OscilTorus.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-PageThorneDisk.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-PatternDisk.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-PatternDiskBB.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-Plasmoid.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-PolishDoughnut.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-PowerLawSpectrum.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-PowerLawSynchrotronSpectrum.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-RezzollaZhidenko.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-SchwarzschildHarmonic.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-Shift.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-SphericalAccretion.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-Star.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-StarTrace.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-StdPlug.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-ThermalBremsstrahlungSpectrum.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-ThermalSynchrotronSpectrum.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-ThickDisk.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-ThinDiskGridIntensity.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-ThinDiskIronLine.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-ThinDiskPL.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-ThinDiskProfile.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-Torus.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-UniformSphere.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgyoto_stdplug_la-XillverReflection.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .C.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .C.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .C.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< libgyoto_lorene_la-RotStar3_1.lo: RotStar3_1.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_lorene_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_lorene_la-RotStar3_1.lo -MD -MP -MF $(DEPDIR)/libgyoto_lorene_la-RotStar3_1.Tpo -c -o libgyoto_lorene_la-RotStar3_1.lo `test -f 'RotStar3_1.C' || echo '$(srcdir)/'`RotStar3_1.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_lorene_la-RotStar3_1.Tpo $(DEPDIR)/libgyoto_lorene_la-RotStar3_1.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='RotStar3_1.C' object='libgyoto_lorene_la-RotStar3_1.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_lorene_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_lorene_la-RotStar3_1.lo `test -f 'RotStar3_1.C' || echo '$(srcdir)/'`RotStar3_1.C libgyoto_lorene_la-NumericalMetricLorene.lo: NumericalMetricLorene.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_lorene_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_lorene_la-NumericalMetricLorene.lo -MD -MP -MF $(DEPDIR)/libgyoto_lorene_la-NumericalMetricLorene.Tpo -c -o libgyoto_lorene_la-NumericalMetricLorene.lo `test -f 'NumericalMetricLorene.C' || echo '$(srcdir)/'`NumericalMetricLorene.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_lorene_la-NumericalMetricLorene.Tpo $(DEPDIR)/libgyoto_lorene_la-NumericalMetricLorene.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='NumericalMetricLorene.C' object='libgyoto_lorene_la-NumericalMetricLorene.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_lorene_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_lorene_la-NumericalMetricLorene.lo `test -f 'NumericalMetricLorene.C' || echo '$(srcdir)/'`NumericalMetricLorene.C libgyoto_lorene_la-NeutronStar.lo: NeutronStar.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_lorene_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_lorene_la-NeutronStar.lo -MD -MP -MF $(DEPDIR)/libgyoto_lorene_la-NeutronStar.Tpo -c -o libgyoto_lorene_la-NeutronStar.lo `test -f 'NeutronStar.C' || echo '$(srcdir)/'`NeutronStar.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_lorene_la-NeutronStar.Tpo $(DEPDIR)/libgyoto_lorene_la-NeutronStar.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='NeutronStar.C' object='libgyoto_lorene_la-NeutronStar.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_lorene_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_lorene_la-NeutronStar.lo `test -f 'NeutronStar.C' || echo '$(srcdir)/'`NeutronStar.C libgyoto_lorene_la-NeutronStarAnalyticEmission.lo: NeutronStarAnalyticEmission.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_lorene_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_lorene_la-NeutronStarAnalyticEmission.lo -MD -MP -MF $(DEPDIR)/libgyoto_lorene_la-NeutronStarAnalyticEmission.Tpo -c -o libgyoto_lorene_la-NeutronStarAnalyticEmission.lo `test -f 'NeutronStarAnalyticEmission.C' || echo '$(srcdir)/'`NeutronStarAnalyticEmission.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_lorene_la-NeutronStarAnalyticEmission.Tpo $(DEPDIR)/libgyoto_lorene_la-NeutronStarAnalyticEmission.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='NeutronStarAnalyticEmission.C' object='libgyoto_lorene_la-NeutronStarAnalyticEmission.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_lorene_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_lorene_la-NeutronStarAnalyticEmission.lo `test -f 'NeutronStarAnalyticEmission.C' || echo '$(srcdir)/'`NeutronStarAnalyticEmission.C libgyoto_lorene_la-NeutronStarModelAtmosphere.lo: NeutronStarModelAtmosphere.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_lorene_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_lorene_la-NeutronStarModelAtmosphere.lo -MD -MP -MF $(DEPDIR)/libgyoto_lorene_la-NeutronStarModelAtmosphere.Tpo -c -o libgyoto_lorene_la-NeutronStarModelAtmosphere.lo `test -f 'NeutronStarModelAtmosphere.C' || echo '$(srcdir)/'`NeutronStarModelAtmosphere.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_lorene_la-NeutronStarModelAtmosphere.Tpo $(DEPDIR)/libgyoto_lorene_la-NeutronStarModelAtmosphere.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='NeutronStarModelAtmosphere.C' object='libgyoto_lorene_la-NeutronStarModelAtmosphere.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_lorene_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_lorene_la-NeutronStarModelAtmosphere.lo `test -f 'NeutronStarModelAtmosphere.C' || echo '$(srcdir)/'`NeutronStarModelAtmosphere.C libgyoto_lorene_la-LorenePlug.lo: LorenePlug.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_lorene_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_lorene_la-LorenePlug.lo -MD -MP -MF $(DEPDIR)/libgyoto_lorene_la-LorenePlug.Tpo -c -o libgyoto_lorene_la-LorenePlug.lo `test -f 'LorenePlug.C' || echo '$(srcdir)/'`LorenePlug.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_lorene_la-LorenePlug.Tpo $(DEPDIR)/libgyoto_lorene_la-LorenePlug.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='LorenePlug.C' object='libgyoto_lorene_la-LorenePlug.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_lorene_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_lorene_la-LorenePlug.lo `test -f 'LorenePlug.C' || echo '$(srcdir)/'`LorenePlug.C libgyoto_stdplug_la-KerrBL.lo: KerrBL.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-KerrBL.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-KerrBL.Tpo -c -o libgyoto_stdplug_la-KerrBL.lo `test -f 'KerrBL.C' || echo '$(srcdir)/'`KerrBL.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-KerrBL.Tpo $(DEPDIR)/libgyoto_stdplug_la-KerrBL.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='KerrBL.C' object='libgyoto_stdplug_la-KerrBL.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-KerrBL.lo `test -f 'KerrBL.C' || echo '$(srcdir)/'`KerrBL.C libgyoto_stdplug_la-KerrKS.lo: KerrKS.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-KerrKS.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-KerrKS.Tpo -c -o libgyoto_stdplug_la-KerrKS.lo `test -f 'KerrKS.C' || echo '$(srcdir)/'`KerrKS.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-KerrKS.Tpo $(DEPDIR)/libgyoto_stdplug_la-KerrKS.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='KerrKS.C' object='libgyoto_stdplug_la-KerrKS.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-KerrKS.lo `test -f 'KerrKS.C' || echo '$(srcdir)/'`KerrKS.C libgyoto_stdplug_la-Minkowski.lo: Minkowski.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-Minkowski.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-Minkowski.Tpo -c -o libgyoto_stdplug_la-Minkowski.lo `test -f 'Minkowski.C' || echo '$(srcdir)/'`Minkowski.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-Minkowski.Tpo $(DEPDIR)/libgyoto_stdplug_la-Minkowski.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Minkowski.C' object='libgyoto_stdplug_la-Minkowski.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-Minkowski.lo `test -f 'Minkowski.C' || echo '$(srcdir)/'`Minkowski.C libgyoto_stdplug_la-ChernSimons.lo: ChernSimons.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-ChernSimons.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-ChernSimons.Tpo -c -o libgyoto_stdplug_la-ChernSimons.lo `test -f 'ChernSimons.C' || echo '$(srcdir)/'`ChernSimons.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-ChernSimons.Tpo $(DEPDIR)/libgyoto_stdplug_la-ChernSimons.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='ChernSimons.C' object='libgyoto_stdplug_la-ChernSimons.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-ChernSimons.lo `test -f 'ChernSimons.C' || echo '$(srcdir)/'`ChernSimons.C libgyoto_stdplug_la-RezzollaZhidenko.lo: RezzollaZhidenko.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-RezzollaZhidenko.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-RezzollaZhidenko.Tpo -c -o libgyoto_stdplug_la-RezzollaZhidenko.lo `test -f 'RezzollaZhidenko.C' || echo '$(srcdir)/'`RezzollaZhidenko.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-RezzollaZhidenko.Tpo $(DEPDIR)/libgyoto_stdplug_la-RezzollaZhidenko.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='RezzollaZhidenko.C' object='libgyoto_stdplug_la-RezzollaZhidenko.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-RezzollaZhidenko.lo `test -f 'RezzollaZhidenko.C' || echo '$(srcdir)/'`RezzollaZhidenko.C libgyoto_stdplug_la-Hayward.lo: Hayward.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-Hayward.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-Hayward.Tpo -c -o libgyoto_stdplug_la-Hayward.lo `test -f 'Hayward.C' || echo '$(srcdir)/'`Hayward.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-Hayward.Tpo $(DEPDIR)/libgyoto_stdplug_la-Hayward.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Hayward.C' object='libgyoto_stdplug_la-Hayward.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-Hayward.lo `test -f 'Hayward.C' || echo '$(srcdir)/'`Hayward.C libgyoto_stdplug_la-SchwarzschildHarmonic.lo: SchwarzschildHarmonic.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-SchwarzschildHarmonic.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-SchwarzschildHarmonic.Tpo -c -o libgyoto_stdplug_la-SchwarzschildHarmonic.lo `test -f 'SchwarzschildHarmonic.C' || echo '$(srcdir)/'`SchwarzschildHarmonic.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-SchwarzschildHarmonic.Tpo $(DEPDIR)/libgyoto_stdplug_la-SchwarzschildHarmonic.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='SchwarzschildHarmonic.C' object='libgyoto_stdplug_la-SchwarzschildHarmonic.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-SchwarzschildHarmonic.lo `test -f 'SchwarzschildHarmonic.C' || echo '$(srcdir)/'`SchwarzschildHarmonic.C libgyoto_stdplug_la-Star.lo: Star.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-Star.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-Star.Tpo -c -o libgyoto_stdplug_la-Star.lo `test -f 'Star.C' || echo '$(srcdir)/'`Star.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-Star.Tpo $(DEPDIR)/libgyoto_stdplug_la-Star.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Star.C' object='libgyoto_stdplug_la-Star.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-Star.lo `test -f 'Star.C' || echo '$(srcdir)/'`Star.C libgyoto_stdplug_la-StarTrace.lo: StarTrace.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-StarTrace.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-StarTrace.Tpo -c -o libgyoto_stdplug_la-StarTrace.lo `test -f 'StarTrace.C' || echo '$(srcdir)/'`StarTrace.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-StarTrace.Tpo $(DEPDIR)/libgyoto_stdplug_la-StarTrace.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='StarTrace.C' object='libgyoto_stdplug_la-StarTrace.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-StarTrace.lo `test -f 'StarTrace.C' || echo '$(srcdir)/'`StarTrace.C libgyoto_stdplug_la-FixedStar.lo: FixedStar.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-FixedStar.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-FixedStar.Tpo -c -o libgyoto_stdplug_la-FixedStar.lo `test -f 'FixedStar.C' || echo '$(srcdir)/'`FixedStar.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-FixedStar.Tpo $(DEPDIR)/libgyoto_stdplug_la-FixedStar.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='FixedStar.C' object='libgyoto_stdplug_la-FixedStar.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-FixedStar.lo `test -f 'FixedStar.C' || echo '$(srcdir)/'`FixedStar.C libgyoto_stdplug_la-InflateStar.lo: InflateStar.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-InflateStar.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-InflateStar.Tpo -c -o libgyoto_stdplug_la-InflateStar.lo `test -f 'InflateStar.C' || echo '$(srcdir)/'`InflateStar.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-InflateStar.Tpo $(DEPDIR)/libgyoto_stdplug_la-InflateStar.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='InflateStar.C' object='libgyoto_stdplug_la-InflateStar.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-InflateStar.lo `test -f 'InflateStar.C' || echo '$(srcdir)/'`InflateStar.C libgyoto_stdplug_la-Torus.lo: Torus.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-Torus.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-Torus.Tpo -c -o libgyoto_stdplug_la-Torus.lo `test -f 'Torus.C' || echo '$(srcdir)/'`Torus.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-Torus.Tpo $(DEPDIR)/libgyoto_stdplug_la-Torus.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Torus.C' object='libgyoto_stdplug_la-Torus.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-Torus.lo `test -f 'Torus.C' || echo '$(srcdir)/'`Torus.C libgyoto_stdplug_la-OscilTorus.lo: OscilTorus.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-OscilTorus.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-OscilTorus.Tpo -c -o libgyoto_stdplug_la-OscilTorus.lo `test -f 'OscilTorus.C' || echo '$(srcdir)/'`OscilTorus.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-OscilTorus.Tpo $(DEPDIR)/libgyoto_stdplug_la-OscilTorus.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='OscilTorus.C' object='libgyoto_stdplug_la-OscilTorus.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-OscilTorus.lo `test -f 'OscilTorus.C' || echo '$(srcdir)/'`OscilTorus.C libgyoto_stdplug_la-PowerLawSpectrum.lo: PowerLawSpectrum.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-PowerLawSpectrum.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-PowerLawSpectrum.Tpo -c -o libgyoto_stdplug_la-PowerLawSpectrum.lo `test -f 'PowerLawSpectrum.C' || echo '$(srcdir)/'`PowerLawSpectrum.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-PowerLawSpectrum.Tpo $(DEPDIR)/libgyoto_stdplug_la-PowerLawSpectrum.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='PowerLawSpectrum.C' object='libgyoto_stdplug_la-PowerLawSpectrum.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-PowerLawSpectrum.lo `test -f 'PowerLawSpectrum.C' || echo '$(srcdir)/'`PowerLawSpectrum.C libgyoto_stdplug_la-BlackBodySpectrum.lo: BlackBodySpectrum.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-BlackBodySpectrum.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-BlackBodySpectrum.Tpo -c -o libgyoto_stdplug_la-BlackBodySpectrum.lo `test -f 'BlackBodySpectrum.C' || echo '$(srcdir)/'`BlackBodySpectrum.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-BlackBodySpectrum.Tpo $(DEPDIR)/libgyoto_stdplug_la-BlackBodySpectrum.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='BlackBodySpectrum.C' object='libgyoto_stdplug_la-BlackBodySpectrum.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-BlackBodySpectrum.lo `test -f 'BlackBodySpectrum.C' || echo '$(srcdir)/'`BlackBodySpectrum.C libgyoto_stdplug_la-ThermalBremsstrahlungSpectrum.lo: ThermalBremsstrahlungSpectrum.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-ThermalBremsstrahlungSpectrum.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-ThermalBremsstrahlungSpectrum.Tpo -c -o libgyoto_stdplug_la-ThermalBremsstrahlungSpectrum.lo `test -f 'ThermalBremsstrahlungSpectrum.C' || echo '$(srcdir)/'`ThermalBremsstrahlungSpectrum.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-ThermalBremsstrahlungSpectrum.Tpo $(DEPDIR)/libgyoto_stdplug_la-ThermalBremsstrahlungSpectrum.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='ThermalBremsstrahlungSpectrum.C' object='libgyoto_stdplug_la-ThermalBremsstrahlungSpectrum.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-ThermalBremsstrahlungSpectrum.lo `test -f 'ThermalBremsstrahlungSpectrum.C' || echo '$(srcdir)/'`ThermalBremsstrahlungSpectrum.C libgyoto_stdplug_la-ThermalSynchrotronSpectrum.lo: ThermalSynchrotronSpectrum.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-ThermalSynchrotronSpectrum.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-ThermalSynchrotronSpectrum.Tpo -c -o libgyoto_stdplug_la-ThermalSynchrotronSpectrum.lo `test -f 'ThermalSynchrotronSpectrum.C' || echo '$(srcdir)/'`ThermalSynchrotronSpectrum.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-ThermalSynchrotronSpectrum.Tpo $(DEPDIR)/libgyoto_stdplug_la-ThermalSynchrotronSpectrum.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='ThermalSynchrotronSpectrum.C' object='libgyoto_stdplug_la-ThermalSynchrotronSpectrum.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-ThermalSynchrotronSpectrum.lo `test -f 'ThermalSynchrotronSpectrum.C' || echo '$(srcdir)/'`ThermalSynchrotronSpectrum.C libgyoto_stdplug_la-PowerLawSynchrotronSpectrum.lo: PowerLawSynchrotronSpectrum.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-PowerLawSynchrotronSpectrum.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-PowerLawSynchrotronSpectrum.Tpo -c -o libgyoto_stdplug_la-PowerLawSynchrotronSpectrum.lo `test -f 'PowerLawSynchrotronSpectrum.C' || echo '$(srcdir)/'`PowerLawSynchrotronSpectrum.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-PowerLawSynchrotronSpectrum.Tpo $(DEPDIR)/libgyoto_stdplug_la-PowerLawSynchrotronSpectrum.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='PowerLawSynchrotronSpectrum.C' object='libgyoto_stdplug_la-PowerLawSynchrotronSpectrum.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-PowerLawSynchrotronSpectrum.lo `test -f 'PowerLawSynchrotronSpectrum.C' || echo '$(srcdir)/'`PowerLawSynchrotronSpectrum.C libgyoto_stdplug_la-KappaDistributionSynchrotronSpectrum.lo: KappaDistributionSynchrotronSpectrum.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-KappaDistributionSynchrotronSpectrum.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-KappaDistributionSynchrotronSpectrum.Tpo -c -o libgyoto_stdplug_la-KappaDistributionSynchrotronSpectrum.lo `test -f 'KappaDistributionSynchrotronSpectrum.C' || echo '$(srcdir)/'`KappaDistributionSynchrotronSpectrum.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-KappaDistributionSynchrotronSpectrum.Tpo $(DEPDIR)/libgyoto_stdplug_la-KappaDistributionSynchrotronSpectrum.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='KappaDistributionSynchrotronSpectrum.C' object='libgyoto_stdplug_la-KappaDistributionSynchrotronSpectrum.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-KappaDistributionSynchrotronSpectrum.lo `test -f 'KappaDistributionSynchrotronSpectrum.C' || echo '$(srcdir)/'`KappaDistributionSynchrotronSpectrum.C libgyoto_stdplug_la-ComplexAstrobj.lo: ComplexAstrobj.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-ComplexAstrobj.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-ComplexAstrobj.Tpo -c -o libgyoto_stdplug_la-ComplexAstrobj.lo `test -f 'ComplexAstrobj.C' || echo '$(srcdir)/'`ComplexAstrobj.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-ComplexAstrobj.Tpo $(DEPDIR)/libgyoto_stdplug_la-ComplexAstrobj.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='ComplexAstrobj.C' object='libgyoto_stdplug_la-ComplexAstrobj.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-ComplexAstrobj.lo `test -f 'ComplexAstrobj.C' || echo '$(srcdir)/'`ComplexAstrobj.C libgyoto_stdplug_la-UniformSphere.lo: UniformSphere.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-UniformSphere.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-UniformSphere.Tpo -c -o libgyoto_stdplug_la-UniformSphere.lo `test -f 'UniformSphere.C' || echo '$(srcdir)/'`UniformSphere.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-UniformSphere.Tpo $(DEPDIR)/libgyoto_stdplug_la-UniformSphere.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='UniformSphere.C' object='libgyoto_stdplug_la-UniformSphere.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-UniformSphere.lo `test -f 'UniformSphere.C' || echo '$(srcdir)/'`UniformSphere.C libgyoto_stdplug_la-ComplexMetric.lo: ComplexMetric.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-ComplexMetric.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-ComplexMetric.Tpo -c -o libgyoto_stdplug_la-ComplexMetric.lo `test -f 'ComplexMetric.C' || echo '$(srcdir)/'`ComplexMetric.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-ComplexMetric.Tpo $(DEPDIR)/libgyoto_stdplug_la-ComplexMetric.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='ComplexMetric.C' object='libgyoto_stdplug_la-ComplexMetric.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-ComplexMetric.lo `test -f 'ComplexMetric.C' || echo '$(srcdir)/'`ComplexMetric.C libgyoto_stdplug_la-Shift.lo: Shift.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-Shift.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-Shift.Tpo -c -o libgyoto_stdplug_la-Shift.lo `test -f 'Shift.C' || echo '$(srcdir)/'`Shift.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-Shift.Tpo $(DEPDIR)/libgyoto_stdplug_la-Shift.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Shift.C' object='libgyoto_stdplug_la-Shift.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-Shift.lo `test -f 'Shift.C' || echo '$(srcdir)/'`Shift.C libgyoto_stdplug_la-PageThorneDisk.lo: PageThorneDisk.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-PageThorneDisk.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-PageThorneDisk.Tpo -c -o libgyoto_stdplug_la-PageThorneDisk.lo `test -f 'PageThorneDisk.C' || echo '$(srcdir)/'`PageThorneDisk.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-PageThorneDisk.Tpo $(DEPDIR)/libgyoto_stdplug_la-PageThorneDisk.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='PageThorneDisk.C' object='libgyoto_stdplug_la-PageThorneDisk.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-PageThorneDisk.lo `test -f 'PageThorneDisk.C' || echo '$(srcdir)/'`PageThorneDisk.C libgyoto_stdplug_la-ThinDiskPL.lo: ThinDiskPL.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-ThinDiskPL.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-ThinDiskPL.Tpo -c -o libgyoto_stdplug_la-ThinDiskPL.lo `test -f 'ThinDiskPL.C' || echo '$(srcdir)/'`ThinDiskPL.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-ThinDiskPL.Tpo $(DEPDIR)/libgyoto_stdplug_la-ThinDiskPL.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='ThinDiskPL.C' object='libgyoto_stdplug_la-ThinDiskPL.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-ThinDiskPL.lo `test -f 'ThinDiskPL.C' || echo '$(srcdir)/'`ThinDiskPL.C libgyoto_stdplug_la-PolishDoughnut.lo: PolishDoughnut.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-PolishDoughnut.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-PolishDoughnut.Tpo -c -o libgyoto_stdplug_la-PolishDoughnut.lo `test -f 'PolishDoughnut.C' || echo '$(srcdir)/'`PolishDoughnut.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-PolishDoughnut.Tpo $(DEPDIR)/libgyoto_stdplug_la-PolishDoughnut.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='PolishDoughnut.C' object='libgyoto_stdplug_la-PolishDoughnut.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-PolishDoughnut.lo `test -f 'PolishDoughnut.C' || echo '$(srcdir)/'`PolishDoughnut.C libgyoto_stdplug_la-ThinDiskIronLine.lo: ThinDiskIronLine.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-ThinDiskIronLine.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-ThinDiskIronLine.Tpo -c -o libgyoto_stdplug_la-ThinDiskIronLine.lo `test -f 'ThinDiskIronLine.C' || echo '$(srcdir)/'`ThinDiskIronLine.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-ThinDiskIronLine.Tpo $(DEPDIR)/libgyoto_stdplug_la-ThinDiskIronLine.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='ThinDiskIronLine.C' object='libgyoto_stdplug_la-ThinDiskIronLine.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-ThinDiskIronLine.lo `test -f 'ThinDiskIronLine.C' || echo '$(srcdir)/'`ThinDiskIronLine.C libgyoto_stdplug_la-DeformedTorus.lo: DeformedTorus.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-DeformedTorus.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-DeformedTorus.Tpo -c -o libgyoto_stdplug_la-DeformedTorus.lo `test -f 'DeformedTorus.C' || echo '$(srcdir)/'`DeformedTorus.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-DeformedTorus.Tpo $(DEPDIR)/libgyoto_stdplug_la-DeformedTorus.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='DeformedTorus.C' object='libgyoto_stdplug_la-DeformedTorus.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-DeformedTorus.lo `test -f 'DeformedTorus.C' || echo '$(srcdir)/'`DeformedTorus.C libgyoto_stdplug_la-EquatorialHotSpot.lo: EquatorialHotSpot.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-EquatorialHotSpot.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-EquatorialHotSpot.Tpo -c -o libgyoto_stdplug_la-EquatorialHotSpot.lo `test -f 'EquatorialHotSpot.C' || echo '$(srcdir)/'`EquatorialHotSpot.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-EquatorialHotSpot.Tpo $(DEPDIR)/libgyoto_stdplug_la-EquatorialHotSpot.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='EquatorialHotSpot.C' object='libgyoto_stdplug_la-EquatorialHotSpot.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-EquatorialHotSpot.lo `test -f 'EquatorialHotSpot.C' || echo '$(srcdir)/'`EquatorialHotSpot.C libgyoto_stdplug_la-Jet.lo: Jet.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-Jet.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-Jet.Tpo -c -o libgyoto_stdplug_la-Jet.lo `test -f 'Jet.C' || echo '$(srcdir)/'`Jet.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-Jet.Tpo $(DEPDIR)/libgyoto_stdplug_la-Jet.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Jet.C' object='libgyoto_stdplug_la-Jet.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-Jet.lo `test -f 'Jet.C' || echo '$(srcdir)/'`Jet.C libgyoto_stdplug_la-Blob.lo: Blob.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-Blob.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-Blob.Tpo -c -o libgyoto_stdplug_la-Blob.lo `test -f 'Blob.C' || echo '$(srcdir)/'`Blob.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-Blob.Tpo $(DEPDIR)/libgyoto_stdplug_la-Blob.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Blob.C' object='libgyoto_stdplug_la-Blob.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-Blob.lo `test -f 'Blob.C' || echo '$(srcdir)/'`Blob.C libgyoto_stdplug_la-Plasmoid.lo: Plasmoid.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-Plasmoid.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-Plasmoid.Tpo -c -o libgyoto_stdplug_la-Plasmoid.lo `test -f 'Plasmoid.C' || echo '$(srcdir)/'`Plasmoid.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-Plasmoid.Tpo $(DEPDIR)/libgyoto_stdplug_la-Plasmoid.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Plasmoid.C' object='libgyoto_stdplug_la-Plasmoid.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-Plasmoid.lo `test -f 'Plasmoid.C' || echo '$(srcdir)/'`Plasmoid.C libgyoto_stdplug_la-FreeStar.lo: FreeStar.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-FreeStar.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-FreeStar.Tpo -c -o libgyoto_stdplug_la-FreeStar.lo `test -f 'FreeStar.C' || echo '$(srcdir)/'`FreeStar.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-FreeStar.Tpo $(DEPDIR)/libgyoto_stdplug_la-FreeStar.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='FreeStar.C' object='libgyoto_stdplug_la-FreeStar.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-FreeStar.lo `test -f 'FreeStar.C' || echo '$(srcdir)/'`FreeStar.C libgyoto_stdplug_la-ThickDisk.lo: ThickDisk.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-ThickDisk.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-ThickDisk.Tpo -c -o libgyoto_stdplug_la-ThickDisk.lo `test -f 'ThickDisk.C' || echo '$(srcdir)/'`ThickDisk.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-ThickDisk.Tpo $(DEPDIR)/libgyoto_stdplug_la-ThickDisk.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='ThickDisk.C' object='libgyoto_stdplug_la-ThickDisk.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-ThickDisk.lo `test -f 'ThickDisk.C' || echo '$(srcdir)/'`ThickDisk.C libgyoto_stdplug_la-ThinDiskProfile.lo: ThinDiskProfile.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-ThinDiskProfile.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-ThinDiskProfile.Tpo -c -o libgyoto_stdplug_la-ThinDiskProfile.lo `test -f 'ThinDiskProfile.C' || echo '$(srcdir)/'`ThinDiskProfile.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-ThinDiskProfile.Tpo $(DEPDIR)/libgyoto_stdplug_la-ThinDiskProfile.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='ThinDiskProfile.C' object='libgyoto_stdplug_la-ThinDiskProfile.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-ThinDiskProfile.lo `test -f 'ThinDiskProfile.C' || echo '$(srcdir)/'`ThinDiskProfile.C libgyoto_stdplug_la-SphericalAccretion.lo: SphericalAccretion.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-SphericalAccretion.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-SphericalAccretion.Tpo -c -o libgyoto_stdplug_la-SphericalAccretion.lo `test -f 'SphericalAccretion.C' || echo '$(srcdir)/'`SphericalAccretion.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-SphericalAccretion.Tpo $(DEPDIR)/libgyoto_stdplug_la-SphericalAccretion.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='SphericalAccretion.C' object='libgyoto_stdplug_la-SphericalAccretion.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-SphericalAccretion.lo `test -f 'SphericalAccretion.C' || echo '$(srcdir)/'`SphericalAccretion.C libgyoto_stdplug_la-StdPlug.lo: StdPlug.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-StdPlug.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-StdPlug.Tpo -c -o libgyoto_stdplug_la-StdPlug.lo `test -f 'StdPlug.C' || echo '$(srcdir)/'`StdPlug.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-StdPlug.Tpo $(DEPDIR)/libgyoto_stdplug_la-StdPlug.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='StdPlug.C' object='libgyoto_stdplug_la-StdPlug.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-StdPlug.lo `test -f 'StdPlug.C' || echo '$(srcdir)/'`StdPlug.C libgyoto_stdplug_la-PatternDisk.lo: PatternDisk.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-PatternDisk.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-PatternDisk.Tpo -c -o libgyoto_stdplug_la-PatternDisk.lo `test -f 'PatternDisk.C' || echo '$(srcdir)/'`PatternDisk.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-PatternDisk.Tpo $(DEPDIR)/libgyoto_stdplug_la-PatternDisk.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='PatternDisk.C' object='libgyoto_stdplug_la-PatternDisk.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-PatternDisk.lo `test -f 'PatternDisk.C' || echo '$(srcdir)/'`PatternDisk.C libgyoto_stdplug_la-PatternDiskBB.lo: PatternDiskBB.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-PatternDiskBB.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-PatternDiskBB.Tpo -c -o libgyoto_stdplug_la-PatternDiskBB.lo `test -f 'PatternDiskBB.C' || echo '$(srcdir)/'`PatternDiskBB.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-PatternDiskBB.Tpo $(DEPDIR)/libgyoto_stdplug_la-PatternDiskBB.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='PatternDiskBB.C' object='libgyoto_stdplug_la-PatternDiskBB.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-PatternDiskBB.lo `test -f 'PatternDiskBB.C' || echo '$(srcdir)/'`PatternDiskBB.C libgyoto_stdplug_la-DynamicalDisk.lo: DynamicalDisk.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-DynamicalDisk.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-DynamicalDisk.Tpo -c -o libgyoto_stdplug_la-DynamicalDisk.lo `test -f 'DynamicalDisk.C' || echo '$(srcdir)/'`DynamicalDisk.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-DynamicalDisk.Tpo $(DEPDIR)/libgyoto_stdplug_la-DynamicalDisk.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='DynamicalDisk.C' object='libgyoto_stdplug_la-DynamicalDisk.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-DynamicalDisk.lo `test -f 'DynamicalDisk.C' || echo '$(srcdir)/'`DynamicalDisk.C libgyoto_stdplug_la-DynamicalDiskBolometric.lo: DynamicalDiskBolometric.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-DynamicalDiskBolometric.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-DynamicalDiskBolometric.Tpo -c -o libgyoto_stdplug_la-DynamicalDiskBolometric.lo `test -f 'DynamicalDiskBolometric.C' || echo '$(srcdir)/'`DynamicalDiskBolometric.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-DynamicalDiskBolometric.Tpo $(DEPDIR)/libgyoto_stdplug_la-DynamicalDiskBolometric.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='DynamicalDiskBolometric.C' object='libgyoto_stdplug_la-DynamicalDiskBolometric.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-DynamicalDiskBolometric.lo `test -f 'DynamicalDiskBolometric.C' || echo '$(srcdir)/'`DynamicalDiskBolometric.C libgyoto_stdplug_la-Disk3D.lo: Disk3D.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-Disk3D.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-Disk3D.Tpo -c -o libgyoto_stdplug_la-Disk3D.lo `test -f 'Disk3D.C' || echo '$(srcdir)/'`Disk3D.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-Disk3D.Tpo $(DEPDIR)/libgyoto_stdplug_la-Disk3D.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Disk3D.C' object='libgyoto_stdplug_la-Disk3D.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-Disk3D.lo `test -f 'Disk3D.C' || echo '$(srcdir)/'`Disk3D.C libgyoto_stdplug_la-DynamicalDisk3D.lo: DynamicalDisk3D.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-DynamicalDisk3D.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-DynamicalDisk3D.Tpo -c -o libgyoto_stdplug_la-DynamicalDisk3D.lo `test -f 'DynamicalDisk3D.C' || echo '$(srcdir)/'`DynamicalDisk3D.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-DynamicalDisk3D.Tpo $(DEPDIR)/libgyoto_stdplug_la-DynamicalDisk3D.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='DynamicalDisk3D.C' object='libgyoto_stdplug_la-DynamicalDisk3D.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-DynamicalDisk3D.lo `test -f 'DynamicalDisk3D.C' || echo '$(srcdir)/'`DynamicalDisk3D.C libgyoto_stdplug_la-DirectionalDisk.lo: DirectionalDisk.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-DirectionalDisk.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-DirectionalDisk.Tpo -c -o libgyoto_stdplug_la-DirectionalDisk.lo `test -f 'DirectionalDisk.C' || echo '$(srcdir)/'`DirectionalDisk.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-DirectionalDisk.Tpo $(DEPDIR)/libgyoto_stdplug_la-DirectionalDisk.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='DirectionalDisk.C' object='libgyoto_stdplug_la-DirectionalDisk.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-DirectionalDisk.lo `test -f 'DirectionalDisk.C' || echo '$(srcdir)/'`DirectionalDisk.C libgyoto_stdplug_la-XillverReflection.lo: XillverReflection.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-XillverReflection.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-XillverReflection.Tpo -c -o libgyoto_stdplug_la-XillverReflection.lo `test -f 'XillverReflection.C' || echo '$(srcdir)/'`XillverReflection.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-XillverReflection.Tpo $(DEPDIR)/libgyoto_stdplug_la-XillverReflection.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='XillverReflection.C' object='libgyoto_stdplug_la-XillverReflection.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-XillverReflection.lo `test -f 'XillverReflection.C' || echo '$(srcdir)/'`XillverReflection.C libgyoto_stdplug_la-FlaredDiskSynchrotron.lo: FlaredDiskSynchrotron.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-FlaredDiskSynchrotron.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-FlaredDiskSynchrotron.Tpo -c -o libgyoto_stdplug_la-FlaredDiskSynchrotron.lo `test -f 'FlaredDiskSynchrotron.C' || echo '$(srcdir)/'`FlaredDiskSynchrotron.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-FlaredDiskSynchrotron.Tpo $(DEPDIR)/libgyoto_stdplug_la-FlaredDiskSynchrotron.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='FlaredDiskSynchrotron.C' object='libgyoto_stdplug_la-FlaredDiskSynchrotron.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-FlaredDiskSynchrotron.lo `test -f 'FlaredDiskSynchrotron.C' || echo '$(srcdir)/'`FlaredDiskSynchrotron.C libgyoto_stdplug_la-ThinDiskGridIntensity.lo: ThinDiskGridIntensity.C @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libgyoto_stdplug_la-ThinDiskGridIntensity.lo -MD -MP -MF $(DEPDIR)/libgyoto_stdplug_la-ThinDiskGridIntensity.Tpo -c -o libgyoto_stdplug_la-ThinDiskGridIntensity.lo `test -f 'ThinDiskGridIntensity.C' || echo '$(srcdir)/'`ThinDiskGridIntensity.C @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgyoto_stdplug_la-ThinDiskGridIntensity.Tpo $(DEPDIR)/libgyoto_stdplug_la-ThinDiskGridIntensity.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='ThinDiskGridIntensity.C' object='libgyoto_stdplug_la-ThinDiskGridIntensity.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libgyoto_stdplug_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libgyoto_stdplug_la-ThinDiskGridIntensity.lo `test -f 'ThinDiskGridIntensity.C' || echo '$(srcdir)/'`ThinDiskGridIntensity.C mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs 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) install-library_includeHEADERS: $(library_include_HEADERS) @$(NORMAL_INSTALL) @list='$(library_include_HEADERS)'; test -n "$(library_includedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(library_includedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(library_includedir)" || 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_HEADER) $$files '$(DESTDIR)$(library_includedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(library_includedir)" || exit $$?; \ done uninstall-library_includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(library_include_HEADERS)'; test -n "$(library_includedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(library_includedir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(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-am 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" cscopelist: cscopelist-am 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 distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(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 check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) install-soverLTLIBRARIES: install-libLTLIBRARIES installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(soverdir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(library_includedir)"; 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: 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-generic clean-libLTLIBRARIES clean-libtool \ clean-soverLTLIBRARIES mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/Astrobj.Plo -rm -f ./$(DEPDIR)/ComplexSpectrometer.Plo -rm -f ./$(DEPDIR)/Converters.Plo -rm -f ./$(DEPDIR)/Error.Plo -rm -f ./$(DEPDIR)/Factory.Plo -rm -f ./$(DEPDIR)/FitsRW.Plo -rm -f ./$(DEPDIR)/Functors.Plo -rm -f ./$(DEPDIR)/GridData2D.Plo -rm -f ./$(DEPDIR)/Hooks.Plo -rm -f ./$(DEPDIR)/Metric.Plo -rm -f ./$(DEPDIR)/Object.Plo -rm -f ./$(DEPDIR)/Photon.Plo -rm -f ./$(DEPDIR)/Property.Plo -rm -f ./$(DEPDIR)/Register.Plo -rm -f ./$(DEPDIR)/Scenery.Plo -rm -f ./$(DEPDIR)/Screen.Plo -rm -f ./$(DEPDIR)/SmartPointer.Plo -rm -f ./$(DEPDIR)/Spectrometer.Plo -rm -f ./$(DEPDIR)/Spectrum.Plo -rm -f ./$(DEPDIR)/StandardAstrobj.Plo -rm -f ./$(DEPDIR)/ThinDisk.Plo -rm -f ./$(DEPDIR)/UniformSpectrometer.Plo -rm -f ./$(DEPDIR)/Utils.Plo -rm -f ./$(DEPDIR)/Value.Plo -rm -f ./$(DEPDIR)/WIP.Plo -rm -f ./$(DEPDIR)/Worldline.Plo -rm -f ./$(DEPDIR)/WorldlineIntegState.Plo -rm -f ./$(DEPDIR)/libgyoto_lorene_la-LorenePlug.Plo -rm -f ./$(DEPDIR)/libgyoto_lorene_la-NeutronStar.Plo -rm -f ./$(DEPDIR)/libgyoto_lorene_la-NeutronStarAnalyticEmission.Plo -rm -f ./$(DEPDIR)/libgyoto_lorene_la-NeutronStarModelAtmosphere.Plo -rm -f ./$(DEPDIR)/libgyoto_lorene_la-NumericalMetricLorene.Plo -rm -f ./$(DEPDIR)/libgyoto_lorene_la-RotStar3_1.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-BlackBodySpectrum.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Blob.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ChernSimons.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ComplexAstrobj.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ComplexMetric.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-DeformedTorus.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-DirectionalDisk.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Disk3D.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-DynamicalDisk.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-DynamicalDisk3D.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-DynamicalDiskBolometric.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-EquatorialHotSpot.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-FixedStar.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-FlaredDiskSynchrotron.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-FreeStar.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Hayward.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-InflateStar.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Jet.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-KappaDistributionSynchrotronSpectrum.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-KerrBL.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-KerrKS.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Minkowski.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-OscilTorus.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-PageThorneDisk.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-PatternDisk.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-PatternDiskBB.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Plasmoid.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-PolishDoughnut.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-PowerLawSpectrum.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-PowerLawSynchrotronSpectrum.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-RezzollaZhidenko.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-SchwarzschildHarmonic.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Shift.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-SphericalAccretion.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Star.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-StarTrace.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-StdPlug.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ThermalBremsstrahlungSpectrum.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ThermalSynchrotronSpectrum.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ThickDisk.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ThinDiskGridIntensity.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ThinDiskIronLine.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ThinDiskPL.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ThinDiskProfile.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Torus.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-UniformSphere.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-XillverReflection.Plo -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-library_includeHEADERS install-pkgconfigDATA \ install-soverLTLIBRARIES install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/Astrobj.Plo -rm -f ./$(DEPDIR)/ComplexSpectrometer.Plo -rm -f ./$(DEPDIR)/Converters.Plo -rm -f ./$(DEPDIR)/Error.Plo -rm -f ./$(DEPDIR)/Factory.Plo -rm -f ./$(DEPDIR)/FitsRW.Plo -rm -f ./$(DEPDIR)/Functors.Plo -rm -f ./$(DEPDIR)/GridData2D.Plo -rm -f ./$(DEPDIR)/Hooks.Plo -rm -f ./$(DEPDIR)/Metric.Plo -rm -f ./$(DEPDIR)/Object.Plo -rm -f ./$(DEPDIR)/Photon.Plo -rm -f ./$(DEPDIR)/Property.Plo -rm -f ./$(DEPDIR)/Register.Plo -rm -f ./$(DEPDIR)/Scenery.Plo -rm -f ./$(DEPDIR)/Screen.Plo -rm -f ./$(DEPDIR)/SmartPointer.Plo -rm -f ./$(DEPDIR)/Spectrometer.Plo -rm -f ./$(DEPDIR)/Spectrum.Plo -rm -f ./$(DEPDIR)/StandardAstrobj.Plo -rm -f ./$(DEPDIR)/ThinDisk.Plo -rm -f ./$(DEPDIR)/UniformSpectrometer.Plo -rm -f ./$(DEPDIR)/Utils.Plo -rm -f ./$(DEPDIR)/Value.Plo -rm -f ./$(DEPDIR)/WIP.Plo -rm -f ./$(DEPDIR)/Worldline.Plo -rm -f ./$(DEPDIR)/WorldlineIntegState.Plo -rm -f ./$(DEPDIR)/libgyoto_lorene_la-LorenePlug.Plo -rm -f ./$(DEPDIR)/libgyoto_lorene_la-NeutronStar.Plo -rm -f ./$(DEPDIR)/libgyoto_lorene_la-NeutronStarAnalyticEmission.Plo -rm -f ./$(DEPDIR)/libgyoto_lorene_la-NeutronStarModelAtmosphere.Plo -rm -f ./$(DEPDIR)/libgyoto_lorene_la-NumericalMetricLorene.Plo -rm -f ./$(DEPDIR)/libgyoto_lorene_la-RotStar3_1.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-BlackBodySpectrum.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Blob.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ChernSimons.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ComplexAstrobj.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ComplexMetric.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-DeformedTorus.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-DirectionalDisk.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Disk3D.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-DynamicalDisk.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-DynamicalDisk3D.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-DynamicalDiskBolometric.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-EquatorialHotSpot.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-FixedStar.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-FlaredDiskSynchrotron.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-FreeStar.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Hayward.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-InflateStar.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Jet.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-KappaDistributionSynchrotronSpectrum.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-KerrBL.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-KerrKS.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Minkowski.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-OscilTorus.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-PageThorneDisk.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-PatternDisk.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-PatternDiskBB.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Plasmoid.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-PolishDoughnut.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-PowerLawSpectrum.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-PowerLawSynchrotronSpectrum.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-RezzollaZhidenko.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-SchwarzschildHarmonic.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Shift.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-SphericalAccretion.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Star.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-StarTrace.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-StdPlug.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ThermalBremsstrahlungSpectrum.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ThermalSynchrotronSpectrum.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ThickDisk.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ThinDiskGridIntensity.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ThinDiskIronLine.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ThinDiskPL.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-ThinDiskProfile.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-Torus.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-UniformSphere.Plo -rm -f ./$(DEPDIR)/libgyoto_stdplug_la-XillverReflection.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-libLTLIBRARIES \ uninstall-library_includeHEADERS uninstall-pkgconfigDATA \ uninstall-soverLTLIBRARIES @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) uninstall-hook .MAKE: install-am install-strip uninstall-am .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libLTLIBRARIES clean-libtool \ clean-soverLTLIBRARIES cscopelist-am ctags ctags-am distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags 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-libLTLIBRARIES install-library_includeHEADERS \ install-man install-pdf install-pdf-am install-pkgconfigDATA \ install-ps install-ps-am install-soverLTLIBRARIES \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \ uninstall-hook uninstall-libLTLIBRARIES \ uninstall-library_includeHEADERS uninstall-pkgconfigDATA \ uninstall-soverLTLIBRARIES .PRECIOUS: Makefile uninstall-hook: -rmdir $(DESTDIR)$(soverdir) -rmdir $(DESTDIR)$(pkglibdir) -rmdir $(DESTDIR)$(library_includedir) # 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: Gyoto-2.0.2/lib/Metric.C000066400000000000000000000642351455254334400147340ustar00rootroot00000000000000/* Copyright 2011-2016, 2018-2020 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include #include #include "GyotoMetric.h" #include "GyotoFactoryMessenger.h" #include "GyotoConverters.h" #include "GyotoProperty.h" #include "GyotoWorldline.h" #include #include #include using namespace std ; using namespace Gyoto; Register::Entry* Metric::Register_ = NULL; //// Gyoto::Object API GYOTO_PROPERTY_START(Metric::Generic, "The geometry of space-time at this end of the Universe.") GYOTO_PROPERTY_DOUBLE_UNIT(Metric::Generic, Mass, mass, "Mass for scaling geometrical units to meters (kg, 1.).") GYOTO_PROPERTY_BOOL(Metric::Generic, Keplerian, NonKeplerian, keplerian, "Whether to use the Keplerian approximation in circularVelocity().") GYOTO_PROPERTY_DOUBLE(Metric::Generic, DeltaMin, deltaMin, "Minimum step for Legacy integrator (geometrical units, DBL_MIN).") GYOTO_PROPERTY_DOUBLE(Metric::Generic, DeltaMax, deltaMax, "Maximum step for Legacy integrator (geometrical units, DBL_MAX).") GYOTO_PROPERTY_DOUBLE(Metric::Generic, DeltaMaxOverR, deltaMaxOverR, "Max of step/r coordinate for Legacy integrator (geometrical units, 1)") GYOTO_PROPERTY_END(Metric::Generic, Object::properties) /// /* User code is free to provide any or none of the various versions of gmunu_up(). The default implementations call one another to try and find user-provided code, but a default implementation needs to be triggered if none are provided. In order to avoid infinite recursion as well as for efficiency, several of those methose set a flag in __defaultfeatures if they are called to inform the other methods. This is what each method will try: - coefficient gmunu_up: + matrix gmunu_up; - matrix gmunu_up: + coefficient gmunu_up + fall back to inverting gmunu matrix. */ #define __default_gmunu_up_coef 1 #define __default_gmunu_up_matrix 2 #define __default_jacobian 4 #define __default_gmunu_up_and_jacobian 8 #define __default_christoffel_coef 16 #define __default_christoffel_matrix 32 Metric::Generic::Generic() : SmartPointee(), Object("anonymous metric"), mass_(1.), coordkind_(GYOTO_COORDKIND_UNSPECIFIED), __defaultfeatures(0), delta_min_(GYOTO_DEFAULT_DELTA_MIN), delta_max_(GYOTO_DEFAULT_DELTA_MAX), delta_max_over_r_(GYOTO_DEFAULT_DELTA_MAX_OVER_R), keplerian_(false) { } Metric::Generic::Generic(const int coordkind, const std::string &name) : SmartPointee(), Object(name), mass_(1.), coordkind_(coordkind), __defaultfeatures(0), delta_min_(GYOTO_DEFAULT_DELTA_MIN), delta_max_(GYOTO_DEFAULT_DELTA_MAX), delta_max_over_r_(GYOTO_DEFAULT_DELTA_MAX_OVER_R), keplerian_(false) { # if GYOTO_DEBUG_ENABLED GYOTO_IF_DEBUG GYOTO_DEBUG_EXPR(coordkind_); GYOTO_DEBUG_EXPR(kind_); GYOTO_ENDIF_DEBUG # endif } Metric::Generic::Generic(Generic const &o): SmartPointee(o), Object(o), mass_(o.mass_), coordkind_(o.coordkind_), __defaultfeatures(o.__defaultfeatures), delta_min_(o.delta_min_), delta_max_(o.delta_max_), delta_max_over_r_(o.delta_max_over_r_), keplerian_(o.keplerian_) {} Metric::Generic * Metric::Generic::clone() const { string msg = "Metric::Generic::clone() called: cloning not supported for metric kind "; msg += kind(); GYOTO_ERROR (msg); return const_cast(this); // to avoid warning } Metric::Generic::~Generic(){ # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif } // Output /***************Definition of the physical scene**************/ void Metric::Generic::mass(const double mas) { mass_=mas; tellListeners(); } void Metric::Generic::mass(const double mas, const string &unit) { # ifdef GYOTO_DEBUG_ENABLED GYOTO_IF_DEBUG GYOTO_DEBUG_EXPR(mas); GYOTO_DEBUG_EXPR(unit); GYOTO_ENDIF_DEBUG # endif mass(Units::ToKilograms(mas, unit)); # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "(mass="<h1max_at_r) h1max_at_r=abs(pos[2]); if (abs(pos[3])>h1max_at_r) h1max_at_r=abs(pos[3]); } h1max_at_r *= delta_max_over_r_; if (h1max > h1max_at_r) h1max = h1max_at_r; if (h1max>delta_max_) h1max=delta_max_; if (h1max=0) { GYOTO_WARNING << "v>c\n"; return 0.; } return pow(-sum, -0.5); } void Metric::Generic::nullifyCoord(double coord[8]) const { double tdot2; nullifyCoord(coord, tdot2); } void Metric::Generic::nullifyCoord(double coord[8], double& tdot2) const { int i, j; double a, b=0., c=0.; double g[4][4]; gmunu(g, coord); a=g[0][0]; for (i=1;i<=3;++i) { b+=g[0][i]*coord[4+i]; for (j=1;j<=3;++j) { c+=g[i][j]*coord[4+i]*coord[4+j]; } } double sDelta=sqrt(b*b-a*c), am1=1./a; tdot2=(-b+sDelta)*am1; coord[4]=(-b-sDelta)*am1; } void Metric::Generic::normalizeFourVel(double coord[8]) const { normalizeFourVel(coord, coord+4); } void Metric::Generic::normalizeFourVel(double const pos[4], double fourvel[4]) const { double tdotin=fourvel[0]; double threevel[3]={fourvel[1]/tdotin, fourvel[2]/tdotin, fourvel[3]/tdotin}; fourvel[0]=SysPrimeToTdot(pos, threevel); for (int k = 0; k<3; ++k) fourvel[k+1]=threevel[k]*fourvel[0]; } double Metric::Generic::ScalarProd(const double pos[4], const double u1[4], const double u2[4]) const { double res=0.; double g[4][4]; gmunu(g, pos); for (int i=0;i<4;i++) { for (int j=0;j<4;j++) { res+=g[i][j]*u1[i]*u2[j]; } } return res; } double Metric::Generic::norm(const double pos[4], const double u1[4]) const { double norm2=ScalarProd(pos, u1, u1); return ((norm2>0.)-(norm2<0.))*sqrt(abs(norm2)); } void Metric::Generic::multiplyFourVect(double vect[4], double a) const { for (int k=0; k<4; ++k) vect[k] *= a; } void Metric::Generic::addFourVect(double u1[4], double const u2[4]) const { for (int k=0; k<4; ++k) u1[k] += u2[k]; } void Metric::Generic::projectFourVect(double const pos[4], double u1[4], double const u2[4]) const { double n=norm(pos, u2); double s=(n>0)-(n<0); double absinvn=1./abs(n); double u[4]={u2[0]*absinvn, u2[1]*absinvn, u2[2]*absinvn, u2[3]*absinvn}; multiplyFourVect(u, -s*ScalarProd(pos, u, u1)); addFourVect(u1, u); } void Metric::Generic::dualOneForm(double const IN_ARRAY1[4], double const IN_ARRAY2[4], double ARGOUT_ARRAY3[4]) const { double g[4][4]; gmunu(g, IN_ARRAY1); for (int nu=0; nu<4; nu++) { ARGOUT_ARRAY3[nu]=0.; for (int mu=0; mu<4; mu++) { ARGOUT_ARRAY3[nu] += g[mu][nu]*IN_ARRAY2[mu]; } } } /***************Geodesic most general integration**************/ double Metric::Generic::gmunu(const double x[4], int mu, int nu) const { double g[4][4]; gmunu(g, x); return g[mu][nu]; } void Metric::Generic::gmunu(double g[4][4], const double x[4]) const { int mu, nu; for (mu=0; mu<4; ++mu) { g[mu][mu]=gmunu(x, mu, mu); for (nu=mu+1; nu<4; ++nu) g[mu][nu]=g[nu][mu]=gmunu(x, mu, nu); } } double Metric::Generic::gmunu_up(const double x[4], int mu, int nu) const { const_cast(this)->__defaultfeatures |= __default_gmunu_up_coef; double g[4][4]; gmunu_up(g, x); return g[mu][nu]; } void Metric::Generic::gmunu_up(double gup[4][4], const double x[4]) const { const_cast(this)->__defaultfeatures |= __default_gmunu_up_matrix; if (!(__defaultfeatures & __default_gmunu_up_coef)) { // if gmunu_up(x, mu, nu) is not the default (or we don't know), use it int mu, nu; for (mu=0; mu<4; ++mu) { gup[mu][mu]=gmunu_up(x, mu, mu); for (nu=mu+1; nu<4; ++nu) gup[mu][nu]=gup[nu][mu]=gmunu_up(x, mu, nu); } } else if (!(__defaultfeatures & __default_gmunu_up_and_jacobian)){ // if gmunu_up_and_jacobian is not the default (or we don't know), use it double jac[4][4][4]; gmunu_up_and_jacobian(gup, jac, x); } else { // else call g and invert it double g[4][4]; gmunu(g, x); Gyoto::matrix4Invert(gup, g); } } void Metric::Generic::jacobian(double jac[4][4][4], const double x0[4]) const { const_cast(this)->__defaultfeatures |= __default_jacobian; if (__defaultfeatures & __default_gmunu_up_and_jacobian) { // If gmunu_up_and_jacobian is the default, do the same // thing. This saves computing gmunu_up needlessly. double g0[4][4], gx[4][4], h=1e-7, x[4]={x0[0], x0[1], x0[2], x0[3]}; gmunu(g0, x0); for (int alpha=0; alpha<4; ++alpha) { x[alpha]=x0[alpha]+h; gmunu(gx, x); for (int mu=0; mu<4;mu++) { jac[alpha][mu][mu] = (gx[mu][mu]-g0[mu][mu])/h; for (int nu=mu+1; nu<4;nu++) { jac[alpha][nu][mu] = jac[alpha][mu][nu] = (gx[mu][nu]-g0[mu][nu])/h; } } x[alpha]=x0[alpha]; } } else { double gup[4][4]; gmunu_up_and_jacobian(gup, jac, x0) ; } } void Metric::Generic::gmunu_up_and_jacobian(double gup[4][4], double jac[4][4][4], const double x0[4]) const { const_cast(this)->__defaultfeatures |= __default_gmunu_up_and_jacobian; double g0[4][4]; if ( ((__defaultfeatures & __default_gmunu_up_coef) &&(__defaultfeatures & __default_gmunu_up_matrix)) || (__defaultfeatures & __default_jacobian) ) { // If (all gmunu_up flavors) or (jacobian) is the default // implementation , we will need the covariant metric coefficient // matrix at this point. gmunu(g0, x0); } if ((__defaultfeatures & __default_gmunu_up_coef) &&(__defaultfeatures & __default_gmunu_up_matrix)) { // If all flavors of gmunu_up are default implementations, // don't call them: invert g0. Gyoto::matrix4Invert(gup, g0); } else { gmunu_up(gup, x0); } if (__defaultfeatures & __default_jacobian) { // If jacobian is the default implementation, derive g numerically. double gx[4][4], h=1e-7, x[4]={x0[0], x0[1], x0[2], x0[3]}; for (int alpha=0; alpha<4; ++alpha) { x[alpha]=x0[alpha]+h; gmunu(gx, x); for (int mu=0; mu<4;mu++) { jac[alpha][mu][mu] = (gx[mu][mu]-g0[mu][mu])/h; for (int nu=mu+1; nu<4;nu++) { jac[alpha][nu][mu] = jac[alpha][mu][nu] = (gx[mu][nu]-g0[mu][nu])/h; } } x[alpha]=x0[alpha]; } return; } else { jacobian(jac, x0); } } void Metric::Generic::computeNBeta(const double coord[4], double &NN,double beta[3]) const { throwError("In Metric::computeNBeta not implemented"); } double Metric::Generic::christoffel(const double * x, int alpha, int mu, int nu) const { const_cast(this)->__defaultfeatures |= __default_christoffel_coef; double dst[4][4][4]; christoffel(dst, x); return dst[alpha][mu][nu]; } int Metric::Generic::christoffel(double dst[4][4][4], const double * x) const { const_cast(this)->__defaultfeatures |= __default_christoffel_matrix; int a, mu, nu, i; if (__defaultfeatures & __default_christoffel_coef) { // if christoffel(x, a, mu, nu) is the default implementation, // rely on gmunu_up_and_jacobian double gup[4][4], jac[4][4][4]; gmunu_up_and_jacobian(gup, jac, x); // computing Gamma^a_mu_nu for (a=0; a<4; ++a) { for (mu=0; mu<4; ++mu) { for (nu=mu; nu<4; ++nu) { dst[a][mu][nu]=0.; for (i=0; i<4; ++i) { dst[a][mu][nu]+=0.5*gup[i][a]* (jac[mu][i][nu]+jac[nu][mu][i]-jac[i][mu][nu]); } if (mu!=nu) dst[a][nu][mu] = dst[a][mu][nu]; } } } } else { // else get the coefficients one by one for (a=0; a<4; ++a) { for (mu=0; mu<4; ++mu) { dst[a][mu][mu]=christoffel(x, a, mu, mu); for (nu=mu+1; nu<4; ++nu) dst[a][mu][nu]=dst[a][nu][mu]=christoffel(x, a, mu, nu); } } } return 0; } /* Let : Y=[x0,x1,x2,x3,x0_dot,x1_dot,x2_dot,x3_dot] (dot=d/dtau, tau=proper time) diff is such as : Y_dot=diff(Y) The general equation of geodesics is used. */ int Metric::Generic::diff(const state_t &x, state_t &dxdt, double /* mass */) const { if (x.size()<8) GYOTO_ERROR("x should have at least 8 elements"); if (x.size() != dxdt.size()) GYOTO_ERROR("x.size() should be the same as dxdt.size()"); if (x[4]<1e-6) return 1; int nvec = (x.size()-4)/4; dxdt[0]=x[4]; dxdt[1]=x[5]; dxdt[2]=x[6]; dxdt[3]=x[7]; double dst[4][4][4]; int retval=christoffel(dst, x.data()); if (retval) return retval; for(int alpha=0; alpha<4; ++alpha) { for (int v=1; v<=nvec; ++v) dxdt[alpha+4*v]=0.; for (int i=0;i<4;i++) for (int j=0;j<4;j++) for (int v=1; v<=nvec; ++v) dxdt[alpha+v*4] -= dst[alpha][i][j]*x[4+i]*x[v*4+j]; } return 0; } int Metric::Generic::diff31(const state_t &x, state_t &dxdt, double /* mass */) const { throwError("In Metric::diff31 not implemented"); } /*Runge Kutta to order 4 */ //int Metric::Generic::myrk4(const double y[6], const double* cst , double h, double* res) const{ int Metric::Generic::myrk4(Worldline * line, const state_t &coord, double h, state_t &res) const{ //cout << "In Metric::Generic::myrk4" << endl; size_t sz = coord.size(); state_t k1(sz) ; state_t k2(sz) ; state_t k3(sz) ; state_t k4(sz) ; state_t coord_plus_halfk1(sz) ; state_t sixth_k1(sz) ; state_t coord_plus_halfk2(sz) ; state_t third_k2(sz) ; state_t coord_plus_k3(sz) ; state_t third_k3(sz) ; state_t sixth_k4(sz) ; double mass=line->getMass(); if (diff(coord, k1, mass)) return 1 ; for (int i=0;i<8;i++) { k1[i]=h*k1[i]; coord_plus_halfk1[i]=coord[i]+0.5*k1[i]; sixth_k1[i]=1./6.*k1[i]; } if (diff(coord_plus_halfk1, k2, mass)) return 1 ; for (int i=0;i<8;i++) { k2[i]=h*k2[i]; coord_plus_halfk2[i]=coord[i]+0.5*k2[i]; third_k2[i]=1./3.*k2[i]; } if (diff(coord_plus_halfk2, k3, mass)) return 1 ; for (int i=0;i<8;i++) { k3[i]=h*k3[i]; coord_plus_k3[i]=coord[i]+k3[i]; third_k3[i]=1./3.*k3[i]; } if (diff(coord_plus_k3, k4, mass)) return 1 ; for (int i=0;i<8;i++) { k4[i]=h*k4[i]; sixth_k4[i]=1./6.*k4[i]; } for (int i=0;i<8;i++) { res[i]=coord[i]+sixth_k1[i]+third_k2[i]+third_k3[i]+sixth_k4[i]; } return 0; } void Metric::Generic::circularVelocity(double const * coor, double* vel, double dir) const { if (!keplerian_) { stringstream ss; ss << kind_ << "::circularVelocity() is not implemented. " <<"Use \"\" for the Keplerian approximation."; GYOTO_ERROR(ss.str()); } if (coordkind_==GYOTO_COORDKIND_SPHERICAL) { double sinth = sin(coor[2]); double coord[4] = {coor[0], coor[1]*sinth, M_PI*0.5, coor[3]}; vel[1] = vel[2] = 0.; vel[3] = 1./(dir*pow(coord[1], 1.5)); vel[0] = SysPrimeToTdot(coor, vel+1); vel[3] *= vel[0]; } else if (coordkind_==GYOTO_COORDKIND_CARTESIAN) { double rcross=sqrt ( coor[1]*coor[1] + coor[2]*coor[2] ); double Omega=dir*pow(rcross*rcross*rcross, -0.5); //angular Keplerian velocity vel[1] = -coor[2]*Omega; vel[2] = coor[1]*Omega; vel[3] = 0.; vel[0] = SysPrimeToTdot(coor, vel+1); vel[1] *= vel[0]; vel[2] *= vel[0]; } else GYOTO_ERROR("Unknownn COORDKIND"); } void Metric::Generic::zamoVelocity(double const * pos, double* vel) const { double ephi[4] = {0., 0., 0., 1.}; vel [1] = vel [2] = vel [3] = 0.; vel [0] = 1.; if (coordkind_==GYOTO_COORDKIND_CARTESIAN) { // ephi in Cartesian double phi=atan2(pos[2], pos[1]); double cp, sp; sincos(phi, &sp, &cp); ephi[0]=0.; ephi[1]=-sp; ephi[2]=cp; ephi[3]=0.; } projectFourVect(pos, vel, ephi); multiplyFourVect(vel, 1./fabs(norm(pos, vel))); } void Metric::Generic::cartesianVelocity(double const coord[8], double vel[3]) { double tauprime; switch(coordkind_) { case GYOTO_COORDKIND_SPHERICAL: { double r = coord[1]; double costheta = cos(coord[2]), sintheta = sin(coord[2]); double cosphi = cos(coord[3]), sinphi = sin(coord[3]); tauprime = 1./coord[4]; double rprime = coord[5]*tauprime; double thetaprime = coord[6]*tauprime; double phiprime = coord[7]*tauprime; vel[0] = rprime * sintheta * cosphi + r * thetaprime * costheta * cosphi - r * phiprime * sintheta * sinphi; vel[1] = rprime * sintheta * sinphi + r * thetaprime * costheta * sinphi + r * phiprime * sintheta * cosphi; vel[2] = rprime * costheta - r * thetaprime * sintheta ; } break; case GYOTO_COORDKIND_CARTESIAN: tauprime = 1./coord[4]; vel[0] = coord[5]*tauprime; vel[1] = coord[6]*tauprime; vel[2] = coord[7]*tauprime; break; default: GYOTO_ERROR ("Metric::Generic::cartesianVelocity: unknown coordinate kind"); } } int Metric::Generic::myrk4_adaptive(Worldline* line, state_t const &coord, double lastnorm , double normref, state_t &coordnew, double h0, double& h1, double h1max) const{ double delta0[8]; double delta0min=1e-15; state_t dcoord(coord.size()); double eps=0.0001; double S=0.9; double errmin=1e-6; double factnorm=2.; double mass=line->getMass(); h1max=deltaMax(coord.data(), h1max); //cout << "1st diff" << endl; diff(coord, dcoord, mass) ; for (int i = 0;i<8;i++) delta0[i]=delta0min+eps*(fabs(h0*dcoord[i])); double hbis=0.5*h0; state_t coordhalf(coord.size()); state_t coord2(coord.size()); double delta1[8]; double err; int count=0; double newnorm; /*cout << "coord= "; for (int jj=0;jj<8;jj++) { cout << coord[jj] << " " ; } cout << endl;*/ while (1){ count++; //cout << "count in rk Met= " << count << endl; err=0.; //cout << "then diff" << endl; if ( myrk4(line,coord,h0,coordnew) | myrk4(line,coord,hbis,coordhalf)| myrk4(line,coordhalf,hbis,coord2) ) return 1; //cout << "end then diff" << endl; /* cout << "coordnew= "; for (int jj=0;jj<8;jj++) { cout << coordnew[jj] << " " ; } cout << endl;*/ for (int i = 0;i<8;i++){ delta1[i]=coord2[i]-coordnew[i]; double err_i=fabs(delta1[i]/delta0[i]); if (err1) { h0=S*h0*pow(err,-0.25); hbis=0.5*h0; }else{ h1=(err > errmin ? S*h0*pow(err,-0.2) : 4.*h0);//pour éviter les explosions if (fabs(h1)0.)?delta_min_:-delta_min_; if (fabs(h1)>h1max) h1=(h0>0.)?h1max:-h1max; //Testing tangent vector norm stays next to 0 : newnorm=ScalarProd(coordnew.data(), coordnew.data()+4, coordnew.data()+4); if ( fabs(newnorm-normref) > factnorm*fabs(lastnorm-normref) ) { //cout << "norm big!" << endl; //cout << "newnorm= " << newnorm << endl; //myrk4(coord,h0/10.,coordnew); //h1/=10.; } GYOTO_DEBUG << "step used= " << h0 << endl; break; } } return 0; } double Metric::Generic::unitLength() const { return mass_ * GYOTO_G_OVER_C_SQUARE; } double Metric::Generic::unitLength(const string &unit) const { return Units::FromMeters(unitLength(), unit); } int Metric::Generic::isStopCondition(double const * const ) const { return 0; } void Metric::Generic::setParticleProperties(Worldline*, const double*) const { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif } void Metric::Generic::observerTetrad(obskind_t obskind, double const coord[4], double fourvel[4], double screen1[4], double screen2[4], double screen3[4]) const{ if (obskind == GYOTO_OBSKIND_ZAMO) { zamoVelocity(coord, fourvel); } else if (obskind== GYOTO_OBSKIND_KEPLERIAN) { circularVelocity(coord, fourvel); } else if (obskind != GYOTO_OBSKIND_FULLYSPECIFIED) { normalizeFourVel(coord, fourvel); } if (obskind != GYOTO_OBSKIND_FULLYSPECIFIED) observerTetrad(coord, fourvel, screen1, screen2, screen3); // No general way to define the tetrad, should be defined // in specific metrics. Test below will obviously fail for // a machine-initialized tetrad. double normtol=1e-10; if (fabs(ScalarProd(coord,fourvel,fourvel)+1.)>normtol || fabs(ScalarProd(coord,screen1,screen1)-1.)>normtol || fabs(ScalarProd(coord,screen2,screen2)-1.)>normtol || fabs(ScalarProd(coord,screen3,screen3)-1.)>normtol){ GYOTO_SEVERE << "In Metric:observerTetrad: observer's local " << "basis is not properly normalized " << "norm-(-1, 1, 1, 1)= " << ScalarProd(coord,fourvel,fourvel)+1. << " " << ScalarProd(coord,screen1,screen1)-1. << " " << ScalarProd(coord,screen2,screen2)-1. << " " << ScalarProd(coord,screen3,screen3)-1. << endl; } if (fabs(ScalarProd(coord,fourvel,screen1))>normtol || fabs(ScalarProd(coord,fourvel,screen2))>normtol || fabs(ScalarProd(coord,fourvel,screen3))>normtol || fabs(ScalarProd(coord,screen1,screen2))>normtol || fabs(ScalarProd(coord,screen1,screen3))>normtol || fabs(ScalarProd(coord,screen2,screen3))>normtol){ GYOTO_SEVERE << "In Metric:observerTetrad: observer's local " << "basis is not orthogonal" << endl; } } void Metric::Generic::GramSchmidt(double const pos[4], double u0[4], double u1[4], double u2[4], double u3[4]) const { // This is the Gram-Schmidt process according to // https://en.wikipedia.org/wiki/Gram%E2%80%93Schmidt_process // normalize u0 multiplyFourVect(u0, 1./abs(norm(pos, u0))); // project u1 onto hyperplane othogonal to u0 // then normalize u1 projectFourVect(pos, u1, u0); multiplyFourVect(u1, 1./abs(norm(pos, u1))); // project u2 along u0, then along u1, then normalize it projectFourVect(pos, u2, u0); projectFourVect(pos, u2, u1); multiplyFourVect(u2, 1./abs(norm(pos, u2))); // project u3 along u0, u1 and u2 then normalize it projectFourVect(pos, u3, u0); projectFourVect(pos, u3, u1); projectFourVect(pos, u3, u2); multiplyFourVect(u3, 1./abs(norm(pos, u3))); } void Metric::Generic::observerTetrad(double const pos[4], double fourvel[4], double screen1[4], double screen2[4], double screen3[4]) const{ // following Krolik & Hawley 2004 // https://iopscience.iop.org/article/10.1086/427932/fulltext/ // Start with U, ephi, er, etheta and us Gram-Schmidt orthonormalization // Warning, this is not really what Krolik & Hawley did. switch(coordkind_) { case GYOTO_COORDKIND_SPHERICAL: screen1[0]=0.; screen1[1]=0.; screen1[2]=0.; screen1[3]=-1.; screen2[0]=0.; screen2[1]=0.; screen2[2]=-1.; screen2[3]=0.; screen3[0]=0.; screen3[1]=-1.; screen3[2]=0.; screen3[3]=0.; break; case GYOTO_COORDKIND_CARTESIAN: { double rp=sqrt(pos[1]*pos[1]+pos[2]*pos[2]); double theta=atan2(rp, pos[3]); double phi=atan2(pos[2], pos[1]); double ct, st, cp, sp; sincos(phi, &sp, &cp); sincos(theta, &st, &ct); screen1[0]=0.; screen1[1]=sp; screen1[2]=-cp; screen1[3]=0.; screen2[0]=0.; screen2[1]=-ct*cp; screen2[2]=-ct*sp; screen2[3]=st; screen3[0]=0.; screen3[1]=-pos[1]; screen3[2]=-pos[2]; screen3[3]=-pos[3]; } break; default: GYOTO_ERROR ("Metric::Generic::observerTetrad: unknown coordinate kind"); } GramSchmidt(pos, fourvel, screen2, screen3, screen1); } double Metric::Generic::getRmb() const{ GYOTO_ERROR("In Metric::getRmb: should be implemented " "in the derived metric"); return 0.; // silence warning } double Metric::Generic::getRms() const{ GYOTO_ERROR("In Metric::getRms: should be implemented " "in the derived metric"); return 0.; // silence warning } double Metric::Generic::getSpecificAngularMomentum(double rr) const{ GYOTO_ERROR("In Metric::getSpecificAngularMomentum: should be implemented " "in the derived metric"); return 0.; // silence warning } double Metric::Generic::getPotential(double const pos[4], double l_cst) const{ GYOTO_ERROR("In Metric::getPotential: should be implemented " "in the derived metric"); return 0.; // silence warning } /***************For SmartPointers**************/ int Metric::Generic::getRefCount() { return SmartPointee::getRefCount(); } void Metric::initRegister() { if (Gyoto::Metric::Register_) delete Gyoto::Metric::Register_; Gyoto::Metric::Register_ = NULL; } void Gyoto::Metric::Register(std::string name, Metric::Subcontractor_t* scp) { Register::Entry* ne = new Register::Entry(name, (Gyoto::SmartPointee::Subcontractor_t*) scp, Gyoto::Metric::Register_); Gyoto::Metric::Register_ = ne; } GYOTO_GETSUBCONTRACTOR(Metric) Gyoto-2.0.2/lib/Minkowski.C000066400000000000000000000246771455254334400154720ustar00rootroot00000000000000/* Copyright 2014, 2015, 2019-2020 Thibaut Paumard & Frédéric Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoMinkowski.h" #include "GyotoError.h" #include "GyotoProperty.h" #include using namespace std ; using namespace Gyoto ; using namespace Gyoto::Metric ; //// Property list: // // Note that none of those lines ends with punctation. "," and ";" are // added by the macros where needed. Three steps: // 1- GYOTO_PROPERTY_START() // 2- For each Property we want to support, a line such as: // GYOTO_PROPERTY_(, , ) // Note that the BOOL type is a bit special: the argument // is replaced by two arguments: and // . // 3- GYOTO_PROPERTY_END(, ) // //// GYOTO_PROPERTY_START(Minkowski, "Flat space-time.") GYOTO_PROPERTY_BOOL(Minkowski, Spherical, Cartesian, spherical, "Whether to use spherical or Cartesian coordinates.") GYOTO_PROPERTY_END(Minkowski, Generic::properties) // This is the minimal constructor: it just sets the coordinate kind and // the metric kind name. Minkowski::Minkowski() : Generic(GYOTO_COORDKIND_CARTESIAN, "Minkowski") {} // The cloner is necessary. If the metric class is not trivial (e.g. contains // arrays), it may be necessary to implement the copy constructor as well. Minkowski* Minkowski::clone() const { return new Minkowski(*this); } void Minkowski::gmunu(double g[4][4], const double * pos) const { GYOTO_DEBUG<3 || nu>3) GYOTO_ERROR ("Minkowski::gmunu: incorrect value for mu or nu"); if (mu!=nu) return 0.; if (mu==0) return -1.; double tmp; switch (coordKind()) { case GYOTO_COORDKIND_CARTESIAN: return 1.; case GYOTO_COORDKIND_SPHERICAL: switch (mu) { case 1: return 1.; case 2: return pos[1]*pos[1]; case 3: tmp=pos[1]*sin(pos[2]); return tmp*tmp; } } GYOTO_ERROR("BUG: this point should not be reached."); return 0.; } double Minkowski::christoffel(const double pos[8], const int alpha, const int mmu, const int nnu) const { if (coordKind()==GYOTO_COORDKIND_CARTESIAN) return 0.; if (alpha==0) return 0; double tmp, tmp2; int mu, nu; if (nnu 8) GYOTO_ERROR("No parallel transport for time-like geodesics"); // x[4:8] is actually dx[0:4]/dt dxdt[0]=xi[4]; dxdt[1]=xi[5]; dxdt[2]=xi[6]; dxdt[3]=xi[7]; // Now the actual equation of motion: d²x/dt²=-ur/r² double t, x, y, z, tdot, xdot, ydot, zdot, r, theta, phi, rdot, thetadot, phidot, tdotdot, xdotdot, ydotdot, zdotdot, rdotdot, thetadotdot, phidotdot, r3, tdot3; double sth, cth, sph, cph; t=xi[0]; tdot=xi[4]; // Convert to Cartesian switch (coordKind()) { case GYOTO_COORDKIND_CARTESIAN: x=xi[1]; y=xi[2]; z=xi[3]; xdot=xi[5]; ydot=xi[6]; zdot=xi[7]; r3=pow(x*x+y*y+z*z, 1.5); break; case GYOTO_COORDKIND_SPHERICAL: r=xi[1]; theta=xi[2]; phi=xi[3]; rdot=xi[5]; thetadot=xi[6]; phidot=xi[7]; r3=r*r*r; sincos(theta, &sth, &cth); sincos(phi, &sph, &cph); x=r*sth*cph; y=r*sth*sph; z=r*cth; xdot=rdot*sth*cph+r*thetadot*cth*cph-r*phidot*sth*sph; ydot=rdot*sth*sph+r*thetadot*cth*sph+r*phidot*sth*cph; zdot=rdot*cth-r*thetadot*sth; break; default: GYOTO_ERROR("unimplemented COORDKIND"); } if (r3==0) return 1; // Compute second derivatives according to Newton // First tdotdot /* Newton's law is yields:, xi'' = -xi / r³ for 1 <= i <= 3 (1) We also have xi' = xidot/tdot xi'' = d(xidot/tdot)/dt = d(xidot/tdot)/dtau / tdot xi'' = (xidotdot*tdot - tdotdot*xidot) / tdot³ thus we can rewrite Newton's law (1) as xidotdot*tdot - tdotdot*xidot = -xi * tdot³ / r³ for i in 1..3 (2) We also know that the norm of the quadri velocity is -1: -tdot² + sum(xidot²) = -1 (3) Derivating (3), it comes: tdot*tdotdot = sum(xidot*xidotdot) (4) Multiplying (2) by xidot and summing over 1..3: tdot*sum(xidot*xidotdot)-tdotdot*sum(xidot²)=-(tdot³/r³)*sum(xi*xidot) Thanks to (4), we can replace sum(xidot*xidotdot) by tdot*tdotdot, and then factorize tdotdot on the left-hand side: tdotdot*(tdot²-sum(xidot²))=-(tdot³/r³)*sum(xi*xidot) We recognize (4) and finally: tdotdot=-(tdot³/r³)*sum(xi*xidot) */ tdot3=tdot*tdot*tdot; tdotdot=-tdot3*(x*xdot+y*ydot+z*zdot)/r3; // Then the rest /* We use (2) again to get xidotdot: xidotdot=(-xi*tdot³/r³+tdotdot*xidot)/tdot */ xdotdot=(-x*tdot3/r3+tdotdot*xdot)/tdot; ydotdot=(-y*tdot3/r3+tdotdot*ydot)/tdot; zdotdot=(-z*tdot3/r3+tdotdot*zdot)/tdot; // Convert back to COORDKIND dxdt[4]=tdotdot; switch (coordKind()) { case GYOTO_COORDKIND_CARTESIAN: dxdt[5]=xdotdot; dxdt[6]=ydotdot; dxdt[7]=zdotdot; break; case GYOTO_COORDKIND_SPHERICAL: rdotdot=(xdotdot*x+ydotdot*y+zdotdot*z +xdot*xdot+ydot*ydot+zdot*zdot -rdot*rdot)/r; thetadotdot=( (z*rdotdot-zdotdot*r) -((z*rdot-zdot*r)*(2.*rdot*r*r*r-zdot*z*r*r-z*z*rdot*r) /(r*r*r*r-z*z*r*r)) ) *pow(r*r*r*r-z*z*r*r, -0.5); phidotdot=((ydotdot*x-y*xdotdot)*(x*x+y*y) -2.*(ydot*x-y*xdot)*(x*xdot+y*ydot)) /((x*x+y*y)*(x*x+y*y)); dxdt[5]=rdotdot; dxdt[6]=thetadotdot; dxdt[7]=phidotdot; break; default: GYOTO_ERROR("unimplemented COORDKIND"); } return 0; } Gyoto-2.0.2/lib/NeutronStar.C000066400000000000000000000113341455254334400157650ustar00rootroot00000000000000/* Copyright 2015 Frederic Vincent, 2017 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ // Lorene headers #include "metric.h" #include "nbr_spx.h" #include "utilitaires.h" #include "graphique.h" //Gyoto headers #include "GyotoUtils.h" #include "GyotoPhoton.h" #include "GyotoNeutronStar.h" #include "GyotoFactoryMessenger.h" //Std headers #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; using namespace Lorene; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(NeutronStar, "Neutron star emitting at its surface.") GYOTO_PROPERTY_END(NeutronStar, Standard::properties) NeutronStar::NeutronStar() : Standard("NeutronStar"), gg_(NULL) { GYOTO_DEBUG << endl; Generic::gg_=gg_; } NeutronStar::NeutronStar(std::string kin) : Standard(kin), gg_(NULL) { GYOTO_DEBUG << endl; Generic::gg_=gg_; } NeutronStar::NeutronStar(const NeutronStar& o) : Standard(o), gg_(NULL) { GYOTO_DEBUG << endl; if (o.gg_()) gg_=o.gg_->clone(); Generic::gg_=gg_; } NeutronStar * NeutronStar::clone() const { return new NeutronStar(*this); } NeutronStar::~NeutronStar() { GYOTO_DEBUG << endl; } SmartPointer NeutronStar::metric() const { GYOTO_DEBUG << endl; return gg_; } void NeutronStar::metric(SmartPointer met) { GYOTO_DEBUG << endl; SmartPointer smptr = SmartPointer(met); if (met && !smptr) { // The above cast will yield a null pointer if met is not a // NumericalMetricLorene. It's an error if smptr is null but met // is not. GYOTO_ERROR("NeutronStar::metric(): metric should " "be a NumericalMetricLorene"); } gg_ = smptr; Generic::metric(met); } double NeutronStar::operator()(double const coord[4]) { GYOTO_DEBUG << endl; if (gg_->coordKind() != GYOTO_COORDKIND_SPHERICAL){ GYOTO_ERROR("In NeutronStar::operator(): so far only spherical coord"); } double rcur = coord[1], thcur=coord[2], phcur=coord[3]; Valeur* ns_surf = gg_->getNssurf_tab()[0]; ns_surf->std_base_scal(); double rstar = ns_surf->val_point(0,0.,thcur,phcur); //cout << "rcur rstar in NS= " << rcur << " " << rstar << endl; return rcur-rstar; } void NeutronStar::getVelocity(double const pos[4], double uu[4]){ GYOTO_DEBUG << endl; double rr=pos[1], th=pos[2], phi=pos[3]; double rsinth = rr*sin(th); if (rr==0.) GYOTO_ERROR("In NeutronStar.C::computeVelSurf r is 0!"); if (rsinth==0.) GYOTO_ERROR("In NeutronStar.C::computeVelSurf on z axis!"); double rm1 = 1./rr, rm2 = rm1*rm1, sm1 = 1./sin(th), sm2 = sm1*sm1, rsm1 = rm1*sm1; const Vector& v_i = *(gg_->getVsurf_tab()[0]); // [0] means at t=0 (stationary spacetime here!) double v_r = v_i(1).val_point(rr,th,phi), v_t = rr*v_i(2).val_point(rr,th,phi), v_p = rr*sin(th)*v_i(3).val_point(rr,th,phi); const Sym_tensor& g_up_ij = *(gg_->getGamcon_tab()[0]); double grr=g_up_ij(1,1).val_point(rr,th,phi), gtt=rm2*g_up_ij(2,2).val_point(rr,th,phi), gpp=rm2*sm2*g_up_ij(3,3).val_point(rr,th,phi); double vr = v_r*grr, vt = v_t*gtt, vp = v_p*gpp; //contravariant 3-velocity //cout << "3v= " << vr << " " << vt << " " << vp << endl; Scalar* lorentz_scal = gg_->getLorentz_tab()[0]; double lorentz = lorentz_scal->val_point(rr,th,phi); const Vector& shift = *(gg_->getShift_tab()[0]); double betar = shift(1).val_point(rr,th,phi), betat = rm1*shift(2).val_point(rr,th,phi), betap = rsm1*shift(3).val_point(rr,th,phi); //cout << "beta= " << betar << " " << betat << " " << betap << endl; Scalar* lapse_scal = gg_->getLapse_tab()[0]; double lapse = lapse_scal->val_point(rr,th,phi); uu[0] = lorentz/lapse; uu[1] = lorentz*(vr - betar/lapse); uu[2] = lorentz*(vt - betat/lapse); uu[3] = lorentz*(vp - betap/lapse); //emitter 4-velocity //cout << "NS vel v3, u3= " << vp << " " << uu[3] << endl; /*cout << "4-vel= " ; for (int ii=0;ii<4;ii++) cout << uu[ii] << " "; cout << endl;*/ } Gyoto-2.0.2/lib/NeutronStarAnalyticEmission.C000066400000000000000000000051021455254334400211550ustar00rootroot00000000000000/* Copyright 2017 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ // Lorene headers #include "metric.h" #include "nbr_spx.h" #include "utilitaires.h" #include "graphique.h" //Gyoto headers #include "GyotoUtils.h" #include "GyotoPhoton.h" #include "GyotoNeutronStarAnalyticEmission.h" #include "GyotoFactoryMessenger.h" //Std headers #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; using namespace Lorene; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(NeutronStarAnalyticEmission, "Neutron star emitting at its surface.") GYOTO_PROPERTY_SPECTRUM(NeutronStarAnalyticEmission, Spectrum, spectrum, "Emission law.") GYOTO_PROPERTY_END(NeutronStarAnalyticEmission, NeutronStar::properties) NeutronStarAnalyticEmission::NeutronStarAnalyticEmission() : NeutronStar("NeutronStarAnalyticEmission"), spectrum_(NULL) { GYOTO_DEBUG << endl; } NeutronStarAnalyticEmission::NeutronStarAnalyticEmission(const NeutronStarAnalyticEmission& o) : NeutronStar(o), spectrum_(NULL) { GYOTO_DEBUG << endl; if (o.spectrum_()) spectrum_ = o.spectrum_->clone(); } NeutronStarAnalyticEmission * NeutronStarAnalyticEmission::clone() const { return new NeutronStarAnalyticEmission(*this); } NeutronStarAnalyticEmission::~NeutronStarAnalyticEmission() { GYOTO_DEBUG << endl; } SmartPointer NeutronStarAnalyticEmission::spectrum() const { return spectrum_; } void NeutronStarAnalyticEmission::spectrum(SmartPointer sp) {spectrum_=sp;} double NeutronStarAnalyticEmission::emission(double nu_em, double, state_t const &, double const *) const{ GYOTO_DEBUG << endl; if (flag_radtransf_) GYOTO_ERROR("Radiative transfer not implemented for NeutronStarAnalyticEmission."); return (*spectrum_)(nu_em); } Gyoto-2.0.2/lib/NeutronStarModelAtmosphere.C000066400000000000000000000726401455254334400210050ustar00rootroot00000000000000/* Copyright 2017, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ // Lorene headers #include "metric.h" #include "nbr_spx.h" #include "utilitaires.h" #include "graphique.h" //Gyoto headers #include "GyotoUtils.h" #include "GyotoPhoton.h" #include "GyotoNeutronStarModelAtmosphere.h" #include "GyotoFactoryMessenger.h" //Std headers #include #include #include #include #include #include #include #include #include #include #ifdef GYOTO_USE_CFITSIO #include #define throwCfitsioError(status) \ { fits_get_errstatus(status, ermsg); GYOTO_ERROR(ermsg); } #endif #define LORENE_UNIT_ACCEL GYOTO_C*GYOTO_C/1e4 using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; using namespace Lorene; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(NeutronStarModelAtmosphere, "Neutron star emitting at its surface.") GYOTO_PROPERTY_FILENAME(NeutronStarModelAtmosphere, File, file) GYOTO_PROPERTY_BOOL(NeutronStarModelAtmosphere, AverageOverAngle, DontAverageOverAngle, averageOverAngle) GYOTO_PROPERTY_END(NeutronStarModelAtmosphere, NeutronStar::properties) void NeutronStarModelAtmosphere::fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const { if (p.name == "File") fmp->setParameter("File", (filename_.compare(0,1,"!") ? filename_ : filename_.substr(1)) ); else NeutronStar::fillProperty(fmp, p); } NeutronStarModelAtmosphere::NeutronStarModelAtmosphere() : NeutronStar("NeutronStarModelAtmosphere"), emission_(NULL), surfgrav_(NULL), cosi_(NULL), freq_(NULL), nnu_(0), ni_(0), nsg_(0), average_over_angle_(0) { GYOTO_DEBUG << endl; } NeutronStarModelAtmosphere::NeutronStarModelAtmosphere(const NeutronStarModelAtmosphere& o) : NeutronStar(o), emission_(NULL), surfgrav_(NULL), cosi_(NULL), freq_(NULL), nnu_(o.nnu_), ni_(o.ni_), nsg_(o.nsg_), average_over_angle_(o.average_over_angle_) { GYOTO_DEBUG << endl; size_t ncells = 0; if (o.emission_) { emission_ = new double[ncells = nnu_ * ni_ * nsg_]; memcpy(emission_, o.emission_, ncells * sizeof(double)); } if (o.freq_) { freq_ = new double[ncells = nnu_]; memcpy(freq_, o.freq_, ncells * sizeof(double)); } if (o.cosi_) { cosi_ = new double[ncells = ni_]; memcpy(cosi_, o.cosi_, ncells * sizeof(double)); } if (o.surfgrav_) { surfgrav_ = new double[ncells = nsg_]; memcpy(surfgrav_, o.surfgrav_, ncells * sizeof(double)); } } NeutronStarModelAtmosphere * NeutronStarModelAtmosphere::clone() const { return new NeutronStarModelAtmosphere(*this); } NeutronStarModelAtmosphere::~NeutronStarModelAtmosphere() { GYOTO_DEBUG << endl; if (emission_) delete [] emission_; if (surfgrav_) delete [] surfgrav_; if (cosi_) delete [] cosi_; if (freq_) delete [] freq_; } void NeutronStarModelAtmosphere::setEmission(double * pattern) { emission_ = pattern; } void NeutronStarModelAtmosphere::surfgrav(double * pattern) { surfgrav_ = pattern; } void NeutronStarModelAtmosphere::copyIntensity(double const *const pattern, size_t const naxes[3]) { GYOTO_DEBUG << endl; if (emission_) { GYOTO_DEBUG << "delete [] emission_;" << endl; delete [] emission_; emission_ = NULL; } if (pattern) { size_t nel; if (nnu_ != naxes[0]) { GYOTO_DEBUG <<"nnu_ changed, freeing freq_" << endl; if (freq_) { delete [] freq_; freq_ = NULL; } } if (ni_ != naxes[1]) { GYOTO_DEBUG <<"ni_ changed, freeing freq_ and cosi_" << endl; if (freq_) { delete [] freq_; freq_ = NULL; } if (cosi_) { delete [] cosi_; cosi_= NULL; } } if (nsg_ != naxes[2]) { GYOTO_DEBUG <<"nsg_ changed, freeing freq_, cosi_ and surfgrav_" << endl; if (freq_) { delete [] freq_; freq_ = NULL; } if (cosi_) { delete [] cosi_; cosi_= NULL; } if (surfgrav_) { delete [] surfgrav_; surfgrav_ = NULL; } } if (!(nel=(nnu_ = naxes[0]) * (ni_=naxes[1]) * (nsg_=naxes[2]))) GYOTO_ERROR( "dimensions can't be null"); GYOTO_DEBUG << "allocate emission_;" << endl; emission_ = new double[nel]; GYOTO_DEBUG << "pattern >> emission_" << endl; memcpy(emission_, pattern, nel*sizeof(double)); } } double const * NeutronStarModelAtmosphere::getIntensity() const { return emission_; } void NeutronStarModelAtmosphere::getIntensityNaxes( size_t naxes[3] ) const { naxes[0] = nnu_; naxes[1] = ni_; naxes[2] = nsg_; } void NeutronStarModelAtmosphere::copyGridSurfgrav(double const *const sg, size_t nsg) { GYOTO_DEBUG << endl; if (surfgrav_) { GYOTO_DEBUG << "delete [] surfgrav_;" << endl; delete [] surfgrav_; surfgrav_ = NULL; } if (sg) { if (!emission_) GYOTO_ERROR("Please use copyIntensity() before copyGridSurfgrav()"); if (nsg_ != nsg) GYOTO_ERROR("emission_ and surfgrav_ have inconsistent dimensions"); GYOTO_DEBUG << "allocate surfgrav_;" << endl; surfgrav_ = new double[nsg_]; GYOTO_DEBUG << "surfgrav >> surfgrav_" << endl; memcpy(surfgrav_, sg, nsg_*sizeof(double)); } } double const * NeutronStarModelAtmosphere::getGridSurfgrav() const { return surfgrav_; } void NeutronStarModelAtmosphere::copyGridCosi(double const *const cosi, size_t ni) { GYOTO_DEBUG << endl; if (cosi_) { GYOTO_DEBUG << "delete [] cosi_;" << endl; delete [] cosi_; cosi_ = NULL; } if (cosi) { if (!emission_) GYOTO_ERROR("Please use copyIntensity() before copyGridCosi()"); if (ni_ != ni) GYOTO_ERROR("emission_ and cosi_ have inconsistent dimensions"); GYOTO_DEBUG << "allocate cosi_;" << endl; cosi_ = new double[ni_]; GYOTO_DEBUG << "cosi >> cosi_" << endl; memcpy(cosi_, cosi, ni_*sizeof(double)); } } double const * NeutronStarModelAtmosphere::getGridCosi() const { return cosi_; } void NeutronStarModelAtmosphere::copyGridFreq(double const *const freq, size_t nnu) { GYOTO_DEBUG << endl; if (freq_) { GYOTO_DEBUG << "delete [] freq_;" << endl; delete [] freq_; freq_ = NULL; } if (freq) { if (!emission_) GYOTO_ERROR("Please use copyIntensity() before copyGridFreq()"); if (nnu_ != nnu) GYOTO_ERROR("emission_ and freq_ have inconsistent dimensions"); GYOTO_DEBUG << "allocate freq_;" << endl; freq_ = new double[nnu_]; GYOTO_DEBUG << "freq >> freq_" << endl; memcpy(freq_, freq, nnu_*sizeof(double)); } } double const * NeutronStarModelAtmosphere::getGridFreq() const { return freq_; } void NeutronStarModelAtmosphere::averageOverAngle(bool t) { average_over_angle_=t;} bool NeutronStarModelAtmosphere::averageOverAngle()const { return average_over_angle_;} void NeutronStarModelAtmosphere::file(std::string const &f) { # ifdef GYOTO_USE_CFITSIO fitsRead(f); # else GYOTO_ERROR("This Gyoto has no FITS i/o"); # endif } std::string NeutronStarModelAtmosphere::file() const { return filename_; } #ifdef GYOTO_USE_CFITSIO void NeutronStarModelAtmosphere::fitsRead(string filename) { GYOTO_MSG << "NeutronStarModelAtmosphere reading FITS file: " << filename << endl; filename_ = filename; char* pixfile = const_cast(filename_.c_str()); fitsfile* fptr = NULL; int status = 0; int anynul = 0; long naxes [] = {1, 1, 1}; long fpixel[] = {1,1,1}; long inc [] = {1,1,1}; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() GYOTO_DEBUG << "NeutronStarModelAtmosphere::readFile(): opening file" << endl; if (fits_open_file(&fptr, pixfile, 0, &status)) throwCfitsioError(status) ; ////// FIND MANDATORY EMISSION HDU, READ KWDS & DATA /////// GYOTO_DEBUG << "NeutronStarModelAtmosphere::readFile(): search emission HDU" << endl; if (fits_movnam_hdu(fptr, ANY_HDU, const_cast("GYOTO NeutronStarModelAtmosphere emission"), 0, &status)) throwCfitsioError(status) ; GYOTO_DEBUG << "NeutronStarModelAtmosphere::readFile(): get image size" << endl; if (fits_get_img_size(fptr, 3, naxes, &status)) throwCfitsioError(status) ; //update nnu_, ni_, nsg_ nnu_ = naxes[0]; ni_ = naxes[1]; nsg_ = naxes[2]; if (emission_) { delete [] emission_; emission_ = NULL; } emission_ = new double[nnu_ * ni_ * nsg_]; if (debug()) cerr << "NeutronStarModelAtmosphere::readFile(): read emission: " << "nnu_=" << nnu_ << ", ni_="<maxemission) maxemission=emission_[myi]; } //cout << "In NSModelAtm::fitsRead: Min and max emission= " << // minemission << " " << maxemission << endl; ////// FIND MANDATORY FREQ HDU /////// if (fits_movnam_hdu(fptr, ANY_HDU, const_cast("GYOTO NeutronStarModelAtmosphere freq"), 0, &status)) throwCfitsioError(status) ; if (fits_get_img_size(fptr, 1, naxes, &status)) throwCfitsioError(status) ; if (size_t(naxes[0]) != nnu_) GYOTO_ERROR("NeutronStarModelAtmosphere::readFile(): freq array not conformable"); if (freq_) { delete [] freq_; freq_ = NULL; } freq_ = new double[nnu_]; if (fits_read_subset(fptr, TDOUBLE, fpixel, naxes, inc, 0, freq_,&anynul,&status)) { delete [] freq_; freq_=NULL; throwCfitsioError(status) ; } ////// FIND MANDATORY COSI HDU /////// if (fits_movnam_hdu(fptr, ANY_HDU, const_cast("GYOTO NeutronStarModelAtmosphere cosi"), 0, &status)) throwCfitsioError(status) ; if (fits_get_img_size(fptr, 1, naxes, &status)) throwCfitsioError(status) ; if (size_t(naxes[0]) != ni_) GYOTO_ERROR("NeutronStarModelAtmosphere::readFile(): cosi array not conformable"); if (cosi_) { delete [] cosi_; cosi_ = NULL; } cosi_ = new double[ni_]; if (fits_read_subset(fptr, TDOUBLE, fpixel, naxes, inc, 0, cosi_,&anynul,&status)) { delete [] cosi_; cosi_=NULL; throwCfitsioError(status) ; } ////// FIND MANDATORY SURFGRAV HDU /////// if (fits_movnam_hdu(fptr, ANY_HDU, const_cast("GYOTO NeutronStarModelAtmosphere surfgrav"), 0, &status)) throwCfitsioError(status) ; if (fits_get_img_size(fptr, 1, naxes, &status)) throwCfitsioError(status) ; if (size_t(naxes[0]) != nsg_) GYOTO_ERROR("NeutronStarModelAtmosphere::readFile(): surfgrav array not conformable"); if (surfgrav_) { delete [] surfgrav_; surfgrav_ = NULL; } surfgrav_ = new double[nsg_]; if (fits_read_subset(fptr, TDOUBLE, fpixel, naxes, inc, 0, surfgrav_,&anynul,&status)) { delete [] surfgrav_; surfgrav_=NULL; throwCfitsioError(status) ; } ////// CLOSING FITS ///////// if (fits_close_file(fptr, &status)) throwCfitsioError(status) ; fptr = NULL; } void NeutronStarModelAtmosphere::fitsWrite(string filename) { GYOTO_DEBUG_EXPR(emission_); if (!emission_) GYOTO_ERROR("NeutronStarModelAtmosphere::fitsWrite(filename): nothing to save!"); filename_ = filename; char* pixfile = const_cast(filename_.c_str()); fitsfile* fptr = NULL; int status = 0; long naxes [] = {long(nnu_), long(ni_), long(nsg_)}; long fpixel[] = {1,1,1}; char * CNULL=NULL; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() ////// CREATE FILE GYOTO_DEBUG << "creating file \"" << pixfile << "\"... "; fits_create_file(&fptr, pixfile, &status); if (debug()) cerr << "done." << endl; fits_create_img(fptr, DOUBLE_IMG, 3, naxes, &status); if (status) throwCfitsioError(status) ; ////// SAVE EMISSION IN PRIMARY HDU /////// GYOTO_DEBUG << "saving emission_\n"; fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO NeutronStarModelAtmosphere emission"), CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, nnu_*ni_*nsg_, emission_, &status); if (status) throwCfitsioError(status) ; ////// SAVE FREQ HDU /////// if (!freq_) GYOTO_ERROR("NeutronStarModelAtmosphere::fitsWrite(filename): no freq to save!"); GYOTO_DEBUG << "saving freq_\n"; fits_create_img(fptr, DOUBLE_IMG, 1, naxes, &status); fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO NeutronStarModelAtmosphere freq"), CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, nnu_, freq_, &status); if (status) throwCfitsioError(status) ; ////// SAVE COSI HDU /////// if (!cosi_) GYOTO_ERROR("NeutronStarModelAtmosphere::fitsWrite(filename): no cosi to save!"); GYOTO_DEBUG << "saving cosi_\n"; fits_create_img(fptr, DOUBLE_IMG, 1, naxes+1, &status); fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO NeutronStarModelAtmosphere cosi"), CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, ni_, cosi_, &status); if (status) throwCfitsioError(status) ; ////// SAVE SURFGRAV HDU /////// if (!surfgrav_) GYOTO_ERROR("NeutronStarModelAtmosphere::fitsWrite(filename): no surfgrav to save!"); GYOTO_DEBUG << "saving surfgrav_\n"; fits_create_img(fptr, DOUBLE_IMG, 1, naxes+2, &status); fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO NeutronStarModelAtmosphere surfgrav"), CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, nsg_, surfgrav_, &status); if (status) throwCfitsioError(status) ; ////// CLOSING FILE /////// GYOTO_DEBUG << "close FITS file\n"; if (fits_close_file(fptr, &status)) throwCfitsioError(status) ; fptr = NULL; } #endif void NeutronStarModelAtmosphere::getIndices(size_t i[3], double const co[4], double cosi, double nu) const { const Vector& a_i = *(gg_->getAccel_tab()[0]); double rr=co[1], th=co[2], phi=co[3]; if (rr==0.) GYOTO_ERROR("In NeutronStarModelAtm.C::getIndices r is 0!"); double rsinth = rr*sin(th); if (rsinth==0.) GYOTO_ERROR("In NeutronStarModelAtm.C::getIndices on z axis!"); double rm1 = 1./rr, rm2 = rm1*rm1, sm1 = 1./sin(th), sm2 = sm1*sm1; double a_r = a_i(1).val_point(rr,th,phi), a_t = rr*a_i(2).val_point(rr,th,phi), a_p = rr*sin(th)*a_i(3).val_point(rr,th,phi); if (a_p!=0.) {GYOTO_ERROR("In NeutronStarModelAtm::getIndices: " "For axisym spacetime phi-compo should be zero");} const Sym_tensor& g_up_ij = *(gg_->getGamcon_tab()[0]); double grr=g_up_ij(1,1).val_point(rr,th,phi), gtt=rm2*g_up_ij(2,2).val_point(rr,th,phi); double ar = a_r*grr, at = a_t*gtt; //contravariant 3-accel double accelvecNorm2 = grr*a_r*a_r + gtt*a_t*a_t; // squared norm of accel vector if (accelvecNorm2<=0.) GYOTO_ERROR("In NeutronStarModelAtmosphere::getIndices" " accel vector should be spacelike"); double accelvecNorm = sqrt(accelvecNorm2); double sgloc = accelvecNorm*LORENE_UNIT_ACCEL*100.; // LORENE speaks in SI, the 100 translates to cgs //cout << "Accel vec compo, gs= " << a_r << " " << a_t << " " << a_p << " " << sgloc << endl; if (surfgrav_) { if (nsg_==1){ // Only one value of surfgrav, put some value, won't be used i[2]=1; // don't put 0, see later why: it would return an error }else{ if (sgloc >= surfgrav_[nsg_-1]) i[2] = nsg_-1; // emission will be 0 else { for(i[2]=0; sgloc > surfgrav_[i[2]]; ++i[2]){} //cout << "In indices sg: " << i[2] << " " << surfgrav_[i[2]-1] << " " << sgloc << " " << surfgrav_[i[2]] << endl; /* With this definition: surfgrav_[i[2]-1] <= sgloc < surfgrav_[i[2]] The case i[2]=0 (if r= cosi_[ni_-1]) i[1] = ni_-1; else { for(i[1]=0; cosi > cosi_[i[1]]; ++i[1]){} //cout << "In indices cos: " << i[1] << " " << cosi_[i[1]-1] << " " << cosi << " " << cosi_[i[1]] << endl; /* cosi_[i[1]-1] <= cosi < cosi_[i[1]] */ } } else { GYOTO_ERROR("In NeutronStarModelAtmosphere::getIndices: cosi undefined!"); } if (freq_) { if (nu <= freq_[nnu_-1]) i[0] = nnu_-1; else { for(i[0]=nnu_-1; nu > freq_[i[0]]; --i[0]){} //cout << "In indices nu: " << i[0] << " " << freq_[i[0]+1]/GYOTO_eV2Hz << " " << nu/GYOTO_eV2Hz << " " << freq_[i[0]]/GYOTO_eV2Hz << endl; /* Caution: freq is ordered decreasingly! freq_[i[0]+1] <= nu < freq_[i[0]] */ } } else { GYOTO_ERROR("In NeutronStarModelAtmosphere::getIndices: freq undefined!"); } } double NeutronStarModelAtmosphere::emission(double nu, double, state_t const &cp, double const co[8]) const{ /* Important remarks on the precision: the variable GYOTO_T_TOL defined in GyotoDefs.h is important as it tunes the precision with which Gyoto will fine the star's surface. GYOTO_T_TOL=1e-4 e.g. leads to an error on r_emission of approx 1e-4 as well. This for instance leads to small changes of Iobs when varying the inclination for a non-rotating star (although the emission should be indep of i). There is another limitation specifically for photons that hit the star tangentially. These guys should be integrated with care to find a precise (r_emission,theta_emission), and thus get a precise photon tangent vector at emission, that in turn manages the precision of cosi. To ensure this, a good precaution is to decrease DeltaMaxOverR in the xml, eg to 0.1 to get something very precise. [Tested on August 2017 for a 30*30 map: actually some few pixels even need 0.01 to get the same value for i=1° and i=90°! This would be really crazy long for a full map...] There is a second important limitation: the precision of Lorene. The metrics given by Michal in May 2017 e.g. lead to a value of r_star constant with theta to within approx 1e-8. So to have the most precise calcualtion (to machine prec), take GYOTO_T_TOL=machine prec, make sure that Lorene works at machine prec as well, and use a small DeltaMAxOverR. Of course this is only needed to get crazy high precision (definitely not a problem to fit observations e.g.) */ GYOTO_DEBUG << endl; //cout << "In emission NSatm, intens test= " << emission_[0] << endl; const Vector& a_i = *(gg_->getAccel_tab()[0]); double rr=co[1], th=co[2], phi=co[3]; //cout << "r,th,phi in emiss= " << setprecision(10) << rr << " " << th << " " << phi << endl; // First, check that we are on the star surface (not obvious, photon // could be a bit inside, see StandardAstrobj.C). If not, return 0. // This is important coz if not present, sgloc can be computed inside // the star and be out of the range computed in the grid, leading to error. Valeur* ns_surf = gg_->getNssurf_tab()[0]; ns_surf->std_base_scal(); double rstar = ns_surf->val_point(0,0.,th,phi); //cout << "rstar= " << rstar << endl; double rtol = 1e-4; // should be such that GYOTO_T_TOL ensures a // a convergence to rstar better than rtol if (fabs(rstar-rr)>rtol) return 0.; if (rr==0.) GYOTO_ERROR("In NeutronStarModelAtm.C::emission r is 0!"); double rsinth = rr*sin(th); if (rsinth==0.) GYOTO_ERROR("In NeutronStarModelAtm.C::emission on z axis!"); double rm1 = 1./rr, rm2 = rm1*rm1, sm1 = 1./sin(th), sm2 = sm1*sm1; // Finding acceleration 4-vector /* Let us call a^\alpha the acceleration 4-vector (normal to the surface). Because we assume circular fluid motion, the covariant acceleration reads a_\alpha = - \nabla (ln u_t) = - \partial_\alpha (ln u_t) Thus, because of stationarity + axisymetry: a_t = a_phi = 0 Thus a^t = g^{tt} a_t + g^{tphi} a_phi = 0 and the same for a^phi. Thus only a^r and a^theta remain. */ double a_r = a_i(1).val_point(rr,th,phi), a_t = rr*a_i(2).val_point(rr,th,phi), a_p = rr*sin(th)*a_i(3).val_point(rr,th,phi); if (a_p!=0.) {GYOTO_ERROR("In NeutronStarModelAtm::emission: " "For axisym spacetime phi-compo should be zero");} const Sym_tensor& g_up_ij = *(gg_->getGamcon_tab()[0]); double grr=g_up_ij(1,1).val_point(rr,th,phi), gtt=rm2*g_up_ij(2,2).val_point(rr,th,phi); //gpp=rm2*sm2*g_up_ij(3,3).val_point(rr,th,phi); // here gpp is gamma^{phi,phi} ; it is useless as a_p is zero double ar = a_r*grr, at = a_t*gtt; //contravariant 3-accel compo double accelvec[4]={0.,ar,at,0.}; // acceleration 4-vector, normal to surf //cout << "accel= " << a_r << " " << a_t << " " << a_p << endl; double accelvecNorm2 = grr*a_r*a_r + gtt*a_t*a_t; // squared norm of accel vector if (accelvecNorm2<=0.) GYOTO_ERROR("In NeutronStarModelAtmosphere::emission" " accel vector should be spacelike"); double accelvecNorm = sqrt(accelvecNorm2); // Surface gravity is that quantity, scaled to cgs units: double sgloc = accelvecNorm*LORENE_UNIT_ACCEL*100.; // LORENE speaks in SI, the 100 translates to cgs //cout << "r,rstar,sgloc=" << rr << " " << rstar << " " << sgloc << endl; //cout << "r, sg, nsg= " << rr << " " << sgloc << " " << nsg_ << endl; //cout << "accel vector= " << ar << " " << at << endl; //cout << "photon vector= " << cp[4] << " " << cp[5] << " " << cp[6] << " " << cp[7] << endl; // Compute angle between photon direction and normal double np = 1./accelvecNorm*gg_->ScalarProd(&cp[0],accelvec,&cp[4]), up = gg_->ScalarProd(&cp[0],co+4,&cp[4]); //cout << "accel and velo= " << accelvec[0] << " " << accelvec[1] << " " << accelvec[2] << " " << accelvec[3] << " " << cp[4] << " " << cp[5] << " " << cp[6] << " " << cp[7] << " " << endl; //cout << "scalar prods= " << np << " " << up << endl; double p_r=cp[5]/grr, p_t=cp[6]/gtt; double myscalprod = 1./accelvecNorm*(grr*a_r*p_r + gtt*a_t*p_t); //cout << "myscalprod= " << myscalprod << endl; //cout << "gmunu= " << grr << " " << gtt << endl; //cout << "prods of ap= " << a_r*p_r << " " << a_t*p_t << endl; //cout << "parts of scal prod= " << grr*a_r*p_r << " " << gtt*a_t*p_t << endl; //cout << "ar, pr, arpr= " << a_r << " " << p_r << " " << a_r*p_r << endl; // cos between unit normal n and tangent to photon p // is equal -n.p/u.p (u being the emitter's 4-vel); double cosi = -np/up; //cout << "cosi= " << cosi << endl; double tolcos = 0.005; if (cosi>1.){ if (fabs(cosi-1)>tolcos){ cout << "Bad cosi= " << cosi << endl; GYOTO_ERROR("In NeutronStarModelAtmosphere: bad cos!"); } cosi=1.; } if (cosi<0.){ // cosi should be >0, the photon cannot come from // inside the star! if (fabs(cosi)>tolcos){ cout << "Bad cosi= " << cosi << endl; //GYOTO_ERROR("In NeutronStarModelAtmosphere: bad cos!"); } cosi=0.; } //cout << "cosi= " << cosi << endl; // Don't put a "return cosi" here, see later // Indices of the current closest grid point size_t ind[3]; // {i_nu, i_cosi, i_surfgrav} getIndices(ind, co, cosi, nu); //cout << "sg, isg, nsg= " << sgloc << " " << ind[2] << " " << nsg_ <1 && (sgloc<=surfgrav_[0] || sgloc>=surfgrav_[nsg_-1])){ cout << "With surf grav= " << sgloc << endl; GYOTO_ERROR("In NeutronStarModelAtmosphere: bad value of surface gravity"); } // No emission outside freq range if (nu<=freq_[nnu_-1] || nu>=freq_[0]) { //cout << "bad freq nu= " << nu << " " << freq_[0] << " " << freq_[nnu_-1] << endl; return 0.; } // So here, ind[2] should be >0 and ind[0]= cosi_[ni_-1]){ // If cosi is out of the cosi_ range, bilinear interpol in nu,sg size_t icos=ind[1]; //cout << "Bilin cos value unique= " << cosi_[icos] << endl; double I00 = emission_[inul*ni_*nsg_+icos*nsg_+isgl], // I_{nu,sg} I01 = emission_[inul*ni_*nsg_+icos*nsg_+isgu], I10 = emission_[inuu*ni_*nsg_+icos*nsg_+isgl], I11 = emission_[inuu*ni_*nsg_+icos*nsg_+isgu]; //cout << "bilin dir: " << I00 << " " << I01 << " " << I10 << " " << I11 << endl; double rationu = (nu-freq_[inul])/(freq_[inuu]-freq_[inul]), ratiosg = (sgloc-surfgrav_[isgl])/(surfgrav_[isgu]-surfgrav_[isgl]); if (nsg_==1) ratiosg=0.; // no interpolation in sg Iem = I00+(I10-I00)*rationu +(I01-I00)*ratiosg +(I11-I01-I10+I00)*rationu*ratiosg; //cout << "I interp= " << Iem << endl; }else{ // Trilinear interpol if (ind[1]==0){ GYOTO_ERROR("In NeutronStarModelAtmosphere::emission " "bad cosi indice"); } size_t icosl=ind[1]-1, icosu=ind[1]; //cout << "Trilin interpol indices= " << inul << " " << inuu << " " << icosl << " " << icosu << " " << isgl << " " << isgu << endl; double I000 = emission_[inul*ni_*nsg_+icosl*nsg_+isgl], // I_{nu,cosi,sg} I100 = emission_[inuu*ni_*nsg_+icosl*nsg_+isgl], I110 = emission_[inuu*ni_*nsg_+icosu*nsg_+isgl], I010 = emission_[inul*ni_*nsg_+icosu*nsg_+isgl], I001 = emission_[inul*ni_*nsg_+icosl*nsg_+isgu], I101 = emission_[inuu*ni_*nsg_+icosl*nsg_+isgu], I111 = emission_[inuu*ni_*nsg_+icosu*nsg_+isgu], I011 = emission_[inul*ni_*nsg_+icosu*nsg_+isgu]; //cout << setprecision(10) << "trilin dir: " << I000 << " " << I100 << " " << I110 << " " << I010 << " " << I001 << " " << I101 << " " << I111 << " " << I011 << endl; double rationu = (nu-freq_[inul])/(freq_[inuu]-freq_[inul]), ratioi = (cosi-cosi_[icosl])/(cosi_[icosu]-cosi_[icosl]), ratiosg = (sgloc-surfgrav_[isgl])/(surfgrav_[isgu]-surfgrav_[isgl]); if (nsg_==1) ratiosg=0.; // no interpolation in sg Iem = I000 + (I100-I000)*rationu + (I010-I000)*ratioi + (I001-I000)*ratiosg + (I110-I010-I100+I000)*rationu*ratioi + (I011-I010-I001+I000)*ratioi*ratiosg + (I101-I001-I100+I000)*rationu*ratiosg + (I111-I011-I101-I110+I100+I001+I010-I000)*rationu*ratioi*ratiosg; //cout << "I interp= " << Iem << endl; } }else{ // Average over cosi values // with bilinear interpol in nu,sg double I00=0., I01=0., I10=0., I11=0.; /* Using trapezoidal rule, I_integ = \int I(mu)*dmu, mu=cos(i) NB: in Garcia+14, they compute a flux because they don't raytrace, so they use F = 1/4pi * \int I(i) cos(i) di = 1/2 * \int I(mu) mu dmu, here we are not interested in the same quantity */ double dcostot = 0.; // will contain \int d\mu (~1 but not exactly) for (size_t ii=0; ii #include #include #include #include #include #include #include #include using namespace Gyoto; using namespace Gyoto::Metric; GYOTO_PROPERTY_START(NumericalMetricLorene) GYOTO_PROPERTY_BOOL(NumericalMetricLorene, MapEt, MapAf, mapEt) GYOTO_PROPERTY_BOOL(NumericalMetricLorene, AxisymCirc, NoAxisymCirc, axisymCirc) GYOTO_PROPERTY_BOOL(NumericalMetricLorene, SpecifyMarginalOrbits, DontSpecifyMarginalOrbits, specifyMarginalOrbits) GYOTO_PROPERTY_BOOL(NumericalMetricLorene, HasSurface, HasNoSurface, hasSurface) GYOTO_PROPERTY_BOOL(NumericalMetricLorene, HasAccelerationVector, HasNoAccelerationVector, hasAccelerationVector) GYOTO_PROPERTY_BOOL(NumericalMetricLorene, BosonStarCircular, NonBosonStarCircular, bosonstarcircular) GYOTO_PROPERTY_DOUBLE(NumericalMetricLorene, Horizon, horizon) GYOTO_PROPERTY_DOUBLE(NumericalMetricLorene, Time, initialTime) GYOTO_PROPERTY_DOUBLE(NumericalMetricLorene, Rico, rico) // Keep File last here, so it is processed last in fillElement() // (just before the generic Properties, that is GYOTO_PROPERTY_FILENAME(NumericalMetricLorene, File, directory) GYOTO_PROPERTY_END(NumericalMetricLorene, Generic::properties) // Lorene Metrics are not thread-safe GYOTO_PROPERTY_THREAD_UNSAFE(NumericalMetricLorene) #define GYOTO_NML_PPHI_TOL 5 // tolerance on p_phi drift, percentage NumericalMetricLorene::NumericalMetricLorene() : Generic(GYOTO_COORDKIND_SPHERICAL, "NumericalMetricLorene"), filename_(NULL), mapet_(true), axisymCirc_(false), bosonstarcircular_(false), has_surface_(0), has_acceleration_vector_(0), specify_marginalorbits_(0), horizon_(0.), initial_time_(0.), lapse_tab_(NULL), shift_tab_(NULL), gamcov_tab_(NULL), gamcon_tab_(NULL), kij_tab_(NULL), times_(NULL), nb_times_(0), nssurf_tab_(NULL), vsurf_tab_(NULL), accel_tab_(NULL), lorentz_tab_(NULL), hor_tab_(NULL), risco_(0.), rico_(0.), rmb_(0.) { GYOTO_DEBUG << endl; } NumericalMetricLorene::NumericalMetricLorene(const NumericalMetricLorene&o) : Generic(GYOTO_COORDKIND_SPHERICAL,"NumericalMetricLorene"), filename_(NULL), mapet_(o.mapet_), axisymCirc_(o.axisymCirc_), bosonstarcircular_(o.bosonstarcircular_), has_surface_(o.has_surface_), has_acceleration_vector_(o.has_acceleration_vector_), specify_marginalorbits_(o.specify_marginalorbits_), horizon_(o.horizon_), initial_time_(o.initial_time_), lapse_tab_(NULL), shift_tab_(NULL), gamcov_tab_(NULL), gamcon_tab_(NULL), kij_tab_(NULL), times_(NULL), nb_times_(0), nssurf_tab_(NULL), vsurf_tab_(NULL), accel_tab_(NULL), lorentz_tab_(NULL), hor_tab_(NULL), risco_(o.risco_), rico_(o.rico_), rmb_(o.rmb_) { GYOTO_DEBUG << endl; if (o.filename_) directory(o.filename_); } NumericalMetricLorene* NumericalMetricLorene::clone() const{ GYOTO_DEBUG << endl; return new NumericalMetricLorene(*this); } NumericalMetricLorene::~NumericalMetricLorene() { GYOTO_DEBUG<< endl; free(); } void NumericalMetricLorene::free() { GYOTO_DEBUG << "freeing memory\n"; if (filename_) { delete [] filename_; filename_=NULL; } if (lapse_tab_) { delete [] lapse_tab_; lapse_tab_=NULL; } if (shift_tab_) { delete [] shift_tab_; shift_tab_=NULL; } if (gamcov_tab_) { delete [] gamcov_tab_; gamcov_tab_=NULL;} if (gamcon_tab_) { delete [] gamcon_tab_; gamcon_tab_=NULL;} if (kij_tab_) { delete [] kij_tab_; kij_tab_=NULL; } if (times_) { delete [] times_; times_=NULL; } if (nssurf_tab_) { delete [] nssurf_tab_; nssurf_tab_=NULL; } if (vsurf_tab_) { delete [] vsurf_tab_; vsurf_tab_=NULL; } if (accel_tab_) { delete [] accel_tab_; accel_tab_=NULL; } if (lorentz_tab_) { delete [] lorentz_tab_; lorentz_tab_=NULL; } if (hor_tab_) { delete [] hor_tab_; hor_tab_=NULL; } } void NumericalMetricLorene::setMetricSource() { GYOTO_DEBUG << endl; DIR *dp; struct dirent *dirp; if((dp = opendir(filename_)) == NULL) { GYOTO_ERROR("In NumericalMetricLorene.C constructor : bad filename_"); } nb_times_=0; while ((dirp = readdir(dp)) != NULL) { nb_times_++; } nb_times_-=2; //for directories . and .. GYOTO_DEBUG << "Nb of metric files= " << nb_times_ << endl; /* NB: ***Caution***, here it is assumed that filename_ contains ONLY the .d Lorene result files, nothing else. */ closedir(dp); if (nb_times_<1) GYOTO_ERROR("In NumericalMetricLorene.C: bad nb_times_ value"); lapse_tab_ = new Scalar*[nb_times_] ; shift_tab_ = new Vector*[nb_times_] ; gamcov_tab_ = new Sym_tensor*[nb_times_] ; gamcon_tab_ = new Sym_tensor*[nb_times_] ; kij_tab_ = new Sym_tensor*[nb_times_] ; times_ = new double[nb_times_]; if (has_surface_){ nssurf_tab_ = new Valeur*[nb_times_] ; vsurf_tab_ = new Vector*[nb_times_] ; lorentz_tab_ = new Scalar*[nb_times_] ; hor_tab_ = new Valeur*[nb_times_] ; if (has_acceleration_vector_) accel_tab_ = new Vector*[nb_times_] ; } if (debug()) { cout << "In NumericalMetricLorene" << endl; cout << "File name=" << filename_ << endl; cout << "Number of time slices=" << nb_times_ << endl; } if (debug()) cout << "NumericalMetricLorene.C: " "initializing geometrical quantities..." << endl; for (int i=1; i<=nb_times_; i++) { ostringstream stream_name ; stream_name << filename_ << "metric" << setw(6) << setfill('0') << i << ".d" ; if (debug()) cout << "Reading file: " << stream_name.str() << endl ; FILE* resu = fopen(stream_name.str().data(), "r") ; if (resu == 0x0) { cerr << "With file name: " << stream_name.str() << endl ; GYOTO_ERROR("NumericalMetricLorene.C: Problem opening file!"); } if (debug()) cout << "File read normally." << endl ; double cLor = GYOTO_C*1e-3*1e-4; /* this is c in Lorene units, allows to translate between Lorene times and Gyoto times (Lorene speaks in ms, 10^4 m; Gyoto speaks in natural units): t(Gyoto) = t(Lorene)*cLor */ double time ; fread_be(&time, sizeof(double), 1, resu) ; //cout << "Lorene time= " << setprecision(15) << i << " " << time << endl; //cout << "Gyoto time = " << i-1 << " " << initial_time_+time*cLor << endl; setTimes(initial_time_+time*cLor,i-1); // ***COLLAPSE TIME A GERER Mg3d* grid = new Mg3d(resu) ; Map* map; /* Use Map_af for collapse + Kerr + BS, Map_et for star imaging */ if (mapet_) { // Map_et case //Map_et* map = new Map_et(*grid, resu) ; map = new Map_et(*grid, resu) ; } else { // Map_af case // Map_af* map = new Map_af(*grid, resu) ; map = new Map_af(*grid, resu) ; } Scalar* lapse = new Scalar(*map, *grid, resu) ; (*lapse).std_spectral_base() ; setLapse_tab(lapse,i-1); Vector* shift = new Vector(*map, (*map).get_bvect_spher(), resu) ; setShift_tab(shift,i-1); Sym_tensor* g_ij = new Sym_tensor(*map, (*map).get_bvect_spher(), resu) ; Sym_tensor* g_up_ij = new Sym_tensor(*map, (*map).get_bvect_spher(), resu) ; setGamcov_tab(g_ij,i-1); setGamcon_tab(g_up_ij,i-1); Sym_tensor* kij = new Sym_tensor(*map, (*map).get_bvect_spher(), resu) ; if (has_surface_){ // This seems to be only necessary for collapsing or not collapsing star // --> F.V. October 2015: seems outdated, now produces a bug on dzpuis for (int l=1; l<=3; l++) for (int c=l; c<=3; c++) (*kij).set(l,c).dec_dzpuis(2) ; } setKij_tab(kij,i-1); if (has_surface_){ Scalar* lorentz_factor = new Scalar(*map, *grid, resu) ; lorentz_tab_[i-1] = lorentz_factor; Vector* v_i = new Vector(*map, (*map).get_bvect_spher(), resu) ; vsurf_tab_[i-1] = v_i; Mg3d* grid_surf = new Mg3d(resu) ; Valeur* ns_surf = new Valeur(*grid_surf, resu) ; nssurf_tab_[i-1] = ns_surf; if (has_acceleration_vector_){ Vector* a_i = new Vector(*map, (*map).get_bvect_spher(), resu) ; accel_tab_[i-1] = a_i ; } Mg3d* grid_ah = new Mg3d(resu) ; Valeur* horizon = new Valeur(*grid_ah, resu) ; hor_tab_[i-1] = horizon; } if (specify_marginalorbits_){ double r_isco ; fread_be(&r_isco, sizeof(double), 1, resu) ; risco_ = r_isco ; if (debug()) cout << "DEBUG: READ Risco = " << r_isco << endl ; double r_mb ; fread_be(&r_mb, sizeof(double), 1, resu) ; rmb_ = r_mb; if (debug()) cout << "DEBUG: READ Rmb = " << r_mb << endl ; } fclose(resu) ; } if (debug()) cout << "NumericalMetricLorene.C constructor: " "geometrical quantities initialized." << endl; } Sym_tensor** NumericalMetricLorene::getGamcon_tab() const { GYOTO_DEBUG << endl; return gamcon_tab_;} Sym_tensor** NumericalMetricLorene::getGamcov_tab() const { GYOTO_DEBUG << endl; return gamcov_tab_;} Vector** NumericalMetricLorene::getShift_tab() const { GYOTO_DEBUG << endl; return shift_tab_;} Scalar** NumericalMetricLorene::getLapse_tab() const { GYOTO_DEBUG << endl; return lapse_tab_;} double* NumericalMetricLorene::getTimes() const { GYOTO_DEBUG << endl; return times_;} int NumericalMetricLorene::getNbtimes() const { GYOTO_DEBUG << endl; return nb_times_;} Valeur** NumericalMetricLorene::getNssurf_tab() const { GYOTO_DEBUG << endl; return nssurf_tab_;} Vector** NumericalMetricLorene::getVsurf_tab() const { GYOTO_DEBUG << endl; return vsurf_tab_;} Vector** NumericalMetricLorene::getAccel_tab() const { GYOTO_DEBUG << endl; return accel_tab_;} Scalar** NumericalMetricLorene::getLorentz_tab() const { GYOTO_DEBUG << endl; return lorentz_tab_;} Valeur** NumericalMetricLorene::getHor_tab() const { GYOTO_DEBUG << endl; return hor_tab_;} double NumericalMetricLorene::getRms() const { GYOTO_DEBUG << endl; if (rico()!=0.) return rico(); else return risco_; } double NumericalMetricLorene::getRmb() const { GYOTO_DEBUG << endl; return rmb_;} double NumericalMetricLorene::getSpecificAngularMomentum(double rr) const { // Computes the Keplerian specific angular momentum \ell = -u_phi / u_t // for circular geodesics, // for a general axisym metric in the equatorial plane /* // Standard formula: leads to problem at least in Kerr where // gphph_dr goes to zero outside horizon. double pos[4]={0., rr, M_PI/2., 0.}; double gtt_dr =gmunu_up_dr(pos, 0, 0), gtph_dr =gmunu_up_dr(pos, 0, 3), gphph_dr=gmunu_up_dr(pos, 3, 3); double lKep = gtph_dr/gphph_dr + sqrt(gtph_dr/gphph_dr * gtph_dr/gphph_dr - gtt_dr/gphph_dr); if (lKep!=lKep || lKep==lKep+1.){ cerr << "At r= " << rr << endl; GYOTO_ERROR("In NML::getSpecificAngMom: lKep not defined here!" " You are probably below the innermost circular orbit."); } */ if (nb_times_>1) GYOTO_ERROR("In NML::getSpecificAngularMomentum:" "so far only stationary metric implemented"); int indice_time=0; double th=M_PI/2., ph=0.; // in equatorial plane double rm1 = 1./rr, rsm1 = rm1, rm2 = rm1*rm1, sm1 = 1.; // NB: sinth=1 const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]) ; double B2 = g_ij(3,3).val_point(rr,th,ph); // no mistake here, B2 is g_pp_Lorene, but g_pp_Gyoto/(r2sinth2) if (B2<=0.) GYOTO_ERROR("In NML::getSpecificAngMom: bad B2"); double BB = sqrt(B2); double Br = g_ij(3,3).dsdr().val_point(rr,th,ph)/(2.*BB); const Vector& shift = *(shift_tab_[indice_time]); double beta_p = rsm1*shift(3).val_point(rr,th,ph), beta_p_r = rsm1*shift(3).dsdr().val_point(rr,th,ph) -rm2*sm1*shift(3).val_point(rr,th,ph); Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,ph); if (NN==0.) GYOTO_ERROR("In NML::getSpecificAngMom: bad N"); double Nr = lapse->dsdr().val_point(rr,th,ph); double DD = B2*rr*rr/(NN*NN)*beta_p_r*beta_p_r + 4.*Nr/NN*(Br/BB+rm1); if (DD<0.) GYOTO_ERROR("In NML::getSpecificAngMom: bad D"); double Vzamo = 0.5*(-BB*rr/NN*beta_p_r+sqrt(DD))/(rm1+Br/BB); // 3+1 l_Kep for any circular QI-coord spacetime: double lKep = BB*rr*Vzamo/(NN-beta_p*BB*rr*Vzamo); return lKep; } double NumericalMetricLorene::getPotential(double const pos[4], double l_cst) const { // returns W= -log(abs(u_t)), so that PD::operator, returning Wsurf-W, // is negative inside doughnut double gtt=gmunu(pos,0,0); double gtph=gmunu(pos,0,3); double gphph=gmunu(pos,3,3); double u_t_squared = (gtph*gtph-gtt*gphph) /(gtt*l_cst*l_cst+2.*l_cst*gtph+gphph); if (u_t_squared<0.) return -DBL_MAX; // so Wsurf-W is always >0, not hit, // 4-velocity not defined return -log(sqrt(u_t_squared)) ; } void NumericalMetricLorene::setLapse_tab(Scalar* lapse, int ii) { GYOTO_DEBUG << endl; lapse_tab_[ii]=lapse;} void NumericalMetricLorene::setShift_tab(Vector* shift, int ii) { GYOTO_DEBUG << endl; shift_tab_[ii]=shift;} void NumericalMetricLorene::setGamcov_tab(Sym_tensor* gamcov, int ii) { GYOTO_DEBUG << endl; gamcov_tab_[ii]=gamcov;} void NumericalMetricLorene::setGamcon_tab(Sym_tensor* gamcon, int ii) { GYOTO_DEBUG << endl; gamcon_tab_[ii]=gamcon;} void NumericalMetricLorene::setKij_tab(Sym_tensor* kij, int ii) { GYOTO_DEBUG << endl; kij_tab_[ii]=kij;} void NumericalMetricLorene::setTimes(double time, int ii) { GYOTO_DEBUG << endl; times_[ii]=time;} int NumericalMetricLorene::diff(state_t const &coord, state_t &res, double mass) const{ double rhor=computeHorizon(&coord[0]); if (coord[1]0.) { GYOTO_DEBUG << "rr, rhor= " << coord[1] << " " << rhor << endl; GYOTO_DEBUG << "Sub-horizon r, stop" << endl; return 1; } return Generic::diff(coord, res, mass); } int NumericalMetricLorene::diff31(const state_t &x, state_t &dxdt, double /* mass */) const { return diff(0.,&x[0],&dxdt[0]); // first slot should be time!! } int NumericalMetricLorene::diff(double tt, const double y[7], double res[7]) const { GYOTO_DEBUG << endl; /* 3+1 diff called by RK4 WITH ENERGY INTEG, that itself calls the correct diff(double*,double*,int indice_time) with indice_time indicating which metric to consider This diff then returns the simple linear interpolation between the 2 metrics such that t(metric1)>t>=t(metric2) */ double rr=y[1], th=y[2], phi=y[3]; double pos[4]={tt,rr,th,phi}; double rhor=computeHorizon(pos); //cout << endl; //cout << "current t,r,rhoriz= " << setprecision(10) << tt << " " << rr << " " << th << " " << rhor << endl; if (rr0.) { //horizon: stop integration if (debug()){ cout << "In NumericalMetricLorene::diff() "; cout << "rr, rhor= " << rr << " " << rhor << endl; cout << "Sub-horizon r, stop" << endl; } return 1; } int it=nb_times_-1; while(tt=0){ //ASSUMES backward integration, to generalize it--; } //if (it==0) it=-1; //TEST!!! // if (rr<0.187) it=1305; // TEST!!!! // if (rr<1.) return 1; // TEST!!!! //if (it!=4056) return 1; // TEST if (debug()){ cout << "**** metric number= " << it << endl; } if (it==nb_times_-1) { return diff(y,res,nb_times_-1); //use metric nb nb_times_-1 //for all times > max(metric times) } if (it==-1) { return diff(y,res,0); //use metric nb 0 for all times < min(metric times) } if (it==nb_times_-2 || it==0){ // Linear interp for extremal-1 points double res1[7], res2[7]; double t1=times_[it], t2=times_[it+1]; if (diff(y,res1,it) || diff(y,res2,it+1)) return 1; for (int ii=0;ii<7;ii++) res[ii] = (res2[ii]-res1[ii])/(t2-t1)*(tt-t1) + res1[ii]; return 0; } //Else: use 3rd order interp double res1[7], res2[7], res3[7], res4[7]; if (diff(y,res1,it-1) || diff(y,res2,it) || diff(y,res3,it+1) || diff(y,res4,it+2)) return 1; double values[4]; for (int ii=0;ii<7;ii++) { values[0]=res1[ii]; values[1]=res2[ii]; values[2]=res3[ii]; values[3]=res4[ii]; res[ii] = Interpol3rdOrder(tt,it,values); } return 0; } int NumericalMetricLorene::diff(const double y[7], double res[7], int indice_time) const { GYOTO_DEBUG << endl; /* 3+1 diff function WITH ENERGY INTEG, computing the derivatives of the 7-vector : y=[E,r,th,ph,Vr,Vth,Vph] (see CQG 3+1 paper for definition) Calls metric nb indice_time among the various Lorene metric at hand. This diff is the most general possible, there is no symmetry assumption. */ /* clock_t time1, time2; double diftime, clocks = CLOCKS_PER_SEC; time1 = clock(); */ if (indice_time<0 || indice_time>nb_times_-1) { GYOTO_ERROR("NumericalMetricLorene::diff: incoherent value of indice_time"); } //NB: here t=theta, not time! double EE=y[0], rr=y[1], th=y[2], phi=y[3], sth=0, cth=0; sincos(th, &sth, &cth); double rsinth = rr*sth, r2sinth2 = rsinth*rsinth, sinth2 = sth*sth; if (rr==0.) GYOTO_ERROR("In NumericalMetricLorene.C::diff r is 0!"); if (rsinth==0.) GYOTO_ERROR("In NumericalMetricLorene.C::diff on z axis!"); double rm1 = 1./rr, rm2 = rm1*rm1, r2 = rr*rr, rsm1 = 1./rsinth, sm1 = 1./sth, sm2 = sm1*sm1; double Vr=y[4], Vth=y[5], Vph=y[6]; /* Important remark! Lorene uses the orthonormal spherical tetrad d/dr, 1/r d/dtheta, 1/(r*sin(theta)) d/dphi, and not the natural basis d/dr, d/dtheta, d/dphi There's thus a change of basis to come back to the natural basis of spherical coordinates. This is why there are plenty of factors r2, 1/r2, 1/rsinth2, ... everywhere */ //clock_t t1=clock(); if (!axisymCirc_){ // GENERAL SPACETIME WITH NO SYMMETRY //LAPSE Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,phi), NNm1 = 1./NN, N_dr = lapse->dsdr().val_point(rr,th,phi), N_dt = lapse->dsdt().val_point(rr,th,phi), N_dp = sth*lapse->stdsdp().val_point(rr,th,phi); // stdsdp is 1/sin(th)*d/dphi //cout << "at r th ph= " << rr << " " << th << " " << phi << endl; //cout << "lapse= " << NN << " " << N_dr << " " << N_dt << " " << N_dp << endl; //SHIFT const Vector& shift = *(shift_tab_[indice_time]); double betar = shift(1).val_point(rr,th,phi), betar_dr = shift(1).dsdr().val_point(rr,th,phi), betar_dt = shift(1).dsdt().val_point(rr,th,phi), betar_dp = sth*shift(1).stdsdp().val_point(rr,th,phi), betat_Lorene = shift(2).val_point(rr,th,phi), betat = rm1*betat_Lorene, betat_dr = rm1*shift(2).dsdr().val_point(rr,th,phi) -rm2*betat_Lorene, betat_dt = rm1*shift(2).dsdt().val_point(rr,th,phi), betat_dp = sth*rm1*shift(2).stdsdp().val_point(rr,th,phi), betap_Lorene = shift(3).val_point(rr,th,phi), betap = rsm1*betap_Lorene, betap_dr = rsm1*shift(3).dsdr().val_point(rr,th,phi) -rm2*sm1*betap_Lorene, betap_dt = rsm1*shift(3).dsdt().val_point(rr,th,phi) -cth*sm2*rm1*betap_Lorene, betap_dp = rm1*shift(3).stdsdp().val_point(rr,th,phi); //cout << "shift= " << betar << " " << betat << " " << betap << endl; //3-METRIC DERIVATIVES (for Christo) const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]); double g_rr_dr = g_ij(1,1).dsdr().val_point(rr,th,phi), g_rr_dt = g_ij(1,1).dsdt().val_point(rr,th,phi), g_rr_dp = sth*g_ij(1,1).stdsdp().val_point(rr,th,phi), g_tt_dr = r2*g_ij(2,2).dsdr().val_point(rr,th,phi) +2.*rr*g_ij(2,2).val_point(rr,th,phi), g_tt_dt = r2*g_ij(2,2).dsdt().val_point(rr,th,phi), g_tt_dp = sth*r2*g_ij(2,2).stdsdp().val_point(rr,th,phi), g_pp_Lorene = g_ij(3,3).val_point(rr,th,phi), g_pp_dr = r2sinth2*g_ij(3,3).dsdr().val_point(rr,th,phi) +2.*rr*sinth2*g_pp_Lorene, g_pp_dt = r2sinth2*g_ij(3,3).dsdt().val_point(rr,th,phi) +2.*cth*sth*r2*g_pp_Lorene, g_pp_dp = sth*r2sinth2*g_ij(3,3).stdsdp().val_point(rr,th,phi), g_rt_dr = rr*g_ij(1,2).dsdr().val_point(rr,th,phi) +g_ij(1,2).val_point(rr,th,phi), g_rt_dt = rr*g_ij(1,2).dsdt().val_point(rr,th,phi), g_rt_dp = rsinth*g_ij(1,2).stdsdp().val_point(rr,th,phi), g_rp_Lorene = g_ij(1,3).val_point(rr,th,phi), g_rp_dr = rsinth*g_ij(1,3).dsdr().val_point(rr,th,phi) + sth*g_rp_Lorene, g_rp_dt = rsinth*g_ij(1,3).dsdt().val_point(rr,th,phi) + rr*cth*g_rp_Lorene, g_rp_dp = sth*rsinth*g_ij(1,3).stdsdp().val_point(rr,th,phi), g_tp_Lorene = g_ij(2,3).val_point(rr,th,phi), g_tp_dr = rr*rsinth*g_ij(2,3).dsdr().val_point(rr,th,phi) + 2.*rsinth*g_tp_Lorene, g_tp_dt = rr*rsinth*g_ij(2,3).dsdt().val_point(rr,th,phi) + r2*cth*g_tp_Lorene, g_tp_dp = r2sinth2*g_ij(2,3).stdsdp().val_point(rr,th,phi); //cout << "gamma Lorene= " << g_ij(1,1).val_point(rr,th,phi) << " " << g_ij(2,2).val_point(rr,th,phi) << " " << g_ij(3,3).val_point(rr,th,phi) << " " << g_ij(1,2).val_point(rr,th,phi) << " " << g_ij(1,3).val_point(rr,th,phi) << " " << g_ij(2,3).val_point(rr,th,phi) << endl; //cout << "gamma= " << g_ij(1,1).val_point(rr,th,phi) << " " << r2*g_ij(2,2).val_point(rr,th,phi) << " " << r2sinth2*g_ij(3,3).val_point(rr,th,phi) << " " << rr*g_ij(1,2).val_point(rr,th,phi) << " " << rsinth*g_ij(1,3).val_point(rr,th,phi) << " " << rr*rsinth*g_ij(2,3).val_point(rr,th,phi) << endl; //INVERSE 3-METRIC //NB: these are gamma^ij, not g^ij const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); double grr=g_up_ij(1,1).val_point(rr,th,phi), gtt=rm2*g_up_ij(2,2).val_point(rr,th,phi), gpp=rm2*sm2*g_up_ij(3,3).val_point(rr,th,phi), grt=rm1*g_up_ij(1,2).val_point(rr,th,phi), grp=rsm1*g_up_ij(1,3).val_point(rr,th,phi), gtp=rm1*rsm1*g_up_ij(2,3).val_point(rr,th,phi); //cout << "gamma= " << grr << " " << gtt << " " << gpp << " " << grt << " " << gtp << " " << grp << endl; //EXTRINSIC CURVATURE const Sym_tensor& kij = *(kij_tab_[indice_time]); double K_rr = kij(1,1).val_point(rr,th,phi), K_tt = r2*kij(2,2).val_point(rr,th,phi), K_pp = rsinth*rsinth*kij(3,3).val_point(rr,th,phi), K_rt = rr*kij(1,2).val_point(rr,th,phi), K_rp = rsinth*kij(1,3).val_point(rr,th,phi), K_tp = rr*rsinth*kij(2,3).val_point(rr,th,phi); //cout << "Kij= " << K_rr << " " << K_tt << " " << K_pp << " " << K_rp << " " << K_rt << " " << K_tp << endl; //3-CHRISTOFFELS double Grrr = 0.5*grr*g_rr_dr+0.5*grt*(2.*g_rt_dr-g_rr_dt) + 0.5*grp*(2.*g_rp_dr-g_rr_dp), Grrt = 0.5*grr*g_rr_dt+0.5*grt*g_tt_dr +0.5*grp*(g_tp_dr+g_rp_dt-g_rt_dp), Grtt = 0.5*grr*(2.*g_rt_dt-g_tt_dr) +0.5*grt*g_tt_dt+0.5*grp*(2.*g_tp_dt-g_tt_dp), Grpp = 0.5*grr*(2.*g_rp_dp-g_pp_dr)+0.5*grt*(2.*g_tp_dp-g_pp_dt) +0.5*grp*g_pp_dp, Grrp = 0.5*grr*g_rr_dp+0.5*grt*(g_rt_dp+g_tp_dr-g_rp_dt)+0.5*grp*g_pp_dr, Grtp = 0.5*grr*(g_rt_dp + g_rp_dt - g_tp_dr) + 0.5*grt*g_tt_dp + 0.5*grp*g_pp_dt, Gtrr = 0.5*grt*g_rr_dr+0.5*gtt*(2.*g_rt_dr-g_rr_dt) + 0.5*gtp*(2.*g_rp_dr-g_rr_dp), Gtrt = 0.5*grt*g_rr_dt+0.5*gtt*g_tt_dr +0.5*gtp*(g_tp_dr+g_rp_dt-g_r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- VN_d); res[1] = NN*Vr-betar; res[2] = NN*Vth-betat; res[3] = NN*Vph-betap; res[4] = NN*(Vr*factor + 2.*grr*KV_r + 2.*grt*KV_t + 2.*grp*KV_p - Grrr*Vr*Vr-2.*Grrt*Vr*Vth-Grtt*Vth*Vth-Grpp*Vph*Vph - 2.*Grrp*Vr*Vph - 2.*Grtp*Vth*Vph) - grr*N_dr - grt*N_dt - grp*N_dp - Vr*betar_dr - Vth*betar_dt - Vph*betar_dp; res[5] = NN*(Vth*factor +2.*grt*KV_r + 2.*gtt*KV_t + 2.*gtp*KV_p - Gttt*Vth*Vth-Gtpp*Vph*Vph-Gtrr*Vr*Vr-2.*Gtrt*Vr*Vth - 2.*Gtrp*Vr*Vph - 2.*Gttp*Vth*Vph) - grt*N_dr - gtt*N_dt - gtp*N_dp - Vr*betat_dr - Vth*betat_dt - Vph*betat_dp; res[6] = NN*(Vph*factor +2.*grp*KV_r+2.*gtp*KV_t + 2.*gpp*KV_p - Gprr*Vr*Vr - 2.*Gprt*Vr*Vth - Gptt*Vth*Vth - Gppp*Vph*Vph - 2*Vph*(Vr*Gprp+Vth*Gptp)) - grp*N_dr - gtp*N_dt - gpp*N_dp - Vr*betap_dr - Vth*betap_dt - Vph*betap_dp; }else{ // AXISYMMETRIC CIRCULAR SPACETIME //LAPSE Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,phi), NNm1 = 1./NN, N_dr = lapse->dsdr().val_point(rr,th,phi), N_dt = lapse->dsdt().val_point(rr,th,phi); //SHIFT const Vector& shift = *(shift_tab_[indice_time]); double betap = rsm1*shift(3).val_point(rr,th,phi), betap_dr = rsm1*shift(3).dsdr().val_point(rr,th,phi) -rm2*sm1*shift(3).val_point(rr,th,phi), betap_dt = rsm1*shift(3).dsdt().val_point(rr,th,phi) -cth*sm2*rm1*shift(3).val_point(rr,th,phi); //3-METRIC DERIVATIVES (for Christo) const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]); double g_rr_dr = g_ij(1,1).dsdr().val_point(rr,th,phi), g_rr_dt = g_ij(1,1).dsdt().val_point(rr,th,phi), g_tt_dr = r2*g_ij(2,2).dsdr().val_point(rr,th,phi) +2.*rr*g_ij(2,2).val_point(rr,th,phi), g_tt_dt = r2*g_ij(2,2).dsdt().val_point(rr,th,phi), g_pp_Lorene = g_ij(3,3).val_point(rr,th,phi), g_pp_dr = r2sinth2*g_ij(3,3).dsdr().val_point(rr,th,phi) +2.*rr*sinth2*g_pp_Lorene, g_pp_dt = r2sinth2*g_ij(3,3).dsdt().val_point(rr,th,phi) +2.*cth*sth*r2*g_pp_Lorene; //INVERSE 3-METRIC //NB: these are gamma^ij, not g^ij const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); double grr=g_up_ij(1,1).val_point(rr,th,phi), gtt=rm2*g_up_ij(2,2).val_point(rr,th,phi), gpp=rm2*sm2*g_up_ij(3,3).val_point(rr,th,phi); //EXTRINSIC CURVATURE const Sym_tensor& kij = *(kij_tab_[indice_time]); double K_rp = rsinth*kij(1,3).val_point(rr,th,phi), K_tp = rr*rsinth*kij(2,3).val_point(rr,th,phi); //3-CHRISTOFFELS double Grrr = 0.5*grr*g_rr_dr, Grrt = 0.5*grr*g_rr_dt, Grtt = 0.5*grr*(-g_tt_dr), Grpp = 0.5*grr*(-g_pp_dr), Gtrr = 0.5*gtt*(-g_rr_dt), Gtrt = 0.5*gtt*g_tt_dr, Gttt = 0.5*gtt*g_tt_dt, Gtpp = 0.5*gtt*(-g_pp_dt), Gprp = 0.5*gpp*g_pp_dr, Gptp = 0.5*gpp*g_pp_dt; double factor = NNm1*(Vr*N_dr+Vth*N_dt) - 2.*K_rp*Vr*Vph-2.*K_tp*Vth*Vph; res[0] = EE*(2.*NN*(K_rp*Vr*Vph+K_tp*Vth*Vph) - (Vr*N_dr+Vth*N_dt)); res[1] = NN*Vr; res[2] = NN*Vth; res[3] = NN*Vph-betap; res[4] = NN*(Vr*factor+2.*grr*(K_rp*Vph) - Grrr*Vr*Vr-2.*Grrt*Vr*Vth-Grtt*Vth*Vth -Grpp*Vph*Vph) - grr*N_dr; res[5] = NN*(Vth*factor+2.*gtt*(K_tp*Vph) - Gttt*Vth*Vth-Gtpp*Vph*Vph -Gtrr*Vr*Vr-2.*Gtrt*Vr*Vth) - gtt*N_dt; res[6] = NN*(Vph*factor+2.*gpp*(K_rp*Vr+K_tp*Vth) - 2*Vph*(Vr*Gprp+Vth*Gptp)) - Vr*betap_dr-Vth*betap_dt; } for (int ii=0;ii<7;ii++){ if (res[ii]!=res[ii]){ cout << "i, res[i]= " << ii << " " << res[ii] << endl; GYOTO_ERROR("In NumericalMetricLorene::diff(): " "derivatives are nan"); } if (res[ii]==res[ii]+1.){ cout << "i, res[i]= " << ii << " " << res[ii] << endl; GYOTO_ERROR("In NumericalMetricLorene::diff(): " "derivatives are inf"); } } /* time2 = clock(); diftime = time2 - time1; cout << "Time elapsed in 3+1 diff (in sec)= " << setprecision(GYOTO_PREC) << setw(GYOTO_WIDTH) << diftime/clocks << endl; */ /* Homogeneize equations by multiplying by c in Lorene units eg: dX^i/dt = N*V^i-beta^i -> dX^i/cdt = N*V^i-beta^i which is homogeneous (no units on both sides -- in Lorene units, V^i homogeneous to dX^i/cdt, see def of 4-vel with c!=1). Thus, just multiply res by c in Lorene units. Lorene units : time in 10^-3 s, length in 10^4 m So: c_lorene = c_SI*1e-3*1e-4 NB: this is not necessary if time has been recast to Gyoto units in NumericalMetricLorene.C (for collapsing NS, for other metrics, no pb) so that t(Gyoto) = t(Lorene)*c_lorene. Then time is in Gyoto units (natural) and r is in Lorene units (10^4 m), and this mix of units is OK. for (int ii=0;ii<=6;ii++) res[ii]*=GYOTO_C*1e-3*1e-4; */ return 0; } void NumericalMetricLorene::computeNBeta(const double coord[4], double &NN,double beta[3]) const { GYOTO_DEBUG << endl; double tt=coord[0], rr=coord[1],th=coord[2],rsinth = rr*sin(th),ph=coord[3]; if (rr==0.) GYOTO_ERROR("In NumericalMetricLorene.C::computeNBeta r is 0!"); if (rsinth==0.) GYOTO_ERROR("In NumericalMetricLorene.C::computeNBeta " "on z axis!"); double rm1 = 1./rr, rsm1 = 1./rsinth; int it=nb_times_-1; while(tt=0){ //ASSUMES backward integration, to generalize it--; } int ind_nb=it; if (it==-1) ind_nb=0; Scalar* lapse = (lapse_tab_[ind_nb]); NN = lapse->val_point(rr,th,ph); const Vector& shift = *(shift_tab_[ind_nb]); double beta_r = shift(1).val_point(rr,th,ph), beta_t = rm1*shift(2).val_point(rr,th,ph), beta_p = rsm1*shift(3).val_point(rr,th,ph); if ((it==nb_times_-2 && it!=-1) || (it==0 && it!=nb_times_-1)){ // linear interpol //NB: the && conditions are made for the very special case of //nb_times_=1... //Lapse: Scalar* lapse1 = (lapse_tab_[it]); double NN1 = lapse1->val_point(rr,th,ph); Scalar* lapse2 = (lapse_tab_[it+1]); double NN2 = lapse2->val_point(rr,th,ph); double t1=times_[it], t2=times_[it+1]; NN = (NN2-NN1)/(t2-t1)*(tt-t1)+NN1; //Shift: const Vector& shift1 = *(shift_tab_[it]); double beta_r1 = shift1(1).val_point(rr,th,ph), beta_t1 = rm1*shift1(2).val_point(rr,th,ph), beta_p1 = rsm1*shift1(3).val_point(rr,th,ph); const Vector& shift2 = *(shift_tab_[it+1]); double beta_r2 = shift2(1).val_point(rr,th,ph), beta_t2 = rm1*shift2(2).val_point(rr,th,ph), beta_p2 = rsm1*shift2(3).val_point(rr,th,ph); beta_r = (beta_r2-beta_r1)/(t2-t1)*(tt-t1)+beta_r1; beta_t = (beta_t2-beta_t1)/(t2-t1)*(tt-t1)+beta_t1; beta_p = (beta_p2-beta_p1)/(t2-t1)*(tt-t1)+beta_p1; }else if (it > 0 && it < nb_times_-2){ // 3rd order interpo // Lapse: Scalar* lapse1 = (lapse_tab_[it-1]); double NN1 = lapse1->val_point(rr,th,ph); Scalar* lapse2 = (lapse_tab_[it]); double NN2 = lapse2->val_point(rr,th,ph); Scalar* lapse3 = (lapse_tab_[it+1]); double NN3 = lapse3->val_point(rr,th,ph); Scalar* lapse4 = (lapse_tab_[it+2]); double NN4 = lapse4->val_point(rr,th,ph); double values[4]={NN1,NN2,NN3,NN4}; NN = Interpol3rdOrder(tt,it,values); // Shift: const Vector& shift1 = *(shift_tab_[it-1]); const Scalar& betar1=shift1(1), betat1=shift1(2), betap1=shift1(3) ; double beta_r1 = shift1(1).val_point(rr,th,ph), beta_t1 = rm1*shift1(2).val_point(rr,th,ph), beta_p1 = rsm1*shift1(3).val_point(rr,th,ph); const Vector& shift2 = *(shift_tab_[it]); double beta_r2 = shift2(1).val_point(rr,th,ph), beta_t2 = rm1*shift2(2).val_point(rr,th,ph), beta_p2 = rsm1*shift2(3).val_point(rr,th,ph); const Vector& shift3 = *(shift_tab_[it+1]); double beta_r3 = shift3(1).val_point(rr,th,ph), beta_t3 = rm1*shift3(2).val_point(rr,th,ph), beta_p3 = rsm1*shift3(3).val_point(rr,th,ph); const Vector& shift4 = *(shift_tab_[it+2]); double beta_r4 = shift4(1).val_point(rr,th,ph), beta_t4 = rm1*shift4(2).val_point(rr,th,ph), beta_p4 = rsm1*shift4(3).val_point(rr,th,ph); double values_r[4]={beta_r1,beta_r2,beta_r3,beta_r4}; double values_t[4]={beta_t1,beta_t2,beta_t3,beta_t4}; double values_p[4]={beta_p1,beta_p2,beta_p3,beta_p4}; beta_r = Interpol3rdOrder(tt,it,values_r); beta_t = Interpol3rdOrder(tt,it,values_t); beta_p = Interpol3rdOrder(tt,it,values_p); } beta[0]=beta_r; beta[1]=beta_t; beta[2]=beta_p; } void NumericalMetricLorene::jacobian(double jac[4][4][4], const double x0[4] ) const { // Compute jac[alpha][mu][nu] = \partial_alpha(g_{mu,nu})] // Special case alpha=0, derivative wrt t, TO BE CODED // d/dr and d/dth double gmunudr[4][4], gmunudth[4][4]; gmunu_di(x0,gmunudr,gmunudth); // alpha=1 (d/dr) redirect to gmunu_dr // alpha=1 (d/dtheta) redirect to gmunu_dth // alpha=3 (d/dphi) is zero for (int mu=0; mu<4; ++mu){ for (int nu=0; nu<4; ++nu){ jac[1][mu][nu]=gmunudr[mu][nu]; jac[2][mu][nu]=gmunudth[mu][nu]; jac[3][mu][nu]=0.; } } } void NumericalMetricLorene::gmunu_di(const double pos[4], double gmunudr[4][4], double gmunudth[4][4] ) const { GYOTO_DEBUG << endl; double tt=pos[0]; int it=nb_times_-1; while(tt=0){ //ASSUMES backward integration, to generalize it--; } double pos3[3]={pos[1],pos[2],pos[3]}; if (it==nb_times_-1) { double gmunudrnbt[4][4], gmunudthnbt[4][4]; gmunu_di(pos3,nb_times_-1,gmunudrnbt,gmunudthnbt); for (int mu=0;mu<4;++mu){ for (int nu=0;nu<4;++nu){ gmunudr[mu][nu]=gmunudrnbt[mu][nu]; gmunudth[mu][nu]=gmunudthnbt[mu][nu]; //use metric nb nb_times_-1 //for all times > max(metric times) } } } if (it==-1) { double gmunudr0[4][4], gmunudth0[4][4]; gmunu_di(pos3,0,gmunudr0,gmunudth0); for (int mu=0;mu<4;++mu){ for (int nu=0;nu<4;++nu){ gmunudr[mu][nu]=gmunudr0[mu][nu]; gmunudth[mu][nu]=gmunudth0[mu][nu]; //use metric nb 0 //for all times > max(metric times) } } } if (it==nb_times_-2 || it==0){ //linear inter for extremal-1 points double t1=times_[it], t2=times_[it+1]; double gmunudr1[4][4], gmunudr2[4][4], gmunudth1[4][4], gmunudth2[4][4]; gmunu_di(pos3,it,gmunudr1,gmunudth1); gmunu_di(pos3,it+1,gmunudr2,gmunudth2); for (int mu=0;mu<4;++mu){ for (int nu=0;nu<4;++nu){ gmunudr[mu][nu]=(gmunudr1[mu][nu] - gmunudr2[mu][nu])/(t1-t2)*(tt-t1) + gmunudr1[mu][nu]; gmunudth[mu][nu]=(gmunudth1[mu][nu] - gmunudth2[mu][nu])/(t1-t2)*(tt-t1) + gmunudth1[mu][nu]; } } } //Else : use 3rd order interp double gmunudr1[4][4], gmunudr2[4][4], gmunudr3[4][4], gmunudr4[4][4], gmunudth1[4][4], gmunudth2[4][4], gmunudth3[4][4], gmunudth4[4][4]; gmunu_di(pos3,it-1,gmunudr1,gmunudth1); gmunu_di(pos3,it,gmunudr2,gmunudth2); gmunu_di(pos3,it+1,gmunudr3,gmunudth3); gmunu_di(pos3,it+2,gmunudr4,gmunudth4); for (int mu=0;mu<4;++mu){ for (int nu=0;nu<4;++nu){ double y1=gmunudr1[mu][nu], y2=gmunudr2[mu][nu], y3=gmunudr3[mu][nu], y4=gmunudr4[mu][nu]; double values[4]={y1,y2,y3,y4}; gmunudr[mu][nu] = Interpol3rdOrder(tt,it,values); y1=gmunudth1[mu][nu]; y2=gmunudth2[mu][nu]; y3=gmunudth3[mu][nu]; y4=gmunudth4[mu][nu]; double values2[4]={y1,y2,y3,y4}; gmunudth[mu][nu] = Interpol3rdOrder(tt,it,values2); } } } void NumericalMetricLorene::gmunu_di(const double pos[4], int indice_time, double gmunudr[4][4], double gmunudth[4][4] ) const { // This provides gmunu_dr and gmunu_dth for all mu,nu if (indice_time<0 || indice_time>nb_times_-1) GYOTO_ERROR("NumericalMetricLorene::gmunu_di: " "incoherent value of indice_time"); double rr=pos[0], r2=rr*rr, th=pos[1], costh=cos(th), sinth=sin(th), sinth2=sinth*sinth, rsinth=rr*sin(th), ph=pos[2]; Scalar* lapse = (lapse_tab_[indice_time]); double lapse_val = lapse->val_point(rr,th,ph), // lapse value lapsedr = lapse->dsdr().val_point(rr,th,ph), // d(lapse)/dr lapsedth = lapse->dsdt().val_point(rr,th,ph); // d(lapse)/dtheta const Vector& shift = *(shift_tab_[indice_time]); double betap = shift(3).val_point(rr,th,ph), // omega betapdr = shift(3).dsdr().val_point(rr,th,ph), // domega/dr betapdth = shift(3).dsdt().val_point(rr,th,ph); // domega/dtheta const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]); double g_rr = g_ij(1,1).val_point(rr,th,ph), // gamma_rr g_rrdr = g_ij(1,1).dsdr().val_point(rr,th,ph), // d(gamma_rr)/dr g_rrdth = g_ij(1,1).dsdt().val_point(rr,th,ph), // d(gamma_rr)/dtheta g_thth = g_ij(2,2).val_point(rr,th,ph), // idem for gamma_thth g_ththdr = g_ij(2,2).dsdr().val_point(rr,th,ph), g_ththdth = g_ij(2,2).dsdt().val_point(rr,th,ph), g_pp = g_ij(3,3).val_point(rr,th,ph), // idem for gamma_pp g_ppdr = g_ij(3,3).dsdr().val_point(rr,th,ph), g_ppdth = g_ij(3,3).dsdt().val_point(rr,th,ph); // Okay here we have all possible metric quantities and derivatives // g_{t,mu} gmunudr[0][0] = -2.*lapsedr*lapse_val + 2.*(betapdr - betap/rr)*betap*g_pp + betap*betap*g_ppdr + 2.*betap*betap/rsinth*g_pp; gmunudr[1][0] = gmunudr[0][1] = 0.; gmunudr[2][0] = gmunudr[0][2] = 0.; gmunudr[0][3] = gmunudr[3][0] = (betapdr - betap/rr)*g_pp*rsinth + betap*g_ppdr*rsinth + 2.*betap*g_pp*sinth; gmunudth[0][0] = -2.*lapsedth*lapse_val + 2.*(-costh/sinth*betap + betapdth)*betap*g_pp + betap*betap*g_ppdth + 2.*betap*betap*g_pp*costh/sinth; gmunudth[1][0] = gmunudth[0][1] = 0.; gmunudth[2][0] = gmunudth[0][2] = 0.; gmunudth[0][3] = gmunudth[3][0] = (-costh/sinth*betap + betapdth)*g_pp*rsinth + betap*g_ppdth*rsinth + 2.*betap*g_pp*rr*costh; // g_{i,mu} gmunudr[1][1] = g_rrdr; gmunudr[1][0] = gmunudr[0][1] = 0.; gmunudr[1][2] = gmunudr[2][1] = 0.; gmunudr[1][3] = gmunudr[3][1] = 0.; gmunudth[1][1] = g_rrdth; gmunudth[1][0] = gmunudth[0][1] = 0.; gmunudth[1][2] = gmunudth[2][1] = 0.; gmunudth[1][3] = gmunudth[3][1] = 0.; gmunudr[2][2] = r2*g_ththdr+ 2.*rr*g_thth; gmunudr[2][0] = gmunudr[0][2] = 0.; gmunudr[2][3] = gmunudr[3][2] = 0.; gmunudth[2][2] = r2*g_ththdth; gmunudth[2][0] = gmunudth[0][2] = 0.; gmunudth[2][3] = gmunudth[3][2] = 0.; gmunudr[3][3] = (g_ppdr*rr + 2.*g_pp)*rr*sinth2; gmunudth[3][3] = r2*sinth*(g_ppdth*sinth + 2.*g_pp*costh); } void NumericalMetricLorene::gmunu_up(double gup[4][4], const double x[4] ) const { GYOTO_DEBUG << endl; double tt=x[0]; int it=nb_times_-1; while(tt=0){ //ASSUMES backward integration, to generalize it--; } double pos3[3]={x[1],x[2],x[3]}; if (it==nb_times_-1) { double gupnbt[4][4]; gmunu_up(gupnbt,pos3,nb_times_-1); for (int mu=0;mu<4;++mu){ for (int nu=0;nu<4;++nu){ gup[mu][nu]=gupnbt[mu][nu]; //use metric nb nb_times_-1 //for all times > max(metric times) } } } if (it==-1) { double gup0[4][4]; gmunu_up(gup0,pos3,0); for (int mu=0;mu<4;++mu){ for (int nu=0;nu<4;++nu){ gup[mu][nu]=gup0[mu][nu]; //use metric nb 0 //for all times > max(metric times) } } } if (it==nb_times_-2 || it==0){ //linear inter for extremal-1 points double t1=times_[it], t2=times_[it+1]; double gup1[4][4], gup2[4][4]; gmunu_up(gup1,pos3,it); gmunu_up(gup2,pos3,it+1); for (int mu=0;mu<4;++mu){ for (int nu=0;nu<4;++nu){ gup[mu][nu]=(gup1[mu][nu] - gup2[mu][nu])/(t1-t2)*(tt-t1) + gup1[mu][nu]; } } } //Else : use 3rd order interp double gup1[4][4], gup2[4][4], gup3[4][4], gup4[4][4]; gmunu_up(gup1,pos3,it-1); gmunu_up(gup2,pos3,it); gmunu_up(gup3,pos3,it+1); gmunu_up(gup4,pos3,it+2); for (int mu=0;mu<4;++mu){ for (int nu=0;nu<4;++nu){ double y1=gup1[mu][nu], y2=gup2[mu][nu], y3=gup3[mu][nu], y4=gup4[mu][nu]; double values[4]={y1,y2,y3,y4}; gup[mu][nu] = Interpol3rdOrder(tt,it,values); } } } void NumericalMetricLorene::gmunu_up(double gup[4][4], const double x[4], int indice_time ) const { // Contravariant metric coefs if (indice_time<0 || indice_time>nb_times_-1) GYOTO_ERROR("NumericalMetricLorene::gmunu_up: " "incoherent value of indice_time"); double rr=x[0], r2=rr*rr, th=x[1], costh=cos(th), sinth=sin(th), sinth2=sinth*sinth, rsinth=rr*sin(th), ph=x[2]; Scalar* lapse = (lapse_tab_[indice_time]); double lapse_val = lapse->val_point(rr,th,ph); // lapse value double lapsem2 = 1./(lapse_val*lapse_val); const Vector& shift = *(shift_tab_[indice_time]); double betap = shift(3).val_point(rr,th,ph); // omega const Sym_tensor& g_up_ij = *(gamcov_tab_[indice_time]); double g_up_rr = g_up_ij(1,1).val_point(rr,th,ph), // gamma^rr g_up_thth = g_up_ij(2,2).val_point(rr,th,ph), // idem for gamma^thth g_up_pp = g_up_ij(3,3).val_point(rr,th,ph); // idem for gamma^pp // Okay here we have all possible metric quantities // g^{t,mu} gup[0][0] = -lapsem2; gup[0][1] = gup[1][0] = 0.; gup[0][2] = gup[2][0] = 0.; gup[0][3] = gup[3][0] = betap/rsinth*lapsem2; // remember that betap is in Lorene orthonormal basis // and that betap=-omega // g^{i,mu} gup[1][1] = g_up_rr; gup[1][2] = gup[2][1] = 0.; gup[1][3] = gup[3][1] = 0.; gup[2][2] = g_up_thth*1./r2; gup[2][3] = gup[3][2] = 0.; gup[3][3] = 1./(r2*sinth2) * (-betap*betap*lapsem2 + g_up_pp); } double NumericalMetricLorene::gmunu(const double pos[4], int mu, int nu) const { GYOTO_DEBUG << endl; double tt=pos[0]; int it=nb_times_-1; while(tt=0){ //ASSUMES backward integration, to generalize it--; } // it=-1; //DEBUGIT // if (pos[1]<0.187) it=1305; // TEST!!!! double pos3[3]={pos[1],pos[2],pos[3]}; if (it==nb_times_-1) return gmunu(pos3,nb_times_-1,mu,nu); //use metric nb nb_times_-1 //for all times > max(metric times) if (it==-1) return gmunu(pos3,0,mu,nu); //use metric nb 0 for all //times < min(metric times) if (it==nb_times_-2 || it==0){ //linear inter for extremal-1 points double t1=times_[it], t2=times_[it+1]; return (gmunu(pos3,it,mu,nu) -gmunu(pos3,it+1,mu,nu))/(t1-t2)*(tt-t1) + gmunu(pos3,it,mu,nu); } //Else : use 3rd order interp double y1=gmunu(pos3,it-1,mu,nu), y2=gmunu(pos3,it,mu,nu), y3=gmunu(pos3,it+1,mu,nu), y4=gmunu(pos3,it+2,mu,nu); double values[4]={y1,y2,y3,y4}; return Interpol3rdOrder(tt,it,values); } double NumericalMetricLorene::gmunu(const double pos[3], int indice_time, int mu, int nu) const { GYOTO_DEBUG << endl; /* 4D metric. NB: 3-metric supposed to be conformally flat */ if (indice_time<0 || indice_time>nb_times_-1) GYOTO_ERROR("NumericalMetricLorene::gmunu: incoherent value of indice_time"); if ( mu<0 || mu>3 || nu<0 || nu>3) GYOTO_ERROR("In NumericalMetricLorene::gmunu bad indice value"); double rr=pos[0], r2=rr*rr, th=pos[1], rsinth=rr*sin(th); if (rr==0.) GYOTO_ERROR("In NumericalMetricLorene.C::gmunu r is 0!"); if (rsinth==0.) GYOTO_ERROR("In NumericalMetricLorene.C::gmunu on z axis!"); double rm1=1./rr, r2sinth2=r2*sin(th)*sin(th), ph=pos[2]; Scalar* lapse = (lapse_tab_[indice_time]); double lapse_val = lapse->val_point(rr,th,ph); const Vector& shift = *(shift_tab_[indice_time]); const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]); double res=0.; if ((mu==0) && (nu==0)) { res = -lapse_val*lapse_val // NB: no correction factors due to // change of basis because they // cancel each other +g_ij(1,1).val_point(rr,th,ph) *shift(1).val_point(rr,th,ph) *shift(1).val_point(rr,th,ph) +g_ij(2,2).val_point(rr,th,ph) *shift(2).val_point(rr,th,ph) *shift(2).val_point(rr,th,ph) +g_ij(3,3).val_point(rr,th,ph) *shift(3).val_point(rr,th,ph) *shift(3).val_point(rr,th,ph); }else if ((mu==1) && (nu==1)) { res = g_ij(1,1).val_point(rr,th,ph); }else if ((mu==2) && (nu==2)) { res = r2*g_ij(2,2).val_point(rr,th,ph); }else if ((mu==3) && (nu==3)) { res = r2sinth2*g_ij(3,3).val_point(rr,th,ph); }else if (((mu==0) && (nu==1)) || ((mu==1) && (nu==0)) ) { res = g_ij(1,1).val_point(rr,th,ph)*shift(1).val_point(rr,th,ph); }else if (((mu==0) && (nu==2)) || ((mu==2) && (nu==0)) ) { res = r2*g_ij(2,2).val_point(rr,th,ph)*rm1*shift(2).val_point(rr,th,ph); }else if (((mu==0) && (nu==3)) || ((mu==3) && (nu==0)) ) { res = rsinth*g_ij(3,3).val_point(rr,th,ph)*shift(3).val_point(rr,th,ph); } if (res!=res) GYOTO_ERROR("NumericalMetricLorene::gmunu is nan!"); if (res==res+1.) { //cout << "r,th,ph= " << rr << " " << th << " " << ph << endl; //cout << "mu,nu,res= " << mu << " " << nu << " " << res << endl; //GYOTO_ERROR("NumericalMetricLorene::gmunu is inf!"); } return res; } double NumericalMetricLorene::gmunu_up_dr(const double pos[4], int mu, int nu) const { GYOTO_DEBUG << endl; double tt=pos[0]; int it=nb_times_-1; while(tt=0){ //ASSUMES backward integration, to generalize it--; } double pos3[3]={pos[1],pos[2],pos[3]}; if (it==nb_times_-1) return gmunu_up_dr(pos3,nb_times_-1,mu,nu); //use metric nb nb_times_-1 //for all times > max(metric times) if (it==-1) return gmunu_up_dr(pos3,0,mu,nu); //use metric nb 0 for all //times < min(metric times) if (it==nb_times_-2 || it==0){ //linear inter for extremal-1 points double t1=times_[it], t2=times_[it+1]; return (gmunu_up_dr(pos3,it,mu,nu) -gmunu_up_dr(pos3,it+1,mu,nu))/(t1-t2)*(tt-t1) + gmunu_up_dr(pos3,it,mu,nu); } //Else : use 3rd order interp double y1=gmunu_up_dr(pos3,it-1,mu,nu), y2=gmunu_up_dr(pos3,it,mu,nu), y3=gmunu_up_dr(pos3,it+1,mu,nu), y4=gmunu_up_dr(pos3,it+2,mu,nu); double values[4]={y1,y2,y3,y4}; return Interpol3rdOrder(tt,it,values); } double NumericalMetricLorene::gmunu_up_dr(const double pos[3], int indice_time, int mu, int nu) const { GYOTO_DEBUG << endl; /* gmunu contravariant, derived wrt r. NB: 3-metric supposed to be conformally flat */ if (indice_time<0 || indice_time>nb_times_-1) GYOTO_ERROR("NumericalMetricLorene::gmunu_up_dr: " "incoherent value of indice_time"); if ( (mu!=0 && mu!=3) || (nu!=0 && nu!=3)) GYOTO_ERROR("In NumericalMetricLorene::gmunu_up_dr bad indice value"); // NB: so far only t and phi components are coded double rr=pos[0], th=pos[1], rsinth=rr*sin(th), ph=pos[2]; if (rr==0.) GYOTO_ERROR("In NumericalMetricLorene.C::gmunu_up_dr r is 0!"); if (rsinth==0.) GYOTO_ERROR("In NumericalMetricLorene.C::gmunu_up_dr " "on z axis!"); double rm1=1./rr, rsinthm1=1./(rsinth), rsinthm2=rsinthm1*rsinthm1; Scalar* lapse = (lapse_tab_[indice_time]); double lapse_val = lapse->val_point(rr,th,ph), lapse_valm1=1./lapse_val, lapse_valm2=lapse_valm1*lapse_valm1, lapse_valm3=lapse_valm2*lapse_valm1, lapsedr = lapse->dsdr().val_point(rr,th,ph); const Vector& shift = *(shift_tab_[indice_time]); double betap = shift(3).val_point(rr,th,ph), betapdr = shift(3).dsdr().val_point(rr,th,ph); const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]); double g_pp = g_ij(3,3).val_point(rr,th,ph), g_ppdr = g_ij(3,3).dsdr().val_point(rr,th,ph); double res=0.; if ((mu==0) && (nu==0)) { res = 2.*lapsedr*lapse_valm3; }else if ((mu==1) && (nu==1)) { res = 0.; }else if ((mu==2) && (nu==2)) { res = 0.; }else if ((mu==3) && (nu==3)) { res = rsinthm2*(-2.*rm1*(1./g_pp-betap*betap*lapse_valm2) -(g_ppdr/(g_pp*g_pp) +2.*betap*(betapdr*lapse_valm2 -betap*lapsedr*lapse_valm3))); }else if (((mu==0) && (nu==1)) || ((mu==1) && (nu==0)) ) { res = 0.; }else if (((mu==0) && (nu==2)) || ((mu==2) && (nu==0)) ) { res = 0.; }else if (((mu==0) && (nu==3)) || ((mu==3) && (nu==0)) ) { res = lapse_valm2*rsinthm1*(-rm1*betap+betapdr-2.*betap*lapsedr*lapse_valm1); } if (res!=res) GYOTO_ERROR("NumericalMetricLorene::gmunu_up_dr is nan!"); if (res==res+1.) GYOTO_ERROR("NumericalMetricLorene::gmunu_up_dr is inf!"); return res; } ///////// double NumericalMetricLorene::christoffel(const double coord[4], const int alpha, const int mu, const int nu) const { // 4D christoffels: time interpolation GYOTO_DEBUG << endl; if (nb_times_>1) GYOTO_ERROR("In NML::christoffel:" "so far only stationary metric implemented"); double tt = coord[0]; int it=nb_times_-1; while(tt=0) it--; if (it==nb_times_-1) { return christoffel(coord,alpha,mu,nu,nb_times_-1); //use metric nb nb_times_-1 for all times > max(metric times) } if (it==-1) { return christoffel(coord,alpha,mu,nu,0); //use metric nb 0 for all times < min(metric times) } if (it==nb_times_-2 || it==0){ // LINEAR interp for extremal-1 points double t1=times_[it], t2=times_[it+1]; double chris1 = christoffel(coord,alpha,mu,nu,it), chris2 = christoffel(coord,alpha,mu,nu,it+1); double chris = (chris2-chris1)/(t2-t1)*(tt-t1)+chris1; return chris; } //Else: use THIRD ORDER interp double chris1 = christoffel(coord,alpha,mu,nu,it-1), chris2 = christoffel(coord,alpha,mu,nu,it), chris3 = christoffel(coord,alpha,mu,nu,it+1), chris4 = christoffel(coord,alpha,mu,nu,it+2); double values[4]={chris1,chris2,chris3,chris4}; double chris = Interpol3rdOrder(tt,it,values); return chris; } double NumericalMetricLorene::christoffel(const double coord[4], const int alpha, const int mu, const int nu, const int indice_time) const { // 4D christoffels: actual computation on a given time slice /* !!! *** CAUTION *** !!! Here (and here only in this class) it is assumed that the metric is STATIONARY, AXISYM, and that the spacetime is CIRCULAR (typically, rotating relativistic stars framework). For other spacetimes, the 3+1 integration should be used (which is completely general), not the 4D one. */ if (coord[1]==0. || sin(coord[2])==0.) GYOTO_ERROR("NML::christoffel:" " bad location"); double rr=coord[1], th=coord[2], ph=coord[3], sinth=0., costh=0.; sincos(th, &sinth, &costh); double r2=rr*rr, rsinth=rr*sinth, sm1=1./sinth, rm1=1./rr, rsm1 = rm1*sm1, sinth2=sinth*sinth, r2sinth2=r2*sinth2, rm2 = rm1*rm1; if ((alpha==0 && mu==0 && nu==1) || (alpha==0 && mu==1 && nu==0)){ Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,ph), Nr = lapse->dsdr().val_point(rr,th,ph); if (NN==0.) GYOTO_ERROR("In NML::christoffel: bad lapse value"); const Vector& shift = *(shift_tab_[indice_time]); double beta_p = rsm1*shift(3).val_point(rr,th,ph); const Sym_tensor& kij = *(kij_tab_[indice_time]); double Krp = rsinth*kij(1,3).val_point(rr,th,ph); return 1./NN*(Nr-Krp*beta_p); }else if ((alpha==0 && mu==0 && nu==2) || (alpha==0 && mu==2 && nu==0)){ Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,ph), Nt = lapse->dsdt().val_point(rr,th,ph); if (NN==0.) GYOTO_ERROR("In NML::christoffel: bad lapse value"); const Vector& shift = *(shift_tab_[indice_time]); double beta_p = rsm1*shift(3).val_point(rr,th,ph); const Sym_tensor& kij = *(kij_tab_[indice_time]); double Ktp = rr*rsinth*kij(2,3).val_point(rr,th,ph); return 1./NN*(Nt-Ktp*beta_p); } else if ((alpha==0 && mu==1 && nu==3) || (alpha==0 && mu==3 && nu==1)) { Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,ph); if (NN==0.) GYOTO_ERROR("In NML::christoffel: bad laspe value"); const Sym_tensor& kij = *(kij_tab_[indice_time]); double Krp = rsinth*kij(1,3).val_point(rr,th,ph); return -Krp/NN; } else if ((alpha==0 && mu==2 && nu==3) || (alpha==0 && mu==3 && nu==2)) { Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,ph); if (NN==0.) GYOTO_ERROR("In NML::christoffel: bad lapse value"); const Sym_tensor& kij = *(kij_tab_[indice_time]); double Ktp = rr*rsinth*kij(2,3).val_point(rr,th,ph); return -Ktp/NN; } else if (alpha==1 && mu==0 && nu==0) { Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,ph), Nr = lapse->dsdr().val_point(rr,th,ph); const Vector& shift = *(shift_tab_[indice_time]); double beta_p = rsm1*shift(3).val_point(rr,th,ph); const Sym_tensor& kij = *(kij_tab_[indice_time]); double Krp = rsinth*kij(1,3).val_point(rr,th,ph); const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); double grr=g_up_ij(1,1).val_point(rr,th,ph); return NN*grr*(Nr - 2.*Krp*beta_p); } else if (alpha==2 && mu==0 && nu==0) { Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,ph), Nt = lapse->dsdt().val_point(rr,th,ph); const Vector& shift = *(shift_tab_[indice_time]); double beta_p = rsm1*shift(3).val_point(rr,th,ph); const Sym_tensor& kij = *(kij_tab_[indice_time]); double Ktp = rr*rsinth*kij(1,3).val_point(rr,th,ph); const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); double gtt=1./r2*g_up_ij(1,1).val_point(rr,th,ph); return NN*gtt*(Nt - 2.*Ktp*beta_p); } else if ((alpha==1 && mu==0 && nu==3) || (alpha==1 && mu==3 && nu==0)) { Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,ph); const Sym_tensor& kij = *(kij_tab_[indice_time]); double Krp = rsinth*kij(1,3).val_point(rr,th,ph); const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); double grr=g_up_ij(1,1).val_point(rr,th,ph); return -NN*grr*Krp; } else if ((alpha==2 && mu==0 && nu==3) || (alpha==2 && mu==3 && nu==0)) { Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,ph); const Sym_tensor& kij = *(kij_tab_[indice_time]); double Ktp = rr*rsinth*kij(2,3).val_point(rr,th,ph); const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); double gtt=1./r2*g_up_ij(2,2).val_point(rr,th,ph); return -NN*gtt*Ktp; } else if ((alpha==3 && mu==1 && nu==0) || (alpha==3 && mu==0 && nu==1)) { Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,ph), Nr = lapse->dsdr().val_point(rr,th,ph); const Vector& shift = *(shift_tab_[indice_time]); double beta_p = rsm1*shift(3).val_point(rr,th,ph); double beta_pr = rsm1*shift(3).dsdr().val_point(rr,th,ph) -1./(r2*sinth)*beta_p; const Sym_tensor& kij = *(kij_tab_[indice_time]); double Krp = rsinth*kij(1,3).val_point(rr,th,ph); const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); double gpp=rsm1*rsm1*g_up_ij(3,3).val_point(rr,th,ph); const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]) ; double gamma_prp = 0.5*gpp *(r2sinth2*g_ij(3,3).dsdr().val_point(rr,th,ph) +2.*rr*sinth2*g_ij(3,3).val_point(rr,th,ph)); if (NN==0.) GYOTO_ERROR("In NML::christoffel: bad lapse value"); return beta_pr + gamma_prp*beta_p -NN*gpp*Krp+beta_p/NN*(Krp*beta_p-Nr); } else if ((alpha==3 && mu==2 && nu==0) || (alpha==3 && mu==0 && nu==2)) { Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,ph), Nt = lapse->dsdt().val_point(rr,th,ph); const Vector& shift = *(shift_tab_[indice_time]); double beta_p = rsm1*shift(3).val_point(rr,th,ph); double beta_pt = rsm1*shift(3).dsdt().val_point(rr,th,ph) -costh*rsm1*sm1*beta_p; const Sym_tensor& kij = *(kij_tab_[indice_time]); double Ktp = rr*rsinth*kij(2,3).val_point(rr,th,ph); const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); double gpp=rsm1*rsm1*g_up_ij(3,3).val_point(rr,th,ph); const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]) ; double gamma_ptp = 0.5*gpp *(r2sinth2*g_ij(3,3).dsdt().val_point(rr,th,ph) +2.*costh*sinth*r2*g_ij(3,3).val_point(rr,th,ph)); if (NN==0.) GYOTO_ERROR("In NML::christoffel: bad lapse value"); return beta_pt + gamma_ptp*beta_p -NN*gpp*Ktp+beta_p/NN*(Ktp*beta_p-Nt); } else if (alpha==1 && mu==1 && nu==1) { const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]) ; return 0.5*g_up_ij(1,1).val_point(rr,th,ph) *g_ij(1,1).dsdr().val_point(rr,th,ph); } else if (alpha==1 && mu==3 && nu==3) { const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]) ; return -0.5*g_up_ij(1,1).val_point(rr,th,ph) *(r2sinth2*g_ij(3,3).dsdr().val_point(rr,th,ph) +2.*rr*sinth2*g_ij(3,3).val_point(rr,th,ph)); } else if ((alpha==1 && mu==1 && nu==2) || (alpha==1 && mu==2 && nu==1)) { const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]) ; return 0.5*g_up_ij(1,1).val_point(rr,th,ph) *g_ij(1,1).dsdt().val_point(rr,th,ph); } else if (alpha==1 && mu==2 && nu==2) { const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]) ; return -0.5*g_up_ij(1,1).val_point(rr,th,ph) *(r2*g_ij(2,2).dsdr().val_point(rr,th,ph) + 2.*rr*g_ij(2,2).val_point(rr,th,ph)); } else if (alpha==2 && mu==3 && nu==3) { const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]) ; return -0.5*rm2*g_up_ij(2,2).val_point(rr,th,ph) *(r2sinth2*g_ij(3,3).dsdt().val_point(rr,th,ph) +2.*costh*sinth*r2*g_ij(3,3).val_point(rr,th,ph)); } else if (alpha==2 && mu==1 && nu==1) { const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]) ; return -0.5*rm2*g_up_ij(2,2).val_point(rr,th,ph) *g_ij(1,1).dsdt().val_point(rr,th,ph); } else if (alpha==2 && mu==2 && nu==2) { const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]) ; return 0.5*rm2*g_up_ij(2,2).val_point(rr,th,ph) *(r2*g_ij(2,2).dsdt().val_point(rr,th,ph)); } else if ((alpha==2 && mu==1 && nu==2) || (alpha==2 && mu==2 && nu==1)) { const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]) ; return 0.5*rm2*g_up_ij(2,2).val_point(rr,th,ph) *(r2*g_ij(2,2).dsdr().val_point(rr,th,ph) +2.*rr*g_ij(2,2).val_point(rr,th,ph)); } else if ((alpha==3 && mu==1 && nu==3) || (alpha==3 && mu==3 && nu==1)) { const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]) ; Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,ph); if (NN==0.) GYOTO_ERROR("In NML::christoffel: bad lapse value"); const Vector& shift = *(shift_tab_[indice_time]); double beta_p = rsm1*shift(3).val_point(rr,th,ph); const Sym_tensor& kij = *(kij_tab_[indice_time]); double Krp = rsinth*kij(1,3).val_point(rr,th,ph); return 0.5*rsm1*rsm1*g_up_ij(3,3).val_point(rr,th,ph) *(r2sinth2*g_ij(3,3).dsdr().val_point(rr,th,ph) +2.*rr*sinth2*g_ij(3,3).val_point(rr,th,ph)) + beta_p/NN*Krp; } else if ((alpha==3 && mu==2 && nu==3) || (alpha==3 && mu==3 && nu==2)) { const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]) ; Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,ph); if (NN==0.) GYOTO_ERROR("In NML::christoffel: bad lapse value"); const Vector& shift = *(shift_tab_[indice_time]); double beta_p = rsm1*shift(3).val_point(rr,th,ph); const Sym_tensor& kij = *(kij_tab_[indice_time]); double Ktp = rr*rsinth*kij(1,3).val_point(rr,th,ph); return 0.5*rsm1*rsm1*g_up_ij(3,3).val_point(rr,th,ph) *(r2sinth2*g_ij(3,3).dsdt().val_point(rr,th,ph) +2.*costh*sinth*r2*g_ij(3,3).val_point(rr,th,ph)) + beta_p/NN*Ktp; } // Other christo are zero return 0.; } int NumericalMetricLorene::christoffel(double dst[4][4][4], const double coord[4]) const { // all at once computation of christoffel 4D: time interpolation GYOTO_DEBUG << endl; double tt = coord[0]; if (nb_times_>1) GYOTO_ERROR("In NML::christoffel all at once:" "so far only stationary metric implemented"); int it=nb_times_-1; while(tt=0) it--; if (it==nb_times_-1) { return christoffel(dst,coord,nb_times_-1); //use metric nb nb_times_-1 for all times > max(metric times) } if (it==-1) { return christoffel(dst,coord,0); //use metric nb 0 for all times < min(metric times) } if (it==nb_times_-2 || it==0){ // LINEAR interp for extremal-1 points double t1=times_[it], t2=times_[it+1]; double dst1[4][4][4], dst2[4][4][4]; if (christoffel(dst1,coord,it) || christoffel(dst2,coord,it+1)) return 1; int alpha, mu, nu; for (alpha=0; alpha<4; ++alpha) { for (mu=0; mu<4; ++mu) { double dst1c = dst1[alpha][mu][mu], dst2c = dst2[alpha][mu][mu]; dst[alpha][mu][mu]=(dst2c-dst1c)/(t2-t1)*(tt-t1)+dst1c; for (nu=mu+1; nu<4; ++nu){ double dst1c = dst1[alpha][mu][nu], dst2c = dst2[alpha][mu][nu]; dst[alpha][mu][nu]=dst[alpha][nu][mu]= (dst2c-dst1c)/(t2-t1)*(tt-t1)+dst1c; } } } return 0; } //Else: use THIRD ORDER interp double dst1[4][4][4], dst2[4][4][4], dst3[4][4][4], dst4[4][4][4]; if (christoffel(dst1,coord,it-1) || christoffel(dst2,coord,it) || christoffel(dst3,coord,it+1) || christoffel(dst4,coord,it+2)) return 1; int alpha, mu, nu; for (alpha=0; alpha<4; ++alpha) { for (mu=0; mu<4; ++mu) { double values[4]={dst1[alpha][mu][mu],dst2[alpha][mu][mu], dst3[alpha][mu][mu],dst4[alpha][mu][mu]}; dst[alpha][mu][mu]=Interpol3rdOrder(tt,it,values); for (nu=mu+1; nu<4; ++nu){ double values[4]={dst1[alpha][mu][nu],dst2[alpha][mu][nu], dst3[alpha][mu][nu],dst4[alpha][mu][nu]}; dst[alpha][mu][nu]=dst[alpha][nu][mu]=Interpol3rdOrder(tt,it,values); } } } return 0; } int NumericalMetricLorene::christoffel(double dst[4][4][4], const double coord[4], const int indice_time) const { // all at once computation of christoffel 4D: actual computation GYOTO_DEBUG << endl; double sinth=0., costh=0, rr=coord[1], th=coord[2], ph=coord[3]; sincos(th, &sinth, &costh); if (rr==0. || sinth==0.) GYOTO_ERROR("NML::christoffel:" " bad location"); double r2=rr*rr, rsinth=rr*sinth, rm1=1./rr, sm1=1./sinth, rsm1 = rm1*sm1, sinth2=sinth*sinth, r2sinth2=r2*sinth2, rm2 = rm1*rm1; Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,ph), Nr = lapse->dsdr().val_point(rr,th,ph), Nt = lapse->dsdt().val_point(rr,th,ph); if (NN==0.) GYOTO_ERROR("In NML::christoffel: bad laspe value"); const Vector& shift = *(shift_tab_[indice_time]); double beta_p = rsm1*shift(3).val_point(rr,th,ph); double beta_pr = rsm1*shift(3).dsdr().val_point(rr,th,ph) -rm1*rsm1*shift(3).val_point(rr,th,ph); double beta_pt = rsm1*shift(3).dsdt().val_point(rr,th,ph) -costh*rsm1*sm1*shift(3).val_point(rr,th,ph); const Sym_tensor& kij = *(kij_tab_[indice_time]); double Krp = rsinth*kij(1,3).val_point(rr,th,ph); double Ktp = rr*rsinth*kij(2,3).val_point(rr,th,ph); const Sym_tensor& g_up_ij = *(gamcon_tab_[indice_time]); // contravariant 3-metric double grr=g_up_ij(1,1).val_point(rr,th,ph), gtt=rm2*g_up_ij(2,2).val_point(rr,th,ph), gpp=rsm1*rsm1*g_up_ij(3,3).val_point(rr,th,ph); const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]) ; // derivation of covariant 3-metric double g_rr_r = g_ij(1,1).dsdr().val_point(rr,th,ph), g_rr_t = g_ij(1,1).dsdt().val_point(rr,th,ph), g_tt_r = r2*g_ij(2,2).dsdr().val_point(rr,th,ph) + 2.*rr*g_ij(2,2).val_point(rr,th,ph), g_tt_t = r2*g_ij(2,2).dsdt().val_point(rr,th,ph), g_pp_r = r2sinth2*g_ij(3,3).dsdr().val_point(rr,th,ph) +2.*rr*sinth2*g_ij(3,3).val_point(rr,th,ph), g_pp_t = r2sinth2*g_ij(3,3).dsdt().val_point(rr,th,ph) +2.*costh*sinth*r2*g_ij(3,3).val_point(rr,th,ph); dst[0][0][1]=dst[0][1][0]=1./NN*(Nr-Krp*beta_p); //checked dst[0][0][2]=dst[0][2][0]=1./NN*(Nt-Ktp*beta_p); //checked dst[0][1][3]=dst[0][3][1]=-Krp/NN; //checked dst[0][2][3]=dst[0][3][2]=-Ktp/NN; //checked dst[1][0][0]=NN*grr*(Nr - 2.*Krp*beta_p - beta_p*beta_p/(2.*NN)*g_pp_r); //checked dst[2][0][0]=NN*gtt*(Nt - 2.*Ktp*beta_p - beta_p*beta_p/(2.*NN)*g_pp_t); //checked dst[1][0][3]=dst[1][3][0]=-grr*(NN*Krp+0.5*beta_p*g_pp_r); //checked dst[2][0][3]=dst[2][3][0]=-gtt*(NN*Ktp+0.5*beta_p*g_pp_t); //checked dst[3][1][0]=dst[3][0][1]=beta_pr + 0.5*gpp*g_pp_r*beta_p -NN*gpp*Krp+beta_p/NN*(Krp*beta_p-Nr); //checked dst[3][2][0]=dst[3][0][2]=beta_pt + 0.5*gpp*g_pp_t*beta_p -NN*gpp*Ktp+beta_p/NN*(Ktp*beta_p-Nt); //checked dst[1][1][1]=0.5*grr*g_rr_r; //checked dst[1][3][3]=-0.5*grr*g_pp_r; //checked dst[1][1][2]=dst[1][2][1]=0.5*grr*g_rr_t; //checked dst[1][2][2]=-0.5*grr*g_tt_r; //checked dst[2][3][3]=-0.5*gtt*g_pp_t; //checked dst[2][1][1]=-0.5*gtt*g_rr_t; //checked dst[2][2][2]=0.5*gtt*g_tt_t; //checked dst[2][1][2]=dst[2][2][1]=0.5*gtt*g_tt_r; //checked dst[3][1][3]=dst[3][3][1]=0.5*gpp*g_pp_r + beta_p/NN*Krp; //checked dst[3][2][3]=dst[3][3][2]=0.5*gpp*g_pp_t + beta_p/NN*Ktp; //checked dst[0][0][0]=0.; dst[0][0][3]=0.; dst[0][3][0]=0.; dst[0][1][1]=0.; dst[0][2][2]=0.; dst[0][3][3]=0.; dst[0][1][2]=0.; dst[0][2][1]=0.; dst[3][0][0]=0.; dst[1][0][1]=0.; dst[1][1][0]=0.; dst[1][0][2]=0.; dst[1][2][0]=0.; dst[2][0][1]=0.; dst[2][1][0]=0.; dst[2][0][2]=0.; dst[2][2][0]=0.; dst[3][0][3]=0.; dst[3][3][0]=0.; dst[1][1][3]=0.; dst[1][3][1]=0.; dst[1][2][3]=0.; dst[1][3][2]=0.; dst[2][1][3]=0.; dst[2][3][1]=0.; dst[2][2][3]=0.; dst[2][3][2]=0.; dst[3][1][1]=0.; dst[3][2][2]=0.; dst[3][3][3]=0.; dst[3][1][2]=0.; dst[3][2][1]=0.; // Oh yeah, this makes 64 christoffels return 0; } double NumericalMetricLorene::computeHorizon(const double* pos) const{ GYOTO_DEBUG << endl; if (!hor_tab_ && !horizon_) return 0.; if (horizon_ && !hor_tab_) return horizon_; if (hor_tab_ && !horizon_){ int it=nb_times_-1; double tt=pos[0]; double* times=getTimes(); while(tt=0){ //ASSUMES backward integration, to generalize it--; } double rhor; if (it==nb_times_-1){ return computeHorizon(pos,nb_times_-1); } if (it==-1) return computeHorizon(pos,0); if (it==nb_times_-2 || it==0){ double t1=times[it], t2=times[it+1]; double rhor1=computeHorizon(pos,it), rhor2=computeHorizon(pos,it+1); rhor=(rhor2-rhor1)/(t2-t1)*(tt-t1)+rhor1; return rhor; } double rhor1=computeHorizon(pos,it-1), rhor2=computeHorizon(pos,it), rhor3=computeHorizon(pos,it+1), rhor4=computeHorizon(pos,it+2); double values[4]={rhor1,rhor2,rhor3,rhor4}; rhor=Interpol3rdOrder(tt,it,values); return rhor; } GYOTO_ERROR("In NumericalMetricLorene::computeHorizon: " "impossible case"); return 0.; } double NumericalMetricLorene::computeHorizon(const double* pos, int indice_time) const{ GYOTO_DEBUG << endl; if (indice_time<0 || indice_time>nb_times_-1){ GYOTO_ERROR("NumericalMetricLorene::computeHorizon" ": incoherent value of indice_time"); } double th=pos[2], phi=pos[3]; Valeur* horizon = (hor_tab_[indice_time]); horizon->std_base_scal(); return horizon->val_point(0,0.,th,phi); } double NumericalMetricLorene::Interpol3rdOrder(double tt, int indice_time, double values[4]) const { GYOTO_DEBUG << endl; //Interpolation at order 3 at point tt, the considered function //taking the values "values" at time indices: indice_time-1,+0,+1,+2. double t1=times_[indice_time-1], t2=times_[indice_time], t3=times_[indice_time+1], t4=times_[indice_time+2]; double y1=values[0], y2=values[1], y3=values[2], y4=values[3]; //Neuville's algorithm //3 first order poly double P12=((tt-t2)*y1+(t1-tt)*y2)/(t1-t2), P23=((tt-t3)*y2+(t2-tt)*y3)/(t2-t3), P34=((tt-t4)*y3+(t3-tt)*y4)/(t3-t4); //2 second order poly double P123=((tt-t3)*P12+(t1-tt)*P23)/(t1-t3), P234=((tt-t4)*P23+(t2-tt)*P34)/(t2-t4); //1 third order poly : the solution double P1234=((tt-t4)*P123+(t1-tt)*P234)/(t1-t4); return P1234; } void NumericalMetricLorene::directory(std::string const &dir) { char const * const cdir=dir.c_str(); filename_ = new char[strlen(cdir)+1]; strcpy(filename_, cdir); setMetricSource(); } std::string NumericalMetricLorene::directory() const { return filename_?string(filename_):string(""); } bool NumericalMetricLorene::hasSurface() const {return has_surface_;} void NumericalMetricLorene::hasSurface(bool s) { has_surface_ = s; if (filename_!=NULL){ GYOTO_ERROR("In NumericalMetricLorene::hasSurface " "please provide Surface information before File in XML"); } } bool NumericalMetricLorene::hasAccelerationVector() const {return has_acceleration_vector_;} void NumericalMetricLorene::hasAccelerationVector(bool aa) { has_acceleration_vector_ = aa; if (filename_!=NULL){ GYOTO_ERROR("In NumericalMetricLorene::hasAccelerationVector " "please provide Acceleration vector info before File in XML"); } } bool NumericalMetricLorene::bosonstarcircular() const { return bosonstarcircular_;} void NumericalMetricLorene::bosonstarcircular(bool t) {bosonstarcircular_=t;} bool NumericalMetricLorene::specifyMarginalOrbits() const { return specify_marginalorbits_; } void NumericalMetricLorene::specifyMarginalOrbits(bool s) { specify_marginalorbits_=s; if (filename_!=NULL){ GYOTO_ERROR("In NumericalMetricLorene::specifyMarginalOrbits " "please provide Marginal orbits information " "before File in XML"); } } double NumericalMetricLorene::rico() const {return rico_;} void NumericalMetricLorene::rico(double r0) {rico_=r0;} bool NumericalMetricLorene::mapEt() const {return mapet_;} void NumericalMetricLorene::mapEt(bool s) { mapet_ = s; if (filename_!=NULL){ GYOTO_ERROR("In NumericalMetricLorene::mapEt " "please provide MapET/MapAF information before File in XML"); } } bool NumericalMetricLorene::axisymCirc() const {return axisymCirc_;} void NumericalMetricLorene::axisymCirc(bool s) { axisymCirc_ = s; } double NumericalMetricLorene::initialTime() const {return initial_time_;} void NumericalMetricLorene::initialTime(double t0) {initial_time_=t0;} double NumericalMetricLorene::horizon() const {return horizon_;} void NumericalMetricLorene::horizon(double r0) {horizon_=r0;} void NumericalMetricLorene::circularVelocity(double const * coord, double* vel, double dir) const { GYOTO_DEBUG << endl; // return Generic::circularVelocity(coord,vel,dir); // TEST!! double tt = coord[0]; int it=nb_times_-1; while(tt=0) it--; if (it==nb_times_-1) { return circularVelocity(coord,vel,dir,nb_times_-1); } if (it==-1) { return circularVelocity(coord,vel,dir,0); } // Linear interp for extremal-1 points if (it==nb_times_-2 || it==0){ double vel1[4], vel2[4]; double t1=times_[it], t2=times_[it+1]; circularVelocity(coord,vel1,dir,it); circularVelocity(coord,vel2,dir,it+1); for (int ii=0;ii<4;ii++) vel[ii] = (vel2[ii]-vel1[ii])/(t2-t1)*(tt-t1) + vel1[ii]; return; } //Else: use 3rd order interp double vel1[4], vel2[4], vel3[4], vel4[4]; circularVelocity(coord,vel1,dir,it-1); circularVelocity(coord,vel2,dir,it); circularVelocity(coord,vel3,dir,it+1); circularVelocity(coord,vel4,dir,it+2); double values[4]; for (int ii=0;ii<4;ii++) { values[0]=vel1[ii]; values[1]=vel2[ii]; values[2]=vel3[ii]; values[3]=vel4[ii]; vel[ii] = Interpol3rdOrder(tt,it,values); } return; } void NumericalMetricLorene::circularVelocity(double const * coor, double* vel, double dir, int indice_time) const { //cout << "IN CIRCULAR" << endl; if (bosonstarcircular_){ // This expression is related to the ZAMO 3-velocity derived // in Grandclement+14 boson star paper //for (int ii=1;ii<=5000;ii++){ //double coorbis[4]={0.,double(ii*0.01),M_PI/2.,0.}; double rr=coor[1], th=coor[2], sinth=sin(th), ph=coor[3]; //double rr=coorbis[1], th=coorbis[2], sinth=sin(th), ph=coorbis[3]; if (rr<=0. || sinth==0.) GYOTO_ERROR("In NML::circularv: bad coor"); double rsm1 = 1./(rr*sinth), rm2 = 1/(rr*rr), sm1 = 1./sinth; const Sym_tensor& g_ij = *(gamcov_tab_[indice_time]) ; double B2 = g_ij(3,3).val_point(rr,th,ph); if (B2<=0.) GYOTO_ERROR("In NML::circularv: bad B2"); double BB = sqrt(B2); double Br = g_ij(3,3).dsdr().val_point(rr,th,ph)/(2.*BB); const Vector& shift = *(shift_tab_[indice_time]); double beta_p = rsm1*shift(3).val_point(rr,th,ph), beta_p_r = rsm1*shift(3).dsdr().val_point(rr,th,ph) -rm2*sm1*shift(3).val_point(rr,th,ph); Scalar* lapse = lapse_tab_[indice_time]; double NN = lapse -> val_point(rr,th,ph); if (NN==0.) GYOTO_ERROR("In NML::circularv: bad N"); double Nr = lapse->dsdr().val_point(rr,th,ph); double DD = B2*rr*rr/(NN*NN)*beta_p_r*beta_p_r + 4.*Nr/NN*(Br/BB+1./rr); if (DD<0.) GYOTO_ERROR("In NML::circularv: bad D"); // double g_tt = gmunu(coor,0,0), g_tp = gmunu(coor,0,3); double g_pp = gmunu(coor,3,3); //double g_tt = gmunu(coorbis,0,0), g_tp = gmunu(coorbis,0,3), //g_pp = gmunu(coorbis,3,3); if (g_pp<=0.) GYOTO_ERROR("In NML::circularv: bad g_pp"); double Vzamo = 0.5*(-BB*rr/NN*beta_p_r+sqrt(DD))/(1./rr+Br/BB); double Omega = NN*Vzamo/sqrt(g_pp) - beta_p; double ut = 1./(NN*sqrt(1.-Vzamo*Vzamo)); vel[0] = ut; vel[1] = 0.; vel[2] = 0.; vel[3] = Omega*ut; // double ell=2.5; // double pot = 0.5*log((g_tp*g_tp-g_tt*g_pp) // /(g_tt*ell*ell+2.*ell*g_tp+g_pp)); //cout << rr << " " << g_tp*g_tp-g_tt*g_pp << " " << g_tt*ell*ell+2.*ell*g_tp+g_pp << " " << pot << endl; //} double normtol = 1e-6; double norm = ScalarProd(coor,vel,vel); if (fabs(norm+1.)>normtol) { cerr << "At rr=" << coor[1] << endl; GYOTO_ERROR("In NML::circularv: bad norm"); } return; } GYOTO_ERROR("In NML::circularVelocity: circular velocity not implemented" " for this particular metric"); } Gyoto-2.0.2/lib/Object.C000066400000000000000000000426541455254334400147200ustar00rootroot00000000000000/* Copyright 2014-2016, 2019-2020 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoObject.h" #include "GyotoProperty.h" #include "GyotoValue.h" #include "GyotoError.h" #include "GyotoFactoryMessenger.h" #include "GyotoMetric.h" #include "GyotoAstrobj.h" #include "GyotoSpectrum.h" #include "GyotoSpectrometer.h" #include "GyotoScreen.h" #include using namespace std ; using namespace Gyoto ; // We do have a propert list. In contains a single item, wich is a // link to the NULL pointer, meaning end-of-the list. This is used to // terminate the property list of our descendents in a // forward-compatible manner, i.e., we may well add very generic // Properties in the future. GYOTO_PROPERTY_START(Gyoto::Object, "Object with properties.") GYOTO_PROPERTY_END(Object, NULL) Gyoto::Object::Object(std::string const &name):kind_(name), plugins_() {} Gyoto::Object::Object():kind_(""), plugins_() {} Gyoto::Object::Object(Object const &o):kind_(o.kind_), plugins_(o.plugins_) {} Gyoto::Object::~Object() {} // Output string Gyoto::Object::kind() const {return kind_;} void Gyoto::Object::kind(const string src) { kind_ = src;} bool Object::isThreadSafe() const { /** * The default behaviour is to consider that everything is * thread-safe (for the purpose of threads in * Gyoto::Scenery::rayTrace()). * * For Objects that have other Object as children, we need to * recursively ask those children whether they are thread-safe and * accumulate the answer. It can be done in a generic manner as long * as the Object declares its children as properties, this is what * we do here. * * Objects that are never thread-safe must reimplement this function * to simply return "false", which can be done with the pair of * macros GYOTO_OBJECT_THREAD_SAFETY/GYOTO_PROPERTY_THREAD_UNSAFE * respectively in the class declaration and definition. * * Objects that need to clone children that are not declared as * properties in their copy constructors need to reimplement this * method to take care of those children. */ bool safe = true; Property const * prop = getProperties(); SmartPointer child=NULL; while (prop) { if (*prop) { switch (prop -> type) { case Property::metric_t: child=SmartPointer(get(*prop)); break; case Property::screen_t: child=SmartPointer(get(prop)); break; case Property::astrobj_t: child=SmartPointer(get(*prop)); break; case Property::spectrum_t: child=SmartPointer(get(*prop)); break; case Property::spectrometer_t: child=SmartPointer(get(*prop)); break; default: child=NULL; } if (child) safe &= dynamic_cast(child()) -> isThreadSafe(); ++prop; } else { prop=prop->parent; } } GYOTO_DEBUG_EXPR(safe); return safe; } void Object::set(Property const &p, Value val, std::string const &unit) { GYOTO_DEBUG_EXPR(p.type); switch (p.type) { case Property::empty_t: GYOTO_ERROR("Attempt to set empty_t Property"); return; case Property::double_t: { Property::set_double_unit_t setu = p.setter_unit.set_double; if (setu) { GYOTO_DEBUG << "double Property which supports unit" << endl; (this->*setu)(val, unit); } else { GYOTO_DEBUG << "double Property which does not support unit" << endl; if (unit != "") GYOTO_ERROR("Can't set this property with unit"); set(p, val); } } return; case Property::vector_double_t: { Property::set_vector_double_unit_t setu = p.setter_unit.set_vdouble; if (setu) { GYOTO_DEBUG << "vector Property which supports unit" << endl; (this->*setu)(val, unit); } else { GYOTO_DEBUG << "vector Property which does not support unit" << endl; if (unit != "") GYOTO_ERROR("Can't set this property with unit"); set(p, val); } } return; default: GYOTO_DEBUG<< "Not a double_t, vector_double_t or empty_t Property" << endl; if (unit != "") GYOTO_ERROR("Can't set this property with unit (not a double)"); set(p, val); return; } } void Object::set(Property const &p, Value val) { # define ___local_case(type) \ case Property::type##_t: \ { \ GYOTO_DEBUG <<"Setting property of type " #type << endl; \ Property::set_##type##_t set = p.setter.set_##type; \ GYOTO_DEBUG_EXPR(set); \ if (!set) GYOTO_ERROR("Can't set this Property"); \ (this->*set)(val); \ } \ break switch (p.type) { case Property::empty_t: return; ___local_case(double); ___local_case(bool); ___local_case(long); ___local_case(unsigned_long); ___local_case(size_t); case Property::filename_t: ___local_case(string); case Property::vector_double_t: { Property::set_vector_double_t set = p.setter.set_vdouble; if (!set) GYOTO_ERROR("Can't set this Property"); (this->*set)(val); } break; case Property::vector_unsigned_long_t: { Property::set_vector_unsigned_long_t set = p.setter.set_vulong; if (!set) GYOTO_ERROR("Can't set this Property"); (this->*set)(val); } break; ___local_case(metric); ___local_case(astrobj); ___local_case(spectrum); ___local_case(spectrometer); ___local_case(screen); default: GYOTO_ERROR("Unimplemented Property type in Object::set"); } # undef ___local_case } void Object::set(std::string const &pname, Value val) { GYOTO_DEBUG_EXPR(pname); Property const * p = property(pname); if (!p) GYOTO_ERROR("No Property by that name"); set(*p, ((p->type == Property::bool_t && pname == p->name_false)? Value(!val):val)); } void Object::set(std::string const &pname, Value val, std::string const &unit) { Property const * p = property(pname); if (!p) GYOTO_ERROR("No Property by that name"); set(*p, ((p->type == Property::bool_t && pname == p->name_false)? Value(!val):val), unit); } Value Object::get(Property const &p, std::string const &unit) const { if (p.type == Property::double_t) { Property::get_double_unit_t getu = p.getter_unit.get_double; if (getu) return (this->*getu)(unit); if (unit != "") GYOTO_ERROR("Can't get this property with unit"); return get(p); } if (p.type == Property::vector_double_t) { Property::get_vector_double_unit_t getu = p.getter_unit.get_vdouble; if (getu) return (this->*getu)(unit); if (unit != "") GYOTO_ERROR("Can't get this property with unit"); return get(p); } if (unit != "") GYOTO_ERROR("Can't set this property with unit (not a double)"); return get(p); } Value Object::get(Property const &p) const { # define ___local_case(type) \ case Property::type##_t: \ { \ Property::get_##type##_t get = p.getter.get_##type; \ if (!get) GYOTO_ERROR("Can't get this Property"); \ val = Value((this->*get)()); \ } \ break Gyoto::Value val; switch (p.type) { case Property::empty_t: GYOTO_ERROR("Can't get empty property"); ___local_case(bool); ___local_case(double); ___local_case(long); ___local_case(unsigned_long); ___local_case(size_t); case Property::filename_t: ___local_case(string); case Property::vector_double_t: { Property::get_vector_double_t get = p.getter.get_vdouble; if (!get) GYOTO_ERROR("Can't get this Property"); val = (this->*get)(); } break; case Property::vector_unsigned_long_t: { Property::get_vector_unsigned_long_t get = p.getter.get_vulong; if (!get) GYOTO_ERROR("Can't get this Property"); val = (this->*get)(); } break; ___local_case(metric); ___local_case(astrobj); ___local_case(spectrum); ___local_case(spectrometer); ___local_case(screen); default: GYOTO_ERROR("Unimplemented Property type in Object::get"); } return val; # undef ___local_case } Value Object::get(std::string const &pname) const { Property const * p = property(pname); if (!p) GYOTO_ERROR("No Property by that name"); Value res = get(*p); if (p->type == Property::bool_t && pname == p->name_false) return !bool(res); return res; } Value Object::get(std::string const &pname, std::string const &unit) const{ Property const * p = property(pname); if (!p) GYOTO_ERROR("No Property by that name"); Value res = get(*p, unit); if (p->type == Property::bool_t && pname == p->name_false) return !bool(res); return res; } Property const * Object::property(std::string const pname) const { Property const * prop = getProperties(); while (prop) { if (*prop) { GYOTO_DEBUG_EXPR(prop->name); if (prop->name == pname || (prop->type==Property::bool_t && prop->name_false == pname)) return prop; ++prop; } else prop=prop->parent; } return NULL; } #ifdef GYOTO_USE_XERCES void Object::fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const { GYOTO_DEBUG_EXPR(fmp); GYOTO_DEBUG_EXPR(p.name); GYOTO_DEBUG_EXPR(p.type); FactoryMessenger * childfmp=NULL; string name=p.name; switch (p.type) { case Property::empty_t: break; case Property::bool_t: fmp->setParameter(get(p)?name:p.name_false); break; case Property::long_t: fmp->setParameter(name, long(get(p))); break; case Property::unsigned_long_t: fmp->setParameter(name, (unsigned long)(get(p))); break; case Property::size_t_t: fmp->setParameter(name, (unsigned long)(size_t(get(p)))); break; case Property::double_t: fmp->setParameter(name, double(get(p))); break; case Property::string_t: case Property::filename_t: fmp->setParameter(name, std::string(get(p))); break; case Property::vector_double_t: fmp->setParameter(name, get(p).operator std::vector()); break; case Property::vector_unsigned_long_t: fmp->setParameter(name, get(p).operator std::vector()); break; case Property::metric_t: fmp->metric(get(p)); break; case Property::astrobj_t: fmp->astrobj(get(p)); break; case Property::screen_t: fmp->screen(get(p)); break; case Property::spectrum_t: { SmartPointer sp=get(p); if (!sp) return; childfmp = fmp -> makeChild ( name ); sp -> fillElement(childfmp); delete childfmp; } break; case Property::spectrometer_t: { SmartPointer spr=get(p); if (!spr) return; childfmp = fmp -> makeChild ( name ); spr -> fillElement(childfmp); delete childfmp; } break; default: GYOTO_ERROR("Property type unimplemented in Object::fillProperty()"); } } void Object::fillElement(Gyoto::FactoryMessenger *fmp) const { std::vector const plgs=plugins(); size_t np=plgs.size(); if (np) { std::string plg(plgs[0]); for (size_t i=1; i setSelfAttribute("plugin", plg); } if (kind_ != "") fmp -> setSelfAttribute("kind", kind_); Property const * prop = getProperties(); while (prop) { if (*prop) { if (prop->type != Property::empty_t) fillProperty(fmp, *prop); ++prop; } else prop=prop->parent; } } void Object::setParameters(Gyoto::FactoryMessenger *fmp) { string name="", content="", unit=""; FactoryMessenger * child = NULL; if (fmp) while (fmp->getNextParameter(&name, &content, &unit)) { GYOTO_DEBUG << "Setting '" << name << "' to '" << content << "' (unit='"< plugins; switch (prop->type) { case Property::metric_t: set(*prop, fmp->metric()); break; case Property::astrobj_t: set(*prop, fmp->astrobj()); break; case Property::screen_t: set(*prop, fmp->screen()); break; case Property::spectrum_t: content = fmp -> getAttribute("kind"); child = fmp -> getChild(); plugins = Gyoto::split(fmp -> getAttribute("plugin"), ","); set(*prop, (*Spectrum::getSubcontractor(content, plugins))(child, plugins) ); delete child; break; case Property::spectrometer_t: content = fmp -> getAttribute("kind"); child = fmp -> getChild(); plugins = Gyoto::split(fmp -> getAttribute("plugin"), ","); set(*prop, (*Spectrometer::getSubcontractor(content, plugins))(child, plugins) ); delete child; break; case Property::filename_t: content = fmp->fullPath(content); // no 'break;' here, we need to proceed default: setParameter(*prop, name, content, unit); } } } GYOTO_DEBUG << "Done processing parameters" << endl; } #endif void Object::setParameter(Property const &p, string const &name, string const & content, string const & unit) { GYOTO_DEBUG_EXPR(name); Value val; GYOTO_DEBUG_EXPR(p.type); GYOTO_DEBUG_EXPR(Property::double_t); switch (p.type) { case Property::bool_t: val = (name==p.name); break; case Property::long_t: val = strtol(content.c_str(), NULL, 0); break; case Property::unsigned_long_t: val = strtoul(content.c_str(), NULL, 0); break; case Property::size_t_t: val = size_t(strtoul(content.c_str(), NULL, 0)); break; case Property::double_t: val = Gyoto::atof(content.c_str()); GYOTO_DEBUG << "calling set(p, val, unit)" << std::endl; set(p, val, unit); return; case Property::filename_t: case Property::string_t: val = content; break; case Property::vector_double_t: val = FactoryMessenger::parseArray(content); set(p, val, unit); return; case Property::vector_unsigned_long_t: val = FactoryMessenger::parseArrayULong(content); break; case Property::metric_t: GYOTO_ERROR("Metric can't be set using setParameter()"); default: GYOTO_ERROR("Property type unimplemented in Object::setParameter()"); } GYOTO_DEBUG << "calling set" << std::endl; set(p, val); } int Object::setParameter(string name, string content, string unit) { Property const * prop = property(name); if (!prop) { size_t pos=name.find("::"); if (pos != string::npos) { string childname = name.substr(0,pos); name=name.substr(pos+2); prop=property(childname); if (!prop) return 1; Object * obj=NULL; Value val=get(*prop); switch (prop->type) { case Property::screen_t: obj = SmartPointer(val); break; case Property::metric_t: obj = SmartPointer(val); break; case Property::astrobj_t: obj = SmartPointer(val); break; case Property::spectrum_t: obj = SmartPointer(val); break; case Property::spectrometer_t: obj = SmartPointer(val); break; default: GYOTO_ERROR(childname+" is not an object"); } if (obj) return obj -> setParameter(name, content, unit); GYOTO_ERROR(childname+" not set yet"); } return 1; } setParameter(*prop, name, content, unit); return 0; } std::string Object::describeProperty(Property const &p) const { string out=p.name+": "; switch (p.type) { case Property::empty_t: return ""; case Property::bool_t: out = p.name + "/" + p.name_false + ": bool"; break; case Property::long_t: out += "long"; break; case Property::unsigned_long_t: out += "unsigned long"; break; case Property::size_t_t: out += "size_t"; break; case Property::double_t: out += "double"; if (p.setter_unit.set_double) out += " with unit"; break; case Property::string_t: out += "string"; break; case Property::filename_t: out += "filename"; break; case Property::vector_double_t: out += "vector"; if (p.setter_unit.set_vdouble) out += " with unit"; break; case Property::vector_unsigned_long_t: out += "vector long"; break; case Property::metric_t: out += "Gyoto::Metric::Generic"; break; case Property::astrobj_t: out += "Gyoto::Astrobj::Generic"; break; case Property::screen_t: out += "Gyoto::Screen"; break; case Property::spectrum_t: out += "Gyoto::Spectrum"; break; case Property::spectrometer_t: out += "Gyoto::Spectrometer"; break; default: GYOTO_ERROR("Property type unimplemented in Object::fillProperty()"); } return out; } void Object::help() const { Property const * prop = getProperties(); while (prop) { if (*prop) { if (prop->type==Property::empty_t) { cout << prop->name << endl; if (prop->doc != "") cout << " " << prop->doc << endl; } else { cout << "\t"<< describeProperty(*prop) << endl; if (prop->doc != "") cout << "\t " << prop->doc << endl; } ++prop; } else prop=prop->parent; } } Gyoto-2.0.2/lib/OscilTorus.C000066400000000000000000000361211455254334400156100ustar00rootroot00000000000000/* Copyright 2016, 2018-2020 Frederic Vincent & Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoOscilTorus.h" #include "GyotoFactoryMessenger.h" #include "GyotoUtils.h" #include "GyotoPhoton.h" #include "GyotoDefs.h" #include "GyotoProperty.h" #include #include #include #include #include #include #include #include using namespace Gyoto; using namespace Gyoto::Astrobj; using namespace std; GYOTO_PROPERTY_START(OscilTorus, "Geometrical Torus with oscillations.") GYOTO_PROPERTY_DOUBLE(OscilTorus, LargeRadius, largeRadius, "Major radius, distance from centre of tube to centre of torus.") GYOTO_PROPERTY_UNSIGNED_LONG(OscilTorus, Mode, mode, "Mode number of oscillations m.") GYOTO_PROPERTY_DOUBLE(OscilTorus,PolyCst, polyCst, "Polytropic constant kappa.") GYOTO_PROPERTY_DOUBLE(OscilTorus,PolyIndex, polyIndex, "Polytropic index n.") GYOTO_PROPERTY_DOUBLE(OscilTorus,CentralDensity, centralDensity, "Central density.") GYOTO_PROPERTY_STRING(OscilTorus,PerturbKind, perturbKind, "One of: Radial Vertical X Plus Breathing") /* Nomenclature note: an old nomencalture is sometimes used in my notes, refering to "minus" and "plus" modes. This is due to the expression of the eigenfreq for these modes that differ by a sign. However, this is not the proper nomenclature and one should use Blaes et al. (2006) naming, so: old minus mode --> plus mode old plus mode --> breathing mode */ GYOTO_PROPERTY_DOUBLE(OscilTorus, PerturbIntens, perturbIntens, "Perturbations intensity.") GYOTO_PROPERTY_FILENAME(OscilTorus, EmittingArea, emittingArea, "Only for mode=0, file containing time series of cross section area") GYOTO_PROPERTY_END(OscilTorus, Standard::properties) GYOTO_PROPERTY_ACCESSORS_GEOMETRICAL_SPECIAL(OscilTorus, c_, largeRadius, gg_, updateCachedValues(); , ) GYOTO_PROPERTY_ACCESSORS(OscilTorus, unsigned long, mode_, mode) GYOTO_PROPERTY_ACCESSORS(OscilTorus, double, polycst_, polyCst) GYOTO_PROPERTY_ACCESSORS_SPECIAL(OscilTorus, double, polyindex_, polyIndex, updateCachedValues(); , ) GYOTO_PROPERTY_ACCESSORS(OscilTorus, double, central_density_, centralDensity) GYOTO_PROPERTY_ACCESSORS(OscilTorus, double, perturb_intens_, perturbIntens) void OscilTorus::perturbKind(std::string const &k) { if (k == "Radial") perturb_kind_ = Radial; else if (k == "Vertical") perturb_kind_ = Vertical; else if (k == "X") perturb_kind_ = X; else if (k == "Plus") perturb_kind_ = Plus; else if (k == "Breathing") perturb_kind_ = Breathing; else { string errmsg="unknown perturbation kind: '"; errmsg += k + "'"; GYOTO_ERROR(errmsg.c_str()); } updateCachedValues(); } std::string OscilTorus::perturbKind() const { switch (perturb_kind_) { case Radial: return "Radial"; case Vertical: return "Vertical"; case X: return "X"; case Plus: return "Plus"; case Breathing: return "Breathing"; default: GYOTO_ERROR("Unknown kind"); } return "Should not reach this"; } std::string OscilTorus::emittingArea() const {return emitting_area_;} void OscilTorus::emittingArea(std::string const &f) { if (f=="" || f.substr(f.size()-1) == "/") { emitting_area_ = ""; with_cross_=0; tt_.clear(); area_.clear(); return; } ifstream file(f, ios::in); if (file) { with_cross_=1; double tt, area; tt_.clear(); area_.clear(); while (!file.eof()) { file >> tt >> area; if (area) { tt_.push_back(tt); area_.push_back(area); } else { //this means that last line of file was blank, area is //never 0, so just forget last line of data break; } file.ignore(numeric_limits::max(), '\n');//next line } nbt_=tt_.size(); emitting_area_ = f; } else GYOTO_ERROR("Unable to read " + f); } Gyoto::Astrobj::OscilTorus::OscilTorus() : Standard("OscilTorus"), c_(10.8), mode_(0), polycst_(0.01), polyindex_(0.01), central_density_(0.01), perturb_kind_(Radial), perturb_intens_(0.1), kerrbl_(NULL), tt_(), area_(), nbt_(0), with_cross_(0), sigma_(0.), alpha_(0.), w1_(0.), w2_(0.), omr2_(0.), omth2_(0.), Omegac_(0.), lc_(0.), g_rr_(0.), g_thth_(0.), hold_(false) { GYOTO_DEBUG << "Building OscilTorus" << endl; } Gyoto::Astrobj::OscilTorus::OscilTorus(const OscilTorus &orig) : Standard(orig), c_(orig.c_), mode_(orig.mode_), polycst_(orig.polycst_), polyindex_(orig.polyindex_), central_density_(orig.central_density_), perturb_kind_(orig.perturb_kind_), perturb_intens_(orig.perturb_intens_), kerrbl_(NULL), tt_(orig.tt_), area_(orig.area_), nbt_(orig.nbt_), with_cross_(orig.with_cross_), sigma_(orig.sigma_), alpha_(orig.alpha_), w1_(orig.w1_), w2_(orig.w2_), omr2_(orig.omr2_), omth2_(orig.omth2_), Omegac_(orig.Omegac_), lc_(orig.lc_), g_rr_(orig.g_rr_), g_thth_(orig.g_thth_), hold_(orig.hold_) { GYOTO_DEBUG << "Copying OscilTorus" << endl; if (gg_) { kerrbl_=SmartPointer(gg_); gg_->hook(this); } } OscilTorus * OscilTorus::clone() const { return new OscilTorus(*this); } Gyoto::Astrobj::OscilTorus::~OscilTorus() { GYOTO_DEBUG << "Destroying OscilTorus" << endl; if (gg_) gg_->unhook(this); } double OscilTorus::operator()(double const pos[4]) { // cout << "pos= " << pos[1] << " " << pos[2] << " " << pos[3] << endl; // if far from the torus center, return any >0 value, // no hit // if (fabs(pos[1]-c_)/c_*100. > 50.) return 100.; // USE RMax IN XML INSTEAD double x_bar=0., y_bar=0.; computeXbYb(pos,x_bar,y_bar); // cout << "xb,yb= " << x_bar << " " << y_bar << endl; double uu=0.; // perturbation-dependent factor of surface function switch (perturb_kind_) { case Radial: uu = x_bar; break; case Vertical: uu = y_bar; break; case X: uu = x_bar*y_bar; break; case Plus: case Breathing: uu = 1+w1_*x_bar*x_bar+w2_*y_bar*y_bar; break; default: GYOTO_ERROR("In OscilTorus.C::operator():" "Unrecognized perturbation kind"); } // non-perturbed torus f double fnoperturb = omr2_*x_bar*x_bar + omth2_*y_bar*y_bar - 1.; // correction double correc=perturb_intens_*sigma_*alpha_*uu *cos(mode_*pos[3] - Omegac_*(sigma_+mode_)*pos[0]); double ff = fnoperturb + correc; // perturbed torus f //cout << "ff= " << ff << endl; return ff; } void OscilTorus::getVelocity(double const pos[4], double vel[4]) { //cout << "in getveloc" << endl; double gtt=kerrbl_->gmunu_up(pos,0,0); double gthth=kerrbl_->gmunu_up(pos,2,2); double grr=kerrbl_->gmunu_up(pos,1,1); double gpp=kerrbl_->gmunu_up(pos,3,3); double gtp=kerrbl_->gmunu_up(pos,0,3); // Beta parameter double poly=(polyindex_+1.)/polyindex_; double centralp = polycst_*pow(central_density_,poly); double x_bar=0., y_bar=0.; computeXbYb(pos,x_bar,y_bar); double vr=0., vth=0.; switch (perturb_kind_) { case Radial: vr = 1.; break; case Vertical: vth = 1.; break; case X: vr = y_bar; vth = x_bar; break; case Plus: case Breathing: vr = 2.*w1_*x_bar; vth = 2.*w2_*y_bar; break; default: GYOTO_ERROR("In OscilTorus.C::operator():" "Unrecognized perturbation kind"); } double u_r = -perturb_intens_*sqrt(centralp/central_density_)*sqrt(g_rr_) *alpha_*vr *sin(mode_*pos[3] - Omegac_*(sigma_+mode_)*pos[0]); double u_th = perturb_intens_*sqrt(centralp/central_density_)*sqrt(g_thth_) *alpha_*vth *sin(mode_*pos[3] - Omegac_*(sigma_+mode_)*pos[0]); double u_t2 = (-1.-grr*u_r*u_r-gthth*u_th*u_th)/ (gtt+lc_*lc_*gpp-2.*lc_*gtp); //cout << "num,deno= " << -1.-grr*u_r*u_r-gthth*u_th*u_th << " " << gtt+lc_*lc_*gpp-2.*lc_*gtp << endl; if (u_t2 < 0.) { stringstream ss; ss << "OscilTorus::getVelocity(pos=["; for (int i=0; i<3; ++i) ss << pos[i] << ", "; ss << pos[3] << "]): u_t^2 is negative."; GYOTO_ERROR(ss.str()); } double u_t=-sqrt(u_t2); double u_p=-lc_*u_t; vel[0] = gtt*u_t+gtp*u_p; vel[1] = grr*u_r; vel[2] = gthth*u_th; vel[3] = gpp*u_p+gtp*u_t; } void OscilTorus::computeXbYb(const double * pos, double & xb, double & yb){ double aa=kerrbl_->spin(); // Computations at the torus center for Omegac_, lc_ double posc[4]={0.,c_,M_PI/2.,0.};//don't care about t and phi double g_tt=gg_->gmunu(posc,0,0);// covar components double g_rr_=gg_->gmunu(posc,1,1); double g_thth_=gg_->gmunu(posc,2,2); double g_tp=gg_->gmunu(posc,0,3); double g_pp=gg_->gmunu(posc,3,3); double Omegac_=1./(pow(c_,1.5)+aa); // Kepler rotation vel double lc_=-(Omegac_*g_pp+g_tp)/(Omegac_*g_tp+g_tt); // Rescaled ang mom // Now computations at the torus surface for gmunu_up coef double gtt=kerrbl_->gmunu_up(pos,0,0); double gthth=kerrbl_->gmunu_up(pos,2,2); double grr=kerrbl_->gmunu_up(pos,1,1); double gpp=kerrbl_->gmunu_up(pos,3,3); double gtp=kerrbl_->gmunu_up(pos,0,3); // Beta parameter double poly=(polyindex_+1.)/polyindex_; double centralp = polycst_*pow(central_density_,poly); double cs2 = poly*centralp/central_density_; double ut_central2 = -1/(g_tt+g_pp*Omegac_*Omegac_+2.*g_tp*Omegac_); double beta2 = 2.*polyindex_*cs2 /(c_*c_*ut_central2*Omegac_*Omegac_); if (beta2<=0.) { GYOTO_ERROR("In OscilTorus::computeXbYb(): " "bad beta parameter"); } double beta=sqrt(beta2); xb=1./beta *sqrt(g_rr_)*(pos[1]-c_)/c_; yb=1./beta *sqrt(g_thth_)*(M_PI/2.-pos[2])/c_; } void OscilTorus::metric(Gyoto::SmartPointer met) { if (!met) { if (gg_) gg_->unhook(this); kerrbl_=NULL; gg_=NULL; return; } kerrbl_ = Gyoto::SmartPointer(met); if (!kerrbl_) GYOTO_ERROR("OscilTorus::metric(): only KerrBL, please"); if (gg_) gg_->unhook(this); Standard::metric(met); gg_->hook(this); updateCachedValues(); } void OscilTorus::tell(Hook::Teller* msg) { if (msg==gg_) updateCachedValues(); } void OscilTorus::updateCachedValues() { if (hold_ || !gg_ || !c_) return; double aa=kerrbl_->spin(); double posc[4]={0.,c_,M_PI/2.,0.};//don't care about t and phi double g_tt=gg_->gmunu(posc,0,0);// covar components g_rr_=gg_->gmunu(posc,1,1); g_thth_=gg_->gmunu(posc,2,2); double g_tp=gg_->gmunu(posc,0,3); double g_pp=gg_->gmunu(posc,3,3); Omegac_=1./(pow(c_,1.5)+aa); // Kepler rotation vel lc_=-(Omegac_*g_pp+g_tp)/(Omegac_*g_tp+g_tt); // Rescaled ang mom // Epicyclic pulsation omr2_=1.-6./c_+8.*aa*pow(c_,-1.5) -3.*aa*aa/(c_*c_); omth2_=1.-4*aa*pow(c_,-1.5) +3.*aa*aa/(c_*c_); if (omr2_<=0. || omth2_<=0.) { GYOTO_ERROR("In OscilTorus::updateCachedValues(): " "bad epicyclic freq"); } double alpha0 = sqrt(polyindex_*sqrt(omr2_)*sqrt(omth2_)/M_PI); switch (perturb_kind_) { case Radial: // Radial oscillation { sigma_ = sqrt(omr2_); alpha_ = alpha0*sqrt(2*(polyindex_+1)*omr2_); break; } case Vertical: // Vertical oscillation { sigma_ = sqrt(omth2_); alpha_ = alpha0*sqrt(2*(polyindex_+1)*omth2_); break; } case X: // X mode { sigma_ = sqrt(omr2_+omth2_); alpha_ = alpha0*sqrt(4*(polyindex_+1)*(polyindex_+2)*omr2_*omth2_); break; } case Plus: // + mode { double sigmaminus2 = ( (2.*polyindex_+1)*(omr2_+omth2_) - sqrt( 4.*polyindex_*(polyindex_+1) *(omr2_-omth2_)*(omr2_-omth2_) +(omr2_+omth2_)*(omr2_+omth2_) ) ) / (2.*polyindex_); sigma_ = sqrt(sigmaminus2); w1_ = - (omr2_ *(2.*omth2_+2.*polyindex_*omth2_-polyindex_*sigmaminus2) ) / (omth2_-omr2_); w2_ = (omth2_ *(2.*omr2_+2.*polyindex_*omr2_-polyindex_*sigmaminus2) ) / (omth2_-omr2_); alpha_ = alpha0* sqrt( (polyindex_+2)*(sigmaminus2-(omr2_+omth2_)) / (2.*polyindex_*sigmaminus2-(2.*polyindex_+1)*(omr2_+omth2_)) ); break; } case Breathing: // breathing mode { double sigmaplus2 = ( (2.*polyindex_+1)*(omr2_+omth2_) + sqrt( 4.*polyindex_*(polyindex_+1) *(omr2_-omth2_)*(omr2_-omth2_) +(omr2_+omth2_)*(omr2_+omth2_) ) ) / (2.*polyindex_); sigma_ = sqrt(sigmaplus2); w1_ = - (omr2_ *(2.*omth2_+2.*polyindex_*omth2_-polyindex_*sigmaplus2) ) / (omth2_-omr2_); w2_ = (omth2_ *(2.*omr2_+2.*polyindex_*omr2_-polyindex_*sigmaplus2) ) / (omth2_-omr2_); alpha_ = alpha0* sqrt( (polyindex_+2)*(sigmaplus2-(omr2_+omth2_)) / (2.*polyindex_*sigmaplus2-(2.*polyindex_+1)*(omr2_+omth2_)) ); break; } default: GYOTO_ERROR("In OscilTorus.C::setParameter():" "Unrecognized perturbation kind"); } } double OscilTorus::emission(double nu_em, double, state_t const &cp, double const *) const{ //cout << "r,theta,rcosth= " << cp[1] << " " << cp[2] << " " << cp[1]*cos(cp[2]) << endl; if (flag_radtransf_) GYOTO_ERROR("Radiative transfer not implemented for OscilTorus."); if (with_cross_){ /* If the torus mode under consideration (breathing - and +) leads to change of volume, surface emitted intensity must be modulated accordingly. Simple assumption: I_nu \propto 1/volume ie: \propto 1/(cross-section area) if mode number m=0 So here the area of the cross-section is determined at impact time to modulate the emitted intensity. */ if (mode_!=0) { GYOTO_ERROR("In OscilTorus.C::emission:" "mode=0 is required for area determination"); } if (perturb_kind_==Vertical || perturb_kind_==X) GYOTO_ERROR("In OscilTorus::setParamter: bad perturbation kind"); // Rescaled time and area determination double AA = Omegac_*sigma_; // cos modulation is 2pi/AA periodic double tt=cp[0],tmax=tt_[0], area=-1.; double myt = tt; while (myt>2.*M_PI/AA) myt-=2.*M_PI/AA; // myt is in ]0,2pi/AA] int ii=0; while (myt>tmax && ii < nbt_-1){ ii++; tmax=tt_[ii]; } if (ii==0 || ii==nbt_-1){ area=area_[ii]; }else{ area= area_[ii-1]+(myt-tt_[ii-1])*(area_[ii]-area_[ii-1])/(tt_[ii-1]-tt_[ii]); } if (area<=0. || area!=area) GYOTO_ERROR("In OscilTorus::emission:" "bad area value"); return 1./area; }else{ return 1.; } } #ifdef GYOTO_USE_XERCES void OscilTorus::setParameters(Gyoto::FactoryMessenger *fmp) { hold_=true; Standard::setParameters(fmp); hold_=false; updateCachedValues(); } #endif Gyoto-2.0.2/lib/PageThorneDisk.C000066400000000000000000000335661455254334400163630ustar00rootroot00000000000000/* Copyright 2011-2014, 2016, 2018-2020 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoPhoton.h" #include "GyotoPageThorneDisk.h" #include "GyotoProperty.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrBL.h" #include "GyotoKerrKS.h" #include #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; GYOTO_PROPERTY_START(PageThorneDisk) GYOTO_PROPERTY_DOUBLE(PageThorneDisk, Mdot, mdot) GYOTO_PROPERTY_BOOL(PageThorneDisk, UniFlux, NonUniFlux, uniFlux) GYOTO_PROPERTY_END(PageThorneDisk, ThinDisk::properties) void PageThorneDisk::mdot(double v) { mdot_=v; } double PageThorneDisk::mdot() const { return mdot_; } void PageThorneDisk::uniFlux(bool t) {uniflux_=t;} bool PageThorneDisk::uniFlux() const {return uniflux_;} PageThorneDisk::PageThorneDisk() : ThinDisk("PageThorneDisk"), aa_(0.), aa2_(0.), x0_(0.), x1_(0.), x2_(0.), x3_(0.), mdot_(1.), uniflux_(0), spectrumBB_(NULL) { if (debug()) cerr << "DEBUG: PageThorneDisk Construction" << endl; spectrumBB_ = new Spectrum::BlackBody(); } PageThorneDisk::PageThorneDisk(const PageThorneDisk& o) : ThinDisk(o), aa_(o.aa_), aa2_(o.aa2_), x0_(o.x0_), x1_(o.x1_), x2_(o.x2_), x3_(o.x3_), mdot_(o.mdot_), uniflux_(o.uniflux_), spectrumBB_(NULL) { if (o.spectrumBB_()) spectrumBB_=o.spectrumBB_->clone(); if (gg_) gg_->hook(this); } PageThorneDisk* PageThorneDisk::clone() const { return new PageThorneDisk(*this); } bool PageThorneDisk::isThreadSafe() const { // spectrumBB_ is not a Property return ThinDisk::isThreadSafe() && (!spectrumBB_ || spectrumBB_->isThreadSafe()); } PageThorneDisk::~PageThorneDisk() { GYOTO_DEBUG<unhook(this); } void PageThorneDisk::updateSpin() { if (!gg_) return; switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: aa_ = static_cast >(gg_) -> spin(); break; case GYOTO_COORDKIND_CARTESIAN: aa_ = static_cast >(gg_) -> spin(); break; default: GYOTO_ERROR("PageThorneDisk::getSpin(): unknown COORDKIND"); } aa2_=aa_*aa_; double z1 =1.+pow((1.-aa2_),1./3.)*(pow((1.+ aa_),1./3.)+pow((1.-aa_),1./3.)); double z2 = pow(3.*aa2_ + z1*z1,0.5); double acosaao3= acos(aa_)/3.; x0_ = sqrt((3. + z2 - pow((3. - z1)*(3. + z1 + 2.*z2),0.5))); x1_ = 2.*cos(acosaao3 - M_PI/3.); x2_ = 2.*cos(acosaao3 + M_PI/3.); x3_ = -2.*cos(acosaao3); if (rin_==0.) rin_=(3.+z2-sqrt((3.-z1)*(3.+z1+2.*z2))); } void PageThorneDisk::metric(SmartPointer gg) { if (gg_) gg_->unhook(this); string kin = gg->kind(); if (kin != "KerrBL" && kin != "KerrKS") GYOTO_ERROR ("PageThorneDisk::metric(): metric must be KerrBL or KerrKS"); ThinDisk::metric(gg); updateSpin(); gg->hook(this); } double PageThorneDisk::emission(double nu_em, double dsem, state_t const &, double const coord_obj[8]) const{ double Ibolo=bolometricEmission(nu_em,dsem,coord_obj); //cout << "In page Ibolo= "<mass()*1e3; // in cgs double c6=GYOTO_C_CGS*GYOTO_C_CGS*GYOTO_C_CGS *GYOTO_C_CGS*GYOTO_C_CGS*GYOTO_C_CGS; double g2m2=GYOTO_G_CGS*GYOTO_G_CGS*mass*mass; Ibolo*=mdot_*c6/g2m2; // Ibolo in cgs*/ // --> this is now done in boloEm //F = sigma * T^4 (and F=pi*I) double TT=pow(Ibolo*M_PI/GYOTO_STEFANBOLTZMANN_CGS,0.25); spectrumBB_->temperature(TT); double Iem=(*spectrumBB_)(nu_em); // in SI //cout << "r T nu Iem = " << coord_obj[1] << " " << TT << " " << nu_em << " " << Iem << endl; if (Iem < 0.) GYOTO_ERROR("In PageThorneDisk::emission" " blackbody emission is negative!"); // TESTING: //double rr=coord_obj[1]; //Iem = 1./rr; // TEST !!!!!!!! return Iem; } Quantity_t PageThorneDisk::getDefaultQuantities() { return GYOTO_QUANTITY_USER4; } double PageThorneDisk::bolometricEmission(double /* nuem */, double dsem, double const coord_obj[8]) const{ //See Page & Thorne 74 Eqs. 11b, 14, 15. This is F(r). // Important remark: this emision function gives I(r), // not I_nu(r). And I(r)/nu^4 is conserved. // cout << "r hit= " << coord_obj[1] << endl; if (uniflux_) return 1; double xx; switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: xx=sqrt(coord_obj[1]); break; case GYOTO_COORDKIND_CARTESIAN: xx=pow(coord_obj[1]*coord_obj[1]+coord_obj[2]*coord_obj[2]-aa2_, 0.25); break; default: GYOTO_ERROR("Unknown coordinate system kind"); xx=0; } // the above formula assume M=1 (x=sqrt(r/M)=sqrt(r)) double x2=xx*xx; double ff= 3./(2.)*1./(xx*xx*(xx*xx*xx-3.*xx+2.*aa_)) *( xx-x0_-3./2.*aa_*log(xx/x0_) -3.*(x1_-aa_)*(x1_-aa_)/(x1_*(x1_-x2_)*(x1_-x3_))*log((xx-x1_) /(x0_-x1_)) -3.*(x2_-aa_)*(x2_-aa_)/(x2_*(x2_-x1_)*(x2_-x3_))*log((xx-x2_) /(x0_-x2_)) -3.*(x3_-aa_)*(x3_-aa_)/(x3_*(x3_-x1_)*(x3_-x2_))*log((xx-x3_) /(x0_-x3_)) ); // f of Page&Thorne 1974 eq 15n, in units of 1/M double Iem=ff/(4.*M_PI*M_PI*x2); // natural-units value /* Assuming isotropic emission: flux at r = (I at r)* \int cos\theta dOmega = pi*I thus intensity is only: 1/pi * flux; the flux F(r) is given by eq 11b in Page-Thorne, so it is F(r) = Mdot/(4pi) * 1/r * f (see eq 15d for why the exp term is 1/r). So finally, indeed, Iem, the bolometric intensity, is given by ff/(4.*M_PI*M_PI*x2) */ if (gg_->mass()!=1. and mdot_!=1.){ // non-default values for M and Mdot // the cgs value of I is c^6/G^2*Mdot/M^2 * Iem double mass=gg_->mass()*1e3; // in cgs double c6=GYOTO_C_CGS*GYOTO_C_CGS*GYOTO_C_CGS *GYOTO_C_CGS*GYOTO_C_CGS*GYOTO_C_CGS; double g2m2=GYOTO_G_CGS*GYOTO_G_CGS*mass*mass; Iem*=mdot_*c6/g2m2; // this incorporates in particular // the 1/M factor in Page-Thorne eq 15n which is not used // in the definition of ff above } if (flag_radtransf_) Iem *= dsem; GYOTO_DEBUG_EXPR(Iem); return Iem*GYOTO_INU_CGS_TO_SI; // in SI } void PageThorneDisk::processHitQuantities(Photon* ph, state_t const &coord_ph_hit, double const *coord_obj_hit, double dt, Properties* data) const { #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; #endif /* NB: freqObs is the observer's frequency chosen in Screen::getRayCoord for the actual computation of the geodesic ; the physical value of nuobs will be used in spectrum computations by resorting to the xml specifications of the user (see below) ; this freqObs is used to transform the null worldline parameter dlambda (see below) */ double freqObs=ph->freqObs(); // this is a useless quantity, always 1 SmartPointer spr = ph -> spectrometer(); size_t nbnuobs = spr() ? spr -> nSamples() : 0 ; double const * const nuobs = nbnuobs ? spr -> getMidpoints() : NULL; double dlambda = dt/coord_ph_hit[4]; //dlambda = dt/tdot double ggredm1 = -gg_->ScalarProd(&coord_ph_hit[0],coord_obj_hit+4, &coord_ph_hit[4]);// / 1.; //this is nu_em/nu_obs if (noredshift_) ggredm1=1.; double ggred = 1./ggredm1; //this is nu_obs/nu_em if (uniflux_) ggred=1.; double dsem = dlambda*ggredm1; // *1. double inc =0.; if (data) { #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "data requested. " << ", ggredm1=" << ggredm1 << ", ggred=" << ggred << endl; #endif if (data->redshift) { *data->redshift=ggred; #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(*data->redshift); #endif } if (data->time) { *data->time=coord_ph_hit[0]; #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(*data->time); #endif } if (data->impactcoords) { if (coord_ph_hit.size() > 8) GYOTO_ERROR("ImpactCoords is incompatible with parallel transport"); memcpy(data->impactcoords, coord_obj_hit, 8 * sizeof(double)); memcpy(data->impactcoords+8, &coord_ph_hit[0], 8 * sizeof(double)); } #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "dlambda = (dt="<< dt << ")/(tdot="<< coord_ph_hit[4] << ") = " << dlambda << ", dsem=" << dsem << endl; #endif if (data->intensity) GYOTO_ERROR("unimplemented"); if (data->user4) { inc = (bolometricEmission(freqObs*ggredm1, dsem, coord_obj_hit)) * (ph -> getTransmission(size_t(-1))) * ggred*ggred*ggred*ggred; // I/nu^4 invariant *data->user4 += inc; #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(*data->user4); #endif } if (data->binspectrum) GYOTO_ERROR("unimplemented"); if (data->spectrum and !ph -> parallelTransport()) { for (size_t ii=0; ii getTransmission(size_t(-1))) * ggred*ggred*ggred; // Inu/nu^3 invariant data->spectrum[ii*data->offset] += inc; //cout << "in spec stored= " << ggred << " " << inc << endl; //cout << "transmission : " << ph -> getTransmission(size_t(-1)) << endl; } } if (data->spectrum||data->stokesQ||data->stokesU||data->stokesV) { //ggred=1.; if (!ph -> parallelTransport()) GYOTO_ERROR("parallelTransport not true, impossible to compute polarisation"); // Compute polarization double * Inu = new double[nbnuobs]; double * Qnu = new double[nbnuobs]; double * Unu = new double[nbnuobs]; double * Vnu = new double[nbnuobs]; double * nuem = new double[nbnuobs]; Eigen::Matrix4d * Onu = new Eigen::Matrix4d[nbnuobs]; for (size_t ii=0; ii transfer(Inu, Qnu, Unu, Vnu, Onu); double ggred3 = ggred*ggred*ggred; for (size_t ii=0; ii spectrum) { inc = Inu[ii] * ggred3; # ifdef HAVE_UDUNITS if (data -> spectrum_converter_) inc = (*data -> spectrum_converter_)(inc); # endif data->spectrum [ii*data->offset] += inc; } if (data-> stokesQ) { inc = Qnu[ii] * ggred3; # ifdef HAVE_UDUNITS if (data -> spectrum_converter_) inc = (*data -> spectrum_converter_)(inc); # endif data->stokesQ [ii*data->offset] += inc; } if (data-> stokesU) { inc = Unu[ii] * ggred3; # ifdef HAVE_UDUNITS if (data -> spectrum_converter_) inc = (*data -> spectrum_converter_)(inc); # endif data->stokesU [ii*data->offset] += inc; } if (data-> stokesV) { inc = Vnu[ii] * ggred3; # ifdef HAVE_UDUNITS if (data -> spectrum_converter_) inc = (*data -> spectrum_converter_)(inc); # endif data->stokesV [ii*data->offset] += inc; } } delete [] Inu; delete [] Qnu; delete [] Unu; delete [] Vnu; delete [] Onu; delete [] nuem; } /* update photon's transmission */ ph -> transmit(size_t(-1),0); // We force the transmission to be zero because optically thick // and radiativeQ(polar) implemented which break the flag loop in Generic } else { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "NO data requested!" << endl; # endif } } void PageThorneDisk::tell(Hook::Teller* msg) { if (msg==gg_) updateSpin(); } void PageThorneDisk::radiativeQ(double *Inu, double *Qnu, double *Unu, double *Vnu, Eigen::Matrix4d *Onu, double const *nuem , size_t nbnu, double dsem, state_t const &cph, double const *co) const { double vel[4]; // 4-velocity of emitter gg_->circularVelocity(co, vel); Eigen::Matrix4d Omat; Omat << 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0; double B4vect[4]={0.,0.,0.,0.}; // Toroidal Magnetic fielde dik double gtt = gg_->gmunu(&cph[0],0,0), grr = gg_->gmunu(&cph[0],1,1), gthth = gg_->gmunu(&cph[0],2,2), gpp = gg_->gmunu(&cph[0],3,3); double omega=vel[3]/vel[0], omega2 = omega*omega; double Bt2 = gpp/gtt*omega2/(gtt+gpp*omega2), Bp2 = gtt/gpp*1./(gtt+gpp*omega2); if (Bt2<0. or Bp2<0.) GYOTO_ERROR("Bad configuration for toroidal mf"); B4vect[0]=sqrt(Bt2); B4vect[3]=sqrt(Bp2); double norm=sqrt(gg_->ScalarProd(&cph[0], B4vect, B4vect)); gg_->multiplyFourVect(B4vect,1./norm); double Chi=getChi(B4vect, cph, vel); // this is EVPA for (size_t ii=0; ii. */ #include "GyotoPhoton.h" #include "GyotoPatternDisk.h" #include "GyotoProperty.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrBL.h" #include "GyotoKerrKS.h" #ifdef GYOTO_USE_CFITSIO #include #define throwCfitsioError(status) \ { fits_get_errstatus(status, ermsg); GYOTO_ERROR(ermsg); } #endif #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; /// Properties GYOTO_PROPERTY_START(PatternDisk) GYOTO_PROPERTY_FILENAME(PatternDisk, File, file) GYOTO_PROPERTY_DOUBLE(PatternDisk, PatternVelocity, patternVelocity) GYOTO_PROPERTY_END(PatternDisk, ThinDisk::properties) void PatternDisk::fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const { if (p.name == "File") fmp->setParameter("File", (filename_.compare(0,1,"!") ? filename_ : filename_.substr(1)) ); else ThinDisk::fillProperty(fmp, p); } /// PatternDisk::PatternDisk() : ThinDisk("PatternDisk"), filename_(""), emission_(NULL), opacity_(NULL), velocity_(NULL), radius_(NULL), Omega_(0.), t0_(0.), dnu_(1.), nu0_(0), nnu_(0), dphi_(0.), phimin_(0.), nphi_(0), phimax_(2*M_PI), repeat_phi_(1), dr_(0.), nr_(0) { GYOTO_DEBUG << "PatternDisk Construction" << endl; } PatternDisk::PatternDisk(const PatternDisk& o) : ThinDisk(o), filename_(o.filename_), emission_(NULL), opacity_(NULL), velocity_(NULL), radius_(NULL), Omega_(o.Omega_), t0_(o.t0_), dnu_(o.dnu_), nu0_(o.nu0_), nnu_(o.nnu_), dphi_(o.dphi_), phimin_(o.phimin_), nphi_(o.nphi_), phimax_(o.phimax_), repeat_phi_(o.repeat_phi_), dr_(o.dr_), nr_(o.nr_) { GYOTO_DEBUG << "PatternDisk Copy" << endl; size_t ncells = 0; if (o.emission_) { emission_ = new double[ncells = nnu_ * nphi_ * nr_]; memcpy(emission_, o.emission_, ncells * sizeof(double)); } if (o.opacity_) { opacity_ = new double[ncells = nnu_ * nphi_ * nr_]; memcpy(opacity_, o.opacity_, ncells * sizeof(double)); } if (o.velocity_) { velocity_ = new double[ncells = 2 * nphi_ * nr_]; memcpy(velocity_, o.velocity_, ncells * sizeof(double)); } if (o.radius_) { radius_ = new double[ncells = 2 * nphi_ * nr_]; memcpy(radius_, o.radius_, ncells * sizeof(double)); } } PatternDisk* PatternDisk::clone() const { return new PatternDisk(*this); } PatternDisk::~PatternDisk() { GYOTO_DEBUG << "PatternDisk Destruction" << endl; if (emission_) delete [] emission_; if (opacity_) delete [] opacity_; if (velocity_) delete [] velocity_; if (radius_) delete [] radius_; } void PatternDisk::setEmission(double * pattern) { emission_ = pattern; } void PatternDisk::setVelocity(double * pattern) { velocity_ = pattern; } void PatternDisk::radius(double * pattern) { radius_ = pattern; } void PatternDisk::copyIntensity(double const *const pattern, size_t const naxes[3]) { GYOTO_DEBUG << endl; if (emission_) { GYOTO_DEBUG << "delete [] emission_;" << endl; delete [] emission_; emission_ = NULL; } if (pattern) { size_t nel; if (nnu_ != naxes[0]) { if (opacity_) { delete [] opacity_; opacity_ = NULL; } } if (nphi_ != naxes[1]) { GYOTO_DEBUG <<"nphi_ changed, freeing velocity_" << endl; if (opacity_) { delete [] opacity_; opacity_ = NULL; } if (velocity_) { delete [] velocity_; velocity_= NULL; } } if (nr_ != naxes[2]) { GYOTO_DEBUG <<"nr_ changed, freeing velocity_ and radius_" << endl; if (opacity_) { delete [] opacity_; opacity_ = NULL; } if (velocity_) { delete [] velocity_; velocity_= NULL; } if (radius_) { delete [] radius_; radius_ = NULL; } } if (!(nel=(nnu_ = naxes[0]) * (nphi_=naxes[1]) * (nr_=naxes[2]))) GYOTO_ERROR( "dimensions can't be null"); if (nr_==1) GYOTO_ERROR("In PatternDisk::copyIntensity: " "radial dimension should be >1"); dr_ = (rout_ - rin_) / double(nr_-1); if (repeat_phi_==0.) GYOTO_ERROR("In PatternDisk::copyIntensity: repeat_phi is 0!"); if (nphi_>1) dphi_ = (phimax_-phimin_)/double((nphi_-1)*repeat_phi_); GYOTO_DEBUG << "allocate emission_;" << endl; emission_ = new double[nel]; GYOTO_DEBUG << "pattern >> emission_" << endl; memcpy(emission_, pattern, nel*sizeof(double)); } } double const * PatternDisk::getIntensity() const { return emission_; } void PatternDisk::getIntensityNaxes( size_t naxes[3] ) const { naxes[0] = nnu_; naxes[1] = nphi_; naxes[2] = nr_; } void PatternDisk::copyOpacity(double const *const opac, size_t const naxes[3]) { GYOTO_DEBUG << endl; if (opacity_) { GYOTO_DEBUG << "delete [] opacity_;" << endl; delete [] opacity_; opacity_ = NULL; flag_radtransf_=0; } if (opac) { if (nnu_ != naxes[0] || nphi_ != naxes[1] || nr_ != naxes[2]) GYOTO_ERROR("Please set intensity before opacity. " "The two arrays must have the same dimensions."); GYOTO_DEBUG << "allocate opacity_;" << endl; opacity_ = new double[nnu_ * nphi_ * nr_]; GYOTO_DEBUG << "opacity >> opacity_" << endl; memcpy(opacity_, opac, nnu_ * nphi_ * nr_ * sizeof(double)); flag_radtransf_=1; } } double const * PatternDisk::opacity() const { return opacity_; } void PatternDisk::copyVelocity(double const *const velocity, size_t const naxes[2]) { GYOTO_DEBUG << endl; if (velocity_) { GYOTO_DEBUG << "delete [] velocity_;\n"; delete [] velocity_; velocity_ = NULL; } if (velocity) { if (!emission_) GYOTO_ERROR("Please use copyIntensity() before copyVelocity()"); if (nphi_ != naxes[0] || nr_ != naxes[1]) GYOTO_ERROR("emission_ and velocity_ have inconsistent dimensions"); GYOTO_DEBUG << "allocate velocity_;" << endl; velocity_ = new double[2*nphi_*nr_]; GYOTO_DEBUG << "velocity >> velocity_" << endl; memcpy(velocity_, velocity, 2*nphi_*nr_*sizeof(double)); } } double const * PatternDisk::getVelocity() const { return velocity_; } void PatternDisk::copyGridRadius(double const *const rad, size_t nr) { GYOTO_DEBUG << endl; if (radius_) { GYOTO_DEBUG << "delete [] radius_;" << endl; delete [] radius_; radius_ = NULL; } if (rad) { if (!emission_) GYOTO_ERROR("Please use copyIntensity() before copyGridRadius()"); if (nr_ != nr) GYOTO_ERROR("emission_ and radius_ have inconsistent dimensions"); GYOTO_DEBUG << "allocate velocity_;" << endl; radius_ = new double[nr_]; GYOTO_DEBUG << "velocity >> velocity_" << endl; memcpy(radius_, rad, nr_*sizeof(double)); rin_=radius_[0]; rout_=radius_[nr_-1]; dr_ = (rout_ - rin_) / double(nr_-1); } } double const * PatternDisk::getGridRadius() const { return radius_; } void PatternDisk::repeatPhi(size_t n) { repeat_phi_ = n; if ((nphi_-1)*repeat_phi_>0) dphi_=(phimax_-phimin_)/double((nphi_-1)*repeat_phi_); GYOTO_WARNING << "PatternDisk: not tested for repeat_phi_>1; " "check your results" << endl; } size_t PatternDisk::repeatPhi() const { return repeat_phi_; } void PatternDisk::nu0(double freq) { nu0_ = freq; } double PatternDisk::nu0() const { return nu0_; } void PatternDisk::dnu(double dfreq) { dnu_ = dfreq; } double PatternDisk::dnu() const { return dnu_; } void PatternDisk::phimin(double phimn) { phimin_ = phimn; if (nphi_>1) dphi_ = (phimax_-phimin_) / double((nphi_-1)*repeat_phi_); } double PatternDisk::phimin() const {return phimin_;} void PatternDisk::phimax(double phimx) { phimax_ = phimx; if (nphi_>1) dphi_ = (phimax_-phimin_) / double((nphi_-1)*repeat_phi_); } double PatternDisk::phimax() const {return phimax_;} #ifdef GYOTO_USE_CFITSIO void PatternDisk::fitsRead(string filename) { GYOTO_MSG << "PatternDisk reading FITS file: " << filename << endl; filename_ = filename; int rin_set=0, rout_set=0; char* pixfile = const_cast(filename_.c_str()); fitsfile* fptr = NULL; int status = 0; int anynul = 0; long tmpl; double tmpd; long naxes [] = {1, 1, 1}; long fpixel[] = {1,1,1}; long inc [] = {1,1,1}; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() GYOTO_DEBUG << "PatternDisk::readFile(): opening file" << endl; if (fits_open_file(&fptr, pixfile, 0, &status)) throwCfitsioError(status) ; ////// READ FITS KEYWORDS COMMON TO ALL TABLES /////// //get Omega and t0; GYOTO_DEBUG << "PatternDisk::readFile(): read Omega_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO PatternDisk Omega", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else Omega_ = tmpd; // Omega_ found GYOTO_DEBUG << "PatternDisk::readFile(): read t0_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO PatternDisk t0", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else t0_ = tmpd; // T0_ found GYOTO_DEBUG << "PatternDisk::readFile(): read RepeatPhi_" << endl; fits_read_key(fptr, TLONG, "GYOTO PatternDisk RepeatPhi", &tmpl, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else repeat_phi_ = size_t(tmpl); // RepeatPhi found GYOTO_DEBUG << "PatternDisk::readFile(): read InnerRadius_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO ThinDisk InnerRadius", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else { rin_ = tmpd; // InnerRadius found rin_set=1; } GYOTO_DEBUG << "PatternDisk::readFile(): read OuterRadius_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO ThinDisk OuterRadius", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else { rout_ = tmpd; // OuterRadius found rout_set=1; } GYOTO_DEBUG << "PatternDisk::fitsRead(): read Phimin_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO PatternDisk Phimin", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) { status = 0; // not fatal phimin_=0.; //phimin defaults to 0 } else throwCfitsioError(status) ; } else { phimin_ = tmpd; // Phimin found } GYOTO_DEBUG << "PatternDisk::fitsRead(): read Phimax_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO PatternDisk Phimax", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) { status = 0; // not fatal phimax_=2.*M_PI; //phimin defaults to 0 } else throwCfitsioError(status) ; } else { phimax_ = tmpd; // Phimax found } ////// FIND MANDATORY EMISSION HDU, READ KWDS & DATA /////// GYOTO_DEBUG << "PatternDisk::readFile(): search emission HDU" << endl; if (fits_movnam_hdu(fptr, ANY_HDU, const_cast("GYOTO PatternDisk emission"), 0, &status)) throwCfitsioError(status) ; GYOTO_DEBUG << "PatternDisk::readFile(): get image size" << endl; if (fits_get_img_size(fptr, 3, naxes, &status)) throwCfitsioError(status) ; //update nu0_, nnu_, dnu_; nnu_ = naxes[0]; double CRPIX1; GYOTO_DEBUG << "PatternDisk::readFile(): read CRPIX1, CRVAL1, CDELT1" << endl; fits_read_key(fptr, TDOUBLE, "CRVAL1", &nu0_, NULL, &status); fits_read_key(fptr, TDOUBLE, "CDELT1", &dnu_, NULL, &status); fits_read_key(fptr, TDOUBLE, "CRPIX1", &CRPIX1, NULL, &status); if (status) throwCfitsioError(status) ; if (CRPIX1 != 1) nu0_ -= dnu_*(CRPIX1 - 1.); // update repeat_phi_, nphi_, dphi_ nphi_ = naxes[1]; if (repeat_phi_==0) GYOTO_ERROR("In PatternDisk::fitsRead: repeat_phi is 0!"); if (nphi_>1) dphi_ = (phimax_-phimin_)/double((nphi_-1)*repeat_phi_); // update rin_, rout_, nr_, dr_ nr_ = naxes[2]; if (emission_) { delete [] emission_; emission_ = NULL; } emission_ = new double[nnu_ * nphi_ * nr_]; if (debug()) cerr << "PatternDisk::readFile(): read emission: " << "nnu_=" << nnu_ << ", nphi_="<("GYOTO PatternDisk opacity"), 0, &status); if (status) { if (status == BAD_HDU_NUM) { // FITS file does not contain opacity information status = 0; if (opacity_) { delete [] opacity_; opacity_ = NULL; } } else throwCfitsioError(status) ; } else { if (fits_get_img_size(fptr, 3, naxes, &status)) throwCfitsioError(status) ; if ( size_t(naxes[0]) != nnu_ || size_t(naxes[1]) != nphi_ || size_t(naxes[2]) != nr_) GYOTO_ERROR("PatternDisk::readFile(): opacity array not conformable"); if (opacity_) { delete [] opacity_; opacity_ = NULL; } opacity_ = new double[nnu_ * nphi_ * nr_]; if (fits_read_subset(fptr, TDOUBLE, fpixel, naxes, inc, 0, opacity_,&anynul,&status)) { delete [] opacity_; opacity_=NULL; throwCfitsioError(status) ; } } ////// FIND OPTIONAL VELOCITY HDU /////// fits_movnam_hdu(fptr, ANY_HDU, const_cast("GYOTO PatternDisk velocity"), 0, &status); if (status) { if (status == BAD_HDU_NUM) { // FITS file does not contain velocity information status = 0; if (velocity_) { delete [] velocity_; velocity_ = NULL; } } else throwCfitsioError(status) ; } else { if (fits_get_img_size(fptr, 3, naxes, &status)) throwCfitsioError(status) ; if ( size_t(naxes[0]) != size_t(2) || size_t(naxes[1]) != nphi_ || size_t(naxes[2]) != nr_) GYOTO_ERROR("PatternDisk::readFile(): velocity array not conformable"); if (velocity_) { delete [] velocity_; velocity_ = NULL; } velocity_ = new double[2 * nphi_ * nr_]; if (fits_read_subset(fptr, TDOUBLE, fpixel, naxes, inc, 0, velocity_,&anynul,&status)) { delete [] velocity_; velocity_=NULL; throwCfitsioError(status) ; } } ////// FIND OPTIONAL RADIUS HDU /////// fits_movnam_hdu(fptr, ANY_HDU, const_cast("GYOTO PatternDisk radius"), 0, &status); if (status) { if (status == BAD_HDU_NUM) { // FITS file does not contain explicit radius information status = 0; if (radius_) { delete [] radius_; radius_ = NULL; } } else throwCfitsioError(status) ; } else { if (fits_get_img_size(fptr, 1, naxes, &status)) throwCfitsioError(status) ; if (size_t(naxes[0]) != nr_) GYOTO_ERROR("PatternDisk::readFile(): radius array not conformable"); if (radius_) { delete [] radius_; radius_ = NULL; } radius_ = new double[nr_]; if (fits_read_subset(fptr, TDOUBLE, fpixel, naxes, inc, 0, radius_,&anynul,&status)) { delete [] radius_; radius_=NULL; throwCfitsioError(status) ; } if (!rin_set) rin_=radius_[0]; if (!rout_set) rout_=radius_[nr_-1]; } if (nr_ == 1.) GYOTO_ERROR("In PatternDisk::fitsRead: nr_ should not be 0 here!"); dr_ = (rout_-rin_) / double(nr_-1); if (fits_close_file(fptr, &status)) throwCfitsioError(status) ; fptr = NULL; } void PatternDisk::fitsWrite(string filename) { if (!emission_) GYOTO_ERROR("PatternDisk::fitsWrite(filename): nothing to save!"); filename_ = filename; char* pixfile = const_cast(filename_.c_str()); fitsfile* fptr = NULL; int status = 0; long naxes [] = {long(nnu_), long(nphi_), long(nr_)}; long fpixel[] = {1,1,1}; char * CNULL=NULL; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() ////// CREATE FILE GYOTO_DEBUG << "creating file \"" << pixfile << "\"... "; fits_create_file(&fptr, pixfile, &status); if (debug()) cerr << "done." << endl; fits_create_img(fptr, DOUBLE_IMG, 3, naxes, &status); if (status) throwCfitsioError(status) ; ////// WRITE FITS KEYWORDS COMMON TO ALL TABLES /////// //set Omega and t0; if (Omega_!=0) fits_write_key(fptr, TDOUBLE, const_cast("GYOTO PatternDisk Omega"), &Omega_, CNULL, &status); if (t0_!=0) fits_write_key(fptr, TDOUBLE, const_cast("GYOTO PatternDisk t0"), &t0_, CNULL, &status); if (repeat_phi_!=1) fits_write_key(fptr, TLONG, const_cast("GYOTO PatternDisk RepeatPhi"), &repeat_phi_, CNULL, &status); if ((radius_ && rin_ != radius_[0]) || (!radius_ && rin_ != 0.)) fits_write_key(fptr, TDOUBLE, const_cast("GYOTO ThinDisk InnerRadius"), &rin_, CNULL, &status); if ((radius_ && rout_ != radius_[nr_-1]) || (!radius_ && rout_ != DBL_MAX)) fits_write_key(fptr, TDOUBLE, const_cast("GYOTO ThinDisk OuterRadius"), &rout_, CNULL, &status); if (phimin_ > -DBL_MAX) fits_write_key(fptr, TDOUBLE, const_cast("GYOTO PatternDisk Phimin"), &phimin_, CNULL, &status); if (phimax_ < DBL_MAX) fits_write_key(fptr, TDOUBLE, const_cast("GYOTO PatternDisk Phimax"), &phimax_, CNULL, &status); ////// SAVE EMISSION IN PRIMARY HDU /////// GYOTO_DEBUG << "saving emission_\n"; fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO PatternDisk emission"), CNULL, &status); fits_write_key(fptr, TDOUBLE, const_cast("CRVAL1"), &nu0_, CNULL, &status); fits_write_key(fptr, TDOUBLE, const_cast("CDELT1"), &dnu_, CNULL, &status); double CRPIX1 = 1.; fits_write_key(fptr, TDOUBLE, const_cast("CRPIX1"), &CRPIX1, CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, nnu_*nphi_*nr_, emission_, &status); if (status) throwCfitsioError(status) ; ////// SAVE OPTIONAL OPACITY HDU /////// if (opacity_) { GYOTO_DEBUG << "saving opacity_\n"; fits_create_img(fptr, DOUBLE_IMG, 3, naxes, &status); fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO PatternDisk opacity"), CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, nnu_*nphi_*nr_, opacity_, &status); if (status) throwCfitsioError(status) ; } ////// SAVE OPTIONAL VELOCITY HDU /////// if (velocity_) { GYOTO_DEBUG << "saving velocity_\n"; naxes[0]=2; fits_create_img(fptr, DOUBLE_IMG, 3, naxes, &status); fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO PatternDisk velocity"), CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, 2*nphi_*nr_, velocity_, &status); if (status) throwCfitsioError(status) ; } ////// SAVE OPTIONAL RADIUS HDU /////// if (radius_) { GYOTO_DEBUG << "saving velocity_\n"; fits_create_img(fptr, DOUBLE_IMG, 1, naxes+2, &status); fits_write_key(fptr, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO PatternDisk radius"), CNULL, &status); fits_write_pix(fptr, TDOUBLE, fpixel, nr_, radius_, &status); if (status) throwCfitsioError(status) ; } ////// CLOSING FILE /////// GYOTO_DEBUG << "close FITS file\n"; if (fits_close_file(fptr, &status)) throwCfitsioError(status) ; fptr = NULL; } #endif void PatternDisk::getIndices(size_t i[3], double const co[4], double nu) const { GYOTO_DEBUG << "dnu_="<phimax_ */ //cerr << "phi stuff: " << phimin_ << " " << phimax_ << " " << dphi_ << " " << nphi_ << endl; //cerr << "in indice --PHI: " << phimin_+(i[1]-1)*dphi_ << " " << phi << " " << phimin_+i[1]*dphi_ << endl; if (radius_) { GYOTO_DEBUG <<"radius_ != NULL" << endl; // if the radius_ vector is set, find closest value if (r >= radius_[nr_-1]) i[2] = nr_; else { for(i[2]=0; r > radius_[i[2]]; ++i[2]){} //cerr << "in indice --RAD: " << radius_[i[2]-1] << " " << r << " " << radius_[i[2]] << endl; /* With this definition: radius_[i[2]-1] <= r < radius_[i[2]] Special case: i[2]=0 if r < radius_[0] */ } } else { GYOTO_DEBUG <<"radius_ == NULL, dr_==" << dr_ << endl; // radius_ is not set: assume linear repartition if (dr_==0.) GYOTO_ERROR("In PatternDisk::getIndices: dr_ should not be 0 here!"); i[2] = size_t(floor((r-rin_)/dr_)+1); if (i[2] >= nr_) i[2] = nr_ - 1; //cerr << "in indice no radius --RAD: " << rin_ + (i[2]-1)*dr_ << " " << r << " " << rin_ + (i[2])*dr_ << endl; } } void PatternDisk::getVelocity(double const pos[4], double vel[4]) { //cerr << "In pattern get vel" << endl; if (velocity_) { if (dir_ != 1) GYOTO_ERROR("PatternDisk::getVelocity(): " "dir_ should be 1 if velocity_ is provided"); size_t i[3]; // {i_nu, i_phi, i_r} //cout << "in pattern getvel go to getIndices" << endl; getIndices(i, pos); //cout << "in pattern getvel after getIndices" << endl; double rr = projectedRadius(pos); double phi = sphericalPhi(pos); if (repeat_phi_>1) phi=fmod(phi-phimin_,(phimax_-phimin_)/double(repeat_phi_))+phimin_; if (rr < rin_ || rr > rout_){ // Outside radial grid, emission is zero: put arbitrary velocity vel[0]=1;vel[1]=0;vel[2]=0;vel[3]=0; return; } //cout << "in velo r phi= " << rr << " " << phi << endl; //cout << "and indices= " << i[0] << " " << i[1] << " " << i[2] << endl; double phiprime=0., rprime=0.; if (nphi_==1){ // If axisym: 1D interpo in radius only double rprimelow=velocity_[i[2]-1], rprimehigh=velocity_[i[2]], phiprimelow=velocity_[nr_+i[2]-1], phiprimehigh=velocity_[nr_+i[2]]; double radlow, radhigh; if (radius_){ radlow = radius_[i[2]-1]; radhigh = radius_[i[2]]; }else{ radlow = rin_ + double(i[2]-1)*dr_; radhigh = rin_ + double(i[2])*dr_; } if (rrradhigh){ //cout << "r= " << i[2] << " " << radlow << " " << rr << " " << radhigh << endl; GYOTO_ERROR("In PatternDisk::getVelocity: " "bad radial interpolation"); } rprime = rprimelow + (rr-radlow)/(radhigh-radlow)*(rprimehigh-rprimelow); phiprime = phiprimelow + (rr-radlow)/(radhigh-radlow)*(phiprimehigh-phiprimelow); }else{ // Bilinear interpolation in r,phi // Notation: X_{phi,r} int iphil, iphiu; double philow, phihigh; if ((i[1]==0 || i[1]==nphi_) && repeat_phi_==1){ // then phi is below phimin or above phimax, // i.e. phimax < phi[2pi] < phimin+2pi // [I don't want to code the repeat_phi_>1 case...] iphil = nphi_-1; philow = phimin_+double(iphil)*dphi_; iphiu = 0; phihigh = phimin_ + 2.*M_PI; if (phiphihigh || rrradhigh){ //cout << "r, phis= " << i[2] << " " << radlow << " " << rr << " " << radhigh << " " << philow << " " << phi << " " << phihigh << endl; GYOTO_ERROR("In PatternDisk::getVelocity: " "bad interpolation"); } double cr = (rr-radlow)/(radhigh-radlow), cp = (phi-philow)/(phihigh-philow); rprime=rp00 + cp*(rp10-rp00) + cr*(rp01-rp00) + cr*cp*(rp11-rp01+rp00-rp10); phiprime=phip00 + cp*(phip10-phip00) + cr*(phip01-phip00) + cr*cp*(phip11-phip01+phip00-phip10); //cout << "interpol velo phi, rp= " << phiprime << " " << rprime << endl; } switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: { vel[1] = rprime; vel[2] = 0.; vel[3] = phiprime; //cout << "pos and vel= " << pos[1] << " " << pos[2] << " " << pos[3] << " " << vel[1] << " " << vel[2] << " " << vel[3] << endl; vel[0] = gg_->SysPrimeToTdot(pos, vel+1); vel[1] *= vel[0]; vel[3] *= vel[0]; } break; case GYOTO_COORDKIND_CARTESIAN: GYOTO_ERROR("PatternDisk::getVelocity(): metric must be in " "spherical coordinaites if velocity field is provided"); break; default: GYOTO_ERROR("PatternDisk::getVelocity(): unknown COORDKIND"); } }else ThinDisk::getVelocity(pos, vel); } double PatternDisk::emission(double nu, double dsem, state_t const &, double const co[8]) const{ //See Page & Thorne 74 Eqs. 11b, 14, 15. This is F(r). GYOTO_DEBUG << endl; size_t i[3]; // {i_nu, i_phi, i_r} getIndices(i, co, nu); double rr = projectedRadius(co); double phi = sphericalPhi(co); if (repeat_phi_>1) phi=fmod(phi-phimin_,(phimax_-phimin_)/double(repeat_phi_))+phimin_; //cout << "in emission r, phi= " << rr << " " << phi << endl; //cout << "and indices= " << i[0] << " " << i[1] << " " << i[2] << endl; //cout << "dphi= " << dphi_ << endl; // No emission outside radius limits //cerr << "r checks: " << rin_ << " " << rout_ << endl; if (rr < rin_ || rr > rout_) return 0.; double Iem=0.; if (nnu_>1) GYOTO_ERROR("In PatternDisk: multifrequency case not implemented"); if (nphi_==1){ // If axisym: 1D interpo in radius only double Iemlow = emission_[i[2]-1], Iemhigh = emission_[i[2]]; double radlow, radhigh; if (radius_){ radlow = radius_[i[2]-1]; radhigh = radius_[i[2]]; }else{ radlow = rin_ + double(i[2]-1)*dr_; radhigh = rin_ + double(i[2])*dr_; } if (rrradhigh){ //cout << "r= " << i[2] << " " << radlow << " " << rr << " " << radhigh << endl; GYOTO_ERROR("In PatternDisk::emission: " "bad radial interpolation"); } Iem = Iemlow + (rr-radlow)/(radhigh-radlow)*(Iemhigh-Iemlow); //cout << "In emission only rad: " << radlow << " " << radhigh << " " << Iemlow << " " << Iemhigh << " " << Iem << endl; }else{ // Bilinear interpolation // Notation I_{phi,r} //cout << "entering bilin em in pattern" << endl; int iphil, iphiu; double philow, phihigh; if ((i[1]==0 || i[1]==nphi_) && repeat_phi_==1){ // then phi is below phimin or above phimax, // i.e. phimax < phi[2pi] < phimin+2pi // [I don't want to code the repeat_phi_>1 case...] iphil = nphi_-1; philow = phimin_+double(iphil)*dphi_; iphiu = 0; phihigh = phimin_ + 2.*M_PI; if (phiphihigh || rrradhigh){ cout << "phi: " << philow << " " << phi << " " << phihigh << endl; cout << "r: " << radlow << " " << rr << " " << radhigh << endl; GYOTO_ERROR("In PatternDisk::emission: " "bad interpolation"); } double cr = (rr-radlow)/(radhigh-radlow), cp = (phi-philow)/(phihigh-philow); Iem = I00 + cp*(I10-I00) + cr*(I01-I00) + cr*cp*(I11-I01+I00-I10); //cout << "In emission I interpo= " << Iem << endl; } if (!flag_radtransf_) return Iem; double thickness; // NB: thickness is not interpolated so far if (opacity_ && (thickness=opacity_[i[1]*nr_+i[2]]*dsem)) return Iem * (1. - exp (-thickness)) ; return 0.; } double PatternDisk::transmission(double nu, double dsem, state_t const &, double const co[8]) const { GYOTO_DEBUG << endl; if (!flag_radtransf_) return 0.; if (!opacity_) return 1.; size_t i[3]; // {i_nu, i_phi, i_r} getIndices(i, co, nu); // NB: opacity is not interpolated so far double opac = opacity_[i[1]*nr_+i[2]]; GYOTO_DEBUG << "nu="<. */ #include "GyotoPhoton.h" #include "GyotoPatternDiskBB.h" #include "GyotoProperty.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; GYOTO_PROPERTY_START(PatternDiskBB) GYOTO_PROPERTY_BOOL(PatternDiskBB, SpectralEmission, BolometricEmission, spectralEmission) GYOTO_PROPERTY_END(PatternDiskBB, PatternDisk::properties) bool PatternDiskBB::spectralEmission() const {return SpectralEmission_;} void PatternDiskBB::spectralEmission(bool t) {SpectralEmission_=t;} PatternDiskBB::PatternDiskBB() : PatternDisk(), spectrumBB_(NULL), SpectralEmission_(0) { kind_= "PatternDiskBB"; GYOTO_DEBUG << "PatternDiskBB Construction" << endl; spectrumBB_ = new Spectrum::BlackBody(); } PatternDiskBB::PatternDiskBB(const PatternDiskBB& o) : PatternDisk(o), spectrumBB_(NULL), SpectralEmission_(o.SpectralEmission_) { GYOTO_DEBUG << "PatternDiskBB Copy" << endl; if (o.spectrumBB_()) spectrumBB_=o.spectrumBB_->clone(); } PatternDiskBB* PatternDiskBB::clone() const { return new PatternDiskBB(*this); } bool PatternDiskBB::isThreadSafe() const { // spectrumBB_ is not a Property return PatternDisk::isThreadSafe() && (!spectrumBB_ || spectrumBB_->isThreadSafe()); } PatternDiskBB::~PatternDiskBB() { GYOTO_DEBUG << "PatternDiskBB Destruction" << endl; } double PatternDiskBB::emission(double nu, double dsem, state_t const &cp, double const co[8]) const{ // This reimplementation of emission has 2 goals, ensuring that // nothing happens below ISCO, and allowing to compute BB emission // when the PatternDisk structure contains temperature GYOTO_DEBUG << endl; double Iem=0.; if (!SpectralEmission_){ /* Here the intensity is assumed to be given by the emission function of PatternDisk */ Iem = PatternDisk::emission(nu,dsem,cp,co);//NB: 3rd argument is not used }else{ //Spectral emission /* Here the temperature is assumed to be given by the emission function of PatternDisk, intensity is computed assuming BB */ double TT; TT = PatternDisk::emission(nu,dsem,cp,co); if (TT==0.) Iem=0.; // typically: we are outside grid radial range else{ spectrumBB_->temperature(TT); Iem=(*spectrumBB_)(nu); } //cout << "In pattern BB nu, T, Bnu= " << nu << " " << TT << " " << Iem << endl; } if (!flag_radtransf_) return Iem; else GYOTO_ERROR("In PatternDiskBB::emission: should be optically thick!"); // The PatternDisk::emission function called above will return // nonsense for the temperature in case the object is optically thin. // Should never reach this return 0.; } Gyoto-2.0.2/lib/Photon.C000066400000000000000000001300441455254334400147500ustar00rootroot00000000000000/* Copyright 2011-2016, 2018-2020, 2022 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoPhoton.h" #include "GyotoScreen.h" #include "GyotoDefs.h" #include "GyotoError.h" #include "GyotoProperty.h" #include "GyotoKerrBL.h" #include "GyotoValue.h" #include #include #include #include #include #include #include #include #include #include #define GYOTO_LIMIT_TRANSMISSION 1e-6 //0.36788 // NB: 0.36788=exp(-1), 1e-6 transmission is well thicker // than the standard optical depth = 1 using namespace std; using namespace Gyoto; using namespace Eigen; // don't add e.g. "using namespace boost::math" // it is not compatible with "using namespace std" in the general case GYOTO_PROPERTY_START(Photon) GYOTO_PROPERTY_ASTROBJ(Photon, Astrobj, astrobj) GYOTO_WORLDLINE_PROPERTY_END(Photon, Object::properties) Photon::Photon() : Worldline(), Object("Photon"), object_(NULL), freq_obs_(1.), transmission_freqobs_(1.), spectro_(NULL), transmission_(NULL), nb_cross_eqplane_(0), transmissionMatrix_(NULL), transmissionMatrix_freqobs_() {} Photon::Photon(const Photon& o) : Worldline(o), SmartPointee(o), object_(NULL), freq_obs_(o.freq_obs_), transmission_freqobs_(o.transmission_freqobs_), spectro_(NULL), transmission_(NULL), nb_cross_eqplane_(o.nb_cross_eqplane_), transmissionMatrix_(NULL), transmissionMatrix_freqobs_(o.transmissionMatrix_freqobs_) { if (o.object_()) { object_ = o.object_ -> clone(); object_ -> metric(metric_); } if (o.spectro_()) { spectro_ = o.spectro_ -> clone(); _allocateTransmission(); _allocateTransmissionMatrix(); if (size_t nsamples = spectro_->nSamples()){ memcpy(transmission_, o.getTransmission(), nsamples*sizeof(double)); memcpy(transmissionMatrix_,o.getTransmissionMatrix(), nsamples*sizeof(Matrix4d)); } } } Photon * Photon::clone() const { return new Photon(*this); } bool Photon::isThreadSafe() const { // spectro_ is not a Property return Object::isThreadSafe() && (!spectro_ || spectro_ -> isThreadSafe()); } Photon::Photon(Photon* orig, size_t i0, int dir, double step_max) : Worldline(orig, i0, dir, step_max), SmartPointee(), object_(orig->object_), freq_obs_(orig->freq_obs_), transmission_freqobs_(orig->transmission_freqobs_), spectro_(orig->spectro_), transmission_(orig->transmission_), nb_cross_eqplane_(orig->nb_cross_eqplane_), transmissionMatrix_(orig->transmissionMatrix_), transmissionMatrix_freqobs_(orig->transmissionMatrix_freqobs_) { } Photon::Refined::Refined(Photon* orig, size_t i0, int dir, double step_max) : Photon(orig, i0, dir, step_max), parent_(orig) { freqObs(orig->freqObs()); } Photon::Photon(SmartPointer met, SmartPointer obj, double* coord): Worldline(), freq_obs_(1.), transmission_freqobs_(1.), spectro_(NULL), transmission_(NULL), nb_cross_eqplane_(0), transmissionMatrix_(NULL), transmissionMatrix_freqobs_() { setInitialCondition(met, obj, coord); } Photon::Photon(SmartPointer met, SmartPointer obj, SmartPointer screen, double d_alpha, double d_delta): Worldline(), object_(obj), freq_obs_(screen->freqObs()), transmission_freqobs_(1.), spectro_(NULL), transmission_(NULL), nb_cross_eqplane_(0), transmissionMatrix_(NULL), transmissionMatrix_freqobs_() { double coord[8], Ephi[4], Etheta[4]; bool compute_polar_basis=false; if (parallel_transport_) compute_polar_basis=true; screen -> getRayTriad(d_alpha, d_delta, coord, compute_polar_basis, Ephi, Etheta); Worldline::setInitialCondition(met, coord, -1, Ephi, Etheta); spectrometer(screen); } Photon::~Photon() {} /* TRANSMISSION STUFF */ void Photon::_allocateTransmission() { if (transmission_) { delete [] transmission_; transmission_ = NULL; } if (spectro_()) { size_t nsamples = spectro_->nSamples(); if (nsamples) { transmission_ = new double[nsamples]; resetTransmission(); } } } void Photon::_allocateTransmissionMatrix() { if (transmissionMatrix_){ delete [] transmissionMatrix_; transmissionMatrix_ = NULL; } if (spectro_()){ size_t nsamples = spectro_->nSamples(); if (nsamples) { transmissionMatrix_ = new Matrix4d[nsamples](); } resetTransmissionMatrix(); } } void Photon::resetTransmission() { transmission_freqobs_ = 1.; if (spectro_() && transmission_) { size_t nsamples = spectro_->nSamples(); for (size_t i = 0; i < nsamples; ++i) transmission_[i] = 1.; } } void Photon::resetTransmissionMatrix() { if (spectro_() && transmissionMatrix_ && &transmissionMatrix_freqobs_) { size_t nsamples = spectro_->nSamples(); Matrix4d identity; identity << 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1; transmissionMatrix_freqobs_ = identity; for (size_t i = 0; i < nsamples; ++i){ transmissionMatrix_[i]=identity; } } } double Photon::getMass() const { return 0.; } void Photon::astrobj(SmartPointer ao) { if (object_!=ao) { if (imin_<=imax_) imin_=imax_=i0_; object_=ao; if (metric_) object_->metric(metric_); } } void Photon::metric(SmartPointer met) { Worldline::metric(met); if (object_) object_->metric(met); } void Photon::spectrometer(SmartPointer spr) { spectro_=spr; _allocateTransmission(); _allocateTransmissionMatrix(); } SmartPointer Photon::spectrometer() const { return spectro_; } string Photon::className() const { return string("Photon"); } string Photon::className_l() const { return string("photon"); } SmartPointer Photon::astrobj() const { return object_; } void Photon::setInitialCondition(SmartPointer met, SmartPointer obj, SmartPointer screen, const double d_alpha, const double d_delta) { double coord[8], Ephi[4], Etheta[4]; bool compute_polar_basis=false; if (parallel_transport_) compute_polar_basis=true; screen -> getRayTriad(d_alpha, d_delta, coord, compute_polar_basis, Ephi, Etheta); Worldline::setInitialCondition(met, coord, -1, Ephi, Etheta); if (obj) object_=obj; } void Photon::setInitialCondition(SmartPointer met, SmartPointer obj, const double coord[8]) { if (!met) met = metric_; Worldline::setInitialCondition(met, coord, -1); if (obj) object_=obj; } void Photon::setInitialCondition(SmartPointer met, SmartPointer obj, const double coord[8], const double Ephi[4], const double Etheta[4]) { if (!met) met = metric_; Worldline::setInitialCondition(met, coord, -1, Ephi, Etheta); if (obj) object_=obj; } int Photon::hit(Astrobj::Properties *data) { /* Ray-tracing of the photon until the object_ is hit. Radiative transfer inside the object_ may then be performed depending on flag_radtransf. Final result (observed flux for instance, depending on object_'s Astrobj::Properties) will be stored in data. */ //tmin_=-1000.;//DEBUG //NB: integration stops when t < Worldline::tmin_ /*transmission_freqobs_=1.; size_t nsamples; if (spectro_() && (nsamples = spectro_->nSamples())) for (size_t ii=0; ii rMax(); int coordkind = metric_ -> coordKind(); int hitt=0; //hitted=1 if object is hitted at least one time (hitt can be 0 even //if the object was hit if cross_max>0) ; hitt_crude=1 if the object //is not yet hit with adaptive integration step. A second integration //with small fixed step will be performed to determine more precisely //the surface point. state_t coord(parallel_transport_?16:8); double tau; int dir=(tmin_>x0_[i0_])?1:-1; size_t ind=i0_; stopcond=0; double rr=DBL_MAX, rr_prev=DBL_MAX; //------------------------------------------------- /* 1- Call object_->Impact on the already computed part of the geodesic to check whether the object_ was hit. */ for (ind=i0_+dir; ((dir==1)? (ind<=imax_ && x0_[ind]<=tmin_): // conditions if dir== 1 (ind>=imin_ && x0_[ind]>=tmin_)) // conditions if dir==-1 && !hitt; // condition in all cases ind+=dir) { switch (coordkind) { case GYOTO_COORDKIND_SPHERICAL: rr=x1_[ind]; break; case GYOTO_COORDKIND_CARTESIAN: rr=sqrt(x1_[ind]*x1_[ind]+x2_[ind]*x2_[ind]+x3_[ind]*x3_[ind]); break; default: GYOTO_ERROR("Incompatible coordinate kind in Photon.C"); } if (rr Impact(this, ind, data); } if (hitt) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "DEBUG: Photon.C: Hit for already computed position; " << "Warning: radiative transfer not implemented " << "for that case" << endl; # endif return hitt; } else if (((dir==1)? (ind==imax_ && x0_[ind]>=tmin_): // conditions if dir== 1 (ind>=imin_ && x0_[ind]<=tmin_)) // conditions if dir==-1 && !hitt) return hitt; if (ind!=i0_) ind-=dir; //------------------------------------------------- //------------------------------------------------- /* 2- Need to compute geodesic further. Set up integration. */ // Check whether the arrays need to be expanded first if (dir==1 && ind==x_size_) ind=xExpand(1); else if (dir==-1 && ind==0) ind=xExpand(-1); // Set up integration getCoord(ind, coord); tau=tau_[ind]; switch (coordkind) { case GYOTO_COORDKIND_SPHERICAL: rr=coord[1]; break; case GYOTO_COORDKIND_CARTESIAN: rr=sqrt(coord[1]*coord[1]+coord[2]*coord[2]+coord[3]*coord[3]); break; default: GYOTO_ERROR("Incompatible coordinate kind in Photon.C"); } state_->init(this, coord, delta_* dir); //delta_ = initial integration step (defaults to 0.01) size_t count=0;// Must remain below count_max (prevents infinite integration) //------------------------------------------------- //------------------------------------------------- /* 3- Integration loop: integrate the geodesic until stopcond is 1. Possible stopping conditions: - transmission_freqobs_ low [see transmission() function in astrobjs, which defaults to 0 (optically thick) or 1 (optically thin) in Astrobj.C] - t < tmin_ (if dir=-1), [NB: tmin_ defaults to -DBL_MAX in Worldline.C] - photon is at r>rmax (defined for each object) and goes even further - metric tells it's time to stop (eg horizon crossing) - t does not evolve [to investigate, metric should have stopped integration before, see above] - count>count_max [should never be used, just to prevent infinite integration in case of a bug] */ /* Image order computation: An image can be decomposed into various orders depending on the number of turns that a photon executes around a black hole before reaching the observer (this is broadly speaking, details below). The 0th-order (aka direct) image is the map of specific intensity obtained by integrating the radiative transfer along the part of the geodesic that makes between 0 and half a turn around the BH, when integrating from the observer towards the BH. The 1st-order image is obtained by taking into account the intensity accumulated between half a turn and one full turn, etc. Again this is broadly speaking and just to have a first naive view. In particular, note that one given geodesic is not "of order n", but it rather has some part of it which is of order 0, some part of order 1, etc. In more details now, there are at least 2 ways that one can encode this: - we can keep track of the theta turning points along the geodesic, and change the geodesic order when we encounter a theta turning point (corresponding to a half orbit around the BH, where an orbit is defined here as the geodesic path between one theta turning point back to this same turning point). This is reasonably easy to implement (but there are few tricks, which makes it less obviously correct than the second method) and is spacetime agnostic. - a more precise way of dealing with that, which is specific to Kerr, is to keep track of the Mino time as defined eg in Gralla & Lupsasca, Phys Rev D, 101, 044031 (2020, hereafter GL20a), Eq. 34-36. The Mino time is directly linked to the number of orbits around the BH. So here there is no trick, we simply integrate the Mino time, and use it to define the number of orbits, and define the image order as above as the number of half orbits. However, this is not generalizable to a non-Kerr spacetime. I (FV) have compared the two approaches and found excellent agreement in Kerr. The image-order code below is thus decomposed into two parts, one which takes care of keeping track of the theta turning points, and the other that takes care of integrating the Mino time. One can switch between the two by choosing compute_Mino=0 or 1 below (hardcoded). Careful: all this is well tested at low inclination but might not be well adapted for high inclination, TBC. */ int geodesic_order=0; // will be changed to 1 when the geodesic becomes // 1st-order, then to 2 when it becomes second-order. // Theta-turning-point image-order-tracking parameters: bool theta_has_changed=false; // flag checking the change of theta coordinate // needed for tracking various orders of the image if max_cross_eqplane_ // is set bool theta_is_increasing=true; // 1: if theta is increasing along integration, // ie from Screen towards Object; 0: means theta is decreasing. Flag // needed for tracking various orders of the image if max_cross_eqplane_ // is set. Default value here, will be updated later. int nb_theta_turningpoints=0; // keeping track of number of theta turning points // Mino-time image-order-tracking parameters: int compute_Mino=0; // IMPORTANT! if put to 1, the theta turning points // tracking is ignored and the image-order tracking is done by means // of the Mino time double G_theta=0.; // angular integral along geodesic = elapsed Mino time double I_radial=0.; // radial integral along geodesic = elapsed Mino time also double G_theta_1libration=0., nn_Mino_1st_turning=0., KK=0., Fo=0., sign_o=0., uplus=0., uminus=0., uratio=0., eta=0., lambda=0., spin2=0., nn_Mino=0., Einit=0., Linit=0., spin=0.; double mytol=1e-6; // it must be possible to decrease this tolerance // by using a finer AbsTol and RelTol in xml (checked for one case). if ((maxCrossEqplane_nbcrosseqplane)) && compute_Mino==1){ // The first two conditions ensure that we are interesting in computing image orders; then we compute here everything that is constant along the null geodesic string kin = metric_->kind(); // check that we are in Kerr for Mino computation if (kin != "KerrBL") GYOTO_ERROR("Photon::hit: KerrBL needed for Mino time computation!"); double pos[4]={coord[0],coord[1],coord[2],coord[3]}; double g_tt=metric_->gmunu(pos,0,0), g_thth=metric_->gmunu(pos,2,2), g_pp=metric_->gmunu(pos,3,3), g_tp=metric_->gmunu(pos,0,3); double p_t = g_tt*coord[4] + g_tp*coord[7], p_ph = g_tp*coord[4] + g_pp*coord[7], p_th = g_thth*coord[6]; //cout << "E,L= " << -p_t << " " << p_ph << endl; double theta = coord[2]; spin= metric_ -> get("Spin"); // Note: static_cast >(metric_) -> spin() // does not work because Photon belongs to libgyoto and KerrBL to // libgyoto-stdplug so there is no possible cast between them. // The get function is more time consuming, keep that in mind... spin2 = spin*spin; //cout << "pth= " << p_th << endl; double Carter = p_th*p_th - cos(theta)*cos(theta)*(spin2*p_t*p_t - p_ph*p_ph/(sin(theta)*sin(theta))); Einit = -p_t; Linit = p_ph; //cout << setprecision(16) << "E,L init= " << Einit << " " << Linit << endl; if (Carter<0.) { //GYOTO_WARNING << "Carter<0" << endl; compute_Mino=0.; // the Mino time expressions of GL20a // are restricted to positive Carter cst geodesics (most of them are) } lambda = -p_ph/p_t; eta = Carter/(p_t*p_t); //cout << "eta,lambda= " << eta << " " << lambda << endl; if (spin==0.) throwError("Photon::hit: Mino-time formalism derived for spin>0!"); double delta_th = 0.5*(1.-(eta+lambda*lambda)/spin2); //cout<< "delta_th= "<< delta_th << endl; uplus = delta_th + sqrt(delta_th*delta_th + eta/spin2); uminus = delta_th - sqrt(delta_th*delta_th + eta/spin2); if (uminus==0.) throwError("Photon::hit: uminus is zero and we need " "to divide by that number!"); uratio = uplus/uminus; // note that uratio is always <0 for the // cases of interest where Carter>0 (then, uminus<0, uplus>0). /* IMPORTANT NOTE ON ELLIPTIC INTEG: F_GrallaLupsasca(phi,k) = ellint_1(sqrt(k),phi) in C++ careful to the sqrt(k); also note that the C++ implementation only deals with k>0. For k<0 we use Eq. 17.4.17 of Abramowitz & Stegun which expresses F(phi,-k) as a function of F(phi,k/(1+k)), hence the sqrt(-uratio/(1-uratio)) appearing regularly below, because uratio<0. */ if (compute_Mino==1){ // compute_Mino may have been changed to zero if // Carter cst is <0 KK = 1./sqrt(1-uratio)*(boost::math::ellint_1(sqrt(-uratio/(1-uratio)),M_PI/2.)-boost::math::ellint_1(sqrt(-uratio/(1-uratio)),0.)); // using Abramowitz&Stegun formula, this is // KK = F(pi/2 | uratio) G_theta_1libration = 4.*KK/(spin*sqrt(-uminus)); // Eq. 35 of GL20a sign_o = (x2dot_[i0_] > 0) - (x2dot_[i0_] < 0); // this is the sign of the theta component of the photon momentum at the observer // Computing F(arcsin(cos(theta_obs)/sqrt(uplus) | uratio): double argasin=cos(x2_[i0_])/sqrt(uplus); // uplus is the maximum allowed value of cos^2 theta, so argasin should be <1; it might not be, due to limited precision, cos^2 theta being slightly above uplus. So we take care of this: if (argasin-1>0. && argasin-10. && -1-argasin0. && argasin-10. && -1-argasin deltaMax(&coord[0]); stopcond = state_ -> nextStep(coord, tau, h1max); //cout << "IN ph r, z= " << coord[1] << " " << coord[1]*cos(coord[2]) << endl; double pos[4]={coord[0],coord[1],coord[2],coord[3]}; double g_tt=metric_->gmunu(pos,0,0), g_thth=metric_->gmunu(pos,2,2), g_pp=metric_->gmunu(pos,3,3), g_tp=metric_->gmunu(pos,0,3); double p_t = g_tt*coord[4] + g_tp*coord[7], p_ph = g_tp*coord[4] + g_pp*coord[7], p_th = g_thth*coord[6]; double Ecur=-p_t, Lcur=p_ph; //cout << setprecision(16) << "E,L cur= " << -p_t << " " << fabs(Einit+p_t) << " " << p_ph << " " << fabs(Linit-p_ph) << endl; if (!secondary_){ // to compute only primary image (outdated, use MaxCrossEqplane above instead) // Thin disk case double sign = x1_[i0_]*cos(x2_[i0_]); if (coord[1]*cos(coord[2])*sign<0. && x1_[ind]*cos(x2_[ind])*sign<0.) return 0; } if (stopcond) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "stopcond set by integrator\n"; # endif int shadow=object_->showshadow(); if (shadow && data && data->spectrum){ SmartPointer spr = spectrometer(); size_t nbnuobs = spr() ? spr -> nSamples() : 0 ; for (size_t ii=0; iispectrum[ii*data->offset] = 1e10; // something very big } } break; } if (coord[0] == x0_[ind]) { // here, ind denotes previous step stopcond=1; # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "time did not evolve, break." << endl; # endif break; } if((stopcond=metric_->isStopCondition(&coord[0]))) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "stopcond step by metric"< maxiter_ ) { GYOTO_SEVERE << "Photon::hit: too many iterations ("< Impact */ // Check if we can reach the object_ switch (coordkind) { case GYOTO_COORDKIND_SPHERICAL: rr = x1_[ind]; break; case GYOTO_COORDKIND_CARTESIAN: rr=sqrt(x1_[ind]*x1_[ind]+x2_[ind]*x2_[ind]+x3_[ind]*x3_[ind]); break; default: GYOTO_ERROR("Incompatible coordinate kind in Photon.C"); } # if GYOTO_DEBUG_ENABLED GYOTO_IF_DEBUG GYOTO_DEBUG_EXPR(rmax); GYOTO_DEBUG_EXPR(rr); GYOTO_ENDIF_DEBUG # endif if (rr Impact(this, ind, data); if (hitt && !data) stopcond=1; # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(transmission_freqobs_); # endif if ( getTransmissionMax() < GYOTO_LIMIT_TRANSMISSION ) { stopcond=1; # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "stopping because we are optically thick\n"; # endif } } else { if ( rr > rr_prev ) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "Stopping because " << "1) we are far from this object and " << "2) we are flying away" << endl; # endif // store coordinates of outgoing photon in impactcoords if (data && data->impactcoords && data->impactcoords[0]==DBL_MAX) { for (size_t i=0; i<8; ++i) data->impactcoords[i]=DBL_MAX; memcpy(data->impactcoords+8, &coord[0], 8 * sizeof(double)); } stopcond=1; break; } } rr_prev=rr; //************************************ //************************************ /* 3-c Checks whether t < tmin_ (with dir=-1) and expands arrays if necessary to be able to store next step's results */ switch (dir) { case 1: if (coord[0]>tmin_) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "stopping because time goes beyond time limit\n"; # endif stopcond=1; } if ((!stopcond) && (ind==x_size_)) { imax_=x_size_-1; ind=xExpand(1); } break; default: if (coord[0]nbcrosseqplane)){ if (compute_Mino==1){ /* DETERMINE GEODESIC ORDER BY MEANS OF MINO TIME (specific to Kerr) */ double theta_step = -coord[2] + x2_[ind-dir]; // it is indeed like that because we are integrating backwards, the order matters a lot; Gth is the integral from source to observer. double costh_cur, sinth_cur; sincos(coord[2], &sinth_cur, &costh_cur); double costh_prev, sinth_prev; sincos(x2_[ind-dir], &sinth_prev, &costh_prev); double c2_cur=costh_cur*costh_cur, s2_cur=sinth_cur*sinth_cur, c2_prev=costh_prev*costh_prev, s2_prev=sinth_prev*sinth_prev; double Theta_cur = eta + spin2*c2_cur - lambda*lambda*c2_cur/s2_cur; double Theta_prev = eta + spin2*c2_prev - lambda*lambda*c2_prev/s2_prev; double pth_cur = coord[6], rr_cur= coord[1], mytheta_cur = coord[2]; double Sigma = rr_cur*rr_cur + spin2*cos(mytheta_cur)*cos(mytheta_cur); double Delta = rr_cur*rr_cur + spin2 - 2.*rr_cur; double RR_cur = (rr_cur*rr_cur + spin2 - spin*lambda)*(rr_cur*rr_cur + spin2 - spin*lambda) - Delta*(eta + (lambda-spin)*(lambda-spin)); double pphi_rhs = spin/Delta*(rr_cur*rr_cur + spin2 - spin*lambda) + lambda/(sin(mytheta_cur)*sin(mytheta_cur)) - spin; double pt_rhs = (rr_cur*rr_cur + spin2)/Delta*(rr_cur*rr_cur + spin2 - spin*lambda) + spin*(lambda-spin*sin(mytheta_cur)*sin(mytheta_cur)); double pth_prev = Ecur/Sigma*sqrt(Theta_cur), pr_prev = Ecur/Sigma*sqrt(RR_cur), pt_prev = Ecur/Sigma*pt_rhs, pphi_prev = Ecur/Sigma*pphi_rhs; //cout << "Potentials= " << RR_cur <<" " << Theta_cur << endl; // Next if loop is for computing the I_r integral in addition // to the G_theta integral (see GL20). Both should agree. // Only useful for testing. int compute_Irad=0; if (compute_Irad==1){ double Arond = spin2 - eta - lambda*lambda, Brond = 2.*(eta + (lambda - spin)*(lambda - spin)), Crond = -spin2*eta, Prond = -Arond*Arond/12. - Crond, Qrond = -Arond/3.*(Arond*Arond/36. - Crond) - Brond*Brond/8., delta_cubic = Prond*Prond*Prond/27. + Qrond*Qrond/4.; double xi0; if (delta_cubic<0.){ complex omegaplus = pow(-Qrond/2. + complex(0, sqrt(-delta_cubic)),1./3.), omegaminus = pow(-Qrond/2. - complex(0, sqrt(-delta_cubic)),1./3.); if (imag(omegaplus)+imag(omegaminus)!=0.) throwError("Bad cubic roots!"); xi0 = real(omegaplus) + real(omegaminus) - Arond/3.; }else{ double omegaplus = pow(-Qrond/2. + sqrt(delta_cubic),1./3.), omegaminus = pow(-Qrond/2. - sqrt(delta_cubic),1./3.); xi0 = omegaplus + omegaminus - Arond/3.; } if (xi0<0.) throwError("Bad cubic roots!"); double zquartic = sqrt(xi0/2.), r1quartic = -zquartic - sqrt(-Arond/2. - zquartic*zquartic + Brond/(4.*zquartic)), r2quartic = -zquartic + sqrt(-Arond/2. - zquartic*zquartic + Brond/(4.*zquartic)), r3quartic = zquartic - sqrt(-Arond/2. - zquartic*zquartic - Brond/(4.*zquartic)), r4quartic = zquartic + sqrt(-Arond/2. - zquartic*zquartic - Brond/(4.*zquartic)); if (fabs(r1quartic+r2quartic+r3quartic+r4quartic)>1e-10) throwError("Bad quartic roots!"); // sum should be zero // Here I assume a type-1 radial evolution, ie r11. || x2radial_cur<0. || x2radial_cur>1. || x2radial_prev<0. || x2radial_prev>1.) throwError("Bad radial potential params"); double F2radial_cur = 2./sqrt(r31*r42) *boost::math::ellint_1(sqrt(kradial),asin(x2radial_cur)), F2radial_prev = 2./sqrt(r31*r42) *boost::math::ellint_1(sqrt(kradial),asin(x2radial_prev)); double sign_radial_s_cur = (coord[5] > 0) - (coord[5] < 0); double sign_radial_s_prev = (x1dot_[ind-dir] > 0) - (x1dot_[ind-dir] < 0); double sign_radial_s=0., dI_radial=0.; if (sign_radial_s_cur == sign_radial_s_prev) { sign_radial_s = sign_radial_s_cur; dI_radial = sign_radial_s*(F2radial_prev - F2radial_cur); }else{ double F2radial_turn = 0.; //2./sqrt(r31*r42)*boost::math::ellint_1(sqrt(kradial),0.); // at r=r4quartic, x2radial is zero, and asin(0)=0, hence the 0 in second slot, which leads to ellint1=0 dI_radial = 2.*sign_radial_s_cur*F2radial_turn - sign_radial_s_cur*(F2radial_prev + F2radial_cur); } if (dI_radial<0.) throwError("radial integral should increase"); I_radial += dI_radial; // Equatorial plane crossing double argasin=cos(x2_[i0_])/sqrt(uplus); if (argasin-1>0. && argasin-10. && -1-argasin0. && argasin-10. && -1-argasin0. && argasin-10. && -1-argasin 0) - (coord[6] < 0); double sign_s_prev = (x2dot_[ind-dir] > 0) - (x2dot_[ind-dir] < 0); double sign_s=0., dG_theta=0.; if (sign_s_cur == sign_s_prev) { sign_s = sign_s_cur; dG_theta = sign_s*(Fs_prev - Fs_cur)*(-1./(spin*sqrt(-uminus))); }else{ double Fs_turn = G_theta_1libration/4.; if (coord[2]nn_Mino_1st_turning) { //cout << setprecision(16)<< "***MINO: geod becomes n=1 at rc, z= " << coord[1]*sin(coord[2]) << " " << coord[1]*cos(coord[2]) << ", and nn_Mino= "<< nn_Mino << endl; geodesic_order=1; } if (geodesic_order==1 && nn_Mino>nn_Mino_1st_turning+0.5) { //cout << "***MINO: geod becomes n=2 at rc, z= " << coord[1]*sin(coord[2]) << " " << coord[1]*cos(coord[2]) << ", and nn_Mino= "<< nn_Mino << endl; geodesic_order=2; } if (geodesic_order==2 && nn_Mino>nn_Mino_1st_turning+1.) { //cout << "***MINO: geod becomes n=3 at rc, z= " << coord[1]*sin(coord[2]) << " " << coord[1]*cos(coord[2]) << ", and nn_Mino= "<< nn_Mino << endl; geodesic_order=3; } //cout <<"geodesic order= " << geodesic_order << endl; }else{ /* DETERMINE GEODESIC ORDER BY MEANS OF THETA TURNING POINTS (not specific to Kerr) For details on the tricks, see FV notes on image order tracking. */ double zsign=0.; switch (coordkind) { case GYOTO_COORDKIND_SPHERICAL: // *** z sign change tracking zsign = x1_[i0_]*cos(x2_[i0_]); // sign of first z position if (nb_cross_eqplane_>0) zsign *= pow(-1,nb_cross_eqplane_); // update it when crossing equatorial plane if (coord[1]*cos(coord[2])*zsign<0.){ nb_cross_eqplane_+=1; // equatorial plane has been just crossed //cout << "***updating nbcross to " << nb_cross_eqplane_ << endl; //cout << "at rc,z= " << coord[1]*sin(coord[2]) << " " << coord[1]*cos(coord[2]) << endl; } // *** theta turning points tracking if (!theta_has_changed){ // theta has not yet changed // just keep track of it starting to change // and update theta_is_increasing accordingly if (x2_[i0_]!=coord[2]){ theta_has_changed=true; if (coord[2]x2_[ind-dir])){ // so here theta was increasing in the past of the integration // and it now starts to decrease, or the other way round: // we have a new turning point theta_is_increasing = !theta_is_increasing; if (nb_theta_turningpoints==nb_cross_eqplane_-1){ // eqplane should be crossed before the theta turning point nb_theta_turningpoints+=1; if (nb_theta_turningpoints==1) { //cout << "***TURNING: geod becomes n=1 at rc, z= " << coord[1]*sin(coord[2]) << " " << coord[1]*cos(coord[2]) << endl; geodesic_order=1; } if (nb_theta_turningpoints==2){ //cout << "***TURNING: geod becomes n=2 at rc, z= " << coord[1]*sin(coord[2]) << " " << coord[1]*cos(coord[2]) << endl; geodesic_order=2; } if (nb_theta_turningpoints==3){ //cout << "***TURNING: geod becomes n=3 at rc, z= " << coord[1]*sin(coord[2]) << " " << coord[1]*cos(coord[2]) << endl; geodesic_order=3; } } } } break; case GYOTO_COORDKIND_CARTESIAN: { throwError("to be implemented"); break; } default: GYOTO_ERROR("Incompatible coordinate kind in Photon.C"); } } // END OF IMAGE ORDER STUFF GYOTO_DEBUG_EXPR(nb_cross_eqplane_); // Store if necessary the image order stuff in the relevant data: if (data->nbcrosseqplane && compute_Mino==0 && nb_cross_eqplane_==nb_theta_turningpoints){ *data->nbcrosseqplane=nb_cross_eqplane_; } if (data->nbcrosseqplane && compute_Mino==1) *data->nbcrosseqplane=geodesic_order; if (data->user1 && geodesic_order==0) { if (data->spectrum) *data->user1=data->spectrum[0]; // User1 keep tracks of Spectrum until the geodesic becomes of order 1 if (data->user4) *data->user1=data->user4[0]; //cout << "saving order 0 spectrum of " << data->spectrum[0] << " " << *data->user1 << " at rc,z=" << coord[1]*sin(coord[2]) << " " << coord[1]*cos(coord[2]) << endl; } if (data->user2 && geodesic_order==1) { if (data->spectrum) *data->user2=data->spectrum[0]-*data->user1; if (data->user4) *data->user2=data->user4[0]-*data->user1; //cout << "saving order 1 spectrum of " << data->spectrum[0] << " " << *data->user1 << " " << *data->user2 << " at rc,z=" << coord[1]*sin(coord[2]) << " " << coord[1]*cos(coord[2]) << endl; } if (data->user3 && geodesic_order==2) { if (data->spectrum) *data->user3=data->spectrum[0]-*data->user1-*data->user2; if (data->user4) *data->user3=data->user4[0]-*data->user1-*data->user2; //cout << "saving order 2 spectrum of " << *data->user3 << " at rc,z=" << coord[1]*sin(coord[2]) << " " << coord[1]*cos(coord[2]) << endl; } if (geodesic_order == maxCrossEqplane_){ // stop integration if maxcross reached return 0; } } } // End of stopcond loop //------------------------------------------------- return hitt; } double Photon::findMin(Functor::Double_constDoubleArray* object, double t1, double t2, double &tmin, double threshold) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif double p1[8] = {t1}, p2[8] = {t2}; getCoord(p1, 1, p1+1, p1+2, p1+3, p1+4, p1+5, p1+6, p1+7); getCoord(p2, 1, p2+1, p2+2, p2+3, p2+4, p2+5, p2+6, p2+7); double curval = DBL_MAX, pcur[8], val1, val2; pcur[0]=t1; getCoord(pcur, 1, pcur+1, pcur+2, pcur+3, pcur+4, pcur+5, pcur+6, pcur+7); val1=(*object)(pcur); pcur[0]=t2; getCoord(pcur, 1, pcur+1, pcur+2, pcur+3, pcur+4, pcur+5, pcur+6, pcur+7); val2=(*object)(pcur); while ( (fabs(t2-t1)>GYOTO_T_TOL) && (curval>threshold) ) { pcur[0] = 0.5*(t1+t2); if ((pcur[0]==t1) ||pcur[0]==t2) { GYOTO_SEVERE << "Photon::findMin(): dt still above GYOTO_T_TOL (t2-t1=" << t2-t1 << ")"; break; } getCoord(pcur, 1, pcur+1, pcur+2, pcur+3, pcur+4, pcur+5, pcur+6, pcur+7); curval=(*object)(pcur); if (val1 GYOTO_T_TOL) { pcur[0] = 0.5*(tinside+toutside); getCoord(pcur, 1, pcur+1, pcur+2, pcur+3, pcur+4, pcur+5, pcur+6, pcur+7); if ( (*object)(pcur) < value ) tinside = pcur[0]; else toutside = pcur[0]; } toutside = tinside; } void Photon::freqObs(double fo) { freq_obs_=fo; GYOTO_DEBUG_EXPR(freq_obs_); } double Photon::freqObs() const { GYOTO_DEBUG_EXPR(freq_obs_); return freq_obs_; } void Photon::nb_cross_eqplane(int nb) { nb_cross_eqplane_=nb; GYOTO_DEBUG_EXPR(nb_cross_eqplane_); } int Photon::nb_cross_eqplane() const { GYOTO_DEBUG_EXPR(nb_cross_eqplane_); return nb_cross_eqplane_; } double Photon::getTransmission(size_t i) const { if (i==size_t(-1)) return transmission_freqobs_; if (!spectro_() || i>=spectro_->nSamples()) GYOTO_ERROR("Photon::getTransmission(): i > nsamples"); return transmission_[i]; } Matrix4d Photon::getTransmissionMatrix(size_t i) const { if (i==size_t(-1)) return transmissionMatrix_freqobs_; if (!spectro_() || i>=spectro_->nSamples()) GYOTO_ERROR("Photon::getTransmission(): i > nsamples"); return transmissionMatrix_[i]; } double Photon::getTransmissionMax() const { double transmax = 0.; if (parallel_transport_ and spectro_()){ transmax=0.; size_t i=0, imax= spectro_->nSamples(); for (i=0; i < imax; ++i){ Matrix4d mat=transmissionMatrix_[i]; if (mat(0,0)>transmax) transmax=mat(0,0); } }else{ transmax=transmission_freqobs_; if (spectro_()) { transmax=0.; size_t i=0, imax= spectro_->nSamples(); for (i=0; i < imax; ++i) if (transmission_[i] > transmax) transmax = transmission_[i]; } # ifdef GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(transmax); # endif } return transmax; } double const * Photon::getTransmission() const { return transmission_; } Matrix4d const * Photon::getTransmissionMatrix() const { return transmissionMatrix_; } void Photon::transmit(size_t i, double t) { if (i==size_t(-1)) { transmission_freqobs_ *= t; return; } if (!spectro_() || i>=spectro_->nSamples()) GYOTO_ERROR("Photon::getTransmission(): i > nsamples"); transmission_[i] *= t; # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "(i="<transmit(i, t); if (i==size_t(-1)) transmission_freqobs_ = parent_->transmission_freqobs_; } void Photon::transmit(size_t i, Matrix4d mat){ if (i==size_t(-1)) { transmissionMatrix_freqobs_ *= mat; return; } if (!spectro_() || i>=spectro_->nSamples()) GYOTO_ERROR("Photon::getTransmissionMatrix(): i > nsamples"); transmissionMatrix_[i] *= mat; } void Photon::Refined::transmit(size_t i, Matrix4d mat) { parent_ -> transmit(i, mat); } void Photon::transfer(double * Inu, double * Qnu, double * Unu, double * Vnu, Matrix4d * Onu){ // Apply transfer function to I, Q, U and V, then update the transfer function. // For the prototype, // * just apply the transmission to Inu; // * only update transmission. size_t nbnuobs = spectro_() ? spectro_->nSamples() : 0; Matrix4d Tau; for (size_t ii=0; ii transfer(Inu, Qnu, Unu, Vnu, Onu); } #ifdef GYOTO_USE_XERCES void Photon::setParameters(FactoryMessenger* fmp) { wait_pos_ = 1; metric(fmp->metric()); Object::setParameters(fmp); wait_pos_ = 0; if (init_vel_) { delete[] init_vel_; init_vel_=NULL; GYOTO_ERROR("Worldline::setParameters(): " "Velocity was found but not Position"); } } SmartPointer Gyoto::Photon::Subcontractor(FactoryMessenger* fmp) { SmartPointer ph = new Photon(); ph -> setParameters(fmp); return ph; } #endif Gyoto-2.0.2/lib/Plasmoid.C000066400000000000000000000344161455254334400152570ustar00rootroot00000000000000/* Copyright 2019, 2020 Frederic Vincent, Thibaut Paumard, Nicolas Aimar This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoPlasmoid.h" #include "GyotoPhoton.h" #include "GyotoWorldline.h" #include "GyotoFactoryMessenger.h" #include #include #include #include #include #include #include #ifdef GYOTO_USE_CFITSIO #define throwCfitsioError(status) \ { fits_get_errstatus(status, ermsg); GYOTO_ERROR(ermsg); } #endif using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(Plasmoid, "Synchrotron-emitting orbiting plasmoid heated by magnetic reconnection") GYOTO_PROPERTY_VECTOR_DOUBLE(Plasmoid, InitPosition, initPosition, "(t,r,theta,phi) initial position of plasmoid") GYOTO_PROPERTY_VECTOR_DOUBLE(Plasmoid, InitVelocity, initVelocity, "(dr/dt,dtheta/dt,dphi/dt) initial 3-velocity " "of plasmoid") GYOTO_PROPERTY_DOUBLE(Plasmoid, RadiusMax, radiusMax, "Maximun radius of the Plasmoid") GYOTO_PROPERTY_END(Plasmoid, UniformSphere::properties) Plasmoid::Plasmoid() : FitsRW(), UniformSphere("Plasmoid"), flag_("None"), posSet_(false), posIni_(NULL), fourveldt_(NULL), radiusMax_(1.), varyRadius_("None"), filename_("None"), jnu_array_(NULL), anu_array_(NULL), freq_array_(NULL), t_inj_(1.) { kind_="Plasmoid"; # ifdef GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "done." << endl; # endif posIni_= new double[4]; fourveldt_= new double[4]; } Plasmoid::Plasmoid(const Plasmoid& orig) : FitsRW(orig), UniformSphere(orig), flag_(orig.flag_), posSet_(orig.posSet_), posIni_(NULL), fourveldt_(NULL), radiusMax_(orig.radiusMax_), varyRadius_(orig.varyRadius_), filename_(orig.filename_), jnu_array_(NULL), anu_array_(NULL), freq_array_(NULL), t_inj_(orig.t_inj_) { if(orig.posIni_){ posIni_= new double[4]; memcpy(posIni_,orig.posIni_, 4*sizeof(double)); } if(orig.fourveldt_){ fourveldt_= new double[4]; memcpy(fourveldt_,orig.fourveldt_, 4*sizeof(double)); } size_t ncells=0; size_t nnu=FitsRW::nnu(), nt=FitsRW::nt(); ncells=nnu*nt; if (orig.jnu_array_){ jnu_array_ = new double[ncells]; memcpy(jnu_array_,orig.jnu_array_, ncells*sizeof(double)); } if (orig.anu_array_){ anu_array_ = new double[ncells]; memcpy(anu_array_,orig.anu_array_, ncells*sizeof(double)); } if (orig.freq_array_){ freq_array_ = new double[nnu]; memcpy(freq_array_,orig.freq_array_, nnu*sizeof(double)); } } Plasmoid* Plasmoid::clone() const { return new Plasmoid(*this); } Plasmoid::~Plasmoid() { if (debug()) cerr << "DEBUG: Plasmoid::~Plasmoid()\n"; if (jnu_array_) delete [] jnu_array_; if (anu_array_) delete [] anu_array_; if (freq_array_) delete [] freq_array_; } string Plasmoid::className() const { return string("Plasmoid"); } string Plasmoid::className_l() const { return string("Plasmoid"); } void Plasmoid::radiativeQ(double Inu[], // output double Taunu[], // output double const nu_ems[], size_t nbnu, // input double dsem, state_t const &coord_ph, double const coord_obj[8]) const { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif if (filename_=="None") GYOTO_ERROR("In Plamsoid RadiativeQ : filename_ not defined, please use file(string)"); double tcur=coord_ph[0]*GYOTO_G_OVER_C_SQUARE*gg_->mass()/GYOTO_C/60.; // in min double t0 = posIni_[0]*GYOTO_G_OVER_C_SQUARE*gg_->mass()/GYOTO_C/60.; // t0 in min // Defining jnus, anus double jnu[nbnu]; double anu[nbnu]; for (size_t ii=0; iiunitLength()); Taunu[ii] = em1+1.; Inu[ii] = anu_tot == 0. ? jnu_tot * dsem * gg_->unitLength() : -jnu_tot / anu_tot * em1; if (Inu[ii]<0.) GYOTO_ERROR("In Plasmoid::radiativeQ: Inu<0"); if (Inu[ii]!=Inu[ii] or Taunu[ii]!=Taunu[ii]) GYOTO_ERROR("In Plasmoid::radiativeQ: Inu or Taunu is nan"); if (Inu[ii]==Inu[ii]+1. or Taunu[ii]==Taunu[ii]+1.) GYOTO_ERROR("In Plasmoid::radiativeQ: Inu or Taunu is infinite"); } } void Plasmoid::motionType(std::string const type){ if (type=="Helical" || type=="Equatorial") { flag_=type; } else GYOTO_ERROR("In Plasmoid::motonType: motion not recognized, please enter a valid motion type (Helical or Equatorial)"); } SmartPointer Plasmoid::metric() const { return gg_; } void Plasmoid::metric(SmartPointer gg) { UniformSphere::metric(gg); gg_=gg; } void Plasmoid::initPosition(std::vector const &v) { posIni_[0] = v[0]; posIni_[1] = v[1]; posIni_[2] = v[2]; posIni_[3] = v[3]; posSet_=true; } std::vector Plasmoid::initPosition() const { std::vector v (4, 0.); v[0] = posIni_[0]; v[1] = posIni_[1]; v[2] = posIni_[2]; v[3] = posIni_[3]; return v; } void Plasmoid::initVelocity(std::vector const &v) { if (!posSet_) GYOTO_ERROR("In Plasmoid::initVelocity initial Position not defined"); fourveldt_[1] = v[0]; fourveldt_[2] = v[1]; fourveldt_[3] = v[2]; fourveldt_[0] = 1.; double sum = 0; double g[4][4]; gg_->gmunu(g, posIni_); for (int i=0;i<4;++i) { for (int j=0;j<4;++j) { sum+=g[i][j]*fourveldt_[i]*fourveldt_[j]; } } if (sum>=0) GYOTO_ERROR("In Plasmoid::initVelocity Initial Velocity over C"); } std::vector Plasmoid::initVelocity() const { std::vector v (3, 0.); v[0] = fourveldt_[1]; v[1] = fourveldt_[2]; v[2] = fourveldt_[3]; return v; } void Plasmoid::initCoord(std::vector const &v) { posIni_[0] = v[0]; posIni_[1] = v[1]; posIni_[2] = v[2]; posIni_[3] = v[3]; fourveldt_[0] = v[4]; fourveldt_[1] = v[5]; fourveldt_[2] = v[6]; fourveldt_[3] = v[7]; } std::vector Plasmoid::initCoord() const { std::vector v (8, 0.); v[0] = posIni_[0]; v[1] = posIni_[1]; v[2] = posIni_[2]; v[3] = posIni_[3]; v[4] = fourveldt_[0]; v[5] = fourveldt_[1]; v[6] = fourveldt_[2]; v[7] = fourveldt_[3]; return v; } void Plasmoid::radiusMax(double rr) { if (rr<0.2) GYOTO_ERROR("In Plasmoid::radiusMax radiusMax<0.2 (minimum value)"); radiusMax_=rr; } double Plasmoid::radiusMax() const { return radiusMax_; } void Plasmoid::Radius(std::string vary) { if (vary=="Constant" || vary=="Varying") varyRadius_=vary; else GYOTO_ERROR("In Plasmoid::Radius operation on radius not recognized, please enter a valid operation (Constant or Varying)"); } void Plasmoid::getCartesian(double const * const dates, size_t const n_dates, double * const x, double * const y, double * const z, double * const xprime, double * const yprime, double * const zprime){ // this yields the position of the center of the UnifSphere // at time t // fourveldt_ is the initial 3-velocity dxi/dt // vel is the 4-velocity dxnu/dtau if (n_dates!=1) GYOTO_ERROR("In Plasmoid::getCartesian n_dates!=1"); if (flag_=="None") GYOTO_ERROR("In Plasmoid::getCartesian Motion not defined; motionType('Helical' or 'Equatorial'"); double tt=dates[0]; double r, theta, phi; // spherical coordinates double vel[4]; if (flag_=="Helical") // Helical ejection { r = posIni_[1]+fourveldt_[1]*(tt-posIni_[0]); theta = posIni_[2]; phi = posIni_[3] + posIni_[1]*posIni_[1]*fourveldt_[3]/fourveldt_[1]*(pow(posIni_[1],-1.)-pow(r,-1.)); // result of integrale of vphi over time //cout << "t, r, theta, phi = " << tt << ", " << r << ", " << theta << ", " << phi << endl; } else // Equatorial motion (Keplerian orbit) { if (posIni_[2]!=M_PI/2.) cout << "Warning input theta value incompatible with 'Equatorial' motion. Theta fixed to pi/2." << endl; getVelocity(posIni_, vel); r = posIni_[1]; theta = M_PI/2.; phi = posIni_[3] + vel[3]/vel[0]*(tt-posIni_[0]); } // Convertion into cartesian coordinates x[0] = r*sin(theta)*cos(phi); y[0] = r*sin(theta)*sin(phi); z[0] = r*cos(theta); if (xprime!=NULL && yprime!=NULL && zprime!=NULL) { xprime[0] = r*sin(theta)*sin(phi)*vel[2]; yprime[0] = -r*sin(theta)*cos(phi)*vel[2]; zprime[0] = 0.; } } void Plasmoid::getVelocity(double const pos[4], double vel[4]){ if (!gg_) GYOTO_ERROR("In Plasmoid::getVelocity Metric not set"); if (flag_=="None") GYOTO_ERROR("In Plasmoid::getVelocity Motion not defined; motionType('Helical' or 'Equatorial'"); if (flag_=="Helical") // Helical case { vel[0] = 1.; vel[1] = fourveldt_[1]; vel[2] = 0.; vel[3] = fourveldt_[3]*pow(posIni_[1]/pos[1],2.); // conservation of the Newtonian angular momentum [Ball et al. 2020] gg_->normalizeFourVel(pos, vel); } else // Equatorial case { gg_->circularVelocity(pos, vel); } } int Plasmoid::Impact(Photon* ph, size_t index, Properties *data){ // Overload function of StandardAstrobj::Impact // This function update the radius of the plasmoid // which increase linearly during the injection phase // before calling the StandardAstrobj function double radiusMin = 0.2; double t0 = posIni_[0]*GYOTO_G_OVER_C_SQUARE*gg_->mass()/GYOTO_C/60.; // t0 in min size_t sz = ph -> parallelTransport()?16:8; state_t p1(sz); ph->getCoord(index, p1); double tcur = p1[0]*GYOTO_G_OVER_C_SQUARE*gg_->mass()/GYOTO_C/60.; //tcur in min if (varyRadius_== "Varying") { if (tcur<=t0) radius(radiusMin); else if (tcur<=t0+t_inj_) radius(radiusMin+(radiusMax_-radiusMin)*(tcur-t0)/t_inj_); else radius(radiusMax_); } else if (varyRadius_== "Constant") radius(radiusMax_); else{ GYOTO_ERROR("In Plasmoid::Impact operation on radius not recognized. Use Radius('Constant' or 'Varying')"); } return Standard::Impact(ph, index, data); } void Plasmoid::file(std::string const &f) { # ifdef GYOTO_USE_CFITSIO fitsRead(f); # else GYOTO_ERROR("This Gyoto has no FITS i/o"); # endif } #ifdef GYOTO_USE_CFITSIO vector Plasmoid::fitsRead(string filename) { // Remove first char if it is "!" if (filename.substr(0,1)=="!") filename.erase(0,1); GYOTO_MSG << "Plasmoid reading FITS file: " << filename << endl; filename_ = filename; char* pixfile = const_cast(filename_.c_str()); fitsfile* fptr = NULL; int status = 0; double tmpd; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() GYOTO_DEBUG << "Plasmoid::fitsRead: opening file" << endl; if (fits_open_file(&fptr, pixfile, 0, &status)) throwCfitsioError(status); ////// READ FITS KEYWORDS COMMON TO ALL TABLES /////// // These are: tmin, tmax, numin, numax string extname = "GYOTO FitsRW KEYS"; fits_movnam_hdu(fptr, ANY_HDU, const_cast(extname.c_str()), 0, &status); GYOTO_DEBUG << "FitsRW::fitsRead(): read tmin_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO FitsRW tmin", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else FitsRW::tmin(tmpd); // tmin_ found GYOTO_DEBUG << "FitsRW::fitsRead(): read tmax_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO FitsRW tmax", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else FitsRW::tmax(tmpd); // tmax_ found GYOTO_DEBUG << "FitsRW::fitsRead(): read numin_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO FitsRW numin", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else FitsRW::numin(tmpd); // numin_ found GYOTO_DEBUG << "FitsRW::fitsRead(): read numax_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO FitsRW numax", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else FitsRW::numax(tmpd); // rmax_ found GYOTO_DEBUG << "FitsRW::fitsRead(): read t_inj" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO FitsRW t_inj", &tmpd, NULL, &status); if (status){ throwCfitsioError(status) ; } else t_inj_=tmpd; // t_inj_ found // READ EXTENSIONS vector naxes_jnu = FitsRW::fitsReadHDU(fptr,"GYOTO FitsRW Jnu", jnu_array_); vector naxes_anu = FitsRW::fitsReadHDU(fptr,"GYOTO FitsRW Anu", anu_array_); if (naxes_jnu[0]!=naxes_anu[0] || naxes_jnu[1]!=naxes_anu[1]) throwError("In Plasmoid: jnu_array_ and anu_array_ dimensions " "do not agree"); // freq array vector naxes_freq = FitsRW::fitsReadHDU(fptr,"GYOTO FitsRW FREQUENCY", freq_array_); if (naxes_freq[0]!=naxes_jnu[0]) GYOTO_ERROR("In Plasmoid: nnu differ from jnu_array_ and freq_array"); /*cout << "jnu read= " << endl; for (int ii=0;ii<60;ii++) cerr << jnu_array_[ii] << " " ; cout << endl;*/ FitsRW::nnu(naxes_jnu[0]); FitsRW::nt(naxes_jnu[1]); return naxes_anu; } #endifGyoto-2.0.2/lib/PolishDoughnut.C000066400000000000000000000764441455254334400164720ustar00rootroot00000000000000/* Copyright (c) 2012-2016, 2018-2019 Frederic Vincent, Odele Straub, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoPolishDoughnut.h" #include "GyotoProperty.h" #include "GyotoPhoton.h" #include "GyotoFactoryMessenger.h" #include "GyotoDefs.h" #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; GYOTO_PROPERTY_START(PolishDoughnut) GYOTO_PROPERTY_DOUBLE(PolishDoughnut, Lambda, lambda) GYOTO_PROPERTY_VECTOR_DOUBLE(PolishDoughnut, AngMomRinner, angmomrinner) GYOTO_PROPERTY_DOUBLE_UNIT(PolishDoughnut, CentralEnthalpyPerUnitVolume, centralEnthalpyPerUnitVolume) GYOTO_PROPERTY_DOUBLE(PolishDoughnut, CentralTemperature, centralTemp) GYOTO_PROPERTY_DOUBLE(PolishDoughnut, Beta, beta, "one parametrization of the magnetic to particle " "energy density ratio; this is not the standard " "plasma beta") GYOTO_PROPERTY_DOUBLE(PolishDoughnut, MagnetizationParameter, magnetizationParameter, "another parametrization of the magnetic to particle " "energy density ratio; this is the standard " "magnetization parameter; this is not the standard " "plasma beta") GYOTO_PROPERTY_SIZE_T(PolishDoughnut, SpectralOversampling, spectralOversampling) GYOTO_PROPERTY_BOOL(PolishDoughnut, AngleAveraged, NoAngleAveraged, angleAveraged) GYOTO_PROPERTY_BOOL(PolishDoughnut, Bremsstrahlung, NoBremsstrahlung, bremsstrahlung) GYOTO_PROPERTY_VECTOR_DOUBLE(PolishDoughnut, NonThermalDeltaExpo, nonThermalDeltaExpo) // Since adafparams(vector) sets adaf_ to true, ADAF must come after // ADAFParameters GYOTO_PROPERTY_VECTOR_DOUBLE(PolishDoughnut, ADAFParameters, adafparams) GYOTO_PROPERTY_BOOL(PolishDoughnut, ADAF, NonADAF, adaf) GYOTO_PROPERTY_BOOL(PolishDoughnut, ChangeCusp, KeepCusp, changeCusp) GYOTO_PROPERTY_END(PolishDoughnut, Standard::properties) #ifdef GYOTO_USE_XERCES /* Either lambda_ or rintorus_ is defined. Filter out the other one when writing properties to XML. */ void PolishDoughnut::fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const { if ((p.name == "Lambda" && !rochelobefilling_) || (p.name == "AngMomRinner" && !defangmomrinner_)) return; // do nothing else Standard::fillProperty(fmp, p); } #endif #define CST_POLY_INDEX 1.5//polytropic index n (gamma=1+1/n=5/3) #define CST_POLY_INDEX_M1 0.666666666666666666666666666666666666666667 #define CST_HYDRO_FRAC 0.75//hydrogen fraction #define CST_Z_1 1.//atomic number #define CST_Z_2 2. #define CST_MU_ION 1.2307692307692308375521861 //(4./(1. + 3. * CST_HYDRO_FRAC)) #define CST_MU_ELEC 1.1428571428571427937015414 //(2./(1. + CST_HYDRO_FRAC)) #define w_tol 1e-9 #define DEFAULT_L0 10. #define DEFAULT_RIN 10. PolishDoughnut::PolishDoughnut() : Standard("PolishDoughnut"), l0_(DEFAULT_L0), lambda_(0.5), W_surface_(0.), W_centre_(0.), r_cusp_(0.), r_centre_(0.), r_torusouter_(0.), //DeltaWm1_(), central_enthalpy_cgs_(1.), central_temperature_(1e10), beta_(0.), magnetizationParameter_(-1.), spectral_oversampling_(10), angle_averaged_(0), bremsstrahlung_(false), deltaPL_(0.), adaf_(0), ADAFtemperature_(0.), ADAFdensity_(0.), changecusp_(0), rochelobefilling_(0), defangmomrinner_(0), rintorus_(DEFAULT_RIN), intersection(this) { #ifdef GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; #endif critical_value_=0.; safety_value_=.1; //rmax_=25.; spectrumBrems_ = new Spectrum::ThermalBremsstrahlung(); spectrumSynch_ = new Spectrum::ThermalSynchrotron(); spectrumPLSynch_ = new Spectrum::PowerLawSynchrotron(); } PolishDoughnut::PolishDoughnut(const PolishDoughnut& orig) : Standard(orig), spectrumBrems_(NULL), spectrumSynch_(NULL), spectrumPLSynch_(NULL), l0_(orig.l0_), lambda_(orig.lambda_), W_surface_(orig.W_surface_), W_centre_(orig.W_centre_), r_cusp_(orig.r_cusp_), r_centre_(orig.r_centre_), r_torusouter_(orig.r_torusouter_), DeltaWm1_(orig.DeltaWm1_), central_enthalpy_cgs_(orig.central_enthalpy_cgs_), central_temperature_(orig.central_temperature_), beta_(orig.beta_), magnetizationParameter_(orig.magnetizationParameter_), aa_(orig.aa_), aa2_(orig.aa2_), spectral_oversampling_(orig.spectral_oversampling_), angle_averaged_(orig.angle_averaged_), bremsstrahlung_(orig.bremsstrahlung_), deltaPL_(orig.deltaPL_), adaf_(orig.adaf_), ADAFtemperature_(orig.ADAFtemperature_), ADAFdensity_(orig.ADAFdensity_), changecusp_(orig.changecusp_), rochelobefilling_(orig.rochelobefilling_), defangmomrinner_(orig.defangmomrinner_), rintorus_(orig.rintorus_), intersection(orig.intersection) { intersection.papa=this; if (gg_) gg_ -> hook(this); if (orig.spectrumBrems_()) spectrumBrems_=orig.spectrumBrems_->clone(); if (orig.spectrumSynch_()) spectrumSynch_=orig.spectrumSynch_->clone(); if (orig.spectrumPLSynch_()) spectrumPLSynch_=orig.spectrumPLSynch_->clone(); } PolishDoughnut* PolishDoughnut::clone() const {return new PolishDoughnut(*this);} bool PolishDoughnut::isThreadSafe() const { return Standard::isThreadSafe() && (!spectrumBrems_ || spectrumBrems_->isThreadSafe()) && (!spectrumSynch_ || spectrumSynch_->isThreadSafe()) && (!spectrumPLSynch_ || spectrumPLSynch_->isThreadSafe()); } double PolishDoughnut::getL0() const { return l0_; } //void PolishDoughnut::setL0(double l0) { l0_ = l0; } double PolishDoughnut::getWsurface() const { return W_surface_; } double PolishDoughnut::getWcentre() const { return W_centre_; } double PolishDoughnut::getRcusp() const { return r_cusp_; } double PolishDoughnut::getRcentre() const { return r_centre_; } double PolishDoughnut::lambda() const { if (!rochelobefilling_) { if (defangmomrinner_) GYOTO_ERROR("Lambda is not set because AngMomRinner is."); else GYOTO_ERROR("Lambda is not set yet."); } return lambda_; } void PolishDoughnut::lambda(double lam) { rochelobefilling_=1; // if here, the torus fills its Roche lobe if (defangmomrinner_){ GYOTO_WARNING << "Setting Lambda overrides AngMomRinner previously set\n"; defangmomrinner_=0; } if (!gg_) GYOTO_ERROR("Metric but be set before lambda in PolishDoughnut"); //Computing marginally stable and marginally bound radii: lambda_=lam; double rms = gg_->getRms(); double rmb = gg_->getRmb(); // marginally stable & marginally bound keplerian angular momentum // (Polish doughnut l is rescaled) double l_ms = gg_->getSpecificAngularMomentum(rms); double l_mb = gg_->getSpecificAngularMomentum(rmb); l0_ = lambda_*(l_mb-l_ms)+l_ms ;//torus angular momentum //Computing the potential at the photon position: double r1_min = rmb ; double r1_max = rms ; double r2_min = rms ; double r2_max = 1000. ; r_cusp_ = intersection.ridders(r1_min, r1_max) ; rintorus_ = r_cusp_; r_centre_ = intersection.ridders(r2_min, r2_max) ; double poss[4]={0.,r_cusp_,M_PI/2.,0.}; double posc[4]={0.,r_centre_,M_PI/2.,0.}; W_surface_ = gg_->getPotential(poss,l0_); W_centre_ = gg_->getPotential(posc,l0_); DeltaWm1_ = 1./(W_centre_ - W_surface_); if (changecusp_){ /* CUSP PROBLEM For both large spin and large lambda, the potential line w=0 can leak out of the tube r=rcusp in the funnel zone (i.e. in the zone which is not taken into account for a doughnut, and which should be considered as a target for photons). Thus, the surface of the torus can be badly defined for big a and lambda. Using mma, I checked that this problem only arises for a>0.8 and lambda>0.3. In this range, rcusp is multiplied by 1.25 to encompass the w=0 line in the funnel, and to be sure not to ray-trace any part of he funnel. This is a crude solution: it allows to get rid of the funnel, but it will also remove a small part of the proper torus for a>~0.8 and lambda>~0.3. However this "forgotten part of the torus" being small, I do not think this should be a serious problem. Moreover, this removal of part of the torus only affects very slender tori (typically few r_g wide). But it would be nice to solve this problem in a more elegant way... */ r_cusp_*=1.25; } // Find torus outer radius double r3_min=r_centre_, r3_max=5000.; if (lambda_>0.99){ GYOTO_ERROR("In PolishDoughnut: please use a value of" " lambda < 0.99, or else the outer radius" " finding algorithm may crash"); } outerradius_t outerradius; outerradius.papa = this; r_torusouter_ = outerradius.ridders(r3_min,r3_max); GYOTO_IF_DEBUG; GYOTO_DEBUG_EXPR(r_cusp_); GYOTO_DEBUG_EXPR(r_torusouter_); GYOTO_ENDIF_DEBUG; if (r_torusouter_!=r_torusouter_ || r_torusouter_==r_torusouter_+1) GYOTO_ERROR("In PolishDoughnut::lambda(): bad r_torusouter_"); GYOTO_IF_DEBUG GYOTO_DEBUG_EXPR(lambda_); GYOTO_DEBUG_EXPR(l0_); GYOTO_DEBUG_EXPR(r_cusp_); GYOTO_DEBUG_EXPR(r_centre_); GYOTO_DEBUG_EXPR(W_surface_); GYOTO_DEBUG_EXPR(W_centre_); GYOTO_ENDIF_DEBUG } void PolishDoughnut::angmomrinner(std::vector const &v) { defangmomrinner_=1; if (rochelobefilling_){ GYOTO_WARNING << "Setting AngMomRinner overrides Lambda previously set\n"; rochelobefilling_=0; } if (v.size() != 2) GYOTO_ERROR("Only 2 arguments to define l0 and rin"); l0_ = v[0]; rintorus_ = v[1]; r_cusp_=rintorus_; // NB: the cusp is most probably not at this radius; however we need to define it to avoid having cases where operator() returns "inside torus" when the photon actually is in the funnel at rgetPotential(posin,l0_); double rmin=rintorus_, rmax = 1000.; //cout << "rmin max= " << rmin << " " << rmax << endl; r_centre_ = intersection.ridders(rmin, rmax) ; //cout << "rmin center max= " << rmin << " " << r_centre_ << " " << rmax << endl; if (r_centre_ < rmin or r_centre_ > rmax) GYOTO_ERROR("In PolishDoughnut::angmomrinner: bad r_centre_"); double posc[4]={0.,r_centre_,M_PI/2.,0.}; W_centre_ = gg_->getPotential(posc,l0_); DeltaWm1_ = 1./(W_centre_ - W_surface_); //cout << "Ws Wc rc= " << W_surface_ << " " << W_centre_ << " " << r_centre_ << endl; outerradius_t outerradius; outerradius.papa = this; rmin=r_centre_; r_torusouter_ = outerradius.ridders(rmin,rmax); //cout << "Torus rinner, rcen, router= " << rintorus_ << " " << r_centre_ << " " << r_torusouter_ << endl; GYOTO_IF_DEBUG; GYOTO_DEBUG_EXPR(l0_); GYOTO_DEBUG_EXPR(r_centre_); GYOTO_DEBUG_EXPR(rintorus_); GYOTO_DEBUG_EXPR(W_surface_); GYOTO_DEBUG_EXPR(W_centre_); GYOTO_ENDIF_DEBUG } std::vector PolishDoughnut::angmomrinner() const { if (!defangmomrinner_) { if (rochelobefilling_) GYOTO_ERROR("AngMomRinner is not set because Lambda has been set."); else GYOTO_ERROR("AngMomRinner is not set yet."); } std::vector v (2, 0.); v[0]=l0_; v[1]=rintorus_; return v; } double PolishDoughnut::centralEnthalpyPerUnitVolume() const { // Converts internal cgs central enthalpy to SI double dens=central_enthalpy_cgs_; # ifdef HAVE_UDUNITS dens = Units::Converter("erg/cm3", "J/m3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif return dens;} double PolishDoughnut::centralEnthalpyPerUnitVolume(string const &unit) const { double dens = centralEnthalpyPerUnitVolume(); if (unit != "") { # ifdef HAVE_UDUNITS dens = Units::Converter("J/m3", unit)(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif } return dens; } void PolishDoughnut::centralEnthalpyPerUnitVolume(double dens) { # ifdef HAVE_UDUNITS dens = Units::Converter("J/m3", "erg/cm3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif central_enthalpy_cgs_=dens; } void PolishDoughnut::centralEnthalpyPerUnitVolume(double dens, string const &unit) { if (unit != "") { # ifdef HAVE_UDUNITS dens = Units::Converter(unit, "J/m3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif } centralEnthalpyPerUnitVolume(dens); } double PolishDoughnut::centralTemp() const {return central_temperature_;} void PolishDoughnut::centralTemp(double val) {central_temperature_=val;} double PolishDoughnut::beta() const { return beta_; } void PolishDoughnut::beta(double b) { beta_ = b; } void PolishDoughnut::magnetizationParameter(double rr) { magnetizationParameter_=rr;} double PolishDoughnut::magnetizationParameter()const{ return magnetizationParameter_;} size_t PolishDoughnut::spectralOversampling() const { return spectral_oversampling_; } void PolishDoughnut::spectralOversampling(size_t val) { spectral_oversampling_ = val; } bool PolishDoughnut::changeCusp() const {return changecusp_;} void PolishDoughnut::changeCusp(bool t) {changecusp_=t;} bool PolishDoughnut::angleAveraged() const {return angle_averaged_;} void PolishDoughnut::angleAveraged(bool ang) { angle_averaged_=ang; spectrumSynch_->angle_averaged(ang); spectrumPLSynch_->angle_averaged(ang); } bool PolishDoughnut::bremsstrahlung() const {return bremsstrahlung_;} void PolishDoughnut::bremsstrahlung(bool brems) {bremsstrahlung_=brems;} void PolishDoughnut::nonThermalDeltaExpo(std::vector const &v) { if (v.size() != 2) GYOTO_ERROR("nonThermalDeltaExpo must have exactly 2 elements"); deltaPL_= v[0]; double expoPL = v[1]; spectrumPLSynch_->PLindex(expoPL); } std::vector PolishDoughnut::nonThermalDeltaExpo() const { std::vector v (2, deltaPL_); v[1]=spectrumPLSynch_->PLindex(); return v; } void PolishDoughnut::adafparams(std::vector const &v) { if (v.size() != 2) GYOTO_ERROR("ADAF must have exactly 2 elements"); adaf(true); ADAFtemperature_ = v[0]; ADAFdensity_ = v[1]; } std::vector PolishDoughnut::adafparams() const { std::vector v (2, ADAFtemperature_); v[1]=ADAFdensity_; return v; } void PolishDoughnut::adaf(bool t) {adaf_=t;} bool PolishDoughnut::adaf() const {return adaf_;} void PolishDoughnut::setParameter(Property const &p, string const & name, string const & content, string const & unit) { // Override default behaviour to support obsolete format where // ADAFParameters was in ADAF if (name=="ADAF") { std::vector v=FactoryMessenger::parseArray(content); if (v.size()) adafparams(v); return ; } Standard::setParameter(p, name, content, unit); } PolishDoughnut::~PolishDoughnut() { GYOTO_DEBUG << "PolishDoughnut Destruction" << endl; if (gg_) gg_ -> unhook(this); } void PolishDoughnut::metric(Gyoto::SmartPointer met) { if (gg_) gg_ -> unhook(this); Standard::metric(met); if (gg_) gg_ -> hook(this); GYOTO_DEBUG << "Metric set, calling lambda\n"; // Initialize other members only if lambda(val) or // angmomrinner(vect) has been called already. Mutually exclusive. if (defangmomrinner_) angmomrinner(angmomrinner()); else if (rochelobefilling_) lambda(lambda()); GYOTO_DEBUG << "done\n"; } void PolishDoughnut::tell(Hook::Teller * met) { if (met == gg_) { // Initialize other members only if lambda(val) or // angmomrinner(vect) has been called already. Mutually exclusive. if (defangmomrinner_) angmomrinner(angmomrinner()); else if (rochelobefilling_) lambda(lambda()); } else GYOTO_ERROR("BUG: PolishDoughnut::tell(Hook::Teller * met) called with" "wrong metric"); } int PolishDoughnut::Impact(Photon *ph, size_t index, Astrobj::Properties *data) { if (beta_==1.) GYOTO_ERROR("Please set beta to != 1."); if (adaf_){ // This is the Impact function for the Yuan+, Broderick+ // ADAF model, this is actually no longer a Polish doughnut // -> only for comparison //cout << "ICI1" << endl; state_t coord; ph->getCoord(index, coord); double rr = coord[1], th = coord[2]; // The outer boundary of the ADAF is simply RMax_ in xml // Setting an inner boundary at the ISCO (in projection) if (rr*sin(th) < gg_->getRms()) return 0; // This allows to reject the points close to the axis // such that the cylindrical radius is smaller than Sch ISCO ; // there, the Keplerian velocity is not defined state_t p1, p2; ph->getCoord(index, p1); ph->getCoord(index+1, p2); double t1 = p1[0], t2=p2[0]; state_t cph; ph -> getCoord(t2, cph); double delta=giveDelta(&cph[0]); double coh[8]; while (t2>t1){ ph -> getCoord(t2, cph); for (int ii=0;ii<4;ii++) coh[ii] = cph[ii]; getVelocity(coh, coh+4); processHitQuantities(ph, cph, coh, delta, data); t2 -= delta; } return 1; } return Standard::Impact(ph, index, data); } double PolishDoughnut::operator()(double const coord[4]) { // w1 = ((potential(r1, theta1, aa) - W_surface_) // /(W_centre_ - W_surface_)); // // w1 < 0. outside polishdoughnut, anything inside funnel, 0 inside PolishDoughnut. double pos[4]; for (int ii=0;ii<4;ii++) pos[ii]=coord[ii]; double tmp = W_surface_ - gg_->getPotential(pos,l0_); double rproj = coord[1] * sin(coord[2]); if (rprojcircularVelocity(pos,vel,1); } double gtt=gg_->gmunu(pos,0,0); double gtph=gg_->gmunu(pos,0,3); double gphph=gg_->gmunu(pos,3,3); double Omega=-(l0_*gtt+gtph)/(l0_*gtph+gphph); double ut2=-1./(gtt+2.*gtph*Omega+gphph*Omega*Omega); if (ut2 < 0.) { stringstream ss; ss << "PolishDoughnut::getVelocity(pos=["; for (int i=0; i<3; ++i) ss << pos[i] << ", "; ss << pos[3] << "]): ut^2 is negative."; GYOTO_ERROR(ss.str()); } vel[0] = sqrt(ut2); vel[1] = vel[2] = 0.; vel[3] = Omega*sqrt(ut2); } void PolishDoughnut::integrateEmission (double * I, double const * boundaries, size_t const * chaninds, size_t nbnu, double dsem, state_t const &cph, double const *co) const { // The original channels may or may not be contiguous. We split // each original channels into spectral_oversampling_ subchannels. // All we know is that each chunk of spectral_oversampling_ // subchannels are contiguous. Don't try to recover contiguousness // in the original channels, it's too hard for now. double som1=1./double(spectral_oversampling_); size_t onbnu=nbnu*spectral_oversampling_; // number of subchannels size_t onbb = onbnu+nbnu; // number of subchannel boundaries : most // are used twice as subchannels are // contiguous in each channel. double * Inu = new double[onbb]; double * bo = new double[onbb]; size_t * ii = new size_t[2*onbnu]; // two indices for each subchannel double dnu; size_t k=0; for (size_t i=0; imass()*1e3; // Gyoto speaks in SI --> here cgs double T_electron=0., number_density=0., bnorm = 0., theta_mag=0.; if (adaf_){ if (!angle_averaged_){ GYOTO_ERROR("In PolishDoughnut: ADAF should be called" " only with angle averaging"); } double zz = rr * fabs(cos(theta)), rcyl = rr * sin(theta); // fabs in zz: it is a distance, not an altitude if (zz>10.*rcyl) { // then exp factor will be // vanishingly small, can lead to bad behavior for (size_t ii=0; iigetPotential(pos, l0_) - W_surface_)*DeltaWm1_; if (ww<=0.){//Will generate nan in computations w must be strictly positive if (fabs(ww)gmunu(&coord_ph[0],0,0), g_pp=gg_->gmunu(&coord_ph[0],3,3), g_tp=gg_->gmunu(&coord_ph[0],0,3), LL=g_tp*g_tp-g_tt*g_pp; double posc[4]={0.,r_centre_,M_PI/2.,0.}; double g_ttc=gg_->gmunu(posc,0,0), g_ppc=gg_->gmunu(posc,3,3), g_tpc=gg_->gmunu(posc,0,3), LLc=g_tpc*g_tpc-g_ttc*g_ppc; double kappa = 0., kappam=0.; if (!angle_averaged_){ kappa= pow(enthalpy_c,-CST_POLY_INDEX_M1)*(W_centre_-W_surface_) /((CST_POLY_INDEX+1)*(1+1./beta_)); kappam = pow(LLc,-CST_POLY_INDEX_M1)/beta_*kappa; }else{ kappa = pow(enthalpy_c,-CST_POLY_INDEX_M1)*(W_centre_-W_surface_) /(CST_POLY_INDEX+1); } double enthalpy = enthalpy_c* pow( ww* (kappa+kappam*pow(LLc,CST_POLY_INDEX_M1)) /(kappa+kappam*pow(LL,CST_POLY_INDEX_M1)) ,CST_POLY_INDEX ); number_density = (enthalpy-kappa*pow(enthalpy,1.+CST_POLY_INDEX_M1)) /(GYOTO_C2_CGS*CST_MU_ELEC*GYOTO_ATOMIC_MASS_UNIT_CGS); //cout << "komis ne= " << number_density << endl; double number_density_central = (enthalpy_c-kappa*pow(enthalpy_c,1.+CST_POLY_INDEX_M1)) /(GYOTO_C2_CGS*CST_MU_ELEC*GYOTO_ATOMIC_MASS_UNIT_CGS); //cout << "central nb density torus= " << number_density_central << endl; double magnetic_pressure = 0., fact_b=1.; // pm = b^2/fact_b if (!angle_averaged_){ magnetic_pressure = kappam*pow(LL,CST_POLY_INDEX_M1) *pow(enthalpy,1.+CST_POLY_INDEX_M1); fact_b = 8.*M_PI; }else{ double gas_pressure = kappa*pow(enthalpy,1.+CST_POLY_INDEX_M1); magnetic_pressure = gas_pressure/beta_; fact_b = 24.*M_PI; } bnorm = sqrt(fact_b*magnetic_pressure); // Redefining bnorm if magnetizationParameter_ is defined; // this is for compatibility with Jet.C if (magnetizationParameter_!=-1.){ bnorm = sqrt(4.*M_PI*magnetizationParameter_ *GYOTO_PROTON_MASS_CGS * GYOTO_C_CGS * GYOTO_C_CGS *number_density); } //cout << "ne_c, ne, Bc, B= " << number_density_central << " " << number_density << " " << magnetizationParameter_ << " " << sqrt(4.*M_PI*magnetizationParameter_*GYOTO_PROTON_MASS_CGS * GYOTO_C_CGS * GYOTO_C_CGS * number_density_central) << " " << bnorm << endl; //GYOTO_ERROR("test pol"); double bphi = bnorm/sqrt(g_pp+2*l0_*g_tp+l0_*l0_*g_tt); //NB: in Komissarov it is 2 p_mag in the numerator, but he uses // p_mag = B^2/2, and here we use the cgs p_mag = B^2/24pi double b4vec[4]={bphi*l0_,0,0,bphi}; // B 4-vector in BL frame // this vector is orthogonal to the fluid 4-vel, so it already // leaves in the comoving rest space, no need to project double vel[4]; // 4-velocity of emitter const_cast(this)->getVelocity(coord_obj, vel); double photon_emframe[4]; // photon tgt vector projected in comoving frame for (int ii=0;ii<4;ii++){ photon_emframe[ii]=coord_ph[ii+4] +vel[ii]*gg_->ScalarProd(&coord_ph[0],&coord_ph[4],vel); } double lnorm = gg_->ScalarProd(&coord_ph[0],photon_emframe,photon_emframe); if (lnorm<=0.) GYOTO_ERROR("In PolishDoughnut::radiativeq" " photon_emframe should be spacelike"); lnorm=sqrt(lnorm); double lscalb = gg_->ScalarProd(&coord_ph[0],photon_emframe,b4vec); theta_mag = acos(lscalb/(lnorm*bnorm)); double sth = sin(theta_mag);//, cth = cos(theta_mag); if (sth==0.) GYOTO_ERROR("In PolishDoughnut::radiativeq: " "theta_mag is zero leads to undefined emission"); // doughnut's central temperature double T0 = central_temperature_; double kappabis = T0*pow(number_density_central,-CST_POLY_INDEX_M1); T_electron = kappabis*pow(number_density,CST_POLY_INDEX_M1); //cout << "Te= " << T_electron << endl; } // End of the switch between doughnut and adaf double Theta_elec = GYOTO_BOLTZMANN_CGS*T_electron /(GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS); double coef_ther=0.; // coef_ther: see e.g. Ozel+2000, eq. 6 // here multiplied by Theta_elec coz there would be later // a multiplication by Theta_elec anyway double besselK3 = bessk(3, 1./Theta_elec), besselK2 = bessk(2, 1./Theta_elec), besselK1 = bessk1(1./Theta_elec); if (Theta_elec > 0.01){ coef_ther = (3.*besselK3+besselK1)/(4.*besselK2)-1.; }else if (Theta_elec > 1e-5){ // For small Theta_elec, Bessel functions become // very small, so I use a linear fit, correct to 1% // at theta_e=0.01, and even better for smaller values coef_ther=1.5*Theta_elec; }else{ // too low Theta_e leads to Bnu being nan... for (size_t ii=0; iiPLindex(); //cout << "expopl delta avg in PD= "<< expoPL << " " << deltaPL_ << " " << angle_averaged_ << endl; double number_density_PL = (expoPL-2.)/(expoPL-1.)*deltaPL_*coef_ther*number_density; double nuc = GYOTO_ELEMENTARY_CHARGE_CGS*bnorm /(2.*M_PI*GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS); if (bnorm < 1e-5){ // too low magnetic field leads to nan in emission // synchrotron is anyway vanishingly small for (size_t ii=0; iitemperature(T_electron); spectrumSynch_->numberdensityCGS(number_density); spectrumSynch_->angle_B_pem(theta_mag); spectrumSynch_->cyclotron_freq(nuc); spectrumSynch_->besselK2(besselK2); spectrumSynch_->radiativeQ(jnu_synch_ther,anu_synch_ther, nu_ems,nbnu); // NONTHERMAL SYNCHRO if (deltaPL_!=0.){ for (size_t ii=0; iinumberdensityCGS(number_density_PL); spectrumPLSynch_->angle_B_pem(theta_mag); spectrumPLSynch_->cyclotron_freq(nuc); spectrumPLSynch_->radiativeQ(jnu_synch_PL,anu_synch_PL, nu_ems,nbnu); } // THERMAL BREMSSTRAHLUNG if (bremsstrahlung_){ for (size_t ii=0; iitemperature(T_electron); spectrumBrems_->numberdensityCGS(number_density); spectrumBrems_->radiativeQ(jnu_brems,anu_brems, nu_ems,nbnu); } // RETURNING TOTAL INTENSITY AND TRANSMISSION for (size_t ii=0; ii0.){ jnu_tot += jnu_synch_PL[ii]; anu_tot += anu_synch_PL[ii]; } if (bremsstrahlung_){ jnu_tot += jnu_brems[ii]; anu_tot += anu_brems[ii]; } // expm1 is a precise implementation of exp(x)-1 double em1=std::expm1(-anu_tot * dsem * gg_->unitLength()); Taunu[ii] = em1+1.; Inu[ii] = anu_tot == 0. ? jnu_tot * dsem * gg_->unitLength() : -jnu_tot / anu_tot * em1; if (Inu[ii]<0.) GYOTO_ERROR("In PolishDoughnut::radiativeQ: Inu<0"); if (Inu[ii]!=Inu[ii] or Taunu[ii]!=Taunu[ii]) GYOTO_ERROR("In PolishDoughnut::radiativeQ: Inu or Taunu is nan"); if (Inu[ii]==Inu[ii]+1. or Taunu[ii]==Taunu[ii]+1.) GYOTO_ERROR("In PolishDoughnut::radiativeQ: Inu or Taunu is infinite"); } } // Intersection of the constant angular momentum l0 with the Keplerian one //double PolishDoughnut::intersection(double rr) const PolishDoughnut::intersection_t::intersection_t(PolishDoughnut*parent) : papa(parent) { } double PolishDoughnut::intersection_t::operator()(double rr) const { double y = papa->gg_->getSpecificAngularMomentum(rr) - papa->l0_; return y ; // y = 0 gives 2 intersections, //the cusp and the central radius of the torus } double PolishDoughnut::outerradius_t::operator()(double rr) const { double theta = M_PI/2.; double pos[4]={0.,rr,theta,0.}; double ww = (papa->gg_->getPotential(pos,papa->l0_) - papa->W_surface_)*papa->DeltaWm1_; return ww; } Gyoto-2.0.2/lib/PowerLawSpectrum.C000066400000000000000000000057101455254334400167650ustar00rootroot00000000000000/* Copyright 2011-2012, 2014, 2016, 2019-2020 Thibaut Paumard & Frédéric Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoPowerLawSpectrum.h" #include "GyotoFactoryMessenger.h" #include "GyotoUtils.h" #include #ifdef GYOTO_USE_XERCES #include "GyotoFactory.h" #endif using namespace Gyoto; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(Spectrum::PowerLaw, "'Constant * nu[Hz]^Exponent' between CutOff[0] and CutOff[1]") GYOTO_PROPERTY_DOUBLE(Spectrum::PowerLaw, Exponent, exponent, "Exponent of power law") GYOTO_PROPERTY_DOUBLE(Spectrum::PowerLaw, Constant, constant, "Constant in front of power law") GYOTO_PROPERTY_VECTOR_DOUBLE_UNIT(Spectrum::PowerLaw, CutOff, cutoff, "Cut-off frequencies in any unit convertible to Hz, m or eV " "(default: '0 DBL_MAX'; default unit: Hz).") GYOTO_PROPERTY_END(Spectrum::PowerLaw, Generic::properties) /// Spectrum::PowerLaw::PowerLaw() : Spectrum::Generic("PowerLaw"), constant_(1.), exponent_(0.), minfreq_(0.), maxfreq_(DBL_MAX){} Spectrum::PowerLaw::PowerLaw(double p, double c) : Spectrum::Generic("PowerLaw"), constant_(c), exponent_(p), minfreq_(0.), maxfreq_(DBL_MAX){} Spectrum::PowerLaw * Spectrum::PowerLaw::clone() const { return new Spectrum::PowerLaw(*this); } double Spectrum::PowerLaw::constant() const { return constant_; } void Spectrum::PowerLaw::constant(double c) { constant_ = c; } double Spectrum::PowerLaw::exponent() const { return exponent_; } void Spectrum::PowerLaw::exponent(double c) { exponent_ = c; } void Spectrum::PowerLaw::cutoff(std::vector const &v, std::string const &u) { cutoff({Units::ToHerz(v[0], u), Units::ToHerz(v[1], u)}); } void Spectrum::PowerLaw::cutoff(std::vector const &v) { if (v.size() != 2) GYOTO_ERROR("CutOff needs exactly two cut-off frequencies"); minfreq_ = v[0]; maxfreq_ = v[1]; if (minfreq_ > maxfreq_) { double tmp = minfreq_; minfreq_ = maxfreq_; maxfreq_ = tmp; } } std::vector Spectrum::PowerLaw::cutoff(std::string const &u) const { return {Units::FromHerz(minfreq_, u), Units::FromHerz(maxfreq_, u)}; } std::vector Spectrum::PowerLaw::cutoff() const { return {minfreq_, maxfreq_}; } double Spectrum::PowerLaw::operator()(double nu) const { if (numaxfreq_) return 0.; // cutoffs return constant_ * pow(nu, exponent_); } Gyoto-2.0.2/lib/PowerLawSynchrotronSpectrum.C000066400000000000000000000421351455254334400212400ustar00rootroot00000000000000/* Copyright 2018-2020 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoPowerLawSynchrotronSpectrum.h" #include "GyotoDefs.h" #include #ifdef GYOTO_USE_XERCES #include "GyotoFactory.h" #include "GyotoFactoryMessenger.h" #endif using namespace Gyoto; #include "GyotoProperty.h" GYOTO_PROPERTY_START(Spectrum::PowerLawSynchrotron, "Powerlaw synchrotron emission") GYOTO_PROPERTY_END(Spectrum::PowerLawSynchrotron, Generic::properties) #define nstep_angint 10 // for angle-averaging integration #define usePMT83 0 // 1 to use PMT83 jnu and alphanu, 0 to use Pandya+16 Spectrum::PowerLawSynchrotron::PowerLawSynchrotron() : Spectrum::Generic("PowerLawSynchrotron"), numberdensityCGS_(0.), angle_B_pem_(0.), cyclotron_freq_(1.), PLindex_(0.), angle_averaged_(0), gamma_min_(1.), gamma_max_(DBL_MAX) {} Spectrum::PowerLawSynchrotron::PowerLawSynchrotron(const PowerLawSynchrotron &o) : Spectrum::Generic(o), spectrumBB_(NULL), numberdensityCGS_(o.numberdensityCGS_), angle_B_pem_(o.angle_B_pem_), cyclotron_freq_(o.cyclotron_freq_), PLindex_(o.PLindex_), angle_averaged_(o.angle_averaged_), gamma_min_(o.gamma_min_), gamma_max_(o.gamma_max_) { if (o.spectrumBB_()) spectrumBB_=o.spectrumBB_->clone(); } double Spectrum::PowerLawSynchrotron::numberdensityCGS() const { return numberdensityCGS_; } void Spectrum::PowerLawSynchrotron::numberdensityCGS(double rho) { numberdensityCGS_ = rho; } double Spectrum::PowerLawSynchrotron::angle_B_pem() const { return angle_B_pem_; } void Spectrum::PowerLawSynchrotron::angle_B_pem(double angle) { angle_B_pem_ = angle; } double Spectrum::PowerLawSynchrotron::cyclotron_freq() const { return cyclotron_freq_; } void Spectrum::PowerLawSynchrotron::cyclotron_freq(double freq) { cyclotron_freq_ = freq; } double Spectrum::PowerLawSynchrotron::PLindex() const { return PLindex_; } void Spectrum::PowerLawSynchrotron::PLindex(double ind) { PLindex_ = ind; } bool Spectrum::PowerLawSynchrotron::angle_averaged() const { return angle_averaged_; } void Spectrum::PowerLawSynchrotron::angle_averaged(bool ang) { angle_averaged_ = ang; } double Spectrum::PowerLawSynchrotron::gamma_min() const{ return gamma_min_; } void Spectrum::PowerLawSynchrotron::gamma_min(double gmin){ gamma_min_=gmin; } double Spectrum::PowerLawSynchrotron::gamma_max() const{ return gamma_max_; } void Spectrum::PowerLawSynchrotron::gamma_max(double gmax){ gamma_max_=gmax; } Spectrum::PowerLawSynchrotron * Spectrum::PowerLawSynchrotron::clone() const { return new Spectrum::PowerLawSynchrotron(*this); } double Spectrum::PowerLawSynchrotron::operator()(double nu) const { GYOTO_ERROR("In PLSynch: " "Synchrotron emission not defined for optically thick case"); return 0.; } double Spectrum::PowerLawSynchrotron::operator()(double nu, double , double ds) const{ double dsCGS = ds*100.; // ds should be given in SI // Returns intensity increment in SI: return jnuCGS(nu)*dsCGS*exp(-alphanuCGS(nu)*dsCGS)*GYOTO_INU_CGS_TO_SI; } double Spectrum::PowerLawSynchrotron::jnuCGS(double nu) const{ double emis_synch = 0.; if (usePMT83==1){ /* From Petrosian & McTiernan 1983, Phys. Fluids 26 (10), eq. 32 Putting g(mu)=1 and using (Y+ + Y_)=2 to get jnu and alphanu. NB: putting g(mu)=1 or 1/2 is not important, it boils down to redefining the % amount delta of PL energy wrt THER energy */ //std::cout << "PL synch stuff= " << cyclotron_freq_ << " " << angle_B_pem_ << " " << PLindex_ << " " << numberdensityCGS_ << " " << angle_averaged_ << std::endl; emis_synch = sqrt(3.)*M_PI*GYOTO_ELEMENTARY_CHARGE_CGS*GYOTO_ELEMENTARY_CHARGE_CGS *cyclotron_freq_*sin(angle_B_pem_)/(2.*GYOTO_C_CGS) *numberdensityCGS_*(PLindex_-1.) *pow(3.*cyclotron_freq_*(PLindex_+1.) *sin(angle_B_pem_)/(4.*nu),0.5*(PLindex_-1.)) *exp(-0.5*(PLindex_+1.)); }else{ // Pandya, Zhang, Chandra, Gammie, 2016 if (gamma_max_1.e2) GYOTO_ERROR("In PLSynchro: gamma_min too high to compute rho_Q with these formula"); double sinth = sin(angle_B_pem_); double rho_per=numberdensityCGS_*GYOTO_ELEMENTARY_CHARGE_CGS*GYOTO_ELEMENTARY_CHARGE_CGS/ \ (GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS*cyclotron_freq_*sinth)*(PLindex_-1.)* \ pow(pow(gamma_min_,1.-PLindex_)-pow(gamma_max_,1.-PLindex_),-1.); rho_Q=rho_per*pow(cyclotron_freq_*sinth/nu,3.)*pow(gamma_min_,2.-PLindex_)* \ (1.-pow(2.*cyclotron_freq_*pow(gamma_min_,2.)*sinth/3./nu,PLindex_/2.-1.)); return rho_Q; } double Spectrum::PowerLawSynchrotron::rUnuCGS(double nu) const{ // Marszewski, Prather, Joshi, Pandya, Gammie 2021 return 0.; } double Spectrum::PowerLawSynchrotron::rVnuCGS(double nu) const{ double rho_V=0; // Marszewski, Prather, Joshi, Pandya, Gammie 2021 if (gamma_max_1.e2) GYOTO_ERROR("In PLSynchro: gamma_min too high to compute rho_Q with these formula"); double sinth = sin(angle_B_pem_); double rho_per=numberdensityCGS_*GYOTO_ELEMENTARY_CHARGE_CGS*GYOTO_ELEMENTARY_CHARGE_CGS/ \ (GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS*cyclotron_freq_*sinth)*(PLindex_-1.)* \ pow(pow(gamma_min_,1.-PLindex_)-pow(gamma_max_,1.-PLindex_),-1.); rho_V=2.*rho_per*(PLindex_+2.)/(PLindex_+1.)*pow(cyclotron_freq_*sinth/nu,2.)*\ pow(gamma_min_,-(PLindex_+1.))*log(gamma_min_)*(1./tan(angle_B_pem_)); return rho_V; } void Spectrum::PowerLawSynchrotron::radiativeQ(double jnu[], // output double alphanu[], // output double const nu_ems[], size_t nbnu ) { for (size_t ii=0; ii< nbnu; ++ii){ double nu = nu_ems[ii]; double jnucur=0., anucur=0.; if (!angle_averaged_){ jnucur = jnuCGS(nu); anucur = alphanuCGS(nu); }else{ double th0=0.01, thNm1=M_PI-0.01; // avoiding sinth=0. double hh=(thNm1-th0)/double(nstep_angint); double theta=th0; angle_B_pem(theta); double jnusinprev=jnuCGS(nu)*sin(theta), jnusinnext=jnusinprev; double anusinprev=alphanuCGS(nu)*sin(theta), anusinnext=anusinprev; for (int jj=1;jj<=nstep_angint;jj++){ theta=th0+double(jj)*hh; angle_B_pem(theta); jnusinnext=jnuCGS(nu)*sin(theta); anusinnext=alphanuCGS(nu)*sin(theta); jnucur+=0.5*0.5*hh*(jnusinprev+jnusinnext); anucur+=0.5*0.5*hh*(anusinprev+anusinnext); jnusinprev=jnusinnext; anusinprev=anusinnext; //NB: averaged jnu is: \int jnu dOmega = 1/2 * \int jnu*sinth dth } } // OUTPUTS jnu[ii]= jnucur * GYOTO_JNU_CGS_TO_SI; alphanu[ii]= anucur * GYOTO_ANU_CGS_TO_SI; } } void Spectrum::PowerLawSynchrotron::radiativeQ(double jInu[], double jQnu[], double jUnu[], double jVnu[], // Output double aInu[], double aQnu[], double aUnu[], double aVnu[], // Output double rQnu[], double rUnu[], double rVnu[], // Output double const nu_ems[], size_t nbnu ){ for (size_t ii=0; ii< nbnu; ++ii){ double nu = nu_ems[ii]; double jInucur=0., jQnucur=0.,jUnucur=0.,jVnucur=0.; double aInucur=0., aQnucur=0., aUnucur=0., aVnucur=0.; double rQnucur=0., rUnucur=0., rVnucur=0.; if (!angle_averaged_){ jInucur = jnuCGS(nu); jQnucur = jQnuCGS(nu); jUnucur = jUnuCGS(nu); jVnucur = jVnuCGS(nu); aInucur = alphanuCGS(nu); aQnucur = alphaQnuCGS(nu); aUnucur = alphaUnuCGS(nu); aVnucur = alphaVnuCGS(nu); rQnucur = rQnuCGS(nu); rUnucur = rUnuCGS(nu); rVnucur = rVnuCGS(nu); }else{ double th0=0.01, thNm1=M_PI-0.01; // sin(theta) must never be 0 double hh=(thNm1-th0)/double(nstep_angint); double theta=th0; angle_B_pem(theta); double jInusinprev=jnuCGS(nu)*sin(theta), jInusinnext=jInusinprev; double jQnusinprev=jQnuCGS(nu)*sin(theta), jQnusinnext=jQnusinprev; double jUnusinprev=jUnuCGS(nu)*sin(theta), jUnusinnext=jUnusinprev; double jVnusinprev=jVnuCGS(nu)*sin(theta), jVnusinnext=jVnusinprev; double aInusinprev=alphanuCGS(nu)*sin(theta), aInusinnext=aInusinprev; double aQnusinprev=alphaQnuCGS(nu)*sin(theta), aQnusinnext=aQnusinprev; double aUnusinprev=alphaUnuCGS(nu)*sin(theta), aUnusinnext=aUnusinprev; double aVnusinprev=alphaVnuCGS(nu)*sin(theta), aVnusinnext=aVnusinprev; double rQnusinprev=rQnuCGS(nu)*sin(theta), rQnusinnext=rQnusinprev; double rUnusinprev=rUnuCGS(nu)*sin(theta), rUnusinnext=rUnusinprev; double rVnusinprev=rVnuCGS(nu)*sin(theta), rVnusinnext=rVnusinprev; for (int jj=1;jj<=nstep_angint;jj++){ theta=th0+double(jj)*hh; angle_B_pem(theta); jInusinnext=jnuCGS(nu)*sin(theta); jQnusinnext=jQnuCGS(nu)*sin(theta); jUnusinnext=jUnuCGS(nu)*sin(theta); jVnusinnext=jVnuCGS(nu)*sin(theta); aInusinnext=alphanuCGS(nu)*sin(theta); aQnusinnext=alphaQnuCGS(nu)*sin(theta); aUnusinnext=alphaUnuCGS(nu)*sin(theta); aVnusinnext=alphaVnuCGS(nu)*sin(theta); rQnusinnext=rQnuCGS(nu)*sin(theta); rUnusinnext=rUnuCGS(nu)*sin(theta); rVnusinnext=rVnuCGS(nu)*sin(theta); jInucur+=0.5*0.5*hh*(jInusinprev+jInusinnext); jQnucur+=0.5*0.5*hh*(jQnusinprev+jQnusinnext); jUnucur+=0.5*0.5*hh*(jUnusinprev+jUnusinnext); jVnucur+=0.5*0.5*hh*(jVnusinprev+jVnusinnext); aInucur+=0.5*0.5*hh*(aInusinprev+aInusinnext); aQnucur+=0.5*0.5*hh*(aQnusinprev+aQnusinnext); aUnucur+=0.5*0.5*hh*(aUnusinprev+aUnusinnext); aVnucur+=0.5*0.5*hh*(aVnusinprev+aVnusinnext); rQnucur+=0.5*0.5*hh*(rQnusinprev+rQnusinnext); rUnucur+=0.5*0.5*hh*(rUnusinprev+rUnusinnext); rVnucur+=0.5*0.5*hh*(rVnusinprev+rVnusinnext); jInusinprev=jInusinnext; jQnusinprev=jQnusinnext; jUnusinprev=jUnusinnext; jVnusinprev=jVnusinnext; aInusinprev=aInusinnext; aQnusinprev=aQnusinnext; aUnusinprev=aUnusinnext; aVnusinprev=aVnusinnext; rQnusinprev=rQnusinnext; rUnusinprev=rUnusinnext; rVnusinprev=rVnusinnext; //NB: averaged jnu is: 1/4pi * \int jnu dOmega = 1/2 * \int jnu*sinth dth } } // OUTPUTS jInu[ii]=jInucur * GYOTO_JNU_CGS_TO_SI; jQnu[ii]=jQnucur * GYOTO_JNU_CGS_TO_SI; jUnu[ii]=jUnucur * GYOTO_JNU_CGS_TO_SI; jVnu[ii]=jVnucur * GYOTO_JNU_CGS_TO_SI; aInu[ii]=aInucur * GYOTO_ANU_CGS_TO_SI; aQnu[ii]=aQnucur * GYOTO_ANU_CGS_TO_SI; aUnu[ii]=aUnucur * GYOTO_ANU_CGS_TO_SI; aVnu[ii]=aVnucur * GYOTO_ANU_CGS_TO_SI; rQnu[ii]=rQnucur * GYOTO_ANU_CGS_TO_SI; rUnu[ii]=rUnucur * GYOTO_ANU_CGS_TO_SI; rVnu[ii]=rVnucur * GYOTO_ANU_CGS_TO_SI; } }Gyoto-2.0.2/lib/Property.C000066400000000000000000000064631455254334400153340ustar00rootroot00000000000000#include "GyotoProperty.h" #include "GyotoError.h" using namespace std ; using namespace Gyoto ; Property::Property() : name(""), type(empty_t), parent(NULL) {} Property::Property(std::string n, int t) : name(n), type(t), parent(NULL) {} Property::Property(Property const * const ancestors) : name(""), type(empty_t), parent(ancestors) {} Property::Property(std::string classname, std::string doc) : name(classname), type(empty_t), parent(NULL), doc(doc){} #define GYOTO_LOCAL(T) \ Property::Property(string n, set_##T##_t set, get_##T##_t get, string d) \ : name(n), type(T##_t), parent(NULL), doc(d) { \ setter.set_##T=set; \ getter.get_##T=get; \ } GYOTO_LOCAL(long) GYOTO_LOCAL(unsigned_long) GYOTO_LOCAL(metric) GYOTO_LOCAL(spectrum) GYOTO_LOCAL(astrobj) GYOTO_LOCAL(screen) GYOTO_LOCAL(spectrometer) #undef GYOTO_LOCAL Property::Property(string n, set_size_t_t set, get_size_t_t get, int, string d) : name(n), type(size_t_t), parent(NULL), doc(d) { setter.set_size_t=set; getter.get_size_t=get; } Property::Property(string n, set_double_t set, get_double_t get, string d) : name(n), type(double_t), parent(NULL), doc(d) { setter.set_double=set; getter.get_double=get; setter_unit.set_double=NULL; getter_unit.get_double=NULL; } Property::Property(string n, set_double_t set, get_double_t get, set_double_unit_t setu, get_double_unit_t getu, string d) : name(n), type(double_t), parent(NULL), doc(d) { setter.set_double=set; getter.get_double=get; setter_unit.set_double=setu; getter_unit.get_double=getu; } Property::Property(string n, string nf, set_bool_t set, get_bool_t get, string d) : name(n), name_false(nf), type(bool_t), parent(NULL), doc(d) { setter.set_bool=set; getter.get_bool=get; } Property::Property(string n, set_string_t set, get_string_t get, bool is_filename, string d) : name(n), type(is_filename?filename_t:string_t), parent(NULL), doc(d) { setter.set_string=set; getter.get_string=get; } Property::Property(string n, set_vector_double_t set, get_vector_double_t get, string d) : name(n), type(vector_double_t), parent(NULL), doc(d) { setter.set_vdouble=set; getter.get_vdouble=get; setter_unit.set_vdouble=NULL; getter_unit.get_vdouble=NULL; } Property::Property(string n, set_vector_double_t set, get_vector_double_t get, set_vector_double_unit_t setu, get_vector_double_unit_t getu, string d) : name(n), type(vector_double_t), parent(NULL), doc(d) { setter.set_vdouble=set; getter.get_vdouble=get; setter_unit.set_vdouble=setu; getter_unit.get_vdouble=getu; } Property::Property(string n, set_vector_unsigned_long_t set, get_vector_unsigned_long_t get, string d) : name(n), type(vector_unsigned_long_t), parent(NULL), doc(d) { setter.set_vulong=set; getter.get_vulong=get; } Property::operator bool() const { return type != empty_t || name != ""; } Property::type_e Property::typeFromString(std::string stype) { if (stype=="double") { return Property::double_t; } else if (stype=="vector_double") { return Property::vector_double_t; } else if (stype=="spectrum") { return Property::spectrum_t; } else { GYOTO_ERROR("unimplemeted Python property type"); } return Property::empty_t; // avoid warning, will never reach here } Gyoto-2.0.2/lib/Register.C000066400000000000000000000214501455254334400152650ustar00rootroot00000000000000/* Copyright 2011-2016 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoRegister.h" #include "GyotoUtils.h" #include "GyotoAstrobj.h" #include "GyotoMetric.h" #include "GyotoSpectrum.h" #include "GyotoSpectrometer.h" #include "GyotoConverters.h" #include #include #include #include #include #include using namespace Gyoto; using namespace std; static std::string GyotoRegisterCurrentPlugin ("built-in"); static std::vector GyotoRegisteredPlugins; typedef void GyotoInitFcn(); bool Gyoto::havePlugin(std::string name) { for (size_t i=0; i < GyotoRegisteredPlugins.size(); ++i) if (GyotoRegisteredPlugins[i]==name) return true; return false; } void Gyoto::requirePlugin(std::string name, int nofail) { if (!havePlugin(name)) loadPlugin(name.c_str(), nofail); } void * Gyoto::loadPlugin(char const*const nam, int nofail) { string name(nam); // Determine file name string dlfile = "libgyoto-" ; dlfile += name ; dlfile += "." ; dlfile += GYOTO_PLUGIN_SFX ; // If nam _is_ a file name, retrieve plug-in name string marker="/libgyoto-"; if (strstr(nam, marker.c_str())) { dlfile = name; name=name.substr(0, name.rfind("." GYOTO_PLUGIN_SFX)); name=name.substr(name.rfind(marker)+marker.size()); GYOTO_DEBUG << name << endl; } // Prepare name of init function string dlfunc = "__Gyoto"; dlfunc += name ; dlfunc += "Init"; void* handle = NULL; GyotoInitFcn* initfcn = NULL; char * err = NULL; // Keep track of all dlopen() errors string errors("Failed loading plug-in '"); errors += name; errors += "'.\n The following attempts were made:"; // Try first without path (i.e. in default linker locations) GYOTO_DEBUG << "Loading plug-in: " << name < plug_path; plug_path.push_back(GYOTO_PKGLIBDIR "/"); plug_path.insert(plug_path.begin(), plug_path[0] + GYOTO_SOVERS "/"); # if defined GYOTO_LOCALPKGLIBDIR plug_path.insert(plug_path.begin(), GYOTO_LOCALPKGLIBDIR "/"); plug_path.insert(plug_path.begin(), plug_path[0] + GYOTO_SOVERS "/"); # endif std::vector::iterator cur = plug_path.begin(); std::vector::iterator end = plug_path.end(); std::string dlfull= dlfile; while (!handle && cur != end) { dlfull = *cur + dlfile; GYOTO_DEBUG << "Trying to dlopen " << dlfull << "...\n"; handle = dlopen(dlfull.c_str(), RTLD_LAZY | RTLD_GLOBAL); ++cur; if (!handle && (err=dlerror())) { errors += "\n * Error loading "; errors += dlfull + ":\n "; errors += err; } } // Check for success if (handle) { GYOTO_DEBUG << "Successfully loaded " << dlfull << ".\n"; } else { GYOTO_DEBUG << "Failed loading " << dlfull << ".\n"; if (nofail) { if (nofail == 1 && verbose() >= GYOTO_DEFAULT_VERBOSITY) cerr << "WARNING: unable to load optional plug-in " << dlfile << endl; return NULL; } GYOTO_ERROR(errors.c_str()); } // Find and execute init function GYOTO_DEBUG << "Searching plug-in init function " << dlfunc << endl; initfcn = (GyotoInitFcn*)dlsym(handle, dlfunc.c_str()); if ( (err=dlerror()) || !initfcn) { dlfunc = "__GyotoPluginInit"; initfcn = (GyotoInitFcn*)dlsym(handle, dlfunc.c_str()); } if ( (err=dlerror()) ) GYOTO_ERROR(err); GYOTO_DEBUG << "Calling plug-in init function " << dlfunc << endl; std::string tmp_name(GyotoRegisterCurrentPlugin); // In case nam is a file name, that's what we wan't to store GyotoRegisterCurrentPlugin = nam; (*initfcn)(); GyotoRegisterCurrentPlugin = tmp_name; // In case nam is a file name, that's what we wan't to store GyotoRegisteredPlugins.insert(GyotoRegisteredPlugins.begin(), nam); GYOTO_DEBUG << "Done." << endl; return handle; } void Gyoto::Register::init(char const * cpluglist) { // Clean registers Metric::initRegister(); Astrobj::initRegister(); Spectrum::initRegister(); // This cleans and fills Spectometer::Register_ Spectrometer::initRegister(); GyotoRegisteredPlugins.push_back(GyotoRegisterCurrentPlugin); // Init units system Units::Init(); // Init built-in plug-ins #ifdef GYOTO_BUILTIN_STDPLUG __GyotostdplugInit(); #endif #ifdef GYOTO_BUILTIN_LORENEPLUG __GyotoloreneInit(); #endif // Load DL plug-ins if (!cpluglist) cpluglist = getenv("GYOTO_PLUGINS"); if (!cpluglist) cpluglist = GYOTO_DEFAULT_PLUGINS; std::string pluglist = cpluglist; if (pluglist.length()) { size_t first=0, last=0; string curplug=""; int nofail=0; while (pluglist.length()) { last=pluglist.find(","); nofail=0; curplug=pluglist.substr(0, last); if (debug()) cerr << "DEBUG: first: " << first << ", last: " << last << ", pluglist: |" << pluglist << "|" << ", curplug: |" << curplug << "|" << endl; if (last <= pluglist.length()) pluglist=pluglist.substr(last+1); else pluglist=""; if (!curplug.compare(0, 7, "nofail:")) { curplug = curplug.substr(7); nofail=1; } Gyoto::loadPlugin(curplug.c_str(), nofail); nofail=0; } } if (debug()) Register::list(); } Register::Entry::Entry(std::string name, Gyoto::SmartPointee::Subcontractor_t* subcontractor, Register::Entry* next) : name_(name), subcontractor_(subcontractor), next_(next), plugin_(GyotoRegisterCurrentPlugin) {} Register::Entry::~Entry() { if (next_) delete next_; } #ifndef GYOTO_NO_DEPRECATED #warning Embedding deprecated method.\ Define GYOTO_NO_DEPRECATED to disable. Gyoto::SmartPointee::Subcontractor_t* Register::Entry::getSubcontractor(std::string name, int errmode) { std::string plugin(""); return getSubcontractor(name, plugin, errmode); } #endif Gyoto::SmartPointee::Subcontractor_t* Register::Entry::getSubcontractor(std::string name, std::string &plugin, int errmode) { # if GYOTO_DEBUG_ENABLED GYOTO_IF_DEBUG GYOTO_DEBUG_EXPR(name); GYOTO_DEBUG_EXPR(errmode); GYOTO_DEBUG_EXPR(name_); GYOTO_DEBUG_EXPR(plugin_); GYOTO_ENDIF_DEBUG # endif bool any_plugin = (plugin == ""); if (name_==name && (any_plugin || (plugin_ == plugin))) { if (any_plugin) plugin=plugin_; return subcontractor_; } if (next_) return next_ -> getSubcontractor(name, plugin, errmode); if (errmode) return NULL; GYOTO_ERROR ("Unregistered kind: "+name); return NULL; // will never get there, avoid compilation warning } void Gyoto::Register::list() { Register::Entry* entry = NULL; cout << "Gyoto will look for plug-ins first in the run-time linker default locations\n" "(typically includes directories listed in e.g. $LD_LIBRARY_PATH), then in the\n" "following locations:" << endl; # if defined GYOTO_LOCALPKGLIBDIR cout << " " << GYOTO_LOCALPKGLIBDIR "/" GYOTO_SOVERS "/" << endl; cout << " " << GYOTO_LOCALPKGLIBDIR "/" << endl; # endif cout << " " << GYOTO_PKGLIBDIR "/" GYOTO_SOVERS "/" << endl; cout << " " << GYOTO_PKGLIBDIR "/" << endl << endl; cout << "List of loaded plug-ins:" << endl; for (size_t i=0; i < GyotoRegisteredPlugins.size(); ++i) cout << " " << GyotoRegisteredPlugins[i] << endl; cout << "List of available Metrics:" << endl; for (entry = Metric::Register_; entry; entry = entry -> next_) cout << " " << entry -> name_ << " (in plug-in: " << entry -> plugin_ << ")" << endl; cout << "List of available Astrobjs:" << endl; for (entry = Astrobj::Register_; entry; entry = entry -> next_) cout << " " << entry -> name_ << " (in plug-in: " << entry -> plugin_ << ")" << endl; cout << "List of available Spectra:" << endl; for (entry = Spectrum::Register_; entry; entry = entry -> next_) cout << " " << entry -> name_ << " (in plug-in: " << entry -> plugin_ << ")" << endl; cout << "List of available Spectrometers:" << endl; for (entry = Spectrometer::Register_; entry; entry = entry -> next_) cout << " " << entry -> name_ << " (in plug-in: " << entry -> plugin_ << ")" << endl; } Gyoto-2.0.2/lib/RezzollaZhidenko.C000066400000000000000000000236561455254334400170110ustar00rootroot00000000000000/* Copyright 2014, 2018 Frederic Vincent & Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoRezzollaZhidenko.h" #include #include #include #define STRINGIFY(foo) #foo using namespace Gyoto; using namespace Gyoto::Metric; using namespace std; #define GYOTO_DRHOR 0.1 #define GYOTO_NBPARAM_MAX 4 // only this number of parameters is allowed, e.g. a0, a1, a2, a3 and not more for the time being; assumed the same for a and b. /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(RezzollaZhidenko, "Spherically-symmetric parametrized metric of Rezzolla & Zhidenko 2014") GYOTO_PROPERTY_DOUBLE(RezzollaZhidenko, Epsilon, epsilon) GYOTO_PROPERTY_DOUBLE(RezzollaZhidenko, Rms, rms) GYOTO_PROPERTY_DOUBLE(RezzollaZhidenko, Rmb, rmb) GYOTO_PROPERTY_VECTOR_DOUBLE(RezzollaZhidenko, AParam, aparam, "At most 4 elements") GYOTO_PROPERTY_VECTOR_DOUBLE(RezzollaZhidenko, BParam, bparam, "At most 4 elements") GYOTO_PROPERTY_END(RezzollaZhidenko, Generic::properties) // accessors GYOTO_PROPERTY_ACCESSORS(RezzollaZhidenko, double, epsilon_, epsilon) GYOTO_PROPERTY_ACCESSORS(RezzollaZhidenko, double, rms_, rms) GYOTO_PROPERTY_ACCESSORS(RezzollaZhidenko, double, rmb_, rmb) void RezzollaZhidenko::aparam(std::vector const &v) { size_t n = v.size(); if (n>GYOTO_NBPARAM_MAX) GYOTO_ERROR("In RezzollaZhidenko: choose at most " STRINGIFY(GYOTO_NBPARAM_MAX) " parameters"); for (size_t i=0; i RezzollaZhidenko::aparam() const { std::vector v(GYOTO_NBPARAM_MAX, 0.); for (size_t i=0; i const &v) { size_t n = v.size(); if (n>GYOTO_NBPARAM_MAX) GYOTO_ERROR("In RezzollaZhidenko: choose at most " STRINGIFY(GYOTO_NBPARAM_MAX) " parameters"); for (size_t i=0; i RezzollaZhidenko::bparam() const { std::vector v(GYOTO_NBPARAM_MAX, 0.); for (size_t i=0; i1e-3) { cout << "at r,th= " << rr << " " << pos[2] << endl; cout << setprecision(20)<< a << " " << mu << " " << nu << " " << dst[a][mu][nu] << " " << dstS[a][mu][nu]<< endl; GYOTO_ERROR("test RZ"); } } } } } return 0; } int RezzollaZhidenko::isStopCondition(double const * const coord) const { double r0 = 2./(1.+epsilon_); double rsink = r0 + GYOTO_KERR_HORIZON_SECURITY; return coord[1] < rsink ; } void RezzollaZhidenko::circularVelocity(double const coor[4], double vel[4], double dir) const { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG<<"coor=["< #include #include #include #include #include #include using namespace Gyoto; using namespace Gyoto::Metric; GYOTO_PROPERTY_START(RotStar3_1) GYOTO_PROPERTY_BOOL(RotStar3_1, GenericIntegrator, SpecificIntegrator, genericIntegrator) GYOTO_PROPERTY_FILENAME(RotStar3_1, File, file) GYOTO_PROPERTY_END(RotStar3_1, Generic::properties) // Lorene Metrics are not thread-safe GYOTO_PROPERTY_THREAD_UNSAFE(RotStar3_1) RotStar3_1::RotStar3_1() : Generic(GYOTO_COORDKIND_SPHERICAL, "RotStar3_1"), filename_(NULL), star_(NULL), integ_kind_(1) {} RotStar3_1::RotStar3_1(const RotStar3_1& o) : Generic(o), filename_(NULL), star_(NULL), integ_kind_(o.integ_kind_) { kind("RotStar3_1"); fileName(o.fileName()); } RotStar3_1* RotStar3_1::clone() const { return new RotStar3_1(*this); } RotStar3_1::~RotStar3_1() { if (star_) { const Map& mp=star_ -> get_mp(); const Mg3d* mg=mp.get_mg(); const Map* mpp=∓ delete star_; delete mpp; delete mg; } if (filename_) delete [] filename_; if (debug()) cout << "RotStar3_1 Destruction" << endl; } void RotStar3_1::file(std::string const &fname) { cerr << "Setting file name to '" << fname << "'" << endl; fileName(fname.c_str()); } std::string RotStar3_1::file() const { if (!filename_) return ""; return filename_; } void RotStar3_1::fileName(char const * lorene_res) { if (filename_) { delete[] filename_; filename_=NULL; } if (star_) { const Map& mp=star_ -> get_mp(); const Mg3d* mg=mp.get_mg(); const Map* mpp=∓ delete star_; star_=NULL; delete mpp; delete mg; } if (!lorene_res) return; filename_ = new char[strlen(lorene_res)+1]; strcpy(filename_,lorene_res); FILE* resfile=fopen(lorene_res,"r"); if (!resfile) GYOTO_ERROR(string("No such file or directory: ")+lorene_res); Mg3d* mg = new Mg3d(resfile); Map_et* mps = new Map_et(*mg,resfile); Eos* p_eos = Eos::eos_from_file(resfile); star_ = new Lorene::Star_rot(*mps,*p_eos,resfile); star_ -> equation_of_state(); star_ -> update_metric(); star_ -> hydro_euler(); tellListeners(); } char const * RotStar3_1::fileName() const { return filename_; } void RotStar3_1::integKind(int ik) { integ_kind_ = ik; } int RotStar3_1::integKind() const { return integ_kind_; } bool RotStar3_1::genericIntegrator() const {return !integ_kind_;} void RotStar3_1::genericIntegrator(bool t) {integ_kind_=!t;} int RotStar3_1::diff(state_t const &coord, state_t &res, double /* mass */) const { //4-DIMENSIONAL INTEGRATION //NB: this diff is only called by Generic::RK4 //if (debug()) cout << "In 4D RotStar diff [8]..." << endl; //clock_t time1, time2; //double diftime, clocks = CLOCKS_PER_SEC; //time1 = clock(); double rr=coord[1],r2=rr*rr,th=coord[2],sinth2=sin(th)*sin(th),ph=coord[3]; //LAPSE const Scalar & NNscal=star_ -> get_nn(); double NN=NNscal.val_point(rr,th,ph), N2=NN*NN; double N_r=NNscal.dsdr().val_point(rr,th,ph); double N_th=NNscal.dsdt().val_point(rr,th,ph); //SHIFT (OMEGA) const Scalar & omega_scal=star_ -> get_nphi();//NB: avoid using star_ -> get_beta(), it is very time-consuming double omega=omega_scal.val_point(rr,th,ph), omega2=omega*omega; double omega_r=omega_scal.dsdr().val_point(rr,th,ph); double omega_th=omega_scal.dsdt().val_point(rr,th,ph); //METRIC POTENTIALS const Scalar & A2scal=star_ -> get_a_car(); const Scalar & B2scal=star_ -> get_b_car(); double A2=A2scal.val_point(rr,th,ph), B2=B2scal.val_point(rr,th,ph); double A2_r=A2scal.dsdr().val_point(rr,th,ph), B2_r=B2scal.dsdr().val_point(rr,th,ph); double A2_th=A2scal.dsdt().val_point(rr,th,ph), B2_th=B2scal.dsdt().val_point(rr,th,ph); /* time2 = clock(); diftime = time2 - time1; if (debug()) cout << "Time elapsed in temp 4D diff (in sec)= " << setprecision(GYOTO_PREC) << setw(GYOTO_WIDTH) << diftime/clocks << endl;*/ //METRIC COEF double gtt=-1./N2, grr=1./A2, gthth=1./(A2*r2), gpp=1./(B2*r2*sinth2)-omega2/N2, gtp=-omega/N2; double g_ttr=-2.*NN*N_r+B2_r*omega2*r2*sinth2+2.*omega*omega_r*B2*r2*sinth2+2.*rr*B2*omega2*sinth2, g_ttth=-2.*NN*N_th+B2_th*omega2*r2*sinth2+2.*omega*omega_th*B2*r2*sinth2+2.*cos(th)*sin(th)*r2*B2*omega2; double g_rrr=A2_r, g_rrth=A2_th; double g_ththr=r2*A2_r+2.*rr*A2, g_ththth=r2*A2_th; double g_ppr=sinth2*(r2*B2_r+2.*rr*B2), g_ppth=r2*(sinth2*B2_th+2.*cos(th)*sin(th)*B2); double g_tpr=-omega_r*B2*r2*sinth2-omega*B2_r*r2*sinth2-2.*rr*omega*B2*sinth2, g_tpth=-omega_th*B2*r2*sinth2-omega*B2_th*r2*sinth2-2.*cos(th)*sin(th)*omega*B2*r2; //4D CHRISTOFFELS in stationnary axisym spacetime double ch001=1./2.*gtt*g_ttr+1./2.*gtp*g_tpr, ch002=1./2.*gtt*g_ttth+1./2.*gtp*g_tpth, ch031=1./2.*gtt*g_tpr+1./2.*gtp*g_ppr, ch032=1./2.*gtt*g_tpth+1./2.*gtp*g_ppth, ch331=1./2.*gpp*g_ppr+1./2.*gtp*g_tpr, ch332=1./2.*gpp*g_ppth+1./2.*gtp*g_tpth, ch301=1./2.*gpp*g_tpr+1./2.*gtp*g_ttr, ch302=1./2.*gpp*g_tpth+1./2.*gtp*g_ttth, ch122=-1./2.*grr*g_ththr, ch133=-1./2.*grr*g_ppr, ch100=-1./2.*grr*g_ttr, ch111=1./2.*grr*g_rrr, ch112=1./2.*grr*g_rrth, ch103=-1./2.*grr*g_tpr, ch200=-1./2.*gthth*g_ttth, ch211=-1./2.*gthth*g_rrth, ch233=-1./2.*gthth*g_ppth, ch222=1./2.*gthth*g_ththth, ch221=1./2.*gthth*g_ththr, ch203=-1./2.*gthth*g_tpth; //RESULT: Derivatives res[0]=coord[4]; res[1]=coord[5]; res[2]=coord[6]; res[3]=coord[7]; //From the 4D equation of geodesics: res[4]=-2.*ch001*coord[4]*coord[5]-2.*ch002*coord[4]*coord[6]-2.*ch031*coord[7]*coord[5] - 2.*ch032*coord[7]*coord[6];//added 2011-02-27 ch032 term forgotten! to be checked res[5]=-ch111*coord[5]*coord[5]-ch122*coord[6]*coord[6]-ch133*coord[7]*coord[7]-ch100*coord[4]*coord[4]-2.*ch112*coord[5]*coord[6]-2.*ch103*coord[4]*coord[7]; res[6]=-ch211*coord[5]*coord[5]-ch222*coord[6]*coord[6]-ch233*coord[7]*coord[7]-ch200*coord[4]*coord[4]-2.*ch221*coord[5]*coord[6]-2.*ch203*coord[4]*coord[7]; res[7]=-2.*ch301*coord[4]*coord[5]-2.*ch302*coord[4]*coord[6]-2.*ch331*coord[7]*coord[5]-2.*ch332*coord[7]*coord[6]; /* time2 = clock(); diftime = time2 - time1; if (debug()) cout << "TOTAL Time elapsed in 4D diff (in sec)= " << setprecision(GYOTO_PREC) << setw(GYOTO_WIDTH) << diftime/clocks << endl;*/ return 0; } int RotStar3_1::diff(const double y[6], double res[6], int) const { //3+1 INTEGRATION //NB: this diff is only called by RotStar::RK4 //NBB: here t=theta, not time! //if (debug()) cout << "In 3+1 D RotStar::diff" << endl; // clock_t time1, time2; //double diftime, clocks = CLOCKS_PER_SEC; //time1 = clock(); //NB: all the computations used here are detailed in my 3+1 notes. //NB: Lorene coordinates are spherical-like //Variables: y=[r,theta,phi,Vr,Vtheta,Vphi] see definitions 3+1 geod paper double rr=y[0], r2=rr*rr, th=y[1], sinth2=sin(th)*sin(th), phi=y[2]; /* Important remark! [actually it is not used because the metric coef are known in function of A, B, N... ; but interesting to keep this in mind] Lorene gcon and gcov function return metric coef expressed in the orthonormal spherical tetrad d/dr, 1/r d/dtheta, 1/(r*sin(theta)) d/dphi There's thus a change of basis to come back to the natural basis of spherical coordinates. */ //LAPSE const Scalar & NNscal=star_ -> get_nn(); double NN=NNscal.val_point(rr,th,phi);//, NN2=NN*NN; if (NN == 0.) GYOTO_ERROR("In RotStar3_1.C: NN==0!!"); double Nr=NNscal.dsdr().val_point(rr,th,phi); double Nt=NNscal.dsdt().val_point(rr,th,phi); //SHIFT (OMEGA) const Scalar & omega_scal=star_ -> get_nphi(); double omega=omega_scal.val_point(rr,th,phi); double omega_r=omega_scal.dsdr().val_point(rr,th,phi); double omega_t=omega_scal.dsdt().val_point(rr,th,phi); //METRIC POTENTIALS const Scalar & A2scal=star_ -> get_a_car(); const Scalar & B2scal=star_ -> get_b_car(); double A2=A2scal.val_point(rr,th,phi), B2=B2scal.val_point(rr,th,phi); double A2_r=A2scal.dsdr().val_point(rr,th,phi), B2_r=B2scal.dsdr().val_point(rr,th,phi); double A2_th=A2scal.dsdt().val_point(rr,th,phi),B2_th=B2scal.dsdt().val_point(rr,th,phi); /* time2 = clock(); diftime = time2 - time1; if (debug()) cout << "Time elapsed in 3+1 diff (in sec)= " << setprecision(GYOTO_PREC) << setw(GYOTO_WIDTH) << diftime/clocks << endl;*/ //METRIC COEF double grr=1./A2, gtt=1./(A2*r2), gpp=1./(B2*r2*sinth2), g_rrr=A2_r, g_rrt=A2_th, g_ttr=r2*A2_r+2.*rr*A2, g_ttt=r2*A2_th, g_ppr=r2*sinth2*B2_r+2.*rr*B2*sinth2, g_ppt=r2*sinth2*B2_th+2.*sin(th)*cos(th)*r2*B2; /* //Change of basis [Not used] gtt_=1./r2*gtt_;gpp_=1./(r2*sinth2)*gpp_;//natural basis contrav metric g_ttr_=2.*rr*g_tt_+r2*g_ttr;g_ttt_=r2*g_ttt_;g_ppr_=sinth2*(2.*rr*g_pp_+r2*g_ppr_);g_ppt_=r2*(2.*cos(th)*sin(th)*g_pp_+sinth2*g_ppt_);//natural basis derived covar metric (NB: the cov metric ceof that appear here must be in the orthonormal basis) */ //EXTRINSIC CURVATURE double Krp=-1./(2.*NN)*B2*r2*sinth2*omega_r; double Ktp=-1./(2.*NN)*B2*r2*sinth2*omega_t; //3-CHRISTOFFELS double Grrr=1./2.*grr*g_rrr, Grrt=1./2.*grr*g_rrt, Gttr=1./2.*gtt*g_ttr, Gttt=1./2.*gtt*g_ttt, Gppr=1./2.*gpp*g_ppr, Gptp=1./2.*gpp*g_ppt, Grtt=-1./2.*grr*g_ttr, Grpp=-1./2.*grr*g_ppr, Gtrr=-1./2.*gtt*g_rrt, Gtpp=-1./2.*gtt*g_ppt;//these are the only non-0 Christo /* OBSOLETE VERSION */ // //Christoffel terms (xdot^j+beta^j)(xdot^k+beta^k)Gamma^i_jk in geodesic eq.: // double Christo_r=rdot*rdot*Grrr+2.*rdot*thdot*Grrt+thdot*thdot*Grtt+(phidot-omega)*(phidot-omega)*Grpp, // Christo_th=2.*rdot*thdot*Gttr+thdot*thdot*Gttt+rdot*rdot*Gtrr+(phidot-omega)*(phidot-omega)*Gtpp, // Christo_ph=2.*rdot*(phidot-omega)*Gppr+2.*thdot*(phidot-omega)*Gptp; // double kappa=1./NN2*(rdot*Nr+thdot*Nt)-2./NN2*rdot*(phidot-omega)*Krp-2./NN2*thdot*(phidot-omega)*Ktp; // //RESULT: derivatives (see geodesic equation in 3+1) // res[0]=rdot; // res[1]=thdot; // res[2]=phidot; // res[3]=kappa*NN*rdot-NN*grr*Nr+1./NN*(Nr*rdot+Nt*thdot)*rdot+2.*NN*grr*(phidot-omega)*Krp-Christo_r;//-Grtt*thdot*thdot-Grpp*phidot*phidot; // res[4]=kappa*NN*thdot-NN*gtt*Nt+1./NN*(Nr*rdot+Nt*thdot)*thdot+2.*NN*gtt*(phidot-omega)*Ktp-Christo_th;//-2.*Gttr*rdot*thdot-Gtpp*phidot*phidot; // res[5]=kappa*NN*(phidot-omega)+1./NN*(Nr*rdot+Nt*thdot)*(phidot-omega)+2.*rdot*omega_r+2.*thdot*omega_t+2.*NN*gpp*(rdot*Krp+thdot*Ktp)-Christo_ph;//-2.*Gppr*rdot*phidot-2.*Gptp*thdot*phidot; // /* NEW VERSION JULY 2011 */ double Vr = y[3], Vth = y[4], Vph = y[5]; double Christo_r=Vr*Vr*Grrr+2.*Grrt*Vr*Vth+Grtt*Vth*Vth+Grpp*Vph*Vph, Christo_th=Gtrr*Vr*Vr+2.*Gttr*Vr*Vth+Gttt*Vth*Vth+Gtpp*Vph*Vph, Christo_ph=2.*Gppr*Vr*Vph+2.*Gptp*Vth*Vph; //See 3+1 equation of geodesics double prefact=1./NN*Vr*Nr+1./NN*Vth*Nt-2.*Krp*Vr*Vph-2.*Ktp*Vth*Vph; double Vrdot = NN*(Vr*prefact+2.*grr*Krp*Vph-Christo_r)-grr*Nr, Vthdot = NN*(Vth*prefact+2.*gtt*Ktp*Vph-Christo_th)-gtt*Nt, Vphdot = NN*(Vph*prefact+2.*gpp*(Krp*Vr+Ktp*Vth)-Christo_ph) +Vr*omega_r+Vth*omega_t; //NB: dot = wrt coordinate time t res[0]=NN*Vr; //dr/dt res[1]=NN*Vth; //dtheta/dt res[2]=NN*Vph+omega; //dphi/dt res[3]=Vrdot; //dVr/dt res[4]=Vthdot; //dVtheta/dt res[5]=Vphdot; //dVphi/dt /* time2 = clock(); diftime = time2 - time1; if (debug()) cout << "TOTAL Time elapsed in 3+1 diff (in sec)= " << setprecision(GYOTO_PREC) << setw(GYOTO_WIDTH) << diftime/clocks << endl;*/ return 0; } int RotStar3_1::myrk4(const double coorin[6], double h, double res[6]) const { //if (debug()) cout << "In RotStar::rk4" << endl; //Here the integration must be 3+1: if (!integ_kind_) GYOTO_ERROR("In RotStar3_1::myrk4: Impossible case"); double k1[6], k2[6], k3[6], k4[6], coor_plus_halfk1[6], sixth_k1[6], coor_plus_halfk2[6], third_k2[6], coor_plus_k3[6], third_k3[6], sixth_k4[6]; if(diff(coorin,k1,1)) return 1; for (int i=0;i<6;i++) { k1[i]=h*k1[i]; coor_plus_halfk1[i]=coorin[i]+0.5*k1[i]; sixth_k1[i]=1./6.*k1[i]; } if(diff(coor_plus_halfk1,k2,1)) return 1; for (int i=0;i<6;i++) { k2[i]=h*k2[i]; coor_plus_halfk2[i]=coorin[i]+0.5*k2[i]; third_k2[i]=1./3.*k2[i]; } if(diff(coor_plus_halfk2,k3,1)) return 1; for (int i=0;i<6;i++) { k3[i]=h*k3[i]; coor_plus_k3[i]=coorin[i]+k3[i]; third_k3[i]=1./3.*k3[i]; } if(diff(coor_plus_k3,k4,1)) return 1; for (int i=0;i<6;i++) { k4[i]=h*k4[i]; sixth_k4[i]=1./6.*k4[i]; } for (int i=0;i<6;i++) { res[i]=coorin[i]+sixth_k1[i]+third_k2[i]+third_k3[i]+sixth_k4[i]; } return 0; } //int RotStar3_1::myrk4_adaptive(const double coord[8], double lastnorm, double normref, double coordnew[8], double h0, double& h1, int &) const int RotStar3_1::myrk4_adaptive(const double coord[6], double, double normref, double coordnew[6], double cst[2], double& tdot_used, double h0, double& h1, double h1max, double& hused) const { // if (debug()) cout << "In Rotstar::adaptive [6]" << endl; double delta0[6]; double delta0min=1e-15; double dcoord[6]; double eps=0.0001; double S=0.9; double errmin=1e-6; // double factnorm=2.; double sigh1=1.; h1max=deltaMax(coord, h1max); /*if (debug()) cout << "RotStar.C: coord in rk="; for (int ii=0;ii<8;ii++) if (debug()) cout << coord[ii] << " " ; if (debug()) cout << endl;*/ diff(coord,dcoord,1); for (int i = 0;i<6;i++) { delta0[i]=delta0min+eps*(fabs(h0*dcoord[i])); //if (debug()) cout << "Rot: delta0[i]=" << delta0[i] << endl; } double hbis=0.5*h0; double coordhalf[6]; double coord2[6]; double delta1[6]; double err; int count=0; // double newnorm; while (1){ count++; //if (debug()) cout << "count in rk Rot= " << count << endl; if (count > 100){ GYOTO_ERROR("RotStar: bad rk"); } err=0.; myrk4(coord,h0,coordnew); myrk4(coord,hbis,coordhalf); myrk4(coordhalf,hbis,coord2); double coordnewbis[6], coordhalfbis[6], coord2bis[6], tdot_unused; int normalize=1; /* NB: for the time being (2011-03-11), normalize=1 imposes to update phprime and tdot to insure conservation of cst of motion; In order to insure norm conservation, there is an other flag in Normalize4v: consnorm, to be put to the desired value Caution: be sure it is really needed before putting consnorm to 1, it slows down A LOT the computation */ if (normalize){ Normalize4v(coordnew,coordnewbis,cst,tdot_used); Normalize4v(coordhalf,coordhalfbis,cst,tdot_unused); Normalize4v(coord2,coord2bis,cst,tdot_unused); for (int ii=0;ii<6;ii++){ coordnew[ii]=coordnewbis[ii]; coordhalf[ii]=coordhalfbis[ii]; coord2[ii]=coord2bis[ii]; } }else{ if (fabs(normref)0) GYOTO_ERROR("In RotStar3_1.C: impossible to compute timelike norm!"); if (tdot_used<=0.){//NB: default value of tdot_used has correct sign tdot_used=-sqrt(-1./ds2); }else{ tdot_used=sqrt(-1./ds2); } } } for (int i = 0;i<6;i++){ delta1[i]=coord2[i]-coordnew[i]; if (err1) { h0=S*h0*pow(err,-0.25); hbis=0.5*h0; }else{ h1=(err > errmin ? S*h0*pow(err,-0.2) : 4.*h0);//pour éviter les explosions if (h1<0.) sigh1=-1.;//why sigh1 and fabs(h1)? because otherwise if h1<0 (possible here if backwards integration), h1 is < delta_min_, so h1 is always set to delta_min_... if (fabs(h1)h1max) h1=sigh1*h1max; hused=h0; break; } } return 0; } int RotStar3_1::myrk4_adaptive(Worldline* line, state_t const &coord, double lastnorm, double normref, state_t &coordnew, double h0, double& h1, double h1max) const { // if (debug()) cout << "In Rotstar::adaptive [8]" << endl; if (coord[1] < 2.5) {//inside rotating star -> a ameliorer if (debug()) cout << "In RotStar3_1.C: Particle has reached the rotating star. Stopping integration." << endl; return 1; } if (!integ_kind_) { /* To use 4D integration Here, the integration is performed by the most general Generic::myrk4 + Generic::diff functions that only call the christoffels (basic geodesic equation). The function christoffel being defined here in RotStar3_1, it is the 4D-christo computed thanks to 3+1 quantities that are used. */ if (Generic::myrk4_adaptive(line,coord,lastnorm,normref,coordnew,h0,h1,h1max)) { return 1; }else{ return 0; } } //Below: 3+1 integration //Variables used: [r,theta,phi,Vr,Vtheta,Vphi] for definition see 3+1 geod paper double rr=coord[1],th=coord[2],ph=coord[3],tdot=coord[4],rdot=coord[5],thdot=coord[6],phdot=coord[7],rprime=rdot/tdot,thprime=thdot/tdot,phprime=phdot/tdot; const Scalar & NNscal=star_ -> get_nn(); double NN=NNscal.val_point(rr,th,ph);//, NN2=NN*NN; if (NN == 0.) GYOTO_ERROR("In RotStar3_1.C: NN==0!!"); const Scalar & omega_scal=star_ -> get_nphi(); double omega=omega_scal.val_point(rr,th,ph); double Vr = 1./NN*rprime, Vth=1./NN*thprime, Vph=1./NN*(phprime-omega); double g_tt=gmunu(coord.data(),0,0), g_tp=gmunu(coord.data(),0,3), g_pp=gmunu(coord.data(),3,3); double cst_p_t=g_tt*tdot+g_tp*phdot, cst_p_ph=g_pp*phdot+g_tp*tdot;//Cst of motion because the vectors d/dt and d/dphi are Killing //if (debug()) cout << "Rot: cst= " << cst_p_t << " " << cst_p_ph << endl; double cst[2]={cst_p_t,cst_p_ph}; //cout << "3+1 Cst of motion= " << cst_p_t << " " << cst_p_ph << endl; double coor[6]={rr,th,ph,Vr,Vth,Vph}; double coornew[6]; double hused=1000.; if (tdot<0. && h0>0.) h0*=-1.;//to integrate backwards if tdot<0 double tdot_used=tdot; /*if (tdot<=0.){ tdot_used=-1000.; }else{ tdot_used=1000.; }//tdot_used thus has the correct sign*/ if (myrk4_adaptive(coor,lastnorm,normref,coornew,cst,tdot_used,h0,h1,delta_max_,hused)) return 1; // if (debug()) cout << "tdot_used in rk-8= " << tdot_used << endl; //phdot=coornew[5]*tdot_used;rdot=coornew[3]*tdot_used;thdot=coornew[4]*tdot_used; NN=NNscal.val_point(coornew[0],coornew[1],coornew[2]); omega=omega_scal.val_point(coornew[0],coornew[1],coornew[2]); phdot=(NN*coornew[5]+omega)*tdot_used;rdot=NN*coornew[3]*tdot_used;thdot=NN*coornew[4]*tdot_used; coordnew[0]=coord[0]+hused;coordnew[1]=coornew[0];coordnew[2]=coornew[1];coordnew[3]=coornew[2];coordnew[4]=tdot_used;coordnew[5]=rdot;coordnew[6]=thdot;coordnew[7]=phdot; // if (debug()) cout << "Rot: norm at end rk-8= " << ScalarProd(coordnew,coordnew+4,coordnew+4) << endl; return 0; } void RotStar3_1::Normalize4v(const double coordin[6], double coordout[6], const double cst[2], double& tdot_used) const{ //Here coordin=[r,theta,phi,Vr,Vtheta,Vphi] double posin[4]={0.,coordin[0],coordin[1],coordin[2]};//posin={t,rr,th,ph} with t=anything (g_munu are independent of t), {rr,th,ph}=cf coordin double g_tt=gmunu(posin,0,0), g_rr=gmunu(posin,1,1), g_thth=gmunu(posin,2,2), g_tp=gmunu(posin,0,3), g_pp=gmunu(posin,3,3), cst_p_t=cst[0], cst_p_ph=cst[1]; double phdot,phprime; //double phprime_init=coordin[5],dphpr=0.01; const Scalar & NNscal=star_ -> get_nn(); double NN=NNscal.val_point(coordin[0],coordin[1],coordin[2]);//, NN2=NN*NN; if (NN == 0.) GYOTO_ERROR("In RotStar3_1.C: NN==0!!"); const Scalar & omega_scal=star_ -> get_nphi(); double omega=omega_scal.val_point(coordin[0],coordin[1],coordin[2]); double phprime_init=NN*coordin[5]+omega,dphpr=0.01; // Changing phdot and tdot (thus phprime) to insure conservation of cst of motion if (g_tt != 0. && (g_tt*g_pp != g_tp*g_tp)){ phdot=(cst_p_ph - g_tp/g_tt*cst_p_t)/(g_pp-g_tp*g_tp/g_tt); tdot_used=(cst_p_t - g_tp*phdot)/g_tt; phprime=phdot/tdot_used;//cf constants of motion // if (debug()) cout << "tdot use in Normalize= " << tdot_used << endl; }else{ GYOTO_ERROR("RotStar3_1.C: special case metric coef=0 to handle in Normalize4v..."); } if (fabs(phprime-phprime_init)>dphpr*fabs(phprime_init)){ if (verbose() >= GYOTO_SEVERE_VERBOSITY) cerr << "WARNING (severe):" << endl << "Too big change in phprime: " << phprime_init << " " << phprime << endl; } /*double fourvel[4]={tdot_used,NN*coordin[3]*tdot_used,NN*coordin[4]*tdot_used,phprime*tdot_used}; //4-velocity with correct value of tdot and phdot cout << "DEBUT AFFICHE" << endl; cout << "Vr= " << coordin[3] << " " << NN << " " << tdot_used << " " << NN*coordin[3]*tdot_used << endl; cout << "fourvel= " ; for (int ii=0;ii<4;ii++) cout << fourvel[ii] << " " ; cout << endl; cout << "-------> tdot= " << tdot_used << endl; double normaffich=ScalarProd(posin,fourvel,fourvel); cout << "cst motion in Normalize= " << normaffich << " " << cst_p_t << " " << cst_p_ph << endl; if (fabs(normaffich)>1000. || normaffich!=normaffich) GYOTO_ERROR("testrotstar --"); */ // double rprime=coordin[3], thprime=coordin[4]; double rprime=NN*coordin[3], thprime=NN*coordin[4]; double rprime_new=rprime, thprime_new=thprime; int consnorm=0; if (consnorm){ // Changing rprime and thprime to insure norm conservation double norminit=tdot_used*tdot_used*(g_tt+2.*g_tp*phprime+g_rr*rprime*rprime+g_thth*thprime*thprime+g_pp*phprime*phprime);//ScalarProd(tempvec,tempvec+4,tempvec+4);// double normref; if (fabs(norminit) get_nn(); double NN=NNtemp.val_point(rr,th,ph), N2=NN*NN; const Scalar & omega_scal=star_ -> get_nphi(); double omega=omega_scal.val_point(rr,th,ph); double B2=(star_ -> get_b_car()).val_point(rr,th,ph); double A2=(star_ -> get_a_car()).val_point(rr,th,ph); double g_tt=(B2*r2*sinth2*omega*omega-N2), g_tp=-omega*B2*r2*sinth2, g_rr=A2, g_thth=A2*r2, g_pp=B2*r2*sinth2; //DEBUG!!!! flat metric *************** //g_tt=-1.;g_tp=0.;g_rr=1.;g_thth=r2;g_pp=r2*sinth2; //************************************* if ((mu==0) && (nu==0)) return g_tt; if ((mu==1) && (nu==1)) return g_rr; if ((mu==2) && (nu==2)) return g_thth; if ((mu==3) && (nu==3)) return g_pp; if (((mu==0) && (nu==3)) || ((mu==3) && (nu==0))) return g_tp; return 0.; } //double RotStar3_1::christoffel(const double coord[8], const int alpha, const int mu, // const int nu) const double RotStar3_1::christoffel(const double coord[8], const int alpha, const int mu, const int nu) const { /* The computation of the christo is easy since we know the expression of gmunu as a function of 3+1 quantities, and since Lorene allows to perform derivatives on quantities. So gmunu,sigma is computable. */ //if (debug()) cout << "In RotStar::christo" << endl; //GYOTO_ERROR("RotStar3_1::christoffel: Not implemented yet"); //24/05/10: stationary axisymmetric version double rr=coord[1],r2=rr*rr,th=coord[2],sinth2=sin(th)*sin(th),ph=coord[3]; const Scalar & NNscal=star_ -> get_nn(); double NN=NNscal.val_point(rr,th,ph), N2=NN*NN; const Scalar & NNrscal = NNscal.dsdr(); const Scalar & NNthscal = NNscal.dsdt(); double N_r=NNrscal.val_point(rr,th,ph); double N_th=NNthscal.val_point(rr,th,ph); const Scalar & omega_scal=star_ -> get_nphi(); double omega=omega_scal.val_point(rr,th,ph), omega2=omega*omega; double omega_r=omega_scal.dsdr().val_point(rr,th,ph); double omega_th=omega_scal.dsdt().val_point(rr,th,ph); const Scalar & A2scal=star_ -> get_a_car(); const Scalar & B2scal=star_ -> get_b_car(); const Scalar & A2rscal = A2scal.dsdr(); const Scalar & A2thscal = A2scal.dsdt(); const Scalar & B2rscal = B2scal.dsdr(); const Scalar & B2thscal = B2scal.dsdt(); double B2=B2scal.val_point(rr,th,ph); double A2=A2scal.val_point(rr,th,ph); double A2_r=A2rscal.val_point(rr,th,ph); double A2_th=A2thscal.val_point(rr,th,ph); double B2_r=B2rscal.val_point(rr,th,ph); double B2_th=B2thscal.val_point(rr,th,ph); double gtt=-1./N2, grr=1./A2, gthth=1./(A2*r2), gpp=1./(B2*r2*sinth2)-omega2/N2, gtp=-omega/N2; double g_ttr=-2.*NN*N_r+B2_r*omega2*r2*sinth2+2.*omega*omega_r*B2*r2*sinth2+2.*rr*B2*omega2*sinth2, g_ttth=-2.*NN*N_th+B2_th*omega2*r2*sinth2+2.*omega*omega_th*B2*r2*sinth2+2.*cos(th)*sin(th)*r2*B2*omega2; double g_rrr=A2_r, g_rrth=A2_th; double g_ththr=r2*A2_r+2.*rr*A2, g_ththth=r2*A2_th; double g_ppr=sinth2*(r2*B2_r+2.*rr*B2), g_ppth=r2*(sinth2*B2_th+2.*cos(th)*sin(th)*B2); double g_tpr=-omega_r*B2*r2*sinth2-omega*B2_r*r2*sinth2-2.*rr*omega*B2*sinth2, g_tpth=-omega_th*B2*r2*sinth2-omega*B2_th*r2*sinth2-2.*cos(th)*sin(th)*omega*B2*r2; // if (debug()) cout << "at r t p= " << rr << " " << th << " " << ph << endl; //if (debug()) cout << "gthth, g_ppr= " << gthth << " " << g_ppr << endl; //32 non-0 christo if ((alpha==0 && mu==0 && nu==1) || (alpha==0 && mu==1 && nu==0)) return 1./2.*gtt*g_ttr+1./2.*gtp*g_tpr; if ((alpha==0 && mu==0 && nu==2) || (alpha==0 && mu==2 && nu==0)) return 1./2.*gtt*g_ttth+1./2.*gtp*g_tpth; if ((alpha==0 && mu==3 && nu==1) || (alpha==0 && mu==1 && nu==3)) return 1./2.*gtt*g_tpr+1./2.*gtp*g_ppr; if ((alpha==0 && mu==3 && nu==2) || (alpha==0 && mu==2 && nu==3)) return 1./2.*gtt*g_tpth+1./2.*gtp*g_ppth; if ((alpha==3 && mu==3 && nu==1) || (alpha==3 && mu==1 && nu==3)) return 1./2.*gpp*g_ppr+1./2.*gtp*g_tpr; if ((alpha==3 && mu==3 && nu==2) || (alpha==3 && mu==2 && nu==3)) return 1./2.*gpp*g_ppth+1./2.*gtp*g_tpth; if ((alpha==3 && mu==0 && nu==1) || (alpha==3 && mu==1 && nu==0)) return 1./2.*gpp*g_tpr+1./2.*gtp*g_ttr; if ((alpha==3 && mu==0 && nu==2) || (alpha==3 && mu==2 && nu==0)) return 1./2.*gpp*g_tpth+1./2.*gtp*g_ttth; if (alpha==1 && mu==2 && nu==2) return -1./2.*grr*g_ththr; if (alpha==1 && mu==3 && nu==3) return -1./2.*grr*g_ppr; if (alpha==1 && mu==0 && nu==0) return -1./2.*grr*g_ttr; if (alpha==1 && mu==1 && nu==1) return 1./2.*grr*g_rrr; if ((alpha==1 && mu==1 && nu==2) || (alpha==1 && mu==2 && nu==1)) return 1./2.*grr*g_rrth; if ((alpha==1 && mu==0 && nu==3) || (alpha==1 && mu==3 && nu==0)) return -1./2.*grr*g_tpr; if (alpha==2 && mu==0 && nu==0) return -1./2.*gthth*g_ttth; if (alpha==2 && mu==1 && nu==1) return -1./2.*gthth*g_rrth; if (alpha==2 && mu==3 && nu==3) return -1./2.*gthth*g_ppth; if (alpha==2 && mu==2 && nu==2) return 1./2.*gthth*g_ththth; if ((alpha==2 && mu==2 && nu==1) || (alpha==2 && mu==1 && nu==2)) return 1./2.*gthth*g_ththr; if ((alpha==2 && mu==0 && nu==3) || (alpha==2 && mu==3 && nu==0)) return -1./2.*gthth*g_tpth; return 0.;//all other christo are 0 } double RotStar3_1::ScalarProd(const double pos[4], const double u1[4], const double u2[4]) const { //cout << "in RotStar ScalarProd" << endl; if (debug()) cout << "u1,u2 in Scal= " ; for (int ii=0;ii<4;ii++) { if (debug()) cout << u1[ii] << " " << u2[ii] << " "; } if (debug()) cout << endl; double g_tt=gmunu(pos,0,0), g_tp=gmunu(pos,0,3), g_rr=gmunu(pos,1,1), g_thth=gmunu(pos,2,2), g_pp=gmunu(pos,3,3); //if (debug()) //cout << "metrics in rotstar scalar prod= " << g_tt << " " << g_rr << " " << g_thth << " " << g_pp << " " << g_tp << endl; //cout << "norm sub-terms in rotstar scalar prod= " << g_tt*u1[0]*u2[0] << " " < or instead\n"; integKind(atoi(content.c_str())); } else return Generic::setParameter(name, content, unit); return 0; } Gyoto-2.0.2/lib/Scenery.C000066400000000000000000001070411455254334400151120ustar00rootroot00000000000000/* Copyright 2011-2016, 2018-2020 Thibaut Paumard, Frederic Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoScenery.h" #include "GyotoPhoton.h" #include "GyotoFactoryMessenger.h" #include #include #include #include #ifdef HAVE_MPI #include "GyotoFactory.h" #include #include #include #include #include #include #include namespace mpi = boost::mpi; #endif #ifdef HAVE_PTHREAD #include #endif #include /* for benchmarking */ using namespace Gyoto; using namespace std; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(Gyoto::Scenery, "Container with a Gyoto::Metric, a Gyoto::Astrobj and a Gyoto::Screen.") GYOTO_PROPERTY_METRIC(Scenery, Metric, metric, "The geometry of space-time at this end of the Universe.") GYOTO_PROPERTY_SCREEN(Scenery, Screen, screen, "Where light rays are detected.") GYOTO_PROPERTY_ASTROBJ(Scenery, Astrobj, astrobj, "Whatever emits (or absorbs) light.") GYOTO_PROPERTY_SIZE_T(Scenery, NThreads, nThreads, "Number of threads to use (using POSIX threads).") GYOTO_PROPERTY_SIZE_T(Scenery, NProcesses, nProcesses, "Number of MPI worker processes to spawn.") GYOTO_PROPERTY_STRING(Scenery, Quantities, requestedQuantitiesString, "Physical quantities to evaluate for each light ray.") GYOTO_WORLDLINE_PROPERTY_END(Scenery, Object::properties) bool Scenery::isThreadSafe() const { bool safe=true; if (metric() ) safe &= metric() -> isThreadSafe(); if (screen_ ) safe &= screen_ -> isThreadSafe(); if (astrobj()) safe &= astrobj() -> isThreadSafe(); return safe; } #ifdef GYOTO_USE_XERCES void Scenery::fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const { if (p.name == "InitCoord") { std::vector v=initCoord(); if (v[4] != 0) fmp -> setParameter(p.name, v); } else Object::fillProperty(fmp, p); } void Scenery::fillElement(FactoryMessenger *fmp) const { if (metric()) fmp -> metric (metric()) ; if (screen_) fmp -> screen (screen_) ; if (astrobj()) fmp -> astrobj (astrobj()) ; Object::fillElement(fmp); } SmartPointer Gyoto::Scenery::Subcontractor(FactoryMessenger* fmp) { if (!fmp) return new Scenery(); std::string name="", content="", unit=""; SmartPointer gg = NULL; SmartPointer scr = NULL; SmartPointer ao = NULL; Property const *prop=NULL; gg = fmp->metric(); scr= fmp->screen(); ao = fmp->astrobj(); SmartPointer sc = new Scenery(gg, scr, ao); while (fmp->getNextParameter(&name, &content, &unit)) { if (name=="Metric" || name=="Screen" || name=="Astrobj") ; else if ((prop = sc->property(name))) sc -> setParameter(*prop, name, content, unit); else GYOTO_WARNING << "Unrecognized XML entity in Scenery section: '" << name << "'" << endl; } return sc; } #endif /// Scenery::Scenery() : screen_(NULL), delta_(GYOTO_DEFAULT_DELTA), quantities_(0), ph_(), nthreads_(0), nprocesses_(0) #ifdef HAVE_MPI , mpi_team_(NULL) #endif {} Scenery::Scenery(SmartPointer met, SmartPointer scr, SmartPointer obj) : screen_(scr), delta_(GYOTO_DEFAULT_DELTA), quantities_(0), ph_(), nthreads_(0), nprocesses_(0) #ifdef HAVE_MPI , mpi_team_(NULL) #endif { metric(met); if (screen_) screen_->metric(met); astrobj(obj); } Scenery::Scenery(const Scenery& o) : SmartPointee(o), screen_(NULL), delta_(o.delta_), quantities_(o.quantities_), ph_(o.ph_), nthreads_(o.nthreads_), nprocesses_(0) #ifdef HAVE_MPI , mpi_team_(NULL) #endif { if (o.screen_()) { screen_=o.screen_->clone(); screen_->metric(ph_.metric()); } } Scenery * Scenery::clone() const { return new Scenery(*this); } Scenery::~Scenery() { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "Destroying Scenery\n"; # endif screen_ = NULL; # ifdef HAVE_MPI if (!Scenery::am_worker && mpi_team_ && *mpi_team_ != mpi::communicator()) mpiTerminate(); # endif } SmartPointer Scenery::metric() const { return ph_.metric(); } void Scenery::metric(SmartPointer met) { ph_.metric(met); if (!screen_) screen_ = new Screen (); screen_ -> metric(met); } SmartPointer Scenery::screen() const { return screen_; } void Scenery::screen(SmartPointer scr) { screen_ = scr; if (metric()) screen_ -> metric (metric()) ; } SmartPointer Scenery::astrobj() const {return ph_.astrobj();} void Scenery::astrobj(SmartPointer obj) { ph_.astrobj(obj); } double Scenery::delta() const { return delta_; } double Scenery::delta(const string &unit) const { return Units::FromGeometrical(delta(), unit, metric()); } void Scenery::delta(double d) { delta_ = d; } void Scenery::delta(double d, const string &unit) { delta(Units::ToGeometrical(d, unit, metric())); } void Scenery::initCoord(std::vector c) { ph_ . initCoord(c); } std::vector Scenery::initCoord() const { return ph_.initCoord();} void Scenery::nThreads(size_t n) { nthreads_ = n; } size_t Scenery::nThreads() const { return nthreads_; } void Scenery::nProcesses(size_t n) { nprocesses_ = n; } size_t Scenery::nProcesses() const { return nprocesses_; } typedef struct SceneryThreadWorkerArg { #ifdef HAVE_PTHREAD pthread_mutex_t * mutex; pthread_t * parent; #endif Screen::Coord2dSet & ij; size_t cnt, npix; Scenery *sc; Photon * ph; Astrobj::Properties *data; double * impactcoords; SceneryThreadWorkerArg(Screen::Coord2dSet & ijin); bool is_pixel; } SceneryThreadWorkerArg ; SceneryThreadWorkerArg::SceneryThreadWorkerArg(Screen::Coord2dSet & ijin) :ij(ijin) { } static void * SceneryThreadWorker (void *arg) { /* This is the real ray-tracing loop. It may be called by multiple threads in parallel, launched from ::rayTrace */ SceneryThreadWorkerArg *larg = static_cast(arg); // Each thread needs its own Photon, clone cached Photon // it is assumed to be already initialized with spectrometer et al. Photon * ph = larg -> ph; #ifdef HAVE_PTHREAD if (larg->mutex) { pthread_mutex_lock(larg->mutex); ph = larg -> ph -> clone(); pthread_mutex_unlock(larg->mutex); } #endif // local variables to store our parameters GYOTO_ARRAY ijb; GYOTO_ARRAY ad; Astrobj::Properties data; double * impactcoords = NULL; size_t count=0; while (1) { /////// 1- get input and output parameters and update them for next access //// i and j are input, data and impactcoords are where to store //// output. we must get them and increase them so that another //// thread can get the next values while we integrate. #ifdef HAVE_PTHREAD // lock mutex so we can safely read and update i, j et al. if (larg->mutex) pthread_mutex_lock(larg->mutex); #endif // copy i & j or alpha and delta if (larg->is_pixel) ijb = *(larg->ij); else ad = larg->ij.angles(); if (!larg->ij.valid()) { // terminate, but first... #ifdef HAVE_PTHREAD // ...unlock mutex so our siblings can access i & j and terminate too if (larg->mutex) pthread_mutex_unlock(larg->mutex); #endif break; } size_t lcnt = larg->cnt++; ++(larg->ij); #ifdef HAVE_PTHREAD // unlock mutex so our siblings can can access i, j et al. and procede if (larg->mutex) pthread_mutex_unlock(larg->mutex); #endif // Store current cell data = *larg->data; size_t cell=lcnt; if (larg->is_pixel && data.alloc) cell=(ijb[1]-1)*larg->npix+ijb[0]-1; data += cell; impactcoords=larg->impactcoords?larg->impactcoords+16*cell:NULL; if (larg->is_pixel) (*larg->sc)(ijb[0], ijb[1], &data, impactcoords, ph); else (*larg->sc)(ad[0], ad[1], &data, ph); ++count; } #ifdef HAVE_PTHREAD if (larg->mutex) { delete ph; pthread_mutex_lock(larg->mutex); } GYOTO_MSG << "\nThread terminating after integrating " << count << " photons"; if (larg->mutex) pthread_mutex_unlock(larg->mutex); # endif return NULL; } void Scenery::updatePhoton(){ if (screen_) { ph_.spectrometer(screen_->spectrometer()); ph_.freqObs(screen_->freqObs()); } ph_ . delta(delta_); } SmartPointer Scenery::clonePhoton(size_t i, size_t j) { updatePhoton(); double coord[8], Ephi[4], Etheta[4]; bool compute_polar_basis=false; if (ph_ . parallelTransport()) compute_polar_basis=true; screen_ -> getRayTriad(size_t(1),size_t(1), coord, compute_polar_basis, Ephi, Etheta); ph_ . setInitCoord(coord, 0, Ephi, Etheta); return ph_.clone(); } SmartPointer Scenery::clonePhoton(double a, double b) { updatePhoton(); double coord[8], Ephi[4], Etheta[4]; bool compute_polar_basis=false; if (ph_ . parallelTransport()) compute_polar_basis=true; screen_ -> getRayTriad(a, b, coord, compute_polar_basis, Ephi, Etheta); ph_ . setInitCoord(coord, 0, Ephi, Etheta); return ph_.clone(); } void Scenery::rayTrace(Screen::Coord2dSet & ij, Astrobj::Properties *data, double * impactcoords) { GYOTO_DEBUG_EXPR(am_worker); #if defined HAVE_MPI if (nprocesses_ && !mpi_team_) { mpiSpawn(nprocesses_); mpiClone(); } #endif /* Ray-trace now is multi-threaded. What it does is - some initialization - launch nthreads_ - 1 thread working on of SceneryThreadWorker - call SceneryThreadWorker itself rather than sleeping - wait for the other threads to be terminated - some housekeeping */ if (!screen_) { if (am_worker) GYOTO_ERROR("No screen, have you called mpiClone()?"); else GYOTO_ERROR("Scenery::rayTrace() needs a Screen to work on"); } screen_->computeBaseVectors(); // Necessary for KS integration, computes relation between // observer's x,y,z coord and KS X,Y,Z coord. Will be used to // compute photon's initial tangent vector. // Note : this is a BUG if this is required, should be done automagically. /// initialize photon once. It will be cloned. updatePhoton(); SmartPointer spr = screen_ -> spectrometer(); // delta is reset in operator() if (data) setPropertyConverters(data); GYOTO_ARRAY ijb; GYOTO_ARRAY ad; bool alloc=data?data->alloc:false; size_t npix=screen_->resolution(); #ifdef HAVE_MPI if (mpi_team_) { // We are in an MPI content, either the manager or a worker. // dispatch over workers and monitor if (!am_worker) { mpi_tag tag=raytrace; mpiTask(tag); } size_t nbnuobs=0; Quantity_t quantities = (am_worker || !data)?GYOTO_QUANTITY_NONE:*data; bool has_ipct=am_worker?false:bool(impactcoords); bool is_pixel=(ij.kind==Screen::pixel); mpi::broadcast(*mpi_team_, quantities, 0); mpi::broadcast(*mpi_team_, has_ipct, 0); mpi::broadcast(*mpi_team_, is_pixel, 0); if (quantities & GYOTO_QUANTITY_SPECTRAL) { if (!spr) GYOTO_ERROR("Spectral quantity requested but " "no spectrometer specified!"); nbnuobs = spr -> nSamples(); } size_t nelt= getScalarQuantitiesCount(&quantities) +nbnuobs*getSpectralQuantitiesCount(&quantities) +((quantities & GYOTO_QUANTITY_IMPACTCOORDS)?16:0); double * vect = new double[nelt]; Astrobj::Properties *locdata = new Astrobj::Properties(); size_t offset=1; size_t curquant=0; # ifdef GYOTO_USE_UDUNITS if (Scenery::am_worker) { // set all converters to the trivial one, conversion is // performed in the manager. intensity_converter_ = NULL; spectrum_converter_ = NULL; binspectrum_converter_ = NULL; setPropertyConverters(locdata); } # endif if (quantities & GYOTO_QUANTITY_INTENSITY) { locdata->intensity=vect+offset*(curquant++); } if (quantities & GYOTO_QUANTITY_EMISSIONTIME) { locdata->time=vect+offset*(curquant++); } if (quantities & GYOTO_QUANTITY_MIN_DISTANCE) { locdata->distance=vect+offset*(curquant++); } if (quantities & GYOTO_QUANTITY_FIRST_DMIN) { locdata->first_dmin=vect+offset*(curquant++); } if (quantities & GYOTO_QUANTITY_REDSHIFT) { locdata->redshift=vect+offset*(curquant++); } if (quantities & GYOTO_QUANTITY_NBCROSSEQPLANE) { locdata->nbcrosseqplane=vect+offset*(curquant++); } if (quantities & GYOTO_QUANTITY_IMPACTCOORDS) { locdata->impactcoords=vect+offset*curquant; curquant+=16; } if (quantities & GYOTO_QUANTITY_USER1) { locdata->user1=vect+offset*(curquant++); } if (quantities & GYOTO_QUANTITY_USER2) { locdata->user2=vect+offset*(curquant++); } if (quantities & GYOTO_QUANTITY_USER3) { locdata->user3=vect+offset*(curquant++); } if (quantities & GYOTO_QUANTITY_USER4) { locdata->user4=vect+offset*(curquant++); } if (quantities & GYOTO_QUANTITY_USER5) { locdata->user5=vect+offset*(curquant++); } if (quantities & GYOTO_QUANTITY_SPECTRUM) { locdata->spectrum=vect+offset*(curquant++); locdata->offset=int(offset); } if (quantities & GYOTO_QUANTITY_SPECTRUM_STOKES_Q) { locdata->stokesQ=vect+offset*(curquant++); locdata->offset=int(offset); } if (quantities & GYOTO_QUANTITY_SPECTRUM_STOKES_U) { locdata->stokesU=vect+offset*(curquant++); locdata->offset=int(offset); } if (quantities & GYOTO_QUANTITY_SPECTRUM_STOKES_V) { locdata->stokesV=vect+offset*(curquant++); locdata->offset=int(offset); } if (quantities & GYOTO_QUANTITY_BINSPECTRUM) { locdata->binspectrum=vect+offset*(curquant++); locdata->offset=int(offset); } mpi::status s; if (!am_worker) { // We are the manager int working = mpi_team_->size()-1; // First tell the workers to join our task force // The corresponding recv is in gyoto-scenery-worker.c vector cell(working+1); size_t cnt=0; while (working) { // receive one result, need to track back where it belongs and // store it there int w; // Wait for worker to ask for task. // tag may be raytrace_done if worker has result to report, // give_task if worker has no data yet. s = mpi_team_ -> recv(mpi::any_source, mpi::any_tag, vect, nelt); w = s.source(); size_t cs=cell[w]; // remember where to store results // give new task or decrease working counter if (ij.valid()) { cell[w]=cnt++; if (is_pixel) { ijb=*ij; if (alloc) cell[w]=(ijb[1]-1)*npix+ijb[0]-1; mpi_team_ -> send(w, raytrace, ijb); } else { ad = ij.angles(); mpi_team_ -> send(w, raytrace, ad); } if (impactcoords) { mpi_team_ -> send(w, Scenery::impactcoords, impactcoords+cell[w]*16, 16); } ++ij; } else { if (is_pixel) mpi_team_ -> send(w, raytrace_done, ijb); else mpi_team_ -> send(w, raytrace_done, ad); --working; } // Now that the worker is back to work, triage data it has just delivered if (s.tag()==Scenery::raytrace_done && data) { // Copy each relevant quantity, performing conversion if needed if (data->intensity) data->intensity[cs]= # ifdef GYOTO_USE_UDUNITS data->intensity_converter_? (*data->intensity_converter_)(*locdata->intensity): # endif *locdata->intensity; if (data->time) data->time[cs]=*locdata->time; if (data->distance) data->distance[cs]=*locdata->distance; if (data->first_dmin) data->first_dmin[cs]=*locdata->first_dmin; if (data->redshift) data->redshift[cs]=*locdata->redshift; if (data->nbcrosseqplane) data->nbcrosseqplane[cs]=*locdata->nbcrosseqplane; if (data->impactcoords) for (size_t k=0; k<16; ++k) data->impactcoords[cs*16+k]=locdata->impactcoords[k]; if (data->user1) data->user1[cs]=*locdata->user1; if (data->user2) data->user2[cs]=*locdata->user2; if (data->user3) data->user3[cs]=*locdata->user3; if (data->user4) data->user4[cs]=*locdata->user4; if (data->user5) data->user5[cs]=*locdata->user5; if (data->spectrum) for (size_t c=0; cspectrum[cs+c*data->offset]= # ifdef GYOTO_USE_UDUNITS data->spectrum_converter_? (*data->spectrum_converter_)(locdata->spectrum[c]): # endif locdata->spectrum[c]; if (data->binspectrum) for (size_t c=0; cbinspectrum[cs+c*data->offset]= # ifdef GYOTO_USE_UDUNITS data->binspectrum_converter_? (*data->binspectrum_converter_)(locdata->binspectrum[c]): # endif locdata->binspectrum[c]; } } if (verbose()) cout << endl; } else { // We are a worker, do we need to query for impactcoords? double ipct[16]; if (has_ipct) impactcoords=&ipct[0]; // First send dummy result, using tag "give_task". // Manager will ignore the results and send first coordinates. mpi_team_->send(0, give_task, vect, nelt); while (true) { // Receive new coordinates to work on. if (is_pixel) s = mpi_team_->recv(0, mpi::any_tag, ijb); else s = mpi_team_->recv(0, mpi::any_tag, ad); if (s.tag()==raytrace_done) { break; } // Receive impactcoords if needed if (has_ipct) s = mpi_team_->recv(0, Scenery::impactcoords, impactcoords, 16); locdata->init(nbnuobs); if (is_pixel) (*this)(ijb[0], ijb[1], locdata, impactcoords, &ph_); else (*this)(ad[0], ad[1], locdata, &ph_); // send result mpi_team_->send(0, raytrace_done, vect, nelt); } } delete locdata; delete [] vect; return; } #endif SceneryThreadWorkerArg larg(ij); larg.sc=this; larg.ph=&ph_; larg.data=data; larg.cnt=0; larg.npix=npix; larg.impactcoords=impactcoords; larg.is_pixel= (ij.kind==Screen::pixel); struct timeval tim; double start, end; gettimeofday(&tim, NULL); start=double(tim.tv_sec)+(double(tim.tv_usec)/1000000.0); #ifdef HAVE_PTHREAD larg.mutex = NULL; pthread_mutex_t mumu = PTHREAD_MUTEX_INITIALIZER; pthread_t * threads = NULL; pthread_t pself = pthread_self(); larg.parent = &pself; bool thread_safe = isThreadSafe(); if (nthreads_ >= 2) { if (!thread_safe) { GYOTO_WARNING << "Something in this Scenery is not thread-safe: running single-threaded" << endl; } else { threads = new pthread_t[nthreads_-1]; larg.mutex = &mumu; for (size_t th=0; th < nthreads_-1; ++th) { if (pthread_create(threads+th, NULL, SceneryThreadWorker, static_cast(&larg)) < 0) GYOTO_ERROR("Error creating thread"); } } } #endif // Call worker on the parent thread (*SceneryThreadWorker)(static_cast(&larg)); #ifdef HAVE_PTHREAD // Wait for the child threads if (thread_safe && nthreads_>=2) for (size_t th=0; th < nthreads_-1; ++th) pthread_join(threads[th], NULL); #endif gettimeofday(&tim, NULL); end=double(tim.tv_sec)+(double(tim.tv_usec)/1000000.0); GYOTO_MSG << "\nRaytraced "<< ij.size() << " photons in " << end-start << "s using " << (thread_safe?nthreads_:1) << " thread" << ((thread_safe && nthreads_>1)?"s":"") << endl; } void Scenery::operator() ( size_t i, size_t j, Astrobj::Properties *data, double * impactcoords, Photon *ph ) { //cout << "ij= " << i << " " << j << endl; double coord[8], Ephi[4], Etheta[4]; bool compute_polar_basis=false; if (ph_ . parallelTransport()) compute_polar_basis=true; SmartPointer spr = screen_->spectrometer(); size_t nbnuobs = spr() ? spr -> nSamples() : 0; if (data) data -> init(nbnuobs); // Initialize requested quantities to 0. or DBL_MAX if (!(*screen_)(i,j)) return; // return if pixel is masked out if (!ph) { // if Photon was passed, assume it was initiliazed already. Don't // touch its metric and astrobj. Else, update cached photon. Photon // is passed in particular when called in a multi-threaded // environment: it may really need to work on a given copy of the object. ph = &ph_; updatePhoton(); } // Always reset delta # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "reset delta" << endl; # endif ph -> delta(delta_); ph -> nb_cross_eqplane(0); // put to zero the nb of crossing of equat plane # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "init nbnuobs" << endl; # endif if (impactcoords) { if (ph -> parallelTransport()) GYOTO_ERROR("ImpactCoords is not compatible with parallel transport"); # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "impactcoords set" << endl; # endif if(impactcoords[0] != DBL_MAX) { ph -> setInitCoord(impactcoords+8, 0); ph -> resetTransmission(); state_t coord(8); ph -> getInitialCoord(coord); astrobj() -> processHitQuantities(ph,coord,impactcoords,0.,data); } } else { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "impactcoords not set" << endl; # endif screen_ -> getRayTriad(i,j, coord, compute_polar_basis, Ephi, Etheta); ph -> setInitCoord(coord, 0, Ephi, Etheta); ph -> hit(data); } } void Scenery::operator() ( double a, double d, Astrobj::Properties *data, Photon *ph ) { double coord[8], Ephi[4], Etheta[4]; bool compute_polar_basis=false; if (ph_ . parallelTransport()) compute_polar_basis=true; SmartPointer spr = screen_->spectrometer(); size_t nbnuobs = spr() ? spr -> nSamples() : 0; if (data) data -> init(nbnuobs); if (!ph) { ph = &ph_; updatePhoton(); } // Always reset delta ph -> delta(delta_); ph -> nb_cross_eqplane(0); // put to zero the nb of crossing of equat plane screen_ -> getRayTriad(a, d, coord, compute_polar_basis, Ephi, Etheta); ph -> setInitCoord(coord, 0, Ephi, Etheta); ph -> hit(data); // Check //double nbcross = 0.; //std::ofstream outfile; //std::string filename; //outfile.open((filename, "%s", "./Geodebug"+std::string(to_string(nbcross))+".txt"), std::ios_base::app); // append instead of overwrite //outfile << coord[1] << " " << coord[2] << "\n"; //outfile.close(); } SmartPointer Scenery::clonePhoton() const { return ph_.clone(); } void Scenery::setRequestedQuantities(Gyoto::Quantity_t quant) { quantities_=quant; if (quantities_ & (GYOTO_QUANTITY_SPECTRUM_STOKES_Q | GYOTO_QUANTITY_SPECTRUM_STOKES_U | GYOTO_QUANTITY_SPECTRUM_STOKES_V)) parallelTransport(true); } void Scenery::requestedQuantitiesString(std::string const &squant) { quantities_=0; char * tk = strtok(const_cast(squant.c_str()), " \t\n"); string tkk="", quant="", unit = ""; size_t first = 0, last = 0; # ifdef HAVE_UDUNITS if (screen_) screen_ -> mapPixUnit(); # endif while (tk != NULL) { tkk = tk; first = tkk.find("["); last = tkk.size() - 1; if (first < last) { unit = tkk.substr(first+1, last-first-1); quant = tkk.substr(0, first); } else { unit=""; quant=tkk; } # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "quant=" << quant << ", unit=" << unit << "." << endl; # endif tk=const_cast(quant.c_str()); if (!strcmp(tk, "Intensity")) { quantities_ |= GYOTO_QUANTITY_INTENSITY; intensityConverter(unit); } else if (!strcmp(tk, "EmissionTime")) quantities_ |= GYOTO_QUANTITY_EMISSIONTIME; else if (!strcmp(tk, "MinDistance")) quantities_ |= GYOTO_QUANTITY_MIN_DISTANCE; else if (!strcmp(tk, "FirstDistMin")) quantities_ |= GYOTO_QUANTITY_FIRST_DMIN; else if (!strcmp(tk, "Redshift")) quantities_ |= GYOTO_QUANTITY_REDSHIFT; else if (!strcmp(tk, "NbCrossEqPlane")) quantities_ |= GYOTO_QUANTITY_NBCROSSEQPLANE; else if (!strcmp(tk, "ImpactCoords")) quantities_ |= GYOTO_QUANTITY_IMPACTCOORDS; else if (!strcmp(tk, "SpectrumStokesQ")) quantities_ |= GYOTO_QUANTITY_SPECTRUM_STOKES_Q; else if (!strcmp(tk, "SpectrumStokesU")) quantities_ |= GYOTO_QUANTITY_SPECTRUM_STOKES_U; else if (!strcmp(tk, "SpectrumStokesV")) quantities_ |= GYOTO_QUANTITY_SPECTRUM_STOKES_V; else if (!strcmp(tk, "Spectrum")) { quantities_ |= GYOTO_QUANTITY_SPECTRUM; spectrumConverter(unit); } else if (!strcmp(tk, "SpectrumStokes")) { quantities_ |= GYOTO_QUANTITY_SPECTRUM_STOKES; spectrumConverter(unit); } else if (!strcmp(tk, "BinSpectrum")) { quantities_ |= GYOTO_QUANTITY_BINSPECTRUM; binSpectrumConverter(unit); } else if (!strcmp(tk, "User1")) quantities_ |= GYOTO_QUANTITY_USER1; else if (!strcmp(tk, "User2")) quantities_ |= GYOTO_QUANTITY_USER2; else if (!strcmp(tk, "User3")) quantities_ |= GYOTO_QUANTITY_USER3; else if (!strcmp(tk, "User4")) quantities_ |= GYOTO_QUANTITY_USER4; else if (!strcmp(tk, "User5")) quantities_ |= GYOTO_QUANTITY_USER5; else GYOTO_ERROR("ScenerySubcontractor(): unknown quantity"); tk = strtok(NULL, " \t\n"); } # ifdef HAVE_UDUNITS if (screen_) screen_ -> unmapPixUnit(); # endif if (quantities_ & (GYOTO_QUANTITY_SPECTRUM_STOKES_Q | GYOTO_QUANTITY_SPECTRUM_STOKES_U | GYOTO_QUANTITY_SPECTRUM_STOKES_V)) parallelTransport(true); # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "("< intensityConverter(intensity_converter_); data -> spectrumConverter(spectrum_converter_); data -> binSpectrumConverter(binspectrum_converter_); # endif } void Scenery::spectrumConverter(string unit) { # ifdef HAVE_UDUNITS // default is SI if (unit=="") unit="J.m-2.s-1.sr-1.Hz-1"; spectrum_converter_ = new Units::Converter("J.m-2.s-1.sr-1.Hz-1", unit); # else if (unit!="") GYOTO_WARNING << "Unit ignored, please recompile gyoto with --with-udunits" << endl; # endif } void Scenery::binSpectrumConverter(string unit) { # ifdef HAVE_UDUNITS // default is SI if (unit=="") unit="J.m-2.s-1.sr-1"; binspectrum_converter_ = new Units::Converter("J.m-2.s-1.sr-1", unit); # else if (unit!="") GYOTO_WARNING << "Unit ignored, please recompile gyoto with --with-udunits" << endl; # endif } std::string Scenery::requestedQuantitiesString() const { string squant = ""; Quantity_t quantities = quantities_?quantities_:(astrobj()?astrobj()->getDefaultQuantities():0); if (quantities & GYOTO_QUANTITY_INTENSITY ) squant+="Intensity "; if (quantities & GYOTO_QUANTITY_EMISSIONTIME ) squant+="EmissionTime "; if (quantities & GYOTO_QUANTITY_MIN_DISTANCE ) squant+="MinDistance "; if (quantities & GYOTO_QUANTITY_FIRST_DMIN ) squant+="FirstDistMin "; if (quantities & GYOTO_QUANTITY_REDSHIFT ) squant+="Redshift "; if (quantities & GYOTO_QUANTITY_NBCROSSEQPLANE ) squant+="NbCrossEqPlane "; if (quantities & GYOTO_QUANTITY_IMPACTCOORDS ) squant+="ImpactCoords "; if (quantities & GYOTO_QUANTITY_SPECTRUM ) squant+="Spectrum "; if (quantities & GYOTO_QUANTITY_SPECTRUM_STOKES_Q) squant+="SpectrumStokesQ "; if (quantities & GYOTO_QUANTITY_SPECTRUM_STOKES_U) squant+="SpectrumStokesU "; if (quantities & GYOTO_QUANTITY_SPECTRUM_STOKES_V) squant+="SpectrumStokesV "; if (quantities & GYOTO_QUANTITY_BINSPECTRUM ) squant+="BinSpectrum "; if (quantities & GYOTO_QUANTITY_USER1 ) squant+="User1 "; if (quantities & GYOTO_QUANTITY_USER2 ) squant+="User2 "; if (quantities & GYOTO_QUANTITY_USER3 ) squant+="User3 "; if (quantities & GYOTO_QUANTITY_USER4 ) squant+="User4 "; if (quantities & GYOTO_QUANTITY_USER5 ) squant+="User5 "; return squant; } size_t Scenery::getScalarQuantitiesCount(Quantity_t *q) const { size_t nquant=0; Quantity_t quantities; if (q) quantities=*q; else quantities=quantities_? quantities_: (astrobj()?astrobj()->getDefaultQuantities():GYOTO_QUANTITY_NONE); if (quantities & GYOTO_QUANTITY_INTENSITY ) ++nquant; if (quantities & GYOTO_QUANTITY_EMISSIONTIME ) ++nquant; if (quantities & GYOTO_QUANTITY_MIN_DISTANCE ) ++nquant; if (quantities & GYOTO_QUANTITY_FIRST_DMIN ) ++nquant; if (quantities & GYOTO_QUANTITY_REDSHIFT ) ++nquant; if (quantities & GYOTO_QUANTITY_NBCROSSEQPLANE) ++nquant; // SPECTRUM is not a SCALAR, don't add the following: // if (quantities & GYOTO_QUANTITY_SPECTRUM ) ++nquant; // if (quantities & GYOTO_QUANTITY_BINSPECTRUM ) ++nquant; // Idem IMPACTCOORDS: // if (quantities & GYOTO_QUANTITY_IMPACTCOORDS) ++nquant; if (quantities & GYOTO_QUANTITY_USER1 ) ++nquant; if (quantities & GYOTO_QUANTITY_USER2 ) ++nquant; if (quantities & GYOTO_QUANTITY_USER3 ) ++nquant; if (quantities & GYOTO_QUANTITY_USER4 ) ++nquant; if (quantities & GYOTO_QUANTITY_USER5 ) ++nquant; return nquant; } size_t Scenery::getSpectralQuantitiesCount(Quantity_t *q) const { size_t nquant=0; Quantity_t quantities; if (q) quantities=*q; else quantities=quantities_? quantities_: (astrobj()?astrobj()->getDefaultQuantities():GYOTO_QUANTITY_NONE); if (quantities & GYOTO_QUANTITY_SPECTRUM ) ++nquant; if (quantities & GYOTO_QUANTITY_SPECTRUM_STOKES_Q) ++nquant; if (quantities & GYOTO_QUANTITY_SPECTRUM_STOKES_U) ++nquant; if (quantities & GYOTO_QUANTITY_SPECTRUM_STOKES_V) ++nquant; if (quantities & GYOTO_QUANTITY_BINSPECTRUM ) ++nquant; return nquant; } double Scenery::tMin() const { return ph_.tMin(); } double Scenery::tMin(const string &unit) const { return ph_.tMin(unit); } void Scenery::tMin(double tmin) { ph_.tMin(tmin); } void Scenery::tMin(double tmin, const string &unit) { ph_.tMin(tmin, unit); } void Scenery::adaptive(bool mode) { ph_.adaptive(mode); } bool Scenery::adaptive() const { return ph_.adaptive(); } void Scenery::integrator(std::string type) {ph_.integrator(type);} std::string Scenery::integrator() const { return ph_.integrator();} double Scenery::deltaMin() const {return ph_.deltaMin();} double Scenery::deltaMax() const {return ph_.deltaMax();} void Scenery::deltaMin(double h1) {ph_.deltaMin(h1);} void Scenery::deltaMax(double h1) {ph_.deltaMax(h1);} double Scenery::deltaMaxOverR() const { return ph_.deltaMaxOverR();} void Scenery::deltaMaxOverR(double t) {ph_.deltaMaxOverR(t);} double Scenery::absTol() const {return ph_.absTol();} void Scenery::absTol(double t) {ph_.absTol(t);} double Scenery::relTol() const {return ph_.relTol();} void Scenery::relTol(double t) {ph_.relTol(t);} double Scenery::maxCrossEqplane() const {return ph_.maxCrossEqplane();} void Scenery::maxCrossEqplane(double max) {ph_.maxCrossEqplane(max);} void Scenery::secondary(bool sec) { ph_.secondary(sec); } bool Scenery::secondary() const { return ph_.secondary(); } void Scenery::integ31(bool integ) { ph_.integ31(integ); } bool Scenery::integ31() const { return ph_.integ31(); } void Scenery::parallelTransport(bool pt) { ph_.parallelTransport(pt); } bool Scenery::parallelTransport() const { return ph_.parallelTransport(); } void Scenery::maxiter(size_t miter) { ph_.maxiter(miter); } size_t Scenery::maxiter() const { return ph_.maxiter(); } bool Gyoto::Scenery::am_worker=false; void Gyoto::Scenery::mpiSpawn(int nbchildren) { GYOTO_DEBUG_EXPR(nbchildren); nprocesses_=nbchildren; #ifdef HAVE_MPI int flagi=0, flagt=0; if (MPI_Initialized(&flagi)) GYOTO_ERROR("Error running MPI_Initialized()"); if (!flagi) { GYOTO_WARNING << "MPI_Init not called yet: " << "not spawning processes" << endl; return; } if (MPI_Finalized(&flagt)) GYOTO_ERROR("Error running MPI_Finalized()"); if (flagt) { GYOTO_WARNING << "MPI_Finalize already called: " << "not spawning processes" << endl; return; } if (mpi_team_) { if (mpi_team_->size()==nbchildren+1) return; // Resizing the team: need to terminate the old team mpiTerminate(); } if (nbchildren && nbchildren != -1) { // Actually requesting to spawn processes char * exec = const_cast("gyoto-mpi-worker." GYOTO_SOVERS); MPI_Comm children_c; MPI_Comm_spawn(exec, MPI_ARGV_NULL, nbchildren, MPI_INFO_NULL, 0, MPI_COMM_SELF, &children_c, MPI_ERRCODES_IGNORE); mpi_team_ = new mpi::communicator(mpi::intercommunicator (children_c, mpi::comm_take_ownership).merge(false)); } if (nbchildren == -1) { // Requesting to use processes already existing in WORLD int wsize=0; MPI_Comm_size(MPI_COMM_WORLD, &wsize); if (wsize > 1) { nprocesses_ = wsize-1; mpi_team_ = new boost::mpi::communicator(); } } #else GYOTO_WARNING << "No MPI in this Gyoto" << endl; #endif } void Gyoto::Scenery::mpiTerminate() { #ifdef HAVE_MPI if (mpi_team_) { mpi_tag tag=terminate; mpiTask(tag); mpi_team_->barrier(); delete mpi_team_; mpi_team_=NULL; } #endif } void Gyoto::Scenery::mpiClone() { #ifdef HAVE_MPI if (!mpi_team_) return; std::string xmldata= Gyoto::Factory(this).format(); mpi_tag tag=read_scenery; mpiTask(tag); broadcast(*mpi_team_, xmldata, 0); #endif } void Gyoto::Scenery::mpiTask(mpi_tag &tag) { #ifdef HAVE_MPI if (!mpi_team_) return; mpi::broadcast(*mpi_team_, tag, 0); #endif } void Gyoto::Scenery::mpiWorker() { #ifdef HAVE_MPI MPI_Comm parent_c; MPI_Comm_get_parent(&parent_c); mpi::communicator team=(parent_c==MPI_COMM_NULL)?mpi::communicator(): mpi::intercommunicator(parent_c,mpi::comm_take_ownership).merge(true); Gyoto::SmartPointer sc = new Gyoto::Scenery(); sc -> mpi_team_ = &team; Screen::Empty empty; Scenery::mpi_tag task=Scenery::give_task; Scenery::am_worker=true; char name[MPI_MAX_PROCESSOR_NAME]; int namelen; MPI_Get_processor_name(name, &namelen); GYOTO_INFO << "Process with rank " << team.rank() << " running on " << name << " became a worker\n"; while (task != Scenery::terminate) { sc->mpiTask(task); switch (task) { case Scenery::read_scenery: { std::string parfile; broadcast(team, parfile, 0); sc = Factory(const_cast(parfile.c_str())).scenery(); sc -> mpi_team_ = &team; GYOTO_INFO << "Worker with rank " << team.rank() << " running on " << name << " received scenery\n"; break; } case Scenery::raytrace: sc -> rayTrace(empty, NULL, NULL); break; case Scenery::terminate: sc = NULL; GYOTO_INFO << "Worker with rank " << team.rank() << " running on " << name << " terminating\n"; break; default: GYOTO_SEVERE << "Worker with rank " << team.rank() << " running on " << name << " received unknown task " << task << endl; } } team.barrier(); #else GYOTO_ERROR("Gyoto was compiled without MPI support, " "Gyoto::Scenery::mpiWorker() is unavailable."); #endif } Gyoto-2.0.2/lib/SchwarzschildHarmonic.C000066400000000000000000000064561455254334400200030ustar00rootroot00000000000000/* Copyright 2021 Frederic Vincent & Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoSchwarzschildHarmonic.h" #include #include #include using namespace Gyoto; using namespace Gyoto::Metric; using namespace std; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(SchwarzschildHarmonic, "Schwarzschild in harmonic coordinates") GYOTO_PROPERTY_END(SchwarzschildHarmonic, Generic::properties) // accessors Gyoto::Metric::SchwarzschildHarmonic::SchwarzschildHarmonic() : Generic(GYOTO_COORDKIND_SPHERICAL, "SchwarzschildHarmonic") { GYOTO_DEBUG << endl; } Gyoto::Metric::SchwarzschildHarmonic::SchwarzschildHarmonic(const SchwarzschildHarmonic & orig) : Generic(orig) { GYOTO_DEBUG << endl; } // default copy constructor should be fine SchwarzschildHarmonic * SchwarzschildHarmonic::clone() const { return new SchwarzschildHarmonic(*this); } Gyoto::Metric::SchwarzschildHarmonic::~SchwarzschildHarmonic() { GYOTO_DEBUG << endl; } double SchwarzschildHarmonic::gmunu(const double * pos, int mu, int nu) const { double rr = pos[1]; if (rr<=0.) GYOTO_ERROR("In SchwarzschildHarmonic::gmunu: r<0!"); double sth2, cth2; sincos(pos[2], &sth2, &cth2); sth2*=sth2; cth2*=cth2; double r2=rr*rr; if ((mu==0) && (nu==0)) return -(rr-1.)/(rr+1.); if ((mu==1) && (nu==1)) return (rr+1.)/(rr-1.); if ((mu==2) && (nu==2)) return (rr+1)*(rr+1.); if ((mu==3) && (nu==3)) return (rr+1)*(rr+1.)*sth2; return 0.; } int SchwarzschildHarmonic::christoffel(double dst[4][4][4], double const pos[4]) const { int a, mu, nu; for (a=0; a<4; ++a) for(mu=0; mu<4; ++mu) for(nu=0; nu<4; ++nu) dst[a][mu][nu]=0.; double rr = pos[1], r2=rr*rr; double sth, cth; sincos(pos[2], &sth, &cth); if (rr==0. || sth==0.) GYOTO_ERROR("In SchwarzschildHarmonic::christoffel: " "bad coord"); dst[0][0][1]=dst[0][1][0]=1./(r2-1.); dst[1][0][0]=(rr-1.)/(r2*rr+3.*r2+3.*rr+1.); dst[2][1][2]=dst[2][2][1]=1./(rr+1.); dst[3][1][3]=dst[3][3][1]=1./(rr+1.); dst[1][1][1]=-1./(r2-1.); dst[2][3][3]=-cth*sth; dst[3][2][3]=dst[3][3][2]=cth/sth; dst[1][2][2]=-rr+1.; dst[1][3][3]=-(rr-1.)*sth*sth; return 0; } int SchwarzschildHarmonic::isStopCondition(double const * const coord) const { double rsink = 1. + GYOTO_KERR_HORIZON_SECURITY; return coord[1] < rsink ; } void SchwarzschildHarmonic::circularVelocity(double const * coor, double* vel, double dir) const { double sinth = sin(coor[2]); double rBL = coor[1]+1.; double coord[4] = {coor[0], rBL*sinth, M_PI*0.5, coor[3]}; vel[1] = vel[2] = 0.; vel[3] = 1./(dir*pow(coord[1], 1.5)); vel[0] = SysPrimeToTdot(coor, vel+1); vel[3] *= vel[0]; } Gyoto-2.0.2/lib/Screen.C000066400000000000000000001467151455254334400147340ustar00rootroot00000000000000/* Copyright 2011-2020 Thibaut Paumard, Frederic Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoScreen.h" #include "GyotoConverters.h" #include "GyotoKerrBL.h" #include #include #include #include #include #ifdef GYOTO_USE_CFITSIO #include #define throwCfitsioError(status) \ { fits_get_errstatus(status, ermsg); GYOTO_ERROR(ermsg); } #endif #ifdef HAVE_BOOST_MULTIPRECISION_CPP_DEC_FLOAT_HPP #include #endif using namespace std ; using namespace Gyoto; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(Screen, "Pin-hole camera with spectrometer.") GYOTO_PROPERTY_METRIC(Screen, Metric, metric, "It surrounds us and penetrates us; it binds the galaxy together.") GYOTO_PROPERTY_SPECTROMETER(Screen, Spectrometer, spectrometer, "Spectrometric capabilities.") GYOTO_PROPERTY_DOUBLE_UNIT(Screen, Time, time, "Observing date (seconds).") GYOTO_PROPERTY_DOUBLE_UNIT(Screen, FieldOfView, fieldOfView, "Field-of-view of the camera, in angle or length (radians).") GYOTO_PROPERTY_DOUBLE(Screen, AzimuthalFieldOfView, azimuthalFieldOfView, "Azimuthal field-of-view of the camera, for Spherical Angles images.") GYOTO_PROPERTY_DOUBLE_UNIT(Screen, PALN, PALN, "Position angle of the line of nodes of the equatorial plane (radians).") GYOTO_PROPERTY_DOUBLE_UNIT(Screen, Inclination, inclination, "Angle between the equatorial and sky planes (radians).") GYOTO_PROPERTY_DOUBLE_UNIT(Screen, Argument, argument, "Angle between the line of nodes and the Ox axis (radians).") GYOTO_PROPERTY_DOUBLE_UNIT(Screen, Dangle1, dangle1, "(radians)") GYOTO_PROPERTY_DOUBLE_UNIT(Screen, Dangle2, dangle2, "(radians)") GYOTO_PROPERTY_SIZE_T(Screen, Resolution, resolution, "Number of rows and columns.") GYOTO_PROPERTY_DOUBLE_UNIT(Screen, Distance, distance, "Distance from observer to centre of metric (meters).") GYOTO_PROPERTY_DOUBLE(Screen, DMax, dMax, "If DMaxclone(); if (o.spectro_()) spectro_ = o.spectro_ -> clone(); int i; for (i=0; i<3; ++i) { euler_[i] = o.euler_[i]; ex_[i]=o.ex_[i]; ey_[i]=o.ey_[i]; ez_[i]=o.ez_[i]; } for (int ii=0;ii<4;ii++) { fourvel_[ii]=o.fourvel_[ii]; screen1_[ii]=o.screen1_[ii]; screen2_[ii]=o.screen2_[ii]; screen3_[ii]=o.screen3_[ii]; } if (o.mask_) { mask_=new double[npix_*npix_]; memcpy(mask_, o.mask_, npix_*npix_*sizeof(double)); } } Screen * Screen::clone() const { return new Screen(*this); } bool Screen::isThreadSafe() const { return Object::isThreadSafe() && (!gg_ || gg_ -> isThreadSafe()) && (!spectro_ || spectro_ -> isThreadSafe()); } Screen::~Screen(){if (mask_) delete [] mask_;} std::ostream& Screen::print( std::ostream& o) const { o << "distance=" << distance_ << ", " ; o << "paln=" << euler_[0] << ", " ; o << "inclination=" << euler_[1] << ", " ; o << "argument=" << euler_[2] << "." << endl; return o; } /***************Definition of the physical scene**************/ void Screen::setProjection(const double paln, const double incl, const double arg) { euler_[0]=paln; euler_[1]=incl; euler_[2]=arg; computeBaseVectors(); } void Screen::setProjection(const double dist, const double paln, const double incl, const double arg) { distance_=dist; setProjection(paln, incl, arg); } void Screen::distance(double dist, const string &unit) { distance(Units::ToMeters(dist, unit, gg_)); } void Screen::distance(double dist) { distance_=dist; computeBaseVectors(); } void Screen::dMax(double dist) { dmax_ = dist; # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(dmax_); # endif } double Screen::dMax() const { return dmax_; } void Screen::PALN(double paln, const string &unit) { if ((unit=="") || (unit=="rad")); # ifdef HAVE_UDUNITS else paln = Units::Converter(unit, "rad")(paln); # else else if (unit=="degree" || unit=="°") paln *= GYOTO_DEGRAD; # endif PALN(paln); } void Screen::PALN(double paln) { euler_[0]=paln; computeBaseVectors(); } void Screen::inclination(double incl, const string &unit) { if ((unit=="") || (unit=="rad")); # ifdef HAVE_UDUNITS else incl = Units::Converter(unit, "rad")(incl); # else else if (unit=="degree" || unit=="°") incl *= GYOTO_DEGRAD; # endif inclination(incl); } void Screen::inclination(double incl) { euler_[1]=incl; computeBaseVectors(); } void Screen::argument(double arg, const string &unit) { if (unit=="" || unit=="rad"); # ifdef HAVE_UDUNITS else arg = Units::Converter(unit, "rad")(arg); # else else if (unit=="degree" || unit=="°") arg *= GYOTO_DEGRAD; # endif argument(arg); } void Screen::argument(double arg) { euler_[2]=arg; computeBaseVectors(); } void Screen::freqObs(double fo, const string &unit) { freqObs(Units::ToHerz(fo, unit)); } void Screen::freqObs(double fo) { freq_obs_=fo; GYOTO_DEBUG_EXPR(freq_obs_); } double Screen::freqObs() const { return freq_obs_; } double Screen::freqObs(const string &unit) const { return Units::FromHerz(freq_obs_, unit); } void Screen::metric(SmartPointer gg) { gg_ = gg; computeBaseVectors(); } int Screen::coordKind() const { return gg_ -> coordKind(); } double Screen::distance() const { return distance_; } double Screen::distance(const std::string& unit) const { return Units::FromMeters(distance(), unit, gg_); } double Screen::PALN() const { return euler_[0]; } double Screen::PALN(const string &unit) const { double paln = PALN(); if (unit != "" && unit != "rad" ) { # ifdef HAVE_UDUNITS paln = Units::Converter("rad", unit)(paln); #else GYOTO_WARNING << "unit ignored, please recompile with --with-udunits\n"; #endif } return paln; } double Screen::inclination() const { return euler_[1]; } double Screen::inclination(const string &unit) const { double incl = inclination(); if (unit != "" && unit != "rad" ) { # ifdef HAVE_UDUNITS incl = Units::Converter("rad", unit)(incl); #else GYOTO_WARNING << "unit ignored, please recompile with --with-udunits\n"; #endif } return incl; } double Screen::argument() const { return euler_[2]; } double Screen::argument(const string &unit) const { double arg = argument(); if (unit != "" && unit != "rad" ) { # ifdef HAVE_UDUNITS arg = Units::Converter("rad", unit)(arg); #else GYOTO_WARNING << "unit ignored, please recompile with --with-udunits\n"; #endif } return arg; } SmartPointer Screen::metric() const { return gg_; } void Screen::setObserverPos(const double coord[4]) { tobs_ = coord[0] * gg_ -> unitLength() / GYOTO_C; euler_[0]=M_PI;//Par défaut, A CHANGER SI BESOIN //dans le cas standard ex=-ephi et ephi dirige la ligne des noeuds d'où le pi //NB: c'est -pi dans mes notes, donc OK [2pi] //NB : ne décrit que la rotation de la caméra dans le plan x,y int coordkind=gg_ -> coordKind(); switch (coordkind) { case GYOTO_COORDKIND_SPHERICAL: distance_=coord[1]* gg_ -> unitLength(); //distance_=coord[1]; DEBUG euler_[1]=M_PI-coord[2]; euler_[2]=-M_PI/2-coord[3]; break; case GYOTO_COORDKIND_CARTESIAN: { double rks=sqrt(coord[1]*coord[1]+coord[2]*coord[2]+coord[3]*coord[3]); double thetaks=acos(coord[3]/rks); double phiks=atan2(coord[2],coord[1]); distance_=rks * gg_ -> unitLength(); euler_[1]=M_PI-thetaks; euler_[2]=-M_PI/2-phiks; } break; default: GYOTO_ERROR("Incompatible coordinate kind in Screen::setObserverCoord"); } computeBaseVectors(); } void Screen::observerKind(const string &kind) { if(kind == "ObserverAtInfinity") observerkind_ = GYOTO_OBSKIND_ATINFINITY; else if(kind == "KeplerianObserver") observerkind_ = GYOTO_OBSKIND_KEPLERIAN; else if(kind == "ZAMO") observerkind_ = GYOTO_OBSKIND_ZAMO; else if(kind == "VelocitySpecified") observerkind_ = GYOTO_OBSKIND_VELOCITYSPECIFIED; else if(kind == "FullySpecified") observerkind_ = GYOTO_OBSKIND_FULLYSPECIFIED; else throwError("unknown observer kind"); } string Screen::observerKind() const { switch (observerkind_) { case GYOTO_OBSKIND_ATINFINITY: return "ObserverAtInfinity"; case GYOTO_OBSKIND_KEPLERIAN: return "KeplerianObserver"; case GYOTO_OBSKIND_ZAMO: return "ZAMO"; case GYOTO_OBSKIND_VELOCITYSPECIFIED: return "VelocitySpecified"; case GYOTO_OBSKIND_FULLYSPECIFIED: return "FullySpecified"; default: throwError("unknown observer kind tag"); } return "will not reach here, this line to avoid compiler warning"; } void Screen::setFourVel(const double coord[4]) { for (int ii=0;ii<4;ii++) fourvel_[ii]=coord[ii]; } void Screen::fourVel(std::vector const &coord) { if (coord.size() != 4) GYOTO_ERROR("base screen vectors require 4 elements"); for (int ii=0;ii<4;ii++) fourvel_[ii]=coord[ii]; } std::vector Screen::fourVel() const { std::vector output(4, 0.); for (int ii=0;ii<4;ii++) output[ii]=fourvel_[ii]; return output; } void Screen::screenVector1(std::vector const &coord) { if (coord.size() != 4) GYOTO_ERROR("base screen vectors require 4 elements"); for (int ii=0;ii<4;ii++) screen1_[ii]=coord[ii]; } std::vector Screen::screenVector1() const { std::vector output(4, 0.); for (int ii=0;ii<4;ii++) output[ii]=screen1_[ii]; return output; } void Screen::screenVector2(std::vector const &coord) { if (coord.size() != 4) GYOTO_ERROR("base screen vectors require 4 elements"); for (int ii=0;ii<4;ii++) screen2_[ii]=coord[ii]; } std::vector Screen::screenVector2() const { std::vector output(4, 0.); for (int ii=0;ii<4;ii++) output[ii]=screen2_[ii]; return output; } void Screen::screenVector3(std::vector const &coord) { if (coord.size() != 4) GYOTO_ERROR("base screen vectors require 4 elements"); for (int ii=0;ii<4;ii++) screen3_[ii]=coord[ii]; } std::vector Screen::screenVector3() const { std::vector output(4, 0.); for (int ii=0;ii<4;ii++) output[ii]=screen3_[ii]; return output; } void Screen::setScreen1(const double coord[4]) { for (int ii=0;ii<4;ii++) screen1_[ii]=coord[ii]; } void Screen::setScreen2(const double coord[4]) { for (int ii=0;ii<4;ii++) screen2_[ii]=coord[ii]; } void Screen::setScreen3(const double coord[4]) { for (int ii=0;ii<4;ii++) screen3_[ii]=coord[ii]; } void Screen::getObserverPos(double coord[]) const { double r0 = distance_ / gg_ -> unitLength(); //remark : Pb here if mass=0 (unitLength=0...) -> pb for flat metric //if (debug()) cout << "distance_ in screen= " << distance_ << endl; //double r0 = distance_ ;DEBUG double theta0 = M_PI-euler_[1]; double phi0 = -M_PI/2-euler_[2]; int coordkind = gg_ -> coordKind(); stringstream ss; switch (coordkind) { case GYOTO_COORDKIND_CARTESIAN: coord[0] = tobs_ * GYOTO_C / gg_ -> unitLength(); coord[1] = r0*cos(phi0)*sin(theta0); coord[2] = r0*sin(phi0)*sin(theta0); coord[3] = r0*cos(theta0); break; case GYOTO_COORDKIND_SPHERICAL: coord[0] = tobs_ * GYOTO_C / gg_ -> unitLength(); coord[1] = r0; coord[2] = theta0; coord[3] = phi0; break; default: ss << "Incompatible coordinate kind in Screen::getObserverPos: " << coordkind; GYOTO_ERROR(ss.str()); } } void Screen::getFourVel(double fourvel[]) const{ for (int ii=0;ii<4;ii++) fourvel[ii]=fourvel_[ii]; } void Screen::getScreen1(double output[]) const{ for (int ii=0;ii<4;ii++) output[ii]=screen1_[ii]; } void Screen::getScreen2(double output[]) const{ for (int ii=0;ii<4;ii++) output[ii]=screen2_[ii]; } void Screen::getScreen3(double output[]) const{ for (int ii=0;ii<4;ii++) output[ii]=screen3_[ii]; } /* SPECTROMETER */ void Screen::spectrometer(SmartPointer spr) { spectro_=spr; } SmartPointer Screen::spectrometer() const { return spectro_; } void Screen::getRayTriad(const size_t i, const size_t j, double coord[], bool compute_polar_basis, double Ephi[4], double Etheta[4]) const { double xscr, yscr; # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "(i=" << i << ", j=" << j << ", coord)" << endl; # endif switch (anglekind_) { case Screen::spherical_angles:{ /* GYOTO screen labelled by spherical angles a and b (see Fig. in user guide) */ xscr = double(i-1)*fov_/(2.*double(npix_-1)); yscr = M_PI-(double(j-1)*azimuthal_fov_/double(npix_-1)); // NB: here xscr and yscr are the spherical angles // a and b ; the b->pi-b transformation boils down // to performing X->-X, just as below for equat angles. break; } case Screen::equatorial_angles:{ /* GYOTO screen labelled by equatorial angles alpha and delta (see Fig. in user guide) */ const double delta= fov_/double(npix_); yscr=delta*(double(j)-double(npix_+1)/2.); xscr=-delta*(double(i)-double(npix_+1)/2.); break; } // transforming X->-X (X being coord along e_1 observer vector) // this is due to the orientation convention of the screen // (cf InitialConditions.pdf) case Screen::rectilinear: { if (fov_ >= M_PI) GYOTO_ERROR("Rectilinear projection requires fov_ < M_PI"); const double xfov=2.*tan(fov_*0.5); const double delta= xfov/double(npix_); yscr=delta*(double(j)-double(npix_+1)/2.); xscr=-delta*(double(i)-double(npix_+1)/2.); break; } default: xscr=yscr=0.; GYOTO_ERROR("Unrecognized anglekind_"); } getRayTriad(xscr, yscr, coord, compute_polar_basis, Ephi, Etheta); } void Screen::getRayTriad(double angle1, double angle2, double coord[], bool compute_polar_basis, double Ephi[4], double Etheta[4]) const { double normtol=1e-10; int i; // dimension : 0, 1, 2 double pos[4]; # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "(angle1="<unitLength(); if (robs > dmax_) { // scale coord[0] -= robs - dmax_; double scale = robs / dmax_; switch(gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: coord[1] = dmax_; break; case GYOTO_COORDKIND_CARTESIAN: coord[1] /= scale; coord[2] /= scale; coord[3] /= scale; break; default: throwError("Unimplemented coordkind"); } angle1 *= scale; angle2 *= scale; } coord[4]=coord[5]=coord[6]=coord[7]=0.;//initializing 4-velocity double spherical_angle_a, spherical_angle_b; switch (anglekind_) { case spherical_angles: /* GYOTO screen labelled by spherical angles a and b (see Fig. in user guide) */ spherical_angle_a = angle1+dangle1_; spherical_angle_b = angle2+dangle2_; break; case rectilinear: spherical_angle_a = atan(sqrt(angle1*angle1+angle2*angle2)); spherical_angle_b = atan2(angle2, angle1); break; case equatorial_angles: /* GYOTO screen labelled by equatorial angles alpha and delta (see Fig. in user guide) Must compute spherical angles a and b from these. */ /* NB: spherical_angles = spherical angles associated with the orthonormal 3-frame of the observer's local rest space */ /* NBB: for spherical_angle_a, the relation comes from the spherical law of cosines of spherical trigonometry, the arcs spherical_angle_a, alpha and delta forming a spherical triangle, with alpha othogonal to delta. NBBB: for spherical_angle_b, the relation also comes from the spherical law of cosine. --> Following transformations are OK even for non-small alpha, delta */ #ifdef HAVE_BOOST_MULTIPRECISION_CPP_DEC_FLOAT_HPP // using boost multiprecision to avoid information loss in trigonometry { boost::multiprecision::cpp_dec_float_100 angle1100=angle1, angle2100=angle2, a, b; a=acos(cos(angle1100)*cos(angle2100)); b=atan2(tan(angle2100),sin(angle1100)); spherical_angle_a=a.convert_to(); spherical_angle_b=b.convert_to(); } #else if (abs(angle1)<1e-6 || abs(angle2) < 1e-6) { spherical_angle_a = sqrt(angle1*angle1+angle2*angle2); } else { spherical_angle_a = acos(cos(angle1)*cos(angle2)); } spherical_angle_b = (angle1==0. && angle2==0.) ? 0. : atan2(tan(angle2),sin(angle1)); #endif break; default: spherical_angle_a=spherical_angle_b=0.; GYOTO_ERROR("Unknown angle type"); } // Move these two angles to [0,pi], [0,2pi] double s1tmp=spherical_angle_a, s2tmp=spherical_angle_b; while (s1tmp>M_PI) s1tmp-=2.*M_PI; while (s1tmp<-M_PI) s1tmp+=2.*M_PI;//then s1 in [-pi,pi] if (s1tmp<0.) { s1tmp=-s1tmp;//then s1 in [0,pi] s2tmp+=M_PI;//thus, same direction } while (s2tmp>=2.*M_PI) s2tmp-=2.*M_PI; while (s2tmp<0.) s2tmp+=2.*M_PI;//then s2 in [0,2pi[ spherical_angle_a=s1tmp; spherical_angle_b=s2tmp; /* Tangent vector of incident photon in observer's local frame vel is thus orthogonal to observer's 4-velocity vel = vel[0]*screen1_+vel[1]*screen2_+vel[2]*screen3_ where screen1,2,3_ is a triad in observer's rest space */ //NB: following minus signs because the photon doesn't leave the screen, but //is heading towards it! double vel[3]={-sin(spherical_angle_a)*cos(spherical_angle_b), -sin(spherical_angle_a)*sin(spherical_angle_b), -cos(spherical_angle_a)}; if (anglekind_ != spherical_angles) { // Rotate around Y by dangle1, then around new X by dangle2 double c, s; sincos(dangle1_, &s, &c); double vel_rot[3]={c*vel[0]+s*vel[2], vel[1], -s*vel[0]+c*vel[2]}; sincos(dangle2_, &s, &c); vel[0]=vel_rot[0]; vel[1]=c*vel_rot[1]-s*vel_rot[2]; vel[2]=s*vel_rot[1]+c*vel_rot[2]; if (observerkind_!=GYOTO_OBSKIND_ATINFINITY){ // Apply PALN sincos(M_PI-euler_[0], &s, &c); vel_rot[1]=vel[1]; vel_rot[2]=vel[2]; vel[0]=(c*vel_rot[0]-s*vel_rot[1]); vel[1]=(s*vel_rot[0]+c*vel_rot[1]); } } // 4-vector tangent to photon geodesic if (observerkind_==GYOTO_OBSKIND_ATINFINITY){ /* ---> Observer local frame not given in XML <--- Assume observer static at infinity ("standard Gyoto") Treatment depending on coordinate system */ switch (gg_ -> coordKind()) { case GYOTO_COORDKIND_CARTESIAN: { double rr=coord[1]*coord[1]+ coord[2]*coord[2]+ coord[3]*coord[3], rinf=20.; // this rinf is just a very crude test // I take rinf=10*rhor in Sch metric if (rrgmunu(pos,1,1), gthth=gg_->gmunu(pos,2,2), gphph=gg_->gmunu(pos,3,3); coord[5]=-vel[2]/sqrt(grr); double sp=sin(euler_[0]); double cp=cos(euler_[0]); coord[6]=(-sp*vel[0]+cp*vel[1])/sqrt(gthth); coord[7]=( cp*vel[0]+sp*vel[1])/sqrt(gphph); } break; default: GYOTO_ERROR("Incompatible coordinate kind in Screen::getRayTriad()"); break; } // 0-component of photon tangent 4-vector found by normalizing gg_ -> nullifyCoord(coord); } else { /* ---> Observer local frame given in XML <--- Express photon tangent 4-vector in the observer basis Treatment is coordinate independent (except for z-axis check right below) */ if (gg_ -> coordKind() == GYOTO_COORDKIND_SPHERICAL){ if (coord[2]==0. || coord[2]==M_PI) GYOTO_ERROR("Please move Screen away from z-axis"); } // Implemented observer specifid in XML, local tetrad computed by Metric const double fourpos[4]={coord[0],coord[1],coord[2],coord[3]}; double fourvel[4], screen1[4], screen2[4], screen3[4]; memcpy(fourvel, fourvel_, 4*sizeof(double)); memcpy(screen1, screen1_, 4*sizeof(double)); memcpy(screen2, screen2_, 4*sizeof(double)); memcpy(screen3, screen3_, 4*sizeof(double)); gg_ -> observerTetrad(observerkind_,fourpos,fourvel,screen1, screen2,screen3); /* Photon tagent 4-vector l defined by: l = p + fourvel_ where p gives the direction of the photon in the observer's rest space (orthogonal to fourvel). Here we choose the particular tangent 4-vector l that satisfies l.fourvel_=-1 Then l = fourvel_ + (orthogonal proj of l onto rest space) = fourvel_ + p and p = vel[0]*screen1_ + vel[1]*screen2_ + vel[2]*screen3_ with p.p = 1, thus l.l = 0 as it should */ coord[4]=vel[0]*screen1[0] +vel[1]*screen2[0] +vel[2]*screen3[0] +fourvel[0]; coord[5]=vel[0]*screen1[1] +vel[1]*screen2[1] +vel[2]*screen3[1] +fourvel[1]; coord[6]=vel[0]*screen1[2] +vel[1]*screen2[2] +vel[2]*screen3[2] +fourvel[2]; coord[7]=vel[0]*screen1[3] +vel[1]*screen2[3] +vel[2]*screen3[3] +fourvel[3]; } if (fabs(gg_->ScalarProd(coord,coord+4,coord+4))>normtol){ GYOTO_SEVERE << "In Screen::getRayTriad: " << "tangent 4-vector to photon not properly normalized: " << "norm = " << gg_->ScalarProd(coord,coord+4,coord+4) << endl; } if (compute_polar_basis==true){ switch (gg_ -> coordKind()) { case GYOTO_COORDKIND_SPHERICAL: { double ca, sa; sincos(spherical_angle_a, &sa, &ca); double cb, sb; sincos(spherical_angle_b, &sb, &cb); double Ephi_screenBasis[3] = {-sb*sb*(1-ca)-ca, sb*cb*(1-ca), cb*sa}; double Etheta_screenBasis[3] = {-sb*cb*(1-ca), (cb*cb*(1-ca)+ca), -sb*sa}; double cp, sp; sincos(euler_[0], &sp, &cp); if (observerkind_==GYOTO_OBSKIND_ATINFINITY){ double grr=gg_->gmunu(coord,1,1), gthth=gg_->gmunu(coord,2,2), gphph=gg_->gmunu(coord,3,3); // Ephi Ephi[0]=0.; Ephi[1]=-Ephi_screenBasis[2]/sqrt(grr); Ephi[2]=(-sp*Ephi_screenBasis[0] +cp*Ephi_screenBasis[1])/sqrt(gthth); Ephi[3]=( cp*Ephi_screenBasis[0] +sp*Ephi_screenBasis[1])/sqrt(gphph); // Etheta Etheta[0]=0.; Etheta[1]=-Etheta_screenBasis[2]/sqrt(grr); Etheta[2]=(-sp*Etheta_screenBasis[0] +cp*Etheta_screenBasis[1])/sqrt(gthth); Etheta[3]=( cp*Etheta_screenBasis[0] +sp*Etheta_screenBasis[1])/sqrt(gphph); //cout << "In Screen init Ephi= " << Ephi[0] << " " << Ephi[1] << " " << coord[1]*Ephi[2] << " " << coord[1]*abs(sin(coord[2]))*Ephi[3] << endl; //cout << "In Screen init Etheta= " << Etheta[0] << " " << Etheta[1] << " " << coord[1]*Etheta[2] << " " << coord[1]*abs(sin(coord[2]))*Etheta[3] << endl; //throwError("test Eth"); }else{ throwError("Observer should be at infinity"); } // double k_phi = gg_->gmunu(coord,3,3)*coord[7] // + gg_->gmunu(coord,0,3)*coord[4]; // phi covariant compo // // of tangent vector to null geodesic // double ktheta = coord[6]; // double rr = coord[1]; // double sth=sin(coord[2]); // if (sth==0.) // GYOTO_ERROR("Please move Screen away from z-axis"); // double rsm1 = 1./(rr*sth); // double sp=sin(euler_[0]); // double cp=cos(euler_[0]); // // Ephi // Ephi[0]=0.; // Ephi[1]=-k_phi*rsm1; // Ephi[2]=sp/rr; // Ephi[3]=-cp*rsm1; // // Etheta // Etheta[0]=0.; // Etheta[1]=rr*ktheta; // Etheta[2]=cp/rr; // Etheta[3]=sp*rsm1; break; } default: GYOTO_ERROR("Non implemented coord kind for polarization"); } } } /************** MASK ******************/ void Screen::mask(double const * const mm, size_t res) { if (res) npix_=res; if (mask_) { delete[] mask_; mask_=NULL; mask_filename_=""; } if (mm) { mask_ = new double[npix_*npix_]; memcpy(mask_, mm, npix_*npix_*sizeof(double)); } } double const * Screen::mask() const { return mask_; } void Screen::maskFile(std::string const &fname) { # ifdef GYOTO_USE_CFITSIO if (fname != "") fitsReadMask(fname); # else GYOTO_WARNING << "No FITS i/o, Screen mask file ignored" << endl; # endif } std::string Screen::maskFile() const {return mask_filename_;} #ifdef GYOTO_USE_CFITSIO void Screen::fitsReadMask(std::string const &filename) { GYOTO_DEBUG << "Screen::fitsReadMask(\"" << filename << "\")"<(filename.c_str()); fitsfile* fptr = NULL; int status = 0; int anynul = 0; long naxes [] = {1, 1, 1}; long fpixel[] = {1, 1, 1}; long inc [] = {1, 1, 1}; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() if (fits_open_file(&fptr, pixfile, 0, &status)) { GYOTO_WARNING << "Unable to read Screen mask file '" << filename << "', ignoring." << endl; return; } if (fits_get_img_size(fptr, 3, naxes, &status)) throwCfitsioError(status) ; if (naxes[0] != naxes[1]) GYOTO_ERROR("Screen::fitsReadMask(): mask must be square"); // if (naxes[2] > 1) // GYOTO_ERROR("Screen::fitsReadMask(): mask must have only one plane"); npix_=naxes[0]; if (mask_) { delete[] mask_; mask_=NULL; mask_filename_="";} mask_ = new double[npix_*npix_]; inc[2]=naxes[2]; // read only first plane! if (fits_read_subset(fptr, TDOUBLE, fpixel, naxes, inc, 0, mask_,&anynul,&status)) { GYOTO_DEBUG << " error, trying to free pointer" << endl; delete [] mask_; mask_=NULL; throwCfitsioError(status) ; } if (fits_close_file(fptr, &status)) throwCfitsioError(status) ; mask_filename_=filename; fptr = NULL; } void Screen::fitsWriteMask(string const &fname) { std::string filename = fname==""?mask_filename_:fname; if (filename=="") filename=mask_filename_; if (filename=="") GYOTO_ERROR("no filename specified"); if (!mask_) GYOTO_ERROR("Screen::fitsWriteMask(filename): nothing to save!"); char* pixfile = const_cast(filename.c_str()); fitsfile* fptr = NULL; int status = 0; long naxes [] = {long(npix_), long(npix_)}; long fpixel[] = {1,1}; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() ////// CREATE FILE GYOTO_DEBUG << "creating file \"" << pixfile << "\"... "; fits_create_file(&fptr, pixfile, &status); if (debug()) cerr << "done." << endl; fits_create_img(fptr, DOUBLE_IMG, 2, naxes, &status); if (status) throwCfitsioError(status) ; ////// SAVE EMISSION IN PRIMARY HDU /////// GYOTO_DEBUG << "saving emission_\n"; fits_write_pix(fptr, TDOUBLE, fpixel, npix_*npix_, mask_, &status); if (status) throwCfitsioError(status) ; ////// CLOSING FILE /////// GYOTO_DEBUG << "close FITS file\n"; if (fits_close_file(fptr, &status)) throwCfitsioError(status) ; mask_filename_=filename; fptr = NULL; } #endif bool Screen::operator()(size_t i, size_t j) { GYOTO_DEBUG << "i=" << i << ", j=" << j << endl; if ( i<=0 || i> npix_ || j>npix_ || j<=0) GYOTO_ERROR("wrong index"); if (!mask_) return true; return mask_[i-1+npix_*(j-1)]; } void Screen::computeBaseVectors() { // See http://en.wikipedia.org/wiki/Euler_angles // if (debug()) cout << "In compute base vectore" << endl; double ca, sa; sincos(euler_[0], &sa, &ca); // paln double cb, sb; sincos(euler_[1], &sb, &cb); // inclination double cc, sc; sincos(euler_[2], &sc, &cc); // argument double unit = 1.;//1./distance_; //NB: here x,y,z are KS coordinates ex_[0] = unit*( ca*cc - sa*cb*sc);//component of KS vector eX along observer East direction ex ex_[1] = unit*( sa*cc + ca*cb*sc);//component of KS vector eX along observer North direction ey ex_[2] = unit*( sb*sc);//etc... ey_[0] = unit*(-ca*sc - sa*cb*cc); ey_[1] = unit*(-sa*sc + ca*cb*cc); ey_[2] = unit*( sb*cc); ez_[0] = unit*( sb*sa); ez_[1] = unit*(-sb*ca); ez_[2] = unit*( cb); } void Screen::coordToSky(const double pos[4], double skypos[3], bool geometrical) const { double xyz[3]; coordToXYZ(pos, xyz); double ul = geometrical?1.:gg_ -> unitLength(); skypos[0]=(xyz[0]*ex_[0]+xyz[1]*ey_[0]+xyz[2]*ez_[0]) * ul; skypos[1]=(xyz[0]*ex_[1]+xyz[1]*ey_[1]+xyz[2]*ez_[1]) * ul; skypos[2]=(xyz[0]*ex_[2]+xyz[1]*ey_[2]+xyz[2]*ez_[2]) * ul; } void Screen::skyToCoord(const double skypos[3], double pos[4], bool geometrical) const { // convert from m to ug double ulm1 = geometrical?1.:1./gg_ -> unitLength(); double alpha=skypos[0]*ulm1, delta=skypos[1]*ulm1, zobs=skypos[2]*ulm1; // rotate from sky frame to BH frame in Cartesian coordinates double ca, sa; sincos(euler_[0], &sa, &ca); double cb, sb; sincos(euler_[1], &sb, &cb); double cc, sc; sincos(euler_[2], &sc, &cc); double xyz[3]; xyz[0]=(-cb*sa*sc+ca*cc)*alpha+(ca*cb*sc+cc*sa)*delta+sb*sc*zobs; xyz[1]=(-cb*cc*sa-ca*sc)*alpha+(ca*cb*cc-sa*sc)*delta+cc*sb*zobs; xyz[2]=sa*sb*alpha-ca*sb*delta+cb*zobs; // possibly convert to spherical switch (gg_->coordKind()) { case GYOTO_COORDKIND_CARTESIAN: pos[1]=xyz[0]; pos[2]=xyz[1]; pos[3]=xyz[2]; break; case GYOTO_COORDKIND_SPHERICAL: cartesianToSpherical(xyz, pos+1); break; default: GYOTO_ERROR("Unimplemented coordinate kind in Screen::skyToCoord"); } } std::ostream & Screen::printBaseVectors(std::ostream &o) const { o << endl; o << setprecision(3) << setw(8) << ex_[0] << ", " << setprecision(3) << setw(8) << ey_[0] << ", " << setprecision(3) << setw(8) << ez_[0] << endl; o << setprecision(3) << setw(8) << ex_[1] << ", " << setprecision(3) << setw(8) << ey_[1] << ", " << setprecision(3) << setw(8) << ez_[1] << endl; o << setprecision(3) << setw(8) << ex_[2] << ", " << setprecision(3) << setw(8) << ey_[2] << ", " << setprecision(3) << setw(8) << ez_[2] << endl; return o ; } /***************Useful functions**************/ void Screen::coordToXYZ(const double pos[4], double xyz[3]) const { int coordkind = gg_ -> coordKind(); switch(coordkind) { case GYOTO_COORDKIND_SPHERICAL: xyz[0] = pos[1]*sin(pos[2])*cos(pos[3]); xyz[1] = pos[1]*sin(pos[2])*sin(pos[3]); xyz[2] = pos[1]*cos(pos[2]); break; case GYOTO_COORDKIND_CARTESIAN: xyz[0] = pos[1]; xyz[1] = pos[2]; xyz[2] = pos[3]; break; default: GYOTO_ERROR("Incompatible coordinate kind in Screen::coordToXYZ"); break; } } double Screen::time() const { return tobs_ ; } double Screen::time(const string &unit) const { return Units::FromSeconds(time(), unit, gg_) ; } void Screen::time(double tobs, const string &unit) { # ifdef GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(tobs); GYOTO_DEBUG_EXPR(unit); # endif time(Units::ToSeconds(tobs, unit, gg_)); } void Screen::time(double tobs) { tobs_ = tobs; # ifdef GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(tobs_); # endif } //double Screen::getMinimumTime() { return tmin_; } //void Screen::setMinimumTime(double tmin) { tmin_ = tmin; } double Screen::fieldOfView() const { return fov_; } double Screen::fieldOfView(string const &unit) const { double fov = fieldOfView(); if (unit=="" || unit=="rad") ; else if (unit=="geometrical") fov *= distance_ / gg_ -> unitLength(); # ifdef HAVE_UDUNITS else if (Units::areConvertible(unit, "m")) fov = Units::FromMeters(fov*distance_, unit) ; else fov = Units::Converter("rad", unit)(fov); # else else if (unit=="degree") fov /= GYOTO_DEGRAD; else if (unit=="arcmin") fov /= GYOTO_MINRAD; else if (unit=="arcsec") fov /= GYOTO_SECRAD; else if (unit=="milliarcsec") fov /= GYOTO_MASRAD; else if (unit=="microarcsec") fov /= GYOTO_MUASRAD; else { stringstream ss; ss << "Screen::fieldOfView(): unknown unit: \"" << unit << "\"" << " (you may have more chance compiling gyoto with --with-udunits)"; GYOTO_ERROR(ss.str()); } # endif return fov; } void Screen::fieldOfView(double fov, const string &unit) { if (unit=="" || unit=="rad") ; else if (unit=="geometrical") fov *= gg_ -> unitLength() / distance_ ; # ifdef HAVE_UDUNITS else { Units::Unit from (unit); if (Units::areConvertible(from, "m")) fov = Units::ToMeters(fov, from) / distance_; else fov = Units::Converter(from, "rad")(fov); } # else else if (unit=="degree" || unit=="°") fov *= GYOTO_DEGRAD; else if (unit=="arcmin") fov *= GYOTO_MINRAD; else if (unit=="arcsec" || unit=="as") fov *= GYOTO_SECRAD; else if (unit=="milliarcsec" || unit=="mas") fov *= GYOTO_MASRAD; else if (unit=="microarcsec" || unit=="µas" || unit=="uas") fov *= GYOTO_MUASRAD; else { stringstream ss; ss << "Screen::fieldOfView(): unknown unit: \"" << unit << "\"" << " (you may have more chance compiling gyoto with --with-udunits)"; GYOTO_ERROR(ss.str()); } # endif fieldOfView(fov); } void Screen::fieldOfView(double fov) { fov_ = fov; } double Screen::azimuthalFieldOfView() const {return azimuthal_fov_;} void Screen::azimuthalFieldOfView(double fov) {azimuthal_fov_ = fov;} void Screen::dangle1(double aa) { dangle1_ = aa; } double Screen::dangle1() const { return dangle1_; } void Screen::dangle2(double bb) { dangle2_ = bb; } double Screen::dangle2() const { return dangle2_; } double Screen::dangle1(string const &unit) const { double fov = dangle1(); if (unit=="" || unit=="rad") ; else if (unit=="geometrical") fov *= distance_ / gg_ -> unitLength(); # ifdef HAVE_UDUNITS else if (Units::areConvertible(unit, "m")) fov = Units::FromMeters(fov*distance_, unit) ; else fov = Units::Converter("rad", unit)(fov); # else else if (unit=="degree") fov /= GYOTO_DEGRAD; else if (unit=="arcmin") fov /= GYOTO_MINRAD; else if (unit=="arcsec") fov /= GYOTO_SECRAD; else if (unit=="milliarcsec") fov /= GYOTO_MASRAD; else if (unit=="microarcsec") fov /= GYOTO_MUASRAD; else { stringstream ss; ss << "Screen::dangle1(): unknown unit: \"" << unit << "\"" << " (you may have more chance compiling gyoto with --with-udunits)"; GYOTO_ERROR(ss.str()); } # endif return fov; } double Screen::dangle2(string const &unit) const{ double fov = dangle2(); if (unit=="" || unit=="rad") ; else if (unit=="geometrical") fov *= distance_ / gg_ -> unitLength(); # ifdef HAVE_UDUNITS else if (Units::areConvertible(unit, "m")) fov = Units::FromMeters(fov*distance_, unit) ; else fov = Units::Converter("rad", unit)(fov); # else else if (unit=="degree") fov /= GYOTO_DEGRAD; else if (unit=="arcmin") fov /= GYOTO_MINRAD; else if (unit=="arcsec") fov /= GYOTO_SECRAD; else if (unit=="milliarcsec") fov /= GYOTO_MASRAD; else if (unit=="microarcsec") fov /= GYOTO_MUASRAD; else { stringstream ss; ss << "Screen::dangle2(): unknown unit: \"" << unit << "\"" << " (you may have more chance compiling gyoto with --with-udunits)"; GYOTO_ERROR(ss.str()); } # endif return fov; } void Screen::dangle1(double fov, const string &unit) { if (unit=="" || unit=="rad") ; else if (unit=="geometrical") fov *= gg_ -> unitLength() / distance_ ; # ifdef HAVE_UDUNITS else { Units::Unit from (unit); if (Units::areConvertible(from, "m")) fov = Units::ToMeters(fov, from) / distance_; else fov = Units::Converter(from, "rad")(fov); } # else else if (unit=="degree" || unit=="°") fov *= GYOTO_DEGRAD; else if (unit=="arcmin") fov *= GYOTO_MINRAD; else if (unit=="arcsec" || unit=="as") fov *= GYOTO_SECRAD; else if (unit=="milliarcsec" || unit=="mas") fov *= GYOTO_MASRAD; else if (unit=="microarcsec" || unit=="µas" || unit=="uas") fov *= GYOTO_MUASRAD; else { stringstream ss; ss << "Screen::fieldOfView(): unknown unit: \"" << unit << "\"" << " (you may have more chance compiling gyoto with --with-udunits)"; GYOTO_ERROR(ss.str()); } # endif dangle1(fov); } void Screen::dangle2(double fov, const string &unit) { if (unit=="" || unit=="rad") ; else if (unit=="geometrical") fov *= gg_ -> unitLength() / distance_ ; # ifdef HAVE_UDUNITS else { Units::Unit from (unit); if (Units::areConvertible(from, "m")) fov = Units::ToMeters(fov, from) / distance_; else fov = Units::Converter(from, "rad")(fov); } # else else if (unit=="degree" || unit=="°") fov *= GYOTO_DEGRAD; else if (unit=="arcmin") fov *= GYOTO_MINRAD; else if (unit=="arcsec" || unit=="as") fov *= GYOTO_SECRAD; else if (unit=="milliarcsec" || unit=="mas") fov *= GYOTO_MASRAD; else if (unit=="microarcsec" || unit=="µas" || unit=="uas") fov *= GYOTO_MUASRAD; else { stringstream ss; ss << "Screen::fieldOfView(): unknown unit: \"" << unit << "\"" << " (you may have more chance compiling gyoto with --with-udunits)"; GYOTO_ERROR(ss.str()); } # endif dangle2(fov); } void Screen::anglekind(int kind) { anglekind_ = kind; } void Screen::anglekind(std::string const &skind) { if (skind=="EquatorialAngles") anglekind_=equatorial_angles; else if (skind=="SphericalAngles") anglekind_=spherical_angles; else if (skind=="Rectilinear") anglekind_=rectilinear; else GYOTO_ERROR("Invalid string value for anglekind_"); } std::string Screen::anglekind() const { switch (anglekind_) { case equatorial_angles: return "EquatorialAngles"; break; case spherical_angles: return "SphericalAngles"; break; case rectilinear: return "Rectilinear"; break; default: GYOTO_ERROR("Invalid integer value for Screen::anglekind_"); } return ""; // silence warning } size_t Screen::resolution() const { return npix_; } void Screen::resolution(size_t n) { if (mask_ && n != npix_) { GYOTO_INFO << "Changing resolution: deleting mask" << endl; delete[] mask_; mask_=NULL; } npix_ = n; } #ifdef HAVE_UDUNITS void Gyoto::Screen::mapPixUnit() { Units::Unit radian ("radian"); double delta = fov_/double(npix_); ut_unit * pix = ut_scale(delta, radian); ut_status status = UT_BAD_ARG; status = ut_map_name_to_unit("pixel", UT_ASCII, pix); switch (status) { case UT_SUCCESS: break; case UT_EXISTS: GYOTO_ERROR("name \"pixel\" already registered"); break; default: GYOTO_ERROR("error initializing \"pixel\" unit"); } status = ut_map_symbol_to_unit("pix", UT_ASCII, pix); switch (status) { case UT_SUCCESS: break; case UT_EXISTS: GYOTO_ERROR("symbol \"pix\" already registered"); break; default: GYOTO_ERROR("error initializing \"pixel\" unit"); } ut_free(pix); # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "\"pix\" unit mapped\n"; # endif } void Gyoto::Screen::unmapPixUnit() { ut_system * sys = Units::getSystem(); if ((ut_unmap_name_to_unit(sys, "pixel", UT_ASCII) != UT_SUCCESS) || (ut_unmap_symbol_to_unit(sys, "pix", UT_ASCII) != UT_SUCCESS)) GYOTO_ERROR("Error unmapping \"pixel\" unit"); # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "\"pix\" unit unmapped\n"; # endif } #endif #ifdef GYOTO_USE_XERCES void Screen::fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const { if (p.name=="Distance") { FactoryMessenger* child = NULL; double d = distance(); if (gg_() && (gg_->mass() == 1.)) { d /= gg_->unitLength(); fmp -> setParameter ("Distance", &d, 1, &child); child -> setSelfAttribute("unit", "geometrical"); } else { string unit = "m"; if ( d >= GYOTO_KPC*1e3 ) { unit = "Mpc"; d = Units::FromMeters(d, unit, gg_);} else if (d >= GYOTO_KPC ) { unit = "kpc"; d = Units::FromMeters(d, unit, gg_);} else if (d >= GYOTO_KPC*1e-3 ) { unit = "pc"; d = Units::FromMeters(d, unit, gg_);} else if (d >= GYOTO_LIGHT_YEAR) { unit = "ly"; d = Units::FromMeters(d, unit, gg_);} else if (d >= GYOTO_ASTRONOMICAL_UNIT) { unit = "AU"; d = Units::FromMeters(d, unit, gg_);} else if (d >= GYOTO_SUN_RADIUS) { unit = "sunradius"; d = Units::FromMeters(d, unit, gg_);} else if (d >= 1e3) { unit = "km"; d = Units::FromMeters(d, unit, gg_);} else if (d >= 1.) ;// { d *= 1.; unit = "m";} else if (d >= 1e-2) { unit = "cm"; d = Units::FromMeters(d, unit, gg_);} //else ; { d *= 1.; unit = "m";} fmp -> setParameter ("Distance", &d, 1, &child); child -> setSelfAttribute("unit", unit); } child -> setSelfAttribute("dmax", dmax_); delete child; child = NULL; } else if (p.name=="DMax") ; // do nothing else if (p.name=="Mask" && mask_filename_!="") fmp->setParameter("Mask", (mask_filename_.compare(0,1,"!") ? mask_filename_ : mask_filename_.substr(1))); else Object::fillProperty(fmp, p); } SmartPointer Screen::Subcontractor(FactoryMessenger* fmp) { string name="", content="", unit="", tunit="", aunit="", dunit=""; vector plugin; SmartPointer scr = new Screen(); if (!fmp) return scr; scr -> metric(fmp->metric()); int tobs_found=0; double tobs_tmp, pos[4] ; char * tc; // Deal with fov later as we need Inclination double fov; string fov_unit; int fov_found=0; double dangle1=0.; int dangle1_found=0; double dangle2=0.; int dangle2_found=0; while (fmp->getNextParameter(&name, &content, &unit)) { tc = const_cast(content.c_str()); # ifdef GYOTO_DEBUG_ENABLED GYOTO_IF_DEBUG GYOTO_DEBUG_EXPR(name); GYOTO_DEBUG_EXPR(content); GYOTO_DEBUG_EXPR(unit); GYOTO_ENDIF_DEBUG # endif if (name=="Time") {tobs_tmp = Gyoto::atof(tc); tunit=unit; tobs_found=1;} else if (name=="Position") { if (FactoryMessenger::parseArray(content, pos, 4) != 4) GYOTO_ERROR("Screen \"Position\" requires exactly 4 tokens"); scr -> setObserverPos (pos); } else if (name=="Distance") { scr -> distance ( Gyoto::atof(tc), unit ); string dmax = fmp -> getAttribute("dmax"); if (dmax != "") scr -> dMax(Gyoto::atof(dmax.c_str())); } else if (name=="FieldOfView") { fov = Gyoto::atof(tc); fov_unit=unit; fov_found=1; } else if (name=="Spectrometer") { scr -> spectrometer((Spectrometer::getSubcontractor(fmp->getAttribute("kind"), plugin)) (fmp->getChild(), plugin)); } else if (name=="Dangle1"){ dangle1 = Gyoto::atof(tc); dangle1_found=1; aunit=unit; } else if (name=="Dangle2"){ dangle2 = Gyoto::atof(tc); dangle2_found=1; dunit=unit; } else if (name=="SphericalAngles" || name=="EquatorialAngles" || name=="Rectilinear") scr -> anglekind(name); else if (name=="Mask") scr -> maskFile(content==""?"":fmp->fullPath(content)); else if (scr->setParameter(name, content, unit)) GYOTO_ERROR("no such Screen Property"); } // Must be processed after Position if (tobs_found) scr -> time ( tobs_tmp, tunit ); // Must be processed after Position and Distance so pix_unit is // defined if (fov_found) scr -> fieldOfView ( fov, fov_unit ); if (dangle1_found) scr -> dangle1(dangle1, aunit); if (dangle2_found) scr -> dangle2(dangle2, dunit); # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(scr->dMax()); # endif return scr; } #endif //////// COORD2DSET Screen::Coord2dSet::Coord2dSet(CoordType_e k) : kind(k) {} Screen::Coord2dSet::~Coord2dSet() {} GYOTO_ARRAY Screen::Coord2dSet::operator* () const { if (kind==pixel) GYOTO_ERROR("BUG: Coord2dSet of kind pixel should implement operator*"); else GYOTO_ERROR("Coord2dSet of kind angle should not be dereferenced"); // avoid warning GYOTO_ARRAY a; return a; } GYOTO_ARRAY Screen::Coord2dSet::angles () const { if (kind==Screen::angle) GYOTO_ERROR("BUG: Coord2dSet of kind angle should implement angles()"); else GYOTO_ERROR("angles() should not be called on Coord2dSet of kind pixel"); // avoid warning GYOTO_ARRAY a; return a; } //////// GRID Screen::Grid::Grid(Coord1dSet &iset, Coord1dSet &jset, const char * const p) : Coord2dSet(pixel), prefix_(NULL), iset_(iset), jset_(jset) { if (p) { size_t sz=strlen(p)+1; prefix_ = new char[sz]; memcpy(prefix_, p, sz*sizeof(char)); } } Screen::Grid::~Grid(){ if (prefix_) delete[] prefix_; } GYOTO_ARRAY Screen::Grid::operator* () const { #if defined HAVE_BOOST_ARRAY_HPP GYOTO_ARRAY ij = {*iset_, *jset_}; #else GYOTO_ARRAY ij; ij[0]=*iset_; ij[1]=*jset_; #endif return ij; } void Screen::Grid::begin() {iset_.begin(); jset_.begin();} bool Screen::Grid::valid() {return iset_.valid() && jset_.valid();} size_t Screen::Grid::size() {return (iset_.size())*(jset_.size());} Screen::Coord2dSet& Screen::Grid::operator++() { if (!valid()) return *this; ++iset_; if (!iset_.valid()) { iset_.begin(); ++jset_; if (prefix_ && verbose() >= GYOTO_QUIET_VERBOSITY && jset_.valid()) cout << prefix_ << jset_.index()+1 << "/" << jset_.size() << flush; } return *this; } //////// COORD1DSET Screen::Coord1dSet::Coord1dSet(CoordType_e k) : kind(k) {} Screen::Coord1dSet::~Coord1dSet() {} size_t Screen::Coord1dSet::operator* () const { if (kind==pixel) GYOTO_ERROR("BUG: Coord1dSet of kind pixel should implement operator*"); else GYOTO_ERROR("Coord1dSet of kind angle should not be dereferenced"); // avoid warning return 0; } double Screen::Coord1dSet::angle () const { if (kind==Screen::angle) GYOTO_ERROR("BUG: Coord1dSet of kind angle should implement angle()"); else GYOTO_ERROR("angle() should not be called on Coord1dSet of kind pixel"); // avoid warning return 0.; } /////// Screen::Range::Range(size_t mi, size_t ma, size_t d) : Coord1dSet(pixel), mi_(mi), ma_(ma), d_(d), sz_((ma-mi)/d+1), cur_(mi) {} void Screen::Range::begin() {cur_=mi_;} Screen::Coord1dSet& Screen::Range::operator++() { cur_ += d_; return *this; } bool Screen::Range::valid() {return cur_ <= ma_;} size_t Screen::Range::size() {return sz_;} size_t Screen::Range::operator*() const {return cur_;} size_t Screen::Range::index() const {return (cur_-mi_) / d_;} ////// Screen::Indices::Indices (size_t const*const buf, size_t sz) : Coord1dSet(pixel), indices_(NULL), sz_(sz), i_(0) { if (!buf) return; indices_ = new size_t[sz]; memcpy(indices_, buf, sz*sizeof(size_t)); } Screen::Indices::~Indices(){ if (!indices_) return; delete[] indices_; } void Screen::Indices::begin() {i_=0;} bool Screen::Indices::valid() {return i_ < sz_;} size_t Screen::Indices::size(){return sz_;} Screen::Coord1dSet& Screen::Indices::operator++() {++i_; return *this;} size_t Screen::Indices::operator*() const {return indices_[i_];} size_t Screen::Indices::index() const {return i_;} ///// Screen::Angles::Angles (double const*const buf, size_t sz) : Coord1dSet(Screen::angle), buf_(NULL), sz_(sz), i_(0) { if (!buf) return; buf_ = new double[sz]; memcpy(buf_, buf, sz*sizeof(double)); } Screen::Angles::~Angles(){ if (!buf_) return; delete[] buf_; } void Screen::Angles::begin() {i_=0;} bool Screen::Angles::valid() {return i_ Screen::Bucket::angles() const { #if defined HAVE_BOOST_ARRAY_HPP GYOTO_ARRAY out {alpha_.angle(), delta_.angle()}; #else GYOTO_ARRAY out; out[0]=alpha_.angle(); out[1]=delta_.angle(); #endif return out; } GYOTO_ARRAY Screen::Bucket::operator* () const { #if defined HAVE_BOOST_ARRAY_HPP GYOTO_ARRAY ij = {*alpha_, *delta_}; #else GYOTO_ARRAY ij; ij[0]=*alpha_; ij[1]=*delta_; #endif return ij; } ///// Empty Screen::Empty::Empty () : Coord2dSet(pixel) {} Screen::Coord2dSet& Screen::Empty::operator++() {return *this;} void Screen::Empty::begin() {} bool Screen::Empty::valid() {return false;} size_t Screen::Empty::size() {return 0;} Gyoto-2.0.2/lib/Shift.C000066400000000000000000000113451455254334400145600ustar00rootroot00000000000000/* Copyright 2020 Thibaut Paumard & Frédéric Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoShift.h" #include "GyotoError.h" #include "GyotoProperty.h" using namespace std ; using namespace Gyoto ; using namespace Gyoto::Metric ; //// Property list: // // Note that none of those lines ends with punctation. "," and ";" are // added by the macros where needed. Three steps: // 1- GYOTO_PROPERTY_START() // 2- For each Property we want to support, a line such as: // GYOTO_PROPERTY_(, , ) // Note that the BOOL type is a bit special: the argument // is replaced by two arguments: and // . // 3- GYOTO_PROPERTY_END(, ) // //// GYOTO_PROPERTY_START(Shift, "Shift space-time.") GYOTO_PROPERTY_METRIC(Shift, SubMetric, subMetric, "The underlying space-time to shift.") GYOTO_PROPERTY_VECTOR_DOUBLE(Shift, Offset, offset, "Amount by which to shift (4 components).") GYOTO_PROPERTY_END(Shift, Generic::properties) // This is the minimal constructor: it just sets the coordinate kind and // the metric kind name. Shift::Shift() : Generic(GYOTO_COORDKIND_CARTESIAN, "Shift"), submet_(NULL) {for (int i=0; i<4; ++i) offset_[i]=0.;} Shift* Shift::clone() const { return new Shift(*this); } Shift::~Shift(){ if (submet_) submet_->unhook(this); } SmartPointer Shift::subMetric() const { return submet_; } void Shift::subMetric(SmartPointer submet) { if (submet_) submet_->unhook(this); submet_=submet; if (submet_) { submet_->hook(this); mass(submet_->mass()); } } void Shift::mass(double m) { submet_->mass(m); // hook system will also set mass_; } void Shift::tell(Hook::Teller* msg) { if (msg==submet_) Generic::mass(submet_->mass()); } void Shift::offset(std::vector const &v) { GYOTO_DEBUG_EXPR(v.size()); if (v.size() !=4) GYOTO_ERROR("Shift offset needs exactly 4 tokens"); for (int i=0; i<4; ++i) offset_[i]=v[i]; } std::vector Shift::offset() const { std::vector res(4, 0.); for (int i=0; i<4; ++i) res[i]=offset_[i]; return res; } void Shift::gmunu(double g[4][4], const double pos[4]) const { double spos[4] = {pos[0]-offset_[0], pos[1]-offset_[1], pos[2]-offset_[2], pos[3]-offset_[3]}; submet_->gmunu(g,spos); } void Shift::gmunu_up(double gup[4][4], const double pos[4]) const { double spos[4] = {pos[0]-offset_[0], pos[1]-offset_[1], pos[2]-offset_[2], pos[3]-offset_[3]}; submet_->gmunu_up(gup,spos); } void Shift::jacobian(double jac[4][4][4], const double pos[4]) const { double spos[4] = {pos[0]-offset_[0], pos[1]-offset_[1], pos[2]-offset_[2], pos[3]-offset_[3]}; submet_->jacobian(jac,spos); } int Shift::isStopCondition(double const coord[8]) const { double scoord[8] = {coord[0]-offset_[0], coord[1]-offset_[1], coord[2]-offset_[2], coord[3]-offset_[3], coord[4], coord[5], coord[6], coord[7]}; return submet_->isStopCondition(scoord); } #ifdef GYOTO_USE_XERCES void Shift::fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const { if (p.type == Property::metric_t && submet_) { FactoryMessenger * childfmp = fmp -> makeChild ( "SubMetric" ); submet_ -> fillElement(childfmp); delete childfmp; } else Object::fillProperty(fmp, p); } void Shift::setParameters(FactoryMessenger *fmp) { GYOTO_DEBUG << std::endl; std::string name="", content="", unit=""; std::vector plugin; FactoryMessenger * child = NULL; while (fmp->getNextParameter(&name, &content, &unit)) { GYOTO_DEBUG_EXPR(name); if (name=="SubMetric") { content = fmp -> getAttribute("kind"); plugin = split(fmp -> getAttribute("plugin"), ","); child = fmp -> getChild(); subMetric ((*Metric::getSubcontractor(content, plugin))(child, plugin)); delete child; } else setParameter(name, content, unit); } GYOTO_DEBUG << "done" << std::endl; } #endif Gyoto-2.0.2/lib/SmartPointer.C000066400000000000000000000037411455254334400161330ustar00rootroot00000000000000/* Copyright 2011-2012, 2014, 2020 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include #include #include #include #include Gyoto::SmartPointee::SmartPointee() : refCount (0) { #ifdef HAVE_PTHREAD pthread_mutex_init(&mutex_, NULL); #endif } Gyoto::SmartPointee::~SmartPointee() { GYOTO_DEBUG << typeid(*this).name() << ": refCount=" << refCount << std::endl; } Gyoto::SmartPointee::SmartPointee(const SmartPointee&o) : refCount (0) { #ifdef HAVE_PTHREAD pthread_mutex_init(&mutex_, NULL); #endif } void Gyoto::SmartPointee::incRefCount () { #ifdef HAVE_PTHREAD pthread_mutex_lock(&mutex_); #endif refCount++; GYOTO_DEBUG << typeid(*this).name() << ": refCount=" << refCount << std::endl; #ifdef HAVE_PTHREAD pthread_mutex_unlock(&mutex_); #endif } int Gyoto::SmartPointee::decRefCount () { #ifdef HAVE_PTHREAD pthread_mutex_lock(&mutex_); int n = --refCount; GYOTO_DEBUG << typeid(*this).name() << ": refCount=" << refCount << std::endl; pthread_mutex_unlock(&mutex_); return n; #else GYOTO_DEBUG << typeid(*this).name() << ": refCount=" << refCount-1 << std::endl; return --refCount; #endif } int Gyoto::SmartPointee::getRefCount() { #ifdef HAVE_PTHREAD pthread_mutex_lock(&mutex_); int n = refCount; pthread_mutex_unlock(&mutex_); return n; #else return refCount; #endif } Gyoto-2.0.2/lib/Spectrometer.C000066400000000000000000000113331455254334400161540ustar00rootroot00000000000000/* Copyright 2011-2016 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoSpectrometer.h" #include "GyotoUniformSpectrometer.h" #include "GyotoComplexSpectrometer.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoConverters.h" #include "GyotoMetric.h" #include #include #include #include #include #include #include // DBL_MAX using namespace Gyoto; using namespace Gyoto::Spectrometer; using namespace std; /// Properties // There is no generic properties for spectrometers. Nevertheless, we // define this to derived classes can point to // Spectrometer::Generic::properties rather than Object::properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(Spectrometer::Generic, "Spectrometric capabilities of a Gyoto::Screen.") GYOTO_PROPERTY_END(Spectrometer::Generic, Object::properties) /// Register::Entry* Gyoto::Spectrometer::Register_ = NULL; void Spectrometer::initRegister() { if (Gyoto::Spectrometer::Register_) delete Gyoto::Spectrometer::Register_; Gyoto::Spectrometer::Register_ = NULL; // statically fill the register Gyoto::Spectrometer::Register("wave", &(Subcontractor)); Gyoto::Spectrometer::Register("wavelog", &(Subcontractor)); Gyoto::Spectrometer::Register("freq", &(Subcontractor)); Gyoto::Spectrometer::Register("freqlog", &(Subcontractor)); Gyoto::Spectrometer::Register("Complex", &(Subcontractor)); } void Gyoto::Spectrometer::Register(std::string name, Subcontractor_t* scp){ Register::Entry* ne = new Register::Entry(name, (SmartPointee::Subcontractor_t*)scp, Gyoto::Spectrometer::Register_); Gyoto::Spectrometer::Register_ = ne; } GYOTO_GETSUBCONTRACTOR(Spectrometer) Generic::Generic() : SmartPointee(), Object(), Teller(), kindid_(NULL), nsamples_(0), nboundaries_(0), boundaries_(NULL), chanind_(NULL), midpoints_(NULL), widths_(NULL) {} Generic::Generic(kind_t kin) : SmartPointee(), Object(kin), Teller(), kindid_(kin), nsamples_(0), nboundaries_(0), boundaries_(NULL), chanind_(NULL), midpoints_(NULL), widths_(NULL) {} Generic::Generic(const Generic& o) : SmartPointee(o), Object(o), Teller(o), kindid_(o.kindid_), nsamples_(o.nsamples_), nboundaries_(o.nboundaries_), boundaries_(NULL), chanind_(NULL), midpoints_(NULL), widths_(NULL) { if (o.boundaries_) boundaries_=new double[nboundaries_]; memcpy(boundaries_, o.boundaries_, nboundaries_*sizeof(double)); if (o.widths_) widths_=new double[nsamples_]; memcpy(widths_, o.widths_, nsamples_*sizeof(double)); if (o.midpoints_) midpoints_=new double[nsamples_]; memcpy(midpoints_, o.midpoints_, nsamples_*sizeof(double)); if (o.chanind_) chanind_=new size_t[2*nsamples_]; memcpy(chanind_, o.chanind_, 2*nsamples_*sizeof(size_t)); } Generic::~Generic() { if (boundaries_) delete [] boundaries_; if (widths_) delete [] widths_; if (midpoints_) delete [] midpoints_; if (chanind_) delete [] chanind_; } char const * Generic::kindid() const {return kindid_;} void Generic::kindid(char const * k) {kindid_=k; kind_=k; tellListeners();} size_t Generic::nSamples() const { return nsamples_; } size_t Generic::getNBoundaries() const { return nboundaries_; } double const * Generic::getMidpoints() const { return midpoints_; } void Generic::getMidpoints( double data[], std::string unit) { for (size_t i=0; i. */ #include "GyotoSpectrum.h" #include "GyotoRegister.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include #include using namespace Gyoto; using namespace std; /// Properties // There is no generic properties for spectra. Nevertheless, we define // this to derived classes can point to Spectrum::Generic::properties // rather than Object::properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(Spectrum::Generic) GYOTO_PROPERTY_END(Spectrum::Generic, Object::properties) /// Spectrum::Generic::Generic() : SmartPointee(), Object() {} Spectrum::Generic::Generic(const string kin) : SmartPointee(), Object(kin) {} Spectrum::Generic::Generic(const Generic& o) : SmartPointee(o), Object(o) {} Spectrum::Generic * Spectrum::Generic::clone() const { string msg = "Spectrum::clone() called: " "cloning unimplemented for Spectrum kind "; msg += kind_; GYOTO_ERROR(msg); return const_cast(this); // avoid warning, we won't get to that point } Spectrum::Generic::~Generic() { GYOTO_DEBUG << endl; } double Spectrum::Generic::integrate(double nu1, double nu2) { double nu; if (nu1>nu2) {nu=nu1; nu1=nu2; nu2=nu;} double Inu1 = operator()(nu1), Inu2=operator()(nu2); double dnux2 = ((nu2-nu1)*2.); double Icur = (Inu2+Inu1)*dnux2*0.25; double Iprev; if (debug()) cerr << "DEBUG: Spectrum::Generic::integrate(): " << "Icur=" << Icur << endl; do { Iprev = Icur; dnux2 *= 0.5; for (nu = nu1 + 0.5*dnux2; nu < nu2; nu += dnux2) { Icur += operator()(nu) * dnux2; } Icur *= 0.5; if (debug()) cerr << "DEBUG: Spectrum::Generic::integrate(): " << "Icur=" << Icur << endl; } while( fabs(Icur-Iprev) > (1e-2 * Icur) ); if (debug()) cerr << "DEBUG: Spectrum::Generic::integrate(): " << "dnu=" << dnux2*0.5 << "=(nu2-nu1)/" << (nu2-nu1)/(dnux2*0.5) << endl; return Icur; } double Spectrum::Generic::integrate(double nu1, double nu2, const Spectrum::Generic * opacity, double dsem) { double nu; if (nu1>nu2) {nu=nu1; nu1=nu2; nu2=nu;} double Inu1 = operator()(nu1, (*opacity)(nu1), dsem), Inu2=operator()(nu2, (*opacity)(nu2), dsem); double dnux2 = ((nu2-nu1)*2.); double Icur = (Inu2+Inu1)*dnux2*0.25; double Iprev; if (debug()) cerr << "DEBUG: Spectrum::Generic::integrate(): " << "Icur=" << Icur << endl; do { Iprev = Icur; dnux2 *= 0.5; for (nu = nu1 + 0.5*dnux2; nu < nu2; nu += dnux2) { Icur += operator()(nu, (*opacity)(nu), dsem) * dnux2; } Icur *= 0.5; if (debug()) cerr << "DEBUG: Spectrum::Generic::integrate(): " << "Icur=" << Icur << endl; } while( fabs(Icur-Iprev) > (1e-2 * Icur) ); if (debug()) cerr << "DEBUG: Spectrum::Generic::integrate(): " << "dnu=" << dnux2*0.5 << "=(nu2-nu1)/" << (nu2-nu1)/(dnux2*0.5) << endl; return Icur; } double Spectrum::Generic::operator()(double nu, double opacity, double ds) const { double thickness; // assume emissivity = opacity if ((thickness=(opacity*ds))) return operator()(nu) * (1. - exp (-thickness)) ; return 0.; } Register::Entry* Gyoto::Spectrum::Register_ = NULL; void Gyoto::Spectrum::Register(std::string name, Gyoto::Spectrum::Subcontractor_t* scp) { Register::Entry* ne = new Register::Entry(name, (Gyoto::SmartPointee::Subcontractor_t*)scp, Gyoto::Spectrum::Register_); Gyoto::Spectrum::Register_ = ne; } GYOTO_GETSUBCONTRACTOR(Spectrum) void Gyoto::Spectrum::initRegister() { if (Gyoto::Spectrum::Register_) delete Gyoto::Spectrum::Register_; Gyoto::Spectrum::Register_ = NULL; } Gyoto-2.0.2/lib/SphericalAccretion.C000066400000000000000000000267321455254334400172530ustar00rootroot00000000000000/* Copyright 2021 Frederic Vincent & Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoPhoton.h" #include "GyotoSphericalAccretion.h" #include "GyotoProperty.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrBL.h" #include "GyotoKerrKS.h" #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; GYOTO_PROPERTY_START(SphericalAccretion) GYOTO_PROPERTY_DOUBLE(SphericalAccretion, SphericalAccretionInnerRadius, sphericalAccretionInnerRadius) GYOTO_PROPERTY_DOUBLE_UNIT(SphericalAccretion, NumberDensityAtInnerRadius, numberDensityAtInnerRadius) GYOTO_PROPERTY_DOUBLE(SphericalAccretion, DensitySlope, densitySlope) GYOTO_PROPERTY_DOUBLE(SphericalAccretion, TemperatureAtInnerRadius, temperatureAtInnerRadius) GYOTO_PROPERTY_DOUBLE(SphericalAccretion, TemperatureSlope, temperatureSlope) GYOTO_PROPERTY_DOUBLE(SphericalAccretion, MagnetizationParameter, magnetizationParameter) GYOTO_PROPERTY_BOOL(SphericalAccretion, UseSelfAbsorption, NoUseSelfAbsorption, useSelfAbsorption) GYOTO_PROPERTY_END(SphericalAccretion, Standard::properties) // ACCESSORS bool SphericalAccretion::useSelfAbsorption() const {return use_selfabsorption_;} void SphericalAccretion::useSelfAbsorption(bool abs) {use_selfabsorption_=abs;} void SphericalAccretion::sphericalAccretionInnerRadius(double hh) {sphericalAccretionInnerRadius_=hh;} double SphericalAccretion::sphericalAccretionInnerRadius()const{return sphericalAccretionInnerRadius_;} double SphericalAccretion::numberDensityAtInnerRadius() const { // Converts internal cgs central enthalpy to SI double dens=numberDensityAtInnerRadius_cgs_; # ifdef HAVE_UDUNITS dens = Units::Converter("cm-3", "m-3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif return dens; } double SphericalAccretion::numberDensityAtInnerRadius(string const &unit) const { double dens = numberDensityAtInnerRadius(); if (unit != "") { # ifdef HAVE_UDUNITS dens = Units::Converter("m-3", unit)(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif } return dens; } void SphericalAccretion::numberDensityAtInnerRadius(double dens) { # ifdef HAVE_UDUNITS dens = Units::Converter("m-3", "cm-3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif numberDensityAtInnerRadius_cgs_=dens; } void SphericalAccretion::numberDensityAtInnerRadius(double dens, string const &unit) { if (unit != "") { # ifdef HAVE_UDUNITS dens = Units::Converter(unit, "m-3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif } numberDensityAtInnerRadius(dens); } void SphericalAccretion::densitySlope(double ss) {densitySlope_=ss;} double SphericalAccretion::densitySlope()const{return densitySlope_;} void SphericalAccretion::temperatureAtInnerRadius(double tt) {temperatureAtInnerRadius_=tt;} double SphericalAccretion::temperatureAtInnerRadius()const{return temperatureAtInnerRadius_;} void SphericalAccretion::temperatureSlope(double ss) {temperatureSlope_=ss;} double SphericalAccretion::temperatureSlope()const{return temperatureSlope_;} void SphericalAccretion::magnetizationParameter(double rr) { magnetizationParameter_=rr;} double SphericalAccretion::magnetizationParameter()const{ return magnetizationParameter_;} // SphericalAccretion::SphericalAccretion() : Standard("SphericalAccretion"), sphericalAccretionInnerRadius_(2.), numberDensityAtInnerRadius_cgs_(1.), temperatureAtInnerRadius_(1e10), temperatureSlope_(1.), densitySlope_(2.), magnetizationParameter_(1.), use_selfabsorption_(1) { GYOTO_DEBUG << endl; spectrumThermalSynch_ = new Spectrum::ThermalSynchrotron(); } SphericalAccretion::SphericalAccretion(const SphericalAccretion& o) : Standard(o), sphericalAccretionInnerRadius_(o.sphericalAccretionInnerRadius_), numberDensityAtInnerRadius_cgs_(o.numberDensityAtInnerRadius_cgs_), temperatureAtInnerRadius_(o.temperatureAtInnerRadius_), temperatureSlope_(o.temperatureSlope_), densitySlope_(o.densitySlope_), magnetizationParameter_(o.magnetizationParameter_), spectrumThermalSynch_(NULL), use_selfabsorption_(o.use_selfabsorption_) { GYOTO_DEBUG << endl; if (gg_) gg_->hook(this); if (o.spectrumThermalSynch_()) spectrumThermalSynch_=o.spectrumThermalSynch_->clone(); } SphericalAccretion* SphericalAccretion::clone() const { return new SphericalAccretion(*this); } SphericalAccretion::~SphericalAccretion() { GYOTO_DEBUG << endl; if (gg_) gg_->unhook(this); } void SphericalAccretion::radiativeQ(double Inu[], // output double Taunu[], // output double const nu_ems[], size_t nbnu, // input double dsem, state_t const &coord_ph, double const coord_obj[8]) const { double rr, rcyl, theta, zz=0.; switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rr = coord_ph[1]; rcyl = coord_ph[1]*sin(coord_ph[2]); theta = coord_ph[2]; zz = coord_ph[1]*cos(coord_ph[2]); break; case GYOTO_COORDKIND_CARTESIAN: rcyl = pow(coord_ph[1]*coord_ph[1]+coord_ph[2]*coord_ph[2], 0.5); rr = sqrt(coord_ph[1]*coord_ph[1]+coord_ph[2]*coord_ph[2] +coord_ph[3]*coord_ph[3]); theta = acos(coord_ph[3]/rr); zz = coord_ph[3]; break; default: GYOTO_ERROR("In SphericalAccretion::radiativeQ(): Unknown coordinate system kind"); } double number_density = numberDensityAtInnerRadius_cgs_ *pow(sphericalAccretionInnerRadius_/rr, densitySlope_); //*(sphericalAccretionInnerRadius_*sphericalAccretionInnerRadius_)/(rr*rr); //cout << "Spherical r, z, rho= " << rcyl << " " << zz << " " << number_density << endl; double temperature = temperatureAtInnerRadius_ *pow(sphericalAccretionInnerRadius_/rr, temperatureSlope_); double thetae = GYOTO_BOLTZMANN_CGS*temperature /(GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS); double BB = sqrt(4.*M_PI*magnetizationParameter_ *GYOTO_PROTON_MASS_CGS * GYOTO_C_CGS * GYOTO_C_CGS *number_density); double nu0 = GYOTO_ELEMENTARY_CHARGE_CGS*BB /(2.*M_PI*GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS); // cyclotron freq //cout << "emission stuff: " << sphericalAccretionInnerRadius_ << " " << rr << " " << number_density << " " << temperature << " " << BB << endl; // Emission and absorption synchrotron coefs double jnu_synch[nbnu], anu_synch[nbnu]; for (size_t ii=0; iitemperature(temperature); spectrumThermalSynch_->numberdensityCGS(number_density); spectrumThermalSynch_->angle_averaged(1); // impose angle-averaging spectrumThermalSynch_->angle_B_pem(0.); // so we don't care about angle spectrumThermalSynch_->cyclotron_freq(nu0); double besselK2 = bessk(2, 1./thetae); spectrumThermalSynch_->besselK2(besselK2); //cout << "besselK: " << besselK2 << endl; //cout << "nu passed to synchro= " << nu_ems[0] << endl; spectrumThermalSynch_->radiativeQ(jnu_synch,anu_synch, nu_ems,nbnu); // RETURNING TOTAL INTENSITY AND TRANSMISSION for (size_t ii=0; ii1e9){ // cout << "anu, jnu= " << anu_tot << " " << jnu_tot << endl; //} double em1=std::expm1(-anu_tot * dsem * gg_->unitLength()); Taunu[ii] = em1+1.; Inu[ii] = anu_tot == 0. ? jnu_tot * dsem * gg_->unitLength() : -jnu_tot / anu_tot * em1; if (Inu[ii]<0.) GYOTO_ERROR("In SphericalAccretion::radiativeQ: Inu<0"); if (Inu[ii]!=Inu[ii] or Taunu[ii]!=Taunu[ii]) GYOTO_ERROR("In SphericalAccretion::radiativeQ: Inu or Taunu is nan"); if (Inu[ii]==Inu[ii]+1. or Taunu[ii]==Taunu[ii]+1.) GYOTO_ERROR("In SphericalAccretion::radiativeQ: Inu or Taunu is infinite"); } } double SphericalAccretion::operator()(double const coord[4]) { // zpos: modulus of altitude above equatorial plane // rproj: radius projected in the equatorial plane double rr; switch (gg_ -> coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rr = coord[1]; break; case GYOTO_COORDKIND_CARTESIAN: rr = sqrt(coord[1]*coord[1]+coord[2]*coord[2]+coord[3]*coord[3]); break; default: GYOTO_ERROR("SphericalAccretion::operator(): unknown COORDKIND"); } return sphericalAccretionInnerRadius_ - rr; // >0 outside, <0 inside } void SphericalAccretion::getVelocity(double const pos[4], double vel[4]) { double rr = pos[1]; double gtt = gg_->gmunu(pos,0,0), grr = gg_->gmunu(pos,1,1), guptt = gg_->gmunu_up(pos,0,0), guptp = gg_->gmunu_up(pos,0,3), guprr = gg_->gmunu_up(pos,1,1); // 4-vel obtained by imposing: u_t=-1, u_phi=0, u^theta=0 // see FV notes SphericalVelocity.pdf for details vel[0] = -guptt; vel[1] = -sqrt((-1.-guptt)*guprr); vel[2] = 0; vel[3] = -guptp; // CHECKS double tol=1e-4; // DEBUG: compare to Falcke+00 shadow paper formulas ////////////////// // double spin=0.8; // double delta=rr*rr - 2.*rr + spin*spin; // double theta=pos[2]; // double AA = (rr*rr + spin*spin)*(rr*rr + spin*spin) - spin*spin*delta*sin(theta)*sin(theta); // double vr_F00 = -delta*sqrt(2.*rr*(rr*rr + spin*spin))/AA, // Omega_F00 = 2.*spin*rr/AA; // if (fabs(vr_F00-vel[1]/vel[0])>tol or fabs(Omega_F00-vel[3]/vel[0])>tol) // throwError("In SphericalAccretion::getVelo different from Falcke+00"); // --> perfect agreement 210211 //////////////////////////////////////////////////////////////////////// // Check 4vel normalization double u2 = gg_->ScalarProd(pos,vel,vel); //cout << "4vel,u2= " << rr << " " << pos[2] << " " << gtt << " " << grr << " " << vel[0] << " " << vel[1] << " " << vel[2] << " " << vel[3] << " " << u2 << endl; if (fabs(u2+1.)>tol or u2!=u2) { cerr << " *** 4-velocity squared norm= " << u2 << endl; throwError("In SphericalAccretion: 4vel " "is not properly normalized!"); } } bool SphericalAccretion::isThreadSafe() const { return Standard::isThreadSafe() && (!spectrumThermalSynch_ || spectrumThermalSynch_->isThreadSafe()); } void SphericalAccretion::metric(SmartPointer gg) { if (gg_) gg_->unhook(this); string kin = gg->kind(); //if (kin != "KerrBL" or kin!="NumericalMetricLorene") // GYOTO_ERROR // ("SphericalAccretion::metric(): metric must be KerrBL"); // NB: KerrBL needed for ZAMO velocity in getVelocity, // could be generalized if needed Generic::metric(gg); } Gyoto-2.0.2/lib/StandardAstrobj.C000066400000000000000000000136401455254334400165700ustar00rootroot00000000000000/* Copyright 2011, 2012, 2014, 2015, 2017, 2018 Thibaut Paumard & Frederic Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ // GYOTO HEADERS #include "GyotoUtils.h" #include "GyotoStandardAstrobj.h" #include "GyotoMetric.h" #include "GyotoPhoton.h" #include "GyotoRegister.h" #include "GyotoFactoryMessenger.h" #include "GyotoProperty.h" // SYSTEM HEADERS #include #include #include #include #include #include #include #include // NAMESPACES using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; GYOTO_PROPERTY_START(Gyoto::Astrobj::Standard, "Gyoto::Astrobj whose shape is defined by a scalar function.") GYOTO_PROPERTY_DOUBLE(Standard, SafetyValue, safetyValue, "Value of the function below which to look more carefully.") GYOTO_PROPERTY_DOUBLE(Standard, DeltaInObj, deltaInObj, "Value of the constant integration step " "inside the astrobj (geometrical units)") GYOTO_PROPERTY_END(Standard, Generic::properties) Standard::Standard(string kin) : Generic(kin), critical_value_(DBL_MIN), safety_value_(DBL_MAX), delta_inobj_(0.05) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif } Standard::Standard() : Generic(), critical_value_(DBL_MIN), safety_value_(DBL_MAX), delta_inobj_(0.05) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif } Standard::Standard(double radmax) : Generic(radmax), critical_value_(DBL_MIN), safety_value_(DBL_MAX) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif } Standard::Standard(const Standard& orig) : Generic(orig), Functor::Double_constDoubleArray(orig), critical_value_(orig.critical_value_), safety_value_(orig.safety_value_), delta_inobj_(orig.delta_inobj_) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif } Standard::~Standard() { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif } int Standard::Impact(Photon* ph, size_t index, Properties *data){ # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(kind()); # endif size_t sz = ph -> parallelTransport()?16:8; state_t p1(sz), p2(sz); ph->getCoord(index, p1); ph->getCoord(index+1, p2); double tmin, minval; if (gg_ -> coordKind() == GYOTO_COORDKIND_SPHERICAL){ //Allows theta and phi to be in the correct range ph->checkPhiTheta(&p1[0]); ph->checkPhiTheta(&p2[0]); } double t1 = p1[0], t2=p2[0]; double val1=(*this)(&p1[0]), val2=(*this)(&p2[0]); if (val1 > critical_value_) { if (val2 > critical_value_) { if ( val1 > safety_value_ && val2 > safety_value_) { if (val1 < val2) { minval = val1; tmin = t1; } else { minval = val2; tmin = t2; } } else minval = ph -> findMin(this, p1[0], p2[0], tmin, critical_value_) ; if (minval>critical_value_) { if (data) { /* EmissionTime */ if (data->time) *data->time=tmin; /* MinDistance */ if ((data->distance) && (*(data->distance)>minval) ) *data->distance=minval; /* FirstMinDist */ if (data->first_dmin) { if (!data->first_dmin_found) { if (*(data->first_dmin)>minval) *(data->first_dmin)=minval; else data->first_dmin_found=1; } } } return 0; } ph -> findValue(this, critical_value_, tmin, t2); } else tmin=t2; ph -> findValue(this, critical_value_, tmin, t1); } else if (val2 > critical_value_) ph -> findValue(this, critical_value_, t1, t2); state_t cph(sz); ph -> getCoord(t2, cph); double coh[8] = {cph[0], cph[1], cph[2], cph[3]}; getVelocity(coh, coh+4); bool current_is_inside = true; // by construction, t2 is always inside double delta=giveDelta(&cph[0]); double dt; double coh_next[8]; state_t cph_next(sz); bool next_is_inside; while (cph[0]>t1){ // Warning: Impact must not extend the Worldline! // never call get Coord with anything outside [t1, t2]. ph -> getCoord(max(cph[0] - delta, t1), cph_next); memcpy(coh_next, &cph_next[0], 4*sizeof(cph_next[0])); getVelocity(coh_next, coh_next+4); next_is_inside = ((*this)(coh_next) <= critical_value_); if (current_is_inside) { if (next_is_inside) { // Both points are inside dt = cph[0]-cph_next[0]; } else { // Late point in object, early outside // Find date of surface crossing and update dt. double t_out = cph_next[0]; ph -> findValue(this, critical_value_, cph[0], t_out); dt = cph[0] - t_out; } } else { if (next_is_inside) { // Early point in object, late point outside // Place cph and coh inside, near surface; update dt double t_out = cph[0]; ph -> findValue(this, critical_value_, cph_next[0], t_out); ph -> getCoord(t_out, cph); memcpy(coh, &cph[0], 4*sizeof(cph_next[0])); getVelocity(coh, coh+4); dt = cph[0]-cph_next[0]; } else { // Two points outside dt = 0.; } } // dt == 0 means the two points are outside if (dt != 0.) processHitQuantities(ph, cph, coh, dt, data); // Copy next to current cph = cph_next; memcpy(coh, coh_next, 8*sizeof(coh[0])); current_is_inside = next_is_inside; } return 1; } void Standard::safetyValue(double val) {safety_value_ = val; } double Standard::safetyValue() const { return safety_value_; } double Standard::deltaInObj() const { return delta_inobj_; } void Standard::deltaInObj(double val) { delta_inobj_ = val; } double Standard::giveDelta(double *) { return deltaInObj(); } Gyoto-2.0.2/lib/Star.C000066400000000000000000000372451455254334400144230ustar00rootroot00000000000000/* Copyright 2011 Thibaut Paumard, Frederic Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoWorldline.h" #include "GyotoStar.h" #include "GyotoProperty.h" #include "GyotoPhoton.h" #include "GyotoPowerLawSpectrum.h" #include "GyotoBlackBodySpectrum.h" #include "GyotoFactoryMessenger.h" #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; /// Properties GYOTO_PROPERTY_START(Gyoto::Astrobj::Star, "UniformSphere following a time-like Gyoto::Worldline.") // Star only need to implement the Worldline interface on top of the // UniformSphere interface, which is trivially tone with this macro: GYOTO_WORLDLINE_PROPERTY_END(Star, UniformSphere::properties) #define POLAR_TEST 0 // XML I/O // We also need to parse and write Position+Velocity in addition to // InitCoord, which is done by overriding setParameter(), setParameters() // and fillProperty() int Star::setParameter(std::string name, std::string content, std::string unit) { double coord[8]; if (name=="InitialCoordinate") { name="InitCoord"; return UniformSphere::setParameter(name, content, unit); } else if (name=="Position") { if (FactoryMessenger::parseArray(content, coord, 4) != 4) GYOTO_ERROR("Worldline \"Position\" requires exactly 4 tokens"); if (init_vel_) { setInitCoord(coord, init_vel_); delete[] init_vel_; init_vel_=NULL; } else setPosition(coord); wait_pos_ = 0; } else if (name=="Velocity") { if (FactoryMessenger::parseArray(content, coord, 3) != 3) GYOTO_ERROR("Worldline \"Velocity\" requires exactly 3 tokens"); if (wait_pos_) { if (init_vel_) delete [] init_vel_; init_vel_ = new double[3]; memcpy(init_vel_, coord, 3*sizeof(double)); } else setVelocity(coord); } else return UniformSphere::setParameter(name, content, unit); return 0; } #ifdef GYOTO_USE_XERCES void Star::fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const { if (p.name == "InitCoord") { if (imin_ <= imax_) { state_t coord; getInitialCoord(coord); // For massive particule, express initial condition with 3-velocity double vel[3] = {coord[5]/coord[4], coord[6]/coord[4], coord[7]/coord[4]}; fmp -> setParameter ("Position", &coord[0], 4); fmp -> setParameter ("Velocity", vel, 3); } return; } UniformSphere::fillProperty(fmp, p); } void Star::setParameters(FactoryMessenger* fmp) { wait_pos_ = 1; metric(fmp->metric()); UniformSphere::setParameters(fmp); wait_pos_ = 0; if (init_vel_) { delete[] init_vel_; init_vel_=NULL; GYOTO_ERROR("Worldline::setParameters(): " "Velocity was found but not Position"); } } #endif /// Star::Star() : UniformSphere("Star"), Worldline(), spectrumThermalSynch_(NULL) { # ifdef GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "done." << endl; # endif spectrumThermalSynch_ = new Spectrum::ThermalSynchrotron(); } Star::Star(SmartPointer met, double rad, double const pos[4], double const v[3]) : UniformSphere("Star"), Worldline(), spectrumThermalSynch_(NULL) { if (debug()) { cerr << "DEBUG: Star Construction " << endl << " POS=[" << pos[0]; for (int i=1; i<4; ++i) cerr << ", " << pos[i]; cerr << "]\n VEL=[" << v[0] ; for (int i=1; i<3; ++i) cerr << ", " << v[i]; cerr << "]\n RADIUS=" << rad << endl; } metric(met); setInitCoord(pos, v); radius(rad); spectrumThermalSynch_ = new Spectrum::ThermalSynchrotron(); } Star::Star(const Star& orig) : UniformSphere(orig), Worldline(orig), spectrumThermalSynch_(NULL) { GYOTO_DEBUG << endl; // we have two distinct clones of the metric, not good... Worldline::metric(UniformSphere::metric()); if (orig.spectrumThermalSynch_()) spectrumThermalSynch_=orig.spectrumThermalSynch_->clone(); } Star* Star::clone() const { return new Star(*this); } Star::~Star() { if (debug()) cerr << "DEBUG: Star::~Star()\n"; } string Star::className() const { return string("Star"); } string Star::className_l() const { return string("star"); } SmartPointer Star::metric() const { return gg_; } void Star::metric(SmartPointer gg) { UniformSphere::metric(gg); Worldline::metric(gg); } void Star::setInitialCondition(double const coord[8]) { if (!metric_) GYOTO_ERROR("Please set metric before calling Star::setInitialCondition(double*)"); Worldline::setInitialCondition(metric_, coord, 0); } double Star::getMass() const {return 1. ;} void Star::getVelocity(double const pos[4], double vel[4]) { getCoord(pos, 1, NULL, NULL, NULL, vel, vel+1, vel+2, vel+3); } void Star::getCartesian(double const * const t, size_t const n, double* const x, double*const y, double*const z, double*const xp, double*const yp, double*const zp) { Worldline::getCartesian(t, n, x, y, z, xp, yp, zp); } double Star::rMax() { if (rmax_==DBL_MAX && i0_>=imin_ && i0_<=imax_) { size_t i; rmax_=x1_[i0_]; int ck=gg_->coordKind(); for (i=imin_;i<=imax_;++i) { if (x1_[i]>rmax_) rmax_=x1_[i]; if (ck==GYOTO_COORDKIND_CARTESIAN) { if (x2_[i]>rmax_) rmax_=x2_[i]; if (x3_[i]>rmax_) rmax_=x3_[i]; } } rmax_ *= 3.; } return rmax_; } void Star::radiativeQ(double *Inu, double *Qnu, double *Unu, double *Vnu, Eigen::Matrix4d *Onu, double const *nuem , size_t nbnu, double dsem, state_t const &cph, double const *co) const { if (POLAR_TEST==1) { // The following part was only for test purpose with ad-hoc choice of magnetic field (ipole formalism) // and emission process double rr, rcyl, theta, phi, xx, yy, zz=0.; switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rr = cph[1]; theta = cph[2]; phi = cph[3]; rcyl = rr*sin(theta); xx = rcyl*cos(phi); yy = rcyl*sin(phi); zz = rr*cos(theta); break; case GYOTO_COORDKIND_CARTESIAN: rcyl = pow(cph[1]*cph[1]+cph[2]*cph[2], 0.5); rr = sqrt(cph[1]*cph[1]+cph[2]*cph[2] +cph[3]*cph[3]); theta = acos(cph[3]/rr); xx = cph[1]; yy = cph[2]; zz = cph[3]; break; default: GYOTO_ERROR("In Star::radiativeQ(): Unknown coordinate system kind"); } double vel[4]; // 4-velocity of emitter gg_->circularVelocity(co, vel); // Check the size of the photon coordinate : 8 means no polarisation, 16 means polarisation. if (cph.size()==16) { // POLARISED CASE double B4vect[4]={0.,0.,0.,0.}; double B_1=0.,B_2=0.,B_3=0; double spin = 0.; double gtt = gg_->gmunu(&cph[0],0,0), grr = gg_->gmunu(&cph[0],1,1), gthth = gg_->gmunu(&cph[0],2,2), gpp = gg_->gmunu(&cph[0],3,3); double dx1=0.025, dx2=0.025; double g_det = sqrt(M_PI*M_PI*pow(rr,6)*pow(sin(theta),2)); double F11 = exp(log(rr)-dx1)*sin(theta-dx2*M_PI), F12 = exp(log(rr)-dx1)*sin(theta+dx2*M_PI), F21 = exp(log(rr)+dx1)*sin(theta-dx2*M_PI), F22 = exp(log(rr)+dx1)*sin(theta+dx2*M_PI); B_1 = -(F11-F12+F21-F22)/(2.*dx2*g_det); B_2 = (F11+F12-F21-F22)/(2.*dx1*g_det); B_3 = 0.; // compute contravariant velocity in KS' from BL double dtKS_drBL = 2. * rr / (rr*rr - 2.*rr + spin*spin); double dphiKS_drBL = spin / (rr*rr - 2.*rr + spin*spin); double Ucon_KSm[4]={0.,0.,0.,0.}; Ucon_KSm[0]=vel[0]+vel[1]*dtKS_drBL; Ucon_KSm[1]=vel[1]/rr; Ucon_KSm[2]=vel[2]/M_PI; Ucon_KSm[3]=vel[3]+vel[1]*dphiKS_drBL; // Compute KS' metric double gcov_ksm[4][4]; double sin2=sin(theta)*sin(theta), rho2=rr*rr+spin*spin*cos(theta)*cos(theta); double gcov_ks[4][4]; for(int mu=0;mu<4;mu++) for(int nu=0;nu<4;nu++) gcov_ks[mu][nu]=0.; gcov_ks[0][0] = -1. + 2. * rr / rho2 ; gcov_ks[0][1] = 2. * rr / rho2 ; gcov_ks[0][3] = -2. * spin * rr * sin(theta)*sin(theta) / rho2; gcov_ks[1][0] = gcov_ks[0][1]; gcov_ks[1][1] = 1. + 2. * rr / rho2 ; gcov_ks[1][3] = -spin * sin(theta)*sin(theta) * (1. + 2. * rr / rho2); gcov_ks[2][2] = rho2 ; gcov_ks[3][0] = gcov_ks[0][3]; gcov_ks[3][1] = gcov_ks[1][3]; gcov_ks[3][3] = sin(theta)*sin(theta) * (rho2 + spin * spin * sin(theta)*sin(theta) * (1. + 2. * rr / rho2)); // convert from ks metric to a modified one using Jacobian double dxdX[4][4]; double hslope=0.; for(int mu=0;mu<4;mu++) for(int nu=0;nu<4;nu++) dxdX[mu][nu]=0.; dxdX[0][0] = 1.; dxdX[1][1] = rr; dxdX[2][2] = M_PI + hslope*2*M_PI*cos(2*theta); dxdX[3][3] = 1.; for(int mu=0;mu<4;mu++){ for(int nu=0;nu<4;nu++){ gcov_ksm[mu][nu] = 0; for (int lam = 0; lam < 4; ++lam) { for (int kap = 0; kap < 4; ++kap) { gcov_ksm[mu][nu] += gcov_ks[lam][kap] * dxdX[lam][mu] * dxdX[kap][nu]; } } } } // Compute covariante velocity in KS' double Ucov_KSm[4]={0.,0.,0.,0.}; for(int mu=0;mu<4;mu++){ for(int nu=0;nu<4;nu++){ Ucov_KSm[mu] += gcov_ksm[mu][nu]*Ucon_KSm[nu]; } } // Copute Magnetic field in KS' //cout << "r sth, velBL, ucov KS'= " << co[1] << " " << sin(co[2]) << " " << vel[0] << " " << vel[3] << " " << Ucov_KSm[1] << " " << Ucov_KSm[2] << " " << Ucov_KSm[3] << endl; //throwError("test disk"); double B0=B_1*Ucov_KSm[1]+B_2*Ucov_KSm[2]+B_3*Ucov_KSm[3], B1=(B_1+B0*Ucon_KSm[1])/Ucon_KSm[0], B2=(B_2+B0*Ucon_KSm[2])/Ucon_KSm[0], B3=(B_3+B0*Ucon_KSm[3])/Ucon_KSm[0]; // Conversion Magnetic field from KS' -> BL double Delta = pow(rr,2)-2.*rr+pow(spin,2.); B4vect[0]=B0-B1*2.*pow(rr,2)/Delta; B4vect[1]=B1*rr; B4vect[2]=B2*M_PI; B4vect[3]=B3-B1*spin*rr/Delta; double nu0 = GYOTO_ELEMENTARY_CHARGE_CGS*10. /(2.*M_PI*GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS); // cyclotron freq Eigen::Matrix4d Omat; Omat << 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1; double Theta = 50.; double temperature=GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS*Theta/GYOTO_BOLTZMANN_CGS; // Computing the angle between the parallel transported observer polarisation basis and local emission basis. double Chi=getChi(B4vect, cph, vel); // Computing the angle theta_mag between the magnetic field vector and photon tgt vector in the rest frame of the emitter gg_->projectFourVect(&cph[0],B4vect,vel); //Projection of the 4-vector B to 4-velocity to be in the rest frame of the emitter double photon_emframe[4]; // photon tgt vector projected in comoving frame for (int ii=0;ii<4;ii++){ photon_emframe[ii]=cph[ii+4]; } gg_->projectFourVect(&cph[0],photon_emframe,vel); double bnorm = gg_->norm(&cph[0],B4vect); double lnorm = gg_->norm(&cph[0],photon_emframe); double lscalb = gg_->ScalarProd(&cph[0],photon_emframe,B4vect); double theta_mag = acos(lscalb/(lnorm*bnorm)); // Defining emission, absoprtion and rotation coefficients for the transmission matrix double jInu[nbnu], jQnu[nbnu], jUnu[nbnu], jVnu[nbnu]; double aInu[nbnu], aQnu[nbnu], aUnu[nbnu], aVnu[nbnu]; double rotQnu[nbnu], rotUnu[nbnu], rotVnu[nbnu]; for (size_t ii=0; iitemperature(temperature); spectrumThermalSynch_->numberdensityCGS(1.e6); spectrumThermalSynch_->angle_averaged(0); // no angle avg of course spectrumThermalSynch_->angle_B_pem(theta_mag); spectrumThermalSynch_->cyclotron_freq(nu0); spectrumThermalSynch_->besselK2(besselK2); spectrumThermalSynch_->radiativeQ(jInu, jQnu, jUnu, jVnu, aInu, aQnu, aUnu, aVnu, rotQnu, rotUnu, rotVnu, nuem, nbnu); for (size_t ii=0; iiunitLength(); //cout << Jstokes << endl; Omat = Omatrix(aInu[ii], aQnu[ii], aUnu[ii], aVnu[ii], rotQnu[ii], rotUnu[ii], rotVnu[ii], Chi, dsem); //cout << Omat << endl; // Computing the increment of the Stokes parameters. Equivalent to dInu=exp(-anu*dsem)*jnu*dsem in the non-polarised case. Eigen::Vector4d Stokes=Omat*Jstokes; //cout << Stokes << endl; Inu[ii] = Stokes(0); Qnu[ii] = Stokes(1); Unu[ii] = Stokes(2); Vnu[ii] = Stokes(3); Onu[ii] = Omat; //cout << "In Star: r,th,ph, Inu, Qnu, Unu, Vnu, dsem, LP: " << rr << " " << theta << " " << phi << " " << Inu[ii] << ", " << Qnu[ii] << ", " << Unu[ii] << ", " << Vnu[ii] << ", " << dsem << ", " << pow(Qnu[ii]*Qnu[ii]+Unu[ii]*Unu[ii],0.5)/Inu[ii] << endl; if (Inu[ii]<0.) GYOTO_ERROR("In Star::radiativeQ(): Inu<0"); if (Inu[ii]!=Inu[ii] or Onu[ii](0,0)!=Onu[ii](0,0)) GYOTO_ERROR("In Star::radiativeQ(): Inu or Taunu is nan"); if (Inu[ii]==Inu[ii]+1. or Onu[ii](0,0)==Onu[ii](0,0)+1.) GYOTO_ERROR("In Star::radiativeQ(): Inu or Taunu is infinite"); } } else { // NON POLARISED CASE // Onu is the transmission matrix which contains in particular the non-polarised transmission // So we need to update it. Eigen::Matrix4d identity; identity << 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1; for (size_t ii=0; ii #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; GYOTO_PROPERTY_START(StarTrace, "All the points that would be inside a Star at any date between TMin and TMax.") GYOTO_PROPERTY_DOUBLE(StarTrace, TMin, TMin, "Date defining start of the trace (geometrical_time).") GYOTO_PROPERTY_DOUBLE(StarTrace, TMax, TMax, "Date defining end of the trace (geometrical_time).") GYOTO_PROPERTY_END(StarTrace, Star::properties) StarTrace::StarTrace() : Star(), tmin_(0.), tmax_(0.) { Generic::kind_="StarTrace"; xAllocateXYZ(); # ifdef GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "done." << endl; # endif } StarTrace::StarTrace(SmartPointer met, double rad, double const pos[4], double const v[3]) : Star(met, rad, pos, v) { Generic::kind_="StarTrace"; xAllocateXYZ(); computeXYZ(i0_); } StarTrace::StarTrace(const StarTrace& o) : Star(o), tmin_(o.tmin_), tmax_(o.tmax_) { Generic::kind_="StarTrace"; xAllocateXYZ(); size_t sz = get_nelements()*sizeof(double); memcpy(x_+imin_, o.x_+imin_, sz); memcpy(y_+imin_, o.y_+imin_, sz); memcpy(z_+imin_, o.z_+imin_, sz); } StarTrace::StarTrace(const Star& o, double tmin, double tmax) : Star(o), tmin_(tmin), tmax_(tmax) { Generic::kind_="StarTrace"; xAllocateXYZ(); computeXYZ(); } StarTrace* StarTrace::clone() const { return new StarTrace(*this); } StarTrace::~StarTrace() { GYOTO_DEBUG << endl; delete[] x_; delete[] y_; delete[] z_; } void StarTrace::xAllocateXYZ() { x_ = new double[x_size_]; y_ = new double[x_size_]; z_ = new double[x_size_]; # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(x_size_); # endif } void StarTrace::xAllocate(size_t sz) { Star::xAllocate(sz); xAllocateXYZ(); } size_t StarTrace::xExpand(int dir) { xExpand(x_, dir); xExpand(y_, dir); xExpand(z_, dir); return Star::xExpand(dir); # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(x_size_); # endif } void StarTrace::computeXYZ(size_t i) { if (!gg_) GYOTO_ERROR("Please set metric before calling computeXYZ"); switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: x_[i]=x1_[i]*sin(x2_[i])*cos(x3_[i]); y_[i]=x1_[i]*sin(x2_[i])*sin(x3_[i]); z_[i]=x1_[i]*cos(x2_[i]); break; case GYOTO_COORDKIND_CARTESIAN: x_[i]=x1_[i]; y_[i]=x2_[i]; z_[i]=x3_[i]; break; default: GYOTO_ERROR("in StarTrace::computeXYZ: Incompatible coordinate kind"); } } void StarTrace::computeXYZ() { size_t n; int coordkind = gg_ -> coordKind(); switch(coordkind) { case GYOTO_COORDKIND_SPHERICAL: for (n=imin_;n<=imax_;++n) { x_[n]=x1_[n]*sin(x2_[n])*cos(x3_[n]); y_[n]=x1_[n]*sin(x2_[n])*sin(x3_[n]); z_[n]=x1_[n]*cos(x2_[n]); } break; case GYOTO_COORDKIND_CARTESIAN: for (n=imin_;n<=imax_;++n) { x_[n]=x1_[n]; y_[n]=x2_[n]; z_[n]=x3_[n]; } break; default: GYOTO_ERROR("in StarTrace::computeXYZ(): Incompatible coordinate kind"); } } void StarTrace::xStore(size_t ind, state_t const &coord, double tau) { Star::xStore(ind, coord, tau); computeXYZ(ind); } void StarTrace::setInitCoord(const double coord[8], int dir) { Star::setInitCoord(coord, dir); computeXYZ(); } void StarTrace::metric(SmartPointer gg) { Star::metric(gg); computeXYZ(); } string StarTrace::className() const { return string("StarTrace"); } string StarTrace::className_l() const { return string("startrace"); } void StarTrace::setInitialCondition(double const coord[8]) { Star::setInitialCondition(coord); } double StarTrace::TMin() const { return tmin_; } void StarTrace::TMin(double t) { if (t>tmax_) { tmin_=tmax_; tmax_=t; } else tmin_=t; GYOTO_DEBUG_EXPR(tmin_); GYOTO_DEBUG_EXPR(tmax_); } double StarTrace::TMax() const { return tmax_; } void StarTrace::TMax(double t) { if (tcoordKind()) { case GYOTO_COORDKIND_SPHERICAL: x=coord[1]*sin(coord[2])*cos(coord[3]); y=coord[1]*sin(coord[2])*sin(coord[3]); z=coord[1]*cos(coord[2]); break; case GYOTO_COORDKIND_CARTESIAN: x=coord[1]; y=coord[2]; z=coord[3]; break; default: GYOTO_ERROR("in StarTrace::operator()(): Incompatible coordinate kind"); } double tmp1; for (size_t i=imin_; i<=imax_; ++i) { if (x0_[i]tmax_) continue; tmp1 = x-x_[i]; tmp = tmp1 * tmp1; tmp1 = y-y_[i]; tmp += tmp1 * tmp1; tmp1 = z-z_[i]; tmp += tmp1 * tmp1; if (tmp < d2) d2=tmp; } return d2; } Gyoto-2.0.2/lib/StdPlug.C000066400000000000000000000147551455254334400150750ustar00rootroot00000000000000/* Copyright 2011-2018 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ // include Metric headers #include "GyotoComplexMetric.h" #include "GyotoShift.h" #include "GyotoKerrBL.h" #include "GyotoKerrKS.h" #include "GyotoMinkowski.h" #include "GyotoChernSimons.h" #include "GyotoRezzollaZhidenko.h" #include "GyotoHayward.h" #include "GyotoSchwarzschildHarmonic.h" // include Astrobj headers #include "GyotoComplexAstrobj.h" #include "GyotoStar.h" #include "GyotoStarTrace.h" #include "GyotoFixedStar.h" #include "GyotoFreeStar.h" #include "GyotoInflateStar.h" #include "GyotoTorus.h" #include "GyotoDeformedTorus.h" #include "GyotoOscilTorus.h" #include "GyotoThinDisk.h" #include "GyotoPageThorneDisk.h" #include "GyotoThinDiskPL.h" #include "GyotoPolishDoughnut.h" #include "GyotoThinDiskIronLine.h" #include "GyotoEquatorialHotSpot.h" #include "GyotoJet.h" #include "GyotoThickDisk.h" #include "GyotoSphericalAccretion.h" #include "GyotoBlob.h" #include "GyotoPlasmoid.h" #include "GyotoFlaredDiskSynchrotron.h" #include "GyotoThinDiskProfile.h" #include "GyotoThinDiskGridIntensity.h" #include "GyotoPatternDisk.h" #include "GyotoPatternDiskBB.h" #include "GyotoDynamicalDisk.h" #include "GyotoDynamicalDiskBolometric.h" #include "GyotoDisk3D.h" #include "GyotoDynamicalDisk3D.h" #include "GyotoDirectionalDisk.h" #include "GyotoXillverReflection.h" // include Spectrum headers #include "GyotoPowerLawSpectrum.h" #include "GyotoBlackBodySpectrum.h" #include "GyotoThermalBremsstrahlungSpectrum.h" #include "GyotoThermalSynchrotronSpectrum.h" #include "GyotoPowerLawSynchrotronSpectrum.h" #include "GyotoKappaDistributionSynchrotronSpectrum.h" using namespace Gyoto; extern "C" void __GyotostdplugInit() { // Register Metrics Metric::Register("Complex", &(Metric::Subcontractor)); Metric::Register("Shift", &(Metric::Subcontractor)); Metric::Register("KerrBL", &(Metric::Subcontractor)); Metric::Register("KerrKS", &(Metric::Subcontractor)); Metric::Register("Minkowski", &(Metric::Subcontractor)); Metric::Register("ChernSimons", &(Metric::Subcontractor)); Metric::Register("RezzollaZhidenko", &(Metric::Subcontractor)); Metric::Register("Hayward", &(Metric::Subcontractor)); Metric::Register("SchwarzschildHarmonic", &(Metric::Subcontractor)); // Register Astrobjs Astrobj::Register("Complex", &(Astrobj::Subcontractor)); Astrobj::Register("Star", &(Astrobj::Subcontractor)); Astrobj::Register("StarTrace", &(Astrobj::Subcontractor)); Astrobj::Register("FixedStar", &(Astrobj::Subcontractor)); Astrobj::Register("FreeStar", &(Astrobj::Subcontractor)); Astrobj::Register("InflateStar", &(Astrobj::Subcontractor)); Astrobj::Register("Torus", &(Astrobj::Subcontractor)); Astrobj::Register("OscilTorus", &(Astrobj::Subcontractor)); Astrobj::Register("DeformedTorus", &(Astrobj::Subcontractor)); Astrobj::Register("ThinDisk", &(Astrobj::Subcontractor)); Astrobj::Register("PageThorneDisk", &(Astrobj::Subcontractor)); Astrobj::Register("ThinDiskPL", &(Astrobj::Subcontractor)); Astrobj::Register("PolishDoughnut", &(Astrobj::Subcontractor)); Astrobj::Register("ThinDiskIronLine", &(Astrobj::Subcontractor)); Astrobj::Register("EquatorialHotSpot", &(Astrobj::Subcontractor)); Astrobj::Register("PatternDisk", &(Astrobj::Subcontractor)); Astrobj::Register("PatternDiskBB", &(Astrobj::Subcontractor)); Astrobj::Register("DynamicalDisk", &(Astrobj::Subcontractor)); Astrobj::Register("DynamicalDiskBolometric", &(Astrobj::Subcontractor)); Astrobj::Register("Disk3D", &(Astrobj::Subcontractor)); Astrobj::Register("DynamicalDisk3D", &(Astrobj::Subcontractor)); Astrobj::Register("DirectionalDisk", &(Astrobj::Subcontractor)); Astrobj::Register("Jet", &(Astrobj::Subcontractor)); Astrobj::Register("ThickDisk", &(Astrobj::Subcontractor)); Astrobj::Register("SphericalAccretion", &(Astrobj::Subcontractor)); Astrobj::Register("ThinDiskProfile", &(Astrobj::Subcontractor)); Astrobj::Register("Blob", &(Astrobj::Subcontractor)); Astrobj::Register("Plasmoid", &(Astrobj::Subcontractor)); Astrobj::Register("XillverReflection", &(Astrobj::Subcontractor)); Astrobj::Register("FlaredDiskSynchrotron", &(Astrobj::Subcontractor)); Astrobj::Register("ThinDiskGridIntensity", &(Astrobj::Subcontractor)); // Register Spectra Spectrum::Register("PowerLaw", &(Spectrum::Subcontractor)); Spectrum::Register("BlackBody", &(Spectrum::Subcontractor)); Spectrum::Register("ThermalBremsstrahlung", &(Spectrum::Subcontractor)); Spectrum::Register("ThermalSynchrotron", &(Spectrum::Subcontractor)); Spectrum::Register("PowerLawSynchrotron", &(Spectrum::Subcontractor)); Spectrum::Register("KappaDistributionSynchrotron", &(Spectrum::Subcontractor)); } Gyoto-2.0.2/lib/ThermalBremsstrahlungSpectrum.C000066400000000000000000000131701455254334400215410ustar00rootroot00000000000000/* Copyright 2014-2015, 2018-2020 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoThermalBremsstrahlungSpectrum.h" #include "GyotoDefs.h" #include #include /* infinity */ #ifdef GYOTO_USE_XERCES #include "GyotoFactory.h" #include "GyotoFactoryMessenger.h" #endif using namespace Gyoto; #include "GyotoProperty.h" GYOTO_PROPERTY_START(Spectrum::ThermalBremsstrahlung, "Thermal bremsstrahlung emission") GYOTO_PROPERTY_END(Spectrum::ThermalBremsstrahlung, Generic::properties) // This awful constant is the constant part of the thermal brems j_nu static double const cst_ = 1/(4.*M_PI) *(pow(2.,5)*M_PI*pow(GYOTO_ELEMENTARY_CHARGE_CGS,6)) /(3.*GYOTO_ELECTRON_MASS_CGS*pow(GYOTO_C_CGS,3)) *sqrt(2*M_PI/(3.*GYOTO_BOLTZMANN_CGS*GYOTO_ELECTRON_MASS_CGS)); Spectrum::ThermalBremsstrahlung::ThermalBremsstrahlung() : Spectrum::Generic("ThermalBremsstrahlung"), spectrumBB_(NULL), T_(10000.), numberdensityCGS_(0.) { Tm1_=1./T_; Tm05_=sqrt(Tm1_); // A BB spectrum is needed to compute alpha_nu=j_nu/BB spectrumBB_ = new Spectrum::BlackBody(); } Spectrum::ThermalBremsstrahlung::ThermalBremsstrahlung(const ThermalBremsstrahlung &o) : Spectrum::Generic(o), spectrumBB_(NULL), T_(o.T_), Tm1_(o.Tm1_), Tm05_(o.Tm05_), numberdensityCGS_(o.numberdensityCGS_) { if (o.spectrumBB_()) spectrumBB_=o.spectrumBB_->clone(); } double Spectrum::ThermalBremsstrahlung::temperature() const { return T_; } void Spectrum::ThermalBremsstrahlung::temperature(double tt) { T_ = tt; Tm1_=1./T_; Tm05_=sqrt(Tm1_); spectrumBB_->temperature(T_); } double Spectrum::ThermalBremsstrahlung::numberdensityCGS() const { return numberdensityCGS_; } void Spectrum::ThermalBremsstrahlung::numberdensityCGS(double rho) { numberdensityCGS_ = rho; } Spectrum::ThermalBremsstrahlung * Spectrum::ThermalBremsstrahlung::clone() const { return new Spectrum::ThermalBremsstrahlung(*this); } double Spectrum::ThermalBremsstrahlung::operator()(double nu) const { GYOTO_ERROR("In ThermalBrems: " "Bremsstrahlung emission not defined for optically thick case"); return 0.; } double Spectrum::ThermalBremsstrahlung::operator()(double nu, double , double ds) const{ double dsCGS = ds*100.; // ds should be given in SI // Returns intensity increment in SI: return jnuCGS(nu)*dsCGS*exp(-alphanuCGS(nu)*dsCGS)*GYOTO_INU_CGS_TO_SI; } double Spectrum::ThermalBremsstrahlung::jnuCGS(double nu) const{ /* This emission coefficient comes from Stepney&Guilbert (1983) eq.2-3 for most of it, plus Straub+12 for the 1/4pi*h/kT*exp() term. It is valid both for nonrelativistic (kT/mc2 << 1) and relativistic (kT/mc2 = or > 1) electrons. It implements only the electron-ion Brems. I checked that it reduces in the case kT/mc2 << 1 to the simple expression in Rybicki&Lightman and my notes, up to an unexplained constant factor of order 1.1, so I consider it okay and checked. */ //std::cout << "in brems cst,ne,Te= " << cst_ << " " << numberdensityCGS_ << " " << T_ << std::endl; double theta_e = T_*GYOTO_BOLTZMANN_CGS /(GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS); double Fei=numberdensityCGS_*numberdensityCGS_*GYOTO_THOMSON_CGS *GYOTO_C_CGS*GYOTO_ALPHA_F*GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS; if (theta_e < 1.) { Fei *= 4.*sqrt(2.*theta_e / (M_PI*M_PI*M_PI))*(1.+1.781*pow(theta_e,1.34)); }else{ Fei *= 9.*theta_e / (2.*M_PI)*(log(1.123*theta_e + 0.42) + 1.5); } // Gaunt factor from Rybicki&Lightman double gaunt=0.; double fact=T_*GYOTO_BOLTZMANN_CGS/(GYOTO_PLANCK_CGS*nu); if (fact<=1.) gaunt=sqrt(3./M_PI*fact); else gaunt=sqrt(3.)/M_PI*log(4./exp(GYOTO_EULER_MASCHERONI)*fact) ; // NB: in the above formula, I use the fact that the dzeta appearing // in Fig. 5.2 of Rybicki&Lightman is exp(euler_cst)=exp(0.577)=1.781, // this is unfortunately not clearly defined in RL... // See eg Gayet70 for an independent reference. double jnu = 1./(4.*M_PI) *GYOTO_PLANCK_OVER_BOLTZMANN*Tm1_ *exp(-GYOTO_PLANCK_OVER_BOLTZMANN*nu*Tm1_) *Fei*gaunt; return jnu; } double Spectrum::ThermalBremsstrahlung::alphanuCGS(double nu) const{ double BB = (*spectrumBB_)(nu)/GYOTO_INU_CGS_TO_SI; // B_nu in cgs double jnu = jnuCGS(nu); if (BB==0.){ if (jnu==0.) return 0.; else { GYOTO_SEVERE << "In ThermalBrems: alphanu undefined!" << std::endl; return std::numeric_limits::infinity(); } } // Kirchhoff's law: return jnuCGS(nu)/BB; } void Spectrum::ThermalBremsstrahlung::radiativeQ(double jnu[], // output double alphanu[], // output double const nu_ems[], size_t nbnu ) { for (size_t ii=0; ii< nbnu; ++ii){ double nu = nu_ems[ii]; double BB = (*spectrumBB_)(nu); jnu[ii]=this->jnuCGS(nu)*GYOTO_JNU_CGS_TO_SI; if (BB==0.){ if (jnu[ii]==0.) alphanu[ii]=0.; else { GYOTO_SEVERE << "In ThermalBrems: alphanu undefined!" << std::endl; alphanu[ii] = std::numeric_limits::infinity(); } }else alphanu[ii]=jnu[ii]/BB; } } Gyoto-2.0.2/lib/ThermalSynchrotronSpectrum.C000066400000000000000000000507001455254334400210710ustar00rootroot00000000000000/* Copyright 2018-2020 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoThermalSynchrotronSpectrum.h" #include "GyotoDefs.h" #include "GyotoUtils.h" #include #ifdef GYOTO_USE_XERCES #include "GyotoFactory.h" #include "GyotoFactoryMessenger.h" #endif using namespace Gyoto; #include "GyotoProperty.h" GYOTO_PROPERTY_START(Spectrum::ThermalSynchrotron, "Thermal synchrotron emission") GYOTO_PROPERTY_END(Spectrum::ThermalSynchrotron, Generic::properties) // Global variable to put to 1 to use the formalism // of Vos+22 to which we compare Gyoto in the polarization paper. // For debugging/code comparison only. // For standard use, put it to 0 to use Gyoto formalism (Marszewski+21). #define USE_IPOLE_FORMALISM 0 #define nstep_angint 100 // for angle-averaging integration Spectrum::ThermalSynchrotron::ThermalSynchrotron() : Spectrum::Generic("ThermalSynchrotron"), spectrumBB_(NULL), T_(10000.), numberdensityCGS_(0.), angle_B_pem_(0.), cyclotron_freq_(1.), angle_averaged_(0), bessel_K2_(1.) { // A BB spectrum is needed to compute alpha_nu=j_nu/BB spectrumBB_ = new Spectrum::BlackBody(); } Spectrum::ThermalSynchrotron::ThermalSynchrotron(const ThermalSynchrotron &o) : Spectrum::Generic(o), T_(o.T_), spectrumBB_(NULL), numberdensityCGS_(o.numberdensityCGS_), angle_B_pem_(o.angle_B_pem_), cyclotron_freq_(o.cyclotron_freq_), angle_averaged_(o.angle_averaged_), bessel_K2_(o.bessel_K2_) { if (o.spectrumBB_()) spectrumBB_=o.spectrumBB_->clone(); } double Spectrum::ThermalSynchrotron::temperature() const { return T_; } void Spectrum::ThermalSynchrotron::temperature(double tt) { T_ = tt; spectrumBB_->temperature(T_); } double Spectrum::ThermalSynchrotron::numberdensityCGS() const { return numberdensityCGS_; } void Spectrum::ThermalSynchrotron::numberdensityCGS(double rho) { numberdensityCGS_ = rho; } double Spectrum::ThermalSynchrotron::angle_B_pem() const { return angle_B_pem_; } void Spectrum::ThermalSynchrotron::angle_B_pem(double angle) { angle_B_pem_ = angle; } double Spectrum::ThermalSynchrotron::cyclotron_freq() const { return cyclotron_freq_; } void Spectrum::ThermalSynchrotron::cyclotron_freq(double freq) { cyclotron_freq_ = freq; } bool Spectrum::ThermalSynchrotron::angle_averaged() const { return angle_averaged_; } void Spectrum::ThermalSynchrotron::angle_averaged(bool ang) { angle_averaged_ = ang; } double Spectrum::ThermalSynchrotron::besselK2() const { return bessel_K2_; } void Spectrum::ThermalSynchrotron::besselK2(double bessel) { bessel_K2_ = bessel; } Spectrum::ThermalSynchrotron * Spectrum::ThermalSynchrotron::clone() const { return new Spectrum::ThermalSynchrotron(*this); } double Spectrum::ThermalSynchrotron::operator()(double nu) const { GYOTO_ERROR("In ThermalSynch: " "Synchrotron emission not defined for optically thick case"); return 0.; } double Spectrum::ThermalSynchrotron::operator()(double nu, double , double ds) const{ double dsCGS = ds*100.; // ds should be given in SI // Returns intensity increment in SI: return jnuCGS(nu)*dsCGS*exp(-alphanuCGS(nu)*dsCGS)*GYOTO_INU_CGS_TO_SI; } double Spectrum::ThermalSynchrotron::jnuCGS(double nu) const{ //std::cout << "in jnu brems= " << cst_ << " " << numberdensityCGS_ << " " << T_ << std::endl; double Theta_elec = T_*GYOTO_BOLTZMANN_CGS/(GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS); //std::cout << "in synch ther thetate ne nu0= " << Theta_elec << " " << numberdensityCGS_ << " " << cyclotron_freq_ << std::endl; int useWZ00=0; // 1 to use WZ00, 0 to use Pandya+16 double emis_synch=0.; if (useWZ00==1){ // Wardzinski & Zdziarski 2000 double gamma0=0., chi0=0.; double sth=sin(angle_B_pem_), cth=cos(angle_B_pem_); if (Theta_elec<=0.08){ gamma0 = sqrt(1+2.*nu*Theta_elec/cyclotron_freq_ *pow(1.+9.*nu*Theta_elec*sth*sth/(2.*cyclotron_freq_) ,-0.3333333333)); chi0 = sqrt((2.*Theta_elec*(gamma0*gamma0-1.)) /(gamma0*(3.*gamma0*gamma0-1.))); }else{ gamma0 = sqrt(1.+pow(4.*nu*Theta_elec/(3.*cyclotron_freq_*sth) ,0.6666666666)); chi0 = sqrt(2.*Theta_elec/(3.*gamma0)); } double tt = sqrt(gamma0*gamma0-1.)*sth, nn = nu*(1.+tt*tt)/(cyclotron_freq_*gamma0); double Z0 = pow((tt*exp(1./sqrt(1.+tt*tt)))/(1.+sqrt(1.+tt*tt)),2.*nn); double K2 = bessel_K2_; //std::cout << "bessel= " << K2 << std::endl; double ne0 = numberdensityCGS_/Theta_elec*gamma0*sqrt(gamma0*gamma0-1.)/K2 *exp(-gamma0/Theta_elec); // this is j_nu synchro: emis_synch = M_PI*GYOTO_ELEMENTARY_CHARGE_CGS*GYOTO_ELEMENTARY_CHARGE_CGS /(2.*GYOTO_C_CGS)*sqrt(cyclotron_freq_*nu)*chi0*ne0 *(1.+2.*cth*cth/(sth*sth*gamma0*gamma0)) *pow(1.-(1.-1./(gamma0*gamma0))*cth*cth,0.25) *Z0; //std::cout << "stuff in emis synch ther= " << cyclotron_freq_ << " " << nu << " " << chi0 << " " << ne0 << " " << gamma0 << " " << Z0 << " " << angle_B_pem_ << " " << emis_synch << std::endl; }else if (USE_IPOLE_FORMALISM==1){ // ipole https://github.com/moscibrodzka/ipole/blob/ipole-v2.0/model_radiation.c if (angle_B_pem_<=0 or angle_B_pem_>=M_PI) emis_synch=0; else{ double EE=GYOTO_ELEMENTARY_CHARGE_CGS,S3=1.73205090765888, ME=GYOTO_ELECTRON_MASS_CGS, CL=GYOTO_C_CGS; double nuc=3.*cyclotron_freq_*sin(angle_B_pem_)/2.*Theta_elec*Theta_elec+1., xx=nu/nuc; double I_I=2.5651*(1 + 1.92*pow(xx,-1./3.) + 0.9977*pow(xx,-2./3.)) * exp(-1.8899 * pow(xx,1./3.)); emis_synch=numberdensityCGS_*EE*EE*nu/2./S3/CL/Theta_elec/Theta_elec*I_I; } }else{ // Pandya, Zhang, Chandra, Gammie, 2016 // Marszewski, Prather, Joshi, Pandya, Gammie 2021 double nus = 2./9.*cyclotron_freq_*Theta_elec*Theta_elec*sin(angle_B_pem_), xx = nu/nus, Js = exp(-pow(xx,1./3.))*sqrt(2.)*M_PI/27.*sin(angle_B_pem_)* \ pow(pow(xx,1./2.)+pow(2.,11./12.)*pow(xx,1./6.),2.); emis_synch = numberdensityCGS_* \ GYOTO_ELEMENTARY_CHARGE_CGS*GYOTO_ELEMENTARY_CHARGE_CGS*cyclotron_freq_/ \ GYOTO_C_CGS*\ Js; } return emis_synch; } double Spectrum::ThermalSynchrotron::jQnuCGS(double nu) const{ //std::cout << "in jnu brems= " << cst_ << " " << numberdensityCGS_ << " " << T_ << std::endl; double Theta_elec = T_*GYOTO_BOLTZMANN_CGS/(GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS); //std::cout << "in synch ther thetate ne nu0= " << Theta_elec << " " << numberdensityCGS_ << " " << cyclotron_freq_ << std::endl; double emis_synch=0.; if (USE_IPOLE_FORMALISM==1){ // ipole https://github.com/moscibrodzka/ipole/blob/ipole-v2.0/model_radiation.c if (angle_B_pem_<=0 or angle_B_pem_>=M_PI) emis_synch=0; else{ double EE=GYOTO_ELEMENTARY_CHARGE_CGS,S3=1.73205090765888, ME=GYOTO_ELECTRON_MASS_CGS, CL=GYOTO_C_CGS; double nuc=3.*cyclotron_freq_*sin(angle_B_pem_)/2.*Theta_elec*Theta_elec+1., xx=nu/nuc; double I_Q=2.5651*(1 + 0.93193*pow(xx,-1./3.) + 0.499873*pow(xx,-2./3.)) * exp(-1.8899 * pow(xx,1./3.)); emis_synch=numberdensityCGS_*EE*EE*nu/2./S3/CL/Theta_elec/Theta_elec*I_Q; } }else{ // Marszewski, Prather, Joshi, Pandya, Gammie 2021 double nus = 2./9.*cyclotron_freq_*Theta_elec*Theta_elec*sin(angle_B_pem_), xx = nu/nus, Js = exp(-pow(xx,1./3.))*sqrt(2.)*M_PI/27.*sin(angle_B_pem_)* \ pow(pow(xx,1./2.)+((7.*pow(Theta_elec,24./25.)+35.)/(10.*pow(Theta_elec,24./25.)+75.))*pow(2.,11./12.)*pow(xx,1./6.),2.); emis_synch = numberdensityCGS_* \ GYOTO_ELEMENTARY_CHARGE_CGS*GYOTO_ELEMENTARY_CHARGE_CGS*cyclotron_freq_/ \ GYOTO_C_CGS*\ Js; } return emis_synch; } double Spectrum::ThermalSynchrotron::jUnuCGS(double nu) const{ // Marszewski, Prather, Joshi, Pandya, Gammie 2021 return 0.; } double Spectrum::ThermalSynchrotron::jVnuCGS(double nu) const{ //std::cout << "in jnu brems= " << cst_ << " " << numberdensityCGS_ << " " << T_ << std::endl; double Theta_elec = T_*GYOTO_BOLTZMANN_CGS/(GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS); //std::cout << "in synch ther thetate ne nu0= " << Theta_elec << " " << numberdensityCGS_ << " " << cyclotron_freq_ << std::endl; double emis_synch=0.; if (USE_IPOLE_FORMALISM==1){ // ipole https://github.com/moscibrodzka/ipole/blob/ipole-v2.0/model_radiation.c if (angle_B_pem_<=0 or angle_B_pem_>=M_PI) emis_synch=0; else{ double EE=GYOTO_ELEMENTARY_CHARGE_CGS,S3=1.73205090765888, ME=GYOTO_ELECTRON_MASS_CGS, CL=GYOTO_C_CGS; double nuc=3.*cyclotron_freq_*sin(angle_B_pem_)/2.*Theta_elec*Theta_elec+1., xx=nu/nuc; double I_V=(1.81348/xx+3.42319*pow(xx,-2./3.)+0.0292545*pow(xx,-0.5)+2.03773*pow(xx,-1./3.)) * exp(-1.8899 * pow(xx,1./3.)); emis_synch=2.*numberdensityCGS_*EE*EE*nu/tan(angle_B_pem_)/3./S3/CL/Theta_elec/Theta_elec/Theta_elec*I_V; } }else{ // Marszewski, Prather, Joshi, Pandya, Gammie 2021 double nus = 2./9.*cyclotron_freq_*Theta_elec*Theta_elec*sin(angle_B_pem_), xx = nu/nus, Js = exp(-pow(xx,1./3.))*cos(angle_B_pem_)/Theta_elec* \ (M_PI/3.+M_PI/3.*pow(xx,1./3.)+2./300.*sqrt(xx)+2.*M_PI/19.*pow(xx,2./3.)); emis_synch = numberdensityCGS_* \ GYOTO_ELEMENTARY_CHARGE_CGS*GYOTO_ELEMENTARY_CHARGE_CGS*cyclotron_freq_/ \ GYOTO_C_CGS*\ Js; } return emis_synch; } double Spectrum::ThermalSynchrotron::alphanuCGS(double nu) const{ double BB = (*spectrumBB_)(nu)/GYOTO_INU_CGS_TO_SI; // B_nu in cgs double jnu = jnuCGS(nu); if (BB==0.){ if (jnu==0.) return 0.; else GYOTO_ERROR("In ThermalSynch: alphanu undefined!"); } // Kirchhoff's law: return jnuCGS(nu)/BB; } double Spectrum::ThermalSynchrotron::alphaQnuCGS(double nu) const{ double BB = (*spectrumBB_)(nu)/GYOTO_INU_CGS_TO_SI; // B_nu in cgs double jnu = jQnuCGS(nu); if (BB==0.){ if (jnu==0.) return 0.; else GYOTO_ERROR("In ThermalSynch: alphanu undefined!"); } // Kirchhoff's law: return jQnuCGS(nu)/BB; } double Spectrum::ThermalSynchrotron::alphaUnuCGS(double nu) const{ double BB = (*spectrumBB_)(nu)/GYOTO_INU_CGS_TO_SI; // B_nu in cgs double jnu = jUnuCGS(nu); if (BB==0.){ if (jnu==0.) return 0.; else GYOTO_ERROR("In ThermalSynch: alphanu undefined!"); } // Kirchhoff's law: return jUnuCGS(nu)/BB; } double Spectrum::ThermalSynchrotron::alphaVnuCGS(double nu) const{ double BB = (*spectrumBB_)(nu)/GYOTO_INU_CGS_TO_SI; // B_nu in cgs double jnu = jVnuCGS(nu); if (BB==0.){ if (jnu==0.) return 0.; else GYOTO_ERROR("In ThermalSynch: alphanu undefined!"); } // Kirchhoff's law: return jVnuCGS(nu)/BB; } double Spectrum::ThermalSynchrotron::rQnuCGS(double nu) const{ double Theta_elec = T_*GYOTO_BOLTZMANN_CGS/(GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS); double rho_Q=0; if (USE_IPOLE_FORMALISM==1){ if (angle_B_pem_<=0 or angle_B_pem_>=M_PI) rho_Q=0; else{ double EE=GYOTO_ELEMENTARY_CHARGE_CGS,S3=1.73205090765888, ME=GYOTO_ELECTRON_MASS_CGS, CL=GYOTO_C_CGS, S2=1.41421356237310; double wp2=4.*M_PI*numberdensityCGS_*EE*EE/ME, omega0=2.*M_PI*cyclotron_freq_, Xe=Theta_elec*sqrt(S2*sin(angle_B_pem_)*(1.e3*omega0/2./M_PI/nu)); double extraterm=(0.011*exp(-Xe/47.2)-pow(2.,-1./3.)/pow(3.,23./6.)*M_PI*1.e4*pow(Xe+1.e-16,-8./3.))*(0.5+0.5*tanh((log(Xe)-log(120.))/0.1)), jffunc=2.011*exp(-pow(Xe,1.035)/4.7)-cos(Xe*0.5)*exp(-pow(Xe,1.2)/2.73)-0.011*exp(-Xe/47.2)+extraterm; rho_Q=2.*M_PI*nu/2./CL*wp2*omega0*omega0/pow(2.*M_PI*nu,4)*jffunc*(Theta_elec/(2.*Theta_elec*Theta_elec)+6.*Theta_elec)*sin(angle_B_pem_)*sin(angle_B_pem_); } }else{ // Marszewski, Prather, Joshi, Pandya, Gammie 2021 double nus = 2./9.*cyclotron_freq_*Theta_elec*Theta_elec*sin(angle_B_pem_), xx = nu/nus, f0=2.011*exp(-19.78*pow(xx,-0.5175))-cos(39.89*pow(xx,-0.5))*exp(-70.16*pow(xx,-0.6))-0.011*exp(-1.69*pow(xx,-0.5)), fm=f0+(0.011*exp(-1.69*pow(xx,-0.5))-0.003135*pow(xx,4./3.))*1./2.*(1.+tanh(10*log(0.6648*pow(xx,-0.5)))); rho_Q=numberdensityCGS_*pow(GYOTO_ELEMENTARY_CHARGE_CGS,2.)*pow(cyclotron_freq_,2.)*pow(sin(angle_B_pem_),2.)/ \ (GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS*pow(nu,3.))* \ fm*(bessk1(pow(Theta_elec,-1))/bessk(2., pow(Theta_elec,-1))+6.*Theta_elec); } //return 0.; return rho_Q; } double Spectrum::ThermalSynchrotron::rUnuCGS(double nu) const{ // Marszewski, Prather, Joshi, Pandya, Gammie 2021 return 0.; } double Spectrum::ThermalSynchrotron::rVnuCGS(double nu) const{ double Theta_elec = T_*GYOTO_BOLTZMANN_CGS/(GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS); double rho_V=0; if (USE_IPOLE_FORMALISM==1){ double EE=GYOTO_ELEMENTARY_CHARGE_CGS,S3=1.73205090765888, ME=GYOTO_ELECTRON_MASS_CGS, CL=GYOTO_C_CGS, S2=1.41421356237310; double wp2=4.*M_PI*numberdensityCGS_*EE*EE/ME, omega0=2.*M_PI*cyclotron_freq_, Xe=Theta_elec*sqrt(S2*sin(angle_B_pem_)*(1.e3*omega0/2./M_PI/nu)), Je=0.43793091*log(1.+0.00185777*pow(Xe,1.50316886)); if (Theta_elec>3.0){ rho_V=2.*M_PI*nu/CL*wp2*omega0/pow(2.*M_PI*nu,3)*((-log(1./Theta_elec/2.)-0.5772)-Je)/(2*Theta_elec*Theta_elec)*cos(angle_B_pem_); }else if (0.2. */ #include "GyotoPhoton.h" #include "GyotoThickDisk.h" #include "GyotoProperty.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrBL.h" #include "GyotoKerrKS.h" #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; GYOTO_PROPERTY_START(ThickDisk) GYOTO_PROPERTY_DOUBLE(ThickDisk, ThickDiskZGaussianSigma, thickDiskZGaussianSigma,"The standard deviation " "of the Gaussian G modulating the density " "with altitude z out of the equatorial plane, " "divided by the cylindrical radius. So " "G(z) = exp(-z^2 / 2*(rcyl*thickDiskZGaussianSigma_)^2)") GYOTO_PROPERTY_DOUBLE(ThickDisk, ThickDiskInnerRadius, thickDiskInnerRadius) GYOTO_PROPERTY_BOOL(ThickDisk, UseSelfAbsorption, NoUseSelfAbsorption, useSelfAbsorption) // GYOTO_PROPERTY_BOOL(ThickDisk, // AngleAveraged, NoAngleAveraged, // angleAveraged) GYOTO_PROPERTY_VECTOR_DOUBLE(ThickDisk, VeloParam, veloParam, "The two coef alpha and beta such that " "u^r = u^r_circ + (1-alpha)*(u^r_rad - u^r_circ)" " and similarly for Omega and beta.") GYOTO_PROPERTY_DOUBLE_UNIT(ThickDisk, NumberDensityAtInnerRadius, numberDensityAtInnerRadius) GYOTO_PROPERTY_DOUBLE(ThickDisk, DensitySlope, densitySlope) GYOTO_PROPERTY_DOUBLE(ThickDisk, TemperatureAtInnerRadius, temperatureAtInnerRadius) GYOTO_PROPERTY_DOUBLE(ThickDisk, TemperatureSlope, temperatureSlope) GYOTO_PROPERTY_DOUBLE(ThickDisk, MagnetizationParameter, magnetizationParameter) GYOTO_PROPERTY_END(ThickDisk, Standard::properties) // Global variable to put to 1 to use the formalism // of Vos+22 to which we compare Gyoto in the polarization paper. // For debugging/code comparison only. // For standard use, put it to 0 to use Gyoto formalism. #define USE_IPOLE_FORMALISM 0 // ACCESSORS void ThickDisk::thickDiskZGaussianSigma(double sig) { thickDiskZGaussianSigma_=sig;} double ThickDisk::thickDiskZGaussianSigma() const { return thickDiskZGaussianSigma_;} void ThickDisk::thickDiskInnerRadius(double hh) {thickDiskInnerRadius_=hh;} double ThickDisk::thickDiskInnerRadius()const{return thickDiskInnerRadius_;} bool ThickDisk::useSelfAbsorption() const {return use_selfabsorption_;} void ThickDisk::useSelfAbsorption(bool abs) {use_selfabsorption_=abs;} void ThickDisk::veloParam(std::vector const &v) { size_t nn = v.size(); if (nn!=2) GYOTO_ERROR("In ThickDisk: choose exactly 2 velocity parameters"); alpha_veloparam_ = v[0]; beta_veloparam_ = v[1]; if (alpha_veloparam_<0. || alpha_veloparam_>1. || beta_veloparam_<0. || beta_veloparam_>1.){ GYOTO_ERROR("In ThickDisk: velocity parameters should be " "between 0 and 1!"); } } std::vector ThickDisk::veloParam() const { std::vector v(2, 0.); v[0] = alpha_veloparam_; v[1] = beta_veloparam_; return v; } // bool ThickDisk::angleAveraged() const // {return angle_averaged_;} // void ThickDisk::angleAveraged(bool ang) // { // angle_averaged_=ang; // spectrumThermalSynch_->angle_averaged(ang); // } double ThickDisk::numberDensityAtInnerRadius() const { // Converts internal cgs central enthalpy to SI double dens=numberDensityAtInnerRadius_cgs_; # ifdef HAVE_UDUNITS dens = Units::Converter("cm-3", "m-3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif return dens; } double ThickDisk::numberDensityAtInnerRadius(string const &unit) const { double dens = numberDensityAtInnerRadius(); if (unit != "") { # ifdef HAVE_UDUNITS dens = Units::Converter("m-3", unit)(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif } return dens; } void ThickDisk::numberDensityAtInnerRadius(double dens) { # ifdef HAVE_UDUNITS dens = Units::Converter("m-3", "cm-3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif numberDensityAtInnerRadius_cgs_=dens; } void ThickDisk::numberDensityAtInnerRadius(double dens, string const &unit) { if (unit != "") { # ifdef HAVE_UDUNITS dens = Units::Converter(unit, "m-3")(dens); # else GYOTO_WARNING << "Units ignored, please recompile Gyoto with --with-udunits" << endl ; # endif } numberDensityAtInnerRadius(dens); } void ThickDisk::densitySlope(double ss) {densitySlope_=ss;} double ThickDisk::densitySlope()const{return densitySlope_;} void ThickDisk::temperatureAtInnerRadius(double tt) {temperatureAtInnerRadius_=tt;} double ThickDisk::temperatureAtInnerRadius()const{return temperatureAtInnerRadius_;} void ThickDisk::temperatureSlope(double ss) {temperatureSlope_=ss;} double ThickDisk::temperatureSlope()const{return temperatureSlope_;} void ThickDisk::magnetizationParameter(double rr) { magnetizationParameter_=rr;} double ThickDisk::magnetizationParameter()const{ return magnetizationParameter_;} // ThickDisk::ThickDisk() : Standard("ThickDisk"), thickDiskInnerRadius_(2.), thickDiskZGaussianSigma_(1.), use_selfabsorption_(1), alpha_veloparam_(1.), beta_veloparam_(1.), numberDensityAtInnerRadius_cgs_(1.), temperatureAtInnerRadius_(1e10), temperatureSlope_(1.), densitySlope_(2.), magnetizationParameter_(1.), magneticConfig_("None") { GYOTO_DEBUG << endl; spectrumThermalSynch_ = new Spectrum::ThermalSynchrotron(); if (USE_IPOLE_FORMALISM!=0 and USE_IPOLE_FORMALISM!=1){ GYOTO_ERROR("Bad value of USE_IPOLE_FORMALISM should be 0 or 1!"); } } ThickDisk::ThickDisk(const ThickDisk& o) : Standard(o), thickDiskInnerRadius_(o.thickDiskInnerRadius_), thickDiskZGaussianSigma_(o.thickDiskZGaussianSigma_), use_selfabsorption_(o.use_selfabsorption_), alpha_veloparam_(o.alpha_veloparam_), beta_veloparam_(o.beta_veloparam_), numberDensityAtInnerRadius_cgs_(o.numberDensityAtInnerRadius_cgs_), temperatureAtInnerRadius_(o.temperatureAtInnerRadius_), temperatureSlope_(o.temperatureSlope_), densitySlope_(o.densitySlope_), magnetizationParameter_(o.magnetizationParameter_), spectrumThermalSynch_(NULL), magneticConfig_(o.magneticConfig_) { GYOTO_DEBUG << endl; if (gg_) gg_->hook(this); if (o.spectrumThermalSynch_()) spectrumThermalSynch_=o.spectrumThermalSynch_->clone(); if (USE_IPOLE_FORMALISM!=0 and USE_IPOLE_FORMALISM!=1){ GYOTO_ERROR("Bad value of USE_IPOLE_FORMALISM should be 0 or 1!"); } } ThickDisk* ThickDisk::clone() const { return new ThickDisk(*this); } ThickDisk::~ThickDisk() { GYOTO_DEBUG << endl; if (gg_) gg_->unhook(this); } void ThickDisk::radiativeQ(double Inu[], // output double Taunu[], // output double const nu_ems[], size_t nbnu, // input double dsem, state_t const &coord_ph, double const coord_obj[8]) const { double rr, rcyl, theta, zz=0.; switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rr = coord_ph[1]; rcyl = coord_ph[1]*sin(coord_ph[2]); theta = coord_ph[2]; zz = coord_ph[1]*cos(coord_ph[2]); break; case GYOTO_COORDKIND_CARTESIAN: rcyl = pow(coord_ph[1]*coord_ph[1]+coord_ph[2]*coord_ph[2], 0.5); rr = sqrt(coord_ph[1]*coord_ph[1]+coord_ph[2]*coord_ph[2] +coord_ph[3]*coord_ph[3]); theta = acos(coord_ph[3]/rr); zz = coord_ph[3]; break; default: GYOTO_ERROR("In ThickDisk::radiativeQ(): Unknown coordinate system kind"); } if (rr dphibis){ dphi = dphibis; } double gaussp = 1./(sqrt(2.*M_PI)*sigp) * exp(-0.5*dphi*dphi/(sigp*sigp)); double gauss2d = gaussr*gaussp; double T0 = 1.6e11; // this is to be tuned: 4e11 too small, 6e11 looks good double DeltaTemperature = T0*gauss2d; //temperature+=DeltaTemperature; double thetae = GYOTO_BOLTZMANN_CGS*temperature /(GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS); double BB = sqrt(4.*M_PI*magnetizationParameter_ *GYOTO_PROTON_MASS_CGS * GYOTO_C_CGS * GYOTO_C_CGS *number_density); /*if (zz<0.1){ cout << "at r rcyl z= " << rr << " " << rcyl << " " << zz << endl; cout << "ne,T,B= " << number_density << " " << temperature << " " << BB << endl; cout << "beta= " << 8.*M_PI*number_density*GYOTO_BOLTZMANN_CGS*temperature/(BB*BB) << endl; }*/ double B0 = 100.; // for ne_inner=5.5e4, B_inner=10.2G; B0=50 too small, B0=100 looks good double DeltaB = B0*gauss2d; //BB += DeltaB; //if (fabs(coord_ph[1]*cos(coord_ph[2]))<0.5) //cout << "thickdisk stuff= " << coord_ph[1] << " " << zz << " " << number_density << " " << BB << " " << thetae << endl; // // Random generator: mersenne_twister_engine seeded with rd() // std::random_device rd; // std::mt19937 generator(rd()); // // Define a real uniform distribution within some bounds // std::uniform_real_distribution distribution(0.9,1.1); // double randnb = distribution(generator); // draw a random number //cout << "IN DISK r, z, ne, B= " << coord_ph[1] << " " << zz << " " << number_density << " " << BB << endl; //GYOTO_ERROR("testjet"); double nu0 = GYOTO_ELEMENTARY_CHARGE_CGS*BB /(2.*M_PI*GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS); // cyclotron freq //cout << "jet stuff= " << coord_ph[1] << " " << coord_ph[2] << " " << zz << " " << rcyljetbase << " " << rcyl << " " << number_density << " " << thetae << " " << temperatureSlope_ << " " << nu0 << endl; // Emission and absorption synchrotron coefs double jnu_synch[nbnu], anu_synch[nbnu]; for (size_t ii=0; iitemperature(temperature); spectrumThermalSynch_->numberdensityCGS(number_density); spectrumThermalSynch_->angle_averaged(1.); // impose angle-averaging spectrumThermalSynch_->angle_B_pem(M_PI/2.); // so we don't care about angle spectrumThermalSynch_->cyclotron_freq(nu0); double besselK2 = bessk(2, 1./thetae); spectrumThermalSynch_->besselK2(besselK2); //cout << "for anu jnu: " << coord_ph[1] << " " << zz << " " << temperature << " " << number_density << " " << nu0 << " " << thetae << " " << besselK2 << endl; //cout << "nu passed to synchro= " << nu_ems[0] << endl; //if (number_density==0.) { if (number_densityradiativeQ(jnu_synch,anu_synch, nu_ems,nbnu); } // RETURNING TOTAL INTENSITY AND TRANSMISSION for (size_t ii=0; ii1e9) // cout << dsem << " " << nu_ems[ii] << " " << jnu_tot << " " << anu_tot << endl; //if (nu_ems[ii]>1e9 && fabs(coord_ph[1]*cos(coord_ph[2]))<0.5) // cout << "disk nu jnu anu in cgs= " <unitLength()); if (use_selfabsorption_){ // with self absorption Taunu[ii] = em1+1.; Inu[ii] = anu_tot == 0. ? jnu_tot * dsem * gg_->unitLength() : -jnu_tot / anu_tot * em1; }else{ // no absorption Taunu[ii] = 1.; Inu[ii] = jnu_tot * dsem * gg_->unitLength() ; } //cout << "unit length= " << gg_->unitLength() << " " << jnu_tot * gg_->unitLength() << endl; if (Inu[ii]<0.) GYOTO_ERROR("In ThickDisk::radiativeQ: Inu<0"); if (Inu[ii]!=Inu[ii] or Taunu[ii]!=Taunu[ii]) GYOTO_ERROR("In ThickDisk::radiativeQ: Inu or Taunu is nan"); if (Inu[ii]==Inu[ii]+1. or Taunu[ii]==Taunu[ii]+1.) GYOTO_ERROR("In ThickDisk::radiativeQ: Inu or Taunu is infinite"); } } double ThickDisk::operator()(double const coord[4]) { // zpos: modulus of altitude above equatorial plane // rproj: radius projected in the equatorial plane double zpos=0., rproj=0.; switch (gg_ -> coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rproj = coord[1]*sin(coord[2]); zpos = fabs(coord[1]*cos(coord[2])); break; case GYOTO_COORDKIND_CARTESIAN: zpos = fabs(coord[3]); rproj = sqrt(coord[1]*coord[1]+coord[2]*coord[2]); break; default: GYOTO_ERROR("ThickDisk::operator(): unknown COORDKIND"); } // // 2019 paper version: // double zdisk = 0.; // zdisk is fixed at zero rproj <= rinner, // // then the distance to the disk is always positive // double rproj_lim=thickDiskInnerRadius_; // if (rproj > thickDiskInnerRadius_){ // if (rproj > rproj_lim) // usual linear surface above rproj_lim // zdisk = (rproj - thickDiskInnerRadius_) // * tan(M_PI/2. - thickDiskOpeningAngle_) ; // else // parabola surface below, connecting continuously // zdisk = (rproj - thickDiskInnerRadius_) // *(rproj - thickDiskInnerRadius_)/(rproj_lim - thickDiskInnerRadius_) // * tan(M_PI/2. - thickDiskOpeningAngle_) ; // } // return zpos - zdisk; // >0 outside, <0 inside flared disk // 2021 version without surface return -1.; // matter is everywhere } void ThickDisk::getVelocity(double const pos[4], double vel[4]) { if (USE_IPOLE_FORMALISM==0){ // Vincent+22 formalism for circular/radial/mixed velocity profile double vel_circ[4], vel_rad[4]; double rcyl = pos[1]*sin(pos[2]);// cylindrical radius of current location double rr = pos[1]; double gtt = gg_->gmunu(pos,0,0), grr = gg_->gmunu(pos,1,1), gpp = gg_->gmunu(pos,3,3), gtp = gg_->gmunu(pos,0,3), guptt = gg_->gmunu_up(pos,0,0), guptp = gg_->gmunu_up(pos,0,3), guppp = gg_->gmunu_up(pos,3,3), guprr = gg_->gmunu_up(pos,1,1); // CIRCULAR VELOCITY // u_\mu = (u_t,0,0,u_phi) = -u_t (-1,0,0,ll) // with ll = rcyl^{3/2}/(rcyl+1.) double mycst=1; // Gold+20 choice, Keplerian is mycst=-2, // see Appendix of 2021 M87 paper. double ll=pow(rcyl,1.5)/(rcyl+mycst); double u_t_minus=sqrt(-1./(guptt - 2.*guptp*ll + guppp*ll*ll)); double u_t = -u_t_minus, u_phi = u_t_minus*ll; vel_circ[0] = guptt*u_t + guptp*u_phi; vel_circ[1] = 0.; vel_circ[2] = 0.; vel_circ[3] = guptp*u_t + guppp*u_phi; double Omega_circ = vel_circ[3]/vel_circ[0]; // RADIAL VELOCITY // 4-vel obtained by imposing: u_t=-1, u_phi=0, u^theta=0 // see FV notes SphericalVelocity.pdf for details vel_rad[0] = -guptt; vel_rad[1] = -sqrt((-1.-guptt)*guprr); vel_rad[2] = 0; vel_rad[3] = -guptp; double Omega_rad = vel_rad[3]/vel_rad[0]; // MIXED VELOCITY double alpha=alpha_veloparam_, beta=beta_veloparam_; vel[1] = vel_circ[1] + (1-alpha)*(vel_rad[1]-vel_circ[1]); vel[2] = 0.; double Omega = Omega_circ + (1-beta)*(Omega_rad-Omega_circ); double normfact = gtt + 2*Omega*gtp + Omega*Omega*gpp; if (normfact>0) throwError("In ThickDisk::getVelocity: velocity " "prescription non physical."); vel[0] = sqrt(-(1. + grr*vel[1]*vel[1])/normfact); vel[3] = Omega*vel[0]; // TEST!!!////// no spatial velocity///// //vel[0] = sqrt(-1./gtt); //vel[1] = 0.; //vel[2] = 0.; //vel[3] = 0.; ///////////////////////////////////////// //cout << "at rcyl, th-pi/2= " << rcyl << " " << fabs(pos[2]-M_PI/2.) << " u2 = " << gg_->ScalarProd(pos,vel,vel) << endl; double tol=0.03, normcur=gg_->ScalarProd(pos,vel,vel) ; //cout << "4vel at r z= " << pos[1]*sin(pos[2]) << " " << pos[1]*cos(pos[2]) << " " << vel[0] << " " << vel[1] << " " << vel[2] << " " << vel[3] << " " << normcur << endl; // gg_->ScalarProd(pos,vel,vel) if ((fabs(normcur+1.)>tol) || (normcur!=normcur) || (normcur==normcur+1)) { cerr << setprecision(10) << "at rcyl th= " << rcyl << " " << pos[2] << ", u2= " << normcur << endl; throwError("In ThickDisk: 4vel not properly normalized!"); } }else{ // Ipole formalism for comparison to Vos+22 double rr = pos[1], theta=pos[2]; double Risco = 6.; double a = 0.; if (rr>Risco){ double sth2=sin(theta)*sin(theta), cth2=cos(theta)*cos(theta), rho2=rr*rr+a*a*cth2, a2=a*a, r2=rr*rr, DD=1.-2./rr+a2/r2, mu= 1. +a2*cth2/r2; double g_tt = -(1.-2./(rr*mu)), g_tp = -2.*a*sth2/(rr*mu), g_pp = r2*sth2*(1.+a2/r2+2.*a2*sth2/(r2*rr*mu)); /*if (g_tt!=gg_->gmunu(pos,0,0) or g_tp!=gg_->gmunu(pos,0,3) or g_pp!=gg_->gmunu(pos,3,3)){ cout << "g_tt : " << g_tt << ", " << gg_->gmunu(pos,0,0) << endl; cout << "g_tp : " << g_tp << ", " << gg_->gmunu(pos,0,3) << endl; cout << "g_pp : " << g_pp << ", " << gg_->gmunu(pos,3,3) << endl; GYOTO_ERROR("metric set by hand not equal to real metric."); }*/ double omega = 1./(pow(rr,1.5)+a), m1oA2=g_tt+2.*omega*g_tp+omega*omega*g_pp, AA=sqrt(-1./m1oA2); vel[0]=AA; vel[1]=0.; vel[2]=0.; vel[3]=AA*omega; }else{ double vel_cov[4]={0.,0.,0.,0.}; vel_cov[0]=-1./sqrt(-gg_->gmunu_up(pos,0,0)); vel_cov[1]=0.; vel_cov[2]=0.; vel_cov[3]=0.; vel[0]=gg_->gmunu_up(pos,0,0)*vel_cov[0]; vel[1]=0.; vel[2]=0.; vel[3]=gg_->gmunu_up(pos,0,3)*vel_cov[3]; } } } bool ThickDisk::isThreadSafe() const { return Standard::isThreadSafe() && (!spectrumThermalSynch_ || spectrumThermalSynch_->isThreadSafe()); } void ThickDisk::metric(SmartPointer gg) { if (gg_) gg_->unhook(this); string kin = gg->kind(); //if (kin != "KerrBL" or kin!="NumericalMetricLorene") // GYOTO_ERROR // ("ThickDisk::metric(): metric must be KerrBL"); // NB: KerrBL needed for ZAMO velocity in getVelocity, // could be generalized if needed Generic::metric(gg); } void ThickDisk::radiativeQ(double *Inu, double *Qnu, double *Unu, double *Vnu, Eigen::Matrix4d *Onu, double const *nuem , size_t nbnu, double dsem, state_t const &coord_ph, double const *co) const { // polarized radiativeQ double rr, rcyl, theta, zz=0.; switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rr = coord_ph[1]; rcyl = coord_ph[1]*sin(coord_ph[2]); theta = coord_ph[2]; zz = coord_ph[1]*cos(coord_ph[2]); break; case GYOTO_COORDKIND_CARTESIAN: rcyl = pow(coord_ph[1]*coord_ph[1]+coord_ph[2]*coord_ph[2], 0.5); rr = sqrt(coord_ph[1]*coord_ph[1]+coord_ph[2]*coord_ph[2] +coord_ph[3]*coord_ph[3]); theta = acos(coord_ph[3]/rr); zz = coord_ph[3]; break; default: GYOTO_ERROR("In ThickDisk::radiativeQ(): Unknown coordinate system kind"); } double vel[4]; // 4-velocity of emitter for (int ii=0;ii<4;ii++){ vel[ii]=co[ii+4]; } //cout << vel[0] << " " << vel[1] << " " << vel[2] << " " << vel[3] << endl; double number_density, zsigma; if (USE_IPOLE_FORMALISM==1){ number_density = numberDensityAtInnerRadius_cgs_ *pow(rr, densitySlope_); // scaling with (r/M)^{densitySlope_} zsigma = thickDiskZGaussianSigma_*rr; }else{ number_density = numberDensityAtInnerRadius_cgs_ *pow(thickDiskInnerRadius_/rr, densitySlope_); // scaling with (r/rin)^{-densitySlope_} ; careful with sign zsigma = thickDiskZGaussianSigma_*rcyl; } //cout << "nb density before expo= " << number_density << endl; double expofact_zscaling = exp(-zz*zz/(2.*zsigma*zsigma)); // simple Gaussian modulation around z=0; RIAF model (Broderick+11) use zsigma=rcyl //cout << "ne before expo= " << rr << " " <kind(); if (kin != "KerrBL") GYOTO_ERROR("ThickDisk in Ipole formalism should be in Kerr!"); double spin = static_cast >(gg_) -> spin(); if (spin!=0.) GYOTO_ERROR("ThickDisk in Ipole formalism should be in Schwarzschild!"); computeB4vect_ipole(B4vect, magneticConfig_, co, coord_ph, spin); }else{ computeB4vect(B4vect, magneticConfig_, co, coord_ph); } //cout << "B squared norm:" << gg_->ScalarProd(&coord_ph[0], B4vect, B4vect) << endl; double norm=sqrt(gg_->ScalarProd(&coord_ph[0], B4vect, B4vect)); if (USE_IPOLE_FORMALISM==0){ // Gyoto B formalism gives a unit vector if (fabs(norm-1.)>GYOTO_DEFAULT_ABSTOL) GYOTO_ERROR("Bad mf normalization"); }else{ // Ipole B formalism does not gg_->multiplyFourVect(B4vect,1./norm); } //cout << "B norm= " << norm << endl; double Chi=getChi(B4vect, coord_ph, vel); // this is EVPA //cout << "At r,th,ph Chi[deg]= " << coord_ph[1] << " " << coord_ph[2] << " " << coord_ph[3] << " " << Chi*180./M_PI << endl; // Computing the angle theta_mag between the magnetic field vector and photon tgt vector in the rest frame of the emitter gg_->projectFourVect(&coord_ph[0],B4vect,vel); //Projection of the 4-vector B to 4-velocity to be in the rest frame of the emitter double photon_emframe[4]; // photon tgt vector projected in comoving frame for (int ii=0;ii<4;ii++){ photon_emframe[ii]=coord_ph[ii+4]; } gg_->projectFourVect(&coord_ph[0],photon_emframe,vel); double bnorm = gg_->norm(&coord_ph[0],B4vect); double lnorm = gg_->norm(&coord_ph[0],photon_emframe); double lscalb = gg_->ScalarProd(&coord_ph[0],photon_emframe,B4vect); double theta_mag = acos(lscalb/(lnorm*bnorm)); if (theta_mag<0. or theta_mag>M_PI) throwError("ThickDisk: bad B angle"); Eigen::Matrix4d Omat, Pmat; Omat << 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1; // Defining emission, absoprtion and rotation coefficients for the transmission matrix double jInu[nbnu], jQnu[nbnu], jUnu[nbnu], jVnu[nbnu]; double aInu[nbnu], aQnu[nbnu], aUnu[nbnu], aVnu[nbnu]; double rotQnu[nbnu], rotUnu[nbnu], rotVnu[nbnu]; for (size_t ii=0; iitemperature(temperature); spectrumThermalSynch_->numberdensityCGS(number_density); spectrumThermalSynch_->angle_averaged(0); // no angle avg of course spectrumThermalSynch_->angle_B_pem(theta_mag); spectrumThermalSynch_->cyclotron_freq(nu0); spectrumThermalSynch_->besselK2(besselK2); //cout << "for anu jnu: " << coord_ph[1] << " " << zz << " " << temperature << " " << number_density << " " << nu0 << " " << thetae << " " << besselK2 << endl; //cout << "nu passed to synchro= " << nuem[0] << endl; //if (number_density==0.) { //if (number_density<1.e4) { if (number_densityradiativeQ(jInu, jQnu, jUnu, jVnu, aInu, aQnu, aUnu, aVnu, rotQnu, rotUnu, rotVnu, nuem, nbnu); } // RETURNING TOTAL INTENSITY AND TRANSMISSION for (size_t ii=0; iiunitLength(), Jstokes=rotateJs(jInu[ii], jQnu[ii], jUnu[ii], jVnu[ii], Chi); //cout << Jstokes << endl; Omat = Omatrix(aInu[ii], aQnu[ii], aUnu[ii], aVnu[ii], rotQnu[ii], rotUnu[ii], rotVnu[ii], Chi, dsem); Pmat = Pmatrix(aInu[ii], aQnu[ii], aUnu[ii], aVnu[ii], rotQnu[ii], rotUnu[ii], rotVnu[ii], sin(2.*Chi), cos(2.*Chi), dsem); //cout << Omat << endl; // Computing the increment of the Stokes parameters. Equivalent to dInu=exp(-anu*dsem)*jnu*dsem in the non-polarised case. Eigen::Vector4d StokesFirst=Omat*JstokesDs, StokesMonika=Pmat*Jstokes, // Monika's version Stokes=StokesFirst; //StokesMonika; //StokesFirst; //cout << "StokesFirst= " << StokesFirst << endl; //cout << "StokesMonika= " << StokesMonika << endl; //cout << Stokes << endl; Inu[ii] = Stokes(0); Qnu[ii] = Stokes(1); Unu[ii] = Stokes(2); Vnu[ii] = Stokes(3); Onu[ii] = Omat; //cout << "In ThickDisk: r,th,ph, Inu, Qnu, Unu, Vnu, dsem, LP: " << coord_ph[1] << " " << coord_ph[2] << " " << coord_ph[3] << " " << Inu[ii] << ", " << Qnu[ii] << ", " << Unu[ii] << ", " << Vnu[ii] << ", " << dsem << ", " << pow(Qnu[ii]*Qnu[ii]+Unu[ii]*Unu[ii],0.5)/Inu[ii] << endl; if (Inu[ii]<0.) GYOTO_ERROR("In ThickDisk::radiativeQ(): Inu<0"); if (Inu[ii]!=Inu[ii] or Onu[ii](0,0)!=Onu[ii](0,0)) GYOTO_ERROR("In ThickDisk::radiativeQ(): Inu or Taunu is nan"); if (Inu[ii]==Inu[ii]+1. or Onu[ii](0,0)==Onu[ii](0,0)+1.) GYOTO_ERROR("In ThickDisk::radiativeQ(): Inu or Taunu is infinite"); } } void ThickDisk::magneticConfiguration(string config){ magneticConfig_=config; } string ThickDisk::magneticConfiguration() const{ return magneticConfig_; } Gyoto-2.0.2/lib/ThinDisk.C000066400000000000000000000170001455254334400152120ustar00rootroot00000000000000/* Copyright 2011-2012, 2014-2015, 2018 Thibaut Paumard, Frederic Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ /* The subcontractor is registered by the stdplug plugin */ #define GYOTO_PLUGIN stdplug #include "GyotoPhoton.h" #include "GyotoThinDisk.h" #include "GyotoProperty.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; GYOTO_PROPERTY_START(ThinDisk, "Geometrically thin disk.") GYOTO_PROPERTY_DOUBLE_UNIT(ThinDisk, InnerRadius, innerRadius, "Inner radius (geometrical units, 0).") GYOTO_PROPERTY_DOUBLE_UNIT(ThinDisk, OuterRadius, outerRadius, "Outer radius (geometrical units, DBL_MAX).") GYOTO_PROPERTY_DOUBLE_UNIT(ThinDisk, Thickness, thickness, "Geometrical thickness (geometrical units, 1e-3, for optical depth).") GYOTO_PROPERTY_BOOL(ThinDisk, CoRotating, CounterRotating, corotating, "Direction of rotation.") GYOTO_PROPERTY_STRING(ThinDisk, VelocityKind, velocityKind, "Keplerian (default) or ZAMO.") GYOTO_PROPERTY_END(ThinDisk, Generic::properties) #define ZAMO 1 #define KEPLERIAN 0 ThinDisk::ThinDisk(std::string kin) : Generic(kin), rin_(0.), rout_(DBL_MAX), thickness_(1e-3), dir_(1), velocitykind_(KEPLERIAN) { GYOTO_DEBUG << "ThinDisk Construction" << endl; } ThinDisk::ThinDisk(const ThinDisk& o) : Generic(o), Functor::Double_constDoubleArray(o), rin_(o.rin_), rout_(o.rout_), thickness_(o.thickness_), dir_(o.dir_), velocitykind_(o.velocitykind_) { GYOTO_DEBUG << "ThinDisk Copy" << endl; } ThinDisk* ThinDisk::clone() const { return new ThinDisk(*this); } ThinDisk::~ThinDisk() { GYOTO_DEBUG << "ThinDisk Destruction" << endl; } double ThinDisk::innerRadius() const { return rin_; } double ThinDisk::innerRadius(string const &unit) const { return Units::FromGeometrical(innerRadius(), unit, gg_); } void ThinDisk::innerRadius(double r) { rin_ = r; } void ThinDisk::innerRadius(double r, string const &unit) { innerRadius(Units::ToGeometrical(r, unit, gg_)); } double ThinDisk::outerRadius() const { return rout_;} double ThinDisk::outerRadius(string const &unit) const { return Units::FromGeometrical(outerRadius(), unit, gg_); } void ThinDisk::outerRadius(double r) { rout_ = r; } void ThinDisk::outerRadius(double r, string const &unit) { outerRadius(Units::ToGeometrical(r, unit, gg_)); } double ThinDisk::thickness() const { return thickness_;} double ThinDisk::thickness(string const &unit) const { return Units::FromGeometrical(thickness(), unit, gg_); } void ThinDisk::thickness(double h) { thickness_ = h; } void ThinDisk::thickness(double h, string const &unit) { thickness(Units::ToGeometrical(h, unit, gg_)); } int ThinDisk::dir() const { return dir_; } void ThinDisk::dir(int dir) { dir_ = dir; } void ThinDisk::corotating(bool t) { dir_ = (t?1:-1);} bool ThinDisk::corotating() const { return dir_ == 1; } void ThinDisk::velocityKind(string const &kind) { if (kind == "ZAMO") velocitykind_ = ZAMO; else if (kind == "Keplerian") velocitykind_ = KEPLERIAN; else throwError("unknown velocity kind"); } string ThinDisk::velocityKind() const { switch (velocitykind_) { case ZAMO: return "ZAMO"; case KEPLERIAN: return "Keplerian"; default: throwError("unknown velocity kind tag"); } return "will not reach here, this line to avoid compiler warning"; } double ThinDisk::operator()(double const coord[4]) { double theta; switch (gg_ -> coordKind()) { case GYOTO_COORDKIND_SPHERICAL: theta = coord[2]; theta -= M_PI*0.5; while (theta < -M_PI) theta += 2.*M_PI; while (theta >= M_PI) theta -= 2.*M_PI; return theta; case GYOTO_COORDKIND_CARTESIAN: return coord[3]; default: GYOTO_ERROR("ThinDisk::Impact(): unknown COORDKIND"); return 0.; } } double ThinDisk::projectedRadius(double const coord[4]) const { switch (gg_ -> coordKind()) { case GYOTO_COORDKIND_SPHERICAL: return coord[1]; case GYOTO_COORDKIND_CARTESIAN: return sqrt(coord[1]*coord[1]+coord[2]*coord[2]); default: GYOTO_ERROR("ThinDisk::projectedRadius(): unknown COORDKIND"); return 0.; } } double ThinDisk::sphericalPhi(double const coord[4]) const { switch (gg_ -> coordKind()) { case GYOTO_COORDKIND_SPHERICAL: return coord[3]; case GYOTO_COORDKIND_CARTESIAN: { double res=atan2(coord[2], coord[1]); while (res<.0) res += 2*M_PI; while (res>2.*M_PI) res -= 2*M_PI; return res; } default: GYOTO_ERROR("ThinDisk::sphericalPhi(): unknown COORDKIND"); return 0.; } } void ThinDisk::getVelocity(double const pos[4], double vel[4]) { switch (velocitykind_) { case KEPLERIAN: gg_ -> circularVelocity(pos, vel, dir_); break; case ZAMO: gg_ -> zamoVelocity(pos, vel); break; default: throwError("unknown velocity kind tag"); } } int ThinDisk::Impact(Photon *ph, size_t index, Astrobj::Properties *data) { state_t coord_ph_hit; double coord_obj_hit[8]; double rcross; state_t coord1, coord2; double dt=0.; ph->getCoord(index, coord1); ph->getCoord(index+1, coord2); if (gg_ -> coordKind() == GYOTO_COORDKIND_SPHERICAL){ //Allows theta and phi to be in the correct range ph->checkPhiTheta(&coord1[0]); ph->checkPhiTheta(&coord2[0]); } if (gg_ -> coordKind() == GYOTO_COORDKIND_SPHERICAL && fabs(coord2[2]-coord1[2]) > M_PI) GYOTO_ERROR ("ThinDisk::Impact: fishy heuristic"); double h1=operator()(&coord1[0]), h2=operator()(&coord2[0]); double r1=projectedRadius(&coord1[0]), r2=projectedRadius(&coord2[0]); if ( 0.5*r1 > rout_ && 0.5*r2 > rout_) return 0; if ( h1 == h2 && h2 != 0 ) return 0; if ( (h1 > 0.) == (h2 > 0.) && h1 != 0. && h2 != 0. ) return 0; double tlow, thigh; if (h1 < h2) { tlow = coord1[0]; thigh = coord2[0]; } else { tlow = coord2[0]; thigh = coord1[0]; } ph -> findValue(this, 0., tlow, thigh); ph -> getCoord(thigh, coord_ph_hit); if ((rcross=projectedRadius(&coord_ph_hit[0])) < rin_ || rcross > rout_) return 0; for (int i=0;i<4;i++) coord_obj_hit[i]=coord_ph_hit[i]; getVelocity(coord_obj_hit, coord_obj_hit+4); if (flag_radtransf_) { double vel[3]; gg_->cartesianVelocity(&coord_ph_hit[0], vel); dt = (vel[2]==0.) ? (coord2[0] - coord1[0]) : sqrt(1.+(vel[0]*vel[0]+vel[1]*vel[1])/(vel[2]*vel[2]))*thickness_; } int store_impact_coord=0; // put to 1 if storing coord is needed if (data && store_impact_coord==1) { //Store impact time in user1 if (data->user1) *data->user1=coord_ph_hit[0]; if (data->user2) *data->user2=coord_ph_hit[1]; if (data->user3) *data->user3=coord_ph_hit[3]; } processHitQuantities(ph, coord_ph_hit, coord_obj_hit, dt, data); return 1; } Gyoto-2.0.2/lib/ThinDiskGridIntensity.C000066400000000000000000000274451455254334400177450ustar00rootroot00000000000000/* Copyright 2019-2021 Frederic Vincent & Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoPhoton.h" #include "GyotoThinDiskGridIntensity.h" #include "GyotoProperty.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrBL.h" #ifdef GYOTO_USE_CFITSIO #define throwCfitsioError(status) \ { fits_get_errstatus(status, ermsg); GYOTO_ERROR(ermsg); } #endif #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; GYOTO_PROPERTY_START(ThinDiskGridIntensity) GYOTO_PROPERTY_FILENAME(ThinDiskGridIntensity, File, file, "File name of FITS file containing data") GYOTO_PROPERTY_DOUBLE(ThinDiskGridIntensity, TimeTranslation_inMunit, timeTranslation_inMunit, "Shift simulation times by this amount, in GM/c3 unit") //GYOTO_PROPERTY_DOUBLE(ThinDiskGridIntensity, dt, dt) GYOTO_PROPERTY_END(ThinDiskGridIntensity, ThinDisk::properties) ThinDiskGridIntensity::ThinDiskGridIntensity() : ThinDisk("ThinDiskGridIntensity"), GridData2D(), filename_(""), time_array_(NULL), intensity_(NULL), deltat_(0.) { GYOTO_DEBUG << endl; } ThinDiskGridIntensity::ThinDiskGridIntensity(const ThinDiskGridIntensity& o) : ThinDisk(o), GridData2D(o), filename_(o.filename_), time_array_(NULL), intensity_(NULL), deltat_(o.deltat_) { GYOTO_DEBUG << endl; size_t ncells = 0; size_t nt=GridData2D::nt(), nphi=GridData2D::nphi(), nr=GridData2D::nr(); if (o.intensity_) { intensity_ = new double[ncells = nt * nphi * nr]; memcpy(intensity_, o.intensity_, ncells * sizeof(double)); } if (o.time_array_) { time_array_ = new double[nt]; memcpy(time_array_,o.time_array_, nt*sizeof(double)); } } ThinDiskGridIntensity* ThinDiskGridIntensity::clone() const { return new ThinDiskGridIntensity(*this); } ThinDiskGridIntensity::~ThinDiskGridIntensity() { GYOTO_DEBUG << endl; if (intensity_) delete [] intensity_; if (time_array_) delete [] time_array_; } void ThinDiskGridIntensity::file(std::string const &f) { # ifdef GYOTO_USE_CFITSIO fitsRead(f); # else GYOTO_ERROR("This Gyoto has no FITS i/o"); # endif } std::string ThinDiskGridIntensity::file() const { return filename_; } void ThinDiskGridIntensity::timeTranslation_inMunit(double const dt) { double tmin=GridData2D::tmin(), tmax=GridData2D::tmax(); GridData2D::tmin(tmin-deltat_+dt); GridData2D::tmax(tmax-deltat_+dt); deltat_=dt; if (GridData2D::nt()==0) GYOTO_ERROR("In ThinDiskGridIntensity::timeTranslation nt not yet defined"); int nt = GridData2D::nt(); if (!time_array_) GYOTO_ERROR("In ThinDiskGridIntensity::timeTranslation time_array_ not defined. Please use ThinDiskGridIntensity::file(string) before this function"); for (int ii=0;ii0) cout << "\nWARNING : tmin is positive, in most cases the stationnary boundary condition will be applied. You should decrease more timeTranslation_inMunit until at least " << -tmin << "\n" << endl; } double ThinDiskGridIntensity::timeTranslation_inMunit() const { return deltat_; } /*void ThinDiskGridIntensity::dt(double dd) { GridData2D::dt(dd); }*/ void ThinDiskGridIntensity::copyIntensity(double const *const intensity, size_t const naxes[3]) { GYOTO_DEBUG << endl; if (intensity_) { GYOTO_DEBUG << "delete [] intensity_;" << endl; delete [] intensity_; intensity_ = NULL; } size_t nt=GridData2D::nt(), nphi=GridData2D::nphi(), nr=GridData2D::nr(); if (intensity) { size_t nel; GridData2D::nt(naxes[2]); GridData2D::nphi(naxes[1]); GridData2D::nr(naxes[0]); //cout << naxes[0] << "," << naxes[1] << "," << naxes[2] << endl; if (!(nel=naxes[0] * naxes[1] * naxes[2])) GYOTO_ERROR( "dimensions can't be null"); // NB: not updating dr_ contrary to PD GYOTO_DEBUG << "allocate intensity_;" << endl; intensity_ = new double[nel]; GYOTO_DEBUG << "intensity >> intensity_" << endl; memcpy(intensity_, intensity, nel*sizeof(double)); } //cout << "intensity stored= " << endl; //for (int ii=0;ii<30;ii++) cerr << intensity_[ii] << " " ; //cout << endl; } double const * ThinDiskGridIntensity::getIntensity() const { return intensity_; } void ThinDiskGridIntensity::copyTimeArray(double const *const time_array, size_t const ntimes) { GYOTO_DEBUG << endl; if (time_array_) { GYOTO_DEBUG << "delete [] time_array_;\n"; delete [] time_array_; time_array_ = NULL; } size_t nt=GridData2D::nt(); if (time_array) { if (nt != ntimes) GYOTO_ERROR("the given ntimes and nt from FITS file are inconsistent"); GYOTO_DEBUG << "allocate time_array_;" << endl; time_array_ = new double[ntimes]; GYOTO_DEBUG << "time_array >> time_array_" << endl; memcpy(time_array_, time_array, ntimes*sizeof(double)); } } double const * ThinDiskGridIntensity::getTimeArray() const { return time_array_; } #ifdef GYOTO_USE_CFITSIO vector ThinDiskGridIntensity::fitsRead(string filename) { // Remove first char if it is "!" if (filename.substr(0,1)=="!") filename.erase(0,1); GYOTO_MSG << "ThinDiskGridIntensity reading FITS file: " << filename << endl; filename_ = filename; char* pixfile = const_cast(filename_.c_str()); fitsfile* fptr = NULL; int status = 0; double tmpd; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() GYOTO_DEBUG << "ThinDiskGridIntensity::fitsRead: opening file" << endl; if (fits_open_file(&fptr, pixfile, 0, &status)) throwCfitsioError(status) ; ////// READ FITS KEYWORDS COMMON TO ALL TABLES /////// // These are: tmin, tmax, rmin, rmax, phimin, phimax GYOTO_DEBUG << "ThinDiskGridIntensity::fitsRead(): read tmin_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO GridData2D tmin", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else GridData2D::tmin(tmpd+deltat_); // tmin_ found GYOTO_DEBUG << "ThinDiskGridIntensity::fitsRead(): read tmax_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO GridData2D tmax", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else GridData2D::tmax(tmpd+deltat_); // tmax_ found GYOTO_DEBUG << "ThinDiskGridIntensity::fitsRead(): read rmin_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO GridData2D rmin", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else GridData2D::rmin(tmpd); // rmin_ found GYOTO_DEBUG << "ThinDiskGridIntensity::fitsRead(): read rmax_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO GridData2D rmax", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else GridData2D::rmax(tmpd); // rmax_ found GYOTO_DEBUG << "ThinDiskGridIntensity::fitsRead(): read phimin_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO GridData2D phimin", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else GridData2D::phimin(tmpd); // phimin_ found GYOTO_DEBUG << "ThinDiskGridIntensity::fitsRead(): read phimax_" << endl; fits_read_key(fptr, TDOUBLE, "GYOTO GridData2D phimax", &tmpd, NULL, &status); if (status) { if (status == KEY_NO_EXIST) status = 0; // not fatal else throwCfitsioError(status) ; } else GridData2D::phimax(tmpd); // phimax_ found // READ EXTENSIONS // Intensity vector naxes_intens = GridData2D::fitsReadHDU(fptr, "GYOTO GridData2D INTENSITY", intensity_); //cout << "intensity read= " << endl; //for (int ii=0;ii<30;ii++) cerr << intensity_[ii] << " " ; //cout << endl; // Time array vector naxes_time = GridData2D::fitsReadHDU(fptr, "GYOTO GridData2D TIMEARRAY", time_array_); if (naxes_time[0]!=naxes_intens[2]) GYOTO_ERROR("In FlaredDiskSynchro: ntimes differ from intensity array and time_array"); /*cout << "velo read= " << endl; for (int ii=0;ii<60;ii++) cerr << velocity_[ii] << " " ; cout << endl;*/ GridData2D::nr(naxes_intens[0]); GridData2D::nphi(naxes_intens[1]); GridData2D::nt(naxes_intens[2]); //cout << "axes intens: " << naxes_intens[0] << " " << naxes_intens[1] << " " << naxes_intens[2] << endl; //cout << "axes velo: " << naxes_velo[0] << " " << naxes_velo[1] << " " << naxes_velo[2] << " " << naxes_velo[3] << endl; return naxes_intens; } #endif double ThinDiskGridIntensity::emission(double nu, double, state_t const &coord_ph, double const coord_obj[8]) const{ double rcyl=0.; // cylindrical radius double zz=0.; // height, z coord switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: rcyl = coord_ph[1]*sin(coord_ph[2]); zz = coord_ph[1]*cos(coord_ph[2]); break; case GYOTO_COORDKIND_CARTESIAN: rcyl = pow(coord_ph[1]*coord_ph[1]+coord_ph[2]*coord_ph[2], 0.5); zz = coord_ph[3]; break; default: GYOTO_ERROR("In ThinDiskGridIntensity::radiativeQ: Unknown coordinate system kind"); } double tt = coord_ph[0], phi = coord_ph[3]; if (rcylGridData2D::rmax()) return 0.; if (phi<0. or phi>2.*M_PI) throwError("In ThinDiskGridIntensity::radiativeQ: phi is not in 0,2pi!"); // NB: phi is always in grid, and t might be outside, assuming stationnary // disk at ttmax_ //cout << "CALLING INTERPO FOR RHO" << endl; //cout << "tmin max t phi rcyl: " << GridData2D::tmin() << " " << GridData2D::tmax() << " " << tt << " " << phi << " " << rcyl << endl; // Interpolating the intensity_ table double intensity_interpo=GridData2D::interpolate(tt,phi,rcyl,intensity_,time_array_); //cout << "interpo intens= "<< intensity_interpo << endl; return intensity_interpo; } void ThinDiskGridIntensity::getVelocity(double const pos[4], double vel[4]){ string kin = gg_->kind(); if (kin != "KerrBL") GYOTO_ERROR("ThinDiskGridIntensity: KerrBL needed!"); double SPIN = static_cast >(gg_) -> spin(); double risco = gg_->getRms(); // prograde Kerr ISCO double rr = pos[1]; if (rr > risco){ // Keplerian velocity above ISCO gg_ -> circularVelocity(pos, vel, 1); }else{ // See formulas in Gralla, Lupsasca & Marrone 2020, Eqs B8-B14 // initally from Cunnigham 1975 double lambda_ms = (risco*risco - 2.*SPIN*sqrt(risco) + SPIN*SPIN)/(pow(risco,1.5) - 2.*sqrt(risco) + SPIN), gamma_ms = sqrt(1.-2./(3.*risco)), delta = rr*rr - 2.*rr + SPIN*SPIN, hh = (2.*rr - SPIN*lambda_ms)/delta; vel[0] = gamma_ms*(1.+2./rr*(1.+hh)); // this is: -Ems*g^{tt} + Lms*g^{tp} vel[1] = -sqrt(2./(3.*risco))*pow(risco/rr-1.,1.5); // this is: -sqrt{(-1 - g_{tt}*u^t - g_{pp}*u^p - 2*g_{tp}*u^t*u^p)/grr} vel[2] = 0.; vel[3] = gamma_ms/(rr*rr)*(lambda_ms+SPIN*hh); //cout << "u2 = " << gg_->ScalarProd(pos,vel,vel) << endl; } } bool ThinDiskGridIntensity::isThreadSafe() const { return ThinDisk::isThreadSafe(); } Gyoto-2.0.2/lib/ThinDiskIronLine.C000066400000000000000000000072441455254334400166630ustar00rootroot00000000000000/* Copyright 2013, 2018 Frederic Vincent & Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoThinDiskIronLine.h" #include "GyotoConverters.h" #include #include #include #include using namespace Gyoto; using namespace Gyoto::Astrobj; using namespace std; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(ThinDiskIronLine) GYOTO_PROPERTY_DOUBLE(ThinDiskIronLine, PowerLawIndex, PowerLawIndex) GYOTO_PROPERTY_DOUBLE_UNIT(ThinDiskIronLine, LineFreq, LineFreq) GYOTO_PROPERTY_DOUBLE_UNIT(ThinDiskIronLine, CutRadius, CutRadius) GYOTO_PROPERTY_END(ThinDiskIronLine, ThinDisk::properties) // ACCESSORS GYOTO_PROPERTY_ACCESSORS(ThinDiskIronLine, double, plindex_, PowerLawIndex) GYOTO_PROPERTY_ACCESSORS(ThinDiskIronLine, double, cutradius_, CutRadius) // Define the accessors with unit manually void ThinDiskIronLine::CutRadius(double v, std::string const &u) { CutRadius(Units::ToGeometrical(v, u, gg_)); } double ThinDiskIronLine::CutRadius(std::string const &u)const{ return Units::FromGeometrical(CutRadius(), u, gg_); } // The following is not completely standard, let's implement it manually: #define ___local_f 2.417989579752276e+17 //(1e3*1.60217657e-19/GYOTO_PLANCK); void ThinDiskIronLine::LineFreq(double v) {linefreq_=v*___local_f;} double ThinDiskIronLine::LineFreq()const{return linefreq_/___local_f;} void ThinDiskIronLine::LineFreq(double v, std::string const &u) { LineFreq(Units::ToHerz(v, u)); } double ThinDiskIronLine::LineFreq(std::string const &u)const{ return Units::FromHerz(LineFreq(), u); } #undef ___local_f /// Gyoto::Astrobj::ThinDiskIronLine::ThinDiskIronLine() : ThinDisk("ThinDiskIronLine"), plindex_(0.), linefreq_(0.), cutradius_(-DBL_MAX) { GYOTO_DEBUG << "Building ThinDiskIronLine" << endl; } Gyoto::Astrobj::ThinDiskIronLine::ThinDiskIronLine(const ThinDiskIronLine &o) : ThinDisk(o), plindex_(o.plindex_), linefreq_(o.linefreq_), cutradius_(o.cutradius_) { GYOTO_DEBUG << "Copying ThinDiskIronLine" << endl; } ThinDiskIronLine * ThinDiskIronLine::clone() const { return new ThinDiskIronLine(*this); } Gyoto::Astrobj::ThinDiskIronLine::~ThinDiskIronLine() { GYOTO_DEBUG << "Destroying dummy ThinDiskIronLine" << endl; } double ThinDiskIronLine::emission(double nu_em, double /* dsem */, state_t const &, double const coord_obj[8]) const{ double rr=projectedRadius(coord_obj); if (rrdfreq) return 0.; double Iem = pow(rr,-plindex_); return Iem; } void ThinDiskIronLine::getVelocity(double const pos[4], double vel[4]) { if (projectedRadius(pos)SysPrimeToTdot(pos, vel+1); // leads to v>c if a>0... }else{ ThinDisk::getVelocity(pos,vel); } } Gyoto-2.0.2/lib/ThinDiskPL.C000066400000000000000000000052361455254334400154560ustar00rootroot00000000000000/* Copyright 2012, 2014, 2016, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoPhoton.h" #include "GyotoThinDiskPL.h" #include "GyotoProperty.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrBL.h" #include "GyotoKerrKS.h" #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; GYOTO_PROPERTY_START(ThinDiskPL) GYOTO_PROPERTY_DOUBLE(ThinDiskPL, Slope, Slope) GYOTO_PROPERTY_DOUBLE(ThinDiskPL, Tinner, Tinner) GYOTO_PROPERTY_END(ThinDiskPL, ThinDisk::properties) // ACCESSORS void ThinDiskPL::Slope(double alpha) {slope_=alpha;} double ThinDiskPL::Slope()const{return slope_;} void ThinDiskPL::Tinner(double TT) {Tinner_=TT;} double ThinDiskPL::Tinner()const{return Tinner_;} // ThinDiskPL::ThinDiskPL() : ThinDisk("ThinDiskPL"), slope_(0.), Tinner_(1.), spectrumBB_(NULL) { if (debug()) cerr << "DEBUG: ThinDiskPL Construction" << endl; spectrumBB_ = new Spectrum::BlackBody(); } ThinDiskPL::ThinDiskPL(const ThinDiskPL& o) : ThinDisk(o), slope_(o.slope_), Tinner_(o.Tinner_), spectrumBB_(NULL) { if (o.gg_()) gg_=o.gg_->clone(); if (o.spectrumBB_()) spectrumBB_=o.spectrumBB_->clone(); Generic::gg_=gg_; } ThinDiskPL* ThinDiskPL::clone() const { return new ThinDiskPL(*this); } bool ThinDiskPL::isThreadSafe() const { return ThinDisk::isThreadSafe() && (!spectrumBB_ || spectrumBB_ -> isThreadSafe()); } ThinDiskPL::~ThinDiskPL() { if (debug()) cerr << "DEBUG: ThinDiskPL Destruction" << endl; } double ThinDiskPL::emission(double nu, double, state_t const &, double const coord_obj[8]) const{ double rcur=projectedRadius(coord_obj); double TT = Tinner_*pow(rcur/rin_,slope_); // cout << "In ThinPL rin, slope, Tinner, TT= " << rin_ << " " << slope_ << " " << Tinner_ << " " << TT << endl; spectrumBB_->temperature(TT); return (*spectrumBB_)(nu); } Gyoto-2.0.2/lib/ThinDiskProfile.C000066400000000000000000000320611455254334400165370ustar00rootroot00000000000000/* Copyright 2020 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoPhoton.h" #include "GyotoThinDiskProfile.h" #include "GyotoProperty.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrBL.h" #include "GyotoKerrKS.h" #include "GyotoRezzollaZhidenko.h" #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; using namespace Gyoto::Metric; GYOTO_PROPERTY_START(ThinDiskProfile) GYOTO_PROPERTY_BOOL(ThinDiskProfile, CircularMotion, NoCircularMotion, circularMotion) GYOTO_PROPERTY_VECTOR_DOUBLE(ThinDiskProfile, Model_param, model_param, "Parameters useful for the disk, max number NPAR_MAX") GYOTO_PROPERTY_END(ThinDiskProfile, ThinDisk::properties) //#define SPIN 0.94 // Kerr spin parameter for Kerr-specific formulas... #define NPAR_MAX 10 // Max allowed number of parameters bool ThinDiskProfile::circularMotion() const {return circular_motion_;} void ThinDiskProfile::circularMotion(bool circ) {circular_motion_=circ;} void ThinDiskProfile::model_param(std::vector const &v) { size_t n = v.size(); if (n>NPAR_MAX) throwError("Too many parameters in model_param"); for (size_t i=0; i ThinDiskProfile::model_param() const { std::vector v(NPAR_MAX, 0.); for (size_t i=0; iclone(); Generic::gg_=gg_; model_param_ = new double[NPAR_MAX]; for (int ii=0;iikind(); if (kin != "KerrBL") GYOTO_ERROR("ThinDiskProfile: KerrBL needed!"); double SPIN = static_cast >(gg_) -> spin(), a2 = SPIN*SPIN; double rhor=1.+sqrt(1.-a2), rminus=1.-sqrt(1.-a2), risco=gg_->getRms(); // Choose profile here: double gamma=model_param_[0], mu=model_param_[1], sigG=model_param_[2]; //double gamma=-3./2., mu=rminus, sigG=1./2.; //double gamma=-3., mu=risco-0.33, sigG=0.25; double tmp = gamma+asinh((rr-mu)/sigG); emiss = 1e-5*exp(-0.5*tmp*tmp)/sqrt((rr-mu)*(rr-mu)+sigG*sigG); // the 1e-5 is just there to get a reasonable flux for M87 } if (emission_model == "Thermal_Synchrotron"){ // Emission from Vincent+22 thick disk paper synchrotron formula // ****************************** // // Here model_param must contain: //model_param = [zeta, rin, norm, indx1=alpha-2beta, indx2=gamma+2beta], with n_e propto r^-alpha, Theta_e propto r^-beta, B propto r^-gamma double zeta = model_param_[0], rin = model_param_[1], //1.+sqrt(1-SPIN*SPIN); norm = model_param_[2], indx1 = model_param_[3], indx2 = model_param_[4]; //cout << "zeta= " << zeta << endl; //cout << "nu_em= " << nu << endl; // Equation B.7, Appendix B (nu_em=cst=230GHz) //emiss = norm*exp(-zeta*rr/rin); // the 1e-3 for zeta=3 is just there to get a reasonable flux for M87 // Equation B.4 with nu_em dependence and free indices of power law // Decomment the following line (with indx1 = 0, indx2 = 3) to check that in this case the simplified emission is retrieved //nu = 230e9; // Power laws for n_e, Theta_e, B propto r^-2, r^-1, r^-1 //emiss = norm*nu/230*exp(-zeta*pow(230,-1./3)*pow(nu,1./3.)*rr/rin); // Power laws for n_e, Theta_e, B propto r^-alpha, r^-beta, r^-gamma emiss = norm*nu*1e-9/230*pow(rr,-indx1)*exp(-zeta*pow(230,-1./3)*pow(nu*1e-9,1./3.)*pow(rr/rin,indx2/3.)); //cout << setprecision(16); //cout << "emiss " << emiss << endl; // Check //std::ofstream outfile; //outfile.open("./Check/Check_Emission_B4_nu_general_new.txt", std::ios_base::app); // append instead of overwrite //outfile << "Emission: " << emiss << "\n"; //outfile.close(); } return emiss; } void ThinDiskProfile::getVelocity(double const pos[4], double vel[4]) { string kin = gg_->kind(); double risco = 0.; if (gg_->kind()!="Minkowski" && gg_->kind()!="Hayward") risco=gg_->getRms(); // prograde Kerr ISCO // let risco=0 if metric is Minko; then ISCO not defined // let also risco=0 for Hayward as we would need to // compute it numerically and give it in xml Metric field, // not implemented so far //cout << "in velo, r isco= " << pos[1] << " " << risco << endl; double rr = pos[1]; //cout << "circ=" << circular_motion_ < risco){ // Keplerian velocity above ISCO gg_ -> circularVelocity(pos, vel, 1); }else{ if (kin == "KerrBL"){ double SPIN = static_cast >(gg_) -> spin(); // See formulas in Gralla, Lupsasca & Marrone 2020, Eqs B8-B14 // initally from Cunnigham 1975 double lambda_ms = (risco*risco - 2.*SPIN*sqrt(risco) + SPIN*SPIN)/(pow(risco,1.5) - 2.*sqrt(risco) + SPIN), gamma_ms = sqrt(1.-2./(3.*risco)), delta = rr*rr - 2.*rr + SPIN*SPIN, hh = (2.*rr - SPIN*lambda_ms)/delta; vel[0] = gamma_ms*(1.+2./rr*(1.+hh)); // this is: -Ems*g^{tt} + Lms*g^{tp} vel[1] = -sqrt(2./(3.*risco))*pow(risco/rr-1.,1.5); // this is: -sqrt{(-1 - g_{tt}*u^t - g_{pp}*u^p - 2*g_{tp}*u^t*u^p)/grr} vel[2] = 0.; vel[3] = gamma_ms/(rr*rr)*(lambda_ms+SPIN*hh); //cout << "u2 = " << gg_->ScalarProd(pos,vel,vel) << endl; } else if (kin == "RezzollaZhidenko") { // See formulas in Cárdenas, Godfrey, Yunes & Lohfink 2019, Eqs 11 and 12 for E and L // initally from Cunnigham 1975 double N2ms = static_cast >(gg_) -> N2(risco); double Nprimems = static_cast >(gg_) -> Nprime(risco); double g00 = static_cast >(gg_) -> gmunu(pos,0,0); double grr = static_cast >(gg_) -> gmunu(pos,1,1); double gpp = static_cast >(gg_) -> gmunu(pos,3,3); double NNms = sqrt(N2ms); double Ems = sqrt(pow(NNms,3)/(NNms-risco*Nprimems)); double Lms = sqrt(pow(risco,3)*Nprimems/(NNms-risco*Nprimems)); vel[0] = -Ems/g00; // this is: -Ems*(g_{00}^{-1}) vel[2] = 0.; // this is: 0. vel[3] = Lms/pow(rr,2); // this is: Lms/r**2 vel[1] = -sqrt(-pow(grr,-1)*(1.+g00*pow(vel[0],2)+gpp*pow(vel[3],2))); // this is: -sqrt{-(g_{rr}^{-1})*(1 + g_{00}*(u^t)^2 + g_{pp}*(u^p)^2)} // Velocity to see the discontinuity for n=0 //vel[1] = 0.; //vel[2] = 0.; //vel[3] = 0.; //vel[0] = sqrt(-pow(g00,-1)); // Check the normalisation of the 4-velocity double tol=1e-5; double u2 = gg_->ScalarProd(pos,vel,vel); if (fabs(u2+1.)>tol or u2!=u2) { cerr << " *** 4-velocity squared norm= " << u2 << endl; throwError("In ThinDiskProfile: 4vel RezzollaZhidenko is not properly normalized!"); } } else { GYOTO_ERROR("ThinDiskProfile: KerrBL or RezzollaZhidenko needed!"); } } }else{ // RADIAL FALL double gtt = gg_->gmunu(pos,0,0), grr = gg_->gmunu(pos,1,1), guptt = gg_->gmunu_up(pos,0,0), guptp = gg_->gmunu_up(pos,0,3), guprr = gg_->gmunu_up(pos,1,1); // 4-vel obtained by imposing: u_t=-1, u_phi=0, u^theta=0 // see FV notes SphericalVelocity.pdf for details vel[0] = -guptt; vel[1] = -sqrt((-1.-guptt)*guprr); vel[2] = 0; vel[3] = -guptp; double tol=1e-5; double u2 = gg_->ScalarProd(pos,vel,vel); //cout << "4vel,u2= " << rr << " " << pos[2] << " " << gtt << " " << grr << " " << vel[0] << " " << vel[1] << " " << vel[2] << " " << vel[3] << " " << u2 << endl; if (fabs(u2+1.)>tol or u2!=u2) { cerr << " *** 4-velocity squared norm= " << u2 << endl; throwError("In ThinDiskProfile: 4vel " "is not properly normalized!"); } } //cout << "4vel= " << vel[0] << " " << vel[1] << " " << vel[2] << " " << vel[3]<< endl; } void ThinDiskProfile::processHitQuantities(Photon* ph, state_t const &coord_ph_hit, double const *coord_obj_hit, double dt, Properties* data) const { #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; #endif SmartPointer spr = ph -> spectrometer(); size_t nbnuobs = spr() ? spr -> nSamples() : 0 ; //cout << "nbnuobs " << nbnuobs << endl; if (nbnuobs!=1) GYOTO_ERROR("nbnuobs should be 1"); //spectro.set("NSamples", 1) double const * const nuobs = nbnuobs ? spr -> getMidpoints() : NULL; double dlambda = dt/coord_ph_hit[4]; //dlambda = dt/tdot double ggredm1 = -gg_->ScalarProd(&coord_ph_hit[0],coord_obj_hit+4, &coord_ph_hit[4]);// / 1.; //this is nu_em/nu_obs if (noredshift_) ggredm1=1.; double ggred = 1./ggredm1; //this is nu_obs/nu_em double dsem = dlambda*ggredm1; // *1. double inc =0.; if (data){ // this check is necessary as process can be called // with data replaced by NULL (see ComplexAstrobj and // Photon nb_cross_eqplane) if (data->user4) { // *** CAREFUL!! *** /* I have to include here the "fudge factor" of Gralla+. Do not forget to remove it to consider some other disk profile. */ double max_cross_eqplane = ph->maxCrossEqplane(); if (max_cross_eqplane==DBL_MAX) cout << "WARNING: in ThinDiskProfile::process: max_cross_eqplane is DBL_MAX and probably should not be" << endl; int nb_cross_eqplane = ph->nb_cross_eqplane(); double fudge_Gralla=1.; if (nb_cross_eqplane>0) fudge_Gralla=1.5; inc = fudge_Gralla * (emission(ggredm1, dsem, coord_ph_hit, coord_obj_hit)) * (ph -> getTransmission(size_t(-1))) * ggred*ggred*ggred*ggred; // I/nu^4 invariant *data->user4 += inc; #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(*data->user4); #endif } else if (data->spectrum) { // *** CAREFUL!! *** /* I have to include here the "fudge factor" of Gralla+. Do not forget to remove it to consider some other disk profile. */ double * nuem = new double[nbnuobs]; for (size_t ii=0; iimaxCrossEqplane(); if (max_cross_eqplane==DBL_MAX) cout << "WARNING: in ThinDiskProfile::process: max_cross_eqplane is DBL_MAX and probably should not be" << endl; int nb_cross_eqplane = ph->nb_cross_eqplane(); double fudge_Gralla=1.; //cout << "nb cross fudge " << nb_cross_eqplane << endl; if (nb_cross_eqplane>0) fudge_Gralla=1.5; for (size_t ii=0; ii getTransmission(size_t(-1))) * ggred*ggred*ggred; // I/nu^3 invariant *data->spectrum += inc; // data->spectrum[ii*data->offset] += inc !Error } #if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(*data->spectrum); #endif } else GYOTO_ERROR("unimplemented data"); } } Gyoto-2.0.2/lib/Torus.C000066400000000000000000000177661455254334400146340ustar00rootroot00000000000000/* Copyright 2011, 2018 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoTorus.h" #include "GyotoStandardAstrobj.h" #include "GyotoUtils.h" #include "GyotoBlackBodySpectrum.h" #include "GyotoPowerLawSpectrum.h" #include "GyotoMetric.h" #include "GyotoProperty.h" #include "GyotoFactoryMessenger.h" #include #include #include #include using namespace Gyoto; using namespace Gyoto::Astrobj; using namespace std; GYOTO_PROPERTY_START(Torus, "Geometrical Torus in circular rotation.") GYOTO_PROPERTY_SPECTRUM(Torus, Spectrum, spectrum, "Emission law.") GYOTO_PROPERTY_SPECTRUM(Torus, Opacity, opacity, "Absorption law.") GYOTO_PROPERTY_DOUBLE(Torus, SmallRadius, smallRadius, "Minor radius, radius of a meridian circle.") GYOTO_PROPERTY_DOUBLE(Torus, LargeRadius, largeRadius, "Major radius, distance from centre of tube to centre of torus. ") GYOTO_PROPERTY_END(Torus, Standard::properties) Torus::Torus() : Standard("Torus"), c_(3.5) { critical_value_ = 0.25; // 0.5*0.5 safety_value_ = 0.3; spectrum_ = new Spectrum::BlackBody(1000000.); opacity_ = new Spectrum::PowerLaw(0., 1.); spectrumThermalSynch_ = new Spectrum::ThermalSynchrotron(); } Torus::Torus(const Torus& o) : Standard(o), c_(o.c_), spectrum_(o.spectrum_()?o.spectrum_->clone():NULL), opacity_(o.opacity_()?o.opacity_->clone():NULL), spectrumThermalSynch_(o.spectrumThermalSynch_()?o.spectrumThermalSynch_->clone():NULL) {} Torus::~Torus() {} Torus* Torus::clone() const { return new Torus(*this); } double Torus::largeRadius() const { return c_; } double Torus::largeRadius(string unit) const { return Units::FromGeometrical(largeRadius(), unit, gg_); } double Torus::smallRadius() const { return sqrt(critical_value_); } double Torus::smallRadius(string unit) const { return Units::FromGeometrical(smallRadius(), unit, gg_); } void Torus::largeRadius(double c) { c_ = c; } void Torus::largeRadius(double c, string unit) { largeRadius(Units::ToGeometrical(c, unit, gg_)); } void Torus::smallRadius(double a) { critical_value_ = a*a; safety_value_ = critical_value_ * 1.1; } void Torus::smallRadius(double c, string unit) { smallRadius(Units::ToGeometrical(c, unit, gg_)); } SmartPointer Torus::spectrum() const { return spectrum_; } void Torus::spectrum(SmartPointer sp) {spectrum_=sp;} SmartPointer Torus::opacity() const { return opacity_; } void Torus::opacity(SmartPointer sp) {opacity_=sp;} double Torus::rMax() { if (rmax_==DBL_MAX) { rmax_ = 3.*(c_+sqrt(critical_value_)); } return rmax_ ; } double Torus::emission(double nu_em, double dsem, state_t const &, double const *) const { if (flag_radtransf_) return (*spectrum_)(nu_em, (*opacity_)(nu_em), dsem); return (*spectrum_)(nu_em); } double Torus::transmission(double nuem, double dsem, state_t const &, double const *) const { if (!flag_radtransf_) return 0.; double opac = (*opacity_)(nuem); if (debug()) cerr << "DEBUG: Torus::transmission(nuem="<integrate(nu1, nu2, opacity_(), dsem); return spectrum_->integrate(nu1, nu2); } double Torus::operator()(double const pos[4]) { double drproj, h; switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: drproj = pos[1]*sin(pos[2])-c_; h = pos[1]*cos(pos[2]); break; case GYOTO_COORDKIND_CARTESIAN: h = pos[3]; drproj = sqrt(pos[1]*pos[1]+pos[2]*pos[2])-c_; break; default: GYOTO_ERROR("Torus::distance(): unknown coordinate system kind"); h=0.,drproj=0.; } return drproj*drproj + h*h; } double Torus::deltaMax(double * coord) { double d2 = (*this)(coord); if (d2 coordKind()) { case GYOTO_COORDKIND_CARTESIAN: pos2[1] = pos[1]; pos2[2] = pos[2]; pos2[3] = 0.; break; case GYOTO_COORDKIND_SPHERICAL: pos2[1] = pos[1] * sin(pos[2]); pos2[2] = M_PI*0.5; pos2[3] = pos[3]; break; default: GYOTO_ERROR("Torus::getVelocity(): unknown coordkind"); } gg_ -> circularVelocity(pos2, vel); } void Torus::radiativeQ(double Inu[], // output double Taunu[], // output double const nu_ems[], size_t nbnu, // input double dsem, state_t const &coord_ph, double const coord_obj[8]) const { double number_density = 4.8e5; double temperature = 9.5e10; double thetae = GYOTO_BOLTZMANN_CGS*temperature /(GYOTO_ELECTRON_MASS_CGS*GYOTO_C2_CGS); double magnetizationParameter = 0.01; double BB = sqrt(4.*M_PI*magnetizationParameter *GYOTO_PROTON_MASS_CGS * GYOTO_C_CGS * GYOTO_C_CGS *number_density); double nu0 = GYOTO_ELEMENTARY_CHARGE_CGS*BB /(2.*M_PI*GYOTO_ELECTRON_MASS_CGS*GYOTO_C_CGS); // cyclotron freq //cout << "jet stuff= " << coord_ph[1] << " " << coord_ph[2] << " " << zz << " " << rcyljetbase << " " << rcyl << " " << number_density << " " << thetae << " " << temperatureSlope_ << " " << nu0 << endl; //cout << "jet zz,rcyl,th,ph,ne,Te= " << zz << " " << rcyl << " " << coord_ph[2] << " " << coord_ph[3] << " " << number_density << " " << temperature << endl; // Use that line for Compton study: //cout << zz << " " << rcyl << " " << number_density << " " << temperature << endl; // Emission and absorption synchrotron coefs double jnu_synch[nbnu], anu_synch[nbnu]; for (size_t ii=0; iitemperature(temperature); spectrumThermalSynch_->numberdensityCGS(number_density); spectrumThermalSynch_->angle_averaged(1); // impose angle-averaging spectrumThermalSynch_->angle_B_pem(0.); // so we don't care about angle spectrumThermalSynch_->cyclotron_freq(nu0); double besselK2 = bessk(2, 1./thetae); spectrumThermalSynch_->besselK2(besselK2); spectrumThermalSynch_->radiativeQ(jnu_synch,anu_synch, nu_ems,nbnu); // RETURNING TOTAL INTENSITY AND TRANSMISSION for (size_t ii=0; iiunitLength()); Taunu[ii] = em1+1.; Inu[ii] = anu_tot == 0. ? jnu_tot * dsem * gg_->unitLength() : -jnu_tot / anu_tot * em1; if (Inu[ii]<0.) GYOTO_ERROR("In Torus::radiativeQ: Inu<0"); if (Inu[ii]!=Inu[ii] or Taunu[ii]!=Taunu[ii]) GYOTO_ERROR("In Torus::radiativeQ: Inu or Taunu is nan"); if (Inu[ii]==Inu[ii]+1. or Taunu[ii]==Taunu[ii]+1.) GYOTO_ERROR("In Torus::radiativeQ: Inu or Taunu is infinite"); } } Gyoto-2.0.2/lib/UniformSpectrometer.C000066400000000000000000000204451455254334400175200ustar00rootroot00000000000000/* Copyright 2013 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUniformSpectrometer.h" #include "GyotoUtils.h" #include "GyotoFactoryMessenger.h" #include "GyotoConverters.h" #include "GyotoMetric.h" #include #include #include #include #include #include #include // DBL_MAX using namespace Gyoto; using namespace Gyoto::Spectrometer; using namespace std; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(Uniform, "Spectrometer with uniform spacing (log or linear, wave. of freq.).") GYOTO_PROPERTY_VECTOR_DOUBLE_UNIT(Uniform, Band, band, "Spectral band (default unit: Hz, m, Log(Hz) or Log(m)).") GYOTO_PROPERTY_STRING(Uniform, Kind, kind, "\"freq\", \"wave\", \"freqlog\" or \"wavelog\".") GYOTO_PROPERTY_SIZE_T(Uniform, NSamples, nSamples, "Number of spectral channels.") GYOTO_PROPERTY_END(Uniform, Generic::properties) void Uniform::fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const { if (p.type == Property::size_t_t && p.name == "NSamples") fmp -> setSelfAttribute("nsamples", nsamples_); else if (p.type == Property::string_t && p.name == "Kind") ; // do nothing else if (p.type == Property::vector_double_t && p.name == "Band") { ostringstream ss; ss << setprecision(GYOTO_PREC) << setw(GYOTO_WIDTH) << band_[0] << " " << setprecision(GYOTO_PREC) << setw(GYOTO_WIDTH) << band_[1]; fmp -> setFullContent(ss.str()); } else GYOTO_ERROR("Unsupported Property in Spectrometer::Uniform"); } #ifdef GYOTO_USE_XERCES void Gyoto::Spectrometer::Uniform::setParameters(FactoryMessenger* fmp) { string skind = fmp -> getSelfAttribute( "kind" ); size_t nsamples = atol( fmp -> getSelfAttribute( "nsamples" ) . c_str () ); string unit = fmp -> getSelfAttribute( "unit" ); string content = fmp -> getFullContent(); double band[2]; if (FactoryMessenger::parseArray(content, band, 2) != 2) GYOTO_ERROR("Spectromecter::Uniform requires exactly 2 tokens"); Uniform::band(band, unit, skind); nSamples(nsamples); } #endif /// Uniform::Uniform() : Generic(WaveKind) { band_[0]=0.; band_[1]=0.; } Uniform::Uniform(size_t nsamples, double band_min, double band_max, kind_t kin) : Generic(kin) { nsamples_=nsamples; band_[0]=band_min; band_[1]=band_max; if (nsamples && kin) reset_(); } Uniform::Uniform(const Uniform& o) : Generic(o) { band_[0]=o.band_[0]; band_[1]=o.band_[1]; reset_(); } Generic* Uniform::clone() const { return new Uniform(*this); } Uniform::~Uniform() { } void Uniform::reset_() { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif if (boundaries_) delete [] boundaries_; if (chanind_) delete [] chanind_; if (midpoints_) delete [] midpoints_; if (widths_) delete [] widths_; boundaries_ = NULL; chanind_ = NULL; midpoints_ = NULL; widths_ = NULL; GYOTO_DEBUG << endl; if (!nsamples_ || !kindid_) return; boundaries_ = new double[nsamples_+1]; chanind_ = new size_t[nsamples_*2]; midpoints_ = new double[nsamples_]; widths_ = new double[nsamples_]; size_t i=0 ; # if GYOTO_DEBUG_ENABLED GYOTO_IF_DEBUG; GYOTO_DEBUG_EXPR(band_); GYOTO_DEBUG_ARRAY(band_, 2); GYOTO_DEBUG_EXPR(kindid_); GYOTO_ENDIF_DEBUG # endif for (i=0; i<=nsamples_; ++i){ # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "boundaries_[" <const &vnu) { if (vnu.size() != 2) GYOTO_ERROR("Band needs exactly two elements"); double nu[] = {vnu[0], vnu[1]}; band(nu); } void Uniform::band(std::vectorconst &vnu, std::string const &u) { if (vnu.size() != 2) GYOTO_ERROR("Band needs exactly two elements"); double nu[] = {vnu[0], vnu[1]}; band(nu, u); } std::vector Uniform::band() const { std::vector vnu(2, band_[0]); vnu[1]=band_[1]; return vnu; } std::vector Uniform::band(std::string const &unit) const { std::vector vnu = band(); if (kindid_== FreqKind) { if (unit != "" && unit != "Hz") for (size_t i=0; i<=1; ++i) vnu[i] = Units::FromHerz(vnu[i], unit); } else if (kindid_== FreqLogKind) { if (unit != "" && unit != "Hz") for (size_t i=0; i<=1; ++i) vnu[i] = pow(10., Units::FromHerz(log10(vnu[i]), unit)); } else if (kindid_== WaveKind) { if (unit != "" && unit != "m") for (size_t i=0; i<=1; ++i) vnu[i] = Units::FromMeters(vnu[i], unit); } else if (kindid_ == WaveLogKind) { if (unit != "" && unit != "m") for (size_t i=0; i<=1; ++i) vnu[i] = pow(10., Units::FromMeters(log10(vnu[i]), unit)); } else { GYOTO_ERROR("Uniform::band(string const &unit) at loss: " "please specify Spectrometer kind"); } return vnu; } void Uniform::band(double nu[2]) { band_[0] = nu[0]; band_[1] = nu[1]; reset_(); } void Uniform::band(double nu[2], string const &unit, string const &skind) { if (skind != "") kind(skind); band(nu, unit); } void Uniform::band(double nu[2], string const &unit) { double band[2] = {nu[0], nu[1]}; if (kindid_== FreqKind) { if (unit != "" && unit != "Hz") for (size_t i=0; i<=1; ++i) band[i] = Units::ToHerz(nu[i], unit); } else if (kindid_== FreqLogKind) { if (unit != "" && unit != "Hz") for (size_t i=0; i<=1; ++i) band[i] = log10(Units::ToHerz(pow(10., nu[i]), unit)); } else if (kindid_== WaveKind) { if (unit != "" && unit != "m") for (size_t i=0; i<=1; ++i) band[i] = Units::ToMeters(nu[i], unit); } else if (kindid_ == WaveLogKind) { if (unit != "" && unit != "m") for (size_t i=0; i<=1; ++i) band[i] = log10(Units::ToMeters(pow(10., nu[i]), unit)); } else { GYOTO_ERROR("Uniform::band(double, string) at loss: " "please specify Spectrometer kind"); } Uniform::band(band); } double const * Uniform::getBand() const { return band_; } char const * const Uniform::WaveKind = "wave"; char const * const Uniform::WaveLogKind = "wavelog"; char const * const Uniform::FreqKind = "freq"; char const * const Uniform::FreqLogKind = "freqlog"; Gyoto-2.0.2/lib/UniformSphere.C000066400000000000000000000222161455254334400162700ustar00rootroot00000000000000/* Copyright 2011-2015, 2018-2019 Thibaut Paumard, Frederic Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoUniformSphere.h" #include "GyotoPhoton.h" #include "GyotoPowerLawSpectrum.h" #include "GyotoBlackBodySpectrum.h" #include "GyotoFactoryMessenger.h" #include "GyotoConverters.h" #include "GyotoProperty.h" #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; GYOTO_PROPERTY_START(Gyoto::Astrobj::UniformSphere, "Coordinate sphere with uniform emission and absorption.") GYOTO_PROPERTY_SPECTRUM(UniformSphere, Spectrum, spectrum, "Emission law.") GYOTO_PROPERTY_SPECTRUM(UniformSphere,Opacity, opacity, "Absorption law.") GYOTO_PROPERTY_BOOL(UniformSphere, IsotropicEmittedIntensity, TrueEmittedIntensity, isotropic, "If true, then emission just returns 1.") GYOTO_PROPERTY_DOUBLE(UniformSphere, DeltaMaxOverDistance, deltaMaxOverDistance, "Maximum value of step/distance from centre of sphere for photons.") GYOTO_PROPERTY_DOUBLE(UniformSphere, DeltaMaxOverRadius, deltaMaxOverRadius, "Maximum value of step/radius of sphere for photons.") GYOTO_PROPERTY_DOUBLE(UniformSphere, Alpha, alpha, "Deprecated") GYOTO_PROPERTY_DOUBLE_UNIT(UniformSphere, Radius, radius, "Sphere radius (geometrical units).") GYOTO_PROPERTY_END(UniformSphere, Standard::properties) #define GYOTO_USPH_DELTAMAX_OVER_RAD 0.1 #define GYOTO_USPH_DELTAMAX_OVER_DST 0.1 UniformSphere::UniformSphere(string kin) : Astrobj::Standard(kin), // radius_(0.), isotropic_(0), spectrum_(NULL), opacity_(NULL), dltmor_(GYOTO_USPH_DELTAMAX_OVER_RAD), dltmod_(GYOTO_USPH_DELTAMAX_OVER_DST) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif //cout << "in creaor " << Generic::radiativeQ() << endl; // also initial safety_value_ etc. radius(0.); spectrum(new Spectrum::BlackBody()); opacity(new Spectrum::PowerLaw(0., 1.)); opticallyThin(false); } UniformSphere::UniformSphere(string kin, SmartPointer met, double rad) : Astrobj::Standard(kin), //radius_(rad), isotropic_(0), spectrum_(NULL), opacity_(NULL), dltmor_(GYOTO_USPH_DELTAMAX_OVER_RAD), dltmod_(GYOTO_USPH_DELTAMAX_OVER_DST) { // also initialize safety_value_ etc. radius(rad); spectrum(new Spectrum::BlackBody()); opacity(new Spectrum::PowerLaw(0., 1.)); opticallyThin(false); gg_=met; } UniformSphere::UniformSphere(const UniformSphere& orig) : Astrobj::Standard(orig), radius_(orig.radius_), isotropic_(orig.isotropic_), spectrum_(NULL), opacity_(NULL), dltmor_(orig.dltmor_), dltmod_(orig.dltmod_) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif if (orig.spectrum_()) spectrum_=orig.spectrum_->clone(); if (orig.opacity_()) opacity_=orig.opacity_->clone(); } UniformSphere::~UniformSphere() { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif } string UniformSphere::className() const { return string("UniformSphere"); } string UniformSphere::className_l() const { return string("uniformsphere"); } SmartPointer UniformSphere::spectrum() const { return spectrum_; } void UniformSphere::spectrum(SmartPointer sp) {spectrum_=sp;} SmartPointer UniformSphere::opacity() const { return opacity_; } void UniformSphere::opacity(SmartPointer sp) { opticallyThin(sp); opacity_=sp; } double UniformSphere::operator()(double const coord[4]) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif double coord_st[4] = {coord[0]}; double coord_ph[4] = {coord[0]}; double sintheta; getCartesian(coord_st, 1, coord_st+1, coord_st+2, coord_st+3); // Special treatment for SchwarzschildHarmonic: define star // as a sphere of radius r_BL=R_star and not r_harmonic=R_star, // in order to ease comparison between coordinate systems. if (gg_->kind()=="SchwarzschildHarmonic"){ double r_st = sqrt(coord_st[1]*coord_st[1]+coord_st[2]*coord_st[2]+coord_st[3]*coord_st[3]); double theta = acos(coord_st[3]/r_st), phi = atan(coord_st[2]/coord_st[1]); coord_st[1]+= sin(theta)*cos(phi); coord_st[2]+= sin(theta)*sin(phi); coord_st[3]+= cos(theta); } switch (gg_->coordKind()) { case GYOTO_COORDKIND_CARTESIAN: memcpy(coord_ph+1, coord+1, 3*sizeof(double)); break; case GYOTO_COORDKIND_SPHERICAL: coord_ph[1] = (coord[1]) * (sintheta=sin(coord[2])) * cos(coord[3]); coord_ph[2] = (coord[1]) * sintheta * sin(coord[3]); coord_ph[3] = (coord[1]) * cos(coord[2]) ; // Special treatment for SchwarzschildHarmonic: define star // as a sphere of radius r_BL=R_star and not r_harmonic=R_star, // in order to ease comparison between coordinate systems. if (gg_->kind()=="SchwarzschildHarmonic"){ coord_ph[1] = (coord[1]+1.) * sintheta * cos(coord[3]); coord_ph[2] = (coord[1]+1.) * sintheta * sin(coord[3]); coord_ph[3] = (coord[1]+1.) * cos(coord[2]) ; } break; default: GYOTO_ERROR("unsupported coordkind"); } //cout << "testcoord: " << coord_ph[1] << " " << coord_st[1] << " " << coord_ph[1] - coord_st[1] << endl; double dx = coord_ph[1]-coord_st[1]; double dy = coord_ph[2]-coord_st[2]; double dz = coord_ph[3]-coord_st[3]; //cout << "unif= " << dx*dx << " " << dy*dy << " " << dz*dz << endl; //double rstar = sqrt(coord_st[1]*coord_st[1] + coord_st[2]*coord_st[2] +coord_st[3]*coord_st[3]); //cout << "tph, rph, thph, phph= " << coord[0]<< " " << coord[1] << " " << coord[2] << " " << coord[3] << " " << endl; //cout << "tst, rst, thst, phst= " << coord_st[0]<< " " << r_st << " " << theta << " " << phi << endl; //cout << "d2 Rstar= " << dx*dx + dy*dy + dz*dz << " " << radius_*radius_<< endl; //cout << "trthph ph + st, rsp= " << coord[0] << " " << coord[1] << " " << coord[2] << " " << coord[3] << " ; " << coord_st[0] << " " << rstar << " " << acos(coord_st[3]/rstar) << " " << atan(coord_st[2]/coord_st[1]) << " " << dx*dx + dy*dy + dz*dz << endl; return dx*dx + dy*dy + dz*dz; } double UniformSphere::deltaMax(double * coord) { double r; switch (gg_->coordKind()) { case GYOTO_COORDKIND_CARTESIAN: r=sqrt(coord[1]*coord[1]+coord[2]*coord[2]+coord[3]*coord[3]); break; case GYOTO_COORDKIND_SPHERICAL: r=coord[1]; break; default: r=0.; GYOTO_ERROR("unsupported coordkind"); } if (rmax_!=DBL_MAX && r>rmax_) return r*0.5; return max(dltmod_*sqrt((*this)(coord)), dltmor_*radius_); } double UniformSphere::emission(double nu_em, double dsem, state_t const &, double const *) const { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif if (isotropic_){ if (flag_radtransf_){ return dsem; }else{ //cout << "returning 1 in unif sph" << endl; return 1.; } } if (flag_radtransf_) return (*spectrum_)(nu_em, (*opacity_)(nu_em), dsem); return (*spectrum_)(nu_em); } double UniformSphere::transmission(double nuem, double dsem, state_t const &, double const *) const { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif if (!flag_radtransf_) return 0.; double opac = (*opacity_)(nuem); # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "(nuem=" << nuem << ", dsem=" << dsem << "), opacity=" << opac << endl; # endif if (!opac) return 1.; return exp(-opac*dsem); } double UniformSphere::integrateEmission(double nu1, double nu2, double dsem, state_t const &, double const *) const { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif if (flag_radtransf_) return spectrum_->integrate(nu1, nu2, opacity_(), dsem); return spectrum_->integrate(nu1, nu2); } double UniformSphere::radius() const { return radius_; } void UniformSphere::radius(double r) { radius_=r; critical_value_ = r*r; safety_value_ = critical_value_*1.1+0.1; } double UniformSphere::radius(std::string const &unit) const { return Units::FromGeometrical(radius(), unit, gg_); } void UniformSphere::radius(double r, std::string const &unit) { radius(Units::ToGeometrical(r, unit, gg_)); } double UniformSphere::deltaMaxOverRadius() const {return dltmor_;} void UniformSphere::deltaMaxOverRadius(double f) {dltmor_=f;} double UniformSphere::deltaMaxOverDistance() const {return dltmod_;} void UniformSphere::deltaMaxOverDistance(double f) {dltmod_=f;} double UniformSphere::alpha() const { return 1.; } void UniformSphere::alpha(double a) { if (a != 1.) GYOTO_ERROR("property 'Alpha' is deprecated"); } bool UniformSphere::isotropic() const { return isotropic_; } void UniformSphere::isotropic(bool a) { isotropic_ = a; } Gyoto-2.0.2/lib/Utils.C000066400000000000000000000266531455254334400146130ustar00rootroot00000000000000/* Copyright 2011-2012, 2014-2016, 2018-2020 Thibaut Paumard & Frédéric Vincent This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include "GyotoError.h" #include "GyotoPhoton.h" #include #include #include #include "GyotoScenery.h" #include "GyotoSpectrum.h" #include "GyotoMetric.h" #include "GyotoAstrobj.h" #include "GyotoSpectrometer.h" #include "GyotoScreen.h" using namespace Gyoto; using namespace std; static int gyoto_debug=GYOTO_DEFAULT_DEBUG_MODE; #if GYOTO_DEFAULT_DEBUG_MODE static int gyoto_verbosity=GYOTO_DEBUG_VERBOSITY; static int gyoto_prev_verbosity=GYOTO_DEBUG_VERBOSITY; #else static int gyoto_verbosity=GYOTO_DEFAULT_VERBOSITY; static int gyoto_prev_verbosity=GYOTO_DEBUG_VERBOSITY; #endif #if defined GYOTO_USE_ARBLIB # include # include #elif defined GYOTO_USE_AEAE # include # include # define SIGN(a) (((a) < 0) ? (-1) : (1)) # include "complex_functions.H" # include "hyp_2F1.cpp" #endif void Gyoto::debug(int mode) { if (mode != gyoto_debug) { if (mode) { gyoto_prev_verbosity=verbose(); verbose(GYOTO_DEBUG_VERBOSITY); } else { verbose(gyoto_prev_verbosity); } gyoto_debug=mode; } } int Gyoto::debug() { return gyoto_debug; } void Gyoto::verbose(int mode) { gyoto_verbosity=mode; } int Gyoto::verbose() { return gyoto_verbosity; } void Gyoto::convert(double * const x, const size_t nelem, const double mass_sun, const double distance_kpc, const string unit) { /// Convert lengths double distance = distance_kpc*GYOTO_KPC; // m double fact = mass_sun * GYOTO_SUN_MASS * GYOTO_G_OVER_C_SQUARE; // m size_t i =0; if (!unit.compare("geometrical")) return ; else if (!unit.compare("m")) ; else if (!unit.compare("km")) fact *= 1e-3 ; else if (!unit.compare("sun radius")) fact *= 1. / GYOTO_SUN_RADIUS; else if (!unit.compare("rad")) fact *= 1. / (distance); else if (!unit.compare("degree")) fact *= 180. / (distance*M_PI); else if (!unit.compare("arcmin")) fact *= 1.08e4 / (distance*M_PI); else if (!unit.compare("arcsec")) fact *= 6.48e5 / (distance*M_PI); else if (!unit.compare("mas")) fact *= 6.48e8 / (distance*M_PI); else if (!unit.compare("uas")) fact *= 6.48e11 / (distance*M_PI); else GYOTO_ERROR("Unknown unit."); for (i=0; i plugins; if (class_name.substr(0, 7)=="Gyoto::") class_name=class_name.substr(7); if (class_name=="Scenery") {Scenery().help(); return;} if (class_name=="Screen") {Screen().help(); return;} if (class_name=="Photon") {Photon().help(); return;} size_t pos=class_name.find("::"); if (pos==0 || pos+2==class_name.size()) GYOTO_ERROR("Not a valid class name: "+class_name); if (pos > 0 && pos != string::npos) { string nspace = class_name.substr(0, pos); class_name = class_name.substr(pos+2); if (nspace=="Astrobj") { (*Astrobj::getSubcontractor(class_name, plugins)) (NULL, plugins)->help(); return; } if (nspace=="Metric") { (*Metric::getSubcontractor(class_name, plugins)) (NULL, plugins)->help(); return; } if (nspace=="Spectrum") { (*Spectrum::getSubcontractor(class_name, plugins)) (NULL, plugins)->help(); return; } if (nspace=="Spectrometer") { (*Spectrometer::getSubcontractor(class_name, plugins)) (NULL, plugins)->help(); return; } GYOTO_ERROR("Unrecognized namespace: "+nspace); } GYOTO_ERROR("Help string not implemented (yet) for "+class_name); } std::vector Gyoto::split(std::string const &src, std::string const &delim) { std::vector res; size_t pos=0, fpos=0, sz=src.length(); std::string tmp(""); while (fpos != string::npos && pos < sz) { fpos = src.find_first_of(delim, pos); if (fpos==pos) {++pos; continue;} res.push_back(src.substr(pos, fpos-pos)); pos = fpos+1; } return res; } // Bessel functions double Gyoto::bessi0(double xx) { double ax,ans,y; if((ax=fabs(xx))< 3.75){ y=xx/3.75; y*=y; ans=1.0+y*(3.5156229+y*(3.0899424+y*(1.2067492 +y*(0.2659732 +y*(0.360768e-1 +y*0.45813e-2))))); }else{ y=3.75/ax; ans=(exp(ax)/sqrt(ax)) *(0.39894228 +y*(0.1328592e-1 +y*(0.225319e-2 +y*(-0.157565e-2 +y*(0.916281e-2 +y*(-0.2057706e-1 +y*(0.2635537e-1 +y*(-0.1647633e-1 +y*0.392377e-2)))))))); } return ans; } double Gyoto::bessk0(double xx) { double ans,y; if(xx<=2.0){ y=xx*xx/4.0; ans=(-log(xx/2.0)*bessi0(xx)) +(-0.57721566 +y*(0.42278420 +y*(0.23069756+y*(0.3488590e-1 +y*(0.262698e-2 +y*(0.10750e-3+y*0.74e-5)))))); }else{ y=2.0/xx; ans=(exp(-xx)/sqrt(xx))*(1.25331414 +y*(-0.7832358e-1 +y*(0.2189568e-1 +y*(-0.1062446e-1 +y*(0.587872e-2 +y*(-0.251540e-2 +y*0.53208e-3)))))); } return ans; } double Gyoto::bessi1(double xx) { double ax,ans,y; if((ax=fabs(xx))< 3.75){ y=xx/3.75; y*=y; ans=ax*(0.5+y*(0.87890594 +y*(0.51498869 +y*(0.15084934 +y*(0.2658733e-1 +y*(0.301532e-2+y*0.32411e-3)))))); }else{ y=3.75/ax; ans=0.2282967e-1+y*(-0.2895312e-1+y*(0.1787654e-1 -y*0.420059e-2)); ans=0.39894228+y*(-0.3988024e-1+y*(-0.362018e-2 +y*(0.163801e-2 +y*(-0.1031555e-1+y*ans)))); ans*=(exp(ax)/sqrt(ax)); } return xx<0.0 ? -ans : ans; } double Gyoto::bessk1(double xx) { double yy,ans; if(xx<=2.0){ yy=xx*xx/4.0; ans=(log(xx/2.0)*bessi1(xx)) +(1.0/xx)*(1.0+yy*(0.15443144 +yy*(-0.67278579 +yy*(-0.18156897 +yy*(-0.1919402e-1 +yy*(-0.110404e-2 +yy*(-0.4686e-4))))))); }else{ yy=2.0/xx; ans=(exp(-xx)/sqrt(xx))*(1.25331414 +yy*(0.23498619 +yy*(-0.3655620e-1 +yy*(0.1504268e-1 +yy*(-0.780353e-2 +yy*(0.325614e-2 +yy*(-0.68245e-3))))))); } return ans; } double Gyoto::bessk(int nn,double xx) { double bk,bkm,bkp,tox; if(nn< 2) GYOTO_ERROR("In Utils::besselk n>2!"); tox=2.0/xx; bkm=bessk0(xx); bk=bessk1(xx); for(int j=1;jmid, ARF_RND_NEAR); // uncertainty // double rad = mag_get_d(&acb_realref(FF)->rad); acb_clear(FF); acb_clear(aa); acb_clear(bb); acb_clear(cc); acb_clear(zed); return hypergeom; #elif defined GYOTO_USE_AEAE complex aa=kappaIndex-1./3., bb=kappaIndex+1., cc=kappaIndex+2./3., zed=-kappaIndex*thetae; return hyp_2F1(aa,bb,cc,zed).real(); #else GYOTO_ERROR("Utils::_hypergeom() is not functional, please recompile Gyoto with either ARBLIB or AEAE"); return 0.; #endif } // Coordinate transforms void Gyoto::cartesianToSpherical(double const cpos[3], double spos[3]) { spos[0]=sqrt(cpos[0]*cpos[0]+cpos[1]*cpos[1]+cpos[2]*cpos[2]); spos[1]=acos(cpos[2]/spos[0]); spos[2]=atan2(cpos[1],cpos[0]); } void Gyoto::sphericalToCartesian(double const spos[3], double cpos[3]) { double c1, s1; sincos(spos[1], &s1, &c1); double c2, s2; sincos(spos[2], &s2, &c2); cpos[0] = spos[0]*s1*c2; cpos[1] = spos[0]*s1*s2; cpos[2] = spos[0]*c1; } // Matrix inversion void Gyoto::matrix4Invert(double Am1[4][4], double const A[4][4]) { // Invert 4×4 matrix using Gauss pivot double tmp[4][4]; int i, j, jj, jl; double fact; // Initialize Am1 as identity matrix // copy A into tmp for (j=0; j<4; ++j) { for (i=0; i<4; ++i) { Am1[i][j] = (i==j); tmp[i][j] = A[i][j]; } } // Turn tmp in upper diagonal matrix with ones on the diagonal for (j=0; j<4; ++j) { // exchange row j with later row with largest coeff in column j // (to deal with case of zero or small value on the diagonal fact=tmp[j][j]; jl=j; for (jj=j+1; jj<4; ++jj) { if (fabs(tmp[j][jj])>fabs(fact)) { jl=jj; fact=tmp[j][jj]; } } fact=1./fact; if (jl!=j) { double c; for (i=j; i<4; ++i) { c=tmp[i][jl]; tmp[i][jl]=tmp[i][j]; tmp[i][j]=c*fact; } for (i=0; i<4; ++i) { c=Am1[i][jl]; Am1[i][jl]=Am1[i][j]; Am1[i][j]=c*fact; } } else { for (i=j; i<4; ++i) tmp[i][j] *= fact; for (i=0; i<4; ++i) Am1[i][j] *= fact; } // subtract this row times of factor to each later row for (jj = j+1; jj < 4; ++jj) { fact = tmp[j][jj]; for (i=j+1; i<4; ++i) tmp[i][jj] -= fact*tmp[i][j]; for (i=0; i<4; ++i) Am1[i][jj] -= fact*Am1[i][j]; } } // Cancel upper triangle to get finally the identity matrix for (j=3; j>=0; --j) { for (jj = j-1; jj >= 0; --jj) { fact = tmp[j][jj]; for (i=0; i<4; ++i) tmp[i][jj] -= fact*tmp[i][j]; for (i=0; i<4; ++i) Am1[i][jj] -= fact*Am1[i][j]; } } } void Gyoto::matrix4CircularInvert(double Am1[4][4], double const A[4][4]) { // Works for a metric where gtr, gttheta and grtheta are 0 (and symmetrical...) double a=A[0][0], b=A[1][1], c=A[2][2], d=A[3][3], t=A[0][3]; double t2=t*t; double X=d-t2/a; double aX=a*X; Am1[0][0]=(aX+t2)/(a*aX); Am1[1][1]=1./b; Am1[2][2]=1./c; Am1[3][3]=1/X; Am1[0][3]=Am1[3][0]=-t/aX; Am1[0][1]=Am1[1][0]=0.; Am1[0][2]=Am1[2][0]=0.; Am1[1][2]=Am1[2][1]=0.; Am1[1][3]=Am1[3][1]=0.; Am1[2][3]=Am1[3][2]=0.; } Gyoto-2.0.2/lib/Value.C000066400000000000000000000112201455254334400145470ustar00rootroot00000000000000/* Copyright 2014-2016 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoValue.h" #include "GyotoMetric.h" #include "GyotoAstrobj.h" #include "GyotoSpectrum.h" #include "GyotoSpectrometer.h" #include "GyotoScreen.h" #include "GyotoProperty.h" #include using namespace Gyoto ; using namespace std ; /// Value #define INIT_MEMBERS \ Double(0.), \ Bool(false), \ Long(0), \ ULong(0), \ SizeT(0), \ String(""), \ VDouble(), \ VULong(), \ Metric(), \ Astrobj(), \ Spectrum(), \ Spectrometer(), \ Screen() Value::Value(): type(Property::empty_t), INIT_MEMBERS {} Value::~Value() {} #define ___local_stuff(t, t_t, T) \ Value::Value(t val) : type(Property::t_t), INIT_MEMBERS {T=val;} \ Value::operator t() const { \ if (type!=Property::t_t) \ GYOTO_ERROR("This Value does not hold a " #t); \ return T; \ } Value::Value(long val) : type(Property::long_t), INIT_MEMBERS {Long=val;} Value::Value(unsigned long val) : type(Property::unsigned_long_t), INIT_MEMBERS {ULong=val;} #if !defined(GYOTO_SIZE__T_IS_UNSIGNED_LONG) Value::Value(size_t val) : type(Property::size_t_t), INIT_MEMBERS {SizeT=val;} #endif Value::Value(bool val) : type(Property::bool_t), INIT_MEMBERS {Bool=val;} Value::operator long() const { switch (type) { case Property::long_t: return Long; case Property::unsigned_long_t: return long(ULong); case Property::size_t_t: return long(SizeT); default: GYOTO_ERROR("This Value does not hold a long (or unsigned long)"); } return 0; } Value::operator unsigned long() const { switch (type) { case Property::long_t: return (unsigned long)(Long); case Property::unsigned_long_t: return ULong; case Property::size_t_t: return (unsigned long)(SizeT); default: GYOTO_ERROR("This Value does not hold a long (or unsigned long)"); } return 0; } #if !defined(GYOTO_SIZE__T_IS_UNSIGNED_LONG) Value::operator size_t() const { switch (type) { case Property::long_t: return size_t(Long); case Property::unsigned_long_t: return size_t(ULong); case Property::size_t_t: return SizeT; default: GYOTO_ERROR("This Value does not hold a long (or unsigned long)"); } return 0; } #endif Value::operator bool() const { switch (type) { case Property::bool_t: return Bool; case Property::long_t: return bool(Long); case Property::unsigned_long_t: return bool(ULong); case Property::size_t_t: return bool(SizeT); default: GYOTO_ERROR("This Value does not hold an integer"); } return 0; } ___local_stuff(double, double_t, Double) ___local_stuff(std::string, string_t, String) ___local_stuff(std::vector, vector_double_t, VDouble) ___local_stuff(std::vector, vector_unsigned_long_t, VULong) ___local_stuff(Gyoto::SmartPointer, metric_t, Metric) ___local_stuff(Gyoto::SmartPointer, astrobj_t, Astrobj) ___local_stuff(Gyoto::SmartPointer, spectrum_t, Spectrum) ___local_stuff(Gyoto::SmartPointer, spectrometer_t, Spectrometer) ___local_stuff(Gyoto::SmartPointer, screen_t, Screen) Value& Value::operator=(Value const &right) { # define ___local_case(t_t, member) case Property::t_t: member = right.member; break; type=right.type; switch (type) { ___local_case(double_t, Double); ___local_case(bool_t, Bool); ___local_case(long_t, Long); ___local_case(unsigned_long_t, ULong); ___local_case(size_t_t, SizeT); ___local_case(string_t, String); ___local_case(vector_double_t, VDouble); ___local_case(vector_unsigned_long_t, VULong); ___local_case(metric_t, Metric); ___local_case(astrobj_t, Astrobj); ___local_case(spectrum_t, Spectrum); ___local_case(spectrometer_t, Spectrometer); ___local_case(screen_t, Screen); } return *this; # undef ___local_case } Gyoto-2.0.2/lib/WIP.C000066400000000000000000000033001455254334400141320ustar00rootroot00000000000000/* Copyright 2014 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoWIP.h" #include "GyotoUtils.h" #include using namespace std ; using namespace Gyoto ; WIP::WIP() { GYOTO_WARNING << "**************************************************" << endl; GYOTO_WARNING << "Initializing a class marked *work in progress*." << endl; GYOTO_WARNING << "It may be completely buggy." << endl; GYOTO_WARNING << "Please test extensively and/or contact the author." << endl; GYOTO_WARNING << "**************************************************" << endl; } WIP::WIP(string classname) { if (classname == "") return; GYOTO_WARNING << "**************************************************" << endl; GYOTO_WARNING << "Class \"" << classname << "\" is marked *work in progress*." << endl; GYOTO_WARNING << "It may be completely buggy." << endl; GYOTO_WARNING << "Please test extensively and/or contact the author." << endl; GYOTO_WARNING << "**************************************************" << endl; } Gyoto-2.0.2/lib/Worldline.C000066400000000000000000001401001455254334400154320ustar00rootroot00000000000000/* Copyright 2011-2015, 2017-2020 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace Gyoto; #ifdef GYOTO_HAVE_BOOST_INTEGRATORS # define _GYOTO_DEFAULT_INTEGRATOR "runge_kutta_fehlberg78" #else # define _GYOTO_DEFAULT_INTEGRATOR "Legacy" #endif Worldline::Worldline() : ep0_(NULL), ep1_(NULL), ep2_(NULL), ep3_(NULL), et0_(NULL), et1_(NULL), et2_(NULL), et3_(NULL), stopcond(0), metric_(NULL), imin_(1), i0_(0), imax_(0), adaptive_(1), secondary_(1), parallel_transport_(false), delta_(GYOTO_DEFAULT_DELTA), tmin_(-DBL_MAX), cst_(NULL), cst_n_(0), wait_pos_(0), init_vel_(NULL), maxiter_(GYOTO_DEFAULT_MAXITER), delta_min_(GYOTO_DEFAULT_DELTA_MIN), delta_max_(GYOTO_DEFAULT_DELTA_MAX), delta_max_over_r_(GYOTO_DEFAULT_DELTA_MAX_OVER_R), abstol_(GYOTO_DEFAULT_ABSTOL), reltol_(GYOTO_DEFAULT_RELTOL), maxCrossEqplane_(DBL_MAX), state_(NULL) { xAllocate(); integrator(_GYOTO_DEFAULT_INTEGRATOR); } Worldline::Worldline(const Worldline& orig) : stopcond(orig.stopcond), ep0_(NULL), ep1_(NULL), ep2_(NULL), ep3_(NULL), et0_(NULL), et1_(NULL), et2_(NULL), et3_(NULL), metric_(NULL), x_size_(orig.x_size_), imin_(orig.imin_), i0_(orig.i0_), imax_(orig.imax_), adaptive_(orig.adaptive_), secondary_(orig.secondary_), parallel_transport_(orig.parallel_transport_), delta_(orig.delta_), tmin_(orig.tmin_), cst_(NULL), cst_n_(orig.cst_n_), wait_pos_(orig.wait_pos_), init_vel_(NULL), maxiter_(orig.maxiter_), delta_min_(orig.delta_min_), delta_max_(orig.delta_max_), delta_max_over_r_(orig.delta_max_over_r_), abstol_(orig.abstol_), reltol_(orig.reltol_), maxCrossEqplane_(orig.maxCrossEqplane_), state_(NULL) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif if (orig.metric_()) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "cloning metric\n"; # endif metric_=orig.metric_->clone(); } state_ = orig.state_->clone(this); xAllocate(x_size_); size_t sz = get_nelements()*sizeof(double); # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "sz="<metric_), // x_size_(orig.x_size_), imin_(orig.imin_), i0_(orig.i0_), imax_(orig.imax_), adaptive_(orig->adaptive_), secondary_(orig->secondary_), parallel_transport_(orig->parallel_transport_), delta_(orig->delta_), tmin_(orig->tmin_), cst_(NULL), cst_n_(orig->cst_n_), wait_pos_(orig->wait_pos_), init_vel_(NULL), maxiter_(orig->maxiter_), delta_min_(orig->delta_min_), delta_max_(orig->delta_max_), delta_max_over_r_(orig->delta_max_over_r_), abstol_(orig->abstol_), reltol_(orig->reltol_), maxCrossEqplane_(orig->maxCrossEqplane_), state_(NULL) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif state_ = orig->state_->clone(this); double d1 = orig->x0_[i0], d2 = orig->x0_[i0+dir]; x_size_= size_t(fabs(d1-d2)/step_max)+2; double step = (d2-d1)/double(x_size_-1); xAllocate(x_size_); imin_=0; imax_=x_size_-1; i0_=(dir==1?imin_:imax_); x0_[i0_]=d1; size_t i=i0_; for (i=i0_+dir; i>imin_ && igetCoord(x0_, x_size_, x1_, x2_, x3_, x0dot_, x1dot_, x2dot_, x3dot_, ep0_, ep1_, ep2_, ep3_, et0_, et1_, et2_, et3_, tau_); # if GYOTO_DEBUG_ENABLED GYOTO_IF_DEBUG { GYOTO_DEBUG << "(Worldline*, "<cst_, cst_n_*sizeof(double)); } /* if (orig->init_vel_) { init_vel_ = new double [3]; memcpy(init_vel_, orig->init_vel_, 3*sizeof(double)); } */ # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "done\n"; # endif } Worldline::~Worldline(){ # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << endl; # endif if (metric_) metric_ -> unhook(this); delete[] tau_; delete[] x0_; delete[] x1_; delete[] x2_; delete[] x3_; delete[] x0dot_; delete[] x1dot_; delete[] x2dot_; delete[] x3dot_; eDeallocate(); if (cst_) delete [] cst_; if (init_vel_) delete[] init_vel_; state_=NULL; } void Worldline::xAllocate() {xAllocate(GYOTO_DEFAULT_X_SIZE);} void Worldline::xAllocate(size_t sz) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(sz); # endif x_size_ = sz ; tau_ = new double[x_size_]; x0_ = new double[x_size_]; x1_ = new double[x_size_]; x2_ = new double[x_size_]; x3_ = new double[x_size_]; x0dot_ = new double[x_size_]; x1dot_ = new double[x_size_]; x2dot_ = new double[x_size_]; x3dot_ = new double[x_size_]; eAllocate(); } void Worldline::xExpand(double* &x, int dir) { double * old; size_t offset=(dir==1)?0:x_size_; size_t i; size_t nsize=2*x_size_; old=x; x=new double[nsize]; for (i=imin_;i<=imax_;++i) x[i+offset]=old[i]; GYOTO_IF_DEBUG GYOTO_DEBUG_EXPR(imin_); GYOTO_DEBUG_EXPR(imin_+offset); GYOTO_DEBUG_EXPR(old[imin_]); GYOTO_DEBUG_EXPR(x[imin_+offset]); GYOTO_ENDIF_DEBUG delete [] old; } size_t Worldline::xExpand(int dir) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(dir); GYOTO_DEBUG << endl << "massive=" << getMass() << ", size=" << x_size_ << ", imin_=" << imin_ << ", i0_=" << i0_ << ", imax_=" << imax_ << endl; # endif xExpand(tau_, dir); xExpand(x0_, dir); xExpand(x1_, dir); xExpand(x2_, dir); xExpand(x3_, dir); xExpand(x0dot_, dir); xExpand(x1dot_, dir); xExpand(x2dot_, dir); xExpand(x3dot_, dir); eExpand(dir); size_t retval=(dir==1)?(x_size_-1):x_size_; size_t offset=(dir==1)?0:x_size_; # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "retval=" << retval << ", offset=" << offset << ", dir=" << dir; # endif x_size_*=2; imin_+=offset; i0_+=offset; imax_+=offset; # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << ", x_size_=" << x_size_ << ", imin_=" << imin_ << ", i0_=" << i0_ << ", imax_=" << imax_ << endl; # endif return retval; } void Worldline::eAllocate() { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG_EXPR(x_size_); # endif if (!x_size_ || !parallel_transport_) return; ep0_ = new double[x_size_]; ep1_ = new double[x_size_]; ep2_ = new double[x_size_]; ep3_ = new double[x_size_]; et0_ = new double[x_size_]; et1_ = new double[x_size_]; et2_ = new double[x_size_]; et3_ = new double[x_size_]; } void Worldline::eDeallocate() { if (ep0_) {delete[] ep0_; ep0_=NULL;} if (ep1_) {delete[] ep1_; ep1_=NULL;} if (ep2_) {delete[] ep2_; ep2_=NULL;} if (ep3_) {delete[] ep3_; ep3_=NULL;} if (et0_) {delete[] et0_; et0_=NULL;} if (et1_) {delete[] et1_; et1_=NULL;} if (et2_) {delete[] et2_; et2_=NULL;} if (et3_) {delete[] et3_; et3_=NULL;} } void Worldline::eExpand(int dir) { if (ep0_) xExpand(ep0_, dir); if (ep1_) xExpand(ep1_, dir); if (ep2_) xExpand(ep2_, dir); if (ep3_) xExpand(ep3_, dir); if (et0_) xExpand(et0_, dir); if (et1_) xExpand(et1_, dir); if (et2_) xExpand(et2_, dir); if (et3_) xExpand(et3_, dir); } void Worldline::metric(SmartPointer gg) { // Unhook from previous metric if (metric_) metric_ -> unhook(this); // Set the Metric metric_=gg; // Hook to new metric if (metric_) metric_ -> hook(this); // Reset integration reInit(); } void Worldline::tell(Gyoto::Hook::Teller* msg) { if (msg != metric_) { GYOTO_ERROR("Worldline::tell(): wrong Teller"); } reInit(); } void Worldline::integrator(std::string const &type) { if (type=="Legacy") state_ = new IntegState::Legacy(this); #ifdef GYOTO_HAVE_BOOST_INTEGRATORS else state_ = new IntegState::Boost(this, type); #else else GYOTO_ERROR("unrecognized integrator (recompile with boost?)"); #endif } std::string Worldline::integrator() const { return state_->kind(); } SmartPointer Worldline::metric() const { return metric_; } string Worldline::className() const { return string("Worldline"); } string Worldline::className_l() const { return string("worldline"); } void Worldline::initCoord(std::vector const &v) { if (v.size() != 8) GYOTO_ERROR("Worldline::initCoord() requires an 8-element vector"); double c[8]; for (size_t i=0; i<8; ++i) c[i]=v[i]; setInitCoord(c); } std::vector Worldline::initCoord() const { std::vector coord(8, 0.); coord[0] = x0_[i0_]; coord[1] = x1_[i0_]; coord[2] = x2_[i0_]; coord[3] = x3_[i0_]; coord[4] = (i0_<=imax_ && imin_<=i0_)?x0dot_[i0_]:0.; coord[5] = x1dot_[i0_]; coord[6] = x2dot_[i0_]; coord[7] = x3dot_[i0_]; return coord; } void Worldline::setInitCoord(const double coord[8], int dir, double const Ephi[8], double const Etheta[8]) { GYOTO_DEBUG_ARRAY(coord, 8); // If dir is not forced and Worldline has never been initialize, // make a default direction depending on particle mass if (dir==0 && i0_==0 && imin_==1 && imax_==0) dir = getMass() ? 1 : -1; switch (dir) { case 0: break; // don't move i0_ case -1: i0_=x_size_-1; break;// integrate backwards case 1: i0_=0; // integrate forwards } imin_=imax_=i0_; tau_[i0_]=0.; x0_[i0_]=coord[0]; x1_[i0_]=coord[1]; x2_[i0_]=coord[2]; x3_[i0_]=coord[3]; x0dot_[i0_]=coord[4]; x1dot_[i0_]=coord[5]; x2dot_[i0_]=coord[6]; x3dot_[i0_]=coord[7]; if (parallel_transport_) { ep0_[i0_] = Ephi[0]; ep1_[i0_] = Ephi[1]; ep2_[i0_] = Ephi[2]; ep3_[i0_] = Ephi[3]; et0_[i0_] = Etheta[0]; et1_[i0_] = Etheta[1]; et2_[i0_] = Etheta[2]; et3_[i0_] = Etheta[3]; } reInit(); } void Worldline::setInitCoord(const double coord[8], int dir) { double const zeroes[4] = {0., 0., 0., 0.}; setInitCoord(coord, dir, zeroes, zeroes); } void Worldline::setInitCoord(double const pos[4], double const v[3], int dir) { if (!getMass()) GYOTO_ERROR("Worldline::setInitCoord(pos, vel) " "only makes sense for massive particles"); if (!metric_) GYOTO_ERROR("Please set metric before calling " "Worldline::setInitCoord(double pos[4], double vel[3])"); double coord[8]={pos[0], pos[1], pos[2], pos[3], 1., v[0], v[1], v[2]}; metric_ -> normalizeFourVel(coord); GYOTO_DEBUG_ARRAY(coord, 8); setInitCoord(coord, dir); } void Worldline::setInitialCondition(SmartPointer met, const double coord[8], const int dir, double const Ephi[4], double const Etheta[4]) { metric(met); setInitCoord(coord, dir, Ephi, Etheta); } void Worldline::setInitialCondition(SmartPointer met, const double coord[8], const int dir) { metric(met); setInitCoord(coord, dir); } void Worldline::setPosition(double const pos[4]) { double vel[] = {0., 0., 0.}; setInitCoord(pos, vel); } void Worldline::setVelocity(double const vel[3]) { state_t coord; getInitialCoord(coord); setInitCoord(&coord[0], vel); } void Worldline::reset() { if (imin_<=imax_) imin_=imax_=i0_; } void Worldline::reInit() { if (imin_ <= imax_) { reset(); state_t coord; getInitialCoord(coord); GYOTO_DEBUG_ARRAY(coord, 8); if (metric_) { if ( metric_() -> coordKind() == GYOTO_COORDKIND_SPHERICAL && x2_[i0_]==0. ) { if (verbose() >= GYOTO_SEVERE_VERBOSITY) cerr << "SEVERE: Worldline::reInit(): Kicking particle off z axis\n"; x2_[i0_]=coord[2]=1e-10; } metric_ -> setParticleProperties(this,&coord[0]); } } state_ -> init(); } void Worldline::xStore(size_t ind, state_t const &coord, double tau) { tau_[ind]= tau; x0_[ind] = coord[0]; x1_[ind] = coord[1]; x2_[ind] = coord[2]; x3_[ind] = coord[3]; x0dot_[ind] = coord[4]; x1dot_[ind] = coord[5]; x2dot_[ind] = coord[6]; x3dot_[ind] = coord[7]; if (parallel_transport_) { ep0_[ind] = coord[ 8]; ep1_[ind] = coord[ 9]; ep2_[ind] = coord[10]; ep3_[ind] = coord[11]; et0_[ind] = coord[12]; et1_[ind] = coord[13]; et2_[ind] = coord[14]; et3_[ind] = coord[15]; } } void Worldline::xFill(double tlim, bool proper) { int dir; stopcond=0; size_t ind; // Check whether anything needs to be done, // Determine direction, // Allocate memory. double * time_ = proper?tau_:x0_; GYOTO_IF_DEBUG GYOTO_DEBUG << "x_size_=" << x_size_ <<", imin_=" << imin_ << ", i0_=" << i0_ << ", imax_=" << imax_ << ", tlim=" << tlim << ", time_[imin_]=" << time_[imin_] << ", time_[i0_]=" << time_[i0_] << ", time_[imax_]=" << time_[imax_] << ", proper=" << proper << ", (time_==tau_)=" << (time_==tau_) << endl; GYOTO_DEBUG << "Possibly extending worldline" << endl; GYOTO_ENDIF_DEBUG size_t old_x_size=x_size_; if (tlim > time_[imax_]) { // integrate forward dir = 1; ind = (imax_==x_size_-1)?xExpand(1):imax_; } else if (tlim < time_[imin_]) { // integrate backward dir = -1; ind = (imin_==0)?xExpand(-1):imin_; } else return ; // nothing to do if (x_size_ != old_x_size) { time_ = proper?tau_:x0_; old_x_size=x_size_; } GYOTO_DEBUG << "x_size_=" << x_size_ <<", imin_=" << imin_ << ", i0_=" << i0_ << ", imax_=" << imax_ << ", dir=" << dir << ", ind=" << ind << ", tlim=" << tlim << ", time_[imin_]=" << time_[imin_] << ", time_[i0_]=" << time_[i0_] << ", time_[imax_]=" << time_[imax_] << ", proper=" << proper << ", (time_==tau_)=" << (time_==tau_) << endl; # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG<< "Integrating worldline " ; # endif // Set up integration double MassPart=getMass(); if (MassPart==1.) { # if GYOTO_DEBUG_ENABLED GYOTO_IF_DEBUG cerr << "of massive particule ....." << endl; GYOTO_ENDIF_DEBUG # endif }else if(MassPart==0.){ # if GYOTO_DEBUG_ENABLED GYOTO_IF_DEBUG cerr << "of 0-mass particule ....." << endl; GYOTO_ENDIF_DEBUG # endif }else{ GYOTO_ERROR("In Worldline.C Unrecognized mass."); //GYOTO_DEBUG<< "of unrecognized mass (!!) particule ....." << endl; //equations of geodesics written for a mass=1 star } state_t coord(parallel_transport_?16:8); getCoord(ind, coord); double tau=tau_[ind]; GYOTO_DEBUG << "IntegState initialization" << endl; state_->init(this, coord, dir*delta_); //delta_ = initial integration step (defaults to 0.01) GYOTO_DEBUG << "IntegState initialized" << endl; size_t mycount=0;// to prevent infinite integration while (!stopcond) { mycount++; stopcond= state_ -> nextStep(coord, tau); if (coord[0] == x0_[ind]) { // here, ind denotes previous step stopcond=1; # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "time did not evolve, break." << endl; # endif break; } if(metric_->isStopCondition(&coord[0])) { # if GYOTO_DEBUG_ENABLED GYOTO_DEBUG << "stopcond set by metric"< tlim) stopcond=1; if (ind==x_size_-1) { imax_=x_size_-1; ind=xExpand(1); } } else { if ((proper?tau:coord[0]) < tlim) { stopcond=1; } if (ind==0) { imin_=0; ind=xExpand(-1); } } if (x_size_ != old_x_size) { time_ = proper?tau_:x0_; old_x_size=x_size_; } // store particle's trajectory for later use GYOTO_DEBUG_EXPR(ind); ind +=dir; xStore(ind, coord, tau); } if (dir==1) imax_=ind; // tell when we actually stopped integrating else imin_=ind; } size_t Worldline::get_nelements() const { return imax_-imin_+1; } size_t Worldline::getImin() const {return imin_;} size_t Worldline::getImax() const {return imax_;} size_t Worldline::getI0() const {return i0_;} void Worldline::get_t(double *dest) const { memcpy(dest, x0_+imin_, sizeof(double)*(imax_-imin_+1)); } void Worldline::get_tau(double *dest) const { memcpy(dest, tau_+imin_, sizeof(double)*(imax_-imin_+1)); } void Worldline::get_xyz(double *x, double *y, double *z) const { size_t n; int coordkind = metric_ -> coordKind(); switch(coordkind) { case GYOTO_COORDKIND_SPHERICAL: for (n=imin_;n<=imax_;++n) { x[n-imin_]=x1_[n]*sin(x2_[n])*cos(x3_[n]); y[n-imin_]=x1_[n]*sin(x2_[n])*sin(x3_[n]); z[n-imin_]=x1_[n]*cos(x2_[n]); } break; case GYOTO_COORDKIND_CARTESIAN: for (n=imin_;n<=imax_;++n) { x[n-imin_]=x1_[n]; y[n-imin_]=x2_[n]; z[n-imin_]=x3_[n]; } break; default: GYOTO_ERROR("in Worldline::get_xyz: Incompatible coordinate kind"); } } void Worldline::getCartesian(double const * const dates, size_t const n_dates, double * const x, double * const y, double * const z, double * const xprime, double * const yprime, double * const zprime) { double *x1, *x2, *x3, *x0dot, *x1dot, *x2dot, *x3dot, tauprime; int coordkind = metric_ -> coordKind(); size_t di; double rprime, thetaprime, phiprime, costheta, sintheta, cosphi, sinphi, r; x0dot = new double[n_dates]; x1dot = new double[n_dates]; x2dot = new double[n_dates]; x3dot = new double[n_dates]; switch(coordkind) { case GYOTO_COORDKIND_SPHERICAL: x1 = new double[n_dates]; x2 = new double[n_dates]; x3 = new double[n_dates]; break; case GYOTO_COORDKIND_CARTESIAN: x1=x; x2=y; x3=z; break; default: GYOTO_ERROR("in Worldline::get_xyz: unknown coordinate kind"); x1=x2=x3=NULL; // fix warning } getCoord(dates, n_dates, x1, x2, x3, x0dot, x1dot, x2dot, x3dot); // for (di=0; dicoordKind() == GYOTO_COORDKIND_SPHERICAL) checkPhiTheta(pos2); if (otime) otime[di] = otime_[imax_]; if (x1) x1[di] = x1_[imax_]; if (x2) x2[di] = pos2[2]; if (x3) x3[di] = pos2[3]; if (x0dot) x0dot[di] = x0dot_[imax_]; if (x1dot) x1dot[di] = x1dot_[imax_]; if (x2dot) x2dot[di] = pos2[6]; if (x3dot) x3dot[di] = x3dot_[imax_]; if (parallel_transport_) { if (ep0) ep0[di] = ep0_[imax_]; if (ep1) ep1[di] = ep1_[imax_]; if (ep2) ep2[di] = ep2_[imax_]; if (ep3) ep3[di] = ep3_[imax_]; if (et0) et0[di] = et0_[imax_]; if (et1) et1[di] = et1_[imax_]; if (et2) et2[di] = et2_[imax_]; if (et3) et3[di] = et3_[imax_]; } continue; } else if (date > time_[imax_]) { GYOTO_DEBUG << "Extending worldline towards future" << endl; curl=imax_; // current imax_ xFill(date, proper); // integrate, that changes imax_, tau_, x0_... time_ = proper?tau_:x0_; otime_ = proper?x0_:tau_; curh=imax_; // new imax_ if (curl == curh || date > time_[imax_]) { ss<<"Worldline::getCoord: can't get coordinates for date="<SysPrimeToTdot(pos, vel); if (x1) x1[di] = pos[1]; if (x2) x2[di] = pos[2]; if (x3) x3[di] = pos[3]; if (x0dot) x0dot[di] = tdot; if (x1dot) x1dot[di] = vel[0]*tdot; if (x2dot) x2dot[di] = vel[1]*tdot; if (x3dot) x3dot[di] = vel[2]*tdot; if (parallel_transport_) GYOTO_ERROR("Parallel transport not implemented for massive particles."); } else { // Photon: don't be so elaborate, we certainly don't need it... yet if (x1) x1[di] = bestl[ 1]*factl + besth[ 1]*facth; if (x2) x2[di] = bestl[ 2]*factl + besth[ 2]*facth; if (x3) x3[di] = bestl[ 3]*factl + besth[ 3]*facth; if (x0dot) x0dot[di] = bestl[ 4]*factl + besth[ 4]*facth; if (x1dot) x1dot[di] = bestl[ 5]*factl + besth[ 5]*facth; if (x2dot) x2dot[di] = bestl[ 6]*factl + besth[ 6]*facth; if (x3dot) x3dot[di] = bestl[ 7]*factl + besth[ 7]*facth; if (parallel_transport_) { if (ep0) ep0[di] = bestl[ 8]*factl + besth[ 8]*facth; if (ep1) ep1[di] = bestl[ 9]*factl + besth[ 9]*facth; if (ep2) ep2[di] = bestl[10]*factl + besth[10]*facth; if (ep3) ep3[di] = bestl[11]*factl + besth[11]*facth; if (et0) et0[di] = bestl[12]*factl + besth[12]*facth; if (et1) et1[di] = bestl[13]*factl + besth[13]*facth; if (et2) et2[di] = bestl[14]*factl + besth[14]*facth; if (et3) et3[di] = bestl[15]*factl + besth[15]*facth; } } /* For spherical-like coordinates, transforms theta and phi so that theta is in [0,pi] and phi in [0,2pi] This call is due to interpolation above that could lead theta,phi out of their correct ranges. */ if (metric_->coordKind() == GYOTO_COORDKIND_SPHERICAL && x2 && x3 && x2dot){ double pos2[8]={0.,0.,x2[di],x3[di],0.,0.,x2dot[di],0.}; checkPhiTheta(pos2); x2[di]=pos2[2];x3[di]=pos2[3];x2dot[di]=pos2[6]; } } } void Worldline::getCoord(double *x0dest, double *x1dest, double *x2dest, double *x3dest) const { //if (sysco!=sys_) //GYOTO_ERROR("At this point, coordinate conversion is not implemented"); size_t ncomp=imax_-imin_+1; memcpy(x0dest, x0_+imin_, sizeof(double)*ncomp); memcpy(x1dest, x1_+imin_, sizeof(double)*ncomp); memcpy(x2dest, x2_+imin_, sizeof(double)*ncomp); memcpy(x3dest, x3_+imin_, sizeof(double)*ncomp); } void Worldline::checkPhiTheta(double coord[8]) const{ switch (metric_ -> coordKind()) { case GYOTO_COORDKIND_SPHERICAL: { /* Transforms theta and phi in coord so that theta is in [0,pi] and phi in [0,2pi] */ double thetatmp=coord[2], phitmp=coord[3]; while (thetatmp>M_PI) thetatmp-=2.*M_PI; while (thetatmp<-M_PI) thetatmp+=2.*M_PI;//then theta in [-pi,pi] if (thetatmp<0.) { thetatmp*=-1.;//then theta in [0,pi] coord[6]*=-1.; //theta -> -theta then idem for derivative phitmp+=M_PI;//thus, same point x,y,z } while (phitmp>2.*M_PI) phitmp-=2.*M_PI; while (phitmp<0.) phitmp+=2.*M_PI;//then phi in [0,2pi] coord[2]=thetatmp; coord[3]=phitmp; } break; case GYOTO_COORDKIND_CARTESIAN: GYOTO_ERROR("Worldline::checkPhiTheta(): should not be called " "with cartesian-like coordinates"); default: GYOTO_ERROR("Worldline::checkPhiTheta(): unknown COORDKIND"); } } void Worldline::get_dot(double *x0dest, double *x1dest, double *x2dest, double *x3dest) const { // if (sysco!=sys_) // GYOTO_ERROR("At this point, coordinate conversion is not implemented"); size_t ncomp=imax_-imin_+1; memcpy(x0dest, x0dot_+imin_, sizeof(double)*ncomp); memcpy(x1dest, x1dot_+imin_, sizeof(double)*ncomp); memcpy(x2dest, x2dot_+imin_, sizeof(double)*ncomp); memcpy(x3dest, x3dot_+imin_, sizeof(double)*ncomp); } void Worldline::getSkyPos(SmartPointer screen, double *dalpha, double *ddelta, double *dD) const { double pos[4], skypos[3]; size_t i, ncomp=imax_-imin_+1; for (i=0;i coordToSky(pos, skypos); dalpha[i]=skypos[0]; ddelta[i]=skypos[1]; dD[i] =skypos[2]; } } void Worldline::get_prime(double *x1dest, double *x2dest, double *x3dest) const { size_t n; double f; //if (sysco!=sys_) // GYOTO_ERROR("At this point, coordinate conversion is not implemented"); for (n=imin_;n<=imax_;++n) { x1dest[n-imin_]=x1dot_[n]*(f=1./x0dot_[n]); x2dest[n-imin_]=x2dot_[n]*f; x3dest[n-imin_]=x3dot_[n]*f; } } void Worldline::save_txyz(char * filename) const { size_t n; int width=15; int prec=12; ofstream fichierxyz(filename); int coordkind = metric_ -> coordKind(); switch(coordkind) { case GYOTO_COORDKIND_SPHERICAL: for (n=imin_;n<=imax_;++n) { // GYOTO_DEBUG<< "dans save imin, coord= " << imin_ << " " << x0_[n] << " " << x1_[n] << " " << x2_[n] << " " << x3_[n] << endl; //fichierxyz << setprecision(prec) << setw(width) << x1_[n] << " "; //fichierxyz << setprecision(prec) << setw(width) << x0[n] << " "; fichierxyz << setprecision(prec) << setw(width) << x0_[n] << " ";//saving r distance fichierxyz << setprecision(prec) << setw(width) << x1_[n]*sin(x2_[n])*cos(x3_[n]) << " "; fichierxyz << setprecision(prec) << setw(width) << x1_[n]*sin(x2_[n])*sin(x3_[n]) << " "; fichierxyz << setprecision(prec) << setw(width) << x1_[n]*cos(x2_[n]) << endl; } break; case GYOTO_COORDKIND_CARTESIAN: for (n=imin_;n<=imax_;++n) { //fichierxyz << setprecision(prec) << setw(width) << sqrt(x1[n]*x1[n]+x2_[n]*x2_[n]+x3_[n]*x3_[n]) << " "; fichierxyz << setprecision(prec) << setw(width) << x0_[n] << " "; fichierxyz << setprecision(prec) << setw(width) << x1_[n] << " "; fichierxyz << setprecision(prec) << setw(width) << x2_[n] << " "; fichierxyz << setprecision(prec) << setw(width) << x3_[n] << endl; } break; default: GYOTO_ERROR("in Worldline::save_xyz: Incompatible coordinate kind"); } fichierxyz.close(); } void Worldline::save_txyz(char * filename, const double t1, const double mass_sun, const double distance_kpc, const string unit, SmartPointer sc) { xFill(t1, false); size_t nelem = get_nelements(), n=0; double * t = new double [nelem]; double * x = new double [nelem]; double * y = new double [nelem]; double * z = new double [nelem]; double rad2deg = 180./M_PI; double f=1.; if (getMass()) f /= x0dot_[i0_]; int width=GYOTO_WIDTH; int prec=GYOTO_PREC; ofstream fichierxyz(filename); get_t(t); get_xyz(x, y, z); convert(x, nelem, mass_sun, distance_kpc, unit); convert(y, nelem, mass_sun, distance_kpc, unit); convert(z, nelem, mass_sun, distance_kpc, unit); // HEADER string metkind = metric_->kind(); fichierxyz << "# Gyoto save file " << endl << "# Start Gyoto parameters" << endl << "# particle_type = \"" << className_l() << "\"" << endl; // if (!metkind.compare("KerrBL")) { // SmartPointer kmet = metric_ ; // fichierxyz << "# metric_type = \"kerr\"" << endl // << "# spin = " << kmet -> getSpin() << endl // << "# mass = " << mass_sun << endl; // } else fichierxyz << "# metric_type = \"" << metkind << "\"" << endl ; fichierxyz << "# t0 = " << x0_[i0_] << endl << "# r0 = " << x1_[i0_] << endl << "# theta0 = " << x2_[i0_] << endl << "# phi0 = " << x3_[i0_] << endl << "# rprime0 = " << x1dot_[i0_]*f << endl << "# thetaprime0 = " << x2dot_[i0_]*f << endl << "# phiprime0 = " << x3dot_[i0_]*f << endl << "# t1 = " << t1 << endl; if (sc) fichierxyz << "# incl = " << sc -> inclination()*rad2deg << endl << "# paln = " << sc -> PALN()*rad2deg << endl << "# phase = " << sc -> argument()*rad2deg << endl << "# distance = " << distance_kpc << endl; fichierxyz << "# length_unit = \"" << unit << "\"" << endl << "# End Gyoto parameters" << endl << "# Columns are t, x, y, z" << endl; // DATA for (n=0;n<=nelem;++n) { fichierxyz << setprecision(prec) << setw(width) << t[n] << " " << setprecision(prec) << setw(width) << x[n] << " " << setprecision(prec) << setw(width) << y[n] << " " << setprecision(prec) << setw(width) << z[n] << endl ; } delete [] t; delete [] x; delete [] y; delete [] z; } void Worldline::delta(const double del) { delta_=del; } void Worldline::delta(double d, const string &unit) { delta(Units::ToGeometrical(d, unit, metric_)); } double Worldline::delta() const { return delta_; } double Worldline::delta(const string &unit) const { return Units::FromGeometrical(delta(), unit, metric_); } double Worldline::tMin() const { return tmin_; } double Worldline::tMin(const string &unit) const { return Units::FromGeometricalTime(tMin(), unit, metric_); } void Worldline::tMin(double tmin) { tmin_ = tmin; } void Worldline::tMin(double tmin, const string &unit) { tMin(Units::ToGeometricalTime(tmin, unit, metric_)); } void Worldline::adaptive(bool mode) { adaptive_ = mode; state_->init();} bool Worldline::adaptive() const { return adaptive_; } void Worldline::secondary(bool sec) { secondary_ = sec; } bool Worldline::secondary() const { return secondary_; } void Worldline::integ31(bool integ) { state_->integ31(integ); reInit(); } bool Worldline::integ31() const{ return state_->integ31(); } void Worldline::parallelTransport(bool pt) { bool reinit = pt && !parallel_transport_; bool deinit = !pt && parallel_transport_; parallel_transport_ = pt; if (reinit) { eAllocate(); reInit(); } else if (deinit) { eDeallocate(); } } bool Worldline::parallelTransport() const { return parallel_transport_; } void Worldline::maxiter(size_t miter) { maxiter_ = miter; } size_t Worldline::maxiter() const { return maxiter_; } double Worldline::deltaMin() const {return delta_min_;} double Worldline::deltaMax() const {return delta_max_;} void Worldline::deltaMin(double h1) { delta_min_=h1; state_->init(); } void Worldline::deltaMax(double h1) {delta_max_=h1;} double Worldline::deltaMaxOverR() const { return delta_max_over_r_;} void Worldline::deltaMaxOverR(double t) {delta_max_over_r_=t;} double Worldline::absTol() const {return abstol_;} void Worldline::absTol(double t) {abstol_=t; state_->init();} double Worldline::relTol() const {return reltol_;} void Worldline::relTol(double t) {reltol_=t; state_->init();} double Worldline::maxCrossEqplane() const {return maxCrossEqplane_;} void Worldline::maxCrossEqplane(double max) {maxCrossEqplane_=max;} double Worldline::deltaMax(double const pos[8], double h1max) const { double h1max_at_r=abs(pos[1]); if (metric_ -> coordKind()==GYOTO_COORDKIND_CARTESIAN) { double tmp; if ((tmp=abs(pos[2]))>h1max_at_r) h1max_at_r=tmp; if ((tmp=abs(pos[3]))>h1max_at_r) h1max_at_r=tmp; } h1max_at_r *= delta_max_over_r_; if (h1max > h1max_at_r) h1max = h1max_at_r; if (h1max>delta_max_) h1max=delta_max_; if (h1max const cstv) { setCst(cstv.data(), cstv.size()); } std::vector Worldline::constantsOfMotion() const { std::vector out ; out.assign(cst_, cst_+cst_n_); return out; } void Worldline::getInitialCoord(state_t &coord) const { if (imax_(this)->getCoord(index, coord); } void Worldline::getCoord(size_t index, state_t &coord) const { //GYOTO_DEBUG<< "index=" << index << endl; //GYOTO_DEBUG<< "x0[index]= " << x1dot_[index] << endl; //GYOTO_DEBUG<< "index == " << index << endl; if (indeximax_) { cerr << "Indices min curr max= " << imin_ << " " << index << " " << imax_ << endl; GYOTO_ERROR("Worldline::getCoord: bad index"); } size_t sz=coord.size(); if (sz==0) { sz = parallel_transport_?16:8; coord.resize(sz); } coord[0] = x0_[index]; coord[1] = x1_[index]; coord[2] = x2_[index]; coord[3] = x3_[index]; if (sz>=4) { coord[4] = x0dot_[index]; coord[5] = x1dot_[index]; coord[6] = x2dot_[index]; coord[7] = x3dot_[index]; if (parallel_transport_ && sz==16) { coord[8] = ep0_[index]; coord[9] = ep1_[index]; coord[10] = ep2_[index]; coord[11] = ep3_[index]; coord[12] = et0_[index]; coord[13] = et1_[index]; coord[14] = et2_[index]; coord[15] = et3_[index]; } } } void Worldline::getCoord(double t, state_t &coord, bool proper) { size_t sz=coord.size(); if (sz==0) { sz = parallel_transport_?16:8; coord.resize(sz); } double otime; double * x1=&coord[1]; double * x2=&coord[2]; double * x3=&coord[3]; double * x0dot=(sz>4)?&coord[4]:NULL; double * x1dot=(sz>4)?&coord[5]:NULL; double * x2dot=(sz>4)?&coord[6]:NULL; double * x3dot=(sz>4)?&coord[7]:NULL; double * ephi0=(sz>8)?&coord[8]:NULL; double * ephi1=(sz>8)?&coord[9]:NULL; double * ephi2=(sz>8)?&coord[10]:NULL; double * ephi3=(sz>8)?&coord[11]:NULL; double * etheta0=(sz>8)?&coord[12]:NULL; double * etheta1=(sz>8)?&coord[13]:NULL; double * etheta2=(sz>8)?&coord[14]:NULL; double * etheta3=(sz>8)?&coord[15]:NULL; getCoord(&t, 1, x1, x2, x3, // x x0dot, x1dot, x2dot, x3dot, // k ephi0, ephi1, ephi2, ephi3, // Ephi etheta0, etheta1, etheta2, etheta3, // Etheta &otime, proper); coord[0] = proper?otime:t; } void Worldline::getCartesianPos(size_t index, double dest[4]) const { dest[0] = x0_[index]; int coordkind = metric_ -> coordKind(); switch (coordkind) { case GYOTO_COORDKIND_SPHERICAL: dest[1] = x1_[index]*sin(x2_[index])*cos(x3_[index]); dest[2] = x1_[index]*sin(x2_[index])*sin(x3_[index]); dest[3] = x1_[index]*cos(x2_[index]); break; case GYOTO_COORDKIND_CARTESIAN: dest[1] = x1_[index]; dest[2] = x2_[index]; dest[3] = x3_[index]; break; default: GYOTO_ERROR("Worldline::getCartesianPos: Incompatible coordinate kind"); } } Gyoto-2.0.2/lib/WorldlineIntegState.C000066400000000000000000000317541455254334400174400ustar00rootroot00000000000000/* Copyright 2011-2015, 2018-2020 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoUtils.h" #include #include #include #include #include #include #include using namespace std ; using namespace Gyoto; #ifdef GYOTO_HAVE_BOOST_INTEGRATORS # include # if BOOST_VERSION >= 106400 # include # endif // BOOST_VERSION >= 106400 #include using namespace boost::numeric::odeint; #if defined HAVE_FENV_H # include # pragma STDC FENV_ACCESS ON # define DISABLE_SIGFPE \ fenv_t envp; \ if (feholdexcept(&envp)) GYOTO_ERROR("failed holding FPE") # define REENABLE_SIGFPE \ if (feclearexcept(FE_ALL_EXCEPT)) GYOTO_ERROR("failed clearing FPE"); \ if (fesetenv(&envp)) GYOTO_ERROR("failed setting back FPE") #else # define DISABLE_SIGFPE # define REENABLE_SIGFPE #endif #define GYOTO_TRY_BOOST_CONTROLLED_STEPPER(a) \ if (kind_==Kind::a) { \ typedef boost::numeric::odeint::a error_stepper_type; \ DISABLE_SIGFPE; \ auto controlled= \ make_controlled< error_stepper_type > \ ( line->absTol() , line->relTol() ); \ REENABLE_SIGFPE; \ try_step_ = \ [controlled, system] \ (state_t &inout, double &t, double &h) \ mutable \ -> controlled_step_result \ { \ return controlled.try_step(system, inout, t, h); \ }; \ do_step_ = \ [controlled, system] \ (state_t &inout, double h) \ mutable \ { \ controlled.stepper().do_step(system, inout, 0., h); \ }; \ } #endif // GYOTO_HAVE_BOOST_INTEGRATORS /// Generic Worldline::IntegState::Generic::~Generic() {}; Worldline::IntegState::Generic::Generic(Worldline *parent) : SmartPointee(), line_(parent), gg_(NULL), integ_31_(false) {}; void Worldline::IntegState::Generic::init(){ if (!line_) return; adaptive_=line_->adaptive(); parallel_transport_=line_->parallelTransport(); gg_=line_->metric(); } void Worldline::IntegState::Generic::init(Worldline * line, const state_t &coord, const double delta) { line_=line; init(); delta_=delta; if (line_->getImin() <= line_->getImax() && gg_) norm_=normref_= gg_->ScalarProd(&coord[0],&coord[4],&coord[4]); } void Worldline::IntegState::Generic::checkNorm(double coord[8]) { norm_=gg_ -> ScalarProd(coord,coord+4,coord+4); double normtol=.001; /* NB: following test done for norm/tdot as tdot can diverge close to horizon (it's the case for NS integration eg where geodesic can come close to horizon) Then just check that norm/tdot does not diverge. */ if (fabs(norm_-normref_)/(coord[4]*coord[4])>normtol) { GYOTO_SEVERE << "in Worldline::IntegState.C: " "norm is drifting" " - with norm,normref= " << norm_ << " " << normref_ << " -- x1,x2,x3= " << coord[1] << " " << coord[2] << " " << coord[3] << " " << endl; } } void Worldline::IntegState::Generic::integ31(bool integ) { integ_31_=integ; } bool Worldline::IntegState::Generic::integ31() const{ return integ_31_; } /// Legacy Worldline::IntegState::Legacy::Legacy(Worldline *parent) : Generic(parent) {} Worldline::IntegState::Legacy * Worldline::IntegState::Legacy::clone(Worldline *newparent) const { return new Legacy(newparent); } void Worldline::IntegState::Legacy::init(Worldline * line, const state_t &coord, const double delta) { static bool need_warning = true; if (need_warning) { GYOTO_WARNING << "The Legacy integrator is deprecated and will be removed soon. " << "Please update your code to use the Boost integrators." << endl; need_warning=false; } Generic::init(line, coord, delta); coord_ = coord; } int Worldline::IntegState::Legacy::nextStep(state_t &coord, double &tau, double h1max) { if (!gg_) init(); static bool need_warning=true; if (need_warning) { GYOTO_WARNING << "The Legacy integrator does not compute proper time." << endl; need_warning=false; } tau=0.; if (parallel_transport_) GYOTO_ERROR("TODO: implement parallel transport"); GYOTO_DEBUG << h1max << endl; int j; double h1; if (adaptive_){ if (gg_ -> myrk4_adaptive(line_,coord_,norm_,normref_,coord,delta_,h1, h1max)) return 1; delta_ = h1; }else{ if (gg_ -> myrk4(line_,coord_,delta_,coord)) return 1; } for (j=0;j<8;j++) coord_[j] = coord[j]; checkNorm(&coord[0]); # if GYOTO_DEBUG_ENABLED GYOTO_IF_DEBUG GYOTO_DEBUG_ARRAY(coord,8); GYOTO_DEBUG_EXPR(delta_); GYOTO_ENDIF_DEBUG # endif if (delta_==delta_+1) return 1; // delta == Infinity : stop condition return 0; } void Worldline::IntegState::Legacy::doStep(state_t const &coordin, double step, state_t &coordout) { if (!gg_) init(); gg_ -> myrk4(line_, coordin, step, coordout); } std::string Worldline::IntegState::Legacy::kind() { return "Legacy"; } Worldline::IntegState::Legacy::~Legacy() {} /// Boost #ifdef GYOTO_HAVE_BOOST_INTEGRATORS Worldline::IntegState::Boost::~Boost() {}; Worldline::IntegState::Boost::Boost(Worldline*line, std::string type) : Generic(line) { if (type=="runge_kutta_cash_karp54") kind_=runge_kutta_cash_karp54; else if (type=="runge_kutta_fehlberg78") kind_=runge_kutta_fehlberg78; else if (type=="runge_kutta_dopri5") kind_=runge_kutta_dopri5; else if (type=="runge_kutta_cash_karp54_classic") kind_=runge_kutta_cash_karp54_classic; else GYOTO_ERROR("unknown integrator kind"); } Worldline::IntegState::Boost::Boost(Worldline*line, Kind type) : Generic(line), kind_(type) {} void Worldline::IntegState::Boost::init() { Generic::init(); Worldline* line=line_; Metric::Generic* met=line->metric(); system_t system; double mass=line->getMass(); if (!met) system=[](const state_t &/*x*/, state_t & /*dxdt*/, const double /* t*/ ){ GYOTO_ERROR("Metric not set"); }; else{ if (integ_31_==false){ system=[this, line, met, mass](const state_t &x, state_t &dxdt, const double t) { line->stopcond=met->diff(x, dxdt, mass); }; }else{ system=[this, line, met, mass](const state_t &x, state_t &dxdt, const double t) { line->stopcond=met->diff31(x, dxdt, mass); // time must be passed }; } } if (line->getImin() > line->getImax() || !met) return; GYOTO_TRY_BOOST_CONTROLLED_STEPPER(runge_kutta_cash_karp54) else GYOTO_TRY_BOOST_CONTROLLED_STEPPER(runge_kutta_fehlberg78) else GYOTO_TRY_BOOST_CONTROLLED_STEPPER(runge_kutta_dopri5) else GYOTO_TRY_BOOST_CONTROLLED_STEPPER(runge_kutta_cash_karp54_classic) //else GYOTO_TRY_BOOST_CONTROLLED_STEPPER(rosenbrock4) else GYOTO_ERROR("unknown stepper type"); }; Worldline::IntegState::Boost * Worldline::IntegState::Boost::clone(Worldline*newparent) const { return new Boost(newparent, kind_); } void Worldline::IntegState::Boost::init(Worldline * line, const state_t &coord, const double delta) { Generic::init(line, coord, delta); } int Worldline::IntegState::Boost::nextStep(state_t &coord, double& tau, double h1max) { if (!gg_) init(); GYOTO_DEBUG << h1max << endl; double dt=0, dtau=0; // Transform to proper vector depending on integration kind (4D/3+1) state_t xx; double told = coord[0]; if (integ_31_==false) xx = coord; else{ double rr=coord[1], th=coord[2], ph=coord[3], tdot=coord[4], rdot=coord[5], thdot=coord[6], phdot=coord[7]; if (tdot==0.) GYOTO_ERROR("In WlI::nextStep tdot is 0!"); double rprime=rdot/tdot, thprime=thdot/tdot, phprime=phdot/tdot; double NN, beta[3]; gg_->computeNBeta(&coord[0],NN,beta); double betar=beta[0], betat=beta[1], betap=beta[2]; double Vr = 1./NN*(rprime+betar), Vth = 1./NN*(thprime+betat), Vph = 1./NN*(phprime+betap); // Photon's energy as measured by Eulerian observer: double EE = tdot*NN; xx = {EE,rr,th,ph,Vr,Vth,Vph}; } if (adaptive_) { double h1=delta_; double sgn=h1>0?1.:-1.; h1max=line_->deltaMax(&coord[0], h1max); double delta_min=line_->deltaMin(); if (abs(h1)>h1max) h1=sgn*h1max; if (abs(h1)=delta_min && cres==controlled_step_result::fail && abs(h1)h1max) GYOTO_ERROR("used step larger than provided"); // cres is still fail, redo with delta_min using the fixed-step integrator if (cres==controlled_step_result::fail) { GYOTO_SEVERE << "delta_min is too large: " << delta_min << endl; dt=sgn*delta_min; do_step_(xx, dt); } // update adaptive step delta_=h1; } else { // non adaptive case // do_Step_ is a lambda function encapsulating a fixed-step integrator // from Boost dt=delta_; do_step_(xx, dt); } // Transform back to original vector coord if (integ_31_==false) { coord = xx; dtau = dt; }else{ double tnew = told+dt, EE = xx[0], rr=xx[1], th=xx[2], ph=xx[3], Vr=xx[4], Vth=xx[5], Vph=xx[6]; double NN, beta[3]; double newpos[4]={tnew,rr,th,ph}; gg_->computeNBeta(newpos,NN,beta); double beta_r=beta[0], beta_t=beta[1], beta_p=beta[2]; double rprime=NN*Vr-beta_r, thprime=NN*Vth-beta_t, phprime=NN*Vph-beta_p, tdotnew = EE/NN, rdot = rprime*tdotnew, thdot = thprime*tdotnew, phdot = phprime*tdotnew; coord = {tnew,rr,th,ph,tdotnew,rdot,thdot,phdot}; dtau = NN/EE*dt; // affine parameter increment } tau += dtau; checkNorm(&coord[0]); if (gg_ -> coordKind() == GYOTO_COORDKIND_SPHERICAL){ line_->checkPhiTheta(&coord[0]); } return line_->stopcond; } void Worldline::IntegState::Boost::doStep(state_t const &coordin, double step, state_t &coordout) { if (!gg_) init(); coordout = coordin; // Transform to proper vector depending on integration kind (4D/3+1) state_t xx; double told = coordout[0]; if (integ_31_==false) xx = coordout; else{ double rr=coordout[1], th=coordout[2], ph=coordout[3], tdot=coordout[4], rdot=coordout[5], thdot=coordout[6], phdot=coordout[7]; if (tdot==0.) GYOTO_ERROR("In WlI::nextStep tdot is 0!"); double rprime=rdot/tdot, thprime=thdot/tdot, phprime=phdot/tdot; double NN, beta[3]; gg_->computeNBeta(&coordout[0],NN,beta); double betar=beta[0], betat=beta[1], betap=beta[2]; double Vr = 1./NN*(rprime+betar), Vth = 1./NN*(thprime+betat), Vph = 1./NN*(phprime+betap); // Photon's energy as measured by Eulerian observer: double EE = tdot*NN; xx = {EE,rr,th,ph,Vr,Vth,Vph}; } // We call the Boost stepper do_step_(xx, step); // Transform back to original vector coord if (integ_31_==false) coordout = xx; else{ double tnew = told+step, EE = xx[0], rr=xx[1], th=xx[2], ph=xx[3], Vr=xx[4], Vth=xx[5], Vph=xx[6]; double NN, beta[3]; double newpos[4]={tnew,rr,th,ph}; gg_->computeNBeta(newpos,NN,beta); double beta_r=beta[0], beta_t=beta[1], beta_p=beta[2]; double rprime=NN*Vr-beta_r, thprime=NN*Vth-beta_t, phprime=NN*Vph-beta_p, tdotnew = EE/NN, rdot = rprime*tdotnew, thdot = thprime*tdotnew, phdot = phprime*tdotnew; coordout = {tnew,rr,th,ph,tdotnew,rdot,thdot,phdot}; } } std::string Worldline::IntegState::Boost::kind() { if (kind_== Kind::runge_kutta_cash_karp54) return "runge_kutta_cash_karp54"; if (kind_== Kind::runge_kutta_fehlberg78) return "runge_kutta_fehlberg78"; if (kind_== Kind::runge_kutta_dopri5) return "runge_kutta_dopri5"; if (kind_== Kind::runge_kutta_cash_karp54_classic) return "runge_kutta_cash_karp5"; GYOTO_ERROR("unknown enum value"); return "error"; } #endif // GYOTO_HAVE_BOOST_INTEGRATORS Gyoto-2.0.2/lib/XillverReflection.C000066400000000000000000001055031455254334400171430ustar00rootroot00000000000000/* Copyright 2017, 2018 Frederic Vincent, Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ //Gyoto headers #include "GyotoUtils.h" #include "GyotoPhoton.h" #include "GyotoXillverReflection.h" #include "GyotoFactoryMessenger.h" #include "GyotoKerrBL.h" #include "GyotoKerrKS.h" //Std headers #include #include #include #include #include #include #include #include #include #include #ifdef GYOTO_USE_CFITSIO #include #define throwCfitsioError(status) \ { fits_get_errstatus(status, ermsg); GYOTO_ERROR(ermsg); } #endif using namespace std; using namespace Gyoto; using namespace Gyoto::Astrobj; /// Properties #include "GyotoProperty.h" GYOTO_PROPERTY_START(XillverReflection, "Xillver reflection accretion disk.") GYOTO_PROPERTY_FILENAME(XillverReflection, FileIllumination, fileillumination) GYOTO_PROPERTY_FILENAME(XillverReflection, FileReflection, filereflection) GYOTO_PROPERTY_DOUBLE(XillverReflection, LampRadius, lampradius) GYOTO_PROPERTY_DOUBLE(XillverReflection, TimeLampPhiZero, timelampphizero) GYOTO_PROPERTY_BOOL(XillverReflection, AverageOverAngle, DontAverageOverAngle, averageOverAngle) GYOTO_PROPERTY_END(XillverReflection, ThinDisk::properties) void XillverReflection::fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const { if (p.name == "FileIllumination") fmp->setParameter("FileIllumination", (filenameIllum_.compare(0,1,"!") ? filenameIllum_ : filenameIllum_.substr(1)) ); else if (p.name == "FileReflection") fmp->setParameter("FileReflection", (filenameRefl_.compare(0,1,"!") ? filenameRefl_ : filenameRefl_.substr(1)) ); else ThinDisk::fillProperty(fmp, p); } XillverReflection::XillverReflection() : ThinDisk("XillverReflection"), filenameIllum_(""), filenameRefl_(""), lampradius_(0), timelampphizero_(0.), aa_(0.), illumination_(NULL), reflection_(NULL), radius_(NULL), phi_(NULL), logxi_(NULL), incl_(NULL), freq_(NULL), nnu_(0), ni_(0), nxi_(0), nr_(0), nphi_(0), average_over_angle_(0) { GYOTO_DEBUG << endl; } XillverReflection::XillverReflection(const XillverReflection& o) : ThinDisk(o), filenameIllum_(o.filenameIllum_), filenameRefl_(o.filenameRefl_), lampradius_(o.lampradius_), timelampphizero_(o.timelampphizero_), aa_(o.aa_), illumination_(NULL), reflection_(NULL), radius_(NULL), phi_(NULL), logxi_(NULL), incl_(NULL), freq_(NULL), nnu_(o.nnu_), ni_(o.ni_), nxi_(o.nxi_), nr_(o.nr_), nphi_(o.nphi_), average_over_angle_(o.average_over_angle_) { GYOTO_DEBUG << endl; size_t ncells = 0; if (o.illumination_) { illumination_ = new double[ncells = nr_ * nphi_]; memcpy(illumination_, o.illumination_, ncells * sizeof(double)); } if (o.reflection_) { reflection_ = new double[ncells = nnu_ * ni_ * nxi_]; memcpy(reflection_, o.reflection_, ncells * sizeof(double)); } if (o.freq_) { freq_ = new double[ncells = nnu_]; memcpy(freq_, o.freq_, ncells * sizeof(double)); } if (o.incl_) { incl_ = new double[ncells = ni_]; memcpy(incl_, o.incl_, ncells * sizeof(double)); } if (o.logxi_) { logxi_ = new double[ncells = nxi_]; memcpy(logxi_, o.logxi_, ncells * sizeof(double)); } if (o.radius_) { radius_ = new double[ncells = nr_]; memcpy(radius_, o.radius_, ncells * sizeof(double)); } if (o.phi_) { phi_ = new double[ncells = nphi_]; memcpy(phi_, o.phi_, ncells * sizeof(double)); } } XillverReflection * XillverReflection::clone() const { return new XillverReflection(*this); } XillverReflection::~XillverReflection() { GYOTO_DEBUG << endl; if (illumination_) delete [] illumination_; if (reflection_) delete [] reflection_; if (freq_) delete [] freq_; if (incl_) delete [] incl_; if (logxi_) delete [] logxi_; if (radius_) delete [] radius_; if (phi_) delete [] phi_; } void XillverReflection::metric(SmartPointer gg) { if (gg_) gg_->unhook(this); string kin = gg->kind(); if (kin != "KerrBL" && kin != "KerrKS") GYOTO_ERROR ("Xillver::metric(): metric must be KerrBL or KerrKS"); Generic::metric(gg); updateSpin(); gg->hook(this); } void XillverReflection::updateSpin() { if (!gg_) return; switch (gg_->coordKind()) { case GYOTO_COORDKIND_SPHERICAL: aa_ = static_cast >(gg_) -> spin(); break; case GYOTO_COORDKIND_CARTESIAN: aa_ = static_cast >(gg_) -> spin(); break; default: GYOTO_ERROR("Xillver::updateSpin(): unknown COORDKIND"); } } void XillverReflection::tell(Hook::Teller* msg) { if (msg==gg_) updateSpin(); } // Next 2 function are probably useless void XillverReflection::setReflection(double * pattern) { reflection_ = pattern; } void XillverReflection::setIllumination(double * pattern) { illumination_ = pattern; } void XillverReflection::copyReflection(double const *const pattern, size_t const naxes[3]) { GYOTO_DEBUG << endl; if (reflection_) { GYOTO_DEBUG << "delete [] reflection_;" << endl; delete [] reflection_; reflection_ = NULL; } if (pattern) { size_t nel; if (nnu_ != naxes[0]) { GYOTO_DEBUG <<"nnu_ changed, freeing freq_" << endl; if (freq_) { delete [] freq_; freq_ = NULL; } } if (ni_ != naxes[1]) { GYOTO_DEBUG <<"ni_ changed, freeing freq_ and incl_" << endl; if (freq_) { delete [] freq_; freq_ = NULL; } if (incl_) { delete [] incl_; incl_= NULL; } } if (nxi_ != naxes[2]) { GYOTO_DEBUG <<"nxi_ changed, freeing freq_, incl_ and logxi_" << endl; if (freq_) { delete [] freq_; freq_ = NULL; } if (incl_) { delete [] incl_; incl_= NULL; } if (logxi_) { delete [] logxi_; logxi_ = NULL; } } if (!(nel=(nnu_ = naxes[0]) * (ni_=naxes[1]) * (nxi_=naxes[2]))) GYOTO_ERROR( "dimensions can't be null"); GYOTO_DEBUG << "allocate reflection_;" << endl; reflection_ = new double[nel]; GYOTO_DEBUG << "pattern >> reflection_" << endl; memcpy(reflection_, pattern, nel*sizeof(double)); } } double const * XillverReflection::getReflection() const { return reflection_; } void XillverReflection::getReflectionNaxes( size_t naxes[3] ) const { naxes[0] = nnu_; naxes[1] = ni_; naxes[2] = nxi_; } void XillverReflection::copyIllumination(double const *const pattern, size_t const naxes[2]) { GYOTO_DEBUG << endl; if (illumination_) { GYOTO_DEBUG << "delete [] illumination_;" << endl; delete [] illumination_; illumination_ = NULL; } if (pattern) { size_t nel; if (nr_ != naxes[0]) { GYOTO_DEBUG <<"nr_ changed, freeing radius_" << endl; if (radius_) { delete [] radius_; radius_ = NULL; } } if (nphi_ != naxes[1]) { GYOTO_DEBUG <<"nphi_ changed, freeing radius_ and phi_" << endl; if (radius_) { delete [] radius_; radius_ = NULL; } if (phi_) { delete [] phi_; phi_= NULL; } } if (!(nel=(nr_ = naxes[0]) * (nphi_=naxes[1]))) GYOTO_ERROR( "dimensions can't be null"); GYOTO_DEBUG << "allocate illumination_;" << endl; illumination_ = new double[nel]; GYOTO_DEBUG << "pattern >> illumination_" << endl; memcpy(illumination_, pattern, nel*sizeof(double)); } } double const * XillverReflection::getIllumination() const { return illumination_; } void XillverReflection::getIlluminationNaxes( size_t naxes[2] ) const { naxes[0] = nr_; naxes[1] = nphi_; } void XillverReflection::copyGridReflLogxi(double const *const lxi, size_t nxi) { GYOTO_DEBUG << endl; if (logxi_) { GYOTO_DEBUG << "delete [] logxi_;" << endl; delete [] logxi_; logxi_ = NULL; } if (lxi) { if (!reflection_) GYOTO_ERROR("Please use copyReflection() before copyGridReflLogxi()"); if (nxi_ != nxi) GYOTO_ERROR("reflection_ and logxi_ have inconsistent dimensions"); GYOTO_DEBUG << "allocate logxi_;" << endl; logxi_ = new double[nxi_]; GYOTO_DEBUG << "logxi >> logxi_" << endl; memcpy(logxi_, lxi, nxi_*sizeof(double)); } } double const * XillverReflection::getGridReflLogxi() const { return logxi_; } void XillverReflection::copyGridReflIncl(double const *const incl, size_t ni) { GYOTO_DEBUG << endl; if (incl_) { GYOTO_DEBUG << "delete [] incl_;" << endl; delete [] incl_; incl_ = NULL; } if (incl) { if (!reflection_) GYOTO_ERROR("Please use copyReflection() before copyGridReflIncl()"); if (ni_ != ni) GYOTO_ERROR("reflection_ and incl_ have inconsistent dimensions"); GYOTO_DEBUG << "allocate incl_;" << endl; incl_ = new double[ni_]; GYOTO_DEBUG << "incl >> incl_" << endl; memcpy(incl_, incl, ni_*sizeof(double)); } } double const * XillverReflection::getGridReflIncl() const { return incl_; } void XillverReflection::copyGridReflFreq(double const *const freq, size_t nnu) { GYOTO_DEBUG << endl; if (freq_) { GYOTO_DEBUG << "delete [] freq_;" << endl; delete [] freq_; freq_ = NULL; } if (freq) { if (!reflection_) GYOTO_ERROR("Please use copyReflection() before copyGridReflFreq()"); if (nnu_ != nnu) GYOTO_ERROR("reflection_ and freq_ have inconsistent dimensions"); GYOTO_DEBUG << "allocate freq_;" << endl; freq_ = new double[nnu_]; GYOTO_DEBUG << "freq >> freq_" << endl; memcpy(freq_, freq, nnu_*sizeof(double)); } } double const * XillverReflection::getGridReflFreq() const { return freq_; } void XillverReflection::copyGridIllumRadius(double const *const radius, size_t nr) { GYOTO_DEBUG << endl; if (radius_) { GYOTO_DEBUG << "delete [] radius_;" << endl; delete [] radius_; radius_ = NULL; } if (radius) { if (!illumination_) GYOTO_ERROR("Please use copyIllumination() before copyGridIllumRadius()"); if (nr_ != nr) GYOTO_ERROR("illumination_ and radius_ have inconsistent dimensions"); GYOTO_DEBUG << "allocate radius_;" << endl; radius_ = new double[nr_]; GYOTO_DEBUG << "radius >> radius_" << endl; memcpy(radius_, radius, nr_*sizeof(double)); } } double const * XillverReflection::getGridIllumRadius() const { return radius_; } void XillverReflection::copyGridIllumPhi(double const *const phi, size_t nphi) { GYOTO_DEBUG << endl; if (phi_) { GYOTO_DEBUG << "delete [] phi_;" << endl; delete [] phi_; phi_ = NULL; } if (phi) { if (!illumination_) GYOTO_ERROR("Please use copyIllumination() before copyGridIllumPhi()"); if (nphi_ != nphi) GYOTO_ERROR("illumination_ and phi_ have inconsistent dimensions"); GYOTO_DEBUG << "allocate phi_;" << endl; phi_ = new double[nphi_]; GYOTO_DEBUG << "phi >> phi_" << endl; memcpy(phi_, phi, nphi_*sizeof(double)); } } double const * XillverReflection::getGridIllumPhi() const { return phi_; } void XillverReflection::averageOverAngle(bool t) { average_over_angle_=t;} bool XillverReflection::averageOverAngle()const { return average_over_angle_;} void XillverReflection::fileillumination(std::string const &f) { # ifdef GYOTO_USE_CFITSIO fitsReadIllum(f); # else GYOTO_ERROR("This Gyoto has no FITS i/o"); # endif } double XillverReflection::timelampphizero() const{ return timelampphizero_; } void XillverReflection::timelampphizero(double tt){ if (lampradius_==0.) { GYOTO_ERROR("In Xillver::timelempphizero: " "update lampradius before timelampphizero."); } double lampperiod = 2*M_PI*(pow(lampradius_,1.5)+aa_); timelampphizero_=fmod(tt,lampperiod); } double XillverReflection::lampradius() const{ return lampradius_; } void XillverReflection::lampradius(double rr){ lampradius_=rr; } void XillverReflection::filereflection(std::string const &f) { # ifdef GYOTO_USE_CFITSIO fitsReadRefl(f); # else GYOTO_ERROR("This Gyoto has no FITS i/o"); # endif } std::string XillverReflection::fileillumination() const { return filenameIllum_; } std::string XillverReflection::filereflection() const { return filenameRefl_; } #ifdef GYOTO_USE_CFITSIO void XillverReflection::fitsReadIllum(string filenameIllum) { GYOTO_MSG << "XillverReflection reading FITS files: " << filenameIllum << endl; filenameIllum_ = filenameIllum; char* pixfileI = const_cast(filenameIllum_.c_str()); fitsfile* fptrI = NULL; int statusI = 0; int anynulI = 0; long naxesI [] = {1,1}; long fpixelI[] = {1,1}; long incI [] = {1,1}; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() GYOTO_DEBUG << "XillverReflection::readFile(): opening illum file" << endl; if (fits_open_file(&fptrI, pixfileI, 0, &statusI)) throwCfitsioError(statusI) ; ////// FIND MANDATORY ILLUMINATION HDU, READ KWDS & DATA /////// GYOTO_DEBUG << "XillverReflection::readFile(): " "search illumination HDU" << endl; if (fits_movnam_hdu(fptrI, ANY_HDU, const_cast("GYOTO XillverReflection illumination"), 0, &statusI)) throwCfitsioError(statusI) ; GYOTO_DEBUG << "XillverReflection::readFile(): get image size" << endl; if (fits_get_img_size(fptrI, 2, naxesI, &statusI)) throwCfitsioError(statusI) ; //update nr_, nphi_ nr_ = naxesI[0]; nphi_ = naxesI[1]; if (illumination_) { delete [] illumination_; illumination_ = NULL; } illumination_ = new double[nr_ * nphi_]; if (debug()) cerr << "XillverReflection::readFile(): read illumination: " << "nr_=" << nr_ << ", nphi_="<maxemission) maxemission=emission_[myi]; // } //cout << "In XillverRefl::fitsRead: Min and max emission= " << // minemission << " " << maxemission << endl; ////// FIND MANDATORY ILLUM::RADIUS HDU /////// if (fits_movnam_hdu(fptrI, ANY_HDU, const_cast("GYOTO XillverReflection radius"), 0, &statusI)) throwCfitsioError(statusI) ; if (fits_get_img_size(fptrI, 1, naxesI, &statusI)) throwCfitsioError(statusI) ; if (size_t(naxesI[0]) != nr_) GYOTO_ERROR("XillverReflection::readFile(): radius array not conformable"); if (radius_) { delete [] radius_; radius_ = NULL; } radius_ = new double[nr_]; if (fits_read_subset(fptrI, TDOUBLE, fpixelI, naxesI, incI, 0, radius_,&anynulI,&statusI)) { delete [] radius_; radius_=NULL; throwCfitsioError(statusI) ; } ////// FIND MANDATORY ILLUM::PHI HDU /////// if (fits_movnam_hdu(fptrI, ANY_HDU, const_cast("GYOTO XillverReflection phi"), 0, &statusI)) throwCfitsioError(statusI) ; if (fits_get_img_size(fptrI, 1, naxesI, &statusI)) throwCfitsioError(statusI) ; if (size_t(naxesI[0]) != nphi_) GYOTO_ERROR("XillverReflection::readFile(): phi array not conformable"); if (phi_) { delete [] phi_; phi_ = NULL; } phi_ = new double[nphi_]; if (fits_read_subset(fptrI, TDOUBLE, fpixelI, naxesI, incI, 0, phi_,&anynulI,&statusI)) { delete [] phi_; phi_=NULL; throwCfitsioError(statusI) ; } ////// CLOSING FITS ///////// if (fits_close_file(fptrI, &statusI)) throwCfitsioError(statusI) ; fptrI = NULL; } void XillverReflection::fitsReadRefl(string filenameRefl) { GYOTO_MSG << "XillverReflection reading FITS files: " << filenameRefl << endl; filenameRefl_ = filenameRefl; char* pixfileR = const_cast(filenameRefl_.c_str()); fitsfile* fptrR = NULL; int statusR = 0; int anynulR = 0; long naxesR [] = {1,1,1}; long fpixelR[] = {1,1,1}; long incR [] = {1,1,1}; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() GYOTO_DEBUG << "XillverReflection::readFile(): opening refl file" << endl; if (fits_open_file(&fptrR, pixfileR, 0, &statusR)) throwCfitsioError(statusR) ; ////// FIND MANDATORY REFLECTION HDU, READ KWDS & DATA /////// GYOTO_DEBUG << "XillverReflection::readFile(): " "search reflection HDU" << endl; if (fits_movnam_hdu(fptrR, ANY_HDU, const_cast("GYOTO XillverReflection reflection"), 0, &statusR)) throwCfitsioError(statusR) ; GYOTO_DEBUG << "XillverReflection::readFile(): get image size" << endl; if (fits_get_img_size(fptrR, 3, naxesR, &statusR)) throwCfitsioError(statusR) ; //update nnu_, ni_, nxi_ nnu_ = naxesR[0]; ni_ = naxesR[1]; nxi_ = naxesR[2]; if (reflection_) { delete [] reflection_; reflection_ = NULL; } reflection_ = new double[nnu_ * ni_ * nxi_]; if (debug()) cerr << "XillverReflection::readFile(): read reflection: " << "nnu_=" << nnu_ << ", ni_="<maxemission) maxemission=emission_[myi]; // } //cout << "In NSModelAtm::fitsRead: Min and max emission= " << // minemission << " " << maxemission << endl; ////// FIND MANDATORY REFL::FREQ HDU /////// if (fits_movnam_hdu(fptrR, ANY_HDU, const_cast("GYOTO XillverReflection freq"), 0, &statusR)) throwCfitsioError(statusR) ; if (fits_get_img_size(fptrR, 1, naxesR, &statusR)) throwCfitsioError(statusR) ; if (size_t(naxesR[0]) != nnu_) GYOTO_ERROR("XillverReflection::readFile(): freq array not conformable"); if (freq_) { delete [] freq_; freq_ = NULL; } freq_ = new double[nnu_]; if (fits_read_subset(fptrR, TDOUBLE, fpixelR, naxesR, incR, 0, freq_,&anynulR,&statusR)) { delete [] freq_; freq_=NULL; throwCfitsioError(statusR) ; } ////// FIND MANDATORY REFL::INCL HDU /////// if (fits_movnam_hdu(fptrR, ANY_HDU, const_cast("GYOTO XillverReflection incl"), 0, &statusR)) throwCfitsioError(statusR) ; if (fits_get_img_size(fptrR, 1, naxesR, &statusR)) throwCfitsioError(statusR) ; if (size_t(naxesR[0]) != ni_) GYOTO_ERROR("XillverReflection::readFile(): incl array not conformable"); if (incl_) { delete [] incl_; incl_ = NULL; } incl_ = new double[ni_]; if (fits_read_subset(fptrR, TDOUBLE, fpixelR, naxesR, incR, 0, incl_,&anynulR,&statusR)) { delete [] incl_; incl_=NULL; throwCfitsioError(statusR) ; } ////// FIND MANDATORY REFL::LOGXI HDU /////// if (fits_movnam_hdu(fptrR, ANY_HDU, const_cast("GYOTO XillverReflection logxi"), 0, &statusR)) throwCfitsioError(statusR) ; if (fits_get_img_size(fptrR, 1, naxesR, &statusR)) throwCfitsioError(statusR) ; if (size_t(naxesR[0]) != nxi_) GYOTO_ERROR("XillverReflection::readFile(): logxi array not conformable"); if (logxi_) { delete [] logxi_; logxi_ = NULL; } logxi_ = new double[nxi_]; if (fits_read_subset(fptrR, TDOUBLE, fpixelR, naxesR, incR, 0, logxi_,&anynulR,&statusR)) { delete [] logxi_; logxi_=NULL; throwCfitsioError(statusR) ; } ////// CLOSING FITS ///////// if (fits_close_file(fptrR, &statusR)) throwCfitsioError(statusR) ; fptrR = NULL; } void XillverReflection::fitsWriteIllum(string filenameIllumination ) { GYOTO_DEBUG_EXPR(illumination_); if (!illumination_) GYOTO_ERROR("XillverReflection::fitsWrite(filename): no illumination to save!"); filenameIllum_ = filenameIllumination; char* pixfileI = const_cast(filenameIllum_.c_str()); fitsfile* fptrI = NULL; int statusI = 0; long naxesI [] = {long(nr_), long(nphi_)}; long fpixelI[] = {1,1}; char * CNULLI = NULL; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() ////// CREATE FILE GYOTO_DEBUG << "creating illum file \"" << pixfileI << "\"... "; fits_create_file(&fptrI, pixfileI, &statusI); if (debug()) cerr << "done." << endl; fits_create_img(fptrI, DOUBLE_IMG, 2, naxesI, &statusI); if (statusI) throwCfitsioError(statusI) ; ////// SAVE ILLUMINATION IN PRIMARY HDU /////// GYOTO_DEBUG << "saving illumination_\n"; fits_write_key(fptrI, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO XillverReflection illumination"), CNULLI, &statusI); fits_write_pix(fptrI, TDOUBLE, fpixelI, nr_*nphi_, illumination_, &statusI); if (statusI) throwCfitsioError(statusI) ; ////// SAVE ILLUM::RADIUS HDU /////// if (!radius_) GYOTO_ERROR("XillverReflection::fitsWrite(filename): " "no radius to save!"); GYOTO_DEBUG << "saving radius_\n"; fits_create_img(fptrI, DOUBLE_IMG, 1, naxesI, &statusI); fits_write_key(fptrI, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO XillverReflection radius"), CNULLI, &statusI); fits_write_pix(fptrI, TDOUBLE, fpixelI, nr_, radius_, &statusI); if (statusI) throwCfitsioError(statusI) ; ////// SAVE ILLUM::PHI HDU /////// if (!phi_) GYOTO_ERROR("XillverReflection::fitsWrite(filename): " "no phi to save!"); GYOTO_DEBUG << "saving phi_\n"; fits_create_img(fptrI, DOUBLE_IMG, 1, naxesI+1, &statusI); fits_write_key(fptrI, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO XillverReflection phi"), CNULLI, &statusI); fits_write_pix(fptrI, TDOUBLE, fpixelI, nphi_, phi_, &statusI); if (statusI) throwCfitsioError(statusI) ; ////// CLOSING FILE /////// GYOTO_DEBUG << "close FITS file\n"; if (fits_close_file(fptrI, &statusI)) throwCfitsioError(statusI) ; fptrI = NULL; } void XillverReflection::fitsWriteRefl( string filenameReflection) { GYOTO_DEBUG_EXPR(reflection_); if (!reflection_) GYOTO_ERROR("XillverReflection::fitsWrite(filename): no reflection to save!"); filenameRefl_ = filenameReflection; char* pixfileR = const_cast(filenameRefl_.c_str()); fitsfile* fptrR = NULL; int statusR = 0; long naxesR [] = {long(nnu_), long(ni_), long(nxi_)}; long fpixelR[] = {1,1,1}; char * CNULLR = NULL; char ermsg[31] = ""; // ermsg is used in throwCfitsioError() ////// CREATE FILE GYOTO_DEBUG << "creating refl file \"" << pixfileR << "\"... "; fits_create_file(&fptrR, pixfileR, &statusR); if (debug()) cerr << "done." << endl; fits_create_img(fptrR, DOUBLE_IMG, 3, naxesR, &statusR); if (statusR) throwCfitsioError(statusR) ; ////// SAVE REFLECTION IN PRIMARY HDU /////// GYOTO_DEBUG << "saving reflection_\n"; fits_write_key(fptrR, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO XillverReflection reflection"), CNULLR, &statusR); fits_write_pix(fptrR, TDOUBLE, fpixelR, nnu_*ni_*nxi_, reflection_, &statusR); if (statusR) throwCfitsioError(statusR) ; ////// SAVE REFL::FREQ HDU /////// if (!freq_) GYOTO_ERROR("XillverReflection::fitsWrite(filename): " "no freq to save!"); GYOTO_DEBUG << "saving freq_\n"; fits_create_img(fptrR, DOUBLE_IMG, 1, naxesR, &statusR); fits_write_key(fptrR, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO XillverReflection freq"), CNULLR, &statusR); fits_write_pix(fptrR, TDOUBLE, fpixelR, nnu_, freq_, &statusR); if (statusR) throwCfitsioError(statusR) ; ////// SAVE REFL::INCL HDU /////// if (!incl_) GYOTO_ERROR("XillverReflection::fitsWrite(filename): " "no incl to save!"); GYOTO_DEBUG << "saving incl_\n"; fits_create_img(fptrR, DOUBLE_IMG, 1, naxesR+1, &statusR); fits_write_key(fptrR, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO XillverReflection incl"), CNULLR, &statusR); fits_write_pix(fptrR, TDOUBLE, fpixelR, ni_, incl_, &statusR); if (statusR) throwCfitsioError(statusR) ; ////// SAVE REFL::LOGXI HDU /////// if (!logxi_) GYOTO_ERROR("XillverReflection::fitsWrite(filename): " "no logxi to save!"); GYOTO_DEBUG << "saving logxi_\n"; fits_create_img(fptrR, DOUBLE_IMG, 1, naxesR+2, &statusR); fits_write_key(fptrR, TSTRING, const_cast("EXTNAME"), const_cast("GYOTO XillverReflection logxi"), CNULLR, &statusR); fits_write_pix(fptrR, TDOUBLE, fpixelR, nxi_, logxi_, &statusR); if (statusR) throwCfitsioError(statusR) ; ////// CLOSING FILE /////// GYOTO_DEBUG << "close FITS file\n"; if (fits_close_file(fptrR, &statusR)) throwCfitsioError(statusR) ; fptrR = NULL; } #endif void XillverReflection::getIndicesRefl(size_t i[3], double const co[4], double logxi, double incl, double freq) const { if (logxi_) { // Here we know that logxi is within the bounds of logxi_ for(i[2]=0; logxi > logxi_[i[2]]; ++i[2]){} /* With this definition: logxi_[i[2]-1] <= r < logxi_[i[2]] and i[2]>0 */ } else { GYOTO_ERROR("In XillverReflection::getIndicesRefl: logxi undefined!"); } if (incl_) { if (incl >= incl_[ni_-1]) i[1] = ni_-1; else{ for(i[1]=0; incl > incl_[i[1]]; ++i[1]){} /* With this definition: incl_[i[1]-1] <= r < incl_[i[1]] and i[1]=0 means incl freq_[i[0]]; ++i[0]){} /* With this definition: freq_[i[0]-1] <= r < freq_[i[0]] and i[0]>0 */ } else { GYOTO_ERROR("In XillverReflection::getIndicesRefl: freq undefined!"); } } void XillverReflection::getIndicesIllum(size_t i[2], double const co[4]) const { double rr = projectedRadius(co), phi = co[3]; if (phi<=0. or phi>2*M_PI) GYOTO_ERROR("In Xillver::getIndicesIllum: " "phi value not in 0,2pi"); if (phi radius_[i[0]]; ++i[0]){} /* With this definition: radius_[i[0]-1] <= r < radius_[i[0]] The case i[0]=0 is impossible here. */ } else { GYOTO_ERROR("In XillverReflection::getIndicesIllum: radius undefined!"); } if (phi_) { if (phi >= phi_[nphi_-1]) { i[1] = nphi_-1; } else { for(i[1]=0; phi > phi_[i[1]]; ++i[1]){ } /* phi_[i[1]-1] <= phi < phi_[i[1]] The redefinition of phi at the begining makes it impossible to have i[1]=0. */ } } else { GYOTO_ERROR("In XillverReflection::getIndicesIllum: phi undefined!"); } } double XillverReflection::emission(double nu, double, state_t const &cp, double const co[8]) const{ // ************* ILLUMINATION ************* double lampperiod = 2*M_PI*(pow(lampradius_,1.5)+aa_), timehit = cp[0]; while (timehit<0.){ // we only care about the hit time modulo the period time // and want a positive hit time timehit+=lampperiod; } double timerescale = fmod(timehit,lampperiod); // hit time modulo lamp period //cout << "times= " << lampperiod << " " << timehit << " " << timerescale << endl; // No illumination and no reflection outside // the radius range double rr=co[1], phi=co[3]; if (rr<=radius_[0] || rr>=radius_[nr_-1]) return 0.; double philamp = (timerescale-timelampphizero_)/lampperiod*2*M_PI; // lamp phi position at hit double dphi = phi - philamp; // phi difference between lamp and disk hit pos // this is the quantity with which to interpolate the illum data computed // only for philamp=0 // At this stage we have -2pi < dphi < 4pi (checked) if (dphi<-2*M_PI or dphi>4*M_PI) { cout << "tresc, tlamp, period, phi, philamp, dphi= " << timerescale << " " << timelampphizero_ << " " << lampperiod << " " << phi << " " << philamp << " " << dphi << endl; GYOTO_ERROR("In Xillver::emission: " "bad dphi"); } while (dphi<0.){ dphi+=2.*M_PI; } while (dphi>2*M_PI){ dphi-=2.*M_PI; } // Here 02*M_PI) { GYOTO_ERROR("In Xillver::emission: bad dphi after correction"); } // Illumination indices of the current closest grid point size_t indIllum[2]; // {i_r, i_phi} double col[4]={co[0],co[1],co[2],dphi}; getIndicesIllum(indIllum, col); // **** Bilinear interpo for illumination size_t iru=indIllum[0]; if (iru==0) GYOTO_ERROR("In Xillver::emission: bad radius index"); // indeed, iru=0 means rrphi_[nphi_-1]){ iphil = nphi_-1; iphiu = 0; // indeed, in this case, dphi is above phimax, // and below phimin+2pi. So interpolate between // the last and first values of phi_. } //cout << "r indices= " << irl << " " << iru << " " << radius_[irl] << " " << rr << " " << radius_[iru] << endl; //cout << "phi indices= " << iphil << " " << iphiu << " " << phi_[iphil] << " " << dphi << " " << phi_[iphiu] << endl; double F00 = illumination_[nphi_*irl+iphil], // F_{r,phi} F01 = illumination_[nphi_*irl+iphiu], F10 = illumination_[nphi_*iru+iphil], F11 = illumination_[nphi_*iru+iphiu]; double ratior = (rr-radius_[irl])/(radius_[iru]-radius_[irl]), ratiophi = (dphi-phi_[iphil])/(phi_[iphiu]-phi_[iphil]); if (dphi>phi_[nphi_-1]) // add 2pi to phi_[iphiu] if dphi not within bounds ratiophi = (dphi-phi_[iphil])/(2*M_PI+phi_[iphiu]-phi_[iphil]); double fluxillum = F00 +(F10-F00)*ratior +(F01-F00)*ratiophi +(F11-F01-F10+F00)*ratior*ratiophi; //cout << "Illum bilin= " << F00 << " " << F01 << " " << F10 << " " << F11 << " " << fluxillum << endl; // ************* REFLECTION ************* // **** Compute ionization param double ne = 1e15; // electron number density in cm^-3 assumed constant double logxi = log10(4.*M_PI*fluxillum/ne); // log of ionization param // logxi should be within the bounds of logxi_ //cout << "logxi= " << logxi << endl; if (logxilogxi_[nxi_-1]) { cout << "Illum and logxi= " << fluxillum << " " << logxi << endl; GYOTO_ERROR("In Xillver::emission: logxi out of bounds"); } // **** Emission angle double normal[4]={0.,0.,-1.,0.}; // parallel to -d_theta (upwards) double normal_norm=gg_->ScalarProd(&cp[0],normal,normal); if (normal_norm<=0.) GYOTO_ERROR("In XillverReflection::emission" " normal should be spacelike"); normal_norm=sqrt(normal_norm); double np = 1./normal_norm*gg_->ScalarProd(&cp[0],normal,&cp[4]), up = gg_->ScalarProd(&cp[0],co+4,&cp[4]); // cos between unit normal n and tangent to photon p // is equal -n.p/u.p (u being the emitter's 4-vel); // fabs because assuming plane symmetry double cosi = fabs(-np/up), incl = acos(cosi)*180./M_PI; //double tolcos = 0.005; //if (cosi>1.){ // if (fabs(cosi-1)>tolcos) GYOTO_ERROR("In XillverReflection: bad cos!"); // cosi=1.; //} // Frequency should not be outisde the range if (nu<=freq_[0] || nu>=freq_[nnu_-1]) { cout << "nu= " << nu << endl; GYOTO_ERROR("In Xillver::emission: freq outside range"); } // Reflection indices of the current closest grid point size_t ind[3]; // {i_nu, i_incl, i_xi} getIndicesRefl(ind, co, logxi, incl, nu); size_t inuu = ind[0]; if (inuu==0) GYOTO_ERROR("In Xillver::emission: bad nu index"); size_t inul = inuu-1; size_t iiu = ind[1]; size_t ixiu = ind[2]; //cout << "illum, logxi: " << ixiu << " " << logxi << " " << logxi_[ixiu] << endl; if (ixiu==0) GYOTO_ERROR("In Xillver::emission: bad logxi index"); size_t ixil = ixiu-1; /*cout << "logxi: " << ixiu << " " << logxi_[ixil] << " " << logxi << " " << logxi_[ixiu] << endl; cout << "nu: " << inuu << " " << freq_[inul] << " " << nu << " " << freq_[inuu] << endl; if (iiu>0){ cout << "incl: " << iiu << " " << incl_[iiu-1] << " " << incl << " " << incl_[iiu] << endl; }*/ double reflectedintens=0.; if (inclincl_[ni_-1]){ // Bilinear interpo if incl is not within bounds size_t ii=iiu; // unique index for incl, no interpo // bilin interpo in nu, logxi: double I00 = reflection_[inul*ni_*nxi_+ii*nxi_+ixil], // I_{nu,xi} I01 = reflection_[inul*ni_*nxi_+ii*nxi_+ixiu], I10 = reflection_[inuu*ni_*nxi_+ii*nxi_+ixil], I11 = reflection_[inuu*ni_*nxi_+ii*nxi_+ixiu]; double rationu = (nu-freq_[inul])/(freq_[inuu]-freq_[inul]), ratioxi = (logxi-logxi_[ixil])/(logxi_[ixiu]-logxi_[ixil]); reflectedintens = I00 +(I10-I00)*rationu +(I01-I00)*ratioxi +(I11-I01-I10+I00)*rationu*ratioxi; //cout << "Refl bilin: " << I00 << " " << I01 << " " << I10 << " " << I11 << " " << reflectedintens << endl; }else{ // Trilinear interpo general case if (iiu==0) GYOTO_ERROR("In Xillver::emission: bad incl index"); size_t iil = iiu-1; double I000 = reflection_[inul*ni_*nxi_+iil*nxi_+ixil], // I_{nu,incl,xi} I100 = reflection_[inuu*ni_*nxi_+iil*nxi_+ixil], I110 = reflection_[inuu*ni_*nxi_+iiu*nxi_+ixil], I010 = reflection_[inul*ni_*nxi_+iiu*nxi_+ixil], I001 = reflection_[inul*ni_*nxi_+iil*nxi_+ixiu], I101 = reflection_[inuu*ni_*nxi_+iil*nxi_+ixiu], I111 = reflection_[inuu*ni_*nxi_+iiu*nxi_+ixiu], I011 = reflection_[inul*ni_*nxi_+iiu*nxi_+ixiu]; double rationu = (nu-freq_[inul])/(freq_[inuu]-freq_[inul]), ratioi = (incl-incl_[iil])/(incl_[iiu]-incl_[iil]), ratioxi = (logxi-logxi_[ixil])/(logxi_[ixiu]-logxi_[ixil]); reflectedintens = I000 + (I100-I000)*rationu + (I010-I000)*ratioi + (I001-I000)*ratioxi + (I110-I010-I100+I000)*rationu*ratioi + (I011-I010-I001+I000)*ratioi*ratioxi + (I101-I001-I100+I000)*rationu*ratioxi + (I111-I011-I101-I110+I100+I001+I010-I000)*rationu*ratioi*ratioxi; //cout << "Refl trilin: " << I000 << " " << I100 << " " << I110 << " " << I010 << " " << I001 << " " << I101 << " " << I111 << " " << I011 << " " << reflectedintens << endl; } return reflectedintens/1e3; // 1e3 factor translates from cgs to SI, // gyoto speaks in SI } Gyoto-2.0.2/lib/gyoto-uninstalled.pc.in000066400000000000000000000016351455254334400200120ustar00rootroot00000000000000prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ pkglibdir=${libdir}/@PACKAGE@ localpkglibdir=@localpkglibdir@ top_srcdir=@abs_top_srcdir@ top_builddir=@abs_top_builddir@ GYOTO=${top_builddir}/bin/gyoto GYOTO_SOVERS=@sovers@ GYOTO_PLUGDIR=${pkglibdir}/${GYOTO_SOVERS} GYOTO_PLUGIN_SFX=@GYOTO_PLUGIN_SFX@ YORICK=@YORICK@ Y_INST_HOME=@Y_INST_HOME@ Y_INST_SITE=@Y_INST_SITE@ PYTHON=@PYTHON@ SWIG=@SWIG@ HOME_LORENE=@HOME_LORENE@ LORENECPPFLAGS=@LORENECPPFLAGS@ LORENELDFLAGS=@LORENELDFLAGS@ MPICXX=@MPICXX@ CXX=@CXX@ Name: Gyoto Description: Relativistic geodesic integration and ray-tracing Version: @VERSION@ URL: http://gyoto.obspm.fr Requires: @pkg_requires@ Conflicts: Libs: -L${top_builddir}/lib/.libs -lgyoto@FEATURES@ -ldl @pkg_libs@ @PTHREAD_LIBS@ Libs.private: Cflags: @CXXFLAGS@ -I${top_srcdir}/include -I${top_builddir}/include @pkg_cflags@ @PTHREAD_CFLAGS@ @BOOST_CPPFLAGS@ Gyoto-2.0.2/lib/gyoto.pc.in000066400000000000000000000014501455254334400154650ustar00rootroot00000000000000prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ pkglibdir=${libdir}/@PACKAGE@ localpkglibdir=@localpkglibdir@ GYOTO=${exec_prefix}/bin/gyoto GYOTO_SOVERS=@sovers@ GYOTO_PLUGDIR=${pkglibdir}/${GYOTO_SOVERS} GYOTO_PLUGIN_SFX=@GYOTO_PLUGIN_SFX@ YORICK=@YORICK@ Y_INST_HOME=@Y_INST_HOME@ Y_INST_SITE=@Y_INST_SITE@ PYTHON=@PYTHON@ SWIG=@SWIG@ HOME_LORENE=@HOME_LORENE@ LORENECPPFLAGS=@LORENECPPFLAGS@ LORENELDFLAGS=@LORENELDFLAGS@ MPICXX=@MPICXX@ CXX=@CXX@ Name: Gyoto Description: Relativistic geodesic integration and ray-tracing Version: @VERSION@ URL: http://gyoto.obspm.fr Requires: @pkg_requires@ Conflicts: Libs: -L${libdir} -lgyoto@FEATURES@ -ldl @pkg_libs@ @PTHREAD_LIBS@ Libs.private: Cflags: -I${includedir}/Gyoto @pkg_cflags@ @PTHREAD_CFLAGS@ @BOOST_CPPFLAGS@ Gyoto-2.0.2/ltmain.sh000077500000000000000000012132011455254334400144500ustar00rootroot00000000000000#! /usr/bin/env sh ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in ## by inline-source v2019-02-19.15 # libtool (GNU libtool) 2.4.7 # Provide generalized library-building support services. # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996-2019, 2021-2022 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 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 . PROGRAM=libtool PACKAGE=libtool VERSION="2.4.7 Debian-2.4.7-5" package_revision=2.4.7 ## ------ ## ## Usage. ## ## ------ ## # Run './libtool --help' for help with using this script from the # command line. ## ------------------------------- ## ## User overridable command paths. ## ## ------------------------------- ## # After configure completes, it has a better idea of some of the # shell tools we need than the defaults used by the functions shared # with bootstrap, so set those here where they can still be over- # ridden by the user, but otherwise take precedence. : ${AUTOCONF="autoconf"} : ${AUTOMAKE="automake"} ## -------------------------- ## ## Source external libraries. ## ## -------------------------- ## # Much of our low-level functionality needs to be sourced from external # libraries, which are installed to $pkgauxdir. # Set a version string for this script. scriptversion=2019-02-19.15; # UTC # General shell script boiler plate, and helper functions. # Written by Gary V. Vaughan, 2004 # This is free software. There is NO warranty; not even for # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # Copyright (C) 2004-2019, 2021 Bootstrap Authors # # This file is dual licensed under the terms of the MIT license # , and GPL version 2 or later # . You must apply one of # these licenses when using or redistributing this software or any of # the files within it. See the URLs above, or the file `LICENSE` # included in the Bootstrap distribution for the full license texts. # Please report bugs or propose patches to: # ## ------ ## ## Usage. ## ## ------ ## # Evaluate this file near the top of your script to gain access to # the functions and variables defined here: # # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh # # If you need to override any of the default environment variable # settings, do that before evaluating this file. ## -------------------- ## ## Shell normalisation. ## ## -------------------- ## # Some shells need a little help to be as Bourne compatible as possible. # Before doing anything else, make sure all that help has been provided! 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 # NLS nuisances: We save the old values in case they are required later. _G_user_locale= _G_safe_locale= for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test set = \"\${$_G_var+set}\"; then save_$_G_var=\$$_G_var $_G_var=C export $_G_var _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\" _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\" fi" done # These NLS vars are set unconditionally (bootstrap issue #24). Unset those # in case the environment reset is needed later and the $save_* variant is not # defined (see the code above). LC_ALL=C LANGUAGE=C export LANGUAGE LC_ALL # Make sure IFS has a sensible default sp=' ' nl=' ' IFS="$sp $nl" # There are apparently some retarded systems that use ';' as a PATH separator! 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 # func_unset VAR # -------------- # Portably unset VAR. # In some shells, an 'unset VAR' statement leaves a non-zero return # status if VAR is already unset, which might be problematic if the # statement is used at the end of a function (thus poisoning its return # value) or when 'set -e' is active (causing even a spurious abort of # the script in this case). func_unset () { { eval $1=; (eval unset $1) >/dev/null 2>&1 && eval unset $1 || : ; } } # Make sure CDPATH doesn't cause `cd` commands to output the target dir. func_unset CDPATH # Make sure ${,E,F}GREP behave sanely. func_unset GREP_OPTIONS ## ------------------------- ## ## Locate command utilities. ## ## ------------------------- ## # func_executable_p FILE # ---------------------- # Check that FILE is an executable regular file. func_executable_p () { test -f "$1" && test -x "$1" } # func_path_progs PROGS_LIST CHECK_FUNC [PATH] # -------------------------------------------- # Search for either a program that responds to --version with output # containing "GNU", or else returned by CHECK_FUNC otherwise, by # trying all the directories in PATH with each of the elements of # PROGS_LIST. # # CHECK_FUNC should accept the path to a candidate program, and # set $func_check_prog_result if it truncates its output less than # $_G_path_prog_max characters. func_path_progs () { _G_progs_list=$1 _G_check_func=$2 _G_PATH=${3-"$PATH"} _G_path_prog_max=0 _G_path_prog_found=false _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:} for _G_dir in $_G_PATH; do IFS=$_G_save_IFS test -z "$_G_dir" && _G_dir=. for _G_prog_name in $_G_progs_list; do for _exeext in '' .EXE; do _G_path_prog=$_G_dir/$_G_prog_name$_exeext func_executable_p "$_G_path_prog" || continue case `"$_G_path_prog" --version 2>&1` in *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;; *) $_G_check_func $_G_path_prog func_path_progs_result=$func_check_prog_result ;; esac $_G_path_prog_found && break 3 done done done IFS=$_G_save_IFS test -z "$func_path_progs_result" && { echo "no acceptable sed could be found in \$PATH" >&2 exit 1 } } # We want to be able to use the functions in this file before configure # has figured out where the best binaries are kept, which means we have # to search for them ourselves - except when the results are already set # where we skip the searches. # Unless the user overrides by setting SED, search the path for either GNU # sed, or the sed that truncates its output the least. test -z "$SED" && { _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for _G_i in 1 2 3 4 5 6 7; do _G_sed_script=$_G_sed_script$nl$_G_sed_script done echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed _G_sed_script= func_check_prog_sed () { _G_path_prog=$1 _G_count=0 printf 0123456789 >conftest.in while : do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo '' >> conftest.nl "$_G_path_prog" -f conftest.sed conftest.out 2>/dev/null || break diff conftest.out conftest.nl >/dev/null 2>&1 || break _G_count=`expr $_G_count + 1` if test "$_G_count" -gt "$_G_path_prog_max"; then # Best one so far, save it but keep looking for a better one func_check_prog_result=$_G_path_prog _G_path_prog_max=$_G_count fi # 10*(2^10) chars as input seems more than enough test 10 -lt "$_G_count" && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out } func_path_progs "sed gsed" func_check_prog_sed "$PATH:/usr/xpg4/bin" rm -f conftest.sed SED=$func_path_progs_result } # Unless the user overrides by setting GREP, search the path for either GNU # grep, or the grep that truncates its output the least. test -z "$GREP" && { func_check_prog_grep () { _G_path_prog=$1 _G_count=0 _G_path_prog_max=0 printf 0123456789 >conftest.in while : do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo 'GREP' >> conftest.nl "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' conftest.out 2>/dev/null || break diff conftest.out conftest.nl >/dev/null 2>&1 || break _G_count=`expr $_G_count + 1` if test "$_G_count" -gt "$_G_path_prog_max"; then # Best one so far, save it but keep looking for a better one func_check_prog_result=$_G_path_prog _G_path_prog_max=$_G_count fi # 10*(2^10) chars as input seems more than enough test 10 -lt "$_G_count" && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out } func_path_progs "grep ggrep" func_check_prog_grep "$PATH:/usr/xpg4/bin" GREP=$func_path_progs_result } ## ------------------------------- ## ## User overridable command paths. ## ## ------------------------------- ## # All uppercase variable names are used for environment variables. These # variables can be overridden by the user before calling a script that # uses them if a suitable command of that name is not already available # in the command search PATH. : ${CP="cp -f"} : ${ECHO="printf %s\n"} : ${EGREP="$GREP -E"} : ${FGREP="$GREP -F"} : ${LN_S="ln -s"} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} ## -------------------- ## ## Useful sed snippets. ## ## -------------------- ## sed_dirname='s|/[^/]*$||' sed_basename='s|^.*/||' # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s|\([`"$\\]\)|\\\1|g' # Same as above, but do not quote variable references. sed_double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution that turns a string into a regex matching for the # string literally. sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g' # Sed substitution that converts a w32 file name or path # that contains forward slashes, into one that contains # (escaped) backslashes. A very naive implementation. sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Re-'\' parameter expansions in output of sed_double_quote_subst that # were '\'-ed in input to the same. If an odd number of '\' preceded a # '$' in input to sed_double_quote_subst, that '$' was protected from # expansion. Since each input '\' is now two '\'s, look for any number # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'. _G_bs='\\' _G_bs2='\\\\' _G_bs4='\\\\\\\\' _G_dollar='\$' sed_double_backslash="\ s/$_G_bs4/&\\ /g s/^$_G_bs2$_G_dollar/$_G_bs&/ s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g s/\n//g" # require_check_ifs_backslash # --------------------------- # Check if we can use backslash as IFS='\' separator, and set # $check_ifs_backshlash_broken to ':' or 'false'. require_check_ifs_backslash=func_require_check_ifs_backslash func_require_check_ifs_backslash () { _G_save_IFS=$IFS IFS='\' _G_check_ifs_backshlash='a\\b' for _G_i in $_G_check_ifs_backshlash do case $_G_i in a) check_ifs_backshlash_broken=false ;; '') break ;; *) check_ifs_backshlash_broken=: break ;; esac done IFS=$_G_save_IFS require_check_ifs_backslash=: } ## ----------------- ## ## Global variables. ## ## ----------------- ## # Except for the global variables explicitly listed below, the following # functions in the '^func_' namespace, and the '^require_' namespace # variables initialised in the 'Resource management' section, sourcing # this file will not pollute your global namespace with anything # else. There's no portable way to scope variables in Bourne shell # though, so actually running these functions will sometimes place # results into a variable named after the function, and often use # temporary variables in the '^_G_' namespace. If you are careful to # avoid using those namespaces casually in your sourcing script, things # should continue to work as you expect. And, of course, you can freely # overwrite any of the functions or variables defined here before # calling anything to customize them. EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. # Allow overriding, eg assuming that you follow the convention of # putting '$debug_cmd' at the start of all your functions, you can get # bash to show function call trace with: # # debug_cmd='echo "${FUNCNAME[0]} $*" >&2' bash your-script-name debug_cmd=${debug_cmd-":"} exit_cmd=: # By convention, finish your script with: # # exit $exit_status # # so that you can set exit_status to non-zero if you want to indicate # something went wrong during execution without actually bailing out at # the point of failure. exit_status=$EXIT_SUCCESS # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath=$0 # The name of this program. progname=`$ECHO "$progpath" |$SED "$sed_basename"` # Make sure we have an absolute progpath for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=`$ECHO "$progpath" |$SED "$sed_dirname"` progdir=`cd "$progdir" && pwd` progpath=$progdir/$progname ;; *) _G_IFS=$IFS IFS=${PATH_SEPARATOR-:} for progdir in $PATH; do IFS=$_G_IFS test -x "$progdir/$progname" && break done IFS=$_G_IFS test -n "$progdir" || progdir=`pwd` progpath=$progdir/$progname ;; esac ## ----------------- ## ## Standard options. ## ## ----------------- ## # The following options affect the operation of the functions defined # below, and should be set appropriately depending on run-time para- # meters passed on the command line. opt_dry_run=false opt_quiet=false opt_verbose=false # Categories 'all' and 'none' are always available. Append any others # you will pass as the first argument to func_warning from your own # code. warning_categories= # By default, display warnings according to 'opt_warning_types'. Set # 'warning_func' to ':' to elide all warnings, or func_fatal_error to # treat the next displayed warning as a fatal error. warning_func=func_warn_and_continue # Set to 'all' to display all warnings, 'none' to suppress all # warnings, or a space delimited list of some subset of # 'warning_categories' to display only the listed warnings. opt_warning_types=all ## -------------------- ## ## Resource management. ## ## -------------------- ## # This section contains definitions for functions that each ensure a # particular resource (a file, or a non-empty configuration variable for # example) is available, and if appropriate to extract default values # from pertinent package files. Call them using their associated # 'require_*' variable to ensure that they are executed, at most, once. # # It's entirely deliberate that calling these functions can set # variables that don't obey the namespace limitations obeyed by the rest # of this file, in order that that they be as useful as possible to # callers. # require_term_colors # ------------------- # Allow display of bold text on terminals that support it. require_term_colors=func_require_term_colors func_require_term_colors () { $debug_cmd test -t 1 && { # COLORTERM and USE_ANSI_COLORS environment variables take # precedence, because most terminfo databases neglect to describe # whether color sequences are supported. test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"} if test 1 = "$USE_ANSI_COLORS"; then # Standard ANSI escape sequences tc_reset='' tc_bold=''; tc_standout='' tc_red=''; tc_green='' tc_blue=''; tc_cyan='' else # Otherwise trust the terminfo database after all. test -n "`tput sgr0 2>/dev/null`" && { tc_reset=`tput sgr0` test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold` tc_standout=$tc_bold test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso` test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1` test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2` test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4` test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5` } fi } require_term_colors=: } ## ----------------- ## ## Function library. ## ## ----------------- ## # This section contains a variety of useful functions to call in your # scripts. Take note of the portable wrappers for features provided by # some modern shells, which will fall back to slower equivalents on # less featureful shells. # func_append VAR VALUE # --------------------- # Append VALUE onto the existing contents of VAR. # We should try to minimise forks, especially on Windows where they are # unreasonably slow, so skip the feature probes when bash or zsh are # being used: if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then : ${_G_HAVE_ARITH_OP="yes"} : ${_G_HAVE_XSI_OPS="yes"} # The += operator was introduced in bash 3.1 case $BASH_VERSION in [12].* | 3.0 | 3.0*) ;; *) : ${_G_HAVE_PLUSEQ_OP="yes"} ;; esac fi # _G_HAVE_PLUSEQ_OP # Can be empty, in which case the shell is probed, "yes" if += is # useable or anything else if it does not work. test -z "$_G_HAVE_PLUSEQ_OP" \ && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \ && _G_HAVE_PLUSEQ_OP=yes if test yes = "$_G_HAVE_PLUSEQ_OP" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_append () { $debug_cmd eval "$1+=\$2" }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_append () { $debug_cmd eval "$1=\$$1\$2" } fi # func_append_quoted VAR VALUE # ---------------------------- # Quote VALUE and append to the end of shell variable VAR, separated # by a space. if test yes = "$_G_HAVE_PLUSEQ_OP"; then eval 'func_append_quoted () { $debug_cmd func_quote_arg pretty "$2" eval "$1+=\\ \$func_quote_arg_result" }' else func_append_quoted () { $debug_cmd func_quote_arg pretty "$2" eval "$1=\$$1\\ \$func_quote_arg_result" } fi # func_append_uniq VAR VALUE # -------------------------- # Append unique VALUE onto the existing contents of VAR, assuming # entries are delimited by the first character of VALUE. For example: # # func_append_uniq options " --another-option option-argument" # # will only append to $options if " --another-option option-argument " # is not already present somewhere in $options already (note spaces at # each end implied by leading space in second argument). func_append_uniq () { $debug_cmd eval _G_current_value='`$ECHO $'$1'`' _G_delim=`expr "$2" : '\(.\)'` case $_G_delim$_G_current_value$_G_delim in *"$2$_G_delim"*) ;; *) func_append "$@" ;; esac } # func_arith TERM... # ------------------ # Set func_arith_result to the result of evaluating TERMs. test -z "$_G_HAVE_ARITH_OP" \ && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \ && _G_HAVE_ARITH_OP=yes if test yes = "$_G_HAVE_ARITH_OP"; then eval 'func_arith () { $debug_cmd func_arith_result=$(( $* )) }' else func_arith () { $debug_cmd func_arith_result=`expr "$@"` } fi # func_basename FILE # ------------------ # Set func_basename_result to FILE with everything up to and including # the last / stripped. if test yes = "$_G_HAVE_XSI_OPS"; then # If this shell supports suffix pattern removal, then use it to avoid # forking. Hide the definitions single quotes in case the shell chokes # on unsupported syntax... _b='func_basename_result=${1##*/}' _d='case $1 in */*) func_dirname_result=${1%/*}$2 ;; * ) func_dirname_result=$3 ;; esac' else # ...otherwise fall back to using sed. _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`' _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"` if test "X$func_dirname_result" = "X$1"; then func_dirname_result=$3 else func_append func_dirname_result "$2" fi' fi eval 'func_basename () { $debug_cmd '"$_b"' }' # func_dirname FILE APPEND NONDIR_REPLACEMENT # ------------------------------------------- # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. eval 'func_dirname () { $debug_cmd '"$_d"' }' # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT # -------------------------------------------------------- # Perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # For efficiency, we do not delegate to the functions above but instead # duplicate the functionality here. eval 'func_dirname_and_basename () { $debug_cmd '"$_b"' '"$_d"' }' # func_echo ARG... # ---------------- # Echo program name prefixed message. func_echo () { $debug_cmd _G_message=$* func_echo_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_IFS $ECHO "$progname: $_G_line" done IFS=$func_echo_IFS } # func_echo_all ARG... # -------------------- # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } # func_echo_infix_1 INFIX ARG... # ------------------------------ # Echo program name, followed by INFIX on the first line, with any # additional lines not showing INFIX. func_echo_infix_1 () { $debug_cmd $require_term_colors _G_infix=$1; shift _G_indent=$_G_infix _G_prefix="$progname: $_G_infix: " _G_message=$* # Strip color escape sequences before counting printable length for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan" do test -n "$_G_tc" && { _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"` _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"` } done _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes func_echo_infix_1_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_infix_1_IFS $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2 _G_prefix=$_G_indent done IFS=$func_echo_infix_1_IFS } # func_error ARG... # ----------------- # Echo program name prefixed message to standard error. func_error () { $debug_cmd $require_term_colors func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2 } # func_fatal_error ARG... # ----------------------- # Echo program name prefixed message to standard error, and exit. func_fatal_error () { $debug_cmd func_error "$*" exit $EXIT_FAILURE } # func_grep EXPRESSION FILENAME # ----------------------------- # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $debug_cmd $GREP "$1" "$2" >/dev/null 2>&1 } # func_len STRING # --------------- # Set func_len_result to the length of STRING. STRING may not # start with a hyphen. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ && _G_HAVE_XSI_OPS=yes if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_len () { $debug_cmd func_len_result=${#1} }' else func_len () { $debug_cmd func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` } fi # func_mkdir_p DIRECTORY-PATH # --------------------------- # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { $debug_cmd _G_directory_path=$1 _G_dir_list= if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then # Protect directory names starting with '-' case $_G_directory_path in -*) _G_directory_path=./$_G_directory_path ;; esac # While some portion of DIR does not yet exist... while test ! -d "$_G_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. _G_dir_list=$_G_directory_path:$_G_dir_list # If the last portion added has no slash in it, the list is done case $_G_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"` done _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'` func_mkdir_p_IFS=$IFS; IFS=: for _G_dir in $_G_dir_list; do IFS=$func_mkdir_p_IFS # mkdir can fail with a 'File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$_G_dir" 2>/dev/null || : done IFS=$func_mkdir_p_IFS # Bail out if we (or some other process) failed to create a directory. test -d "$_G_directory_path" || \ func_fatal_error "Failed to create '$1'" fi } # func_mktempdir [BASENAME] # ------------------------- # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, BASENAME is the basename for that directory. func_mktempdir () { $debug_cmd _G_template=${TMPDIR-/tmp}/${1-$progname} if test : = "$opt_dry_run"; then # Return a directory name, but don't create it in dry-run mode _G_tmpdir=$_G_template-$$ else # If mktemp works, use that first and foremost _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null` if test ! -d "$_G_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race _G_tmpdir=$_G_template-${RANDOM-0}$$ func_mktempdir_umask=`umask` umask 0077 $MKDIR "$_G_tmpdir" umask $func_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$_G_tmpdir" || \ func_fatal_error "cannot create temporary directory '$_G_tmpdir'" fi $ECHO "$_G_tmpdir" } # func_normal_abspath PATH # ------------------------ # Remove doubled-up and trailing slashes, "." path components, # and cancel out any ".." path components in PATH after making # it an absolute path. func_normal_abspath () { $debug_cmd # These SED scripts presuppose an absolute path with a trailing slash. _G_pathcar='s|^/\([^/]*\).*$|\1|' _G_pathcdr='s|^/[^/]*||' _G_removedotparts=':dotsl s|/\./|/|g t dotsl s|/\.$|/|' _G_collapseslashes='s|/\{1,\}|/|g' _G_finalslash='s|/*$|/|' # Start from root dir and reassemble the path. func_normal_abspath_result= func_normal_abspath_tpath=$1 func_normal_abspath_altnamespace= case $func_normal_abspath_tpath in "") # Empty path, that just means $cwd. func_stripname '' '/' "`pwd`" func_normal_abspath_result=$func_stripname_result return ;; # The next three entries are used to spot a run of precisely # two leading slashes without using negated character classes; # we take advantage of case's first-match behaviour. ///*) # Unusual form of absolute path, do nothing. ;; //*) # Not necessarily an ordinary path; POSIX reserves leading '//' # and for example Cygwin uses it to access remote file shares # over CIFS/SMB, so we conserve a leading double slash if found. func_normal_abspath_altnamespace=/ ;; /*) # Absolute path, do nothing. ;; *) # Relative path, prepend $cwd. func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath ;; esac # Cancel out all the simple stuff to save iterations. We also want # the path to end with a slash for ease of parsing, so make sure # there is one (and only one) here. func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"` while :; do # Processed it all yet? if test / = "$func_normal_abspath_tpath"; then # If we ascended to the root using ".." the result may be empty now. if test -z "$func_normal_abspath_result"; then func_normal_abspath_result=/ fi break fi func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_pathcar"` func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_pathcdr"` # Figure out what to do with it case $func_normal_abspath_tcomponent in "") # Trailing empty path component, ignore it. ;; ..) # Parent dir; strip last assembled component from result. func_dirname "$func_normal_abspath_result" func_normal_abspath_result=$func_dirname_result ;; *) # Actual path component, append it. func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent" ;; esac done # Restore leading double-slash if one was found on entry. func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } # func_notquiet ARG... # -------------------- # Echo program name prefixed message only when not in quiet mode. func_notquiet () { $debug_cmd $opt_quiet || func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_relative_path SRCDIR DSTDIR # -------------------------------- # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR. func_relative_path () { $debug_cmd func_relative_path_result= func_normal_abspath "$1" func_relative_path_tlibdir=$func_normal_abspath_result func_normal_abspath "$2" func_relative_path_tbindir=$func_normal_abspath_result # Ascend the tree starting from libdir while :; do # check if we have found a prefix of bindir case $func_relative_path_tbindir in $func_relative_path_tlibdir) # found an exact match func_relative_path_tcancelled= break ;; $func_relative_path_tlibdir*) # found a matching prefix func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" func_relative_path_tcancelled=$func_stripname_result if test -z "$func_relative_path_result"; then func_relative_path_result=. fi break ;; *) func_dirname $func_relative_path_tlibdir func_relative_path_tlibdir=$func_dirname_result if test -z "$func_relative_path_tlibdir"; then # Have to descend all the way to the root! func_relative_path_result=../$func_relative_path_result func_relative_path_tcancelled=$func_relative_path_tbindir break fi func_relative_path_result=../$func_relative_path_result ;; esac done # Now calculate path; take care to avoid doubling-up slashes. func_stripname '' '/' "$func_relative_path_result" func_relative_path_result=$func_stripname_result func_stripname '/' '/' "$func_relative_path_tcancelled" if test -n "$func_stripname_result"; then func_append func_relative_path_result "/$func_stripname_result" fi # Normalisation. If bindir is libdir, return '.' else relative path. if test -n "$func_relative_path_result"; then func_stripname './' '' "$func_relative_path_result" func_relative_path_result=$func_stripname_result fi test -n "$func_relative_path_result" || func_relative_path_result=. : } # func_quote_portable EVAL ARG # ---------------------------- # Internal function to portably implement func_quote_arg. Note that we still # keep attention to performance here so we as much as possible try to avoid # calling sed binary (so far O(N) complexity as long as func_append is O(1)). func_quote_portable () { $debug_cmd $require_check_ifs_backslash func_quote_portable_result=$2 # one-time-loop (easy break) while true do if $1; then func_quote_portable_result=`$ECHO "$2" | $SED \ -e "$sed_double_quote_subst" -e "$sed_double_backslash"` break fi # Quote for eval. case $func_quote_portable_result in *[\\\`\"\$]*) # Fallback to sed for $func_check_bs_ifs_broken=:, or when the string # contains the shell wildcard characters. case $check_ifs_backshlash_broken$func_quote_portable_result in :*|*[\[\*\?]*) func_quote_portable_result=`$ECHO "$func_quote_portable_result" \ | $SED "$sed_quote_subst"` break ;; esac func_quote_portable_old_IFS=$IFS for _G_char in '\' '`' '"' '$' do # STATE($1) PREV($2) SEPARATOR($3) set start "" "" func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy IFS=$_G_char for _G_part in $func_quote_portable_result do case $1 in quote) func_append func_quote_portable_result "$3$2" set quote "$_G_part" "\\$_G_char" ;; start) set first "" "" func_quote_portable_result= ;; first) set quote "$_G_part" "" ;; esac done done IFS=$func_quote_portable_old_IFS ;; *) ;; esac break done func_quote_portable_unquoted_result=$func_quote_portable_result case $func_quote_portable_result in # double-quote args containing shell metacharacters to delay # word splitting, command substitution and variable expansion # for a subsequent eval. # many bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_portable_result=\"$func_quote_portable_result\" ;; esac } # func_quotefast_eval ARG # ----------------------- # Quote one ARG (internal). This is equivalent to 'func_quote_arg eval ARG', # but optimized for speed. Result is stored in $func_quotefast_eval. if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then printf -v _GL_test_printf_tilde %q '~' if test '\~' = "$_GL_test_printf_tilde"; then func_quotefast_eval () { printf -v func_quotefast_eval_result %q "$1" } else # Broken older Bash implementations. Make those faster too if possible. func_quotefast_eval () { case $1 in '~'*) func_quote_portable false "$1" func_quotefast_eval_result=$func_quote_portable_result ;; *) printf -v func_quotefast_eval_result %q "$1" ;; esac } fi else func_quotefast_eval () { func_quote_portable false "$1" func_quotefast_eval_result=$func_quote_portable_result } fi # func_quote_arg MODEs ARG # ------------------------ # Quote one ARG to be evaled later. MODEs argument may contain zero or more # specifiers listed below separated by ',' character. This function returns two # values: # i) func_quote_arg_result # double-quoted (when needed), suitable for a subsequent eval # ii) func_quote_arg_unquoted_result # has all characters that are still active within double # quotes backslashified. Available only if 'unquoted' is specified. # # Available modes: # ---------------- # 'eval' (default) # - escape shell special characters # 'expand' # - the same as 'eval'; but do not quote variable references # 'pretty' # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might # be used later in func_quote to get output like: 'echo "a b"' instead # of 'echo a\ b'. This is slower than default on some shells. # 'unquoted' # - produce also $func_quote_arg_unquoted_result which does not contain # wrapping double-quotes. # # Examples for 'func_quote_arg pretty,unquoted string': # # string | *_result | *_unquoted_result # ------------+-----------------------+------------------- # " | \" | \" # a b | "a b" | a b # "a b" | "\"a b\"" | \"a b\" # * | "*" | * # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\" # # Examples for 'func_quote_arg pretty,unquoted,expand string': # # string | *_result | *_unquoted_result # --------------+---------------------+-------------------- # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\" func_quote_arg () { _G_quote_expand=false case ,$1, in *,expand,*) _G_quote_expand=: ;; esac case ,$1, in *,pretty,*|*,expand,*|*,unquoted,*) func_quote_portable $_G_quote_expand "$2" func_quote_arg_result=$func_quote_portable_result func_quote_arg_unquoted_result=$func_quote_portable_unquoted_result ;; *) # Faster quote-for-eval for some shells. func_quotefast_eval "$2" func_quote_arg_result=$func_quotefast_eval_result ;; esac } # func_quote MODEs ARGs... # ------------------------ # Quote all ARGs to be evaled later and join them into single command. See # func_quote_arg's description for more info. func_quote () { $debug_cmd _G_func_quote_mode=$1 ; shift func_quote_result= while test 0 -lt $#; do func_quote_arg "$_G_func_quote_mode" "$1" if test -n "$func_quote_result"; then func_append func_quote_result " $func_quote_arg_result" else func_append func_quote_result "$func_quote_arg_result" fi shift done } # func_stripname PREFIX SUFFIX NAME # --------------------------------- # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_stripname () { $debug_cmd # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary variable first. func_stripname_result=$3 func_stripname_result=${func_stripname_result#"$1"} func_stripname_result=${func_stripname_result%"$2"} }' else func_stripname () { $debug_cmd case $2 in .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;; *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;; esac } fi # func_show_eval CMD [FAIL_EXP] # ----------------------------- # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { $debug_cmd _G_cmd=$1 _G_fail_exp=${2-':'} func_quote_arg pretty,expand "$_G_cmd" eval "func_notquiet $func_quote_arg_result" $opt_dry_run || { eval "$_G_cmd" _G_status=$? if test 0 -ne "$_G_status"; then eval "(exit $_G_status); $_G_fail_exp" fi } } # func_show_eval_locale CMD [FAIL_EXP] # ------------------------------------ # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { $debug_cmd _G_cmd=$1 _G_fail_exp=${2-':'} $opt_quiet || { func_quote_arg expand,pretty "$_G_cmd" eval "func_echo $func_quote_arg_result" } $opt_dry_run || { eval "$_G_user_locale $_G_cmd" _G_status=$? eval "$_G_safe_locale" if test 0 -ne "$_G_status"; then eval "(exit $_G_status); $_G_fail_exp" fi } } # func_tr_sh # ---------- # Turn $1 into a string suitable for a shell variable name. # Result is stored in $func_tr_sh_result. All characters # not in the set a-zA-Z0-9_ are replaced with '_'. Further, # if $1 begins with a digit, a '_' is prepended as well. func_tr_sh () { $debug_cmd case $1 in [0-9]* | *[!a-zA-Z0-9_]*) func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'` ;; * ) func_tr_sh_result=$1 ;; esac } # func_verbose ARG... # ------------------- # Echo program name prefixed message in verbose mode only. func_verbose () { $debug_cmd $opt_verbose && func_echo "$*" : } # func_warn_and_continue ARG... # ----------------------------- # Echo program name prefixed warning message to standard error. func_warn_and_continue () { $debug_cmd $require_term_colors func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2 } # func_warning CATEGORY ARG... # ---------------------------- # Echo program name prefixed warning message to standard error. Warning # messages can be filtered according to CATEGORY, where this function # elides messages where CATEGORY is not listed in the global variable # 'opt_warning_types'. func_warning () { $debug_cmd # CATEGORY must be in the warning_categories list! case " $warning_categories " in *" $1 "*) ;; *) func_internal_error "invalid warning category '$1'" ;; esac _G_category=$1 shift case " $opt_warning_types " in *" $_G_category "*) $warning_func ${1+"$@"} ;; esac } # func_sort_ver VER1 VER2 # ----------------------- # 'sort -V' is not generally available. # Note this deviates from the version comparison in automake # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a # but this should suffice as we won't be specifying old # version formats or redundant trailing .0 in bootstrap.conf. # If we did want full compatibility then we should probably # use m4_version_compare from autoconf. func_sort_ver () { $debug_cmd printf '%s\n%s\n' "$1" "$2" \ | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n } # func_lt_ver PREV CURR # --------------------- # Return true if PREV and CURR are in the correct order according to # func_sort_ver, otherwise false. Use it like this: # # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..." func_lt_ver () { $debug_cmd test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q` } # Local variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: #! /bin/sh # A portable, pluggable option parser for Bourne shell. # Written by Gary V. Vaughan, 2010 # This is free software. There is NO warranty; not even for # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # Copyright (C) 2010-2019, 2021 Bootstrap Authors # # This file is dual licensed under the terms of the MIT license # , and GPL version 2 or later # . You must apply one of # these licenses when using or redistributing this software or any of # the files within it. See the URLs above, or the file `LICENSE` # included in the Bootstrap distribution for the full license texts. # Please report bugs or propose patches to: # # Set a version string for this script. scriptversion=2019-02-19.15; # UTC ## ------ ## ## Usage. ## ## ------ ## # This file is a library for parsing options in your shell scripts along # with assorted other useful supporting features that you can make use # of too. # # For the simplest scripts you might need only: # # #!/bin/sh # . relative/path/to/funclib.sh # . relative/path/to/options-parser # scriptversion=1.0 # func_options ${1+"$@"} # eval set dummy "$func_options_result"; shift # ...rest of your script... # # In order for the '--version' option to work, you will need to have a # suitably formatted comment like the one at the top of this file # starting with '# Written by ' and ending with '# Copyright'. # # For '-h' and '--help' to work, you will also need a one line # description of your script's purpose in a comment directly above the # '# Written by ' line, like the one at the top of this file. # # The default options also support '--debug', which will turn on shell # execution tracing (see the comment above debug_cmd below for another # use), and '--verbose' and the func_verbose function to allow your script # to display verbose messages only when your user has specified # '--verbose'. # # After sourcing this file, you can plug in processing for additional # options by amending the variables from the 'Configuration' section # below, and following the instructions in the 'Option parsing' # section further down. ## -------------- ## ## Configuration. ## ## -------------- ## # You should override these variables in your script after sourcing this # file so that they reflect the customisations you have added to the # option parser. # The usage line for option parsing errors and the start of '-h' and # '--help' output messages. You can embed shell variables for delayed # expansion at the time the message is displayed, but you will need to # quote other shell meta-characters carefully to prevent them being # expanded when the contents are evaled. usage='$progpath [OPTION]...' # Short help message in response to '-h' and '--help'. Add to this or # override it after sourcing this library to reflect the full set of # options your script accepts. usage_message="\ --debug enable verbose shell tracing -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] -v, --verbose verbosely report processing --version print version information and exit -h, --help print short or long help message and exit " # Additional text appended to 'usage_message' in response to '--help'. long_help_message=" Warning categories include: 'all' show all warnings 'none' turn off all the warnings 'error' warnings are treated as fatal errors" # Help message printed before fatal option parsing errors. fatal_help="Try '\$progname --help' for more information." ## ------------------------- ## ## Hook function management. ## ## ------------------------- ## # This section contains functions for adding, removing, and running hooks # in the main code. A hook is just a list of function names that can be # run in order later on. # func_hookable FUNC_NAME # ----------------------- # Declare that FUNC_NAME will run hooks added with # 'func_add_hook FUNC_NAME ...'. func_hookable () { $debug_cmd func_append hookable_fns " $1" } # func_add_hook FUNC_NAME HOOK_FUNC # --------------------------------- # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must # first have been declared "hookable" by a call to 'func_hookable'. func_add_hook () { $debug_cmd case " $hookable_fns " in *" $1 "*) ;; *) func_fatal_error "'$1' does not accept hook functions." ;; esac eval func_append ${1}_hooks '" $2"' } # func_remove_hook FUNC_NAME HOOK_FUNC # ------------------------------------ # Remove HOOK_FUNC from the list of hook functions to be called by # FUNC_NAME. func_remove_hook () { $debug_cmd eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' } # func_propagate_result FUNC_NAME_A FUNC_NAME_B # --------------------------------------------- # If the *_result variable of FUNC_NAME_A _is set_, assign its value to # *_result variable of FUNC_NAME_B. func_propagate_result () { $debug_cmd func_propagate_result_result=: if eval "test \"\${${1}_result+set}\" = set" then eval "${2}_result=\$${1}_result" else func_propagate_result_result=false fi } # func_run_hooks FUNC_NAME [ARG]... # --------------------------------- # Run all hook functions registered to FUNC_NAME. # It's assumed that the list of hook functions contains nothing more # than a whitespace-delimited list of legal shell function names, and # no effort is wasted trying to catch shell meta-characters or preserve # whitespace. func_run_hooks () { $debug_cmd _G_rc_run_hooks=false case " $hookable_fns " in *" $1 "*) ;; *) func_fatal_error "'$1' does not support hook functions." ;; esac eval _G_hook_fns=\$$1_hooks; shift for _G_hook in $_G_hook_fns; do func_unset "${_G_hook}_result" eval $_G_hook '${1+"$@"}' func_propagate_result $_G_hook func_run_hooks if $func_propagate_result_result; then eval set dummy "$func_run_hooks_result"; shift fi done } ## --------------- ## ## Option parsing. ## ## --------------- ## # In order to add your own option parsing hooks, you must accept the # full positional parameter list from your hook function. You may remove # or edit any options that you action, and then pass back the remaining # unprocessed options in '_result', escaped # suitably for 'eval'. # # The '_result' variable is automatically unset # before your hook gets called; for best performance, only set the # *_result variable when necessary (i.e. don't call the 'func_quote' # function unnecessarily because it can be an expensive operation on some # machines). # # Like this: # # my_options_prep () # { # $debug_cmd # # # Extend the existing usage message. # usage_message=$usage_message' # -s, --silent don'\''t print informational messages # ' # # No change in '$@' (ignored completely by this hook). Leave # # my_options_prep_result variable intact. # } # func_add_hook func_options_prep my_options_prep # # # my_silent_option () # { # $debug_cmd # # args_changed=false # # # Note that, for efficiency, we parse as many options as we can # # recognise in a loop before passing the remainder back to the # # caller on the first unrecognised argument we encounter. # while test $# -gt 0; do # opt=$1; shift # case $opt in # --silent|-s) opt_silent=: # args_changed=: # ;; # # Separate non-argument short options: # -s*) func_split_short_opt "$_G_opt" # set dummy "$func_split_short_opt_name" \ # "-$func_split_short_opt_arg" ${1+"$@"} # shift # args_changed=: # ;; # *) # Make sure the first unrecognised option "$_G_opt" # # is added back to "$@" in case we need it later, # # if $args_changed was set to 'true'. # set dummy "$_G_opt" ${1+"$@"}; shift; break ;; # esac # done # # # Only call 'func_quote' here if we processed at least one argument. # if $args_changed; then # func_quote eval ${1+"$@"} # my_silent_option_result=$func_quote_result # fi # } # func_add_hook func_parse_options my_silent_option # # # my_option_validation () # { # $debug_cmd # # $opt_silent && $opt_verbose && func_fatal_help "\ # '--silent' and '--verbose' options are mutually exclusive." # } # func_add_hook func_validate_options my_option_validation # # You'll also need to manually amend $usage_message to reflect the extra # options you parse. It's preferable to append if you can, so that # multiple option parsing hooks can be added safely. # func_options_finish [ARG]... # ---------------------------- # Finishing the option parse loop (call 'func_options' hooks ATM). func_options_finish () { $debug_cmd func_run_hooks func_options ${1+"$@"} func_propagate_result func_run_hooks func_options_finish } # func_options [ARG]... # --------------------- # All the functions called inside func_options are hookable. See the # individual implementations for details. func_hookable func_options func_options () { $debug_cmd _G_options_quoted=false for my_func in options_prep parse_options validate_options options_finish do func_unset func_${my_func}_result func_unset func_run_hooks_result eval func_$my_func '${1+"$@"}' func_propagate_result func_$my_func func_options if $func_propagate_result_result; then eval set dummy "$func_options_result"; shift _G_options_quoted=: fi done $_G_options_quoted || { # As we (func_options) are top-level options-parser function and # nobody quoted "$@" for us yet, we need to do it explicitly for # caller. func_quote eval ${1+"$@"} func_options_result=$func_quote_result } } # func_options_prep [ARG]... # -------------------------- # All initialisations required before starting the option parse loop. # Note that when calling hook functions, we pass through the list of # positional parameters. If a hook function modifies that list, and # needs to propagate that back to rest of this script, then the complete # modified list must be put in 'func_run_hooks_result' before returning. func_hookable func_options_prep func_options_prep () { $debug_cmd # Option defaults: opt_verbose=false opt_warning_types= func_run_hooks func_options_prep ${1+"$@"} func_propagate_result func_run_hooks func_options_prep } # func_parse_options [ARG]... # --------------------------- # The main option parsing loop. func_hookable func_parse_options func_parse_options () { $debug_cmd _G_parse_options_requote=false # this just eases exit handling while test $# -gt 0; do # Defer to hook functions for initial option parsing, so they # get priority in the event of reusing an option name. func_run_hooks func_parse_options ${1+"$@"} func_propagate_result func_run_hooks func_parse_options if $func_propagate_result_result; then eval set dummy "$func_parse_options_result"; shift # Even though we may have changed "$@", we passed the "$@" array # down into the hook and it quoted it for us (because we are in # this if-branch). No need to quote it again. _G_parse_options_requote=false fi # Break out of the loop if we already parsed every option. test $# -gt 0 || break # We expect that one of the options parsed in this function matches # and thus we remove _G_opt from "$@" and need to re-quote. _G_match_parse_options=: _G_opt=$1 shift case $_G_opt in --debug|-x) debug_cmd='set -x' func_echo "enabling shell trace mode" >&2 $debug_cmd ;; --no-warnings|--no-warning|--no-warn) set dummy --warnings none ${1+"$@"} shift ;; --warnings|--warning|-W) if test $# = 0 && func_missing_arg $_G_opt; then _G_parse_options_requote=: break fi case " $warning_categories $1" in *" $1 "*) # trailing space prevents matching last $1 above func_append_uniq opt_warning_types " $1" ;; *all) opt_warning_types=$warning_categories ;; *none) opt_warning_types=none warning_func=: ;; *error) opt_warning_types=$warning_categories warning_func=func_fatal_error ;; *) func_fatal_error \ "unsupported warning category: '$1'" ;; esac shift ;; --verbose|-v) opt_verbose=: ;; --version) func_version ;; -\?|-h) func_usage ;; --help) func_help ;; # Separate optargs to long options (plugins may need this): --*=*) func_split_equals "$_G_opt" set dummy "$func_split_equals_lhs" \ "$func_split_equals_rhs" ${1+"$@"} shift ;; # Separate optargs to short options: -W*) func_split_short_opt "$_G_opt" set dummy "$func_split_short_opt_name" \ "$func_split_short_opt_arg" ${1+"$@"} shift ;; # Separate non-argument short options: -\?*|-h*|-v*|-x*) func_split_short_opt "$_G_opt" set dummy "$func_split_short_opt_name" \ "-$func_split_short_opt_arg" ${1+"$@"} shift ;; --) _G_parse_options_requote=: ; break ;; -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; *) set dummy "$_G_opt" ${1+"$@"}; shift _G_match_parse_options=false break ;; esac if $_G_match_parse_options; then _G_parse_options_requote=: fi done if $_G_parse_options_requote; then # save modified positional parameters for caller func_quote eval ${1+"$@"} func_parse_options_result=$func_quote_result fi } # func_validate_options [ARG]... # ------------------------------ # Perform any sanity checks on option settings and/or unconsumed # arguments. func_hookable func_validate_options func_validate_options () { $debug_cmd # Display all warnings if -W was not given. test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" func_run_hooks func_validate_options ${1+"$@"} func_propagate_result func_run_hooks func_validate_options # Bail if the options were screwed! $exit_cmd $EXIT_FAILURE } ## ----------------- ## ## Helper functions. ## ## ----------------- ## # This section contains the helper functions used by the rest of the # hookable option parser framework in ascii-betical order. # func_fatal_help ARG... # ---------------------- # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { $debug_cmd eval \$ECHO \""Usage: $usage"\" eval \$ECHO \""$fatal_help"\" func_error ${1+"$@"} exit $EXIT_FAILURE } # func_help # --------- # Echo long help message to standard output and exit. func_help () { $debug_cmd func_usage_message $ECHO "$long_help_message" exit 0 } # func_missing_arg ARGNAME # ------------------------ # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $debug_cmd func_error "Missing argument for '$1'." exit_cmd=exit } # func_split_equals STRING # ------------------------ # Set func_split_equals_lhs and func_split_equals_rhs shell variables # after splitting STRING at the '=' sign. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ && _G_HAVE_XSI_OPS=yes if test yes = "$_G_HAVE_XSI_OPS" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_split_equals () { $debug_cmd func_split_equals_lhs=${1%%=*} func_split_equals_rhs=${1#*=} if test "x$func_split_equals_lhs" = "x$1"; then func_split_equals_rhs= fi }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_split_equals () { $debug_cmd func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'` func_split_equals_rhs= test "x$func_split_equals_lhs=" = "x$1" \ || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'` } fi #func_split_equals # func_split_short_opt SHORTOPT # ----------------------------- # Set func_split_short_opt_name and func_split_short_opt_arg shell # variables after splitting SHORTOPT after the 2nd character. if test yes = "$_G_HAVE_XSI_OPS" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_split_short_opt () { $debug_cmd func_split_short_opt_arg=${1#??} func_split_short_opt_name=${1%"$func_split_short_opt_arg"} }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_split_short_opt () { $debug_cmd func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'` func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'` } fi #func_split_short_opt # func_usage # ---------- # Echo short help message to standard output and exit. func_usage () { $debug_cmd func_usage_message $ECHO "Run '$progname --help |${PAGER-more}' for full usage" exit 0 } # func_usage_message # ------------------ # Echo short help message to standard output. func_usage_message () { $debug_cmd eval \$ECHO \""Usage: $usage"\" echo $SED -n 's|^# || /^Written by/{ x;p;x } h /^Written by/q' < "$progpath" echo eval \$ECHO \""$usage_message"\" } # func_version # ------------ # Echo version message to standard output and exit. # The version message is extracted from the calling file's header # comments, with leading '# ' stripped: # 1. First display the progname and version # 2. Followed by the header comment line matching /^# Written by / # 3. Then a blank line followed by the first following line matching # /^# Copyright / # 4. Immediately followed by any lines between the previous matches, # except lines preceding the intervening completely blank line. # For example, see the header comments of this file. func_version () { $debug_cmd printf '%s\n' "$progname $scriptversion" $SED -n ' /^# Written by /!b s|^# ||; p; n :fwd2blnk /./ { n b fwd2blnk } p; n :holdwrnt s|^# || s|^# *$|| /^Copyright /!{ /./H n b holdwrnt } s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| G s|\(\n\)\n*|\1|g p; q' < "$progpath" exit $? } # Local variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: # Set a version string. scriptversion='(GNU libtool) 2.4.7' # func_echo ARG... # ---------------- # Libtool also displays the current mode in messages, so override # funclib.sh func_echo with this custom definition. func_echo () { $debug_cmd _G_message=$* func_echo_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_IFS $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line" done IFS=$func_echo_IFS } # func_warning ARG... # ------------------- # Libtool warnings are not categorized, so override funclib.sh # func_warning with this simpler definition. func_warning () { $debug_cmd $warning_func ${1+"$@"} } ## ---------------- ## ## Options parsing. ## ## ---------------- ## # Hook in the functions to make sure our own options are parsed during # the option parsing loop. usage='$progpath [OPTION]... [MODE-ARG]...' # Short help message in response to '-h'. usage_message="Options: --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --mode=MODE use operation mode MODE --no-warnings equivalent to '-Wnone' --preserve-dup-deps don't remove duplicate dependency libraries --quiet, --silent don't print informational messages --tag=TAG use configuration variables from tag TAG -v, --verbose print more informational messages than default --version print version information -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] -h, --help, --help-all print short, long, or detailed help message " # Additional text appended to 'usage_message' in response to '--help'. func_help () { $debug_cmd func_usage_message $ECHO "$long_help_message MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. When passed as first option, '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that. Try '$progname --help --mode=MODE' for a more detailed description of MODE. When reporting a bug, please describe a test case to reproduce it and include the following information: host-triplet: $host shell: $SHELL compiler: $LTCC compiler flags: $LTCFLAGS linker: $LD (gnu? $with_gnu_ld) version: $progname $scriptversion Debian-2.4.7-5 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` Report bugs to . GNU libtool home page: . General help using GNU software: ." exit 0 } # func_lo2o OBJECT-NAME # --------------------- # Transform OBJECT-NAME from a '.lo' suffix to the platform specific # object suffix. lo2o=s/\\.lo\$/.$objext/ o2lo=s/\\.$objext\$/.lo/ if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_lo2o () { case $1 in *.lo) func_lo2o_result=${1%.lo}.$objext ;; * ) func_lo2o_result=$1 ;; esac }' # func_xform LIBOBJ-OR-SOURCE # --------------------------- # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise) # suffix to a '.lo' libtool-object suffix. eval 'func_xform () { func_xform_result=${1%.*}.lo }' else # ...otherwise fall back to using sed. func_lo2o () { func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"` } func_xform () { func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'` } fi # func_fatal_configuration ARG... # ------------------------------- # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func_fatal_error ${1+"$@"} \ "See the $PACKAGE documentation for more information." \ "Fatal configuration error." } # func_config # ----------- # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # ------------- # Display the features supported by this script. func_features () { echo "host: $host" if test yes = "$build_libtool_libs"; then echo "enable shared libraries" else echo "disable shared libraries" fi if test yes = "$build_old_libs"; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag TAGNAME # ----------------------- # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname=$1 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf=/$re_begincf/,/$re_endcf/p # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # ------------------------ # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # libtool_options_prep [ARG]... # ----------------------------- # Preparation for options parsed by libtool. libtool_options_prep () { $debug_mode # Option defaults: opt_config=false opt_dlopen= opt_dry_run=false opt_help=false opt_mode= opt_preserve_dup_deps=false opt_quiet=false nonopt= preserve_args= _G_rc_lt_options_prep=: _G_rc_lt_options_prep=: # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; *) _G_rc_lt_options_prep=false ;; esac if $_G_rc_lt_options_prep; then # Pass back the list of options. func_quote eval ${1+"$@"} libtool_options_prep_result=$func_quote_result fi } func_add_hook func_options_prep libtool_options_prep # libtool_parse_options [ARG]... # --------------------------------- # Provide handling for libtool specific options. libtool_parse_options () { $debug_cmd _G_rc_lt_parse_options=false # Perform our own loop to consume as many options as possible in # each iteration. while test $# -gt 0; do _G_match_lt_parse_options=: _G_opt=$1 shift case $_G_opt in --dry-run|--dryrun|-n) opt_dry_run=: ;; --config) func_config ;; --dlopen|-dlopen) opt_dlopen="${opt_dlopen+$opt_dlopen }$1" shift ;; --preserve-dup-deps) opt_preserve_dup_deps=: ;; --features) func_features ;; --finish) set dummy --mode finish ${1+"$@"}; shift ;; --help) opt_help=: ;; --help-all) opt_help=': help-all' ;; --mode) test $# = 0 && func_missing_arg $_G_opt && break opt_mode=$1 case $1 in # Valid mode arguments: clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $_G_opt" exit_cmd=exit break ;; esac shift ;; --no-silent|--no-quiet) opt_quiet=false func_append preserve_args " $_G_opt" ;; --no-warnings|--no-warning|--no-warn) opt_warning=false func_append preserve_args " $_G_opt" ;; --no-verbose) opt_verbose=false func_append preserve_args " $_G_opt" ;; --silent|--quiet) opt_quiet=: opt_verbose=false func_append preserve_args " $_G_opt" ;; --tag) test $# = 0 && func_missing_arg $_G_opt && break opt_tag=$1 func_append preserve_args " $_G_opt $1" func_enable_tag "$1" shift ;; --verbose|-v) opt_quiet=false opt_verbose=: func_append preserve_args " $_G_opt" ;; # An option not handled by this hook function: *) set dummy "$_G_opt" ${1+"$@"} ; shift _G_match_lt_parse_options=false break ;; esac $_G_match_lt_parse_options && _G_rc_lt_parse_options=: done if $_G_rc_lt_parse_options; then # save modified positional parameters for caller func_quote eval ${1+"$@"} libtool_parse_options_result=$func_quote_result fi } func_add_hook func_parse_options libtool_parse_options # libtool_validate_options [ARG]... # --------------------------------- # Perform any sanity checks on option settings and/or unconsumed # arguments. libtool_validate_options () { # save first non-option argument if test 0 -lt $#; then nonopt=$1 shift fi # preserve --debug test : = "$debug_cmd" || func_append preserve_args " --debug" case $host in # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac $opt_help || { # Sanity checks first: func_check_version_match test yes != "$build_libtool_libs" \ && test yes != "$build_old_libs" \ && func_fatal_configuration "not configured to build any kind of library" # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$opt_dlopen" && test execute != "$opt_mode"; then func_error "unrecognized option '-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help=$help help="Try '$progname --help --mode=$opt_mode' for more information." } # Pass back the unparsed argument list func_quote eval ${1+"$@"} libtool_validate_options_result=$func_quote_result } func_add_hook func_validate_options libtool_validate_options # Process options as early as possible so that --help and --version # can return quickly. func_options ${1+"$@"} eval set dummy "$func_options_result"; shift ## ----------- ## ## Main. ## ## ----------- ## magic='%%%MAGIC variable%%%' magic_exe='%%%MAGIC EXE variable%%%' # Global variables. extracted_archives= extracted_serial=0 # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } # func_generated_by_libtool # True iff stdin has been generated by Libtool. This function is only # a basic sanity check; it will hardly flush out determined imposters. func_generated_by_libtool_p () { $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_p file # True iff FILE is a libtool '.la' library or '.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p } # func_lalib_unsafe_p file # True iff FILE is a libtool '.la' library or '.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if 'file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case $lalib_p_line in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test yes = "$lalib_p" } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { test -f "$1" && $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $debug_cmd save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$sp$nl eval cmd=\"$cmd\" IFS=$save_ifs func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # 'FILE.' does not work on cygwin managed mounts. func_source () { $debug_cmd case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_resolve_sysroot PATH # Replace a leading = in PATH with a sysroot. Store the result into # func_resolve_sysroot_result func_resolve_sysroot () { func_resolve_sysroot_result=$1 case $func_resolve_sysroot_result in =*) func_stripname '=' '' "$func_resolve_sysroot_result" func_resolve_sysroot_result=$lt_sysroot$func_stripname_result ;; esac } # func_replace_sysroot PATH # If PATH begins with the sysroot, replace it with = and # store the result into func_replace_sysroot_result. func_replace_sysroot () { case $lt_sysroot:$1 in ?*:"$lt_sysroot"*) func_stripname "$lt_sysroot" '' "$1" func_replace_sysroot_result='='$func_stripname_result ;; *) # Including no sysroot. func_replace_sysroot_result=$1 ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $debug_cmd if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with '--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=$1 if test yes = "$build_libtool_libs"; then write_lobj=\'$2\' else write_lobj=none fi if test yes = "$build_old_libs"; then write_oldobj=\'$3\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T </dev/null` if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | $SED -e "$sed_naive_backslashify"` else func_convert_core_file_wine_to_w32_result= fi fi } # end: func_convert_core_file_wine_to_w32 # func_convert_core_path_wine_to_w32 ARG # Helper function used by path conversion functions when $build is *nix, and # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly # configured wine environment available, with the winepath program in $build's # $PATH. Assumes ARG has no leading or trailing path separator characters. # # ARG is path to be converted from $build format to win32. # Result is available in $func_convert_core_path_wine_to_w32_result. # Unconvertible file (directory) names in ARG are skipped; if no directory names # are convertible, then the result may be empty. func_convert_core_path_wine_to_w32 () { $debug_cmd # unfortunately, winepath doesn't convert paths, only file names func_convert_core_path_wine_to_w32_result= if test -n "$1"; then oldIFS=$IFS IFS=: for func_convert_core_path_wine_to_w32_f in $1; do IFS=$oldIFS func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" if test -n "$func_convert_core_file_wine_to_w32_result"; then if test -z "$func_convert_core_path_wine_to_w32_result"; then func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result else func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" fi fi done IFS=$oldIFS fi } # end: func_convert_core_path_wine_to_w32 # func_cygpath ARGS... # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or # (2), returns the Cygwin file name or path in func_cygpath_result (input # file name or path is assumed to be in w32 format, as previously converted # from $build's *nix or MSYS format). In case (3), returns the w32 file name # or path in func_cygpath_result (input file name or path is assumed to be in # Cygwin format). Returns an empty string on error. # # ARGS are passed to cygpath, with the last one being the file name or path to # be converted. # # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH # environment variable; do not put it in $PATH. func_cygpath () { $debug_cmd if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` if test "$?" -ne 0; then # on failure, ensure result is empty func_cygpath_result= fi else func_cygpath_result= func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'" fi } #end: func_cygpath # func_convert_core_msys_to_w32 ARG # Convert file name or path ARG from MSYS format to w32 format. Return # result in func_convert_core_msys_to_w32_result. func_convert_core_msys_to_w32 () { $debug_cmd # awkward: cmd appends spaces to result func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"` } #end: func_convert_core_msys_to_w32 # func_convert_file_check ARG1 ARG2 # Verify that ARG1 (a file name in $build format) was converted to $host # format in ARG2. Otherwise, emit an error message, but continue (resetting # func_to_host_file_result to ARG1). func_convert_file_check () { $debug_cmd if test -z "$2" && test -n "$1"; then func_error "Could not determine host file name corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_file_result=$1 fi } # end func_convert_file_check # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH # Verify that FROM_PATH (a path in $build format) was converted to $host # format in TO_PATH. Otherwise, emit an error message, but continue, resetting # func_to_host_file_result to a simplistic fallback value (see below). func_convert_path_check () { $debug_cmd if test -z "$4" && test -n "$3"; then func_error "Could not determine the host path corresponding to" func_error " '$3'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This is a deliberately simplistic "conversion" and # should not be "improved". See libtool.info. if test "x$1" != "x$2"; then lt_replace_pathsep_chars="s|$1|$2|g" func_to_host_path_result=`echo "$3" | $SED -e "$lt_replace_pathsep_chars"` else func_to_host_path_result=$3 fi fi } # end func_convert_path_check # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT # and appending REPL if ORIG matches BACKPAT. func_convert_path_front_back_pathsep () { $debug_cmd case $4 in $1 ) func_to_host_path_result=$3$func_to_host_path_result ;; esac case $4 in $2 ) func_append func_to_host_path_result "$3" ;; esac } # end func_convert_path_front_back_pathsep ################################################## # $build to $host FILE NAME CONVERSION FUNCTIONS # ################################################## # invoked via '$to_host_file_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # Result will be available in $func_to_host_file_result. # func_to_host_file ARG # Converts the file name ARG from $build format to $host format. Return result # in func_to_host_file_result. func_to_host_file () { $debug_cmd $to_host_file_cmd "$1" } # end func_to_host_file # func_to_tool_file ARG LAZY # converts the file name ARG from $build format to toolchain format. Return # result in func_to_tool_file_result. If the conversion in use is listed # in (the comma separated) LAZY, no conversion takes place. func_to_tool_file () { $debug_cmd case ,$2, in *,"$to_tool_file_cmd",*) func_to_tool_file_result=$1 ;; *) $to_tool_file_cmd "$1" func_to_tool_file_result=$func_to_host_file_result ;; esac } # end func_to_tool_file # func_convert_file_noop ARG # Copy ARG to func_to_host_file_result. func_convert_file_noop () { func_to_host_file_result=$1 } # end func_convert_file_noop # func_convert_file_msys_to_w32 ARG # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_file_result. func_convert_file_msys_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_to_host_file_result=$func_convert_core_msys_to_w32_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_w32 # func_convert_file_cygwin_to_w32 ARG # Convert file name ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_file_cygwin_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then # because $build is cygwin, we call "the" cygpath in $PATH; no need to use # LT_CYGPATH in this case. func_to_host_file_result=`cygpath -m "$1"` fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_cygwin_to_w32 # func_convert_file_nix_to_w32 ARG # Convert file name ARG from *nix to w32 format. Requires a wine environment # and a working winepath. Returns result in func_to_host_file_result. func_convert_file_nix_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_file_wine_to_w32 "$1" func_to_host_file_result=$func_convert_core_file_wine_to_w32_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_w32 # func_convert_file_msys_to_cygwin ARG # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_file_msys_to_cygwin () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_cygpath -u "$func_convert_core_msys_to_w32_result" func_to_host_file_result=$func_cygpath_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_cygwin # func_convert_file_nix_to_cygwin ARG # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed # in a wine environment, working winepath, and LT_CYGPATH set. Returns result # in func_to_host_file_result. func_convert_file_nix_to_cygwin () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. func_convert_core_file_wine_to_w32 "$1" func_cygpath -u "$func_convert_core_file_wine_to_w32_result" func_to_host_file_result=$func_cygpath_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_cygwin ############################################# # $build to $host PATH CONVERSION FUNCTIONS # ############################################# # invoked via '$to_host_path_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # The result will be available in $func_to_host_path_result. # # Path separators are also converted from $build format to $host format. If # ARG begins or ends with a path separator character, it is preserved (but # converted to $host format) on output. # # All path conversion functions are named using the following convention: # file name conversion function : func_convert_file_X_to_Y () # path conversion function : func_convert_path_X_to_Y () # where, for any given $build/$host combination the 'X_to_Y' value is the # same. If conversion functions are added for new $build/$host combinations, # the two new functions must follow this pattern, or func_init_to_host_path_cmd # will break. # func_init_to_host_path_cmd # Ensures that function "pointer" variable $to_host_path_cmd is set to the # appropriate value, based on the value of $to_host_file_cmd. to_host_path_cmd= func_init_to_host_path_cmd () { $debug_cmd if test -z "$to_host_path_cmd"; then func_stripname 'func_convert_file_' '' "$to_host_file_cmd" to_host_path_cmd=func_convert_path_$func_stripname_result fi } # func_to_host_path ARG # Converts the path ARG from $build format to $host format. Return result # in func_to_host_path_result. func_to_host_path () { $debug_cmd func_init_to_host_path_cmd $to_host_path_cmd "$1" } # end func_to_host_path # func_convert_path_noop ARG # Copy ARG to func_to_host_path_result. func_convert_path_noop () { func_to_host_path_result=$1 } # end func_convert_path_noop # func_convert_path_msys_to_w32 ARG # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_path_result. func_convert_path_msys_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # Remove leading and trailing path separator characters from ARG. MSYS # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; # and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result=$func_convert_core_msys_to_w32_result func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_msys_to_w32 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result=$func_convert_core_path_wine_to_w32_result func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result=$func_cygpath_result func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_msys_to_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result=$func_cygpath_result func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_nix_to_cygwin # func_dll_def_p FILE # True iff FILE is a Windows DLL '.def' file. # Keep in sync with _LT_DLL_DEF_P in libtool.m4 func_dll_def_p () { $debug_cmd func_dll_def_p_tmp=`$SED -n \ -e 's/^[ ]*//' \ -e '/^\(;.*\)*$/d' \ -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \ -e q \ "$1"` test DEF = "$func_dll_def_p_tmp" } # func_mode_compile arg... func_mode_compile () { $debug_cmd # Get the compilation command and the source file. base_compile= srcfile=$nonopt # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg=$arg arg_mode=normal ;; target ) libobj=$arg arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify '-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append later " $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs=$IFS; IFS=, for arg in $args; do IFS=$save_ifs func_append_quoted lastarg "$arg" done IFS=$save_ifs func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append base_compile " $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg=$srcfile srcfile=$arg ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with '-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj=$func_basename_result } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from '$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test yes = "$build_libtool_libs" \ || func_fatal_configuration "cannot build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_arg pretty "$libobj" test "X$libobj" != "X$func_quote_arg_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name '$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname=$func_basename_result xdir=$func_dirname_result lobj=$xdir$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test yes = "$build_old_libs"; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test no = "$compiler_c_o"; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext lockfile=$output_obj.lock else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test yes = "$need_locks"; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test warn = "$need_locks"; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result func_quote_arg pretty "$srcfile" qsrcfile=$func_quote_arg_result # Only build a PIC object if we are building libtool libraries. if test yes = "$build_libtool_libs"; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test no != "$pic_mode"; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test warn = "$need_locks" && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test yes = "$suppress_opt"; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test yes = "$build_old_libs"; then if test yes != "$pic_mode"; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test yes = "$compiler_c_o"; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test warn = "$need_locks" && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test no != "$need_locks"; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test compile = "$opt_mode" && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to build PIC objects only -prefer-non-pic try to build non-PIC objects only -shared do not build a '.o' file suitable for static linking -static only build a '.o' file suitable for static linking -Wc,FLAG -Xcompiler FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a 'standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix '.c' with the library object suffix, '.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to '-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the '--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the 'install' or 'cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -bindir BINDIR specify path to binaries directory (for systems where libraries must be found in the PATH setting at runtime) -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE use a list of object files found in FILE to specify objects -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes) -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler -Wa,FLAG -Xassembler FLAG pass linker-specific FLAG directly to the assembler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with '-') are ignored. Every other argument is treated as a filename. Files ending in '.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in '.la', then a libtool library is created, only library objects ('.lo' files) may be specified, and '-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created using 'ar' and 'ranlib', or on Windows using 'lib'. If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode '$opt_mode'" ;; esac echo $ECHO "Try '$progname --help' for more information about other modes." } # Now that we've collected a possible --mode arg, show help if necessary if $opt_help; then if test : = "$opt_help"; then func_mode_help else { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do func_mode_help done } | $SED -n '1p; 2,$s/^Usage:/ or: /p' { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do echo func_mode_help done } | $SED '1d /^When reporting/,/^Report/{ H d } $x /information about other modes/d /more detailed .*MODE/d s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' fi exit $? fi # func_mode_execute arg... func_mode_execute () { $debug_cmd # The first argument is the command name. cmd=$nonopt test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "'$file' is not a file" dir= case $file in *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "'$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "'$file' was not linked with '-export-dynamic'" continue fi func_dirname "$file" "" "." dir=$func_dirname_result if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir=$func_dirname_result ;; *) func_warning "'-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir=$absdir # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic=$magic # Check if any of the arguments is a wrapper script. args= for file do case $file in -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file=$progdir/$program elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file=$progdir/$program fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if $opt_dry_run; then # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS else if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd=\$cmd$args fi } test execute = "$opt_mode" && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $debug_cmd libs= libdirs= admincmds= for opt in "$nonopt" ${1+"$@"} do if test -d "$opt"; then func_append libdirs " $opt" elif test -f "$opt"; then if func_lalib_unsafe_p "$opt"; then func_append libs " $opt" else func_warning "'$opt' is not a valid libtool archive" fi else func_fatal_error "invalid argument '$opt'" fi done if test -n "$libs"; then if test -n "$lt_sysroot"; then sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" else sysroot_cmd= fi # Remove sysroot references if $opt_dry_run; then for lib in $libs; do echo "removing references to $lt_sysroot and '=' prefixes from $lib" done else tmpdir=`func_mktempdir` for lib in $libs; do $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ > $tmpdir/tmp-la mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" fi fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_quiet && exit $EXIT_SUCCESS if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then echo "----------------------------------------------------------------------" echo "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done echo echo "If you ever happen to want to link against installed libraries" echo "in a given directory, LIBDIR, you must either use libtool, and" echo "specify the full pathname of the library, or use the '-LLIBDIR'" echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the '$shlibpath_var' environment variable" echo " during execution" fi if test -n "$runpath_var"; then echo " - add LIBDIR to the '$runpath_var' environment variable" echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the '$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'" fi echo echo "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" echo "pages." ;; *) echo "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac echo "----------------------------------------------------------------------" fi exit $EXIT_SUCCESS } test finish = "$opt_mode" && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $debug_cmd # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac then # Aesthetically quote it. func_quote_arg pretty "$nonopt" install_prog="$func_quote_arg_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_arg pretty "$arg" func_append install_prog "$func_quote_arg_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; *) install_cp=false ;; esac # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=false stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=: ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then if test X-m = "X$prev" && test -n "$install_override_mode"; then arg2=$install_override_mode no_mode=false fi prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_arg pretty "$arg" func_append install_prog " $func_quote_arg_result" if test -n "$arg2"; then func_quote_arg pretty "$arg2" fi func_append install_shared_prog " $func_quote_arg_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the '$prev' option requires an argument" if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_arg pretty "$install_override_mode" func_append install_shared_prog " -m $func_quote_arg_result" fi fi if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=: if $isdir; then destdir=$dest destname= else func_dirname_and_basename "$dest" "" "." destdir=$func_dirname_result destname=$func_basename_result # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "'$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "'$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic=$magic staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. func_append staticlibs " $file" ;; *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "'$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir=$func_dirname_result func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking '$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname=$1 shift srcname=$realname test -n "$relink_command" && srcname=${realname}T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme=$stripme case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme= ;; esac ;; os2*) case $realname in *_dll.a) tstripme= ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try 'ln -sf' first, because the 'ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib=$destdir/$realname func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name=$func_basename_result instname=$dir/${name}i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile=$destdir/$destname else func_basename "$file" destfile=$func_basename_result destfile=$destdir/$destfile fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest=$destfile destfile= ;; *) func_fatal_help "cannot copy a libtool object to '$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test yes = "$build_old_libs"; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile=$destdir/$destname else func_basename "$file" destfile=$func_basename_result destfile=$destdir/$destfile fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext= case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=.exe fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script '$wrapper'" finalize=: for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'` if test -n "$libdir" && test ! -f "$libfile"; then func_warning "'$lib' has not been installed in '$libdir'" finalize=false fi done relink_command= func_source "$wrapper" outputname= if test no = "$fast_install" && test -n "$relink_command"; then $opt_dry_run || { if $finalize; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file=$func_basename_result outputname=$tmpdir/$file # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_quiet || { func_quote_arg expand,pretty "$relink_command" eval "func_echo $func_quote_arg_result" } if eval "$relink_command"; then : else func_error "error: relink '$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file=$outputname else func_warning "cannot relink '$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name=$func_basename_result # Set up the ranlib parameters. oldlib=$destdir/$name func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $tool_oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run '$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test install = "$opt_mode" && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $debug_cmd my_outputname=$1 my_originator=$2 my_pic_p=${3-false} my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms=${my_outputname}S.c else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist=$output_objdir/$my_outputname.nm func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif /* 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 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) /* External symbol declarations for the compiler. */\ " if test yes = "$dlself"; then func_verbose "generating symbol list for '$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do func_to_tool_file "$progfile" func_convert_file_msys_to_w32 func_verbose "extracting global C symbols from '$func_to_tool_file_result'" $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols=$output_objdir/$outputname.exp $opt_dry_run || { $RM $export_symbols eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from '$dlprefile'" func_basename "$dlprefile" name=$func_basename_result case $host in *cygwin* | *mingw* | *cegcc* ) # if an import library, we need to obtain dlname if func_win32_import_lib_p "$dlprefile"; then func_tr_sh "$dlprefile" eval "curr_lafile=\$libfile_$func_tr_sh_result" dlprefile_dlbasename= if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # Use subshell, to avoid clobbering current variable values dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` if test -n "$dlprefile_dlname"; then func_basename "$dlprefile_dlname" dlprefile_dlbasename=$func_basename_result else # no lafile. user explicitly requested -dlpreopen . $sharedlib_from_linklib_cmd "$dlprefile" dlprefile_dlbasename=$sharedlib_from_linklib_result fi fi $opt_dry_run || { if test -n "$dlprefile_dlbasename"; then eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' else func_warning "Could not compute DLL name from $name" eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" } else # not an import lib $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } fi ;; *) $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } ;; esac done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi func_show_eval '$RM "${nlist}I"' if test -n "$global_symbol_to_import"; then eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I' fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[];\ " if test -s "$nlist"I; then echo >> "$output_objdir/$my_dlsyms" "\ static void lt_syminit(void) { LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols; for (; symbol->name; ++symbol) {" $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms" echo >> "$output_objdir/$my_dlsyms" "\ } }" fi echo >> "$output_objdir/$my_dlsyms" "\ LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = { {\"$my_originator\", (void *) 0}," if test -s "$nlist"I; then echo >> "$output_objdir/$my_dlsyms" "\ {\"@INIT@\", (void *) <_syminit}," fi case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) $my_pic_p && pic_flag_for_symtable=" $pic_flag" ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"' # Transform the symbol file into the correct name. symfileobj=$output_objdir/${my_outputname}S.$objext case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for '$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_cygming_gnu_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is a GNU/binutils-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_gnu_implib_p () { $debug_cmd func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` test -n "$func_cygming_gnu_implib_tmp" } # func_cygming_ms_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is an MS-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_ms_implib_p () { $debug_cmd func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` test -n "$func_cygming_ms_implib_tmp" } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $debug_cmd win32_libid_type=unknown win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then case $nm_interface in "MS dumpbin") if func_cygming_ms_implib_p "$1" || func_cygming_gnu_implib_p "$1" then win32_nmres=import else win32_nmres= fi ;; *) func_to_tool_file "$1" func_convert_file_msys_to_w32 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ s|.*|import| p q } }'` ;; esac case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_cygming_dll_for_implib ARG # # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib () { $debug_cmd sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` } # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs # # The is the core of a fallback implementation of a # platform-specific function to extract the name of the # DLL associated with the specified import library LIBNAME. # # SECTION_NAME is either .idata$6 or .idata$7, depending # on the platform and compiler that created the implib. # # Echos the name of the DLL associated with the # specified import library. func_cygming_dll_for_implib_fallback_core () { $debug_cmd match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` $OBJDUMP -s --section "$1" "$2" 2>/dev/null | $SED '/^Contents of section '"$match_literal"':/{ # Place marker at beginning of archive member dllname section s/.*/====MARK====/ p d } # These lines can sometimes be longer than 43 characters, but # are always uninteresting /:[ ]*file format pe[i]\{,1\}-/d /^In archive [^:]*:/d # Ensure marker is printed /^====MARK====/p # Remove all lines with less than 43 characters /^.\{43\}/!d # From remaining lines, remove first 43 characters s/^.\{43\}//' | $SED -n ' # Join marker and all lines until next marker into a single line /^====MARK====/ b para H $ b para b :para x s/\n//g # Remove the marker s/^====MARK====// # Remove trailing dots and whitespace s/[\. \t]*$// # Print /./p' | # we now have a list, one entry per line, of the stringified # contents of the appropriate section of all members of the # archive that possess that section. Heuristic: eliminate # all those that have a first or second character that is # a '.' (that is, objdump's representation of an unprintable # character.) This should work for all archives with less than # 0x302f exports -- but will fail for DLLs whose name actually # begins with a literal '.' or a single character followed by # a '.'. # # Of those that remain, print the first one. $SED -e '/^\./d;/^.\./d;q' } # func_cygming_dll_for_implib_fallback ARG # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # # This fallback implementation is for use when $DLLTOOL # does not support the --identify-strict option. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib_fallback () { $debug_cmd if func_cygming_gnu_implib_p "$1"; then # binutils import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` elif func_cygming_ms_implib_p "$1"; then # ms-generated import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` else # unknown sharedlib_from_linklib_result= fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { $debug_cmd f_ex_an_ar_dir=$1; shift f_ex_an_ar_oldlib=$1 if test yes = "$lock_old_archive_extraction"; then lockfile=$f_ex_an_ar_oldlib.lock until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done fi func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 'stat=$?; rm -f "$lockfile"; exit $stat' if test yes = "$lock_old_archive_extraction"; then $opt_dry_run || rm -f "$lockfile" fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $debug_cmd my_gentop=$1; shift my_oldlibs=${1+"$@"} my_oldobjs= my_xlib= my_xabs= my_xdir= for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib=$func_basename_result my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir=$my_gentop/$my_xlib_u func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` func_basename "$darwin_archive" darwin_base_archive=$func_basename_result darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches; do func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch" $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive" cd "unfat-$$/$darwin_base_archive-$darwin_arch" func_extract_an_archive "`pwd`" "$darwin_base_archive" cd "$darwin_curdir" $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result=$my_oldobjs } # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory where it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs 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 BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # 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 relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then file=\"\$0\"" func_quote_arg pretty "$ECHO" qECHO=$func_quote_arg_result $ECHO "\ # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } ECHO=$qECHO fi # Very basic option parsing. These options are (a) specific to # the libtool wrapper, (b) are identical between the wrapper # /script/ and the wrapper /executable/ that is used only on # windows platforms, and (c) all begin with the string "--lt-" # (application programs are unlikely to have options that match # this pattern). # # There are only two supported options: --lt-debug and # --lt-dump-script. There is, deliberately, no --lt-help. # # The first argument to this parsing function should be the # script's $0 value, followed by "$@". lt_option_debug= func_parse_lt_options () { lt_script_arg0=\$0 shift for lt_opt do case \"\$lt_opt\" in --lt-debug) lt_option_debug=1 ;; --lt-dump-script) lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` cat \"\$lt_dump_D/\$lt_dump_F\" exit 0 ;; --lt-*) \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 exit 1 ;; esac done # Print the debug banner immediately: if test -n \"\$lt_option_debug\"; then echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2 fi } # Used when --lt-debug. Prints its arguments to stdout # (redirection is the responsibility of the caller) func_lt_dump_args () { lt_dump_args_N=1; for lt_arg do \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\" lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` done } # Core function for launching the target application func_exec_program_core () { " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 } # A function to encapsulate launching the target application # Strips options in the --lt-* namespace from \$@ and # launches target application with the remaining arguments. func_exec_program () { case \" \$* \" in *\\ --lt-*) for lt_wr_arg do case \$lt_wr_arg in --lt-*) ;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; esac shift done ;; esac func_exec_program_core \${1+\"\$@\"} } # Parse options func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test yes = "$fast_install"; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else \$ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # fixup the dll searchpath if we need to. # # Fix the DLL searchpath if we need to. Do this before prepending # to shlibpath, because on Windows, both are PATH and uninstalled # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi # Export our shlibpath_var if we have one. if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #include #include #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) /* declarations of non-ANSI functions */ #if defined __MINGW32__ # ifdef __STRICT_ANSI__ int _putenv (const char *); # endif #elif defined __CYGWIN__ # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif /* #elif defined other_platform || defined ... */ #endif /* portability defines, excluding path handling macros */ #if defined _MSC_VER # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv # define S_IXUSR _S_IEXEC #elif defined __MINGW32__ # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv #elif defined __CYGWIN__ # define HAVE_SETENV # define FOPEN_WB "wb" /* #elif defined other platforms ... */ #endif #if defined PATH_MAX # define LT_PATHMAX PATH_MAX #elif defined MAXPATHLEN # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \ defined __OS2__ # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free (stale); stale = 0; } \ } while (0) #if defined LT_DEBUGWRAPPER static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_debugprintf (const char *file, int line, const char *fmt, ...); void lt_fatal (const char *file, int line, const char *message, ...); static const char *nonnull (const char *s); static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); char **prepare_spawn (char **argv); void lt_dump_script (FILE *f); EOF cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; size_t tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined HAVE_DOS_BASED_FILE_SYSTEM if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined HAVE_DOS_BASED_FILE_SYSTEM } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = (size_t) (q - p); p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (STREQ (str, pat)) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else size_t len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { size_t orig_value_len = strlen (orig_value); size_t add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ size_t len = strlen (new_value); while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[--len] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF case $host_os in mingw*) cat <<"EOF" /* Prepares an argument vector before calling spawn(). Note that spawn() does not by itself call the command interpreter (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); v.dwPlatformId == VER_PLATFORM_WIN32_NT; }) ? "cmd.exe" : "command.com"). Instead it simply concatenates the arguments, separated by ' ', and calls CreateProcess(). We must quote the arguments since Win32 CreateProcess() interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a special way: - Space and tab are interpreted as delimiters. They are not treated as delimiters if they are surrounded by double quotes: "...". - Unescaped double quotes are removed from the input. Their only effect is that within double quotes, space and tab are treated like normal characters. - Backslashes not followed by double quotes are not special. - But 2*n+1 backslashes followed by a double quote become n backslashes followed by a double quote (n >= 0): \" -> " \\\" -> \" \\\\\" -> \\" */ #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" char ** prepare_spawn (char **argv) { size_t argc; char **new_argv; size_t i; /* Count number of arguments. */ for (argc = 0; argv[argc] != NULL; argc++) ; /* Allocate new argument vector. */ new_argv = XMALLOC (char *, argc + 1); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) { const char *string = argv[i]; if (string[0] == '\0') new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) { int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); size_t length; unsigned int backslashes; const char *s; char *quoted_string; char *p; length = 0; backslashes = 0; if (quote_around) length++; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') length += backslashes + 1; length++; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) length += backslashes + 1; quoted_string = XMALLOC (char, length + 1); p = quoted_string; backslashes = 0; if (quote_around) *p++ = '"'; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') { unsigned int j; for (j = backslashes + 1; j > 0; j--) *p++ = '\\'; } *p++ = c; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) { unsigned int j; for (j = backslashes; j > 0; j--) *p++ = '\\'; *p++ = '"'; } *p = '\0'; new_argv[i] = quoted_string; } else new_argv[i] = (char *) string; } new_argv[argc] = NULL; return new_argv; } EOF ;; esac cat <<"EOF" void lt_dump_script (FILE* f) { EOF func_emit_wrapper yes | $SED -n -e ' s/^\(.\{79\}\)\(..*\)/\1\ \2/ h s/\([\\"]\)/\\\1/g s/$/\\n/ s/\([^\n]*\).*/ fputs ("\1", f);/p g D' cat <<"EOF" } EOF } # end: func_emit_cwrapperexe_src # func_win32_import_lib_p ARG # True if ARG is an import lib, as indicated by $file_magic_cmd func_win32_import_lib_p () { $debug_cmd case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in *import*) : ;; *) false ;; esac } # func_suncc_cstd_abi # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!! # Several compiler flags select an ABI that is incompatible with the # Cstd library. Avoid specifying it if any are in CXXFLAGS. func_suncc_cstd_abi () { $debug_cmd case " $compile_command " in *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*) suncc_use_cstd_abi=no ;; *) suncc_use_cstd_abi=yes ;; esac } # func_mode_link arg... func_mode_link () { $debug_cmd case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # what system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll that has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= os2dllname= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=false prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module=$wl-single_module func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test yes != "$build_libtool_libs" \ && func_fatal_configuration "cannot build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg=$1 shift func_quote_arg pretty,unquoted "$arg" qarg=$func_quote_arg_unquoted_result func_append libtool_args " $func_quote_arg_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir=$arg prev= continue ;; dlfiles|dlprefiles) $preload || { # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=: } case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test no = "$dlself"; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test dlprefiles = "$prev"; then dlself=yes elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test dlfiles = "$prev"; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols=$arg test -f "$arg" \ || func_fatal_error "symbol file '$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex=$arg prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir=$arg prev= continue ;; mllvm) # Clang does not use LLVM to link, so we can simply discard any # '-mllvm $arg' options when doing the link step. prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test none = "$pic_object" && test none = "$non_pic_object"; then func_fatal_error "cannot find name of object for '$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result if test none != "$pic_object"; then # Prepend the subdirectory the object is found in. pic_object=$xdir$pic_object if test dlfiles = "$prev"; then if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test dlprefiles = "$prev"; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg=$pic_object fi # Non-PIC object. if test none != "$non_pic_object"; then # Prepend the subdirectory the object is found in. non_pic_object=$xdir$non_pic_object # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test none = "$pic_object"; then arg=$non_pic_object fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object=$pic_object func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "'$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file '$arg' does not exist" fi arg=$save_arg prev= continue ;; os2dllname) os2dllname=$arg prev= continue ;; precious_regex) precious_files_regex=$arg prev= continue ;; release) release=-$arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test rpath = "$prev"; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds=$arg prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xassembler) func_append compiler_flags " -Xassembler $qarg" prev= func_append compile_command " -Xassembler $qarg" func_append finalize_command " -Xassembler $qarg" continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg=$arg case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "'-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test X-export-symbols = "X$arg"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname "-L" '' "$arg" if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between '-L' and '$1'" else func_fatal_error "need path for '-L' option" fi fi func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of '$dir'" dir=$absdir ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # Preserve sysroot, but never include relative directories case $dir in [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; *) func_append deplibs " -L$dir" ;; esac func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test X-lc = "X$arg" || test X-lm = "X$arg"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test X-lc = "X$arg" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*) # Do not include libc due to us having libc/libc_r. test X-lc = "X$arg" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test X-lc = "X$arg" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test X-lc = "X$arg" && continue ;; esac elif test X-lc_r = "X$arg"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -mllvm) prev=mllvm continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; # Solaris ld rejects as of 11.4. Refer to Oracle bug 22985199. -pthread) case $host in *solaris2*) ;; *) case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac ;; esac continue ;; -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module=$wl-multi_module continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "'-no-install' is ignored for $host" func_warning "assuming '-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -os2dllname) prev=os2dllname continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; =*) func_stripname '=' '' "$dir" dir=$lt_sysroot$func_stripname_result ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs func_quote_arg pretty "$flag" func_append arg " $func_quote_arg_result" func_append compiler_flags " $func_quote_arg_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs func_quote_arg pretty "$flag" func_append arg " $wl$func_quote_arg_result" func_append compiler_flags " $wl$func_quote_arg_result" func_append linker_flags " $func_quote_arg_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xassembler) prev=xassembler continue ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_arg pretty "$arg" arg=$func_quote_arg_result ;; # Flags to be passed through unchanged, with rationale: # -64, -mips[0-9] enable 64-bit mode for the SGI compiler # -r[0-9][0-9]* specify processor for the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler # +DA*, +DD* enable 64-bit mode for the HP compiler # -q* compiler args for the IBM compiler # -m*, -t[45]*, -txscale* architecture-specific flags for GCC # -F/path path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* profiling flags for GCC # -fstack-protector* stack protector flags for GCC # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization # -specs=* GCC specs files # -stdlib=* select c++ std lib with clang # -fsanitize=* Clang/GCC memory and address sanitizer # -fuse-ld=* Linker select flags for GCC # -static-* direct GCC to link specific libraries statically # -fcilkplus Cilk Plus language extension features for C/C++ # -Wa,* Pass flags directly to the assembler -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus|-Wa,*) func_quote_arg pretty "$arg" arg=$func_quote_arg_result func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" continue ;; -Z*) if test os2 = "`expr $host : '.*\(os2\)'`"; then # OS/2 uses -Zxxx to specify OS/2-specific options compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case $arg in -Zlinker | -Zstack) prev=xcompiler ;; esac continue else # Otherwise treat like 'Some other compiler flag' below func_quote_arg pretty "$arg" arg=$func_quote_arg_result fi ;; # Some other compiler flag. -* | +*) func_quote_arg pretty "$arg" arg=$func_quote_arg_result ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test none = "$pic_object" && test none = "$non_pic_object"; then func_fatal_error "cannot find name of object for '$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result test none = "$pic_object" || { # Prepend the subdirectory the object is found in. pic_object=$xdir$pic_object if test dlfiles = "$prev"; then if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test dlprefiles = "$prev"; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg=$pic_object } # Non-PIC object. if test none != "$non_pic_object"; then # Prepend the subdirectory the object is found in. non_pic_object=$xdir$non_pic_object # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test none = "$pic_object"; then arg=$non_pic_object fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object=$pic_object func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "'$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. func_append deplibs " $arg" func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. func_resolve_sysroot "$arg" if test dlfiles = "$prev"; then # This library was specified with -dlopen. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test dlprefiles = "$prev"; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_arg pretty "$arg" arg=$func_quote_arg_result ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the '$prevarg' option requires an argument" if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname=$func_basename_result libobjs_save=$libobjs if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" # Definition is injected by LT_CONFIG during libtool generation. func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH" func_dirname "$output" "/" "" output_objdir=$func_dirname_result$objdir func_to_tool_file "$output_objdir/" tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_preserve_dup_deps; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test lib = "$linkmode"; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can '-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=false newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test lib,link = "$linkmode,$pass"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs=$tmp_deplibs fi if test lib,link = "$linkmode,$pass" || test prog,scan = "$linkmode,$pass"; then libs=$deplibs deplibs= fi if test prog = "$linkmode"; then case $pass in dlopen) libs=$dlfiles ;; dlpreopen) libs=$dlprefiles ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test lib,dlpreopen = "$linkmode,$pass"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs=$dlprefiles fi if test dlopen = "$pass"; then # Collect dlpreopened libraries save_deplibs=$deplibs deplibs= fi for deplib in $libs; do lib= found=false case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test lib = "$linkmode"; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test lib != "$linkmode" && test prog != "$linkmode"; then func_warning "'-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test lib = "$linkmode"; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib=$searchdir/lib$name$search_ext if test -f "$lib"; then if test .la = "$search_ext"; then found=: else found=false fi break 2 fi done done if $found; then # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll=$l done if test "X$ll" = "X$old_library"; then # only static version available found=false func_dirname "$lib" "" "." ladir=$func_dirname_result lib=$ladir/$old_library if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi else # deplib doesn't seem to be a libtool library if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" fi continue fi ;; # -l *.ltframework) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test lib = "$linkmode"; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test conv = "$pass" && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test conv = "$pass"; then deplibs="$deplib $deplibs" continue fi if test scan = "$pass"; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "'-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test link = "$pass"; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test conv = "$pass"; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=false case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=: fi ;; pass_all) valid_a_lib=: ;; esac if $valid_a_lib; then echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" else echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because the file extensions .$libext of this argument makes me believe" echo "*** that it is just a static archive that I should not use here." fi ;; esac continue ;; prog) if test link != "$pass"; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test conv = "$pass"; then deplibs="$deplib $deplibs" elif test prog = "$linkmode"; then if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=: continue ;; esac # case $deplib $found || test -f "$lib" \ || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'" # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "'$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir=$func_dirname_result dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test lib,link = "$linkmode,$pass" || test prog,scan = "$linkmode,$pass" || { test prog != "$linkmode" && test lib != "$linkmode"; }; then test -n "$dlopen" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test conv = "$pass"; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for '$lib'" fi # It is a libtool convenience library, so add in its objects. func_append convenience " $ladir/$objdir/$old_library" func_append old_convenience " $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done elif test prog != "$linkmode" && test lib != "$linkmode"; then func_fatal_error "'$lib' is not a convenience library" fi continue fi # $pass = conv # Get the name of the library we link against. linklib= if test -n "$old_library" && { test yes = "$prefer_static_libs" || test built,no = "$prefer_static_libs,$installed"; }; then linklib=$old_library else for l in $old_library $library_names; do linklib=$l done fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for '$lib'" fi # This library was specified with -dlopen. if test dlopen = "$pass"; then test -z "$libdir" \ && func_fatal_error "cannot -dlopen a convenience library: '$lib'" if test -z "$dlname" || test yes != "$dlopen_support" || test no = "$build_libtool_libs" then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. func_append dlprefiles " $lib $dependency_libs" else func_append newdlfiles " $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of '$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir=$ladir fi ;; esac func_basename "$lib" laname=$func_basename_result # Find the relevant object directory and library name. if test yes = "$installed"; then if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library '$lib' was moved." dir=$ladir absdir=$abs_ladir libdir=$abs_ladir else dir=$lt_sysroot$libdir absdir=$lt_sysroot$libdir fi test yes = "$hardcode_automatic" && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir=$ladir absdir=$abs_ladir # Remove this search path later func_append notinst_path " $abs_ladir" else dir=$ladir/$objdir absdir=$abs_ladir/$objdir # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test dlpreopen = "$pass"; then if test -z "$libdir" && test prog = "$linkmode"; then func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'" fi case $host in # special handling for platforms with PE-DLLs. *cygwin* | *mingw* | *cegcc* ) # Linker will automatically link against shared library if both # static and shared are present. Therefore, ensure we extract # symbols from the import library if a shared library is present # (otherwise, the dlopen module name will be incorrect). We do # this by putting the import library name into $newdlprefiles. # We recover the dlopen module name by 'saving' the la file # name in a special purpose variable, and (later) extracting the # dlname from the la file. if test -n "$dlname"; then func_tr_sh "$dir/$linklib" eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" func_append newdlprefiles " $dir/$linklib" else func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" fi ;; * ) # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then func_append newdlprefiles " $dir/$dlname" else func_append newdlprefiles " $dir/$linklib" fi ;; esac fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test lib = "$linkmode"; then deplibs="$dir/$old_library $deplibs" elif test prog,link = "$linkmode,$pass"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test prog = "$linkmode" && test link != "$pass"; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=false if test no != "$link_all_deplibs" || test -z "$library_names" || test no = "$build_libtool_libs"; then linkalldeplibs=: fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if $linkalldeplibs; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test prog,link = "$linkmode,$pass"; then if test -n "$library_names" && { { test no = "$prefer_static_libs" || test built,yes = "$prefer_static_libs,$installed"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then # Make sure the rpath contains only unique directories. case $temp_rpath: in *"$absdir:"*) ;; *) func_append temp_rpath "$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if $alldeplibs && { test pass_all = "$deplibs_check_method" || { test yes = "$build_libtool_libs" && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test built = "$use_static_libs" && test yes = "$installed"; then use_static_libs=no fi if test -n "$library_names" && { test no = "$use_static_libs" || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc* | *os2*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test no = "$installed"; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule= for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule=$dlpremoduletest break fi done if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then echo if test prog = "$linkmode"; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test lib = "$linkmode" && test yes = "$hardcode_into_libs"; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname=$1 shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname=$dlname elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc* | *os2*) func_arith $current - $age major=$func_arith_result versuffix=-$major ;; esac eval soname=\"$soname_spec\" else soname=$realname fi # Make a new name for the extract_expsyms_cmds to use soroot=$soname func_basename "$soroot" soname=$func_basename_result func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from '$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for '$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test prog = "$linkmode" || test relink != "$opt_mode"; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test no = "$hardcode_direct"; then add=$dir/$linklib case $host in *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;; *-*-sysv4*uw2*) add_dir=-L$dir ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir=-L$dir ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we cannot # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library"; then echo echo "*** And there doesn't seem to be a static archive available" echo "*** The link will probably fail, sorry" else add=$dir/$old_library fi elif test -n "$old_library"; then add=$dir/$old_library fi fi esac elif test no = "$hardcode_minus_L"; then case $host in *-*-sunos*) add_shlibpath=$dir ;; esac add_dir=-L$dir add=-l$name elif test no = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name else lib_linked=no fi ;; relink) if test yes = "$hardcode_direct" && test no = "$hardcode_direct_absolute"; then add=$dir/$linklib elif test yes = "$hardcode_minus_L"; then add_dir=-L$absdir # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add=-l$name elif test yes = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name else lib_linked=no fi ;; *) lib_linked=no ;; esac if test yes != "$lib_linked"; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test prog = "$linkmode"; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test yes != "$hardcode_direct" && test yes != "$hardcode_minus_L" && test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test prog = "$linkmode" || test relink = "$opt_mode"; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test yes = "$hardcode_direct" && test no = "$hardcode_direct_absolute"; then add=$libdir/$linklib elif test yes = "$hardcode_minus_L"; then add_dir=-L$libdir add=-l$name elif test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add=-l$name elif test yes = "$hardcode_automatic"; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib"; then add=$inst_prefix_dir$libdir/$linklib else add=$libdir/$linklib fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir=-L$libdir # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add=-l$name fi if test prog = "$linkmode"; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test prog = "$linkmode"; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test unsupported != "$hardcode_direct"; then test -n "$old_library" && linklib=$old_library compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test yes = "$build_libtool_libs"; then # Not a shared library if test pass_all != "$deplibs_check_method"; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo $ECHO "*** Warning: This system cannot link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test yes = "$module"; then echo "*** But as you try to build a module library, libtool will still create " echo "*** a static module, that should work as long as the dlopening application" echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using 'nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** 'nm' from GNU binutils and a full rebuild may help." fi if test no = "$build_old_libs"; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test lib = "$linkmode"; then if test -n "$dependency_libs" && { test yes != "$hardcode_into_libs" || test yes = "$build_old_libs" || test yes = "$link_static"; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs=$temp_deplibs fi func_append newlib_search_path " $absdir" # Link against this library test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result";; *) func_resolve_sysroot "$deplib" ;; esac if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi func_append tmp_libs " $func_resolve_sysroot_result" done if test no != "$link_all_deplibs"; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path=$deplib ;; *.la) func_resolve_sysroot "$deplib" deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of '$dir'" absdir=$dir fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names"; then for tmp in $deplibrary_names; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl"; then depdepl=$absdir/$objdir/$depdepl darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl" func_append linker_flags " -dylib_file $darwin_install_name:$depdepl" path= fi fi ;; *) path=-L$absdir/$objdir ;; esac else eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "'$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "'$deplib' seems to be moved" path=-L$absdir fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test link = "$pass"; then if test prog = "$linkmode"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs=$newdependency_libs if test dlpreopen = "$pass"; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test dlopen != "$pass"; then test conv = "$pass" || { # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= } if test prog,link = "$linkmode,$pass"; then vars="compile_deplibs finalize_deplibs" else vars=deplibs fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Add Sun CC postdeps if required: test CXX = "$tagname" && { case $host_os in linux*) case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C++ 5.9 func_suncc_cstd_abi if test no != "$suncc_use_cstd_abi"; then func_append postdeps ' -library=Cstd -library=Crun' fi ;; esac ;; solaris*) func_cc_basename "$CC" case $func_cc_basename_result in CC* | sunCC*) func_suncc_cstd_abi if test no != "$suncc_use_cstd_abi"; then func_append postdeps ' -library=Cstd -library=Crun' fi ;; esac ;; esac } # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i= ;; esac if test -n "$i"; then func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test prog = "$linkmode"; then dlfiles=$newdlfiles fi if test prog = "$linkmode" || test lib = "$linkmode"; then dlprefiles=$newdlprefiles fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then func_warning "'-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "'-l' and '-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "'-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "'-R' is ignored for archives" test -n "$vinfo" && \ func_warning "'-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "'-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "'-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs=$output func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form 'libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test no = "$module" \ && func_fatal_help "libtool library '$output' must begin with 'lib'" if test no != "$need_lib_prefix"; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test pass_all != "$deplibs_check_method"; then func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs" else echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test no = "$dlself" \ || func_warning "'-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test 1 -lt "$#" \ && func_warning "ignoring multiple '-rpath's for a libtool library" install_libdir=$1 oldlibs= if test -z "$rpath"; then if test yes = "$build_libtool_libs"; then # Building a libtool convenience library. # Some compilers have problems with a '.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "'-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "'-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs=$IFS; IFS=: set dummy $vinfo 0 0 0 shift IFS=$save_ifs test -n "$7" && \ func_fatal_help "too many parameters to '-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major=$1 number_minor=$2 number_revision=$3 # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # that has an extra 1 added just for fun # case $version_type in # correct linux to gnu/linux during the next big refactor darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_revision ;; freebsd-aout|qnx|sunos) current=$number_major revision=$number_minor age=0 ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_minor lt_irix_increment=no ;; *) func_fatal_configuration "$modename: unknown library version type '$version_type'" ;; esac ;; no) current=$1 revision=$2 age=$3 ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT '$current' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION '$revision' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE '$age' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE '$age' is greater than the current interface number '$current'" func_fatal_error "'$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" # On Darwin other compilers case $CC in nagfor*) verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" ;; *) verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; esac ;; freebsd-aout) major=.$current versuffix=.$current.$revision ;; freebsd-elf | midnightbsd-elf) func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision ;; irix | nonstopux) if test no = "$lt_irix_increment"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring=$verstring_prefix$major.$revision # Add in all the interfaces that we are compatible with. loop=$revision while test 0 -ne "$loop"; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring=$verstring_prefix$major.$iface:$verstring done # Before this point, $major must not contain '.'. major=.$major versuffix=$major.$revision ;; linux) # correct to gnu/linux during the next big refactor func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=.$current.$age.$revision verstring=$current.$age.$revision # Add in all the interfaces that we are compatible with. loop=$age while test 0 -ne "$loop"; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring=$verstring:$iface.0 done # Make executables depend on our current version. func_append verstring ":$current.0" ;; qnx) major=.$current versuffix=.$current ;; sco) major=.$current versuffix=.$current ;; sunos) major=.$current versuffix=.$current.$revision ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 file systems. func_arith $current - $age major=$func_arith_result versuffix=-$major ;; *) func_fatal_configuration "unknown library version type '$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring=0.0 ;; esac if test no = "$need_version"; then versuffix= else versuffix=.0.0 fi fi # Remove version info from name if versioning should be avoided if test yes,no = "$avoid_version,$need_version"; then major= versuffix= verstring= fi # Check to see if the archive will have undefined symbols. if test yes = "$allow_undefined"; then if test unsupported = "$allow_undefined_flag"; then if test yes = "$build_old_libs"; then func_warning "undefined symbols not allowed in $host shared libraries; building static only" build_libtool_libs=no else func_fatal_error "can't build $host shared library unless -no-undefined is specified" fi fi else # Don't allow undefined symbols. allow_undefined_flag=$no_undefined_flag fi fi func_generate_dlsyms "$libname" "$libname" : func_append libobjs " $symfileobj" test " " = "$libobjs" && libobjs= if test relink != "$opt_mode"; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*) if test -n "$precious_files_regex"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles=$dlfiles dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) func_append dlfiles " $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles=$dlprefiles dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) func_append dlprefiles " $lib" ;; esac done if test yes = "$build_libtool_libs"; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test yes = "$build_libtool_need_lc"; then func_append deplibs " -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release= versuffix= major= newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` $nocaseglob else potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib=$potent_lib while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | $SED 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;; *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib= break 2 fi done done fi if test -n "$a_deplib"; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib"; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib= ;; esac fi if test -n "$a_deplib"; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib=$potent_lib # see symlink-check above in file_magic test if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib= break 2 fi done done fi if test -n "$a_deplib"; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib"; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs= tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test yes = "$allow_libtool_libs_with_static_runtimes"; then for i in $predeps $postdeps; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test none = "$deplibs_check_method"; then echo "*** Warning: inter-library dependencies are not supported in this platform." else echo "*** Warning: inter-library dependencies are not known to be supported." fi echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes ;; esac ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test yes = "$droppeddeps"; then if test yes = "$module"; then echo echo "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" echo "*** a static module, that should work as long as the dlopening" echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using 'nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** 'nm' from GNU binutils and a full rebuild may help." fi if test no = "$build_old_libs"; then oldlibs=$output_objdir/$libname.$libext build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." if test no = "$allow_undefined"; then echo echo "*** Since this library must not contain undefined symbols," echo "*** because either the platform does not support them or" echo "*** it was explicitly requested with -no-undefined," echo "*** libtool will only create a static version of it." if test no = "$build_old_libs"; then oldlibs=$output_objdir/$libname.$libext build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done deplibs=$new_libs # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test yes = "$build_libtool_libs"; then # Remove $wl instances when linking with ld. # FIXME: should test the right _cmds variable. case $archive_cmds in *\$LD\ *) wl= ;; esac if test yes = "$hardcode_into_libs"; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath=$finalize_rpath test relink = "$opt_mode" || rpath=$compile_rpath$rpath for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then func_replace_sysroot "$libdir" libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath=$finalize_shlibpath test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname=$1 shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname=$realname fi if test -z "$dlname"; then dlname=$soname fi lib=$output_objdir/$realname linknames= for link do func_append linknames " $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols=$output_objdir/$libname.uexp func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile func_dll_def_p "$export_symbols" || { # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols=$export_symbols export_symbols= always_export_symbols=yes } fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for '$libname.la'" export_symbols=$output_objdir/$libname.exp $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs=$IFS; IFS='~' for cmd1 in $cmds; do IFS=$save_ifs # Take the normal branch if the nm_file_list_spec branch # doesn't work or if tool conversion is not needed. case $nm_file_list_spec~$to_tool_file_cmd in *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) try_normal_branch=yes eval cmd=\"$cmd1\" func_len " $cmd" len=$func_len_result ;; *) try_normal_branch=no ;; esac if test yes = "$try_normal_branch" \ && { test "$len" -lt "$max_cmd_len" \ || test "$max_cmd_len" -le -1; } then func_show_eval "$cmd" 'exit $?' skipped_export=false elif test -n "$nm_file_list_spec"; then func_basename "$output" output_la=$func_basename_result save_libobjs=$libobjs save_output=$output output=$output_objdir/$output_la.nm func_to_tool_file "$output" libobjs=$nm_file_list_spec$func_to_tool_file_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' output=$save_output libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS=$save_ifs if test -n "$export_symbols_regex" && test : != "$skipped_export"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols=$export_symbols test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test : != "$skipped_export" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for '$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands, which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs=$tmp_deplibs if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test yes = "$compiler_needs_object" && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $convenience func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test relink = "$opt_mode"; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test yes = "$module" && test -n "$module_cmds"; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test : != "$skipped_export" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then output=$output_objdir/$output_la.lnkscript func_verbose "creating GNU ld script: $output" echo 'INPUT (' > $output for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done echo ')' >> $output func_append delfiles " $output" func_to_tool_file "$output" output=$func_to_tool_file_result elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then output=$output_objdir/$output_la.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test yes = "$compiler_needs_object"; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done func_append delfiles " $output" func_to_tool_file "$output" output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-$k.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test -z "$objlist" || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test 1 -eq "$k"; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-$k.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-$k.$objext objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi func_append delfiles " $output" else output= fi ${skipped_export-false} && { func_verbose "generating symbol list for '$libname.la'" export_symbols=$output_objdir/$libname.exp $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi } test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs=$IFS; IFS='~' for cmd in $concat_cmds; do IFS=$save_ifs $opt_quiet || { func_quote_arg expand,pretty "$cmd" eval "func_echo $func_quote_arg_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test relink = "$opt_mode"; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS=$save_ifs if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi ${skipped_export-false} && { if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols=$export_symbols test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for '$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands, which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi } libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test yes = "$module" && test -n "$module_cmds"; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs=$IFS; IFS='~' for cmd in $cmds; do IFS=$sp$nl eval cmd=\"$cmd\" IFS=$save_ifs $opt_quiet || { func_quote_arg expand,pretty "$cmd" eval "func_echo $func_quote_arg_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test relink = "$opt_mode"; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS=$save_ifs # Restore the uninstalled library and exit if test relink = "$opt_mode"; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test yes = "$module" || test yes = "$export_dynamic"; then # On all known operating systems, these are identical. dlname=$soname fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then func_warning "'-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "'-l' and '-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "'-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "'-R' is ignored for objects" test -n "$vinfo" && \ func_warning "'-version-info' is ignored for objects" test -n "$release" && \ func_warning "'-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object '$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj=$output ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # if reload_cmds runs $LD directly, get rid of -Wl from # whole_archive_flag_spec and hope we can get by with turning comma # into space. case $reload_cmds in *\$LD[\ \$]*) wl= ;; esac if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags else gentop=$output_objdir/${obj}x func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # If we're not building shared, we need to use non_pic_objs test yes = "$build_libtool_libs" || libobjs=$non_pic_objects # Create the old-style object. reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs output=$obj func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi test yes = "$build_libtool_libs" || { if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS } if test -n "$pic_flag" || test default != "$pic_mode"; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output=$libobj func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "'-version-info' is ignored for programs" test -n "$release" && \ func_warning "'-release' is ignored for programs" $preload \ && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \ && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test CXX = "$tagname"; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) func_append compile_command " $wl-bind_at_load" func_append finalize_command " $wl-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs=$new_libs func_append compile_command " $compile_deplibs" func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath=$rpath rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append finalize_perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath=$rpath if test -n "$libobjs" && test yes = "$build_old_libs"; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" false # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=: case $host in *cegcc* | *mingw32ce*) # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. wrappers_required=false ;; *cygwin* | *mingw* ) test yes = "$build_libtool_libs" || wrappers_required=false ;; *) if test no = "$need_relink" || test yes != "$build_libtool_libs"; then wrappers_required=false fi ;; esac $wrappers_required || { # Replace the output file specification. compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command=$compile_command$compile_rpath # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Delete the generated files. if test -f "$output_objdir/${outputname}S.$objext"; then func_show_eval '$RM "$output_objdir/${outputname}S.$objext"' fi exit $exit_status } if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test yes = "$no_install"; then # We don't need to create a wrapper script. link_command=$compile_var$compile_command$compile_rpath # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi exit $EXIT_SUCCESS fi case $hardcode_action,$fast_install in relink,*) # Fast installation is not supported link_command=$compile_var$compile_command$compile_rpath relink_command=$finalize_var$finalize_command$finalize_rpath func_warning "this platform does not like uninstalled shared libraries" func_warning "'$output' will be relinked during installation" ;; *,yes) link_command=$finalize_var$compile_command$finalize_rpath relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` ;; *,no) link_command=$compile_var$compile_command$compile_rpath relink_command=$finalize_var$finalize_command$finalize_rpath ;; *,needless) link_command=$finalize_var$compile_command$finalize_rpath relink_command= ;; esac # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output_objdir/$outputname" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_arg pretty "$var_value" relink_command="$var=$func_quote_arg_result; export $var; $relink_command" fi done func_quote eval cd "`pwd`" func_quote_arg pretty,unquoted "($func_quote_result; $relink_command)" relink_command=$func_quote_arg_unquoted_result fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource=$output_path/$objdir/lt-$output_name.c cwrapper=$output_path/$output_name.exe $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host"; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do case $build_libtool_libs in convenience) oldobjs="$libobjs_save $symfileobj" addlibs=$convenience build_libtool_libs=no ;; module) oldobjs=$libobjs_save addlibs=$old_convenience build_libtool_libs=no ;; *) oldobjs="$old_deplibs $non_pic_objects" $preload && test -f "$symfileobj" \ && func_append oldobjs " $symfileobj" addlibs=$old_convenience ;; esac if test -n "$addlibs"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase=$func_basename_result case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds elif test -n "$archiver_list_spec"; then func_verbose "using command file archive linking..." for obj in $oldobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > $output_objdir/$libname.libcmd func_to_tool_file "$output_objdir/$libname.libcmd" oldobjs=" $archiver_list_spec$func_to_tool_file_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj"; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test -z "$oldobjs"; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test yes = "$build_old_libs" && old_library=$libname.$libext func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_arg pretty,unquoted "$var_value" relink_command="$var=$func_quote_arg_unquoted_result; export $var; $relink_command" fi done # Quote the link command for shipping. func_quote eval cd "`pwd`" relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" func_quote_arg pretty,unquoted "$relink_command" relink_command=$func_quote_arg_unquoted_result if test yes = "$hardcode_automatic"; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test yes = "$installed"; then if test -z "$install_libdir"; then break fi output=$output_objdir/${outputname}i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name=$func_basename_result func_resolve_sysroot "$deplib" eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` test -z "$libdir" && \ func_fatal_error "'$deplib' is not a valid libtool archive" func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" ;; -L*) func_stripname -L '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -L$func_replace_sysroot_result" ;; -R*) func_stripname -R '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -R$func_replace_sysroot_result" ;; *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs=$newdependency_libs newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name=$func_basename_result eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "'$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles=$newdlfiles newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name=$func_basename_result eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "'$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles=$newdlprefiles else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles=$newdlfiles newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlprefiles " $abs" done dlprefiles=$newdlprefiles fi $RM $output # place dlname in correct position for cygwin # In fact, it would be nice if we could use this code for all target # systems that can't hard-code library paths into their executables # and that have no shared library path variable independent of PATH, # but it turns out we can't easily determine that from inspecting # libtool variables, so we have to hard-code the OSs to which it # applies here; at the moment, that means platforms that use the PE # object format with DLL files. See the long comment at the top of # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) # If a -bindir argument was supplied, place the dll there. if test -n "$bindir"; then func_relative_path "$install_libdir" "$bindir" tdlname=$func_relative_path_result/$dlname else # Otherwise fall back on heuristic. tdlname=../bin/$dlname fi ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that cannot go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test no,yes = "$installed,$need_relink"; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } if test link = "$opt_mode" || test relink = "$opt_mode"; then func_mode_link ${1+"$@"} fi # func_mode_uninstall arg... func_mode_uninstall () { $debug_cmd RM=$nonopt files= rmforce=false exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic=$magic for arg do case $arg in -f) func_append RM " $arg"; rmforce=: ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir=$func_dirname_result if test . = "$dir"; then odir=$objdir else odir=$dir/$objdir fi func_basename "$file" name=$func_basename_result test uninstall = "$opt_mode" && odir=$dir # Remember odir for removal later, being careful to avoid duplicates if test clean = "$opt_mode"; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif $rmforce; then continue fi rmfiles=$file case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case $opt_mode in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test none != "$pic_object"; then func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test none != "$non_pic_object"; then func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test clean = "$opt_mode"; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.$objext" if test yes = "$fast_install" && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name"; then func_append rmfiles " $odir/lt-$noexename.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the $objdir's in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then func_mode_uninstall ${1+"$@"} fi test -z "$opt_mode" && { help=$generic_help func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode '$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # where we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: Gyoto-2.0.2/m4/000077500000000000000000000000001455254334400131455ustar00rootroot00000000000000Gyoto-2.0.2/m4/ax_append_compile_flags.m4000066400000000000000000000056541455254334400202440ustar00rootroot00000000000000# =========================================================================== # http://www.gnu.org/software/autoconf-archive/ax_append_compile_flags.html # =========================================================================== # # SYNOPSIS # # AX_APPEND_COMPILE_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS], [INPUT]) # # DESCRIPTION # # For every FLAG1, FLAG2 it is checked whether the compiler works with the # flag. If it does, the flag is added FLAGS-VARIABLE # # If FLAGS-VARIABLE is not specified, the current language's flags (e.g. # CFLAGS) is used. During the check the flag is always added to the # current language's flags. # # If EXTRA-FLAGS is defined, it is added to the current language's default # flags (e.g. CFLAGS) when the check is done. The check is thus made with # the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to # force the compiler to issue an error when a bad flag is given. # # INPUT gives an alternative input source to AC_COMPILE_IFELSE. # # NOTE: This macro depends on the AX_APPEND_FLAG and # AX_CHECK_COMPILE_FLAG. Please keep this macro in sync with # AX_APPEND_LINK_FLAGS. # # LICENSE # # Copyright (c) 2011 Maarten Bosmans # # 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 . # # As a special exception, the respective Autoconf Macro's copyright owner # gives unlimited permission to copy, distribute and modify the configure # scripts that are the output of Autoconf when processing the Macro. You # need not follow the terms of the GNU General Public License when using # or distributing such scripts, even though portions of the text of the # Macro appear in them. The GNU General Public License (GPL) does govern # all other use of the material that constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the Autoconf # Macro released by the Autoconf Archive. When you make and distribute a # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. #serial 5 AC_DEFUN([AX_APPEND_COMPILE_FLAGS], [AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG]) AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) for flag in $1; do AX_CHECK_COMPILE_FLAG([$flag], [AX_APPEND_FLAG([$flag], [$2])], [], [$3], [$4]) done ])dnl AX_APPEND_COMPILE_FLAGS Gyoto-2.0.2/m4/ax_append_flag.m4000066400000000000000000000053311455254334400163410ustar00rootroot00000000000000# =========================================================================== # http://www.gnu.org/software/autoconf-archive/ax_append_flag.html # =========================================================================== # # SYNOPSIS # # AX_APPEND_FLAG(FLAG, [FLAGS-VARIABLE]) # # DESCRIPTION # # FLAG is appended to the FLAGS-VARIABLE shell variable, with a space # added in between. # # If FLAGS-VARIABLE is not specified, the current language's flags (e.g. # CFLAGS) is used. FLAGS-VARIABLE is not changed if it already contains # FLAG. If FLAGS-VARIABLE is unset in the shell, it is set to exactly # FLAG. # # NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. # # LICENSE # # Copyright (c) 2008 Guido U. Draheim # Copyright (c) 2011 Maarten Bosmans # # 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 . # # As a special exception, the respective Autoconf Macro's copyright owner # gives unlimited permission to copy, distribute and modify the configure # scripts that are the output of Autoconf when processing the Macro. You # need not follow the terms of the GNU General Public License when using # or distributing such scripts, even though portions of the text of the # Macro appear in them. The GNU General Public License (GPL) does govern # all other use of the material that constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the Autoconf # Macro released by the Autoconf Archive. When you make and distribute a # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. #serial 6 AC_DEFUN([AX_APPEND_FLAG], [dnl AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_SET_IF AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])]) AS_VAR_SET_IF(FLAGS,[ AS_CASE([" AS_VAR_GET(FLAGS) "], [*" $1 "*], [AC_RUN_LOG([: FLAGS already contains $1])], [ AS_VAR_APPEND(FLAGS,[" $1"]) AC_RUN_LOG([: FLAGS="$FLAGS"]) ]) ], [ AS_VAR_SET(FLAGS,[$1]) AC_RUN_LOG([: FLAGS="$FLAGS"]) ]) AS_VAR_POPDEF([FLAGS])dnl ])dnl AX_APPEND_FLAG Gyoto-2.0.2/m4/ax_append_link_flags.m4000066400000000000000000000055701455254334400175460ustar00rootroot00000000000000# =========================================================================== # http://www.gnu.org/software/autoconf-archive/ax_append_link_flags.html # =========================================================================== # # SYNOPSIS # # AX_APPEND_LINK_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS], [INPUT]) # # DESCRIPTION # # For every FLAG1, FLAG2 it is checked whether the linker works with the # flag. If it does, the flag is added FLAGS-VARIABLE # # If FLAGS-VARIABLE is not specified, the linker's flags (LDFLAGS) is # used. During the check the flag is always added to the linker's flags. # # If EXTRA-FLAGS is defined, it is added to the linker's default flags # when the check is done. The check is thus made with the flags: "LDFLAGS # EXTRA-FLAGS FLAG". This can for example be used to force the linker to # issue an error when a bad flag is given. # # INPUT gives an alternative input source to AC_COMPILE_IFELSE. # # NOTE: This macro depends on the AX_APPEND_FLAG and AX_CHECK_LINK_FLAG. # Please keep this macro in sync with AX_APPEND_COMPILE_FLAGS. # # LICENSE # # Copyright (c) 2011 Maarten Bosmans # # 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 . # # As a special exception, the respective Autoconf Macro's copyright owner # gives unlimited permission to copy, distribute and modify the configure # scripts that are the output of Autoconf when processing the Macro. You # need not follow the terms of the GNU General Public License when using # or distributing such scripts, even though portions of the text of the # Macro appear in them. The GNU General Public License (GPL) does govern # all other use of the material that constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the Autoconf # Macro released by the Autoconf Archive. When you make and distribute a # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. #serial 5 AC_DEFUN([AX_APPEND_LINK_FLAGS], [AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) for flag in $1; do AX_CHECK_LINK_FLAG([$flag], [AX_APPEND_FLAG([$flag], [m4_default([$2], [LDFLAGS])])], [], [$3], [$4]) done ])dnl AX_APPEND_LINK_FLAGS Gyoto-2.0.2/m4/ax_check_compile_flag.m4000066400000000000000000000062511455254334400176610ustar00rootroot00000000000000# =========================================================================== # http://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html # =========================================================================== # # SYNOPSIS # # AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS]) # # DESCRIPTION # # Check whether the given FLAG works with the current language's compiler # or gives an error. (Warnings, however, are ignored) # # ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on # success/failure. # # If EXTRA-FLAGS is defined, it is added to the current language's default # flags (e.g. CFLAGS) when the check is done. The check is thus made with # the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to # force the compiler to issue an error when a bad flag is given. # # NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this # macro in sync with AX_CHECK_{PREPROC,LINK}_FLAG. # # LICENSE # # Copyright (c) 2008 Guido U. Draheim # Copyright (c) 2011 Maarten Bosmans # # 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 . # # As a special exception, the respective Autoconf Macro's copyright owner # gives unlimited permission to copy, distribute and modify the configure # scripts that are the output of Autoconf when processing the Macro. You # need not follow the terms of the GNU General Public License when using # or distributing such scripts, even though portions of the text of the # Macro appear in them. The GNU General Public License (GPL) does govern # all other use of the material that constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the Autoconf # Macro released by the Autoconf Archive. When you make and distribute a # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. #serial 2 AC_DEFUN([AX_CHECK_COMPILE_FLAG], [AC_PREREQ(2.59)dnl for _AC_LANG_PREFIX AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [ ax_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $4 $1" AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [AS_VAR_SET(CACHEVAR,[yes])], [AS_VAR_SET(CACHEVAR,[no])]) _AC_LANG_PREFIX[]FLAGS=$ax_check_save_flags]) AS_IF([test x"AS_VAR_GET(CACHEVAR)" = xyes], [m4_default([$2], :)], [m4_default([$3], :)]) AS_VAR_POPDEF([CACHEVAR])dnl ])dnl AX_CHECK_COMPILE_FLAGS Gyoto-2.0.2/m4/ax_check_link_flag.m4000066400000000000000000000061551455254334400171710ustar00rootroot00000000000000# =========================================================================== # http://www.gnu.org/software/autoconf-archive/ax_check_link_flag.html # =========================================================================== # # SYNOPSIS # # AX_CHECK_LINK_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT]) # # DESCRIPTION # # Check whether the given FLAG works with the linker or gives an error. # (Warnings, however, are ignored) # # ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on # success/failure. # # If EXTRA-FLAGS is defined, it is added to the linker's default flags # when the check is done. The check is thus made with the flags: "LDFLAGS # EXTRA-FLAGS FLAG". This can for example be used to force the linker to # issue an error when a bad flag is given. # # INPUT gives an alternative input source to AC_LINK_IFELSE. # # NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this # macro in sync with AX_CHECK_{PREPROC,COMPILE}_FLAG. # # LICENSE # # Copyright (c) 2008 Guido U. Draheim # Copyright (c) 2011 Maarten Bosmans # # 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 . # # As a special exception, the respective Autoconf Macro's copyright owner # gives unlimited permission to copy, distribute and modify the configure # scripts that are the output of Autoconf when processing the Macro. You # need not follow the terms of the GNU General Public License when using # or distributing such scripts, even though portions of the text of the # Macro appear in them. The GNU General Public License (GPL) does govern # all other use of the material that constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the Autoconf # Macro released by the Autoconf Archive. When you make and distribute a # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. #serial 4 AC_DEFUN([AX_CHECK_LINK_FLAG], [AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_ldflags_$4_$1])dnl AC_CACHE_CHECK([whether the linker accepts $1], CACHEVAR, [ ax_check_save_flags=$LDFLAGS LDFLAGS="$LDFLAGS $4 $1" AC_LINK_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])], [AS_VAR_SET(CACHEVAR,[yes])], [AS_VAR_SET(CACHEVAR,[no])]) LDFLAGS=$ax_check_save_flags]) AS_VAR_IF(CACHEVAR,yes, [m4_default([$2], :)], [m4_default([$3], :)]) AS_VAR_POPDEF([CACHEVAR])dnl ])dnl AX_CHECK_LINK_FLAGS Gyoto-2.0.2/m4/ax_cxx_compile_stdcxx_11.m4000066400000000000000000000112751455254334400203150ustar00rootroot00000000000000# ============================================================================ # http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html # ============================================================================ # # SYNOPSIS # # AX_CXX_COMPILE_STDCXX_11([ext|noext],[mandatory|optional]) # # DESCRIPTION # # Check for baseline language coverage in the compiler for the C++11 # standard; if necessary, add switches to CXXFLAGS to enable support. # # The first argument, if specified, indicates whether you insist on an # extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g. # -std=c++11). If neither is specified, you get whatever works, with # preference for an extended mode. # # The second argument, if specified 'mandatory' or if left unspecified, # indicates that baseline C++11 support is required and that the macro # should error out if no mode with that support is found. If specified # 'optional', then configuration proceeds regardless, after defining # HAVE_CXX11 if and only if a supporting mode is found. # # LICENSE # # Copyright (c) 2008 Benjamin Kosnik # Copyright (c) 2012 Zack Weinberg # Copyright (c) 2013 Roy Stogner # Copyright (c) 2014 Alexey Sokolov # # 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 any # warranty. #serial 4 m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [[ template struct check { static_assert(sizeof(int) <= sizeof(T), "not big enough"); }; struct Base { virtual void f() {} }; struct Child : public Base { virtual void f() override {} }; typedef check> right_angle_brackets; int a; decltype(a) b; typedef check check_type; check_type c; check_type&& cr = static_cast(c); auto d = a; auto l = [](){}; ]]) AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl m4_if([$1], [], [], [$1], [ext], [], [$1], [noext], [], [m4_fatal([invalid argument `$1' to AX_CXX_COMPILE_STDCXX_11])])dnl m4_if([$2], [], [ax_cxx_compile_cxx11_required=true], [$2], [mandatory], [ax_cxx_compile_cxx11_required=true], [$2], [optional], [ax_cxx_compile_cxx11_required=false], [m4_fatal([invalid second argument `$2' to AX_CXX_COMPILE_STDCXX_11])]) AC_LANG_PUSH([C++])dnl ac_success=no AC_CACHE_CHECK(whether $CXX supports C++11 features by default, ax_cv_cxx_compile_cxx11, [AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])], [ax_cv_cxx_compile_cxx11=yes], [ax_cv_cxx_compile_cxx11=no])]) if test x$ax_cv_cxx_compile_cxx11 = xyes; then ac_success=yes fi m4_if([$1], [noext], [], [dnl if test x$ac_success = xno; then for switch in -std=gnu++11 -std=gnu++0x; do cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch]) AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch, $cachevar, [ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $switch" AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])], [eval $cachevar=yes], [eval $cachevar=no]) CXXFLAGS="$ac_save_CXXFLAGS"]) if eval test x\$$cachevar = xyes; then CXXFLAGS="$CXXFLAGS $switch" ac_success=yes break fi done fi]) m4_if([$1], [ext], [], [dnl if test x$ac_success = xno; then for switch in -std=c++11 -std=c++0x; do cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch]) AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch, $cachevar, [ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $switch" AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])], [eval $cachevar=yes], [eval $cachevar=no]) CXXFLAGS="$ac_save_CXXFLAGS"]) if eval test x\$$cachevar = xyes; then CXXFLAGS="$CXXFLAGS $switch" ac_success=yes break fi done fi]) AC_LANG_POP([C++]) if test x$ax_cxx_compile_cxx11_required = xtrue; then if test x$ac_success = xno; then AC_MSG_ERROR([*** A compiler with support for C++11 language features is required.]) fi else if test x$ac_success = xno; then HAVE_CXX11=0 AC_MSG_NOTICE([No compiler with C++11 support was found]) else HAVE_CXX11=1 AC_DEFINE(HAVE_CXX11,1, [define if the compiler supports basic C++11 syntax]) fi AC_SUBST(HAVE_CXX11) fi ]) Gyoto-2.0.2/m4/ax_pkg_swig.m4000066400000000000000000000155441455254334400157220ustar00rootroot00000000000000# =========================================================================== # http://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html # =========================================================================== # # SYNOPSIS # # AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found]) # # DESCRIPTION # # This macro searches for a SWIG installation on your system. If found, # then SWIG is AC_SUBST'd; if not found, then $SWIG is empty. If SWIG is # found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd. # # You can use the optional first argument to check if the version of the # available SWIG is greater than or equal to the value of the argument. It # should have the format: N[.N[.N]] (N is a number between 0 and 999. Only # the first N is mandatory.) If the version argument is given (e.g. # 1.3.17), AX_PKG_SWIG checks that the swig package is this version number # or higher. # # As usual, action-if-found is executed if SWIG is found, otherwise # action-if-not-found is executed. # # In configure.in, use as: # # AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ]) # AX_SWIG_ENABLE_CXX # AX_SWIG_MULTI_MODULE_SUPPORT # AX_SWIG_PYTHON # # LICENSE # # Copyright (c) 2008 Sebastian Huber # Copyright (c) 2008 Alan W. Irwin # Copyright (c) 2008 Rafael Laboissiere # Copyright (c) 2008 Andrew Collier # Copyright (c) 2011 Murray Cumming # Copyright (c) 2015 Thibaut Paumard # # 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 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, the respective Autoconf Macro's copyright owner # gives unlimited permission to copy, distribute and modify the configure # scripts that are the output of Autoconf when processing the Macro. You # need not follow the terms of the GNU General Public License when using # or distributing such scripts, even though portions of the text of the # Macro appear in them. The GNU General Public License (GPL) does govern # all other use of the material that constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the Autoconf # Macro released by the Autoconf Archive. When you make and distribute a # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. # (Partial) History: # 2015-01-29, Thibaut Paumard: append swig3.0 to the list of # executables to try. #serial 11 AC_DEFUN([AX_PKG_SWIG],[ # Ubuntu has swig 2.0 as /usr/bin/swig2.0 # Debian has swig 3.0 as /usr/bin/swig3.0 AC_PATH_PROGS([SWIG],[swig swig4.0 swig3.0 swig2.0]) if test -z "$SWIG" ; then m4_ifval([$3],[$3],[:]) elif test -n "$1" ; then AC_MSG_CHECKING([SWIG version]) [swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`] AC_MSG_RESULT([$swig_version]) if test -n "$swig_version" ; then # Calculate the required version number components [required=$1] [required_major=`echo $required | sed 's/[^0-9].*//'`] if test -z "$required_major" ; then [required_major=0] fi [required=`echo $required | sed 's/[0-9]*[^0-9]//'`] [required_minor=`echo $required | sed 's/[^0-9].*//'`] if test -z "$required_minor" ; then [required_minor=0] fi [required=`echo $required | sed 's/[0-9]*[^0-9]//'`] [required_patch=`echo $required | sed 's/[^0-9].*//'`] if test -z "$required_patch" ; then [required_patch=0] fi # Calculate the available version number components [available=$swig_version] [available_major=`echo $available | sed 's/[^0-9].*//'`] if test -z "$available_major" ; then [available_major=0] fi [available=`echo $available | sed 's/[0-9]*[^0-9]//'`] [available_minor=`echo $available | sed 's/[^0-9].*//'`] if test -z "$available_minor" ; then [available_minor=0] fi [available=`echo $available | sed 's/[0-9]*[^0-9]//'`] [available_patch=`echo $available | sed 's/[^0-9].*//'`] if test -z "$available_patch" ; then [available_patch=0] fi # Convert the version tuple into a single number for easier comparison. # Using base 100 should be safe since SWIG internally uses BCD values # to encode its version number. required_swig_vernum=`expr $required_major \* 10000 \ \+ $required_minor \* 100 \+ $required_patch` available_swig_vernum=`expr $available_major \* 10000 \ \+ $available_minor \* 100 \+ $available_patch` if test $available_swig_vernum -lt $required_swig_vernum; then AC_MSG_WARN([SWIG version >= $1 is required. You have $swig_version.]) SWIG='' m4_ifval([$3],[$3],[]) else AC_MSG_CHECKING([for SWIG library]) SWIG_LIB=`$SWIG -swiglib` AC_MSG_RESULT([$SWIG_LIB]) m4_ifval([$2],[$2],[]) fi else AC_MSG_WARN([cannot determine SWIG version]) SWIG='' m4_ifval([$3],[$3],[]) fi fi AC_SUBST([SWIG_LIB]) ]) Gyoto-2.0.2/m4/ax_pthread.m4000066400000000000000000000303661455254334400155360ustar00rootroot00000000000000# =========================================================================== # http://www.gnu.org/software/autoconf-archive/ax_pthread.html # =========================================================================== # # SYNOPSIS # # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) # # DESCRIPTION # # This macro figures out how to build C programs using POSIX threads. It # sets the PTHREAD_LIBS output variable to the threads library and linker # flags, and the PTHREAD_CFLAGS output variable to any special C compiler # flags that are needed. (The user can also force certain compiler # flags/libs to be tested by setting these environment variables.) # # Also sets PTHREAD_CC to any special C compiler that is needed for # multi-threaded programs (defaults to the value of CC otherwise). (This # is necessary on AIX to use the special cc_r compiler alias.) # # NOTE: You are assumed to not only compile your program with these flags, # but also link it with them as well. e.g. you should link with # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS # # If you are only building threads programs, you may wish to use these # variables in your default LIBS, CFLAGS, and CC: # # LIBS="$PTHREAD_LIBS $LIBS" # CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # CC="$PTHREAD_CC" # # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name # (e.g. PTHREAD_CREATE_UNDETACHED on AIX). # # Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the # PTHREAD_PRIO_INHERIT symbol is defined when compiling with # PTHREAD_CFLAGS. # # ACTION-IF-FOUND is a list of shell commands to run if a threads library # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it # is not found. If ACTION-IF-FOUND is not specified, the default action # will define HAVE_PTHREAD. # # Please let the authors know if this macro fails on any platform, or if # you have any other suggestions or comments. This macro was based on work # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by # Alejandro Forero Cuervo to the autoconf macro repository. We are also # grateful for the helpful feedback of numerous users. # # Updated for Autoconf 2.68 by Daniel Richard G. # # LICENSE # # Copyright (c) 2008 Steven G. Johnson # Copyright (c) 2011 Daniel Richard G. # # 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 . # # As a special exception, the respective Autoconf Macro's copyright owner # gives unlimited permission to copy, distribute and modify the configure # scripts that are the output of Autoconf when processing the Macro. You # need not follow the terms of the GNU General Public License when using # or distributing such scripts, even though portions of the text of the # Macro appear in them. The GNU General Public License (GPL) does govern # all other use of the material that constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the Autoconf # Macro released by the Autoconf Archive. When you make and distribute a # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. #serial 18 AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD]) AC_DEFUN([AX_PTHREAD], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_LANG_PUSH([C]) ax_pthread_ok=no # We used to check for pthread.h first, but this fails if pthread.h # requires special compiler flags (e.g. on True64 or Sequent). # It gets checked for in the link test anyway. # First of all, check if the user has set any of the PTHREAD_LIBS, # etcetera environment variables, and if threads linking works using # them: if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS]) AC_TRY_LINK_FUNC(pthread_join, ax_pthread_ok=yes) AC_MSG_RESULT($ax_pthread_ok) if test x"$ax_pthread_ok" = xno; then PTHREAD_LIBS="" PTHREAD_CFLAGS="" fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" fi # We must check for the threads library under a number of different # names; the ordering is very important because some systems # (e.g. DEC) have both -lpthread and -lpthreads, where one of the # libraries is broken (non-POSIX). # Create a list of thread flags to try. Items starting with a "-" are # C compiler flags, and other items are library names, except for "none" # which indicates that we try without any flags at all, and "pthread-config" # which is a program returning the flags for the Pth emulation library. ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" # The ordering *is* (sometimes) important. Some notes on the # individual items follow: # pthreads: AIX (must check this before -lpthread) # none: in case threads are in libc; should be tried before -Kthread and # other compiler flags to prevent continual compiler warnings # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) # -pthreads: Solaris/gcc # -mthreads: Mingw32/gcc, Lynx/gcc # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it # doesn't hurt to check since this sometimes defines pthreads too; # also defines -D_REENTRANT) # ... -mt is also the pthreads flag for HP/aCC # pthread: Linux, etcetera # --thread-safe: KAI C++ # pthread-config: use pthread-config program (for GNU Pth library) case ${host_os} in solaris*) # On Solaris (at least, for some versions), libc contains stubbed # (non-functional) versions of the pthreads routines, so link-based # tests will erroneously succeed. (We need to link with -pthreads/-mt/ # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather # a function called by this macro, so we could check for that, but # who knows whether they'll stub that too in a future libc.) So, # we'll just look for -pthreads and -lpthread first: ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" ;; darwin*) ax_pthread_flags="-pthread $ax_pthread_flags" ;; esac if test x"$ax_pthread_ok" = xno; then for flag in $ax_pthread_flags; do case $flag in none) AC_MSG_CHECKING([whether pthreads work without any flags]) ;; -*) AC_MSG_CHECKING([whether pthreads work with $flag]) PTHREAD_CFLAGS="$flag" ;; pthread-config) AC_CHECK_PROG(ax_pthread_config, pthread-config, yes, no) if test x"$ax_pthread_config" = xno; then continue; fi PTHREAD_CFLAGS="`pthread-config --cflags`" PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" ;; *) AC_MSG_CHECKING([for the pthreads library -l$flag]) PTHREAD_LIBS="-l$flag" ;; esac save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # Check for various functions. We must include pthread.h, # since some functions may be macros. (On the Sequent, we # need a special flag -Kthread to make this header compile.) # We check for pthread_join because it is in -lpthread on IRIX # while pthread_create is in libc. We check for pthread_attr_init # due to DEC craziness with -lpthreads. We check for # pthread_cleanup_push because it is one of the few pthread # functions on Solaris that doesn't have a non-functional libc stub. # We try pthread_create on general principles. AC_LINK_IFELSE([AC_LANG_PROGRAM([#include static void routine(void *a) { a = 0; } static void *start_routine(void *a) { return a; }], [pthread_t th; pthread_attr_t attr; pthread_create(&th, 0, start_routine, 0); pthread_join(th, 0); pthread_attr_init(&attr); pthread_cleanup_push(routine, 0); pthread_cleanup_pop(0) /* ; */])], [ax_pthread_ok=yes], []) LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" AC_MSG_RESULT($ax_pthread_ok) if test "x$ax_pthread_ok" = xyes; then break; fi PTHREAD_LIBS="" PTHREAD_CFLAGS="" done fi # Various other checks: if test "x$ax_pthread_ok" = xyes; then save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. AC_MSG_CHECKING([for joinable pthread attribute]) attr_name=unknown for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], [int attr = $attr; return attr /* ; */])], [attr_name=$attr; break], []) done AC_MSG_RESULT($attr_name) if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name, [Define to necessary symbol if this constant uses a non-standard name on your system.]) fi AC_MSG_CHECKING([if more special flags are required for pthreads]) flag=no case ${host_os} in aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; osf* | hpux*) flag="-D_REENTRANT";; solaris*) if test "$GCC" = "yes"; then flag="-D_REENTRANT" else flag="-mt -D_REENTRANT" fi ;; esac AC_MSG_RESULT(${flag}) if test "x$flag" != xno; then PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" fi AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT], ax_cv_PTHREAD_PRIO_INHERIT, [ AC_LINK_IFELSE([ AC_LANG_PROGRAM([[#include ]], [[int i = PTHREAD_PRIO_INHERIT;]])], [ax_cv_PTHREAD_PRIO_INHERIT=yes], [ax_cv_PTHREAD_PRIO_INHERIT=no]) ]) AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"], AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], 1, [Have PTHREAD_PRIO_INHERIT.])) LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" # More AIX lossage: must compile with xlc_r or cc_r if test x"$GCC" != xyes; then AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC}) else PTHREAD_CC=$CC fi else PTHREAD_CC="$CC" fi AC_SUBST(PTHREAD_LIBS) AC_SUBST(PTHREAD_CFLAGS) AC_SUBST(PTHREAD_CC) # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$ax_pthread_ok" = xyes; then ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1]) : else ax_pthread_ok=no $2 fi AC_LANG_POP ])dnl AX_PTHREAD Gyoto-2.0.2/m4/ax_require_defined.m4000066400000000000000000000023011455254334400172250ustar00rootroot00000000000000# =========================================================================== # http://www.gnu.org/software/autoconf-archive/ax_require_defined.html # =========================================================================== # # SYNOPSIS # # AX_REQUIRE_DEFINED(MACRO) # # DESCRIPTION # # AX_REQUIRE_DEFINED is a simple helper for making sure other macros have # been defined and thus are available for use. This avoids random issues # where a macro isn't expanded. Instead the configure script emits a # non-fatal: # # ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found # # It's like AC_REQUIRE except it doesn't expand the required macro. # # Here's an example: # # AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) # # LICENSE # # Copyright (c) 2014 Mike Frysinger # # 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 any # warranty. #serial 1 AC_DEFUN([AX_REQUIRE_DEFINED], [dnl m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])]) ])dnl AX_REQUIRE_DEFINED Gyoto-2.0.2/m4/boost.m4000066400000000000000000001374361455254334400145530ustar00rootroot00000000000000# boost.m4: Locate Boost headers and libraries for autoconf-based projects. # Copyright (C) 2007-2011, 2014 Benoit Sigoure # # 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. # # Additional permission under section 7 of the GNU General Public # License, version 3 ("GPLv3"): # # If you convey this file as part of a work that contains a # configuration script generated by Autoconf, you may do so under # terms of your choice. # # 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 . m4_define([_BOOST_SERIAL], [m4_translit([ # serial 22 ], [# ], [])]) # Original sources can be found at http://github.com/tsuna/boost.m4 # You can fetch the latest version of the script by doing: # wget http://github.com/tsuna/boost.m4/raw/master/build-aux/boost.m4 # ------ # # README # # ------ # # This file provides several macros to use the various Boost libraries. # The first macro is BOOST_REQUIRE. It will simply check if it's possible to # find the Boost headers of a given (optional) minimum version and it will # define BOOST_CPPFLAGS accordingly. It will add an option --with-boost to # your configure so that users can specify non standard locations. # If the user's environment contains BOOST_ROOT and --with-boost was not # specified, --with-boost=$BOOST_ROOT is implicitly used. # For more README and documentation, go to http://github.com/tsuna/boost.m4 # Note: THESE MACROS ASSUME THAT YOU USE LIBTOOL. If you don't, don't worry, # simply read the README, it will show you what to do step by step. m4_pattern_forbid([^_?(BOOST|Boost)_]) # _BOOST_SED_CPP(SED-PROGRAM, PROGRAM, # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # -------------------------------------------------------- # Same as AC_EGREP_CPP, but leave the result in conftest.i. # # SED-PROGRAM is *not* overquoted, as in AC_EGREP_CPP. It is expanded # in double-quotes, so escape your double quotes. # # It could be useful to turn this into a macro which extracts the # value of any macro. m4_define([_BOOST_SED_CPP], [AC_LANG_PUSH([C++])dnl AC_LANG_PREPROC_REQUIRE()dnl AC_REQUIRE([AC_PROG_SED])dnl AC_LANG_CONFTEST([AC_LANG_SOURCE([[$2]])]) AS_IF([dnl eval is necessary to expand ac_cpp. dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell. dnl Beware of Windows end-of-lines, for instance if we are running dnl some Windows programs under Wine. In that case, boost/version.hpp dnl is certainly using "\r\n", but the regular Unix shell will only dnl strip `\n' with backquotes, not the `\r'. This results in dnl boost_cv_lib_version='1_37\r' for instance, which breaks dnl everything else. dnl Cannot use 'dnl' after [$4] because a trailing dnl may break AC_CACHE_CHECK (eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | tr -d '\r' | $SED -n -e "$1" >conftest.i 2>&1], [$3], [$4]) rm -rf conftest* AC_LANG_POP([C++])dnl ])# _BOOST_SED_CPP # BOOST_REQUIRE([VERSION], [ACTION-IF-NOT-FOUND]) # ----------------------------------------------- # Look for Boost. If version is given, it must either be a literal of the form # "X.Y.Z" where X, Y and Z are integers (the ".Z" part being optional) or a # variable "$var". # Defines the value BOOST_CPPFLAGS. This macro only checks for headers with # the required version, it does not check for any of the Boost libraries. # On # success, defines HAVE_BOOST. On failure, calls the optional # ACTION-IF-NOT-FOUND action if one was supplied. # Otherwise aborts with an error message. AC_DEFUN([BOOST_REQUIRE], [AC_REQUIRE([AC_PROG_CXX])dnl AC_REQUIRE([AC_PROG_GREP])dnl echo "$as_me: this is boost.m4[]_BOOST_SERIAL" >&AS_MESSAGE_LOG_FD boost_save_IFS=$IFS boost_version_req=$1 IFS=. set x $boost_version_req 0 0 0 IFS=$boost_save_IFS shift boost_version_req=`expr "$[1]" '*' 100000 + "$[2]" '*' 100 + "$[3]"` boost_version_req_string=$[1].$[2].$[3] AC_ARG_WITH([boost], [AS_HELP_STRING([--with-boost=DIR], [prefix of Boost $1 @<:@guess@:>@])])dnl AC_ARG_VAR([BOOST_ROOT],[Location of Boost installation])dnl # If BOOST_ROOT is set and the user has not provided a value to # --with-boost, then treat BOOST_ROOT as if it the user supplied it. if test x"$BOOST_ROOT" != x; then if test x"$with_boost" = x; then AC_MSG_NOTICE([Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT]) with_boost=$BOOST_ROOT else AC_MSG_NOTICE([Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost]) fi fi AC_SUBST([DISTCHECK_CONFIGURE_FLAGS], ["$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"])dnl boost_save_CPPFLAGS=$CPPFLAGS AC_CACHE_CHECK([for Boost headers version >= $boost_version_req_string], [boost_cv_inc_path], [boost_cv_inc_path=no AC_LANG_PUSH([C++])dnl m4_pattern_allow([^BOOST_VERSION$])dnl AC_LANG_CONFTEST([AC_LANG_PROGRAM([[#include #if !defined BOOST_VERSION # error BOOST_VERSION is not defined #elif BOOST_VERSION < $boost_version_req # error Boost headers version < $boost_version_req #endif ]])]) # If the user provided a value to --with-boost, use it and only it. case $with_boost in #( ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \ /usr/include C:/Boost/include;; #( *) set x "$with_boost/include" "$with_boost";; esac shift for boost_dir do # Without --layout=system, Boost (or at least some versions) installs # itself in /include/boost-. This inner loop helps to # find headers in such directories. # # Any ${boost_dir}/boost-x_xx directories are searched in reverse version # order followed by ${boost_dir}. The final '.' is a sentinel for # searching $boost_dir" itself. Entries are whitespace separated. # # I didn't indent this loop on purpose (to avoid over-indented code) boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \ && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \ && echo .` for boost_inc in $boost_layout_system_search_list do if test x"$boost_inc" != x.; then boost_inc="$boost_dir/$boost_inc" else boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list fi if test x"$boost_inc" != x; then # We are going to check whether the version of Boost installed # in $boost_inc is usable by running a compilation that # #includes it. But if we pass a -I/some/path in which Boost # is not installed, the compiler will just skip this -I and # use other locations (either from CPPFLAGS, or from its list # of system include directories). As a result we would use # header installed on the machine instead of the /some/path # specified by the user. So in that precise case (trying # $boost_inc), make sure the version.hpp exists. # # Use test -e as there can be symlinks. test -e "$boost_inc/boost/version.hpp" || continue CPPFLAGS="$CPPFLAGS -I$boost_inc" fi AC_COMPILE_IFELSE([], [boost_cv_inc_path=yes], [boost_cv_version=no]) if test x"$boost_cv_inc_path" = xyes; then if test x"$boost_inc" != x; then boost_cv_inc_path=$boost_inc fi break 2 fi done done AC_LANG_POP([C++])dnl ]) case $boost_cv_inc_path in #( no) boost_errmsg="cannot find Boost headers version >= $boost_version_req_string" m4_if([$2], [], [AC_MSG_ERROR([$boost_errmsg])], [AC_MSG_NOTICE([$boost_errmsg])]) $2 ;;#( yes) BOOST_CPPFLAGS= ;;#( *) AC_SUBST([BOOST_CPPFLAGS], ["-I$boost_cv_inc_path"])dnl ;; esac if test x"$boost_cv_inc_path" != xno; then AC_DEFINE([HAVE_BOOST], [1], [Defined if the requested minimum BOOST version is satisfied]) AC_CACHE_CHECK([for Boost's header version], [boost_cv_lib_version], [m4_pattern_allow([^BOOST_LIB_VERSION$])dnl _BOOST_SED_CPP([/^boost-lib-version = /{s///;s/\"//g;p;q;}], [#include boost-lib-version = BOOST_LIB_VERSION], [boost_cv_lib_version=`cat conftest.i`])]) # e.g. "134" for 1_34_1 or "135" for 1_35 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'` case $boost_major_version in #( '' | *[[!0-9]]*) AC_MSG_ERROR([invalid value: boost_major_version=$boost_major_version]) ;; esac fi CPPFLAGS=$boost_save_CPPFLAGS ])# BOOST_REQUIRE # BOOST_STATIC() # -------------- # Add the "--enable-static-boost" configure argument. If this argument is given # on the command line, static versions of the libraries will be looked up. AC_DEFUN([BOOST_STATIC], [AC_ARG_ENABLE([static-boost], [AS_HELP_STRING([--enable-static-boost], [Prefer the static boost libraries over the shared ones [no]])], [enable_static_boost=yes], [enable_static_boost=no])])# BOOST_STATIC # BOOST_FIND_HEADER([HEADER-NAME], [ACTION-IF-NOT-FOUND], [ACTION-IF-FOUND]) # -------------------------------------------------------------------------- # Wrapper around AC_CHECK_HEADER for Boost headers. Useful to check for # some parts of the Boost library which are only made of headers and don't # require linking (such as Boost.Foreach). # # Default ACTION-IF-NOT-FOUND: Fail with a fatal error unless Boost couldn't be # found in the first place, in which case by default a notice is issued to the # user. Presumably if we haven't died already it's because it's OK to not have # Boost, which is why only a notice is issued instead of a hard error. # # Default ACTION-IF-FOUND: define the preprocessor symbol HAVE_ in # case of success # (where HEADER-NAME is written LIKE_THIS, e.g., # HAVE_BOOST_FOREACH_HPP). AC_DEFUN([BOOST_FIND_HEADER], [AC_REQUIRE([BOOST_REQUIRE])dnl if test x"$boost_cv_inc_path" = xno; then m4_default([$2], [AC_MSG_NOTICE([Boost not available, not searching for $1])]) else AC_LANG_PUSH([C++])dnl boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" AC_CHECK_HEADER([$1], [m4_default([$3], [AC_DEFINE(AS_TR_CPP([HAVE_$1]), [1], [Define to 1 if you have <$1>])])], [m4_default([$2], [AC_MSG_ERROR([cannot find $1])])]) CPPFLAGS=$boost_save_CPPFLAGS AC_LANG_POP([C++])dnl fi ])# BOOST_FIND_HEADER # BOOST_FIND_LIBS([COMPONENT-NAME], [CANDIDATE-LIB-NAMES], # [PREFERRED-RT-OPT], [HEADER-NAME], [CXX-TEST], # [CXX-PROLOGUE]) # -------------------------------------------------------------- # Look for the Boost library COMPONENT-NAME (e.g., `thread', for # libboost_thread) under the possible CANDIDATE-LIB-NAMES (e.g., # "thread_win32 thread"). Check that HEADER-NAME works and check that # libboost_LIB-NAME can link with the code CXX-TEST. The optional # argument CXX-PROLOGUE can be used to include some C++ code before # the `main' function. # # Invokes BOOST_FIND_HEADER([HEADER-NAME]) (see above). # # Boost libraries typically come compiled with several flavors (with different # runtime options) so PREFERRED-RT-OPT is the preferred suffix. A suffix is one # or more of the following letters: sgdpn (in that order). s = static # runtime, d = debug build, g = debug/diagnostic runtime, p = STLPort build, # n = (unsure) STLPort build without iostreams from STLPort (it looks like `n' # must always be used along with `p'). Additionally, PREFERRED-RT-OPT can # start with `mt-' to indicate that there is a preference for multi-thread # builds. Some sample values for PREFERRED-RT-OPT: (nothing), mt, d, mt-d, gdp # ... If you want to make sure you have a specific version of Boost # (eg, >= 1.33) you *must* invoke BOOST_REQUIRE before this macro. AC_DEFUN([BOOST_FIND_LIBS], [AC_REQUIRE([BOOST_REQUIRE])dnl AC_REQUIRE([_BOOST_FIND_COMPILER_TAG])dnl AC_REQUIRE([BOOST_STATIC])dnl AC_REQUIRE([_BOOST_GUESS_WHETHER_TO_USE_MT])dnl if test x"$boost_cv_inc_path" = xno; then AC_MSG_NOTICE([Boost not available, not searching for the Boost $1 library]) else dnl The else branch is huge and wasn't intended on purpose. AC_LANG_PUSH([C++])dnl AS_VAR_PUSHDEF([Boost_lib], [boost_cv_lib_$1])dnl AS_VAR_PUSHDEF([Boost_lib_LDFLAGS], [boost_cv_lib_$1_LDFLAGS])dnl AS_VAR_PUSHDEF([Boost_lib_LDPATH], [boost_cv_lib_$1_LDPATH])dnl AS_VAR_PUSHDEF([Boost_lib_LIBS], [boost_cv_lib_$1_LIBS])dnl BOOST_FIND_HEADER([$4]) boost_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" AC_CACHE_CHECK([for the Boost $1 library], [Boost_lib], [_BOOST_FIND_LIBS($@)]) case $Boost_lib in #( (no) _AC_MSG_LOG_CONFTEST AC_MSG_ERROR([cannot find the flags to link with Boost $1]) ;; esac AC_SUBST(AS_TR_CPP([BOOST_$1_LDFLAGS]), [$Boost_lib_LDFLAGS])dnl AC_SUBST(AS_TR_CPP([BOOST_$1_LDPATH]), [$Boost_lib_LDPATH])dnl AC_SUBST([BOOST_LDPATH], [$Boost_lib_LDPATH])dnl AC_SUBST(AS_TR_CPP([BOOST_$1_LIBS]), [$Boost_lib_LIBS])dnl CPPFLAGS=$boost_save_CPPFLAGS AS_VAR_POPDEF([Boost_lib])dnl AS_VAR_POPDEF([Boost_lib_LDFLAGS])dnl AS_VAR_POPDEF([Boost_lib_LDPATH])dnl AS_VAR_POPDEF([Boost_lib_LIBS])dnl AC_LANG_POP([C++])dnl fi ]) # BOOST_FIND_LIB([LIB-NAME], # [PREFERRED-RT-OPT], [HEADER-NAME], [CXX-TEST], # [CXX-PROLOGUE]) # -------------------------------------------------------------- # Backward compatibility wrapper for BOOST_FIND_LIBS. AC_DEFUN([BOOST_FIND_LIB], [BOOST_FIND_LIBS([$1], $@)]) # _BOOST_FIND_LIBS([LIB-NAME], [CANDIDATE-LIB-NAMES], # [PREFERRED-RT-OPT], [HEADER-NAME], [CXX-TEST], # [CXX-PROLOGUE]) # -------------------------------------------------------------- # Real implementation of BOOST_FIND_LIBS: rely on these local macros: # Boost_lib, Boost_lib_LDFLAGS, Boost_lib_LDPATH, Boost_lib_LIBS # # The algorithm is as follows: first look for a given library name # according to the user's PREFERRED-RT-OPT. For each library name, we # prefer to use the ones that carry the tag (toolset name). Each # library is searched through the various standard paths were Boost is # usually installed. If we can't find the standard variants, we try # to enforce -mt (for instance on MacOSX, libboost_thread.dylib # doesn't exist but there's -obviously- libboost_thread-mt.dylib). AC_DEFUN([_BOOST_FIND_LIBS], [Boost_lib=no case "$3" in #( (mt | mt-) boost_mt=-mt; boost_rtopt=;; #( (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X$3" : 'Xmt-*\(.*\)'`;; #( (*) boost_mt=; boost_rtopt=$3;; esac if test $enable_static_boost = yes; then boost_rtopt="s$boost_rtopt" fi # Find the proper debug variant depending on what we've been asked to find. case $boost_rtopt in #( (*d*) boost_rt_d=$boost_rtopt;; #( (*[[sgpn]]*) # Insert the `d' at the right place (in between `sg' and `pn') boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( (*) boost_rt_d='-d';; esac # If the PREFERRED-RT-OPT are not empty, prepend a `-'. test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" $boost_guess_use_mt && boost_mt=-mt # Look for the abs path the static archive. # $libext is computed by Libtool but let's make sure it's non empty. test -z "$libext" && AC_MSG_ERROR([the libext variable is empty, did you invoke Libtool?]) boost_save_ac_objext=$ac_objext # Generate the test file. AC_LANG_CONFTEST([AC_LANG_PROGRAM([#include <$4> $6], [$5])]) dnl Optimization hacks: compiling C++ is slow, especially with Boost. What dnl we're trying to do here is guess the right combination of link flags dnl (LIBS / LDFLAGS) to use a given library. This can take several dnl iterations before it succeeds and is thus *very* slow. So what we do dnl instead is that we compile the code first (and thus get an object file, dnl typically conftest.o). Then we try various combinations of link flags dnl until we succeed to link conftest.o in an executable. The problem is dnl that the various TRY_LINK / COMPILE_IFELSE macros of Autoconf always dnl remove all the temporary files including conftest.o. So the trick here dnl is to temporarily change the value of ac_objext so that conftest.o is dnl preserved accross tests. This is obviously fragile and I will burn in dnl hell for not respecting Autoconf's documented interfaces, but in the dnl mean time, it optimizes the macro by a factor of 5 to 30. dnl Another small optimization: the first argument of AC_COMPILE_IFELSE left dnl empty because the test file is generated only once above (before we dnl start the for loops). AC_COMPILE_IFELSE([], [ac_objext=do_not_rm_me_plz], [AC_MSG_ERROR([cannot compile a test that uses Boost $1])]) ac_objext=$boost_save_ac_objext boost_failed_libs= # Don't bother to ident the following nested for loops, only the 2 # innermost ones matter. for boost_lib_ in $2; do for boost_tag_ in -$boost_cv_lib_tag ''; do for boost_ver_ in -$boost_cv_lib_version ''; do for boost_mt_ in $boost_mt -mt ''; do for boost_rtopt_ in $boost_rtopt '' -d; do for boost_lib in \ boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \ boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \ boost_$boost_lib_$boost_tag_$boost_ver_ do # Avoid testing twice the same lib case $boost_failed_libs in #( (*@$boost_lib@*) continue;; esac # If with_boost is empty, we'll search in /lib first, which is not quite # right so instead we'll try to a location based on where the headers are. boost_tmp_lib=$with_boost test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} for boost_ldpath in "$boost_tmp_lib/lib" '' \ /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ "$with_boost" C:/Boost/lib /lib* do # Don't waste time with directories that don't exist. if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then continue fi boost_save_LDFLAGS=$LDFLAGS # Are we looking for a static library? case $boost_ldpath:$boost_rtopt_ in #( (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) Boost_lib_LIBS="$boost_ldpath/lib$boost_lib.$libext" test -e "$Boost_lib_LIBS" || continue;; #( (*) # No: use -lboost_foo to find the shared library. Boost_lib_LIBS="-l$boost_lib";; esac boost_save_LIBS=$LIBS LIBS="$Boost_lib_LIBS $LIBS" test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" dnl First argument of AC_LINK_IFELSE left empty because the test file is dnl generated only once above (before we start the for loops). _BOOST_AC_LINK_IFELSE([], [Boost_lib=yes], [Boost_lib=no]) ac_objext=$boost_save_ac_objext LDFLAGS=$boost_save_LDFLAGS LIBS=$boost_save_LIBS if test x"$Boost_lib" = xyes; then # Check or used cached result of whether or not using -R or # -rpath makes sense. Some implementations of ld, such as for # Mac OSX, require -rpath but -R is the flag known to work on # other systems. https://github.com/tsuna/boost.m4/issues/19 AC_CACHE_VAL([boost_cv_rpath_link_ldflag], [case $boost_ldpath in '') # Nothing to do. boost_cv_rpath_link_ldflag= boost_rpath_link_ldflag_found=yes;; *) for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" LIBS="$boost_save_LIBS $Boost_lib_LIBS" _BOOST_AC_LINK_IFELSE([], [boost_rpath_link_ldflag_found=yes break], [boost_rpath_link_ldflag_found=no]) done ;; esac AS_IF([test "x$boost_rpath_link_ldflag_found" != "xyes"], [AC_MSG_ERROR([Unable to determine whether to use -R or -rpath])]) LDFLAGS=$boost_save_LDFLAGS LIBS=$boost_save_LIBS ]) test x"$boost_ldpath" != x && Boost_lib_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" Boost_lib_LDPATH="$boost_ldpath" break 7 else boost_failed_libs="$boost_failed_libs@$boost_lib@" fi done done done done done done done # boost_lib_ rm -f conftest.$ac_objext ]) # --------------------------------------- # # Checks for the various Boost libraries. # # --------------------------------------- # # List of boost libraries: http://www.boost.org/libs/libraries.htm # The page http://beta.boost.org/doc/libs is useful: it gives the first release # version of each library (among other things). # BOOST_DEFUN(LIBRARY, CODE) # -------------------------- # Define BOOST_ as a macro that runs CODE. # # Use indir to avoid the warning on underquoted macro name given to AC_DEFUN. m4_define([BOOST_DEFUN], [m4_indir([AC_DEFUN], m4_toupper([BOOST_$1]), [m4_pushdef([BOOST_Library], [$1])dnl $2 m4_popdef([BOOST_Library])dnl ]) ]) # BOOST_ARRAY() # ------------- # Look for Boost.Array BOOST_DEFUN([Array], [BOOST_FIND_HEADER([boost/array.hpp])]) # BOOST_ASIO() # ------------ # Look for Boost.Asio (new in Boost 1.35). BOOST_DEFUN([Asio], [AC_REQUIRE([BOOST_SYSTEM])dnl BOOST_FIND_HEADER([boost/asio.hpp])]) # BOOST_BIND() # ------------ # Look for Boost.Bind. BOOST_DEFUN([Bind], [BOOST_FIND_HEADER([boost/bind.hpp])]) # BOOST_CHRONO() # -------------- # Look for Boost.Chrono. BOOST_DEFUN([Chrono], [# Do we have to check for Boost.System? This link-time dependency was # added as of 1.35.0. If we have a version <1.35, we must not attempt to # find Boost.System as it didn't exist by then. if test $boost_major_version -ge 135; then BOOST_SYSTEM([$1]) fi # end of the Boost.System check. boost_filesystem_save_LIBS=$LIBS boost_filesystem_save_LDFLAGS=$LDFLAGS m4_pattern_allow([^BOOST_SYSTEM_(LIBS|LDFLAGS)$])dnl LIBS="$LIBS $BOOST_SYSTEM_LIBS" LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS" BOOST_FIND_LIB([chrono], [$1], [boost/chrono.hpp], [boost::chrono::thread_clock d;]) if test $enable_static_boost = yes && test $boost_major_version -ge 135; then BOOST_FILESYSTEM_LIBS="$BOOST_FILESYSTEM_LIBS $BOOST_SYSTEM_LIBS" fi LIBS=$boost_filesystem_save_LIBS LDFLAGS=$boost_filesystem_save_LDFLAGS ])# BOOST_CHRONO # BOOST_CONVERSION() # ------------------ # Look for Boost.Conversion (cast / lexical_cast) BOOST_DEFUN([Conversion], [BOOST_FIND_HEADER([boost/cast.hpp]) BOOST_FIND_HEADER([boost/lexical_cast.hpp]) ])# BOOST_CONVERSION # BOOST_CRC() # ----------- # Look for Boost.CRC BOOST_DEFUN([CRC], [BOOST_FIND_HEADER([boost/crc.hpp]) ])# BOOST_CRC # BOOST_DATE_TIME([PREFERRED-RT-OPT]) # ----------------------------------- # Look for Boost.Date_Time. For the documentation of PREFERRED-RT-OPT, see the # documentation of BOOST_FIND_LIB above. BOOST_DEFUN([Date_Time], [BOOST_FIND_LIB([date_time], [$1], [boost/date_time/posix_time/posix_time.hpp], [boost::posix_time::ptime t;]) ])# BOOST_DATE_TIME # BOOST_FILESYSTEM([PREFERRED-RT-OPT]) # ------------------------------------ # Look for Boost.Filesystem. For the documentation of PREFERRED-RT-OPT, see # the documentation of BOOST_FIND_LIB above. # Do not check for boost/filesystem.hpp because this file was introduced in # 1.34. BOOST_DEFUN([Filesystem], [# Do we have to check for Boost.System? This link-time dependency was # added as of 1.35.0. If we have a version <1.35, we must not attempt to # find Boost.System as it didn't exist by then. if test $boost_major_version -ge 135; then BOOST_SYSTEM([$1]) fi # end of the Boost.System check. boost_filesystem_save_LIBS=$LIBS boost_filesystem_save_LDFLAGS=$LDFLAGS m4_pattern_allow([^BOOST_SYSTEM_(LIBS|LDFLAGS)$])dnl LIBS="$LIBS $BOOST_SYSTEM_LIBS" LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS" BOOST_FIND_LIB([filesystem], [$1], [boost/filesystem/path.hpp], [boost::filesystem::path p;]) if test $enable_static_boost = yes && test $boost_major_version -ge 135; then BOOST_FILESYSTEM_LIBS="$BOOST_FILESYSTEM_LIBS $BOOST_SYSTEM_LIBS" fi LIBS=$boost_filesystem_save_LIBS LDFLAGS=$boost_filesystem_save_LDFLAGS ])# BOOST_FILESYSTEM # BOOST_FLYWEIGHT() # ----------------- # Look for Boost.Flyweight. BOOST_DEFUN([Flyweight], [dnl There's a hidden dependency on pthreads. AC_REQUIRE([_BOOST_PTHREAD_FLAG])dnl BOOST_FIND_HEADER([boost/flyweight.hpp]) AC_SUBST([BOOST_FLYWEIGHT_LIBS], [$boost_cv_pthread_flag]) ]) # BOOST_FOREACH() # --------------- # Look for Boost.Foreach. BOOST_DEFUN([Foreach], [BOOST_FIND_HEADER([boost/foreach.hpp])]) # BOOST_FORMAT() # -------------- # Look for Boost.Format. # Note: we can't check for boost/format/format_fwd.hpp because the header isn't # standalone. It can't be compiled because it triggers the following error: # boost/format/detail/config_macros.hpp:88: error: 'locale' in namespace 'std' # does not name a type BOOST_DEFUN([Format], [BOOST_FIND_HEADER([boost/format.hpp])]) # BOOST_FUNCTION() # ---------------- # Look for Boost.Function BOOST_DEFUN([Function], [BOOST_FIND_HEADER([boost/function.hpp])]) # BOOST_GEOMETRY() # ---------------- # Look for Boost.Geometry (new since 1.47.0). BOOST_DEFUN([Geometry], [BOOST_FIND_HEADER([boost/geometry.hpp]) ])# BOOST_GEOMETRY # BOOST_GRAPH([PREFERRED-RT-OPT]) # ------------------------------- # Look for Boost.Graphs. For the documentation of PREFERRED-RT-OPT, see the # documentation of BOOST_FIND_LIB above. BOOST_DEFUN([Graph], [BOOST_FIND_LIB([graph], [$1], [boost/graph/adjacency_list.hpp], [boost::adjacency_list<> g;]) ])# BOOST_GRAPH # BOOST_IOSTREAMS([PREFERRED-RT-OPT]) # ----------------------------------- # Look for Boost.IOStreams. For the documentation of PREFERRED-RT-OPT, see the # documentation of BOOST_FIND_LIB above. BOOST_DEFUN([IOStreams], [BOOST_FIND_LIB([iostreams], [$1], [boost/iostreams/device/file_descriptor.hpp], [boost::iostreams::file_descriptor fd; fd.close();]) ])# BOOST_IOSTREAMS # BOOST_HASH() # ------------ # Look for Boost.Functional/Hash BOOST_DEFUN([Hash], [BOOST_FIND_HEADER([boost/functional/hash.hpp])]) # BOOST_LAMBDA() # -------------- # Look for Boost.Lambda BOOST_DEFUN([Lambda], [BOOST_FIND_HEADER([boost/lambda/lambda.hpp])]) # BOOST_LOG([PREFERRED-RT-OPT]) # ----------------------------- # Look for Boost.Log. For the documentation of PREFERRED-RT-OPT, see the # documentation of BOOST_FIND_LIB above. BOOST_DEFUN([Log], [BOOST_FIND_LIB([log], [$1], [boost/log/core/core.hpp], [boost::log::attribute a; a.get_value();]) ])# BOOST_LOG # BOOST_LOG_SETUP([PREFERRED-RT-OPT]) # ----------------------------------- # Look for Boost.Log. For the documentation of PREFERRED-RT-OPT, see the # documentation of BOOST_FIND_LIB above. BOOST_DEFUN([Log_Setup], [AC_REQUIRE([BOOST_LOG])dnl BOOST_FIND_LIB([log_setup], [$1], [boost/log/utility/setup/from_settings.hpp], [boost::log::basic_settings bs; bs.empty();]) ])# BOOST_LOG_SETUP # BOOST_MATH() # ------------ # Look for Boost.Math # TODO: This library isn't header-only but it comes in multiple different # flavors that don't play well with BOOST_FIND_LIB (e.g, libboost_math_c99, # libboost_math_c99f, libboost_math_c99l, libboost_math_tr1, # libboost_math_tr1f, libboost_math_tr1l). This macro must be fixed to do the # right thing anyway. BOOST_DEFUN([Math], [BOOST_FIND_HEADER([boost/math/special_functions.hpp])]) # BOOST_MPI([PREFERRED-RT-OPT]) # ------------------------------- # Look for Boost MPI. For the documentation of PREFERRED-RT-OPT, see the # documentation of BOOST_FIND_LIB above. Uses MPICXX variable if it is # set, otherwise tries CXX # BOOST_DEFUN([MPI], [boost_save_CXX=${CXX} boost_save_CXXCPP=${CXXCPP} if test x"${MPICXX}" != x; then CXX=${MPICXX} CXXCPP="${MPICXX} -E" fi BOOST_FIND_LIB([mpi], [$1], [boost/mpi.hpp], [int argc = 0; char **argv = 0; boost::mpi::environment env(argc,argv);]) CXX=${boost_save_CXX} CXXCPP=${boost_save_CXXCPP} ])# BOOST_MPI # BOOST_MULTIARRAY() # ------------------ # Look for Boost.MultiArray BOOST_DEFUN([MultiArray], [BOOST_FIND_HEADER([boost/multi_array.hpp])]) # BOOST_NUMERIC_UBLAS() # -------------------------- # Look for Boost.NumericUblas (Basic Linear Algebra) BOOST_DEFUN([Numeric_Ublas], [BOOST_FIND_HEADER([boost/numeric/ublas/vector.hpp]) ])# BOOST_NUMERIC_UBLAS # BOOST_NUMERIC_CONVERSION() # -------------------------- # Look for Boost.NumericConversion (policy-based numeric conversion) BOOST_DEFUN([Numeric_Conversion], [BOOST_FIND_HEADER([boost/numeric/conversion/converter.hpp]) ])# BOOST_NUMERIC_CONVERSION # BOOST_OPTIONAL() # ---------------- # Look for Boost.Optional BOOST_DEFUN([Optional], [BOOST_FIND_HEADER([boost/optional.hpp])]) # BOOST_PREPROCESSOR() # -------------------- # Look for Boost.Preprocessor BOOST_DEFUN([Preprocessor], [BOOST_FIND_HEADER([boost/preprocessor/repeat.hpp])]) # BOOST_UNORDERED() # ----------------- # Look for Boost.Unordered BOOST_DEFUN([Unordered], [BOOST_FIND_HEADER([boost/unordered_map.hpp])]) # BOOST_UUID() # ------------ # Look for Boost.Uuid BOOST_DEFUN([Uuid], [BOOST_FIND_HEADER([boost/uuid/uuid.hpp])]) # BOOST_PROGRAM_OPTIONS([PREFERRED-RT-OPT]) # ----------------------------------------- # Look for Boost.Program_options. For the documentation of PREFERRED-RT-OPT, # see the documentation of BOOST_FIND_LIB above. BOOST_DEFUN([Program_Options], [BOOST_FIND_LIB([program_options], [$1], [boost/program_options.hpp], [boost::program_options::options_description d("test");]) ])# BOOST_PROGRAM_OPTIONS # _BOOST_PYTHON_CONFIG(VARIABLE, FLAG) # ------------------------------------ # Save VARIABLE, and define it via `python-config --FLAG`. # Substitute BOOST_PYTHON_VARIABLE. m4_define([_BOOST_PYTHON_CONFIG], [AC_SUBST([BOOST_PYTHON_$1], [`python-config --$2 2>/dev/null`])dnl boost_python_save_$1=$$1 $1="$$1 $BOOST_PYTHON_$1"]) # BOOST_PYTHON([PREFERRED-RT-OPT]) # -------------------------------- # Look for Boost.Python. For the documentation of PREFERRED-RT-OPT, # see the documentation of BOOST_FIND_LIB above. BOOST_DEFUN([Python], [_BOOST_PYTHON_CONFIG([CPPFLAGS], [includes]) _BOOST_PYTHON_CONFIG([LDFLAGS], [ldflags]) _BOOST_PYTHON_CONFIG([LIBS], [libs]) m4_pattern_allow([^BOOST_PYTHON_MODULE$])dnl BOOST_FIND_LIBS([python], [python python3], [$1], [boost/python.hpp], [], [BOOST_PYTHON_MODULE(empty) {}]) CPPFLAGS=$boost_python_save_CPPFLAGS LDFLAGS=$boost_python_save_LDFLAGS LIBS=$boost_python_save_LIBS ])# BOOST_PYTHON # BOOST_REF() # ----------- # Look for Boost.Ref BOOST_DEFUN([Ref], [BOOST_FIND_HEADER([boost/ref.hpp])]) # BOOST_REGEX([PREFERRED-RT-OPT]) # ------------------------------- # Look for Boost.Regex. For the documentation of PREFERRED-RT-OPT, see the # documentation of BOOST_FIND_LIB above. BOOST_DEFUN([Regex], [BOOST_FIND_LIB([regex], [$1], [boost/regex.hpp], [boost::regex exp("*"); boost::regex_match("foo", exp);]) ])# BOOST_REGEX # BOOST_SERIALIZATION([PREFERRED-RT-OPT]) # --------------------------------------- # Look for Boost.Serialization. For the documentation of PREFERRED-RT-OPT, see # the documentation of BOOST_FIND_LIB above. BOOST_DEFUN([Serialization], [BOOST_FIND_LIB([serialization], [$1], [boost/archive/text_oarchive.hpp], [std::ostream* o = 0; // Cheap way to get an ostream... boost::archive::text_oarchive t(*o);]) ])# BOOST_SERIALIZATION # BOOST_SIGNALS([PREFERRED-RT-OPT]) # --------------------------------- # Look for Boost.Signals. For the documentation of PREFERRED-RT-OPT, see the # documentation of BOOST_FIND_LIB above. BOOST_DEFUN([Signals], [BOOST_FIND_LIB([signals], [$1], [boost/signal.hpp], [boost::signal s;]) ])# BOOST_SIGNALS # BOOST_SIGNALS2() # ---------------- # Look for Boost.Signals2 (new since 1.39.0). BOOST_DEFUN([Signals2], [BOOST_FIND_HEADER([boost/signals2.hpp]) ])# BOOST_SIGNALS2 # BOOST_SMART_PTR() # ----------------- # Look for Boost.SmartPtr BOOST_DEFUN([Smart_Ptr], [BOOST_FIND_HEADER([boost/scoped_ptr.hpp]) BOOST_FIND_HEADER([boost/shared_ptr.hpp]) ]) # BOOST_STATICASSERT() # -------------------- # Look for Boost.StaticAssert BOOST_DEFUN([StaticAssert], [BOOST_FIND_HEADER([boost/static_assert.hpp])]) # BOOST_STRING_ALGO() # ------------------- # Look for Boost.StringAlgo BOOST_DEFUN([String_Algo], [BOOST_FIND_HEADER([boost/algorithm/string.hpp]) ]) # BOOST_SYSTEM([PREFERRED-RT-OPT]) # -------------------------------- # Look for Boost.System. For the documentation of PREFERRED-RT-OPT, see the # documentation of BOOST_FIND_LIB above. This library was introduced in Boost # 1.35.0. BOOST_DEFUN([System], [BOOST_FIND_LIB([system], [$1], [boost/system/error_code.hpp], [boost::system::error_code e; e.clear();]) ])# BOOST_SYSTEM # BOOST_TEST([PREFERRED-RT-OPT]) # ------------------------------ # Look for Boost.Test. For the documentation of PREFERRED-RT-OPT, see the # documentation of BOOST_FIND_LIB above. BOOST_DEFUN([Test], [m4_pattern_allow([^BOOST_CHECK$])dnl BOOST_FIND_LIB([unit_test_framework], [$1], [boost/test/unit_test.hpp], [BOOST_CHECK(2 == 2);], [using boost::unit_test::test_suite; test_suite* init_unit_test_suite(int argc, char ** argv) { return NULL; }]) ])# BOOST_TEST # BOOST_THREAD([PREFERRED-RT-OPT]) # --------------------------------- # Look for Boost.Thread. For the documentation of PREFERRED-RT-OPT, see the # documentation of BOOST_FIND_LIB above. BOOST_DEFUN([Thread], [dnl Having the pthread flag is required at least on GCC3 where dnl boost/thread.hpp would complain if we try to compile without dnl -pthread on GNU/Linux. AC_REQUIRE([_BOOST_PTHREAD_FLAG])dnl boost_thread_save_LIBS=$LIBS boost_thread_save_LDFLAGS=$LDFLAGS boost_thread_save_CPPFLAGS=$CPPFLAGS # Link-time dependency from thread to system was added as of 1.49.0. if test $boost_major_version -ge 149; then BOOST_SYSTEM([$1]) fi # end of the Boost.System check. m4_pattern_allow([^BOOST_SYSTEM_(LIBS|LDFLAGS)$])dnl LIBS="$LIBS $BOOST_SYSTEM_LIBS $boost_cv_pthread_flag" LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS" CPPFLAGS="$CPPFLAGS $boost_cv_pthread_flag" # When compiling for the Windows platform, the threads library is named # differently. case $host_os in (*mingw*) boost_thread_lib_ext=_win32;; esac BOOST_FIND_LIBS([thread], [thread$boost_thread_lib_ext], [$1], [boost/thread.hpp], [boost::thread t; boost::mutex m;]) BOOST_THREAD_LIBS="$BOOST_THREAD_LIBS $BOOST_SYSTEM_LIBS $boost_cv_pthread_flag" BOOST_THREAD_LDFLAGS="$BOOST_SYSTEM_LDFLAGS" BOOST_CPPFLAGS="$BOOST_CPPFLAGS $boost_cv_pthread_flag" LIBS=$boost_thread_save_LIBS LDFLAGS=$boost_thread_save_LDFLAGS CPPFLAGS=$boost_thread_save_CPPFLAGS ])# BOOST_THREAD AU_ALIAS([BOOST_THREADS], [BOOST_THREAD]) # BOOST_TOKENIZER() # ----------------- # Look for Boost.Tokenizer BOOST_DEFUN([Tokenizer], [BOOST_FIND_HEADER([boost/tokenizer.hpp])]) # BOOST_TRIBOOL() # --------------- # Look for Boost.Tribool BOOST_DEFUN([Tribool], [BOOST_FIND_HEADER([boost/logic/tribool_fwd.hpp]) BOOST_FIND_HEADER([boost/logic/tribool.hpp]) ]) # BOOST_TUPLE() # ------------- # Look for Boost.Tuple BOOST_DEFUN([Tuple], [BOOST_FIND_HEADER([boost/tuple/tuple.hpp])]) # BOOST_TYPETRAITS() # -------------------- # Look for Boost.TypeTraits BOOST_DEFUN([TypeTraits], [BOOST_FIND_HEADER([boost/type_traits.hpp])]) # BOOST_UTILITY() # --------------- # Look for Boost.Utility (noncopyable, result_of, base-from-member idiom, # etc.) BOOST_DEFUN([Utility], [BOOST_FIND_HEADER([boost/utility.hpp])]) # BOOST_VARIANT() # --------------- # Look for Boost.Variant. BOOST_DEFUN([Variant], [BOOST_FIND_HEADER([boost/variant/variant_fwd.hpp]) BOOST_FIND_HEADER([boost/variant.hpp])]) # BOOST_POINTER_CONTAINER() # ------------------------ # Look for Boost.PointerContainer BOOST_DEFUN([Pointer_Container], [BOOST_FIND_HEADER([boost/ptr_container/ptr_deque.hpp]) BOOST_FIND_HEADER([boost/ptr_container/ptr_list.hpp]) BOOST_FIND_HEADER([boost/ptr_container/ptr_vector.hpp]) BOOST_FIND_HEADER([boost/ptr_container/ptr_array.hpp]) BOOST_FIND_HEADER([boost/ptr_container/ptr_set.hpp]) BOOST_FIND_HEADER([boost/ptr_container/ptr_map.hpp]) ])# BOOST_POINTER_CONTAINER # BOOST_WAVE([PREFERRED-RT-OPT]) # ------------------------------ # NOTE: If you intend to use Wave/Spirit with thread support, make sure you # call BOOST_THREAD first. # Look for Boost.Wave. For the documentation of PREFERRED-RT-OPT, see the # documentation of BOOST_FIND_LIB above. BOOST_DEFUN([Wave], [AC_REQUIRE([BOOST_FILESYSTEM])dnl AC_REQUIRE([BOOST_DATE_TIME])dnl boost_wave_save_LIBS=$LIBS boost_wave_save_LDFLAGS=$LDFLAGS m4_pattern_allow([^BOOST_((FILE)?SYSTEM|DATE_TIME|THREAD)_(LIBS|LDFLAGS)$])dnl LIBS="$LIBS $BOOST_SYSTEM_LIBS $BOOST_FILESYSTEM_LIBS $BOOST_DATE_TIME_LIBS \ $BOOST_THREAD_LIBS" LDFLAGS="$LDFLAGS $BOOST_SYSTEM_LDFLAGS $BOOST_FILESYSTEM_LDFLAGS \ $BOOST_DATE_TIME_LDFLAGS $BOOST_THREAD_LDFLAGS" BOOST_FIND_LIB([wave], [$1], [boost/wave.hpp], [boost::wave::token_id id; get_token_name(id);]) LIBS=$boost_wave_save_LIBS LDFLAGS=$boost_wave_save_LDFLAGS ])# BOOST_WAVE # BOOST_XPRESSIVE() # ----------------- # Look for Boost.Xpressive (new since 1.36.0). BOOST_DEFUN([Xpressive], [BOOST_FIND_HEADER([boost/xpressive/xpressive.hpp])]) # ----------------- # # Internal helpers. # # ----------------- # # _BOOST_PTHREAD_FLAG() # --------------------- # Internal helper for BOOST_THREAD. Computes boost_cv_pthread_flag # which must be used in CPPFLAGS and LIBS. # # Yes, we *need* to put the -pthread thing in CPPFLAGS because with GCC3, # boost/thread.hpp will trigger a #error if -pthread isn't used: # boost/config/requires_threads.hpp:47:5: #error "Compiler threading support # is not turned on. Please set the correct command line options for # threading: -pthread (Linux), -pthreads (Solaris) or -mthreads (Mingw32)" # # Based on ACX_PTHREAD: http://autoconf-archive.cryp.to/acx_pthread.html AC_DEFUN([_BOOST_PTHREAD_FLAG], [AC_REQUIRE([AC_PROG_CXX])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_LANG_PUSH([C++])dnl AC_CACHE_CHECK([for the flags needed to use pthreads], [boost_cv_pthread_flag], [ boost_cv_pthread_flag= # The ordering *is* (sometimes) important. Some notes on the # individual items follow: # (none): in case threads are in libc; should be tried before -Kthread and # other compiler flags to prevent continual compiler warnings # -lpthreads: AIX (must check this before -lpthread) # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) # -llthread: LinuxThreads port on FreeBSD (also preferred to -pthread) # -pthread: GNU Linux/GCC (kernel threads), BSD/GCC (userland threads) # -pthreads: Solaris/GCC # -mthreads: MinGW32/GCC, Lynx/GCC # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it # doesn't hurt to check since this sometimes defines pthreads too; # also defines -D_REENTRANT) # ... -mt is also the pthreads flag for HP/aCC # -lpthread: GNU Linux, etc. # --thread-safe: KAI C++ case $host_os in #( *solaris*) # On Solaris (at least, for some versions), libc contains stubbed # (non-functional) versions of the pthreads routines, so link-based # tests will erroneously succeed. (We need to link with -pthreads/-mt/ # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather # a function called by this macro, so we could check for that, but # who knows whether they'll stub that too in a future libc.) So, # we'll just look for -pthreads and -lpthread first: boost_pthread_flags="-pthreads -lpthread -mt -pthread";; #( *) boost_pthread_flags="-lpthreads -Kthread -kthread -llthread -pthread \ -pthreads -mthreads -lpthread --thread-safe -mt";; esac # Generate the test file. AC_LANG_CONFTEST([AC_LANG_PROGRAM([#include ], [pthread_t th; pthread_join(th, 0); pthread_attr_init(0); pthread_cleanup_push(0, 0); pthread_create(0,0,0,0); pthread_cleanup_pop(0);])]) for boost_pthread_flag in '' $boost_pthread_flags; do boost_pthread_ok=false dnl Re-use the test file already generated. boost_pthreads__save_LIBS=$LIBS LIBS="$LIBS $boost_pthread_flag" AC_LINK_IFELSE([], [if grep ".*$boost_pthread_flag" conftest.err; then echo "This flag seems to have triggered warnings" >&AS_MESSAGE_LOG_FD else boost_pthread_ok=:; boost_cv_pthread_flag=$boost_pthread_flag fi]) LIBS=$boost_pthreads__save_LIBS $boost_pthread_ok && break done ]) AC_LANG_POP([C++])dnl ])# _BOOST_PTHREAD_FLAG # _BOOST_gcc_test(MAJOR, MINOR) # ----------------------------- # Internal helper for _BOOST_FIND_COMPILER_TAG. m4_define([_BOOST_gcc_test], ["defined __GNUC__ && __GNUC__ == $1 && __GNUC_MINOR__ == $2 && !defined __ICC @ gcc$1$2"])dnl # _BOOST_mingw_test(MAJOR, MINOR) # ----------------------------- # Internal helper for _BOOST_FIND_COMPILER_TAG. m4_define([_BOOST_mingw_test], ["defined __GNUC__ && __GNUC__ == $1 && __GNUC_MINOR__ == $2 && !defined __ICC && \ (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw$1$2"])dnl # _BOOST_FIND_COMPILER_TAG() # -------------------------- # Internal. When Boost is installed without --layout=system, each library # filename will hold a suffix that encodes the compiler used during the # build. The Boost build system seems to call this a `tag'. AC_DEFUN([_BOOST_FIND_COMPILER_TAG], [AC_REQUIRE([AC_PROG_CXX])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_CACHE_CHECK([for the toolset name used by Boost for $CXX], [boost_cv_lib_tag], [boost_cv_lib_tag=unknown if test x$boost_cv_inc_path != xno; then AC_LANG_PUSH([C++])dnl # The following tests are mostly inspired by boost/config/auto_link.hpp # The list is sorted to most recent/common to oldest compiler (in order # to increase the likelihood of finding the right compiler with the # least number of compilation attempt). # Beware that some tests are sensible to the order (for instance, we must # look for MinGW before looking for GCC3). # I used one compilation test per compiler with a #error to recognize # each compiler so that it works even when cross-compiling (let me know # if you know a better approach). # Known missing tags (known from Boost's tools/build/v2/tools/common.jam): # como, edg, kcc, bck, mp, sw, tru, xlc # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines # the same defines as GCC's). for i in \ _BOOST_mingw_test(4,8) \ _BOOST_gcc_test(4, 8) \ _BOOST_mingw_test(4,7) \ _BOOST_gcc_test(4, 7) \ _BOOST_mingw_test(4,6) \ _BOOST_gcc_test(4, 6) \ _BOOST_mingw_test(4,5) \ _BOOST_gcc_test(4, 5) \ _BOOST_mingw_test(4,4) \ _BOOST_gcc_test(4, 4) \ _BOOST_mingw_test(4,3) \ _BOOST_gcc_test(4, 3) \ _BOOST_mingw_test(4,2) \ _BOOST_gcc_test(4, 2) \ _BOOST_mingw_test(4,1) \ _BOOST_gcc_test(4, 1) \ _BOOST_mingw_test(4,0) \ _BOOST_gcc_test(4, 0) \ "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \ && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \ _BOOST_gcc_test(3, 4) \ _BOOST_gcc_test(3, 3) \ "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \ "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \ _BOOST_gcc_test(3, 2) \ "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \ _BOOST_gcc_test(3, 1) \ _BOOST_gcc_test(3, 0) \ "defined __BORLANDC__ @ bcb" \ "defined __ICC && (defined __unix || defined __unix__) @ il" \ "defined __ICL @ iw" \ "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \ _BOOST_gcc_test(2, 95) \ "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \ "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \ "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \ "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8" do boost_tag_test=`expr "X$i" : 'X\([[^@]]*\) @ '` boost_tag=`expr "X$i" : 'X[[^@]]* @ \(.*\)'` AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #if $boost_tag_test /* OK */ #else # error $boost_tag_test #endif ]])], [boost_cv_lib_tag=$boost_tag; break], []) done AC_LANG_POP([C++])dnl case $boost_cv_lib_tag in #( # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed # to "gcc41" for instance. *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there. gcc*) boost_tag_x= case $host_os in #( darwin*) if test $boost_major_version -ge 136; then # The `x' added in r46793 of Boost. boost_tag_x=x fi;; esac # We can specify multiple tags in this variable because it's used by # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ... boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc" ;; #( unknown) AC_MSG_WARN([[could not figure out which toolset name to use for $CXX]]) boost_cv_lib_tag= ;; esac fi])dnl end of AC_CACHE_CHECK ])# _BOOST_FIND_COMPILER_TAG # _BOOST_GUESS_WHETHER_TO_USE_MT() # -------------------------------- # Compile a small test to try to guess whether we should favor MT (Multi # Thread) flavors of Boost. Sets boost_guess_use_mt accordingly. AC_DEFUN([_BOOST_GUESS_WHETHER_TO_USE_MT], [# Check whether we do better use `mt' even though we weren't ask to. AC_LANG_PUSH([C++])dnl AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #if defined _REENTRANT || defined _MT || defined __MT__ /* use -mt */ #else # error MT not needed #endif ]])], [boost_guess_use_mt=:], [boost_guess_use_mt=false]) AC_LANG_POP([C++])dnl ]) # _BOOST_AC_LINK_IFELSE(PROGRAM, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) # ------------------------------------------------------------------- # Fork of _AC_LINK_IFELSE that preserves conftest.o across calls. Fragile, # will break when Autoconf changes its internals. Requires that you manually # rm -f conftest.$ac_objext in between to really different tests, otherwise # you will try to link a conftest.o left behind by a previous test. # Used to aggressively optimize BOOST_FIND_LIB (see the big comment in this # macro). # # Don't use "break" in the actions, as it would short-circuit some code # this macro runs after the actions. m4_define([_BOOST_AC_LINK_IFELSE], [m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl rm -f conftest$ac_exeext boost_save_ac_ext=$ac_ext boost_use_source=: # If we already have a .o, re-use it. We change $ac_ext so that $ac_link # tries to link the existing object file instead of compiling from source. test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && _AS_ECHO_LOG([re-using the existing conftest.$ac_objext]) AS_IF([_AC_DO_STDERR($ac_link) && { test -z "$ac_[]_AC_LANG_ABBREV[]_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_executable_p conftest$ac_exeext dnl FIXME: use AS_TEST_X instead when 2.61 is widespread enough. }], [$2], [if $boost_use_source; then _AC_MSG_LOG_CONFTEST fi $3]) ac_objext=$boost_save_ac_objext ac_ext=$boost_save_ac_ext dnl Delete also the IPA/IPO (Inter Procedural Analysis/Optimization) dnl information created by the PGI compiler (conftest_ipa8_conftest.oo), dnl as it would interfere with the next link command. rm -f core conftest.err conftest_ipa8_conftest.oo \ conftest$ac_exeext m4_ifval([$1], [conftest.$ac_ext])[]dnl ])# _BOOST_AC_LINK_IFELSE # Local Variables: # mode: autoconf # End: Gyoto-2.0.2/m4/gyoto.m4000066400000000000000000000124311455254334400145510ustar00rootroot00000000000000dnl Copyright 2018 Thibaut Paumard dnl dnl This file is part of Gyoto. dnl dnl Gyoto 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 Gyoto 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 Gyoto. If not, see . dnl Define a number of --with options for a given library. dnl Parameters: dnl $1: lower case name of the library. The various "with" options dnl will use it: --with-$1, --with-$1-headers and --with-$1-libs dnl $2: name of the library as known by pkg_config (think $2.pc) dnl $3: linker flag to link with this library (e.g. `-lfoo') dnl $4: set of include directives to test for this library (for AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[])) dnl $5: main body to test for this library (for AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[])) dnl $6: default for libname_headers dnl Outputs: dnl Where $1 is `libname': dnl have_libname: yes if found, no otherwise dnl with_libname: yes if required, no or probe otherwise dnl libname_headers: set of -I flags dnl libname_lib: set of -L flags dnl LIBNAME_CFLAGS: CPP flags for compiling with this library dnl LIBNAME_LIBS: linker flags to link with this library dnl Side effects: dnl also updates pkg_cflags and pkg_libs AC_DEFUN([GYOTO_ARG_LIB], [ AC_MSG_CHECKING([whether $1 should be used]) gy_headers= gy_default_cppflags=$6 gy_lib= gy_CFLAGS= gy_LIBS= gy_with=$with_$1 AC_ARG_WITH( [$1], [AS_HELP_STRING( [--with-$1[[=$1-prefix]]], [Force using $1 installed in a given prefix or force disable it.])], [ AS_IF([test "x$withval" == "xno"], [AC_MSG_RESULT(no)], [test "x$withval" != "xyes"], [gy_headers=-I$withval/include gy_lib=-L$withval/lib gy_with=yes AC_MSG_RESULT(yes)], [AC_MSG_RESULT(yes)]) ], [gy_with=check AC_MSG_RESULT(probe) ] ) gy_have=no AS_IF([test "x$gy_with" != "xno"], [ AC_MSG_CHECKING(whether $1 include path is provided) AC_ARG_WITH([$1-headers], [AS_HELP_STRING([--with-$1-headers=path], [location of $1 include files as a colon-separated path ('--with-$1-headers=/path1:...:/pathn') or list of preprocessor flags ('--with-$1-headers="-I/path1 ... -I/pathn")'])], [gy_with=yes gy_headers=${withval/:/ -I} case "x$gy_headers" in x\-I*) ;; x) ;; x*) gy_headers=-I$gy_headers ;; esac AC_MSG_RESULT([${gy_headers}])], [AC_MSG_RESULT([no])]) AC_MSG_CHECKING(whether $1 library path is provided) AC_ARG_WITH([$1-libs], [AS_HELP_STRING([--with-$1-libs=path], [location of $1 library files as a colon-separated path ('--with-$1-libs=/path1:...:/pathn') or list of preprocessor flags ('--with-$1-libs="-L/path1 ... -L/pathn")'])], [gy_with=yes gy_lib=${withval/:/ -L} case "x$gy_lib" in x\-L*) ;; x) ;; x*) gy_lib=-L$gy_lib ;; esac AC_MSG_RESULT([$gy_lib])], [AC_MSG_RESULT([no])]) # Now check whether or not to use pkg-config for this library AS_IF([test "x$gy_headers" == "x" \ && test "x$gy_lib" == "x" \ && test "x$PKG_CONFIG" != "x"], [PKG_CHECK_MODULES(translit([$1], [a-z], [A-Z]), [$2], [pkg_requires="${pkg_requires} $2" gy_have=yes ], [AC_MSG_NOTICE([$2.pc not found]) ] ) ], []) # Failing that, check without pkg-config AS_IF([test "x$gy_have" == "xno"], [AC_MSG_CHECKING([for ]translit([$1], [a-z], [A-Z])[ (without pkg-config)]) AS_IF([test "x$gy_header" == "x"], [gy_headers=$gy_default_cppflags]) TMPCPPFLAGS=$CPPFLAGS TMPCFLAGS=$CFLAGS TMPLDFLAGS=$LDFLAGS TMPLIBS=$LIBS CPPFLAGS="$TMPCPPFLAGS $gy_headers" LDFLAGS="$TMPLDFLAGS $gy_lib" LIBS=$3 AC_LINK_IFELSE([AC_LANG_PROGRAM([[$4]], [[$5]])],[gy_have=yes $1[]_headers=$gy_headers $1[]_lib=$gy_lib translit([$1], [a-z], [A-Z])[]_LIBS="$gy_lib $3" translit([$1], [a-z], [A-Z])[]_CFLAGS="$gy_headers" pkg_cflags="${pkg_cflags} ${translit([$1], [a-z], [A-Z])[]_CFLAGS}" pkg_libs="${pkg_libs} ${translit([$1], [a-z], [A-Z])[]_LIBS}" AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]) CPPFLAGS=$TMPCPPFLAGS LDFLAGS=$TMPLDFLAGS LIBS=$TMPLIBS ]) ], [] ) have_$1=$gy_have with_$1=$withval AS_IF([test "x$gy_have" == "xno"], [AS_IF([test "x$gy_with" == "xyes"], [AC_MSG_ERROR([$1 requested but not found]) ], [] ) $1[]_headers="" $1[]_lib="" translit([$1], [a-z], [A-Z])[]_LIBS="" translit([$1], [a-z], [A-Z])[]_CFLAGS="" ], [use_$1=yes AC_DEFINE([GYOTO_USE_]translit([$1], [a-z], [A-Z]), [1], [Define to 1 if you have $1]) ] ) AM_CONDITIONAL([HAVE_]translit([$1], [a-z], [A-Z]), [test "x$have_$1" == "xyes"]) AC_SUBST(translit([$1], [a-z], [A-Z])[_LIBS]) AC_SUBST(translit([$1], [a-z], [A-Z])[_CFLAGS]) ]) Gyoto-2.0.2/m4/libtool.m4000066400000000000000000011316521455254334400150640ustar00rootroot00000000000000# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software # Foundation, Inc. # Written 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. m4_define([_LT_COPYING], [dnl # 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 . ]) # serial 59 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_PREPARE_CC_BASENAME # ----------------------- m4_defun([_LT_PREPARE_CC_BASENAME], [ # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in @S|@*""; 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-%%"` } ])# _LT_PREPARE_CC_BASENAME # _LT_CC_BASENAME(CC) # ------------------- # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, # but that macro is also expanded into generated libtool script, which # arranges for $SED and $ECHO to be set by different means. m4_defun([_LT_CC_BASENAME], [m4_require([_LT_PREPARE_CC_BASENAME])dnl AC_REQUIRE([_LT_DECL_SED])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl func_cc_basename $1 cc_basename=$func_cc_basename_result ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_DECL_FILECMD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_WITH_SYSROOT])dnl m4_require([_LT_CMD_TRUNCATE])dnl _LT_CONFIG_LIBTOOL_INIT([ # 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 ]) if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl 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 and # ICC, which need '.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 _LT_CC_BASENAME([$compiler]) # 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 _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PREPARE_SED_QUOTE_VARS # -------------------------- # Define a few sed substitution that help us do robust quoting. m4_defun([_LT_PREPARE_SED_QUOTE_VARS], [# 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' ]) # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from 'configure', and 'config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # 'config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain=$ac_aux_dir/ltmain.sh ])# _LT_PROG_LTMAIN ## ------------------------------------- ## ## Accumulate code for creating libtool. ## ## ------------------------------------- ## # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the 'libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) ## ------------------------ ## ## FIXME: Eliminate VARNAME ## ## ------------------------ ## # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to 'config.status' so that its # declaration there will have the same value as in 'configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags='_LT_TAGS'dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into 'config.status', and then the shell code to quote escape them in # for loops in 'config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # 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' _LT_CONFIG_STATUS_DECLARATIONS 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 lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); 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 lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); 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 _LT_OUTPUT_LIBTOOL_INIT ]) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) # ------------------------------------ # Generate a child script FILE with all initialization necessary to # reuse the environment learned by the parent script, and make the # file executable. If COMMENT is supplied, it is inserted after the # '#!' sequence but before initialization text begins. After this # macro, additional text can be appended to FILE to form the body of # the child script. The macro ends with non-zero status if the # file could not be fully written (such as if the disk is full). m4_ifdef([AS_INIT_GENERATED], [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], [m4_defun([_LT_GENERATED_FILE_INIT], [m4_require([AS_PREPARE])]dnl [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl [lt_write_fail=0 cat >$1 <<_ASEOF || lt_write_fail=1 #! $SHELL # Generated by $as_me. $2 SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$1 <<\_ASEOF || lt_write_fail=1 AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 _ASEOF test 0 = "$lt_write_fail" && chmod +x $1[]dnl m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], [# Run this file to recreate a libtool stub with the current configuration.]) cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ '$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test 0 != $[#] do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try '$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try '$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test yes = "$silent" && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [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 _LT_COPYING _LT_LIBTOOL_TAGS # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE _LT_PREPARE_MUNGE_PATH_LIST _LT_PREPARE_CC_BASENAME # ### 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 _LT_PROG_LTMAIN # 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" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Go], [_LT_LANG(GO)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG m4_ifndef([AC_PROG_GO], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_GO. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_GO], [AC_LANG_PUSH(Go)dnl AC_ARG_VAR([GOC], [Go compiler command])dnl AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl _AC_ARG_VAR_LDFLAGS()dnl AC_CHECK_TOOL(GOC, gccgo) if test -z "$GOC"; then if test -n "$ac_tool_prefix"; then AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) fi fi if test -z "$GOC"; then AC_CHECK_PROG(GOC, gccgo, gccgo, false) fi ])#m4_defun ])#m4_ifndef # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([AC_PROG_GO], [LT_LANG(GO)], [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_RC], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # 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 ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl 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* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl 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* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [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" >&AS_MESSAGE_LOG_FD $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 >&AS_MESSAGE_LOG_FD # 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 >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS=$save_LDFLAGS ]) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], [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" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD $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 >&AS_MESSAGE_LOG_FD 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 >&AS_MESSAGE_LOG_FD fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ]) 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*) case $MACOSX_DEPLOYMENT_TARGET,$host in 10.[[012]],*|,*powerpc*-darwin[[5-8]]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; *) _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 ]) # _LT_DARWIN_LINKER_FEATURES([TAG]) # --------------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported if test yes = "$lt_cv_ld_force_load"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) else _LT_TAGVAR(whole_archive_flag_spec, $1)='' fi _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=$_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 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" _LT_TAGVAR(module_expsym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" m4_if([$1], [CXX], [ if test yes != "$lt_cv_apple_cc_single_mod"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # ---------------------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. # Store the results from the different compilers for each TAGNAME. # Allow to override them for all tags through lt_cv_aix_libpath. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed='[ /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }]' _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`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_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib fi ]) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [m4_divert_text([M4SH-INIT], [$1 ])])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Find how we can fake an echo command that does not interpret backslash. # In particular, with Autoconf 2.60 or later we add some code to the start # of the generated configure script that will find a shell with a builtin # printf (that we can use as an echo command). m4_defun([_LT_PROG_ECHO_BACKSLASH], [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # 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*) AC_MSG_RESULT([printf]) ;; print*) AC_MSG_RESULT([print -r]) ;; *) AC_MSG_RESULT([cat]) ;; esac m4_ifdef([_AS_DETECT_SUGGESTED], [_AS_DETECT_SUGGESTED([ 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" )])]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], [m4_require([_LT_DECL_SED])dnl AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], [Search for dependent libraries within DIR (or the compiler's sysroot if not specified).])], [], [with_sysroot=no]) dnl lt_sysroot will always be passed unquoted. We quote it here dnl in case the user passed a directory name. 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|'') ;; #( *) AC_MSG_RESULT([$with_sysroot]) AC_MSG_ERROR([The sysroot must be an absolute path.]) ;; esac AC_MSG_RESULT([${lt_sysroot:-no}]) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl [dependent libraries, and where our libraries should be installed.])]) # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) 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 AC_TRY_EVAL(ac_compile); then case `$FILECMD 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 AC_TRY_EVAL(ac_compile); then if test yes = "$lt_cv_prog_gnu_ld"; then case `$FILECMD conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `$FILECMD 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 AC_TRY_EVAL(ac_compile); then emul=elf case `$FILECMD conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `$FILECMD conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `$FILECMD 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 AC_TRY_EVAL(ac_compile); then case `$FILECMD conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `$FILECMD 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" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) 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 AC_TRY_EVAL(ac_compile); then case `$FILECMD 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 ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} _LT_DECL([], [AR], [1], [The archiver]) # Use ARFLAGS variable as AR's operation code to sync the variable naming with # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have # higher priority because thats what people were doing historically (setting # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS # variable obsoleted/removed. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} lt_ar_flags=$AR_FLAGS _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)]) # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override # by AR_FLAGS because that was never working and AR_FLAGS is about to die. _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}], [Flags to create an archive]) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([lt_ar_try]) if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a AC_TRY_EVAL([lt_ar_try]) if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a ]) ]) if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi _LT_DECL([], [archiver_list_spec], [1], [How to feed a file listing to the archiver]) ])# _LT_PROG_AR # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [_LT_PROG_AR AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # 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 _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) _LT_DECL([], [lock_old_archive_extraction], [0], [Whether to use a lock for old archive extraction]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" ## 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\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 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 $2=yes fi fi $RM conftest* ]) if test yes = "[$]$2"; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $3" 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>&AS_MESSAGE_LOG_FD $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS ]) if test yes = "[$]$2"; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 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* | midnightbsd* | 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 ]) if test -n "$lt_cv_sys_max_cmd_len"; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test yes = "$cross_compiling"; then : [$4] 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 AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl 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 AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; 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_CHECK_FUNC([shl_load], [lt_cv_dlopen=shl_load], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen=dlopen], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) ]) ]) ]) ]) ]) ;; 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" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) 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 _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=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\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 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_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $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* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links=nottested if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) 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 AC_MSG_RESULT([$hard_links]) if test no = "$hard_links"; then AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [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]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", [Define to the sub-directory where libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then # We can hardcode non-existent directories. if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && # 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, $1)" && test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; 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 _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -z "$STRIP"; then AC_MSG_RESULT([no]) else if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then old_striplib="$STRIP --strip-debug" striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else case $host_os in darwin*) # FIXME - insert some real tests, host_os isn't really good enough striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) ;; freebsd*) if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then old_striplib="$STRIP --strip-debug" striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_PREPARE_MUNGE_PATH_LIST # --------------------------- # Make sure func_munge_path_list() is defined correctly. m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], [[# 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@S|@2 in x) ;; *:) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" ;; x:*) eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" ;; *::*) eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" ;; *) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" ;; esac } ]])# _LT_PREPARE_PATH_LIST # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ 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 AC_ARG_VAR([LT_SYS_LIBRARY_PATH], [User-defined run-time library search path.]) 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' m4_if([$1], [],[ 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* | *,icl*) # Native MSVC or ICC 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 and ICC 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`' m4_if([$1], [],[ 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* | midnightbsd*) # 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. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-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 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], [lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [lt_cv_shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir ]) 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 AC_MSG_RESULT([$dynamic_linker]) 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 _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[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]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [install_override_mode], [1], [Permission mode override for installation of shared libraries]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], [Detected run-time system search path for libraries]) _LT_DECL([], [configure_time_lt_sys_library_path], [2], [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program that can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [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 dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$1"; then lt_cv_path_MAGIC_CMD=$ac_dir/"$1" 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]) MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program that can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PROG_ECHO_BACKSLASH])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test no = "$withval" || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) 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 AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [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 &1 conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], [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]) rm -f conftest.i conftest2.i conftest.out]) ])# _LT_PATH_DD # _LT_CMD_TRUNCATE # ---------------- # find command to truncate a binary pipe m4_defun([_LT_CMD_TRUNCATE], [m4_require([_LT_PATH_DD]) AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], [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"]) _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], [Command to truncate a binary pipe]) ])# _LT_CMD_TRUNCATE # _LT_CHECK_MAGIC_METHOD # ---------------------- # how to check for library dependencies # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_MAGIC_METHOD], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) AC_CACHE_CHECK([how to recognize dependent libraries], lt_cv_deplibs_check_method, [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='$FILECMD -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* | midnightbsd*) 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=$FILECMD 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=$FILECMD 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=$FILECMD 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 ]) 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 _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method = "file_magic"]) _LT_DECL([], [file_magic_glob], [1], [How to find potential files when deplibs_check_method = "file_magic"]) _LT_DECL([], [want_nocaseglob], [1], [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [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]) 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 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi AC_SUBST([DUMPBIN]) if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB # -------------------------------- # how to determine the name of the shared library # associated with a specific link library. # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) m4_require([_LT_DECL_DLLTOOL]) AC_CACHE_CHECK([how to associate runtime and link libraries], lt_cv_sharedlib_from_linklib_cmd, [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 ]) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO _LT_DECL([], [sharedlib_from_linklib_cmd], [1], [Command to associate shared and link libraries]) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB # _LT_PATH_MANIFEST_TOOL # ---------------------- # locate the manifest tool m4_defun([_LT_PATH_MANIFEST_TOOL], [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], [lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&AS_MESSAGE_LOG_FD if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest*]) if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl ])# _LT_PATH_MANIFEST_TOOL # _LT_DLL_DEF_P([FILE]) # --------------------- # True iff FILE is a Windows DLL '.def' file. # Keep in sync with func_dll_def_p in the libtool script AC_DEFUN([_LT_DLL_DEF_P], [dnl test DEF = "`$SED -n dnl -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl -e q dnl Only consider the first "real" line $1`" dnl ])# _LT_DLL_DEF_P # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM=-lm) ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test yes = "$GCC"; then case $cc_basename in nvcc*) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; *) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; esac _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # 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++ or ICC, # 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 AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && 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@&t@_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT@&t@_DLSYM_CONST #else # define LT@&t@_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@&t@_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_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && 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" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 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 ]) 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 AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) 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 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], [Transform the output of nm into a list of symbols to manually relocate]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) _LT_DECL([nm_interface], [lt_cv_nm_interface], [1], [The name lister interface]) _LT_DECL([], [nm_file_list_spec], [1], [Specify filename containing input files for $NM]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-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_TAGVAR(lt_prog_compiler_pic, $1)='-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 m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; 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_TAGVAR(lt_prog_compiler_pic, $1)=-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_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-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_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--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). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly* | midnightbsd*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' if test ia64 != "$host_cpu"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+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_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-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_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64, which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-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_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL 8.0, 9.0 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-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_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test yes = "$GCC"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-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_TAGVAR(lt_prog_compiler_pic, $1)='-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 m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; 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_TAGVAR(lt_prog_compiler_pic, $1)='-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_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-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). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-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_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # flang / f18. f95 an alias for gfortran or flang on Debian flang* | f18* | f95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-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_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; *Sun\ F* | *Sun*Fortran*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Intel*\ [[CF]]*Compiler*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; *Portland\ Group*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_CACHE_CHECK([for $compiler option to produce PIC], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['_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 _LT_TAGVAR(export_symbols_cmds, $1)='$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 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 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*) _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl* | icl*) _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] ;; esac ;; linux* | k*bsd*-gnu | gnu*) _LT_TAGVAR(link_all_deplibs, $1)=no ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # 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'. _LT_TAGVAR(exclude_expsyms, $1)=['_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. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++ or Intel C++ Compiler. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) _LT_TAGVAR(link_all_deplibs, $1)=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$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 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= 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 _LT_TAGVAR(ld_shlibs, $1)=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 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$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)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+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 _LT_TAGVAR(archive_cmds, $1)='$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... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$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 _LT_TAGVAR(ld_shlibs, $1)=no fi ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$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' _LT_TAGVAR(archive_expsym_cmds, $1)='$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' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$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. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(whole_archive_flag_spec, $1)='$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 _LT_TAGVAR(whole_archive_flag_spec, $1)='$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 _LT_TAGVAR(whole_archive_flag_spec, $1)= 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 _LT_TAGVAR(whole_archive_flag_spec, $1)='$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' _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='$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' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='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*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(ld_shlibs, $1)=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 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$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. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=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 _LT_TAGVAR(export_symbols_cmds, $1)='$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 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 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. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='$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. _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=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 _LT_TAGVAR(hardcode_direct, $1)=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 _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= 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 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$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. _LT_TAGVAR(always_export_symbols, $1)=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. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$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. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$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. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$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. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$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 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$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 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$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)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++ or Intel C++ Compiler. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl* | icl*) # Native MSVC or ICC _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # 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. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$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, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='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 and ICC wrapper _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=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. _LT_TAGVAR(archive_cmds, $1)='$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. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=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*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly* | midnightbsd*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$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*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ # 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) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$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. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], [lt_cv_irix_exported_symbol], [save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" AC_LINK_IFELSE( [AC_LANG_SOURCE( [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], [C++], [[int foo (void) { return 0; }]], [Fortran 77], [[ subroutine foo end]], [Fortran], [[ subroutine foo end]])])], [lt_cv_irix_exported_symbol=yes], [lt_cv_irix_exported_symbol=no]) LDFLAGS=$save_LDFLAGS]) if test yes = "$lt_cv_irix_exported_symbol"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(link_all_deplibs, $1)=no else _LT_TAGVAR(archive_cmds, $1)='$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' _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(ld_shlibs, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' ;; esac ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$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' _LT_TAGVAR(archive_expsym_cmds, $1)='$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' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' ;; osf3*) if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$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' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$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' _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test yes = "$GCC"; then wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='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='' _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='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' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=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 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=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. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$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. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test yes,yes = "$GCC,$enable_shared"; then case $_LT_TAGVAR(archive_cmds, $1) 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. AC_CACHE_CHECK([whether -lc should be explicitly linked in], [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), [$RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ]) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [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]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [postlink_cmds], [2], [Commands necessary for finishing linking programs]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC=$CC AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$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);}' _LT_TAG_COMPILER # 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 _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE ## 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_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report what library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) 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 AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC=$lt_save_CC ])# _LT_LANG_C_CONFIG # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl if test -n "$CXX" && ( test no != "$CXX" && ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || (test g++ != "$CXX"))); then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$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. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # 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 _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) 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_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test yes = "$GXX"; then # Set up default GNU C++ configuration LT_PATH_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 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$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' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$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 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= 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. _LT_TAGVAR(archive_cmds, $1)='$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 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=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. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='$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. _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=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 _LT_TAGVAR(hardcode_direct, $1)=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 _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= 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 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$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. _LT_TAGVAR(always_export_symbols, $1)=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. _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$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. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$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. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$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. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$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 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$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 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl* | ,icl* | no,icl*) # Native MSVC or ICC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # 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. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$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, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='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, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$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... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$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 _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$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' _LT_TAGVAR(archive_expsym_cmds, $1)='$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' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly* | midnightbsd*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=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 _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=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 _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$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*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$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. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$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++ _LT_TAGVAR(archive_cmds, $1)='$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. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=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. _LT_TAGVAR(archive_cmds, $1)='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' _LT_TAGVAR(archive_expsym_cmds, $1)='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"' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$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."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) _LT_TAGVAR(prelink_cmds, $1)='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`"' _LT_TAGVAR(old_archive_cmds, $1)='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' _LT_TAGVAR(archive_cmds, $1)='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' _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$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++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # 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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='$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' _LT_TAGVAR(compiler_needs_object, $1)=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. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=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*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else _LT_TAGVAR(ld_shlibs, $1)=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. _LT_TAGVAR(archive_cmds, $1)='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' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$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' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$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' _LT_TAGVAR(archive_expsym_cmds, $1)='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' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # 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 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$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' ;; *) _LT_TAGVAR(archive_cmds, $1)='$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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # 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 _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='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' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=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?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=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. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$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. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='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. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$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. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ '"$_LT_TAGVAR(old_archive_cmds, $1)" _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ '"$_LT_TAGVAR(reload_cmds, $1)" ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$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 _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(GCC, $1)=$GXX _LT_TAGVAR(LD, $1)=$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... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) 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_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_FUNC_STRIPNAME_CNF # ---------------------- # func_stripname_cnf prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # # This function is identical to the (non-XSI) version of func_stripname, # except this one can be used by m4 code that may be executed by configure, # rather than the libtool script. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl AC_REQUIRE([_LT_DECL_SED]) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) func_stripname_cnf () { case @S|@2 in .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; esac } # func_stripname_cnf ])# _LT_FUNC_STRIPNAME_CNF # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF package foo func foo() { } _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 dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); 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 "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $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 "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)=$prev$p else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $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 "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)=$p else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)=$p else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [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. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_LANG_PUSH(Fortran 77) if test -z "$F77" || test no = "$F77"; then _lt_disable_F77=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 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_disable_F77"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) 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 AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$G77 _LT_TAGVAR(LD, $1)=$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... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_F77" AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_LANG_PUSH(Fortran) if test -z "$FC" || test no = "$FC"; then _lt_disable_FC=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC 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_disable_FC"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) 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 AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu _LT_TAGVAR(LD, $1)=$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... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_FC" AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} CFLAGS=$GCJFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## 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_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_GO_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Go compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GO_CONFIG], [AC_REQUIRE([LT_PROG_GO])dnl AC_LANG_SAVE # Source file extension for Go test sources. ac_ext=go # Object file extension for compiled Go test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="package main; func main() { }" # Code to be used in simple link tests lt_simple_link_test_code='package main; func main() { }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GOC-"gccgo"} CFLAGS=$GOFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # Go did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## 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_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GO_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code=$lt_simple_compile_test_code # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC= CC=${RC-"windres"} CFLAGS= compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_GO # ---------- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) ]) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_DLLTOOL # ---------------- # Ensure DLLTOOL variable is set. m4_defun([_LT_DECL_DLLTOOL], [AC_CHECK_TOOL(DLLTOOL, dlltool, false) test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) # _LT_DECL_FILECMD # ---------------- # Check for a file(cmd) program that can be used to detect file type and magic m4_defun([_LT_DECL_FILECMD], [AC_CHECK_TOOL([FILECMD], [file], [:]) _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types]) ])# _LD_DECL_FILECMD # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f "$lt_ac_sed" && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test 10 -lt "$lt_ac_count" && break lt_ac_count=`expr $lt_ac_count + 1` if test "$lt_ac_count" -gt "$lt_ac_max"; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # 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 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PATH_CONVERSION_FUNCTIONS # ----------------------------- # Determine what file name conversion functions should be used by # func_to_host_file (and, implicitly, by func_to_host_path). These are needed # for certain cross-compile configurations and native mingw. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_MSG_CHECKING([how to convert $build file names to $host format]) AC_CACHE_VAL(lt_cv_to_host_file_cmd, [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 ]) to_host_file_cmd=$lt_cv_to_host_file_cmd AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], [0], [convert $build file names to $host format])dnl AC_MSG_CHECKING([how to convert $build file names to toolchain format]) AC_CACHE_VAL(lt_cv_to_tool_file_cmd, [#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 ]) to_tool_file_cmd=$lt_cv_to_tool_file_cmd AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], [0], [convert $build files to toolchain format])dnl ])# _LT_PATH_CONVERSION_FUNCTIONS Gyoto-2.0.2/m4/ltoptions.m4000066400000000000000000000342751455254334400154550ustar00rootroot00000000000000# Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free # Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # 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. # serial 8 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option '$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl 'shared' nor 'disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], [_LT_WITH_AIX_SONAME([aix])]) ]) ])# _LT_SET_OPTIONS ## --------------------------------- ## ## Macros to handle LT_INIT options. ## ## --------------------------------- ## # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [1], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the 'shared' and # 'disable-shared' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [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], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the 'static' and # 'disable-static' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [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], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the 'fast-install' # and 'disable-fast-install' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [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], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_AIX_SONAME([DEFAULT]) # ---------------------------------- # implement the --with-aix-soname flag, and support the `aix-soname=aix' # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. m4_define([_LT_WITH_AIX_SONAME], [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[[5-9]]*,yes) AC_MSG_CHECKING([which variant of shared library versioning to provide]) AC_ARG_WITH([aix-soname], [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], [case $withval in aix|svr4|both) ;; *) AC_MSG_ERROR([Unknown argument to --with-aix-soname]) ;; esac lt_cv_with_aix_soname=$with_aix_soname], [AC_CACHE_VAL([lt_cv_with_aix_soname], [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) with_aix_soname=$lt_cv_with_aix_soname]) AC_MSG_RESULT([$with_aix_soname]) 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 _LT_DECL([], [shared_archive_member_spec], [0], [Shared archive member basename, for filename based shared library versioning on AIX])dnl ])# _LT_WITH_AIX_SONAME LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the 'pic-only' and 'no-pic' # LT_INIT options. # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [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], [pic_mode=m4_default([$1], [default])]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) ## ----------------- ## ## LTDL_INIT Options ## ## ----------------- ## m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) Gyoto-2.0.2/m4/ltsugar.m4000066400000000000000000000104531455254334400150730ustar00rootroot00000000000000# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2022 Free Software # Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # 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. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59, which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) Gyoto-2.0.2/m4/ltversion.m4000066400000000000000000000013121455254334400154310ustar00rootroot00000000000000# ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation, # Inc. # Written by Scott James Remnant, 2004 # # 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. # @configure_input@ # serial 4245 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.4.7]) m4_define([LT_PACKAGE_REVISION], [2.4.7]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.7' macro_revision='2.4.7' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) Gyoto-2.0.2/m4/lt~obsolete.m4000066400000000000000000000140071455254334400157630ustar00rootroot00000000000000# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2022 Free # Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # 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. # serial 5 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) Gyoto-2.0.2/m4/pkg.m4000066400000000000000000000130231455254334400141670ustar00rootroot00000000000000# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) # # Copyright © 2004 Scott James Remnant . # # 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 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, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # 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. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) # only at the first occurence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have to call PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])# PKG_CHECK_MODULES Gyoto-2.0.2/m4/python.m4000066400000000000000000000537711455254334400147450ustar00rootroot00000000000000# Copyright 2012, 2013, 2014 Brandon Invergo # Copyright 2019 Thibaut Paumard # # This file is part of pyconfigure. 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. # # Under Section 7 of GPL version 3, you are granted additional # permissions described in the Autoconf Configure Script Exception, # version 3.0, as published by the Free Software Foundation. # # You should have received a copy of the GNU General Public License # and a copy of the Autoconf Configure Script Exception along with # this program; see the files COPYINGv3 and COPYING.EXCEPTION # respectively. If not, see . # Many of these macros were adapted from ones written by Andrew Dalke # and James Henstridge and are included with the Automake utility # under the following copyright terms: # # Copyright (C) 1999-2012 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. # Table of Contents: # # 1. Language selection # and routines to produce programs in a given language. # # 2. Producing programs in a given language. # # 3. Looking for a compiler # And possibly the associated preprocessor. # # 4. Looking for specific libs & functionality # 2019-10-25 Thibaut Paumard add support for --embed in Python >= 3.8 ## ----------------------- ## ## 1. Language selection. ## ## ----------------------- ## # AC_LANG(Python) # --------------- AC_LANG_DEFINE([Python], [py], [PY], [PYTHON], [], [ac_ext=py ac_compile='chmod +x conftest.$ac_ext >&AS_MESSAGE_LOG_FD' ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&AS_MESSAGE_LOG_FD' ]) # AC_LANG_PYTHON # -------------- AU_DEFUN([AC_LANG_PYTHON], [AC_LANG(Python)]) ## ----------------------- ## ## 2. Producing programs. ## ## ----------------------- ## # AC_LANG_PROGRAM(Python)([PROLOGUE], [BODY]) # ------------------------------------------- m4_define([AC_LANG_PROGRAM(Python)], [dnl @%:@!$PYTHON $1 m4_if([$2], [], [], [dnl if __name__ == '__main__': $2])]) # _AC_LANG_IO_PROGRAM(Python) # --------------------------- # Produce source that performs I/O. m4_define([_AC_LANG_IO_PROGRAM(Python)], [AC_LANG_PROGRAM([dnl import sys try: h = open('conftest.out') except: sys.exit(1) else: close(h) sys.exit(0) ], [])]) # _AC_LANG_CALL(Python)([PROLOGUE], [FUNCTION]) # --------------------- # Produce source that calls FUNCTION m4_define([_AC_LANG_CALL(Python)], [AC_LANG_PROGRAM([$1], [$2])]) ## -------------------------------------------- ## ## 3. Looking for Compilers and Interpreters. ## ## -------------------------------------------- ## AC_DEFUN([AC_LANG_COMPILER(Python)], [AC_REQUIRE([PC_PROG_PYTHON])]) # PC_INIT([MIN-VERSION], [MAX-VERSION]) # ----------------------------- # Initialize pyconfigure, finding a Python interpreter with a given # minimum and/or maximum version. AC_DEFUN([PC_INIT], [PC_PROG_PYTHON([], [$1], [$2]) dnl If we found something, do a sanity check that the interpreter really dnl has the version its name would suggest. m4_ifval([PYTHON], [PC_PYTHON_VERIFY_VERSION([>=], [pc_min_ver], [], [AC_MSG_FAILURE([No compatible Python interpreter found. If you're sure that you have one, try setting the PYTHON environment variable to the location of the interpreter.])])]) m4_ifval([PYTHON], [PC_PYTHON_VERIFY_VERSION([<=], [pc_max_ver], [], [AC_MSG_FAILURE([No compatible Python interpreter found. If you're sure that you have one, try setting the PYTHON environment variable to the location of the interpreter.])])]) ])# PC_INIT # PC_PROG_PYTHON([PROG-TO-CHECK-FOR], [MIN-VERSION], [MAX-VERSION]) # --------------------------------- # Find a Python interpreter. Python versions prior to 2.0 are not # supported. (2.0 was released on October 16, 2000). AC_DEFUN_ONCE([PC_PROG_PYTHON], [AC_ARG_VAR([PYTHON], [the Python interpreter]) dnl The default minimum version is 2.0 m4_define_default([pc_min_ver], m4_ifval([$2], [$2], [2.0])) dnl The default maximum version is 3.3 m4_define_default([pc_max_ver], m4_ifval([$3], [$3], [4.0])) dnl Build up a list of possible interpreter names. m4_define_default([_PC_PYTHON_INTERPRETER_LIST], [[python] \ dnl If we want some Python 3 versions (max version >= 3.0), dnl also search for "python3" m4_if(m4_version_compare(pc_max_ver, [2.9]), [1], [python3], []) \ dnl If we want some Python 2 versions (min version <= 2.7), dnl also search for "python2". m4_if(m4_version_compare(pc_min_ver, [2.8]), [-1], [python2], []) \ dnl Construct a comma-separated list of interpreter names (python2.6, dnl python2.7, etc). We only care about the first 3 characters of the dnl version strings (major-dot-minor; not dnl major-dot-minor-dot-bugfix[-dot-whatever]) m4_foreach([pc_ver], m4_esyscmd_s(seq -s[[", "]] -f["[[%.1f]]"] m4_substr(pc_max_ver, [0], [3]) -0.1 m4_substr(pc_min_ver, [0], [3])), dnl Remove python2.8 and python2.9 since they will never exist [m4_bmatch(pc_ver, [2.[89]], [], [python]pc_ver)])]) dnl Do the actual search at last. m4_ifval([$1], [AC_PATH_PROGS(PYTHON, [$1 _PC_PYTHON_INTERPRETER_LIST])], [AC_PATH_PROGS(PYTHON, [_PC_PYTHON_INTERPRETER_LIST])]) ])# PC_PROG_PYTHON # PC_PYTHON_PROG_PYTHON_CONFIG(PROG-TO-CHECK-FOR,EMBED) # ---------------------------------------------- # Find the python-config program # Set EMBED to 'yes' if embedding Python. AC_DEFUN([PC_PYTHON_PROG_PYTHON_CONFIG], [AC_REQUIRE([PC_PROG_PYTHON])[]dnl AC_ARG_VAR([PYTHON_CONFIG], [the Python-config program]) dnl python-config's binary name is normally based on the Python interpreter's dnl binary name (i.e. python2.7 -> python2.7-config) m4_define([_PYTHON_BASENAME], [`basename $PYTHON`]) m4_ifval([$1], [AC_PATH_PROGS(PYTHON_CONFIG, [$1 _PYTHON_BASENAME-config])], [AC_PATH_PROG(PYTHON_CONFIG, _PYTHON_BASENAME-config)]) AS_IF([test "x$2" = "xyes" && $PYTHON_CONFIG --embed], [PYTHON_EMBED_FLAG="--embed"], [PYTHON_EMBED_FLAG=""]) ]) # PC_PYTHON_PROG_PYTHON_CONFIG # PC_PYTHON_VERIFY_VERSION([RELATION], [VERSION], [ACTION-IF-TRUE], [ACTION-IF-FALSE]) # --------------------------------------------------------------------------- # Run ACTION-IF-TRUE if the Python interpreter PROG has version [RELATION] VERSION. # i.e if RELATION is "<", check if PROG has a version number less than VERSION. # Run ACTION-IF-FALSE otherwise. # Specify RELATION as any mathematical comparison "<", ">", "<=", ">=", "==" or "!=" # This test uses sys.hexversion instead of the string equivalent (first # word of sys.version), in order to cope with versions such as 2.2c1. # This supports Python 2.0 or higher. (2.0 was released on October 16, 2000). AC_DEFUN([PC_PYTHON_VERIFY_VERSION], [m4_define([pc_python_safe_ver], m4_bpatsubsts($2, [\.], [_])) AC_CACHE_CHECK([if Python $1 '$2'], [[pc_cv_python_req_version_]pc_python_safe_ver], [AC_LANG_PUSH(Python)[]dnl AC_RUN_IFELSE( [AC_LANG_PROGRAM([dnl import sys ], [dnl # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. # map returns an iterator in Python 3.0 and a list in 2.x reqver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]] reqverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(4)): reqverhex = (reqverhex << 8) + reqver[[i]] # the final 8 bits are "0xf0" for final versions, which are all # we'll test against, since it's doubtful that a released software # will depend on an alpha- or beta-state Python. reqverhex += 0xf0 if sys.hexversion $1 reqverhex: sys.exit() else: sys.exit(1) ])], [[pc_cv_python_req_version_]pc_python_safe_ver=yes], [[pc_cv_python_req_version_]pc_python_safe_ver=no]) AC_LANG_POP(Python)[]dnl ]) AS_IF([test "$[pc_cv_python_req_version_]pc_python_safe_ver" = "no"], [$4], [$3]) ])# PC_PYTHON_VERIFY_VERSION # PC_PYTHON_CHECK_VERSION # ----------------------- # Query Python for its version number. Getting [:3] seems to be # the best way to do this; it's what "site.py" does in the standard # library. AC_DEFUN([PC_PYTHON_CHECK_VERSION], [AC_REQUIRE([PC_PROG_PYTHON])[]dnl AC_CACHE_CHECK([for $1 version], [pc_cv_python_version], [AC_LANG_PUSH(Python)[]dnl AC_LINK_IFELSE([AC_LANG_PROGRAM([dnl import sys ], [dnl sys.stdout.write(sys.version[[:3]]) ])], [pc_cv_python_version=`./conftest`], [AC_MSG_FAILURE([failed to run Python program])]) AC_LANG_POP(Python)[]dnl ]) AC_SUBST([PYTHON_VERSION], [$pc_cv_python_version]) ])# PC_PYTHON_CHECK_VERSION # PC_PYTHON_CHECK_PREFIX # ---------------------- # Use the value of $prefix for the corresponding value of # PYTHON_PREFIX. This is made a distinct variable so it can be # overridden if need be. However, general consensus is that you # shouldn't need this ability. AC_DEFUN([PC_PYTHON_CHECK_PREFIX], [AC_REQUIRE([PC_PYTHON_PROG_PYTHON_CONFIG])[]dnl dnl Try to get it with python-config otherwise do it from within Python AC_CACHE_CHECK([for Python prefix], [pc_cv_python_prefix], [if test -x "$PYTHON_CONFIG"; then pc_cv_python_prefix=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --prefix 2>&AS_MESSAGE_LOG_FD` else AC_LANG_PUSH(Python)[]dnl AC_LINK_IFELSE([AC_LANG_PROGRAM([dnl import sys ], [dnl sys.stdout.write(sys.prefix) ])], [pc_cv_python_prefix=`./conftest`; if test $? != 0; then AC_MSG_FAILURE([could not determine Python prefix]) fi], [AC_MSG_FAILURE([failed to run Python program])]) AC_LANG_POP(Python)[]dnl fi]) AC_SUBST([PYTHON_PREFIX], [$pc_cv_python_prefix])]) # PC_PYTHON_CHECK_EXEC_PREFIX # -------------------------- # Like above, but for $exec_prefix AC_DEFUN([PC_PYTHON_CHECK_EXEC_PREFIX], [AC_REQUIRE([PC_PYTHON_PROG_PYTHON_CONFIG])[]dnl dnl Try to get it with python-config otherwise do it from within Python AC_CACHE_CHECK([for Python exec-prefix], [pc_cv_python_exec_prefix], [if test -x "$PYTHON_CONFIG"; then pc_cv_python_exec_prefix=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --exec-prefix 2>&AS_MESSAGE_LOG_FD` else AC_LANG_PUSH(Python)[]dnl AC_LINK_IFELSE([AC_LANG_PROGRAM([dnl import sys ], [dnl sys.stdout.write(sys.exec_prefix) ])], [pc_cv_python_exec_prefix=`./conftest`; if test $? != 0; then AC_MSG_FAILURE([could not determine Python exec_prefix]) fi], [AC_MSG_FAILURE([failed to run Python program])]) AC_LANG_POP(Python)[]dnl fi ]) AC_SUBST([PYTHON_EXEC_PREFIX], [$pc_cv_python_exec_prefix])]) # PC_PYTHON_CHECK_INCLUDES # ------------------------ # Find the Python header file include flags (ie # '-I/usr/include/python') AC_DEFUN([PC_PYTHON_CHECK_INCLUDES], [AC_REQUIRE([PC_PYTHON_PROG_PYTHON_CONFIG])[]dnl dnl Try to find the headers location with python-config otherwise guess AC_CACHE_CHECK([for Python includes], [pc_cv_python_includes], [if test -x "$PYTHON_CONFIG"; then pc_cv_python_includes=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --includes 2>&AS_MESSAGE_LOG_FD` else pc_cv_python_includes="[-I$includedir/$_PYTHON_BASENAME]m4_ifdef(PYTHON_ABI_FLAGS, PYTHON_ABI_FLAGS,)" fi ]) AC_SUBST([PYTHON_INCLUDES], [$pc_cv_python_includes])]) # PC_PYTHON_CHECK_HEADERS([ACTION-IF-PRESENT], [ACTION-IF-ABSENT]) # ----------------------- # Check for the presence and usability of Python.h AC_DEFUN([PC_PYTHON_CHECK_HEADERS], [AC_REQUIRE([PC_PYTHON_CHECK_INCLUDES])[]dnl pc_cflags_store=$CPPFLAGS CPPFLAGS="$CFLAGS $PYTHON_INCLUDES" AC_CHECK_HEADER([Python.h], [$1], [$2]) CPPFLAGS=$pc_cflags_store ]) # PC_PYTHON_CHECK_LIBS # -------------------- # Find the Python lib flags (ie '-lpython') AC_DEFUN([PC_PYTHON_CHECK_LIBS], [AC_REQUIRE([PC_PYTHON_PROG_PYTHON_CONFIG])[]dnl dnl Try to find the lib flags with python-config otherwise guess AC_CACHE_CHECK([for Python libs], [pc_cv_python_libs], [if test -x "$PYTHON_CONFIG"; then pc_cv_python_libs=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --libs 2>&AS_MESSAGE_LOG_FD` else pc_cv_python_libs="[-l$_PYTHON_BASENAME]m4_ifdef(PYTHON_ABI_FLAGS, PYTHON_ABI_FLAGS,)" fi ]) AC_SUBST([PYTHON_LIBS], [$pc_cv_python_libs])]) # PC_PYTHON_TEST_LIBS(LIBRARY-FUNCTION, [ACTION-IF-PRESENT], [ACTION-IF-ABSENT]) # ------------------- # Verify that the Python libs can be loaded AC_DEFUN([PC_PYTHON_TEST_LIBS], [AC_REQUIRE([PC_PYTHON_CHECK_LIBS])[]dnl pc_libflags_store=$LIBS for lflag in $PYTHON_LIBS; do case $lflag in -lpython*@:}@ LIBS="$LIBS $lflag" pc_libpython=`echo $lflag | sed -e 's/^-l//'` ;; *@:}@;; esac done AC_CHECK_LIB([$pc_libpython], [$1], [$2], [$3])]) # PC_PYTHON_CHECK_CFLAGS # ---------------------- # Find the Python CFLAGS AC_DEFUN([PC_PYTHON_CHECK_CFLAGS], [AC_REQUIRE([PC_PYTHON_PROG_PYTHON_CONFIG])[]dnl dnl Try to find the CFLAGS with python-config otherwise give up AC_CACHE_CHECK([for Python CFLAGS], [pc_cv_python_cflags], [if test -x "$PYTHON_CONFIG"; then pc_cv_python_cflags=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --cflags 2>&AS_MESSAGE_LOG_FD` else pc_cv_python_cflags= fi ]) AC_SUBST([PYTHON_CFLAGS], [$pc_cv_python_cflags])]) # PC_PYTHON_CHECK_LDFLAGS # ----------------------- # Find the Python LDFLAGS AC_DEFUN([PC_PYTHON_CHECK_LDFLAGS], [AC_REQUIRE([PC_PYTHON_PROG_PYTHON_CONFIG])[]dnl dnl Try to find the LDFLAGS with python-config otherwise give up AC_CACHE_CHECK([for Python LDFLAGS], [pc_cv_python_ldflags], [if test -x "$PYTHON_CONFIG"; then pc_cv_python_ldflags=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --ldflags 2>&AS_MESSAGE_LOG_FD` else pc_cv_python_ldflags= fi ]) AC_SUBST([PYTHON_LDFLAGS], [$pc_cv_python_ldflags])]) # PC_PYTHON_CHECK_EXTENSION_SUFFIX # -------------------------------- # Find the Python extension suffix (i.e. '.cpython-32.so') AC_DEFUN([PC_PYTHON_CHECK_EXTENSION_SUFFIX], [AC_REQUIRE([PC_PYTHON_PROG_PYTHON_CONFIG])[]dnl dnl Try to find the suffix with python-config otherwise give up AC_CACHE_CHECK([for Python extension suffix], [pc_cv_python_extension_suffix], [if test -x "$PYTHON_CONFIG"; then pc_cv_python_extension_suffix=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --extension-suffix 2>&AS_MESSAGE_LOG_FD` else pc_cv_python_extension_suffix= fi ]) AC_SUBST([PYTHON_EXTENSION_SUFFIX], [$pc_cv_python_extension_suffix])]) # PC_PYTHON_CHECK_ABI_FLAGS # ------------------------- # Find the Python ABI flags AC_DEFUN([PC_PYTHON_CHECK_ABI_FLAGS], [AC_REQUIRE([PC_PYTHON_PROG_PYTHON_CONFIG])[]dnl dnl Try to find the ABI flags with python-config otherwise give up AC_CACHE_CHECK([for Python ABI flags], [pc_cv_python_abi_flags], [if test -x "$PYTHON_CONFIG"; then pc_cv_python_abi_flags=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --abiflags 2>&AS_MESSAGE_LOG_FD` else pc_cv_python_abi_flags= fi ]) AC_SUBST([PYTHON_ABI_FLAGS], [$pc_cv_python_abi_flags])]) # PC_PYTHON_CHECK_PLATFORM # ------------------------ # At times (like when building shared libraries) you may want # to know which OS platform Python thinks this is. AC_DEFUN([PC_PYTHON_CHECK_PLATFORM], [AC_REQUIRE([PC_PROG_PYTHON])[]dnl dnl Get the platform from within Python (sys.platform) AC_CACHE_CHECK([for Python platform], [pc_cv_python_platform], [AC_LANG_PUSH(Python)[]dnl AC_LINK_IFELSE([AC_LANG_PROGRAM([dnl import sys ], [dnl sys.stdout.write(sys.platform) ])], [pc_cv_python_platform=`./conftest`; if test $? != 0; then AC_MSG_FAILURE([could not determine Python platform]) fi], [AC_MSG_FAILURE([failed to run Python program])]) AC_LANG_POP(Python)[]dnl ]) AC_SUBST([PYTHON_PLATFORM], [$pc_cv_python_platform]) ]) # PC_PYTHON_CHECK_SITE_DIR # --------------------- # The directory to which new libraries are installed (i.e. the # "site-packages" directory. AC_DEFUN([PC_PYTHON_CHECK_SITE_DIR], [AC_REQUIRE([PC_PROG_PYTHON])AC_REQUIRE([PC_PYTHON_CHECK_PREFIX])[]dnl AC_CACHE_CHECK([for Python site-packages directory], [pc_cv_python_site_dir], [AC_LANG_PUSH(Python)[]dnl if test "x$prefix" = xNONE then pc_py_prefix=$ac_default_prefix else pc_py_prefix=$prefix fi AC_LINK_IFELSE([AC_LANG_PROGRAM([dnl import sys from platform import python_implementation # sysconfig in CPython 2.7 doesn't work in virtualenv # try: import sysconfig except: can_use_sysconfig = False else: can_use_sysconfig = True if can_use_sysconfig: if python_implementation() == "CPython" and sys.version[[:3]] == '2.7': can_use_sysconfig = False if not can_use_sysconfig: from distutils import sysconfig sitedir = sysconfig.get_python_lib(False, False, prefix='$pc_py_prefix') else: sitedir = sysconfig.get_path('purelib', vars={'base':'$pc_py_prefix'}) ], [dnl sys.stdout.write(sitedir) ])], [pc_cv_python_site_dir=`./conftest`], [AC_MSG_FAILURE([failed to run Python program])]) AC_LANG_POP(Python)[]dnl case $pc_cv_python_site_dir in $pc_py_prefix*) pc__strip_prefix=`echo "$pc_py_prefix" | sed 's|.|.|g'` pc_cv_python_site_dir=`echo "$pc_cv_python_site_dir" | sed "s,^$pc__strip_prefix/,,"` ;; *) case $pc_py_prefix in /usr|/System*) ;; *) pc_cv_python_site_dir=lib/python$PYTHON_VERSION/site-packages ;; esac ;; esac ]) AC_SUBST([pythondir], [\${prefix}/$pc_cv_python_site_dir])])# PC_PYTHON_CHECK_SITE_DIR # PC_PYTHON_SITE_PACKAGE_DIR # -------------------------- # $PACKAGE directory under PYTHON_SITE_DIR AC_DEFUN([PC_PYTHON_SITE_PACKAGE_DIR], [AC_REQUIRE([PC_PYTHON_CHECK_SITE_DIR])[]dnl AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE_NAME])]) # PC_PYTHON_CHECK_EXEC_DIR # ------------------------ # directory for installing python extension modules (shared libraries) AC_DEFUN([PC_PYTHON_CHECK_EXEC_DIR], [AC_REQUIRE([PC_PROG_PYTHON])AC_REQUIRE([PC_PYTHON_CHECK_EXEC_PREFIX])[]dnl AC_CACHE_CHECK([for Python extension module directory], [pc_cv_python_exec_dir], [AC_LANG_PUSH(Python)[]dnl if test "x$pc_cv_python_exec_prefix" = xNONE then pc_py_exec_prefix=$pc_cv_python_prefix else pc_py_exec_prefix=$pc_cv_python_exec_prefix fi AC_LINK_IFELSE([AC_LANG_PROGRAM([dnl import sys from platform import python_implementation # sysconfig in CPython 2.7 doesn't work in virtualenv # try: import sysconfig except: can_use_sysconfig = False else: can_use_sysconfig = True if can_use_sysconfig: if python_implementation() == "CPython" and sys.version[[:3]] == '2.7': can_use_sysconfig = False if not can_use_sysconfig: from distutils import sysconfig sitedir = sysconfig.get_python_lib(False, False, prefix='$pc_py__exec_prefix') else: sitedir = sysconfig.get_path('purelib', vars={'platbase':'$pc_py_exec_prefix'}) ], [dnl sys.stdout.write(sitedir) ])], [pc_cv_python_exec_dir=`./conftest`], [AC_MSG_FAILURE([failed to run Python program])]) AC_LANG_POP(Python)[]dnl case $pc_cv_python_exec_dir in $pc_py_exec_prefix*) pc__strip_prefix=`echo "$pc_py_exec_prefix" | sed 's|.|.|g'` pc_cv_python_exec_dir=`echo "$pc_cv_python_exec_dir" | sed "s,^$pc__strip_prefix/,,"` ;; *) case $pc_py_exec_prefix in /usr|/System*) ;; *) pc_cv_python_exec_dir=lib/python$PYTHON_VERSION/site-packages ;; esac ;; esac ]) AC_SUBST([pyexecdir], [\${exec_prefix}/$pc_cv_python_pyexecdir])]) #PY_PYTHON_CHECK_EXEC_LIB_DIR # PC_PYTHON_EXEC_PACKAGE_DIR # -------------------------- # $PACKAGE directory under PYTHON_SITE_DIR AC_DEFUN([PC_PYTHON_EXEC_PACKAGE_DIR], [AC_REQUIRE([PC_PYTHON_CHECK_EXEC_DIR])[]dnl AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE_NAME])]) ## -------------------------------------------- ## ## 4. Looking for specific libs & functionality ## ## -------------------------------------------- ## # PC_PYTHON_CHECK_MODULE(LIBRARY, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # ---------------------------------------------------------------------- # Macro for checking if a Python library is installed AC_DEFUN([PC_PYTHON_CHECK_MODULE], [AC_REQUIRE([PC_PROG_PYTHON])[]dnl m4_define([pc_python_safe_mod], m4_bpatsubsts($1, [\.], [_])) AC_CACHE_CHECK([for Python '$1' library], [[pc_cv_python_module_]pc_python_safe_mod], [AC_LANG_PUSH(Python)[]dnl AC_RUN_IFELSE( [AC_LANG_PROGRAM([dnl import sys try: import $1 except: sys.exit(1) else: sys.exit(0) ], [])], [[pc_cv_python_module_]pc_python_safe_mod="yes"], [[pc_cv_python_module_]pc_python_safe_mod="no"]) AC_LANG_POP(Python)[]dnl ]) AS_IF([test "$[pc_cv_python_module_]pc_python_safe_mod" = "no"], [$3], [$2]) ])# PC_PYTHON_CHECK_MODULE # PC_PYTHON_CHECK_FUNC([LIBRARY], FUNCTION, ARGS, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # --------------------------------------------------------------------------------------- # Check to see if a given function call, optionally from a module, can # be successfully called AC_DEFUN([PC_PYTHON_CHECK_FUNC], [AC_REQUIRE([PC_PROG_PYTHON])[]dnl m4_define([pc_python_safe_mod], m4_bpatsubsts($1, [\.], [_])) AC_CACHE_CHECK([for Python m4_ifnblank($1, '$1.$2()', '$2()') function], [[pc_cv_python_func_]pc_python_safe_mod[_$2]], [AC_LANG_PUSH(Python)[]dnl AC_RUN_IFELSE( [AC_LANG_PROGRAM([dnl import sys m4_ifnblank([$1], [dnl try: import $1 except: sys.exit(1) ], [])], [ m4_ifnblank([$1], [ try: $1.$2($3)], [ try: $2($3)]) except: sys.exit(1) else: sys.exit(0) ])], [[pc_cv_python_func_]pc_python_safe_mod[_$2]="yes"], [[pc_cv_python_func_]pc_python_safe_mod[_$2]="no"]) AC_LANG_POP(Python)[]dnl ]) AS_IF([test "$[pc_cv_python_func_]pc_python_safe_mod[_$2]" = "no"], [$5], [$4]) ])# PC_PYTHON_CHECK_FUNC Gyoto-2.0.2/missing000077500000000000000000000153361455254334400142340ustar00rootroot00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1996-2021 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # 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. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=https://www.perl.org/ flex_URL=https://github.com/westes/flex gnu_software_URL=https://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'autom4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: Gyoto-2.0.2/plugins/000077500000000000000000000000001455254334400143065ustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/000077500000000000000000000000001455254334400152605ustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/AUTHORS000066400000000000000000000000001455254334400163160ustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/COPYING000077700000000000000000000000001455254334400177672../../COPYINGustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/ChangeLog000066400000000000000000000000001455254334400170200ustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/INSTALL000077700000000000000000000000001455254334400177632../../INSTALLustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/Makefile.am000066400000000000000000000001341455254334400173120ustar00rootroot00000000000000ACLOCAL_AMFLAGS = -I m4 SUBDIRS=@mySUBDIRS@ $(SUBDIRS): cd $@ ; $(MAKE) .PHONY: $(SUBDIRS) Gyoto-2.0.2/plugins/null/Makefile.in000066400000000000000000000631741455254334400173400ustar00rootroot00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ 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@ target_triplet = @target@ subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(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_CLEAN_FILES = bin/gyoto 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 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 distdir-am dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # 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)` DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/bin/gyoto.in \ AUTHORS COPYING ChangeLog INSTALL NEWS README compile \ config.guess config.sub depcomp 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 GZIP_ENV = --best DIST_TARGETS = dist-gzip # Exists only to be overridden by the user if desired. AM_DISTCHECK_DVI_TARGET = dvi 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@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DYLIB_VAR = @DYLIB_VAR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FILECMD = @FILECMD@ GREP = @GREP@ GYOTO = @GYOTO@ GYOTO_EPREFIX = @GYOTO_EPREFIX@ GYOTO_PREFIX = @GYOTO_PREFIX@ Gyoto_CFLAGS = @Gyoto_CFLAGS@ Gyoto_LIBS = @Gyoto_LIBS@ HOME_LORENE = @HOME_LORENE@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LORENECPPFLAGS = @LORENECPPFLAGS@ LORENELDFLAGS = @LORENELDFLAGS@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ 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@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PYTHON = @PYTHON@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SWIG = @SWIG@ SYS = @SYS@ VERSION = @VERSION@ YORICK = @YORICK@ Y_INST_HOME = @Y_INST_HOME@ Y_INST_SITE = @Y_INST_SITE@ 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@ mySUBDIRS = @mySUBDIRS@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ plugin_sfx = @plugin_sfx@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ soverdir = @soverdir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = @mySUBDIRS@ all: all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu 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__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): bin/gyoto: $(top_builddir)/config.status $(top_srcdir)/bin/gyoto.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 # 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: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(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) | eval GZIP= gzip $(GZIP_ENV) -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-zstd: distdir tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst $(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) | eval GZIP= gzip $(GZIP_ENV) -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*) \ eval GZIP= gzip $(GZIP_ENV) -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*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ *.tar.zst*) \ zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ 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) $(AM_DISTCHECK_DVI_TARGET) \ && $(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 installdirs: installdirs-recursive installdirs-am: 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." 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-libtool \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: 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: .MAKE: $(am__recursive_targets) 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 dist-zstd distcheck distclean \ distclean-generic 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-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 .PRECIOUS: Makefile $(SUBDIRS): cd $@ ; $(MAKE) .PHONY: $(SUBDIRS) # 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: Gyoto-2.0.2/plugins/null/NEWS000066400000000000000000000000011455254334400157460ustar00rootroot00000000000000 Gyoto-2.0.2/plugins/null/README000066400000000000000000000024341455254334400161430ustar00rootroot00000000000000This is an example of a Gyoto plug-in. To make your own, 1- choose a cool name; 2- copy this directory (plugins/null/) somewhere; 3- edit configure.ac, lib/Makefile.am and lib/InitPlug.C: replace any occurrence of "null" with your cool name; 4- add new metrics and astrobjs as needed in lib/ and include/, the gyoto source code is also full of examples; 5- edit lib/InitPlug.C to register your new classes (rename it to CoolPlug.C if you wish); 6- add the name of the required C++ source files to the libgyoto_null_la_SOURCES variable in lib/Makefile.am (this variable should have been renamed to libgyoto__la_SOURCES by now); 7- run autoreconf (whenever you edit any configure.ac or Makefile.am file), then ./configure, make, make install... 8- if installing to default directories (/usr/local/lib), you may need to run 'sudo ldconfig' 9- You can now start using your plug-in by loading it with any of the available methods: - In XML: - On the command line: gyoto -pstdplug,null ... - In Python: gyoto.requirePlugin('null') - In all cases: export GYOTO_PLUGINS="stdplug,null". For further details, refer to the Gyoto user manual, section entitled `Writing a C++ plug-in' (as of writing, Sect. 8.2). Gyoto-2.0.2/plugins/null/aclocal.m4000066400000000000000000001227661455254334400171360ustar00rootroot00000000000000# generated automatically by aclocal 1.16.5 -*- Autoconf -*- # Copyright (C) 1996-2021 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.71],, [m4_warning([this file was generated for autoconf 2.71. 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-2021 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.16' 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.16.5], [], [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.16.5])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-2021 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-2021 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-2021 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-2021 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. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. AS_CASE([$CONFIG_FILES], [*\'*], [eval set x "$CONFIG_FILES"], [*], [set x $CONFIG_FILES]) shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`AS_DIRNAME(["$am_mf"])` am_filepart=`AS_BASENAME(["$am_mf"])` AM_RUN_LOG([cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles]) || am_rc=$? done if test $am_rc -ne 0; then AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE="gmake" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking).]) fi AS_UNSET([am_dirpart]) AS_UNSET([am_filepart]) AS_UNSET([am_mf]) AS_UNSET([am_rc]) rm -f conftest-deps.mk } ])# _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. # This creates each '.Po' and '.Plo' makefile fragment that we'll 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" MAKE="${MAKE-make}"])]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2021 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 m4_ifdef([_$0_ALREADY_INIT], [m4_fatal([$0 expanded multiple times ]m4_defn([_$0_ALREADY_INIT]))], [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])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_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([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 ]) # Variables for tags utilities; see am/tags.am if test -z "$CTAGS"; then CTAGS=ctags fi AC_SUBST([CTAGS]) if test -z "$ETAGS"; then ETAGS=etags fi AC_SUBST([ETAGS]) if test -z "$CSCOPE"; then CSCOPE=cscope fi AC_SUBST([CSCOPE]) 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-2021 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-2021 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])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2021 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 whether make has an 'include' directive that can support all # the idioms we need for our automatic dependency tracking code. AC_DEFUN([AM_MAKE_INCLUDE], [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) AS_CASE([$?:`cat confinc.out 2>/dev/null`], ['0:this is the am__doit target'], [AS_CASE([$s], [BSD], [am__include='.include' am__quote='"'], [am__include='include' am__quote=''])]) if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* AC_MSG_RESULT([${_am_result}]) AC_SUBST([am__include])]) AC_SUBST([am__quote])]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2021 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 MISSING="\${SHELL} '$am_aux_dir/missing'" 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-2021 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-2021 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-2021 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-2021 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-2021 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-2021 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-2021 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-2021 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/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]) Gyoto-2.0.2/plugins/null/bin/000077500000000000000000000000001455254334400160305ustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/bin/gyoto.in000066400000000000000000000003411455254334400175170ustar00rootroot00000000000000#!/bin/sh set -e export LD_LIBRARY_PATH=@abs_top_srcdir@/lib/.libs:$LD_LIBRARY_PATH export DYLD_LIBRARY_PATH=@abs_top_srcdir@/lib/.libs:$DYLD_LIBRARY_PATH export GYOTO_PLUGINS=stdplug,nofail:lorene,null @GYOTO@ $@@ exit 0 Gyoto-2.0.2/plugins/null/compile000077700000000000000000000000001455254334400206272../../compileustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/config.guess000077700000000000000000000000001455254334400225332../../config.guessustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/config.sub000077700000000000000000000000001455254334400216412../../config.subustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/configure000077500000000000000000022414131455254334400171760ustar00rootroot00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.71 for gyoto-null 0.0.0. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=: if test ${ZSH_VERSION+y} && (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 $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; 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 # 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # 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'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 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="as_nop=: if test \${ZSH_VERSION+y} && (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 \$as_nop 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 \$as_nop exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) test x\"\$blah\" = xblah || 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 -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 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes else $as_nop as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$as_shell as_have_required=yes if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null then : break 2 fi fi done;; esac as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes fi fi 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'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno then : printf "%s\n" "$0: This script requires a shell more modern than all" printf "%s\n" "$0: the shells that I found on your system." if test ${ZSH_VERSION+y} ; then printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and $0: gyoto@sympa.obspm.fr about your system, including any $0: error possibly output before this message. Then install $0: a modern shell, or manually run the script under such a $0: 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_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # 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=`printf "%s\n" "$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 || printf "%s\n" 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_nop 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_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # 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 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$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 || printf "%s\n" 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" || { printf "%s\n" "$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 } # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. 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 # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' 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='gyoto-null' PACKAGE_TARNAME='gyoto-null' PACKAGE_VERSION='0.0.0' PACKAGE_STRING='gyoto-null 0.0.0' PACKAGE_BUGREPORT='gyoto@sympa.obspm.fr' PACKAGE_URL='' ac_unique_file="include/GyotoNull.h" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_STDIO_H # include #endif #ifdef HAVE_STDLIB_H # include #endif #ifdef HAVE_STRING_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_header_c_list= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS mySUBDIRS CXXCPP am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX soverdir Y_INST_SITE Y_INST_HOME GYOTO_EPREFIX GYOTO_PREFIX GYOTO LORENELDFLAGS LORENECPPFLAGS HOME_LORENE SWIG PYTHON YORICK Gyoto_LIBS Gyoto_CFLAGS plugin_sfx SYS DYLIB_VAR PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG LT_SYS_LIBRARY_PATH OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR DLLTOOL OBJDUMP FILECMD LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC LIBTOOL AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V CSCOPE ETAGS CTAGS 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_os target_vendor target_cpu target host_os host_vendor host_cpu host build_os build_vendor build_cpu build 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 am__quote' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_shared enable_static with_pic enable_fast_install with_aix_soname enable_dependency_tracking with_gnu_ld with_sysroot enable_libtool_lock enable_globalinstall with_soverdir ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS LT_SYS_LIBRARY_PATH PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR Gyoto_CFLAGS Gyoto_LIBS CXX CXXFLAGS CCC CXXCPP' # 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 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=`printf "%s\n" "$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=`printf "%s\n" "$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=`printf "%s\n" "$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=`printf "%s\n" "$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. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && printf "%s\n" "$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" ;; *) printf "%s\n" "$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 || printf "%s\n" 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 gyoto-null 0.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/gyoto-null] --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] --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of gyoto-null 0.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-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] --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --disable-libtool-lock avoid locking (might break parallel builds) --enable-globalinstall install the plug-in in the global system directory instead of the local tree Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --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-soverdir=SOVERDIR install the plug-in exactly in SOVERDIR. By default, use instructions from gyoto.pc or default to LIBDIR (see --enable-globalinstall) 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 LT_SYS_LIBRARY_PATH User-defined run-time library search path. PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path Gyoto_CFLAGS C compiler flags for Gyoto, overriding pkg-config Gyoto_LIBS linker flags for Gyoto, overriding pkg-config CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor 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=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$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 configure.gnu first; this name is used for a wrapper for # Metaconfig's "Configure" on case-insensitive file systems. 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 printf "%s\n" "$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 gyoto-null configure 0.0.0 generated by GNU Autoconf 2.71 Copyright (C) 2021 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 conftest.beam 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\"" printf "%s\n" "$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 printf "%s\n" "$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_nop printf "%s\n" "$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_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.beam 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\"" printf "%s\n" "$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 printf "%s\n" "$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_nop printf "%s\n" "$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_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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop 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 $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ #include #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 (void) { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$3=yes" else $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type # 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 conftest.beam 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\"" printf "%s\n" "$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 printf "%s\n" "$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_nop printf "%s\n" "$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_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\"" printf "%s\n" "$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 printf "%s\n" "$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_nop printf "%s\n" "$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.beam 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\"" printf "%s\n" "$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 printf "%s\n" "$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_nop printf "%s\n" "$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 ac_configure_args_raw= for ac_arg do case $ac_arg in *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append ac_configure_args_raw " '$ac_arg'" done case $ac_configure_args_raw in *$as_nl*) ac_safe_unquote= ;; *) ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. ac_unsafe_a="$ac_unsafe_z#~" ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; esac 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 gyoto-null $as_me 0.0.0, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw _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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac printf "%s\n" "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=`printf "%s\n" "$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=$? # Sanitize IFS. IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo printf "%s\n" "## ---------------- ## ## 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_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$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 printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && printf "%s\n" "$as_me: caught signal $ac_signal" printf "%s\n" "$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 printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi for ac_site_file in $ac_site_files do case $ac_site_file in #( */*) : ;; #( *) : ac_site_file=./$ac_site_file ;; esac if test -f "$ac_site_file" && test -r "$ac_site_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Test code for whether the C compiler supports C89 (global declarations) ac_c_conftest_c89_globals=' /* Does the compiler advertise C89 conformance? Do not test the value of __STDC__, because some compilers set it to 0 while being otherwise adequately conformant. */ #if !defined __STDC__ # error "Compiler does not advertise C89 conformance" #endif #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*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 do not provoke an error unfortunately, instead are silently treated as an "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 is necessary to write \x00 == 0 to get something that is 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 **, int *(*)(struct buf *, struct stat *, int), int, int);' # Test code for whether the C compiler supports C89 (body of main). ac_c_conftest_c89_main=' ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); ' # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' // Does the compiler advertise C99 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare // FILE and stderr. #define debug(...) dprintf (2, __VA_ARGS__) #define showlist(...) puts (#__VA_ARGS__) #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) static void test_varargs_macros (void) { int x = 1234; int y = 5678; debug ("Flag"); debug ("X = %d\n", x); showlist (The first, second, and third items.); report (x>y, "x is %d but y is %d", x, y); } // Check long long types. #define BIG64 18446744073709551615ull #define BIG32 4294967295ul #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) #if !BIG_OK #error "your preprocessor is broken" #endif #if BIG_OK #else #error "your preprocessor is broken" #endif static long long int bignum = -9223372036854775807LL; static unsigned long long int ubignum = BIG64; struct incomplete_array { int datasize; double data[]; }; struct named_init { int number; const wchar_t *name; double average; }; typedef const char *ccp; static inline int test_restrict (ccp restrict text) { // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) continue; return 0; } // Check varargs and va_copy. static bool test_varargs (const char *format, ...) { va_list args; va_start (args, format); va_list args_copy; va_copy (args_copy, args); const char *str = ""; int number = 0; float fnumber = 0; while (*format) { switch (*format++) { case '\''s'\'': // string str = va_arg (args_copy, const char *); break; case '\''d'\'': // int number = va_arg (args_copy, int); break; case '\''f'\'': // float fnumber = va_arg (args_copy, double); break; default: break; } } va_end (args_copy); va_end (args); return *str && number && fnumber; } ' # Test code for whether the C compiler supports C99 (body of main). ac_c_conftest_c99_main=' // Check bool. _Bool success = false; success |= (argc != 0); // Check restrict. if (test_restrict ("String literal") == 0) success = true; char *restrict newvar = "Another string"; // Check varargs. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); test_varargs_macros (); // Check flexible array members. struct incomplete_array *ia = malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; // Check named initializers. struct named_init ni = { .number = 34, .name = L"Test wide string", .average = 543.34343, }; ni.number = 58; int dynamic_array[ni.number]; dynamic_array[0] = argv[0][0]; dynamic_array[ni.number - 1] = 543; // work around unused variable warnings ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' || dynamic_array[ni.number - 1] != 543); ' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' // Does the compiler advertise C11 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif // Check _Alignas. char _Alignas (double) aligned_as_double; char _Alignas (0) no_special_alignment; extern char aligned_as_int; char _Alignas (0) _Alignas (int) aligned_as_int; // Check _Alignof. enum { int_alignment = _Alignof (int), int_array_alignment = _Alignof (int[100]), char_alignment = _Alignof (char) }; _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); // Check _Noreturn. int _Noreturn does_not_return (void) { for (;;) continue; } // Check _Static_assert. struct test_static_assert { int x; _Static_assert (sizeof (int) <= sizeof (long int), "_Static_assert does not work in struct"); long int y; }; // Check UTF-8 literals. #define u8 syntax error! char const utf8_literal[] = u8"happens to be ASCII" "another string"; // Check duplicate typedefs. typedef long *long_ptr; typedef long int *long_ptr; typedef long_ptr long_ptr; // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. struct anonymous { union { struct { int i; int j; }; struct { int k; long int l; } w; }; int m; } v1; ' # Test code for whether the C compiler supports C11 (body of main). ac_c_conftest_c11_main=' _Static_assert ((offsetof (struct anonymous, i) == offsetof (struct anonymous, w.k)), "Anonymous union alignment botch"); v1.i = 2; v1.w.k = 5; ok |= v1.i != 5; ' # Test code for whether the C compiler supports C11 (complete). ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} ${ac_c_conftest_c11_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} ${ac_c_conftest_c11_main} return ok; } " # Test code for whether the C compiler supports C99 (complete). ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} return ok; } " # Test code for whether the C compiler supports C89 (complete). ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} return ok; } " as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" # Test code for whether the C++ compiler supports C++98 (global declarations) ac_cxx_conftest_cxx98_globals=' // Does the compiler advertise C++98 conformance? #if !defined __cplusplus || __cplusplus < 199711L # error "Compiler does not advertise C++98 conformance" #endif // These inclusions are to reject old compilers that // lack the unsuffixed header files. #include #include // and are *not* freestanding headers in C++98. extern void assert (int); namespace std { extern int strcmp (const char *, const char *); } // Namespaces, exceptions, and templates were all added after "C++ 2.0". using std::exception; using std::strcmp; namespace { void test_exception_syntax() { try { throw "test"; } catch (const char *s) { // Extra parentheses suppress a warning when building autoconf itself, // due to lint rules shared with more typical C programs. assert (!(strcmp) (s, "test")); } } template struct test_template { T const val; explicit test_template(T t) : val(t) {} template T add(U u) { return static_cast(u) + val; } }; } // anonymous namespace ' # Test code for whether the C++ compiler supports C++98 (body of main) ac_cxx_conftest_cxx98_main=' assert (argc); assert (! argv[0]); { test_exception_syntax (); test_template tt (2.0); assert (tt.add (4) == 6.0); assert (true && !false); } ' # Test code for whether the C++ compiler supports C++11 (global declarations) ac_cxx_conftest_cxx11_globals=' // Does the compiler advertise C++ 2011 conformance? #if !defined __cplusplus || __cplusplus < 201103L # error "Compiler does not advertise C++11 conformance" #endif namespace cxx11test { constexpr int get_val() { return 20; } struct testinit { int i; double d; }; class delegate { public: delegate(int n) : n(n) {} delegate(): delegate(2354) {} virtual int getval() { return this->n; }; protected: int n; }; class overridden : public delegate { public: overridden(int n): delegate(n) {} virtual int getval() override final { return this->n * 2; } }; class nocopy { public: nocopy(int i): i(i) {} nocopy() = default; nocopy(const nocopy&) = delete; nocopy & operator=(const nocopy&) = delete; private: int i; }; // for testing lambda expressions template Ret eval(Fn f, Ret v) { return f(v); } // for testing variadic templates and trailing return types template auto sum(V first) -> V { return first; } template auto sum(V first, Args... rest) -> V { return first + sum(rest...); } } ' # Test code for whether the C++ compiler supports C++11 (body of main) ac_cxx_conftest_cxx11_main=' { // Test auto and decltype auto a1 = 6538; auto a2 = 48573953.4; auto a3 = "String literal"; int total = 0; for (auto i = a3; *i; ++i) { total += *i; } decltype(a2) a4 = 34895.034; } { // Test constexpr short sa[cxx11test::get_val()] = { 0 }; } { // Test initializer lists cxx11test::testinit il = { 4323, 435234.23544 }; } { // Test range-based for int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; for (auto &x : array) { x += 23; } } { // Test lambda expressions using cxx11test::eval; assert (eval ([](int x) { return x*2; }, 21) == 42); double d = 2.0; assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); assert (d == 5.0); assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); assert (d == 5.0); } { // Test use of variadic templates using cxx11test::sum; auto a = sum(1); auto b = sum(1, 2); auto c = sum(1.0, 2.0, 3.0); } { // Test constructor delegation cxx11test::delegate d1; cxx11test::delegate d2(); cxx11test::delegate d3(45); } { // Test override and final cxx11test::overridden o1(55464); } { // Test nullptr char *c = nullptr; } { // Test template brackets test_template<::test_template> v(test_template(12)); } { // Unicode literals char const *utf8 = u8"UTF-8 string \u2500"; char16_t const *utf16 = u"UTF-8 string \u2500"; char32_t const *utf32 = U"UTF-32 string \u2500"; } ' # Test code for whether the C compiler supports C++11 (complete). ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} ${ac_cxx_conftest_cxx11_globals} int main (int argc, char **argv) { int ok = 0; ${ac_cxx_conftest_cxx98_main} ${ac_cxx_conftest_cxx11_main} return ok; } " # Test code for whether the C compiler supports C++98 (complete). ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} int main (int argc, char **argv) { int ok = 0; ${ac_cxx_conftest_cxx98_main} return ok; } " # Auxiliary files required by this configure script. ac_aux_files="compile ltmain.sh missing install-sh config.guess config.sub" # Locations in which to look for auxiliary files. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." # Search for a directory containing all of the required auxiliary files, # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. # If we don't find one directory that contains all the files we need, # we report the set of missing files from the *first* directory in # $ac_aux_dir_candidates and give up. ac_missing_aux_files="" ac_first_candidate=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in $ac_aux_dir_candidates do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac as_found=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 ac_aux_dir_found=yes ac_install_sh= for ac_aux in $ac_aux_files do # As a special case, if "install-sh" is required, that requirement # can be satisfied by any of "install-sh", "install.sh", or "shtool", # and $ac_install_sh is set appropriately for whichever one is found. if test x"$ac_aux" = x"install-sh" then if test -f "${as_dir}install-sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 ac_install_sh="${as_dir}install-sh -c" elif test -f "${as_dir}install.sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 ac_install_sh="${as_dir}install.sh -c" elif test -f "${as_dir}shtool"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 ac_install_sh="${as_dir}shtool install -c" else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} install-sh" else break fi fi else if test -f "${as_dir}${ac_aux}"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" else break fi fi fi done if test "$ac_aux_dir_found" = yes; then ac_aux_dir="$as_dir" break fi ac_first_candidate=false as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$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. if test -f "${ac_aux_dir}config.guess"; then ac_config_guess="$SHELL ${ac_aux_dir}config.guess" fi if test -f "${ac_aux_dir}config.sub"; then ac_config_sub="$SHELL ${ac_aux_dir}config.sub" fi if test -f "$ac_aux_dir/configure"; then ac_configure="$SHELL ${ac_aux_dir}configure" 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,) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 printf "%s\n" "$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=`printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`${MAKE-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 # Below, give the name of some file that will stay in you source tree. # 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 printf %s "checking build system type... " >&6; } if test ${ac_cv_build+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 printf %s "checking host system type... " >&6; } if test ${ac_cv_host+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 printf %s "checking target system type... " >&6; } if test ${ac_cv_target+y} then : printf %s "(cached) " >&6 else $as_nop if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 printf "%s\n" "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' set x $ac_cv_target shift target_cpu=$1 target_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: target_os=$* IFS=$ac_save_IFS case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac # The aliases save the names the user supplied, while $host etc. # will get canonicalized. test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- am__api_version='1.16' # 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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 printf %s "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if test ${ac_cv_path_install+y} then : printf %s "(cached) " >&6 else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac # Account for fact that we put trailing slashes in our PATH walk. 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+y}; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 printf "%s\n" "$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' { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "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=`printf "%s\n" "$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 MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 printf "%s\n" "$STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 printf "%s\n" "$ac_ct_STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 printf %s "checking for a race-free mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if test ${ac_cv_path_mkdir+y} then : printf %s "(cached) " >&6 else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 ('*'coreutils) '* | \ 'BusyBox '* | \ '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+y}; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 printf "%s\n" "$AWK" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$AWK" && break done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval test \${ac_cv_prog_make_${ac_make}_set+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } SET_MAKE= else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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+y} 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} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 printf %s "checking whether $am_make supports nested variables... " >&6; } if test ${am_cv_make_support_nested_variables+y} then : printf %s "(cached) " >&6 else $as_nop if printf "%s\n" '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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 printf "%s\n" "$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='gyoto-null' VERSION='0.0.0' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h # 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 -' # Variables for tags utilities; see am/tags.am if test -z "$CTAGS"; then CTAGS=ctags fi if test -z "$ETAGS"; then ETAGS=etags fi if test -z "$CSCOPE"; then CSCOPE=cscope fi # 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 case `pwd` in *\ * | *\ *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.7' macro_revision='2.4.7' 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 printf %s "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*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 printf "%s\n" "printf" >&6; } ;; print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 printf "%s\n" "print -r" >&6; } ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 printf "%s\n" "cat" >&6; } ;; esac DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } case $?:`cat confinc.out 2>/dev/null` in #( '0:this is the am__doit target') : case $s in #( BSD) : am__include='.include' am__quote='"' ;; #( *) : am__include='include' am__quote='' ;; esac ;; #( *) : ;; esac if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 printf "%s\n" "${_am_result}" >&6; } # Check whether --enable-dependency-tracking was given. if test ${enable_dependency_tracking+y} 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 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. set dummy ${ac_tool_prefix}clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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}clang" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "clang", so it can be a program name with args. set dummy clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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="clang" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 fi test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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. printf "%s\n" "$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 -version; 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\"" printf "%s\n" "$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 printf "%s\n" "$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 (void) { ; 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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 printf %s "checking whether the C compiler works... " >&6; } ac_link_default=`printf "%s\n" "$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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? printf "%s\n" "$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+y} && 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 $as_nop ac_file='' fi if test -z "$ac_file" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 printf %s "checking for C compiler default output file name... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 printf %s "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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$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_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 printf "%s\n" "$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 (void) { 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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 printf %s "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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? printf "%s\n" "$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 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 printf "%s\n" "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? printf "%s\n" "$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_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_c_compiler_gnu if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes else $as_nop CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } if test $ac_test_CFLAGS; 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 ac_prog_cc_stdc=no if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c11_program _ACEOF for ac_arg in '' -std=gnu11 do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } CC="$CC $ac_cv_prog_cc_c11" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 ac_prog_cc_stdc=c11 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c99_program _ACEOF for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c99=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } CC="$CC $ac_cv_prog_cc_c99" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 ac_prog_cc_stdc=c99 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c89_program _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 conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } CC="$CC $ac_cv_prog_cc_c89" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 ac_prog_cc_stdc=c89 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 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 printf %s "checking whether $CC understands -c and -o together... " >&6; } if test ${am_cv_prog_cc_c_o+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 printf "%s\n" "$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 depcc="$CC" am_compiler_list= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CC_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 printf %s "checking for a sed that does not truncate output... " >&6; } if test ${ac_cv_path_SED+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '' >> "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 printf "%s\n" "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 printf %s "checking for grep that handles long lines and -e... " >&6; } if test ${ac_cv_path_GREP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 printf "%s\n" "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 printf %s "checking for egrep... " >&6; } if test ${ac_cv_path_EGREP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 printf "%s\n" "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 printf %s "checking for fgrep... " >&6; } if test ${ac_cv_path_FGREP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 printf "%s\n" "$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+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else $as_nop with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 printf %s "checking for GNU ld... " >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 printf %s "checking for non-GNU ld... " >&6; } fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 else $as_nop 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 printf "%s\n" "$LD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if test ${lt_cv_path_NM+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DUMPBIN+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 printf "%s\n" "$DUMPBIN" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DUMPBIN+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 printf %s "checking the name lister ($NM) interface... " >&6; } if test ${lt_cv_nm_interface+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 printf "%s\n" "$lt_cv_nm_interface" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 printf %s "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 printf "%s\n" "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 printf %s "checking the maximum length of command line arguments... " >&6; } if test ${lt_cv_sys_max_cmd_len+y} then : printf %s "(cached) " >&6 else $as_nop 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* | midnightbsd* | 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 printf %s "checking how to convert $build file names to $host format... " >&6; } if test ${lt_cv_to_host_file_cmd+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 printf %s "checking how to convert $build file names to toolchain format... " >&6; } if test ${lt_cv_to_tool_file_cmd+y} then : printf %s "(cached) " >&6 else $as_nop #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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 printf %s "checking for $LD option to reload object files... " >&6; } if test ${lt_cv_ld_reload_flag+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_ld_reload_flag='-r' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 printf "%s\n" "$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}file", so it can be a program name with args. set dummy ${ac_tool_prefix}file; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_FILECMD+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$FILECMD"; then ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_FILECMD="${ac_tool_prefix}file" printf "%s\n" "$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 FILECMD=$ac_cv_prog_FILECMD if test -n "$FILECMD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 printf "%s\n" "$FILECMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_FILECMD"; then ac_ct_FILECMD=$FILECMD # Extract the first word of "file", so it can be a program name with args. set dummy file; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_FILECMD+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_FILECMD"; then ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_FILECMD="file" printf "%s\n" "$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_FILECMD=$ac_cv_prog_ac_ct_FILECMD if test -n "$ac_ct_FILECMD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 printf "%s\n" "$ac_ct_FILECMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_FILECMD" = x; then FILECMD=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac FILECMD=$ac_ct_FILECMD fi else FILECMD="$ac_cv_prog_FILECMD" 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OBJDUMP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 printf "%s\n" "$OBJDUMP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OBJDUMP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 printf %s "checking how to recognize dependent libraries... " >&6; } if test ${lt_cv_deplibs_check_method+y} then : printf %s "(cached) " >&6 else $as_nop 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='$FILECMD -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* | midnightbsd*) 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=$FILECMD 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=$FILECMD 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=$FILECMD 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DLLTOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 printf "%s\n" "$DLLTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DLLTOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 printf %s "checking how to associate runtime and link libraries... " >&6; } if test ${lt_cv_sharedlib_from_linklib_cmd+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 printf "%s\n" "$AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 printf "%s\n" "$ac_ct_AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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} # Use ARFLAGS variable as AR's operation code to sync the variable naming with # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have # higher priority because thats what people were doing historically (setting # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS # variable obsoleted/removed. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} lt_ar_flags=$AR_FLAGS # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override # by AR_FLAGS because that was never working and AR_FLAGS is about to die. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 printf %s "checking for archiver @FILE support... " >&6; } if test ${lt_cv_ar_at_file+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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=$? printf "%s\n" "$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=$? printf "%s\n" "$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.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 printf "%s\n" "$STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 printf "%s\n" "$ac_ct_STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 printf "%s\n" "$RANLIB" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_RANLIB+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 printf "%s\n" "$ac_ct_RANLIB" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 printf %s "checking command to parse $NM output from $compiler object... " >&6; } if test ${lt_cv_sys_global_symbol_pipe+y} then : printf %s "(cached) " >&6 else $as_nop # 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++ or ICC, # 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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && 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=$? printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 printf "%s\n" "failed" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 printf %s "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test ${with_sysroot+y} then : withval=$with_sysroot; else $as_nop 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|'') ;; #( *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 printf "%s\n" "$with_sysroot" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 printf "%s\n" "${lt_sysroot:-no}" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 printf %s "checking for a working dd... " >&6; } if test ${ac_cv_path_lt_DD+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 printf %s "checking how to truncate binary pipes... " >&6; } if test ${lt_cv_truncate_bin+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 printf "%s\n" "$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+y} 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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `$FILECMD 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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test yes = "$lt_cv_prog_gnu_ld"; then case `$FILECMD conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `$FILECMD 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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then emul=elf case `$FILECMD conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `$FILECMD conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `$FILECMD 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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `$FILECMD conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `$FILECMD 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" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 printf %s "checking whether the C compiler needs -belf... " >&6; } if test ${lt_cv_cc_needs_belf+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_cc_needs_belf=yes else $as_nop lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 printf "%s\n" "$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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `$FILECMD 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 printf "%s\n" "$MANIFEST_TOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if test ${lt_cv_path_mainfest_tool+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DSYMUTIL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 printf "%s\n" "$DSYMUTIL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_NMEDIT+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 printf "%s\n" "$NMEDIT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_NMEDIT+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 printf "%s\n" "$ac_ct_NMEDIT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LIPO+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 printf "%s\n" "$LIPO" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_LIPO+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 printf "%s\n" "$ac_ct_LIPO" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 printf "%s\n" "$OTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 printf "%s\n" "$ac_ct_OTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL64+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 printf "%s\n" "$OTOOL64" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL64+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 printf "%s\n" "$ac_ct_OTOOL64" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 printf %s "checking for -single_module linker flag... " >&6; } if test ${lt_cv_apple_cc_single_mod+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 printf %s "checking for -exported_symbols_list linker flag... " >&6; } if test ${lt_cv_ld_exported_symbols_list+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_ld_exported_symbols_list=yes else $as_nop lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 printf %s "checking for -force_load linker flag... " >&6; } if test ${lt_cv_ld_force_load+y} then : printf %s "(cached) " >&6 else $as_nop 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 $AR_FLAGS libconftest.a conftest.o" >&5 $AR $AR_FLAGS 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 printf "%s\n" "$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*) case $MACOSX_DEPLOYMENT_TARGET,$host in 10.[012],*|,*powerpc*-darwin[5-8]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; *) _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 } ac_header= ac_cache= for ac_item in $ac_header_c_list do if test $ac_cache; then ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then printf "%s\n" "#define $ac_item 1" >> confdefs.h fi ac_header= ac_cache= elif test $ac_header; then ac_cache=$ac_item else ac_header=$ac_item fi done if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes then : printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h fi 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 : printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h fi # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test ${enable_shared+y} 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 $as_nop enable_shared=yes fi # Check whether --enable-static was given. if test ${enable_static+y} 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 $as_nop enable_static=yes fi # Check whether --with-pic was given. if test ${with_pic+y} 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 $as_nop pic_mode=default fi # Check whether --enable-fast-install was given. if test ${enable_fast_install+y} 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 $as_nop enable_fast_install=yes fi shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[5-9]*,yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 printf %s "checking which variant of shared library versioning to provide... " >&6; } # Check whether --with-aix-soname was given. if test ${with_aix_soname+y} 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 $as_nop if test ${lt_cv_with_aix_soname+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_with_aix_soname=aix fi with_aix_soname=$lt_cv_with_aix_soname fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 printf %s "checking for objdir... " >&6; } if test ${lt_cv_objdir+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 printf "%s\n" "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 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 and # ICC, which need '.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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 printf %s "checking for ${ac_tool_prefix}file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 printf "%s\n" "$MAGIC_CMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 printf %s "checking for file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 printf "%s\n" "$MAGIC_CMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test ${lt_cv_prog_compiler_rtti_exceptions+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 printf "%s\n" "$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' ;; # flang / f18. f95 an alias for gfortran or flang on Debian flang* | f18* | f95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if test ${lt_cv_prog_compiler_pic_works+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 printf "%s\n" "$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\" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test ${lt_cv_prog_compiler_static_works+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } if test yes = "$lt_cv_prog_compiler_static_works"; then : else lt_prog_compiler_static= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 printf "%s\n" "$hard_links" >&6; } if test no = "$hard_links"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 printf %s "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++ and ICC port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++ or Intel C++ Compiler. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 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 file_list_spec='@' ;; 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*) hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 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 == "L") || (\$ 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 test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam \ 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 test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam \ 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++ or Intel C++ Compiler. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl* | icl*) # Native MSVC or ICC 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 and ICC 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* | midnightbsd*) 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) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 printf %s "checking if $CC understands -b... " >&6; } if test ${lt_cv_prog_compiler__b+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 printf "%s\n" "$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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if test ${lt_cv_irix_exported_symbol+y} then : printf %s "(cached) " >&6 else $as_nop 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 $as_nop lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 printf "%s\n" "$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' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' ;; 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 file_list_spec='@' ;; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 printf "%s\n" "$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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc+y} then : printf %s "(cached) " >&6 else $as_nop $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=$? printf "%s\n" "$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=$? printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 printf %s "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* | *,icl*) # Native MSVC or ICC 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 and ICC 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* | midnightbsd*) # 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 test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; 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.beam \ 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes else $as_nop ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$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_nop 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_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 printf %s "checking for shl_load in -ldld... " >&6; } if test ${ac_cv_lib_dld_shl_load+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ char shl_load (); int main (void) { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_shl_load=yes else $as_nop ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 printf "%s\n" "$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 $as_nop 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_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes else $as_nop ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$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_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 printf %s "checking for dlopen in -lsvld... " >&6; } if test ${ac_cv_lib_svld_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_svld_dlopen=yes else $as_nop ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 printf "%s\n" "$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_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 printf %s "checking for dld_link in -ldld... " >&6; } if test ${ac_cv_lib_dld_dld_link+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ char dld_link (); int main (void) { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_dld_link=yes else $as_nop ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 printf "%s\n" "$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" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 printf %s "checking whether a program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self+y} then : printf %s "(cached) " >&6 else $as_nop 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=$? printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 printf "%s\n" "$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\" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self_static+y} then : printf %s "(cached) " >&6 else $as_nop 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=$? printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 printf "%s\n" "$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= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 printf %s "checking whether stripping libraries is possible... " >&6; } if test -z "$STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } else if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then old_striplib="$STRIP --strip-debug" striplib="$STRIP --strip-unneeded" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else case $host_os in darwin*) # FIXME - insert some real tests, host_os isn't really good enough striplib="$STRIP -x" old_striplib="$STRIP -S" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } ;; freebsd*) if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then old_striplib="$STRIP --strip-debug" striplib="$STRIP --strip-unneeded" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } ;; esac fi fi # Report what library types will actually be built { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 printf %s "checking if libtool supports shared libraries... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 printf "%s\n" "$can_build_shared" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 printf "%s\n" "$enable_shared" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 printf %s "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 printf "%s\n" "$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 ac_config_commands="$ac_config_commands libtool" # Only expand once: # Checks for programs. 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 printf "%s\n" "$PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } PKG_CONFIG="" fi fi if test "x$PKG_CONFIG" == "x" then : as_fn_error $? "Please install pkg-config" "$LINENO" 5 fi # Checks for libraries. # Checks for header files. # Checks for typedefs, structures, and compiler characteristics. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes then : else $as_nop printf "%s\n" "#define size_t unsigned int" >>confdefs.h fi # Checks for library functions. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" if test "x$ac_cv_func_pow" = xyes then : printf "%s\n" "#define HAVE_POW 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt" if test "x$ac_cv_func_sqrt" = xyes then : printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h fi # Guess *LD_LIBRARY_PATH variable for make check SYS=other DYLIB_VAR=LD_LIBRARY_PATH case "x$target_os" in xdarwin*|xmacos) DYLIB_VAR=DYLD_LIBRARY_PATH SYS=Darwin ;; *) ;; esac plugin_sfx=so # Used in yorick/stdplug/Makefile # Read Gyoto's pkg-config file (gyoto.pc) pkg_failed=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Gyoto" >&5 printf %s "checking for Gyoto... " >&6; } if test -n "$Gyoto_CFLAGS"; then pkg_cv_Gyoto_CFLAGS="$Gyoto_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gyoto\""; } >&5 ($PKG_CONFIG --exists --print-errors "gyoto") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_Gyoto_CFLAGS=`$PKG_CONFIG --cflags "gyoto" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$Gyoto_LIBS"; then pkg_cv_Gyoto_LIBS="$Gyoto_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gyoto\""; } >&5 ($PKG_CONFIG --exists --print-errors "gyoto") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_Gyoto_LIBS=`$PKG_CONFIG --libs "gyoto" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } 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 Gyoto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gyoto" 2>&1` else Gyoto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gyoto" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$Gyoto_PKG_ERRORS" >&5 as_fn_error $? "gyoto.pc not found or not functional! Possible culprits: is PKG_CONFIG_PATH correct? are all the dependencies specified in gyoto.pc installed? Else call the guru." "$LINENO" 5 elif test $pkg_failed = untried; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } as_fn_error $? "gyoto.pc not found or not functional! Possible culprits: is PKG_CONFIG_PATH correct? are all the dependencies specified in gyoto.pc installed? Else call the guru." "$LINENO" 5 else Gyoto_CFLAGS=$pkg_cv_Gyoto_CFLAGS Gyoto_LIBS=$pkg_cv_Gyoto_LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } YORICK=`$PKG_CONFIG --variable=YORICK gyoto` PYTHON=`$PKG_CONFIG --variable=PYTHON gyoto` SWIG=`$PKG_CONFIG --variable=SWIG gyoto` HOME_LORENE=`$PKG_CONFIG --variable=HOME_LORENE gyoto` LORENECPPFLAGS=`$PKG_CONFIG --variable=LORENECPPFLAGS gyoto` LORENELDFLAGS=`$PKG_CONFIG --variable=LORENELDFLAGS gyoto` GYOTO=`$PKG_CONFIG --variable=GYOTO gyoto` GYOTO_PREFIX=`$PKG_CONFIG --variable=prefix gyoto` GYOTO_EPREFIX=`$PKG_CONFIG --variable=exec_prefix gyoto` Y_INST_HOME=`$PKG_CONFIG --variable=Y_INST_HOME gyoto` Y_INST_SITE=`$PKG_CONFIG --variable=Y_INST_SITE gyoto` # all about the install directories GYOTO_PLUGDIR=` $PKG_CONFIG --variable=GYOTO_PLUGDIR gyoto` GYOTO_SOVERS=` $PKG_CONFIG --variable=GYOTO_SOVERS gyoto` localpkglibdir=`$PKG_CONFIG --variable=localpkglibdir gyoto` # all about the C++ compilers gyoto_MPICXX=`$PKG_CONFIG --variable=MPICXX gyoto` gyoto_CXX=`$PKG_CONFIG --variable=CXX gyoto` fi ## Where shall we install the plug-in? # If the user passes the option --enable-globalinstall, # then install in the same place as the standard plug-ins. # # Else, if gyoto.pc specifies a local install directory, use it (it # will typically be /usr/local/lib/gyoto/SOVERS). # # Else, default to LIBDIR (as can be customized with --libdir). # Check whether --enable-globalinstall was given. if test ${enable_globalinstall+y} then : enableval=$enable_globalinstall; fi if test "x$enable_globalinstall" == xyes then : soverdir=${GYOTO_PLUGDIR} else $as_nop if test "x$localpkglibdir" == x then : soverdir=${libdir} else $as_nop soverdir=${localpkglibdir}/${GYOTO_SOVERS} fi fi # For picky users, allow setting soverdir explicitely, overriding the above: # Check whether --with-soverdir was given. if test ${with_soverdir+y} then : withval=$with_soverdir; if test "x$with_soverdir" != xno then : soverdir=$with_soverdir fi fi # Finally propagate this variable to the Makefiles: ## Which C++ compiler should we use? # gyoto.pc should specify MPICXX and/or CXX. Try them first. 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 "$gyoto_MPICXX" "$gyoto_CXX" 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 printf "%s\n" "$CXX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in "$gyoto_MPICXX" "$gyoto_CXX" 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 printf "%s\n" "$ac_ct_CXX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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. printf "%s\n" "$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\"" printf "%s\n" "$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 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 printf %s "checking whether the compiler supports GNU C++... " >&6; } if test ${ac_cv_cxx_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+y} ac_save_CXXFLAGS=$CXXFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 printf %s "checking whether $CXX accepts -g... " >&6; } if test ${ac_cv_prog_cxx_g+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes else $as_nop CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : else $as_nop ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } if test $ac_test_CXXFLAGS; 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_prog_cxx_stdcxx=no if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 printf %s "checking for $CXX option to enable C++11 features... " >&6; } if test ${ac_cv_prog_cxx_cxx11+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cxx_cxx11=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_cxx_conftest_cxx11_program _ACEOF for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA do CXX="$ac_save_CXX $ac_arg" if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_cxx11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx11" != "xno" && break done rm -f conftest.$ac_ext CXX=$ac_save_CXX fi if test "x$ac_cv_prog_cxx_cxx11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cxx_cxx11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } CXX="$CXX $ac_cv_prog_cxx_cxx11" fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 ac_prog_cxx_stdcxx=cxx11 fi fi if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 printf %s "checking for $CXX option to enable C++98 features... " >&6; } if test ${ac_cv_prog_cxx_cxx98+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cxx_cxx98=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_cxx_conftest_cxx98_program _ACEOF for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA do CXX="$ac_save_CXX $ac_arg" if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_cxx98=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx98" != "xno" && break done rm -f conftest.$ac_ext CXX=$ac_save_CXX fi if test "x$ac_cv_prog_cxx_cxx98" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cxx_cxx98" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } CXX="$CXX $ac_cv_prog_cxx_cxx98" fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 ac_prog_cxx_stdcxx=cxx98 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= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CXX_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 printf "%s\n" "$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 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 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 printf %s "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if test ${ac_cv_prog_CXXCPP+y} then : printf %s "(cached) " >&6 else $as_nop # Double quotes because $CXX needs to be expanded for CXXCPP in "$CXX -E" cpp /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. # 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. */ #include Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : else $as_nop # 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 $as_nop # 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 printf "%s\n" "$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. # 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. */ #include Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : else $as_nop # 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 $as_nop # 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_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else $as_nop with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 printf %s "checking for GNU ld... " >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 printf %s "checking for non-GNU ld... " >&6; } fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 else $as_nop 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 printf "%s\n" "$LD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 printf %s "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 test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam \ 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 test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam \ 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* | ,icl* | no,icl*) # Native MSVC or ICC # 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 file_list_spec_CXX='@' ;; 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* | midnightbsd*) # 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 printf "%s\n" "$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=$? printf "%s\n" "$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* | midnightbsd*) # 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic_CXX+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } if test ${lt_cv_prog_compiler_pic_works_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 printf "%s\n" "$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\" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test ${lt_cv_prog_compiler_static_works_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 printf "%s\n" "$hard_links" >&6; } if test no = "$hard_links"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 printf %s "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 == "L") || (\$ 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* | icl*) 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 printf "%s\n" "$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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc_CXX+y} then : printf %s "(cached) " >&6 else $as_nop $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=$? printf "%s\n" "$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=$? printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX ;; esac fi ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 printf %s "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* | *,icl*) # Native MSVC or ICC 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 and ICC 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* | midnightbsd*) # 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 test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; 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.beam \ 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 printf "%s\n" "$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 mySUBDIRS="lib" ac_config_files="$ac_config_files Makefile lib/Makefile bin/gyoto" 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_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$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+y} || &/ 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 printf "%s\n" "$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}' # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' :mline /\\$/{ N s,\\\n,, b mline } t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g t quote s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g t quote b any :quote s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g s/\[/\\&/g s/\]/\\&/g s/\$/$$/g H :any ${ g s/^\n// s/\n/ /g p } ' DEFS=`sed -n "$ac_script" confdefs.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=`printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 printf "%s\n" "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= 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 : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 printf "%s\n" "$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 as_nop=: if test ${ZSH_VERSION+y} && (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 $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; 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 # 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # 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 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$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_nop 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_nop 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 || printf "%s\n" 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 # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. 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 # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' 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=`printf "%s\n" "$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 || printf "%s\n" 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 gyoto-null $as_me 0.0.0, which was generated by GNU Autoconf 2.71. 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 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" 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 Configuration files: $config_files Configuration commands: $config_commands Report bugs to ." _ACEOF ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ gyoto-null config.status 0.0.0 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" Copyright (C) 2021 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 ) printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --he | --h | --help | --hel | -h ) printf "%s\n" "$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 \printf "%s\n" "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 printf "%s\n" "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" # 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' 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"`' FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $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"`' DLLTOOL='`$ECHO "$DLLTOOL" | $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"`' lt_ar_flags='`$ECHO "$lt_ar_flags" | $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 SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ FILECMD \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ DLLTOOL \ sharedlib_from_linklib_cmd \ AR \ 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 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; "bin/gyoto") CONFIG_FILES="$CONFIG_FILES bin/gyoto" ;; *) 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+y} || CONFIG_FILES=$config_files test ${CONFIG_COMMANDS+y} || 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" eval set X " :F $CONFIG_FILES :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=`printf "%s\n" "$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 '` printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`printf "%s\n" "$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 || printf "%s\n" 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=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$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@*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 printf "%s\n" "$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"; } && { printf "%s\n" "$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 printf "%s\n" "$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 ;; :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 printf "%s\n" "$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. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. case $CONFIG_FILES in #( *\'*) : eval set x "$CONFIG_FILES" ;; #( *) : set x $CONFIG_FILES ;; #( *) : ;; esac shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`$as_dirname -- "$am_mf" || $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$am_mf" : 'X\(//\)[^/]' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` am_filepart=`$as_basename -- "$am_mf" || $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$am_mf" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` { echo "$as_me:$LINENO: cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles" >&5 (cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). See \`config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} { am_mf=; unset am_mf;} { am_rc=; unset am_rc;} rm -f conftest-deps.mk } ;; "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 # 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 # A file(cmd) program that detects file types. FILECMD=$lt_FILECMD # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # 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 # DLL creation program. DLLTOOL=$lt_DLLTOOL # 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 (by configure). lt_ar_flags=$lt_ar_flags # Flags to create an archive. AR_FLAGS=\${ARFLAGS-"\$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 ;; "Makefile":F) test -e bin/gyoto && chmod a+x bin/gyoto ;; "lib/Makefile":F) test -e bin/gyoto && chmod a+x bin/gyoto ;; "bin/gyoto":F) test -e bin/gyoto && chmod a+x bin/gyoto ;; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi Gyoto-2.0.2/plugins/null/configure.ac000066400000000000000000000101101455254334400175370ustar00rootroot00000000000000# Whenever this file is edited, reprocess it with autoreconf, then re-run ./configure AC_PREREQ([2.71]) # Choose a good name: replace `null' with your own name. # Also change the e-mail address to your own. AC_INIT([gyoto-null],[0.0.0],[gyoto@sympa.obspm.fr]) # Below, give the name of some file that will stay in you source tree. AC_CONFIG_SRCDIR([include/GyotoNull.h]) AC_CANONICAL_TARGET AM_INIT_AUTOMAKE AC_CONFIG_MACRO_DIRS([m4]) LT_INIT # Checks for programs. AC_PROG_INSTALL PKG_PROG_PKG_CONFIG([]) AS_IF([test "x$PKG_CONFIG" == "x"], [AC_MSG_ERROR([Please install pkg-config])]) # Checks for libraries. # Checks for header files. # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_SIZE_T # Checks for library functions. AC_CHECK_FUNCS([pow sqrt]) # Guess *LD_LIBRARY_PATH variable for make check AC_SUBST([target_os]) SYS=other DYLIB_VAR=LD_LIBRARY_PATH case "x$target_os" in xdarwin*|xmacos) DYLIB_VAR=DYLD_LIBRARY_PATH SYS=Darwin ;; *) ;; esac plugin_sfx=so AC_SUBST([DYLIB_VAR]) # Used in yorick/stdplug/Makefile AC_SUBST([SYS]) AC_SUBST([plugin_sfx]) # Read Gyoto's pkg-config file (gyoto.pc) PKG_CHECK_MODULES([Gyoto], [gyoto], [AC_SUBST([YORICK], [`$PKG_CONFIG --variable=YORICK gyoto`]) AC_SUBST([PYTHON], [`$PKG_CONFIG --variable=PYTHON gyoto`]) AC_SUBST([SWIG], [`$PKG_CONFIG --variable=SWIG gyoto`]) AC_SUBST([HOME_LORENE], [`$PKG_CONFIG --variable=HOME_LORENE gyoto`]) AC_SUBST([LORENECPPFLAGS],[`$PKG_CONFIG --variable=LORENECPPFLAGS gyoto`]) AC_SUBST([LORENELDFLAGS], [`$PKG_CONFIG --variable=LORENELDFLAGS gyoto`]) AC_SUBST([GYOTO], [`$PKG_CONFIG --variable=GYOTO gyoto`]) AC_SUBST([GYOTO_PREFIX], [`$PKG_CONFIG --variable=prefix gyoto`]) AC_SUBST([GYOTO_EPREFIX], [`$PKG_CONFIG --variable=exec_prefix gyoto`]) AC_SUBST([Y_INST_HOME], [`$PKG_CONFIG --variable=Y_INST_HOME gyoto`]) AC_SUBST([Y_INST_SITE], [`$PKG_CONFIG --variable=Y_INST_SITE gyoto`]) # all about the install directories GYOTO_PLUGDIR=` $PKG_CONFIG --variable=GYOTO_PLUGDIR gyoto` GYOTO_SOVERS=` $PKG_CONFIG --variable=GYOTO_SOVERS gyoto` localpkglibdir=`$PKG_CONFIG --variable=localpkglibdir gyoto` # all about the C++ compilers gyoto_MPICXX=`$PKG_CONFIG --variable=MPICXX gyoto` gyoto_CXX=`$PKG_CONFIG --variable=CXX gyoto` ], [AC_MSG_ERROR([gyoto.pc not found or not functional! Possible culprits: is PKG_CONFIG_PATH correct? are all the dependencies specified in gyoto.pc installed? Else call the guru.])] ) ## Where shall we install the plug-in? # If the user passes the option --enable-globalinstall, # then install in the same place as the standard plug-ins. # # Else, if gyoto.pc specifies a local install directory, use it (it # will typically be /usr/local/lib/gyoto/SOVERS). # # Else, default to LIBDIR (as can be customized with --libdir). AC_ARG_ENABLE(globalinstall, [AS_HELP_STRING(--enable-globalinstall, [install the plug-in in the global system directory instead of the local tree])]) AS_IF([test "x$enable_globalinstall" == xyes], [soverdir=${GYOTO_PLUGDIR}], [AS_IF([test "x$localpkglibdir" == x], [soverdir=${libdir}], [soverdir=${localpkglibdir}/${GYOTO_SOVERS}])]) # For picky users, allow setting soverdir explicitely, overriding the above: AC_ARG_WITH(soverdir, [AS_HELP_STRING([--with-soverdir=SOVERDIR], [install the plug-in exactly in SOVERDIR. By default, use instructions from gyoto.pc or default to LIBDIR (see --enable-globalinstall)])], [AS_IF([test "x$with_soverdir" != xno], [soverdir=$with_soverdir])]) # Finally propagate this variable to the Makefiles: AC_SUBST(soverdir) ## Which C++ compiler should we use? # gyoto.pc should specify MPICXX and/or CXX. Try them first. AC_PROG_CXX(["$gyoto_MPICXX" "$gyoto_CXX" g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC]) mySUBDIRS="lib" AC_CONFIG_FILES([Makefile lib/Makefile bin/gyoto], [test -e bin/gyoto && chmod a+x bin/gyoto]) AC_SUBST([mySUBDIRS]) AC_OUTPUT Gyoto-2.0.2/plugins/null/depcomp000077700000000000000000000000001455254334400206252../../depcompustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/doc/000077500000000000000000000000001455254334400160255ustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/doc/doxyfile000066400000000000000000001737161455254334400176120ustar00rootroot00000000000000# Doxyfile 1.5.8 # 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 a sequence of words surrounded # by quotes) that should identify the project. PROJECT_NAME = Gyoto # 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 = # 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, 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-Cyrilic, Slovak, Slovene, # Spanish, Swedish, and Ukrainian. 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 = # 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 = YES # 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 = # 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 is your file systems # 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 = # 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 = NO # 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, C#, 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 EXTENSION_MAPPING = h=C++ C=C++ # 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 make 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 to 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 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 penality. # 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 rougly 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 #--------------------------------------------------------------------------- # 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 = NO # If the EXTRACT_PRIVATE tag is set to YES all private members of a class # will be included in the documentation. EXTRACT_PRIVATE = NO # 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 namespace 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 = NO # 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 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_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 # 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 define 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 defines 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 = #--------------------------------------------------------------------------- # 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 # This WARN_NO_PARAMDOC option can be abled 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 # 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++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx # *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 FILE_PATTERNS = # 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 # 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. EXCLUDE = # The EXCLUDE_SYMLINKS tag can be used select whether or not files or # directories that are symbolic links (a Unix filesystem 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 = # 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 = images # 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, INPUT_FILTER # is applied to all files. 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 #--------------------------------------------------------------------------- # 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 = NO # 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 = NO # 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. 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 # stylesheet in the HTML output directory as well, or it will be erased! HTML_STYLESHEET = # 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 # 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 = # 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 = # The DISABLE_INDEX tag can be used to turn on/off the condensed index at # top of each HTML page. The value NO (the default) enables the index and # the value YES disables it. DISABLE_INDEX = NO # This tag can be used to set the number of enum values (range [1..20]) # that doxygen will group on one line in the generated HTML documentation. ENUM_VALUES_PER_LINE = 4 # 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 FRAME, 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 (for instance Mozilla 1.0+, # Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are # probably better off using the HTML help feature. Other possible values # for this tag are: HIERARCHIES, which will generate the Groups, Directories, # and Class Hierarchy pages using a tree view instead of an ordered list; # ALL, which combines the behavior of FRAME and HIERARCHIES; and NONE, which # disables this behavior completely. For backwards compatibility with previous # releases of Doxygen, the values YES and NO are equivalent to FRAME and NONE # respectively. GENERATE_TREEVIEW = NONE # 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 # 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 #--------------------------------------------------------------------------- # 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. 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, a4wide, letter, legal and # executive. If left blank a4wide will be used. PAPER_TYPE = a4wide # 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 = # 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 = YES # 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 = YES # 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 #--------------------------------------------------------------------------- # 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 stylesheet 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 # in the INCLUDE_PATH (see below) will be search if 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. EXPAND_AS_DEFINED = # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then # doxygen's preprocessor will remove all function-like macros that are alone # on a line, have an all uppercase name, and do not end with a semicolon. Such # function macros are typically used for boiler-plate code, and 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 = # 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 is superseded by the HAVE_DOT option below. This is only a # fallback. 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 # By default doxygen will write a font called FreeSans.ttf to the output # directory and reference it in all dot files that doxygen generates. This # font does not include all possible unicode characters however, so when you need # these (or just want a differently looking font) you can specify the font name # using DOT_FONTNAME. You need 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 = FreeSans # 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 output directory to look for the # FreeSans.ttf font (which doxygen will put there itself). If you specify a # different font using DOT_FONTNAME you can set the path where dot # can find it using this tag. 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 # 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 = NO # 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 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 png, jpg, or gif # If left blank png will be used. DOT_IMAGE_FORMAT = png # 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 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 #--------------------------------------------------------------------------- # Options 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 Gyoto-2.0.2/plugins/null/include/000077500000000000000000000000001455254334400167035ustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/include/GyotoNull.h000066400000000000000000000030131455254334400210050ustar00rootroot00000000000000/* Copyright © 2016 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ /** * \file GyotoNull.h * \brief Null Astrobj, just for investigating geodesics * * The target of ray-traced Gyoto::Photon */ #ifndef __GyotoNullAstrobj_H_ #define __GyotoNullAstrobj_H_ #include #include #include namespace Gyoto{ namespace Astrobj { class Null; } class FactoryMessenger; namespace Spectrum { class Generic; } } #include #include /** * \class Gyoto::Null. * \brief Empty Astrobj * * The target of ray-traced Gyoto::Photon */ class Gyoto::Astrobj::Null : public Astrobj::Generic { friend class Gyoto::SmartPointer; public: Null(); Null(const Null& o); virtual Null * clone() const ; virtual ~Null() ; virtual int Impact(Photon *ph, size_t index, Astrobj::Properties *data=NULL); }; #endif Gyoto-2.0.2/plugins/null/install-sh000077700000000000000000000000001455254334400217032../../install-shustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/lib/000077500000000000000000000000001455254334400160265ustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/lib/InitPlug.C000066400000000000000000000020601455254334400176630ustar00rootroot00000000000000/* Copyright © 2016 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ // #include all headers necessary to register subcontractors below #include "GyotoNull.h" using namespace Gyoto; // Rename replace "null" with actual name of plug-in in the init // function name below: extern "C" void __GyotonullInit() { // Register subcontractors for all new classes Astrobj::Register("Null", &Astrobj::Subcontractor); } Gyoto-2.0.2/plugins/null/lib/Makefile.am000066400000000000000000000012721455254334400200640ustar00rootroot00000000000000# Whenever this file is edited, reprocess it with autoreconf, then # re-run the configure script. ACLOCAL_AMFLAGS = -I m4 # Add $(LORENECPPFLAGS) and $(LORENELDFLAGS) or other flags as needed. # Unless your plug-in needs some deprecated method names, specify # -DGYOTO_NO_DEPRECATED. AM_CPPFLAGS = -I@top_srcdir@/include $(XERCESCPPFLAGS) AM_LDFLAGS = $(Gyoto_LDFLAGS) -module -export-dynamic -shared -avoid-version AM_CXXFLAGS = $(Gyoto_CFLAGS) -DGYOTO_NO_DEPRECATED # Replace all occurrences of null below by the actual name of the # plug-in. # List all the C++ source files in libgyoto__la_SOURCES. sover_LTLIBRARIES = libgyoto-null.la libgyoto_null_la_SOURCES = Null.C InitPlug.C Gyoto-2.0.2/plugins/null/lib/Makefile.in000066400000000000000000000526241455254334400201040ustar00rootroot00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ # Whenever this file is edited, reprocess it with autoreconf, then # re-run the configure script. 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@ target_triplet = @target@ subdir = lib ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(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 $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = 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)$(soverdir)" LTLIBRARIES = $(sover_LTLIBRARIES) libgyoto_null_la_LIBADD = am_libgyoto_null_la_OBJECTS = Null.lo InitPlug.lo libgyoto_null_la_OBJECTS = $(am_libgyoto_null_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = 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 = DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/InitPlug.Plo ./$(DEPDIR)/Null.Plo am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(libgyoto_null_la_SOURCES) DIST_SOURCES = $(libgyoto_null_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # 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)` am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DYLIB_VAR = @DYLIB_VAR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FILECMD = @FILECMD@ GREP = @GREP@ GYOTO = @GYOTO@ GYOTO_EPREFIX = @GYOTO_EPREFIX@ GYOTO_PREFIX = @GYOTO_PREFIX@ Gyoto_CFLAGS = @Gyoto_CFLAGS@ Gyoto_LIBS = @Gyoto_LIBS@ HOME_LORENE = @HOME_LORENE@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LORENECPPFLAGS = @LORENECPPFLAGS@ LORENELDFLAGS = @LORENELDFLAGS@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ 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@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PYTHON = @PYTHON@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SWIG = @SWIG@ SYS = @SYS@ VERSION = @VERSION@ YORICK = @YORICK@ Y_INST_HOME = @Y_INST_HOME@ Y_INST_SITE = @Y_INST_SITE@ 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@ mySUBDIRS = @mySUBDIRS@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ plugin_sfx = @plugin_sfx@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ soverdir = @soverdir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ACLOCAL_AMFLAGS = -I m4 # Add $(LORENECPPFLAGS) and $(LORENELDFLAGS) or other flags as needed. # Unless your plug-in needs some deprecated method names, specify # -DGYOTO_NO_DEPRECATED. AM_CPPFLAGS = -I@top_srcdir@/include $(XERCESCPPFLAGS) AM_LDFLAGS = $(Gyoto_LDFLAGS) -module -export-dynamic -shared -avoid-version AM_CXXFLAGS = $(Gyoto_CFLAGS) -DGYOTO_NO_DEPRECATED # Replace all occurrences of null below by the actual name of the # plug-in. # List all the C++ source files in libgyoto__la_SOURCES. sover_LTLIBRARIES = libgyoto-null.la libgyoto_null_la_SOURCES = Null.C InitPlug.C all: all-am .SUFFIXES: .SUFFIXES: .C .lo .o .obj $(srcdir)/Makefile.in: $(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) --gnu lib/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu lib/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__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-soverLTLIBRARIES: $(sover_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(sover_LTLIBRARIES)'; test -n "$(soverdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(soverdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(soverdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(soverdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(soverdir)"; \ } uninstall-soverLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(sover_LTLIBRARIES)'; test -n "$(soverdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(soverdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(soverdir)/$$f"; \ done clean-soverLTLIBRARIES: -test -z "$(sover_LTLIBRARIES)" || rm -f $(sover_LTLIBRARIES) @list='$(sover_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libgyoto-null.la: $(libgyoto_null_la_OBJECTS) $(libgyoto_null_la_DEPENDENCIES) $(EXTRA_libgyoto_null_la_DEPENDENCIES) $(AM_V_CXXLD)$(CXXLINK) -rpath $(soverdir) $(libgyoto_null_la_OBJECTS) $(libgyoto_null_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/InitPlug.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Null.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .C.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .C.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .C.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(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-am 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" cscopelist: cscopelist-am 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 distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(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 check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(soverdir)"; 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: 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-generic clean-libtool clean-soverLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/InitPlug.Plo -rm -f ./$(DEPDIR)/Null.Plo -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-soverLTLIBRARIES install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/InitPlug.Plo -rm -f ./$(DEPDIR)/Null.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-soverLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-soverLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags 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-soverLTLIBRARIES install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-soverLTLIBRARIES .PRECIOUS: Makefile # 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: Gyoto-2.0.2/plugins/null/lib/Null.C000066400000000000000000000017621455254334400170520ustar00rootroot00000000000000/* Copyright © 2016 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoNull.h" using namespace Gyoto; using namespace Gyoto::Astrobj; Null::Null() : Generic("Null") {} Null::Null(const Null& o) : Generic(o){} Null * Null::clone() const { return new Null(*this); } Null::~Null() {} int Null::Impact(Photon *, size_t , Astrobj::Properties *) {return 0;} Gyoto-2.0.2/plugins/null/ltmain.sh000077500000000000000000012132011455254334400171030ustar00rootroot00000000000000#! /usr/bin/env sh ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in ## by inline-source v2019-02-19.15 # libtool (GNU libtool) 2.4.7 # Provide generalized library-building support services. # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996-2019, 2021-2022 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 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 . PROGRAM=libtool PACKAGE=libtool VERSION="2.4.7 Debian-2.4.7-5" package_revision=2.4.7 ## ------ ## ## Usage. ## ## ------ ## # Run './libtool --help' for help with using this script from the # command line. ## ------------------------------- ## ## User overridable command paths. ## ## ------------------------------- ## # After configure completes, it has a better idea of some of the # shell tools we need than the defaults used by the functions shared # with bootstrap, so set those here where they can still be over- # ridden by the user, but otherwise take precedence. : ${AUTOCONF="autoconf"} : ${AUTOMAKE="automake"} ## -------------------------- ## ## Source external libraries. ## ## -------------------------- ## # Much of our low-level functionality needs to be sourced from external # libraries, which are installed to $pkgauxdir. # Set a version string for this script. scriptversion=2019-02-19.15; # UTC # General shell script boiler plate, and helper functions. # Written by Gary V. Vaughan, 2004 # This is free software. There is NO warranty; not even for # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # Copyright (C) 2004-2019, 2021 Bootstrap Authors # # This file is dual licensed under the terms of the MIT license # , and GPL version 2 or later # . You must apply one of # these licenses when using or redistributing this software or any of # the files within it. See the URLs above, or the file `LICENSE` # included in the Bootstrap distribution for the full license texts. # Please report bugs or propose patches to: # ## ------ ## ## Usage. ## ## ------ ## # Evaluate this file near the top of your script to gain access to # the functions and variables defined here: # # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh # # If you need to override any of the default environment variable # settings, do that before evaluating this file. ## -------------------- ## ## Shell normalisation. ## ## -------------------- ## # Some shells need a little help to be as Bourne compatible as possible. # Before doing anything else, make sure all that help has been provided! 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 # NLS nuisances: We save the old values in case they are required later. _G_user_locale= _G_safe_locale= for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test set = \"\${$_G_var+set}\"; then save_$_G_var=\$$_G_var $_G_var=C export $_G_var _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\" _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\" fi" done # These NLS vars are set unconditionally (bootstrap issue #24). Unset those # in case the environment reset is needed later and the $save_* variant is not # defined (see the code above). LC_ALL=C LANGUAGE=C export LANGUAGE LC_ALL # Make sure IFS has a sensible default sp=' ' nl=' ' IFS="$sp $nl" # There are apparently some retarded systems that use ';' as a PATH separator! 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 # func_unset VAR # -------------- # Portably unset VAR. # In some shells, an 'unset VAR' statement leaves a non-zero return # status if VAR is already unset, which might be problematic if the # statement is used at the end of a function (thus poisoning its return # value) or when 'set -e' is active (causing even a spurious abort of # the script in this case). func_unset () { { eval $1=; (eval unset $1) >/dev/null 2>&1 && eval unset $1 || : ; } } # Make sure CDPATH doesn't cause `cd` commands to output the target dir. func_unset CDPATH # Make sure ${,E,F}GREP behave sanely. func_unset GREP_OPTIONS ## ------------------------- ## ## Locate command utilities. ## ## ------------------------- ## # func_executable_p FILE # ---------------------- # Check that FILE is an executable regular file. func_executable_p () { test -f "$1" && test -x "$1" } # func_path_progs PROGS_LIST CHECK_FUNC [PATH] # -------------------------------------------- # Search for either a program that responds to --version with output # containing "GNU", or else returned by CHECK_FUNC otherwise, by # trying all the directories in PATH with each of the elements of # PROGS_LIST. # # CHECK_FUNC should accept the path to a candidate program, and # set $func_check_prog_result if it truncates its output less than # $_G_path_prog_max characters. func_path_progs () { _G_progs_list=$1 _G_check_func=$2 _G_PATH=${3-"$PATH"} _G_path_prog_max=0 _G_path_prog_found=false _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:} for _G_dir in $_G_PATH; do IFS=$_G_save_IFS test -z "$_G_dir" && _G_dir=. for _G_prog_name in $_G_progs_list; do for _exeext in '' .EXE; do _G_path_prog=$_G_dir/$_G_prog_name$_exeext func_executable_p "$_G_path_prog" || continue case `"$_G_path_prog" --version 2>&1` in *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;; *) $_G_check_func $_G_path_prog func_path_progs_result=$func_check_prog_result ;; esac $_G_path_prog_found && break 3 done done done IFS=$_G_save_IFS test -z "$func_path_progs_result" && { echo "no acceptable sed could be found in \$PATH" >&2 exit 1 } } # We want to be able to use the functions in this file before configure # has figured out where the best binaries are kept, which means we have # to search for them ourselves - except when the results are already set # where we skip the searches. # Unless the user overrides by setting SED, search the path for either GNU # sed, or the sed that truncates its output the least. test -z "$SED" && { _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for _G_i in 1 2 3 4 5 6 7; do _G_sed_script=$_G_sed_script$nl$_G_sed_script done echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed _G_sed_script= func_check_prog_sed () { _G_path_prog=$1 _G_count=0 printf 0123456789 >conftest.in while : do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo '' >> conftest.nl "$_G_path_prog" -f conftest.sed conftest.out 2>/dev/null || break diff conftest.out conftest.nl >/dev/null 2>&1 || break _G_count=`expr $_G_count + 1` if test "$_G_count" -gt "$_G_path_prog_max"; then # Best one so far, save it but keep looking for a better one func_check_prog_result=$_G_path_prog _G_path_prog_max=$_G_count fi # 10*(2^10) chars as input seems more than enough test 10 -lt "$_G_count" && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out } func_path_progs "sed gsed" func_check_prog_sed "$PATH:/usr/xpg4/bin" rm -f conftest.sed SED=$func_path_progs_result } # Unless the user overrides by setting GREP, search the path for either GNU # grep, or the grep that truncates its output the least. test -z "$GREP" && { func_check_prog_grep () { _G_path_prog=$1 _G_count=0 _G_path_prog_max=0 printf 0123456789 >conftest.in while : do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo 'GREP' >> conftest.nl "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' conftest.out 2>/dev/null || break diff conftest.out conftest.nl >/dev/null 2>&1 || break _G_count=`expr $_G_count + 1` if test "$_G_count" -gt "$_G_path_prog_max"; then # Best one so far, save it but keep looking for a better one func_check_prog_result=$_G_path_prog _G_path_prog_max=$_G_count fi # 10*(2^10) chars as input seems more than enough test 10 -lt "$_G_count" && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out } func_path_progs "grep ggrep" func_check_prog_grep "$PATH:/usr/xpg4/bin" GREP=$func_path_progs_result } ## ------------------------------- ## ## User overridable command paths. ## ## ------------------------------- ## # All uppercase variable names are used for environment variables. These # variables can be overridden by the user before calling a script that # uses them if a suitable command of that name is not already available # in the command search PATH. : ${CP="cp -f"} : ${ECHO="printf %s\n"} : ${EGREP="$GREP -E"} : ${FGREP="$GREP -F"} : ${LN_S="ln -s"} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} ## -------------------- ## ## Useful sed snippets. ## ## -------------------- ## sed_dirname='s|/[^/]*$||' sed_basename='s|^.*/||' # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s|\([`"$\\]\)|\\\1|g' # Same as above, but do not quote variable references. sed_double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution that turns a string into a regex matching for the # string literally. sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g' # Sed substitution that converts a w32 file name or path # that contains forward slashes, into one that contains # (escaped) backslashes. A very naive implementation. sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Re-'\' parameter expansions in output of sed_double_quote_subst that # were '\'-ed in input to the same. If an odd number of '\' preceded a # '$' in input to sed_double_quote_subst, that '$' was protected from # expansion. Since each input '\' is now two '\'s, look for any number # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'. _G_bs='\\' _G_bs2='\\\\' _G_bs4='\\\\\\\\' _G_dollar='\$' sed_double_backslash="\ s/$_G_bs4/&\\ /g s/^$_G_bs2$_G_dollar/$_G_bs&/ s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g s/\n//g" # require_check_ifs_backslash # --------------------------- # Check if we can use backslash as IFS='\' separator, and set # $check_ifs_backshlash_broken to ':' or 'false'. require_check_ifs_backslash=func_require_check_ifs_backslash func_require_check_ifs_backslash () { _G_save_IFS=$IFS IFS='\' _G_check_ifs_backshlash='a\\b' for _G_i in $_G_check_ifs_backshlash do case $_G_i in a) check_ifs_backshlash_broken=false ;; '') break ;; *) check_ifs_backshlash_broken=: break ;; esac done IFS=$_G_save_IFS require_check_ifs_backslash=: } ## ----------------- ## ## Global variables. ## ## ----------------- ## # Except for the global variables explicitly listed below, the following # functions in the '^func_' namespace, and the '^require_' namespace # variables initialised in the 'Resource management' section, sourcing # this file will not pollute your global namespace with anything # else. There's no portable way to scope variables in Bourne shell # though, so actually running these functions will sometimes place # results into a variable named after the function, and often use # temporary variables in the '^_G_' namespace. If you are careful to # avoid using those namespaces casually in your sourcing script, things # should continue to work as you expect. And, of course, you can freely # overwrite any of the functions or variables defined here before # calling anything to customize them. EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. # Allow overriding, eg assuming that you follow the convention of # putting '$debug_cmd' at the start of all your functions, you can get # bash to show function call trace with: # # debug_cmd='echo "${FUNCNAME[0]} $*" >&2' bash your-script-name debug_cmd=${debug_cmd-":"} exit_cmd=: # By convention, finish your script with: # # exit $exit_status # # so that you can set exit_status to non-zero if you want to indicate # something went wrong during execution without actually bailing out at # the point of failure. exit_status=$EXIT_SUCCESS # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath=$0 # The name of this program. progname=`$ECHO "$progpath" |$SED "$sed_basename"` # Make sure we have an absolute progpath for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=`$ECHO "$progpath" |$SED "$sed_dirname"` progdir=`cd "$progdir" && pwd` progpath=$progdir/$progname ;; *) _G_IFS=$IFS IFS=${PATH_SEPARATOR-:} for progdir in $PATH; do IFS=$_G_IFS test -x "$progdir/$progname" && break done IFS=$_G_IFS test -n "$progdir" || progdir=`pwd` progpath=$progdir/$progname ;; esac ## ----------------- ## ## Standard options. ## ## ----------------- ## # The following options affect the operation of the functions defined # below, and should be set appropriately depending on run-time para- # meters passed on the command line. opt_dry_run=false opt_quiet=false opt_verbose=false # Categories 'all' and 'none' are always available. Append any others # you will pass as the first argument to func_warning from your own # code. warning_categories= # By default, display warnings according to 'opt_warning_types'. Set # 'warning_func' to ':' to elide all warnings, or func_fatal_error to # treat the next displayed warning as a fatal error. warning_func=func_warn_and_continue # Set to 'all' to display all warnings, 'none' to suppress all # warnings, or a space delimited list of some subset of # 'warning_categories' to display only the listed warnings. opt_warning_types=all ## -------------------- ## ## Resource management. ## ## -------------------- ## # This section contains definitions for functions that each ensure a # particular resource (a file, or a non-empty configuration variable for # example) is available, and if appropriate to extract default values # from pertinent package files. Call them using their associated # 'require_*' variable to ensure that they are executed, at most, once. # # It's entirely deliberate that calling these functions can set # variables that don't obey the namespace limitations obeyed by the rest # of this file, in order that that they be as useful as possible to # callers. # require_term_colors # ------------------- # Allow display of bold text on terminals that support it. require_term_colors=func_require_term_colors func_require_term_colors () { $debug_cmd test -t 1 && { # COLORTERM and USE_ANSI_COLORS environment variables take # precedence, because most terminfo databases neglect to describe # whether color sequences are supported. test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"} if test 1 = "$USE_ANSI_COLORS"; then # Standard ANSI escape sequences tc_reset='' tc_bold=''; tc_standout='' tc_red=''; tc_green='' tc_blue=''; tc_cyan='' else # Otherwise trust the terminfo database after all. test -n "`tput sgr0 2>/dev/null`" && { tc_reset=`tput sgr0` test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold` tc_standout=$tc_bold test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso` test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1` test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2` test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4` test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5` } fi } require_term_colors=: } ## ----------------- ## ## Function library. ## ## ----------------- ## # This section contains a variety of useful functions to call in your # scripts. Take note of the portable wrappers for features provided by # some modern shells, which will fall back to slower equivalents on # less featureful shells. # func_append VAR VALUE # --------------------- # Append VALUE onto the existing contents of VAR. # We should try to minimise forks, especially on Windows where they are # unreasonably slow, so skip the feature probes when bash or zsh are # being used: if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then : ${_G_HAVE_ARITH_OP="yes"} : ${_G_HAVE_XSI_OPS="yes"} # The += operator was introduced in bash 3.1 case $BASH_VERSION in [12].* | 3.0 | 3.0*) ;; *) : ${_G_HAVE_PLUSEQ_OP="yes"} ;; esac fi # _G_HAVE_PLUSEQ_OP # Can be empty, in which case the shell is probed, "yes" if += is # useable or anything else if it does not work. test -z "$_G_HAVE_PLUSEQ_OP" \ && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \ && _G_HAVE_PLUSEQ_OP=yes if test yes = "$_G_HAVE_PLUSEQ_OP" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_append () { $debug_cmd eval "$1+=\$2" }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_append () { $debug_cmd eval "$1=\$$1\$2" } fi # func_append_quoted VAR VALUE # ---------------------------- # Quote VALUE and append to the end of shell variable VAR, separated # by a space. if test yes = "$_G_HAVE_PLUSEQ_OP"; then eval 'func_append_quoted () { $debug_cmd func_quote_arg pretty "$2" eval "$1+=\\ \$func_quote_arg_result" }' else func_append_quoted () { $debug_cmd func_quote_arg pretty "$2" eval "$1=\$$1\\ \$func_quote_arg_result" } fi # func_append_uniq VAR VALUE # -------------------------- # Append unique VALUE onto the existing contents of VAR, assuming # entries are delimited by the first character of VALUE. For example: # # func_append_uniq options " --another-option option-argument" # # will only append to $options if " --another-option option-argument " # is not already present somewhere in $options already (note spaces at # each end implied by leading space in second argument). func_append_uniq () { $debug_cmd eval _G_current_value='`$ECHO $'$1'`' _G_delim=`expr "$2" : '\(.\)'` case $_G_delim$_G_current_value$_G_delim in *"$2$_G_delim"*) ;; *) func_append "$@" ;; esac } # func_arith TERM... # ------------------ # Set func_arith_result to the result of evaluating TERMs. test -z "$_G_HAVE_ARITH_OP" \ && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \ && _G_HAVE_ARITH_OP=yes if test yes = "$_G_HAVE_ARITH_OP"; then eval 'func_arith () { $debug_cmd func_arith_result=$(( $* )) }' else func_arith () { $debug_cmd func_arith_result=`expr "$@"` } fi # func_basename FILE # ------------------ # Set func_basename_result to FILE with everything up to and including # the last / stripped. if test yes = "$_G_HAVE_XSI_OPS"; then # If this shell supports suffix pattern removal, then use it to avoid # forking. Hide the definitions single quotes in case the shell chokes # on unsupported syntax... _b='func_basename_result=${1##*/}' _d='case $1 in */*) func_dirname_result=${1%/*}$2 ;; * ) func_dirname_result=$3 ;; esac' else # ...otherwise fall back to using sed. _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`' _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"` if test "X$func_dirname_result" = "X$1"; then func_dirname_result=$3 else func_append func_dirname_result "$2" fi' fi eval 'func_basename () { $debug_cmd '"$_b"' }' # func_dirname FILE APPEND NONDIR_REPLACEMENT # ------------------------------------------- # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. eval 'func_dirname () { $debug_cmd '"$_d"' }' # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT # -------------------------------------------------------- # Perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # For efficiency, we do not delegate to the functions above but instead # duplicate the functionality here. eval 'func_dirname_and_basename () { $debug_cmd '"$_b"' '"$_d"' }' # func_echo ARG... # ---------------- # Echo program name prefixed message. func_echo () { $debug_cmd _G_message=$* func_echo_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_IFS $ECHO "$progname: $_G_line" done IFS=$func_echo_IFS } # func_echo_all ARG... # -------------------- # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } # func_echo_infix_1 INFIX ARG... # ------------------------------ # Echo program name, followed by INFIX on the first line, with any # additional lines not showing INFIX. func_echo_infix_1 () { $debug_cmd $require_term_colors _G_infix=$1; shift _G_indent=$_G_infix _G_prefix="$progname: $_G_infix: " _G_message=$* # Strip color escape sequences before counting printable length for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan" do test -n "$_G_tc" && { _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"` _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"` } done _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes func_echo_infix_1_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_infix_1_IFS $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2 _G_prefix=$_G_indent done IFS=$func_echo_infix_1_IFS } # func_error ARG... # ----------------- # Echo program name prefixed message to standard error. func_error () { $debug_cmd $require_term_colors func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2 } # func_fatal_error ARG... # ----------------------- # Echo program name prefixed message to standard error, and exit. func_fatal_error () { $debug_cmd func_error "$*" exit $EXIT_FAILURE } # func_grep EXPRESSION FILENAME # ----------------------------- # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $debug_cmd $GREP "$1" "$2" >/dev/null 2>&1 } # func_len STRING # --------------- # Set func_len_result to the length of STRING. STRING may not # start with a hyphen. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ && _G_HAVE_XSI_OPS=yes if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_len () { $debug_cmd func_len_result=${#1} }' else func_len () { $debug_cmd func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` } fi # func_mkdir_p DIRECTORY-PATH # --------------------------- # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { $debug_cmd _G_directory_path=$1 _G_dir_list= if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then # Protect directory names starting with '-' case $_G_directory_path in -*) _G_directory_path=./$_G_directory_path ;; esac # While some portion of DIR does not yet exist... while test ! -d "$_G_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. _G_dir_list=$_G_directory_path:$_G_dir_list # If the last portion added has no slash in it, the list is done case $_G_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"` done _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'` func_mkdir_p_IFS=$IFS; IFS=: for _G_dir in $_G_dir_list; do IFS=$func_mkdir_p_IFS # mkdir can fail with a 'File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$_G_dir" 2>/dev/null || : done IFS=$func_mkdir_p_IFS # Bail out if we (or some other process) failed to create a directory. test -d "$_G_directory_path" || \ func_fatal_error "Failed to create '$1'" fi } # func_mktempdir [BASENAME] # ------------------------- # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, BASENAME is the basename for that directory. func_mktempdir () { $debug_cmd _G_template=${TMPDIR-/tmp}/${1-$progname} if test : = "$opt_dry_run"; then # Return a directory name, but don't create it in dry-run mode _G_tmpdir=$_G_template-$$ else # If mktemp works, use that first and foremost _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null` if test ! -d "$_G_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race _G_tmpdir=$_G_template-${RANDOM-0}$$ func_mktempdir_umask=`umask` umask 0077 $MKDIR "$_G_tmpdir" umask $func_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$_G_tmpdir" || \ func_fatal_error "cannot create temporary directory '$_G_tmpdir'" fi $ECHO "$_G_tmpdir" } # func_normal_abspath PATH # ------------------------ # Remove doubled-up and trailing slashes, "." path components, # and cancel out any ".." path components in PATH after making # it an absolute path. func_normal_abspath () { $debug_cmd # These SED scripts presuppose an absolute path with a trailing slash. _G_pathcar='s|^/\([^/]*\).*$|\1|' _G_pathcdr='s|^/[^/]*||' _G_removedotparts=':dotsl s|/\./|/|g t dotsl s|/\.$|/|' _G_collapseslashes='s|/\{1,\}|/|g' _G_finalslash='s|/*$|/|' # Start from root dir and reassemble the path. func_normal_abspath_result= func_normal_abspath_tpath=$1 func_normal_abspath_altnamespace= case $func_normal_abspath_tpath in "") # Empty path, that just means $cwd. func_stripname '' '/' "`pwd`" func_normal_abspath_result=$func_stripname_result return ;; # The next three entries are used to spot a run of precisely # two leading slashes without using negated character classes; # we take advantage of case's first-match behaviour. ///*) # Unusual form of absolute path, do nothing. ;; //*) # Not necessarily an ordinary path; POSIX reserves leading '//' # and for example Cygwin uses it to access remote file shares # over CIFS/SMB, so we conserve a leading double slash if found. func_normal_abspath_altnamespace=/ ;; /*) # Absolute path, do nothing. ;; *) # Relative path, prepend $cwd. func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath ;; esac # Cancel out all the simple stuff to save iterations. We also want # the path to end with a slash for ease of parsing, so make sure # there is one (and only one) here. func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"` while :; do # Processed it all yet? if test / = "$func_normal_abspath_tpath"; then # If we ascended to the root using ".." the result may be empty now. if test -z "$func_normal_abspath_result"; then func_normal_abspath_result=/ fi break fi func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_pathcar"` func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_pathcdr"` # Figure out what to do with it case $func_normal_abspath_tcomponent in "") # Trailing empty path component, ignore it. ;; ..) # Parent dir; strip last assembled component from result. func_dirname "$func_normal_abspath_result" func_normal_abspath_result=$func_dirname_result ;; *) # Actual path component, append it. func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent" ;; esac done # Restore leading double-slash if one was found on entry. func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } # func_notquiet ARG... # -------------------- # Echo program name prefixed message only when not in quiet mode. func_notquiet () { $debug_cmd $opt_quiet || func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_relative_path SRCDIR DSTDIR # -------------------------------- # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR. func_relative_path () { $debug_cmd func_relative_path_result= func_normal_abspath "$1" func_relative_path_tlibdir=$func_normal_abspath_result func_normal_abspath "$2" func_relative_path_tbindir=$func_normal_abspath_result # Ascend the tree starting from libdir while :; do # check if we have found a prefix of bindir case $func_relative_path_tbindir in $func_relative_path_tlibdir) # found an exact match func_relative_path_tcancelled= break ;; $func_relative_path_tlibdir*) # found a matching prefix func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" func_relative_path_tcancelled=$func_stripname_result if test -z "$func_relative_path_result"; then func_relative_path_result=. fi break ;; *) func_dirname $func_relative_path_tlibdir func_relative_path_tlibdir=$func_dirname_result if test -z "$func_relative_path_tlibdir"; then # Have to descend all the way to the root! func_relative_path_result=../$func_relative_path_result func_relative_path_tcancelled=$func_relative_path_tbindir break fi func_relative_path_result=../$func_relative_path_result ;; esac done # Now calculate path; take care to avoid doubling-up slashes. func_stripname '' '/' "$func_relative_path_result" func_relative_path_result=$func_stripname_result func_stripname '/' '/' "$func_relative_path_tcancelled" if test -n "$func_stripname_result"; then func_append func_relative_path_result "/$func_stripname_result" fi # Normalisation. If bindir is libdir, return '.' else relative path. if test -n "$func_relative_path_result"; then func_stripname './' '' "$func_relative_path_result" func_relative_path_result=$func_stripname_result fi test -n "$func_relative_path_result" || func_relative_path_result=. : } # func_quote_portable EVAL ARG # ---------------------------- # Internal function to portably implement func_quote_arg. Note that we still # keep attention to performance here so we as much as possible try to avoid # calling sed binary (so far O(N) complexity as long as func_append is O(1)). func_quote_portable () { $debug_cmd $require_check_ifs_backslash func_quote_portable_result=$2 # one-time-loop (easy break) while true do if $1; then func_quote_portable_result=`$ECHO "$2" | $SED \ -e "$sed_double_quote_subst" -e "$sed_double_backslash"` break fi # Quote for eval. case $func_quote_portable_result in *[\\\`\"\$]*) # Fallback to sed for $func_check_bs_ifs_broken=:, or when the string # contains the shell wildcard characters. case $check_ifs_backshlash_broken$func_quote_portable_result in :*|*[\[\*\?]*) func_quote_portable_result=`$ECHO "$func_quote_portable_result" \ | $SED "$sed_quote_subst"` break ;; esac func_quote_portable_old_IFS=$IFS for _G_char in '\' '`' '"' '$' do # STATE($1) PREV($2) SEPARATOR($3) set start "" "" func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy IFS=$_G_char for _G_part in $func_quote_portable_result do case $1 in quote) func_append func_quote_portable_result "$3$2" set quote "$_G_part" "\\$_G_char" ;; start) set first "" "" func_quote_portable_result= ;; first) set quote "$_G_part" "" ;; esac done done IFS=$func_quote_portable_old_IFS ;; *) ;; esac break done func_quote_portable_unquoted_result=$func_quote_portable_result case $func_quote_portable_result in # double-quote args containing shell metacharacters to delay # word splitting, command substitution and variable expansion # for a subsequent eval. # many bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_portable_result=\"$func_quote_portable_result\" ;; esac } # func_quotefast_eval ARG # ----------------------- # Quote one ARG (internal). This is equivalent to 'func_quote_arg eval ARG', # but optimized for speed. Result is stored in $func_quotefast_eval. if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then printf -v _GL_test_printf_tilde %q '~' if test '\~' = "$_GL_test_printf_tilde"; then func_quotefast_eval () { printf -v func_quotefast_eval_result %q "$1" } else # Broken older Bash implementations. Make those faster too if possible. func_quotefast_eval () { case $1 in '~'*) func_quote_portable false "$1" func_quotefast_eval_result=$func_quote_portable_result ;; *) printf -v func_quotefast_eval_result %q "$1" ;; esac } fi else func_quotefast_eval () { func_quote_portable false "$1" func_quotefast_eval_result=$func_quote_portable_result } fi # func_quote_arg MODEs ARG # ------------------------ # Quote one ARG to be evaled later. MODEs argument may contain zero or more # specifiers listed below separated by ',' character. This function returns two # values: # i) func_quote_arg_result # double-quoted (when needed), suitable for a subsequent eval # ii) func_quote_arg_unquoted_result # has all characters that are still active within double # quotes backslashified. Available only if 'unquoted' is specified. # # Available modes: # ---------------- # 'eval' (default) # - escape shell special characters # 'expand' # - the same as 'eval'; but do not quote variable references # 'pretty' # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might # be used later in func_quote to get output like: 'echo "a b"' instead # of 'echo a\ b'. This is slower than default on some shells. # 'unquoted' # - produce also $func_quote_arg_unquoted_result which does not contain # wrapping double-quotes. # # Examples for 'func_quote_arg pretty,unquoted string': # # string | *_result | *_unquoted_result # ------------+-----------------------+------------------- # " | \" | \" # a b | "a b" | a b # "a b" | "\"a b\"" | \"a b\" # * | "*" | * # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\" # # Examples for 'func_quote_arg pretty,unquoted,expand string': # # string | *_result | *_unquoted_result # --------------+---------------------+-------------------- # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\" func_quote_arg () { _G_quote_expand=false case ,$1, in *,expand,*) _G_quote_expand=: ;; esac case ,$1, in *,pretty,*|*,expand,*|*,unquoted,*) func_quote_portable $_G_quote_expand "$2" func_quote_arg_result=$func_quote_portable_result func_quote_arg_unquoted_result=$func_quote_portable_unquoted_result ;; *) # Faster quote-for-eval for some shells. func_quotefast_eval "$2" func_quote_arg_result=$func_quotefast_eval_result ;; esac } # func_quote MODEs ARGs... # ------------------------ # Quote all ARGs to be evaled later and join them into single command. See # func_quote_arg's description for more info. func_quote () { $debug_cmd _G_func_quote_mode=$1 ; shift func_quote_result= while test 0 -lt $#; do func_quote_arg "$_G_func_quote_mode" "$1" if test -n "$func_quote_result"; then func_append func_quote_result " $func_quote_arg_result" else func_append func_quote_result "$func_quote_arg_result" fi shift done } # func_stripname PREFIX SUFFIX NAME # --------------------------------- # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_stripname () { $debug_cmd # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary variable first. func_stripname_result=$3 func_stripname_result=${func_stripname_result#"$1"} func_stripname_result=${func_stripname_result%"$2"} }' else func_stripname () { $debug_cmd case $2 in .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;; *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;; esac } fi # func_show_eval CMD [FAIL_EXP] # ----------------------------- # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { $debug_cmd _G_cmd=$1 _G_fail_exp=${2-':'} func_quote_arg pretty,expand "$_G_cmd" eval "func_notquiet $func_quote_arg_result" $opt_dry_run || { eval "$_G_cmd" _G_status=$? if test 0 -ne "$_G_status"; then eval "(exit $_G_status); $_G_fail_exp" fi } } # func_show_eval_locale CMD [FAIL_EXP] # ------------------------------------ # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { $debug_cmd _G_cmd=$1 _G_fail_exp=${2-':'} $opt_quiet || { func_quote_arg expand,pretty "$_G_cmd" eval "func_echo $func_quote_arg_result" } $opt_dry_run || { eval "$_G_user_locale $_G_cmd" _G_status=$? eval "$_G_safe_locale" if test 0 -ne "$_G_status"; then eval "(exit $_G_status); $_G_fail_exp" fi } } # func_tr_sh # ---------- # Turn $1 into a string suitable for a shell variable name. # Result is stored in $func_tr_sh_result. All characters # not in the set a-zA-Z0-9_ are replaced with '_'. Further, # if $1 begins with a digit, a '_' is prepended as well. func_tr_sh () { $debug_cmd case $1 in [0-9]* | *[!a-zA-Z0-9_]*) func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'` ;; * ) func_tr_sh_result=$1 ;; esac } # func_verbose ARG... # ------------------- # Echo program name prefixed message in verbose mode only. func_verbose () { $debug_cmd $opt_verbose && func_echo "$*" : } # func_warn_and_continue ARG... # ----------------------------- # Echo program name prefixed warning message to standard error. func_warn_and_continue () { $debug_cmd $require_term_colors func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2 } # func_warning CATEGORY ARG... # ---------------------------- # Echo program name prefixed warning message to standard error. Warning # messages can be filtered according to CATEGORY, where this function # elides messages where CATEGORY is not listed in the global variable # 'opt_warning_types'. func_warning () { $debug_cmd # CATEGORY must be in the warning_categories list! case " $warning_categories " in *" $1 "*) ;; *) func_internal_error "invalid warning category '$1'" ;; esac _G_category=$1 shift case " $opt_warning_types " in *" $_G_category "*) $warning_func ${1+"$@"} ;; esac } # func_sort_ver VER1 VER2 # ----------------------- # 'sort -V' is not generally available. # Note this deviates from the version comparison in automake # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a # but this should suffice as we won't be specifying old # version formats or redundant trailing .0 in bootstrap.conf. # If we did want full compatibility then we should probably # use m4_version_compare from autoconf. func_sort_ver () { $debug_cmd printf '%s\n%s\n' "$1" "$2" \ | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n } # func_lt_ver PREV CURR # --------------------- # Return true if PREV and CURR are in the correct order according to # func_sort_ver, otherwise false. Use it like this: # # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..." func_lt_ver () { $debug_cmd test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q` } # Local variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: #! /bin/sh # A portable, pluggable option parser for Bourne shell. # Written by Gary V. Vaughan, 2010 # This is free software. There is NO warranty; not even for # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # Copyright (C) 2010-2019, 2021 Bootstrap Authors # # This file is dual licensed under the terms of the MIT license # , and GPL version 2 or later # . You must apply one of # these licenses when using or redistributing this software or any of # the files within it. See the URLs above, or the file `LICENSE` # included in the Bootstrap distribution for the full license texts. # Please report bugs or propose patches to: # # Set a version string for this script. scriptversion=2019-02-19.15; # UTC ## ------ ## ## Usage. ## ## ------ ## # This file is a library for parsing options in your shell scripts along # with assorted other useful supporting features that you can make use # of too. # # For the simplest scripts you might need only: # # #!/bin/sh # . relative/path/to/funclib.sh # . relative/path/to/options-parser # scriptversion=1.0 # func_options ${1+"$@"} # eval set dummy "$func_options_result"; shift # ...rest of your script... # # In order for the '--version' option to work, you will need to have a # suitably formatted comment like the one at the top of this file # starting with '# Written by ' and ending with '# Copyright'. # # For '-h' and '--help' to work, you will also need a one line # description of your script's purpose in a comment directly above the # '# Written by ' line, like the one at the top of this file. # # The default options also support '--debug', which will turn on shell # execution tracing (see the comment above debug_cmd below for another # use), and '--verbose' and the func_verbose function to allow your script # to display verbose messages only when your user has specified # '--verbose'. # # After sourcing this file, you can plug in processing for additional # options by amending the variables from the 'Configuration' section # below, and following the instructions in the 'Option parsing' # section further down. ## -------------- ## ## Configuration. ## ## -------------- ## # You should override these variables in your script after sourcing this # file so that they reflect the customisations you have added to the # option parser. # The usage line for option parsing errors and the start of '-h' and # '--help' output messages. You can embed shell variables for delayed # expansion at the time the message is displayed, but you will need to # quote other shell meta-characters carefully to prevent them being # expanded when the contents are evaled. usage='$progpath [OPTION]...' # Short help message in response to '-h' and '--help'. Add to this or # override it after sourcing this library to reflect the full set of # options your script accepts. usage_message="\ --debug enable verbose shell tracing -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] -v, --verbose verbosely report processing --version print version information and exit -h, --help print short or long help message and exit " # Additional text appended to 'usage_message' in response to '--help'. long_help_message=" Warning categories include: 'all' show all warnings 'none' turn off all the warnings 'error' warnings are treated as fatal errors" # Help message printed before fatal option parsing errors. fatal_help="Try '\$progname --help' for more information." ## ------------------------- ## ## Hook function management. ## ## ------------------------- ## # This section contains functions for adding, removing, and running hooks # in the main code. A hook is just a list of function names that can be # run in order later on. # func_hookable FUNC_NAME # ----------------------- # Declare that FUNC_NAME will run hooks added with # 'func_add_hook FUNC_NAME ...'. func_hookable () { $debug_cmd func_append hookable_fns " $1" } # func_add_hook FUNC_NAME HOOK_FUNC # --------------------------------- # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must # first have been declared "hookable" by a call to 'func_hookable'. func_add_hook () { $debug_cmd case " $hookable_fns " in *" $1 "*) ;; *) func_fatal_error "'$1' does not accept hook functions." ;; esac eval func_append ${1}_hooks '" $2"' } # func_remove_hook FUNC_NAME HOOK_FUNC # ------------------------------------ # Remove HOOK_FUNC from the list of hook functions to be called by # FUNC_NAME. func_remove_hook () { $debug_cmd eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' } # func_propagate_result FUNC_NAME_A FUNC_NAME_B # --------------------------------------------- # If the *_result variable of FUNC_NAME_A _is set_, assign its value to # *_result variable of FUNC_NAME_B. func_propagate_result () { $debug_cmd func_propagate_result_result=: if eval "test \"\${${1}_result+set}\" = set" then eval "${2}_result=\$${1}_result" else func_propagate_result_result=false fi } # func_run_hooks FUNC_NAME [ARG]... # --------------------------------- # Run all hook functions registered to FUNC_NAME. # It's assumed that the list of hook functions contains nothing more # than a whitespace-delimited list of legal shell function names, and # no effort is wasted trying to catch shell meta-characters or preserve # whitespace. func_run_hooks () { $debug_cmd _G_rc_run_hooks=false case " $hookable_fns " in *" $1 "*) ;; *) func_fatal_error "'$1' does not support hook functions." ;; esac eval _G_hook_fns=\$$1_hooks; shift for _G_hook in $_G_hook_fns; do func_unset "${_G_hook}_result" eval $_G_hook '${1+"$@"}' func_propagate_result $_G_hook func_run_hooks if $func_propagate_result_result; then eval set dummy "$func_run_hooks_result"; shift fi done } ## --------------- ## ## Option parsing. ## ## --------------- ## # In order to add your own option parsing hooks, you must accept the # full positional parameter list from your hook function. You may remove # or edit any options that you action, and then pass back the remaining # unprocessed options in '_result', escaped # suitably for 'eval'. # # The '_result' variable is automatically unset # before your hook gets called; for best performance, only set the # *_result variable when necessary (i.e. don't call the 'func_quote' # function unnecessarily because it can be an expensive operation on some # machines). # # Like this: # # my_options_prep () # { # $debug_cmd # # # Extend the existing usage message. # usage_message=$usage_message' # -s, --silent don'\''t print informational messages # ' # # No change in '$@' (ignored completely by this hook). Leave # # my_options_prep_result variable intact. # } # func_add_hook func_options_prep my_options_prep # # # my_silent_option () # { # $debug_cmd # # args_changed=false # # # Note that, for efficiency, we parse as many options as we can # # recognise in a loop before passing the remainder back to the # # caller on the first unrecognised argument we encounter. # while test $# -gt 0; do # opt=$1; shift # case $opt in # --silent|-s) opt_silent=: # args_changed=: # ;; # # Separate non-argument short options: # -s*) func_split_short_opt "$_G_opt" # set dummy "$func_split_short_opt_name" \ # "-$func_split_short_opt_arg" ${1+"$@"} # shift # args_changed=: # ;; # *) # Make sure the first unrecognised option "$_G_opt" # # is added back to "$@" in case we need it later, # # if $args_changed was set to 'true'. # set dummy "$_G_opt" ${1+"$@"}; shift; break ;; # esac # done # # # Only call 'func_quote' here if we processed at least one argument. # if $args_changed; then # func_quote eval ${1+"$@"} # my_silent_option_result=$func_quote_result # fi # } # func_add_hook func_parse_options my_silent_option # # # my_option_validation () # { # $debug_cmd # # $opt_silent && $opt_verbose && func_fatal_help "\ # '--silent' and '--verbose' options are mutually exclusive." # } # func_add_hook func_validate_options my_option_validation # # You'll also need to manually amend $usage_message to reflect the extra # options you parse. It's preferable to append if you can, so that # multiple option parsing hooks can be added safely. # func_options_finish [ARG]... # ---------------------------- # Finishing the option parse loop (call 'func_options' hooks ATM). func_options_finish () { $debug_cmd func_run_hooks func_options ${1+"$@"} func_propagate_result func_run_hooks func_options_finish } # func_options [ARG]... # --------------------- # All the functions called inside func_options are hookable. See the # individual implementations for details. func_hookable func_options func_options () { $debug_cmd _G_options_quoted=false for my_func in options_prep parse_options validate_options options_finish do func_unset func_${my_func}_result func_unset func_run_hooks_result eval func_$my_func '${1+"$@"}' func_propagate_result func_$my_func func_options if $func_propagate_result_result; then eval set dummy "$func_options_result"; shift _G_options_quoted=: fi done $_G_options_quoted || { # As we (func_options) are top-level options-parser function and # nobody quoted "$@" for us yet, we need to do it explicitly for # caller. func_quote eval ${1+"$@"} func_options_result=$func_quote_result } } # func_options_prep [ARG]... # -------------------------- # All initialisations required before starting the option parse loop. # Note that when calling hook functions, we pass through the list of # positional parameters. If a hook function modifies that list, and # needs to propagate that back to rest of this script, then the complete # modified list must be put in 'func_run_hooks_result' before returning. func_hookable func_options_prep func_options_prep () { $debug_cmd # Option defaults: opt_verbose=false opt_warning_types= func_run_hooks func_options_prep ${1+"$@"} func_propagate_result func_run_hooks func_options_prep } # func_parse_options [ARG]... # --------------------------- # The main option parsing loop. func_hookable func_parse_options func_parse_options () { $debug_cmd _G_parse_options_requote=false # this just eases exit handling while test $# -gt 0; do # Defer to hook functions for initial option parsing, so they # get priority in the event of reusing an option name. func_run_hooks func_parse_options ${1+"$@"} func_propagate_result func_run_hooks func_parse_options if $func_propagate_result_result; then eval set dummy "$func_parse_options_result"; shift # Even though we may have changed "$@", we passed the "$@" array # down into the hook and it quoted it for us (because we are in # this if-branch). No need to quote it again. _G_parse_options_requote=false fi # Break out of the loop if we already parsed every option. test $# -gt 0 || break # We expect that one of the options parsed in this function matches # and thus we remove _G_opt from "$@" and need to re-quote. _G_match_parse_options=: _G_opt=$1 shift case $_G_opt in --debug|-x) debug_cmd='set -x' func_echo "enabling shell trace mode" >&2 $debug_cmd ;; --no-warnings|--no-warning|--no-warn) set dummy --warnings none ${1+"$@"} shift ;; --warnings|--warning|-W) if test $# = 0 && func_missing_arg $_G_opt; then _G_parse_options_requote=: break fi case " $warning_categories $1" in *" $1 "*) # trailing space prevents matching last $1 above func_append_uniq opt_warning_types " $1" ;; *all) opt_warning_types=$warning_categories ;; *none) opt_warning_types=none warning_func=: ;; *error) opt_warning_types=$warning_categories warning_func=func_fatal_error ;; *) func_fatal_error \ "unsupported warning category: '$1'" ;; esac shift ;; --verbose|-v) opt_verbose=: ;; --version) func_version ;; -\?|-h) func_usage ;; --help) func_help ;; # Separate optargs to long options (plugins may need this): --*=*) func_split_equals "$_G_opt" set dummy "$func_split_equals_lhs" \ "$func_split_equals_rhs" ${1+"$@"} shift ;; # Separate optargs to short options: -W*) func_split_short_opt "$_G_opt" set dummy "$func_split_short_opt_name" \ "$func_split_short_opt_arg" ${1+"$@"} shift ;; # Separate non-argument short options: -\?*|-h*|-v*|-x*) func_split_short_opt "$_G_opt" set dummy "$func_split_short_opt_name" \ "-$func_split_short_opt_arg" ${1+"$@"} shift ;; --) _G_parse_options_requote=: ; break ;; -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; *) set dummy "$_G_opt" ${1+"$@"}; shift _G_match_parse_options=false break ;; esac if $_G_match_parse_options; then _G_parse_options_requote=: fi done if $_G_parse_options_requote; then # save modified positional parameters for caller func_quote eval ${1+"$@"} func_parse_options_result=$func_quote_result fi } # func_validate_options [ARG]... # ------------------------------ # Perform any sanity checks on option settings and/or unconsumed # arguments. func_hookable func_validate_options func_validate_options () { $debug_cmd # Display all warnings if -W was not given. test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" func_run_hooks func_validate_options ${1+"$@"} func_propagate_result func_run_hooks func_validate_options # Bail if the options were screwed! $exit_cmd $EXIT_FAILURE } ## ----------------- ## ## Helper functions. ## ## ----------------- ## # This section contains the helper functions used by the rest of the # hookable option parser framework in ascii-betical order. # func_fatal_help ARG... # ---------------------- # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { $debug_cmd eval \$ECHO \""Usage: $usage"\" eval \$ECHO \""$fatal_help"\" func_error ${1+"$@"} exit $EXIT_FAILURE } # func_help # --------- # Echo long help message to standard output and exit. func_help () { $debug_cmd func_usage_message $ECHO "$long_help_message" exit 0 } # func_missing_arg ARGNAME # ------------------------ # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $debug_cmd func_error "Missing argument for '$1'." exit_cmd=exit } # func_split_equals STRING # ------------------------ # Set func_split_equals_lhs and func_split_equals_rhs shell variables # after splitting STRING at the '=' sign. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ && _G_HAVE_XSI_OPS=yes if test yes = "$_G_HAVE_XSI_OPS" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_split_equals () { $debug_cmd func_split_equals_lhs=${1%%=*} func_split_equals_rhs=${1#*=} if test "x$func_split_equals_lhs" = "x$1"; then func_split_equals_rhs= fi }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_split_equals () { $debug_cmd func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'` func_split_equals_rhs= test "x$func_split_equals_lhs=" = "x$1" \ || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'` } fi #func_split_equals # func_split_short_opt SHORTOPT # ----------------------------- # Set func_split_short_opt_name and func_split_short_opt_arg shell # variables after splitting SHORTOPT after the 2nd character. if test yes = "$_G_HAVE_XSI_OPS" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_split_short_opt () { $debug_cmd func_split_short_opt_arg=${1#??} func_split_short_opt_name=${1%"$func_split_short_opt_arg"} }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_split_short_opt () { $debug_cmd func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'` func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'` } fi #func_split_short_opt # func_usage # ---------- # Echo short help message to standard output and exit. func_usage () { $debug_cmd func_usage_message $ECHO "Run '$progname --help |${PAGER-more}' for full usage" exit 0 } # func_usage_message # ------------------ # Echo short help message to standard output. func_usage_message () { $debug_cmd eval \$ECHO \""Usage: $usage"\" echo $SED -n 's|^# || /^Written by/{ x;p;x } h /^Written by/q' < "$progpath" echo eval \$ECHO \""$usage_message"\" } # func_version # ------------ # Echo version message to standard output and exit. # The version message is extracted from the calling file's header # comments, with leading '# ' stripped: # 1. First display the progname and version # 2. Followed by the header comment line matching /^# Written by / # 3. Then a blank line followed by the first following line matching # /^# Copyright / # 4. Immediately followed by any lines between the previous matches, # except lines preceding the intervening completely blank line. # For example, see the header comments of this file. func_version () { $debug_cmd printf '%s\n' "$progname $scriptversion" $SED -n ' /^# Written by /!b s|^# ||; p; n :fwd2blnk /./ { n b fwd2blnk } p; n :holdwrnt s|^# || s|^# *$|| /^Copyright /!{ /./H n b holdwrnt } s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| G s|\(\n\)\n*|\1|g p; q' < "$progpath" exit $? } # Local variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: # Set a version string. scriptversion='(GNU libtool) 2.4.7' # func_echo ARG... # ---------------- # Libtool also displays the current mode in messages, so override # funclib.sh func_echo with this custom definition. func_echo () { $debug_cmd _G_message=$* func_echo_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_IFS $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line" done IFS=$func_echo_IFS } # func_warning ARG... # ------------------- # Libtool warnings are not categorized, so override funclib.sh # func_warning with this simpler definition. func_warning () { $debug_cmd $warning_func ${1+"$@"} } ## ---------------- ## ## Options parsing. ## ## ---------------- ## # Hook in the functions to make sure our own options are parsed during # the option parsing loop. usage='$progpath [OPTION]... [MODE-ARG]...' # Short help message in response to '-h'. usage_message="Options: --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --mode=MODE use operation mode MODE --no-warnings equivalent to '-Wnone' --preserve-dup-deps don't remove duplicate dependency libraries --quiet, --silent don't print informational messages --tag=TAG use configuration variables from tag TAG -v, --verbose print more informational messages than default --version print version information -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] -h, --help, --help-all print short, long, or detailed help message " # Additional text appended to 'usage_message' in response to '--help'. func_help () { $debug_cmd func_usage_message $ECHO "$long_help_message MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. When passed as first option, '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that. Try '$progname --help --mode=MODE' for a more detailed description of MODE. When reporting a bug, please describe a test case to reproduce it and include the following information: host-triplet: $host shell: $SHELL compiler: $LTCC compiler flags: $LTCFLAGS linker: $LD (gnu? $with_gnu_ld) version: $progname $scriptversion Debian-2.4.7-5 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` Report bugs to . GNU libtool home page: . General help using GNU software: ." exit 0 } # func_lo2o OBJECT-NAME # --------------------- # Transform OBJECT-NAME from a '.lo' suffix to the platform specific # object suffix. lo2o=s/\\.lo\$/.$objext/ o2lo=s/\\.$objext\$/.lo/ if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_lo2o () { case $1 in *.lo) func_lo2o_result=${1%.lo}.$objext ;; * ) func_lo2o_result=$1 ;; esac }' # func_xform LIBOBJ-OR-SOURCE # --------------------------- # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise) # suffix to a '.lo' libtool-object suffix. eval 'func_xform () { func_xform_result=${1%.*}.lo }' else # ...otherwise fall back to using sed. func_lo2o () { func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"` } func_xform () { func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'` } fi # func_fatal_configuration ARG... # ------------------------------- # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func_fatal_error ${1+"$@"} \ "See the $PACKAGE documentation for more information." \ "Fatal configuration error." } # func_config # ----------- # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # ------------- # Display the features supported by this script. func_features () { echo "host: $host" if test yes = "$build_libtool_libs"; then echo "enable shared libraries" else echo "disable shared libraries" fi if test yes = "$build_old_libs"; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag TAGNAME # ----------------------- # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname=$1 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf=/$re_begincf/,/$re_endcf/p # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # ------------------------ # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # libtool_options_prep [ARG]... # ----------------------------- # Preparation for options parsed by libtool. libtool_options_prep () { $debug_mode # Option defaults: opt_config=false opt_dlopen= opt_dry_run=false opt_help=false opt_mode= opt_preserve_dup_deps=false opt_quiet=false nonopt= preserve_args= _G_rc_lt_options_prep=: _G_rc_lt_options_prep=: # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; *) _G_rc_lt_options_prep=false ;; esac if $_G_rc_lt_options_prep; then # Pass back the list of options. func_quote eval ${1+"$@"} libtool_options_prep_result=$func_quote_result fi } func_add_hook func_options_prep libtool_options_prep # libtool_parse_options [ARG]... # --------------------------------- # Provide handling for libtool specific options. libtool_parse_options () { $debug_cmd _G_rc_lt_parse_options=false # Perform our own loop to consume as many options as possible in # each iteration. while test $# -gt 0; do _G_match_lt_parse_options=: _G_opt=$1 shift case $_G_opt in --dry-run|--dryrun|-n) opt_dry_run=: ;; --config) func_config ;; --dlopen|-dlopen) opt_dlopen="${opt_dlopen+$opt_dlopen }$1" shift ;; --preserve-dup-deps) opt_preserve_dup_deps=: ;; --features) func_features ;; --finish) set dummy --mode finish ${1+"$@"}; shift ;; --help) opt_help=: ;; --help-all) opt_help=': help-all' ;; --mode) test $# = 0 && func_missing_arg $_G_opt && break opt_mode=$1 case $1 in # Valid mode arguments: clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $_G_opt" exit_cmd=exit break ;; esac shift ;; --no-silent|--no-quiet) opt_quiet=false func_append preserve_args " $_G_opt" ;; --no-warnings|--no-warning|--no-warn) opt_warning=false func_append preserve_args " $_G_opt" ;; --no-verbose) opt_verbose=false func_append preserve_args " $_G_opt" ;; --silent|--quiet) opt_quiet=: opt_verbose=false func_append preserve_args " $_G_opt" ;; --tag) test $# = 0 && func_missing_arg $_G_opt && break opt_tag=$1 func_append preserve_args " $_G_opt $1" func_enable_tag "$1" shift ;; --verbose|-v) opt_quiet=false opt_verbose=: func_append preserve_args " $_G_opt" ;; # An option not handled by this hook function: *) set dummy "$_G_opt" ${1+"$@"} ; shift _G_match_lt_parse_options=false break ;; esac $_G_match_lt_parse_options && _G_rc_lt_parse_options=: done if $_G_rc_lt_parse_options; then # save modified positional parameters for caller func_quote eval ${1+"$@"} libtool_parse_options_result=$func_quote_result fi } func_add_hook func_parse_options libtool_parse_options # libtool_validate_options [ARG]... # --------------------------------- # Perform any sanity checks on option settings and/or unconsumed # arguments. libtool_validate_options () { # save first non-option argument if test 0 -lt $#; then nonopt=$1 shift fi # preserve --debug test : = "$debug_cmd" || func_append preserve_args " --debug" case $host in # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac $opt_help || { # Sanity checks first: func_check_version_match test yes != "$build_libtool_libs" \ && test yes != "$build_old_libs" \ && func_fatal_configuration "not configured to build any kind of library" # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$opt_dlopen" && test execute != "$opt_mode"; then func_error "unrecognized option '-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help=$help help="Try '$progname --help --mode=$opt_mode' for more information." } # Pass back the unparsed argument list func_quote eval ${1+"$@"} libtool_validate_options_result=$func_quote_result } func_add_hook func_validate_options libtool_validate_options # Process options as early as possible so that --help and --version # can return quickly. func_options ${1+"$@"} eval set dummy "$func_options_result"; shift ## ----------- ## ## Main. ## ## ----------- ## magic='%%%MAGIC variable%%%' magic_exe='%%%MAGIC EXE variable%%%' # Global variables. extracted_archives= extracted_serial=0 # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } # func_generated_by_libtool # True iff stdin has been generated by Libtool. This function is only # a basic sanity check; it will hardly flush out determined imposters. func_generated_by_libtool_p () { $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_p file # True iff FILE is a libtool '.la' library or '.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p } # func_lalib_unsafe_p file # True iff FILE is a libtool '.la' library or '.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if 'file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case $lalib_p_line in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test yes = "$lalib_p" } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { test -f "$1" && $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $debug_cmd save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$sp$nl eval cmd=\"$cmd\" IFS=$save_ifs func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # 'FILE.' does not work on cygwin managed mounts. func_source () { $debug_cmd case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_resolve_sysroot PATH # Replace a leading = in PATH with a sysroot. Store the result into # func_resolve_sysroot_result func_resolve_sysroot () { func_resolve_sysroot_result=$1 case $func_resolve_sysroot_result in =*) func_stripname '=' '' "$func_resolve_sysroot_result" func_resolve_sysroot_result=$lt_sysroot$func_stripname_result ;; esac } # func_replace_sysroot PATH # If PATH begins with the sysroot, replace it with = and # store the result into func_replace_sysroot_result. func_replace_sysroot () { case $lt_sysroot:$1 in ?*:"$lt_sysroot"*) func_stripname "$lt_sysroot" '' "$1" func_replace_sysroot_result='='$func_stripname_result ;; *) # Including no sysroot. func_replace_sysroot_result=$1 ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $debug_cmd if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with '--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=$1 if test yes = "$build_libtool_libs"; then write_lobj=\'$2\' else write_lobj=none fi if test yes = "$build_old_libs"; then write_oldobj=\'$3\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T </dev/null` if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | $SED -e "$sed_naive_backslashify"` else func_convert_core_file_wine_to_w32_result= fi fi } # end: func_convert_core_file_wine_to_w32 # func_convert_core_path_wine_to_w32 ARG # Helper function used by path conversion functions when $build is *nix, and # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly # configured wine environment available, with the winepath program in $build's # $PATH. Assumes ARG has no leading or trailing path separator characters. # # ARG is path to be converted from $build format to win32. # Result is available in $func_convert_core_path_wine_to_w32_result. # Unconvertible file (directory) names in ARG are skipped; if no directory names # are convertible, then the result may be empty. func_convert_core_path_wine_to_w32 () { $debug_cmd # unfortunately, winepath doesn't convert paths, only file names func_convert_core_path_wine_to_w32_result= if test -n "$1"; then oldIFS=$IFS IFS=: for func_convert_core_path_wine_to_w32_f in $1; do IFS=$oldIFS func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" if test -n "$func_convert_core_file_wine_to_w32_result"; then if test -z "$func_convert_core_path_wine_to_w32_result"; then func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result else func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" fi fi done IFS=$oldIFS fi } # end: func_convert_core_path_wine_to_w32 # func_cygpath ARGS... # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or # (2), returns the Cygwin file name or path in func_cygpath_result (input # file name or path is assumed to be in w32 format, as previously converted # from $build's *nix or MSYS format). In case (3), returns the w32 file name # or path in func_cygpath_result (input file name or path is assumed to be in # Cygwin format). Returns an empty string on error. # # ARGS are passed to cygpath, with the last one being the file name or path to # be converted. # # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH # environment variable; do not put it in $PATH. func_cygpath () { $debug_cmd if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` if test "$?" -ne 0; then # on failure, ensure result is empty func_cygpath_result= fi else func_cygpath_result= func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'" fi } #end: func_cygpath # func_convert_core_msys_to_w32 ARG # Convert file name or path ARG from MSYS format to w32 format. Return # result in func_convert_core_msys_to_w32_result. func_convert_core_msys_to_w32 () { $debug_cmd # awkward: cmd appends spaces to result func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"` } #end: func_convert_core_msys_to_w32 # func_convert_file_check ARG1 ARG2 # Verify that ARG1 (a file name in $build format) was converted to $host # format in ARG2. Otherwise, emit an error message, but continue (resetting # func_to_host_file_result to ARG1). func_convert_file_check () { $debug_cmd if test -z "$2" && test -n "$1"; then func_error "Could not determine host file name corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_file_result=$1 fi } # end func_convert_file_check # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH # Verify that FROM_PATH (a path in $build format) was converted to $host # format in TO_PATH. Otherwise, emit an error message, but continue, resetting # func_to_host_file_result to a simplistic fallback value (see below). func_convert_path_check () { $debug_cmd if test -z "$4" && test -n "$3"; then func_error "Could not determine the host path corresponding to" func_error " '$3'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This is a deliberately simplistic "conversion" and # should not be "improved". See libtool.info. if test "x$1" != "x$2"; then lt_replace_pathsep_chars="s|$1|$2|g" func_to_host_path_result=`echo "$3" | $SED -e "$lt_replace_pathsep_chars"` else func_to_host_path_result=$3 fi fi } # end func_convert_path_check # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT # and appending REPL if ORIG matches BACKPAT. func_convert_path_front_back_pathsep () { $debug_cmd case $4 in $1 ) func_to_host_path_result=$3$func_to_host_path_result ;; esac case $4 in $2 ) func_append func_to_host_path_result "$3" ;; esac } # end func_convert_path_front_back_pathsep ################################################## # $build to $host FILE NAME CONVERSION FUNCTIONS # ################################################## # invoked via '$to_host_file_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # Result will be available in $func_to_host_file_result. # func_to_host_file ARG # Converts the file name ARG from $build format to $host format. Return result # in func_to_host_file_result. func_to_host_file () { $debug_cmd $to_host_file_cmd "$1" } # end func_to_host_file # func_to_tool_file ARG LAZY # converts the file name ARG from $build format to toolchain format. Return # result in func_to_tool_file_result. If the conversion in use is listed # in (the comma separated) LAZY, no conversion takes place. func_to_tool_file () { $debug_cmd case ,$2, in *,"$to_tool_file_cmd",*) func_to_tool_file_result=$1 ;; *) $to_tool_file_cmd "$1" func_to_tool_file_result=$func_to_host_file_result ;; esac } # end func_to_tool_file # func_convert_file_noop ARG # Copy ARG to func_to_host_file_result. func_convert_file_noop () { func_to_host_file_result=$1 } # end func_convert_file_noop # func_convert_file_msys_to_w32 ARG # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_file_result. func_convert_file_msys_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_to_host_file_result=$func_convert_core_msys_to_w32_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_w32 # func_convert_file_cygwin_to_w32 ARG # Convert file name ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_file_cygwin_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then # because $build is cygwin, we call "the" cygpath in $PATH; no need to use # LT_CYGPATH in this case. func_to_host_file_result=`cygpath -m "$1"` fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_cygwin_to_w32 # func_convert_file_nix_to_w32 ARG # Convert file name ARG from *nix to w32 format. Requires a wine environment # and a working winepath. Returns result in func_to_host_file_result. func_convert_file_nix_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_file_wine_to_w32 "$1" func_to_host_file_result=$func_convert_core_file_wine_to_w32_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_w32 # func_convert_file_msys_to_cygwin ARG # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_file_msys_to_cygwin () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_cygpath -u "$func_convert_core_msys_to_w32_result" func_to_host_file_result=$func_cygpath_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_cygwin # func_convert_file_nix_to_cygwin ARG # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed # in a wine environment, working winepath, and LT_CYGPATH set. Returns result # in func_to_host_file_result. func_convert_file_nix_to_cygwin () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. func_convert_core_file_wine_to_w32 "$1" func_cygpath -u "$func_convert_core_file_wine_to_w32_result" func_to_host_file_result=$func_cygpath_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_cygwin ############################################# # $build to $host PATH CONVERSION FUNCTIONS # ############################################# # invoked via '$to_host_path_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # The result will be available in $func_to_host_path_result. # # Path separators are also converted from $build format to $host format. If # ARG begins or ends with a path separator character, it is preserved (but # converted to $host format) on output. # # All path conversion functions are named using the following convention: # file name conversion function : func_convert_file_X_to_Y () # path conversion function : func_convert_path_X_to_Y () # where, for any given $build/$host combination the 'X_to_Y' value is the # same. If conversion functions are added for new $build/$host combinations, # the two new functions must follow this pattern, or func_init_to_host_path_cmd # will break. # func_init_to_host_path_cmd # Ensures that function "pointer" variable $to_host_path_cmd is set to the # appropriate value, based on the value of $to_host_file_cmd. to_host_path_cmd= func_init_to_host_path_cmd () { $debug_cmd if test -z "$to_host_path_cmd"; then func_stripname 'func_convert_file_' '' "$to_host_file_cmd" to_host_path_cmd=func_convert_path_$func_stripname_result fi } # func_to_host_path ARG # Converts the path ARG from $build format to $host format. Return result # in func_to_host_path_result. func_to_host_path () { $debug_cmd func_init_to_host_path_cmd $to_host_path_cmd "$1" } # end func_to_host_path # func_convert_path_noop ARG # Copy ARG to func_to_host_path_result. func_convert_path_noop () { func_to_host_path_result=$1 } # end func_convert_path_noop # func_convert_path_msys_to_w32 ARG # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_path_result. func_convert_path_msys_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # Remove leading and trailing path separator characters from ARG. MSYS # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; # and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result=$func_convert_core_msys_to_w32_result func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_msys_to_w32 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result=$func_convert_core_path_wine_to_w32_result func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result=$func_cygpath_result func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_msys_to_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result=$func_cygpath_result func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_nix_to_cygwin # func_dll_def_p FILE # True iff FILE is a Windows DLL '.def' file. # Keep in sync with _LT_DLL_DEF_P in libtool.m4 func_dll_def_p () { $debug_cmd func_dll_def_p_tmp=`$SED -n \ -e 's/^[ ]*//' \ -e '/^\(;.*\)*$/d' \ -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \ -e q \ "$1"` test DEF = "$func_dll_def_p_tmp" } # func_mode_compile arg... func_mode_compile () { $debug_cmd # Get the compilation command and the source file. base_compile= srcfile=$nonopt # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg=$arg arg_mode=normal ;; target ) libobj=$arg arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify '-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append later " $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs=$IFS; IFS=, for arg in $args; do IFS=$save_ifs func_append_quoted lastarg "$arg" done IFS=$save_ifs func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append base_compile " $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg=$srcfile srcfile=$arg ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with '-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj=$func_basename_result } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from '$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test yes = "$build_libtool_libs" \ || func_fatal_configuration "cannot build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_arg pretty "$libobj" test "X$libobj" != "X$func_quote_arg_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name '$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname=$func_basename_result xdir=$func_dirname_result lobj=$xdir$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test yes = "$build_old_libs"; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test no = "$compiler_c_o"; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext lockfile=$output_obj.lock else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test yes = "$need_locks"; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test warn = "$need_locks"; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result func_quote_arg pretty "$srcfile" qsrcfile=$func_quote_arg_result # Only build a PIC object if we are building libtool libraries. if test yes = "$build_libtool_libs"; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test no != "$pic_mode"; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test warn = "$need_locks" && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test yes = "$suppress_opt"; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test yes = "$build_old_libs"; then if test yes != "$pic_mode"; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test yes = "$compiler_c_o"; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test warn = "$need_locks" && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test no != "$need_locks"; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test compile = "$opt_mode" && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to build PIC objects only -prefer-non-pic try to build non-PIC objects only -shared do not build a '.o' file suitable for static linking -static only build a '.o' file suitable for static linking -Wc,FLAG -Xcompiler FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a 'standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix '.c' with the library object suffix, '.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to '-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the '--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the 'install' or 'cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -bindir BINDIR specify path to binaries directory (for systems where libraries must be found in the PATH setting at runtime) -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE use a list of object files found in FILE to specify objects -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes) -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler -Wa,FLAG -Xassembler FLAG pass linker-specific FLAG directly to the assembler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with '-') are ignored. Every other argument is treated as a filename. Files ending in '.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in '.la', then a libtool library is created, only library objects ('.lo' files) may be specified, and '-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created using 'ar' and 'ranlib', or on Windows using 'lib'. If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode '$opt_mode'" ;; esac echo $ECHO "Try '$progname --help' for more information about other modes." } # Now that we've collected a possible --mode arg, show help if necessary if $opt_help; then if test : = "$opt_help"; then func_mode_help else { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do func_mode_help done } | $SED -n '1p; 2,$s/^Usage:/ or: /p' { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do echo func_mode_help done } | $SED '1d /^When reporting/,/^Report/{ H d } $x /information about other modes/d /more detailed .*MODE/d s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' fi exit $? fi # func_mode_execute arg... func_mode_execute () { $debug_cmd # The first argument is the command name. cmd=$nonopt test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "'$file' is not a file" dir= case $file in *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "'$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "'$file' was not linked with '-export-dynamic'" continue fi func_dirname "$file" "" "." dir=$func_dirname_result if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir=$func_dirname_result ;; *) func_warning "'-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir=$absdir # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic=$magic # Check if any of the arguments is a wrapper script. args= for file do case $file in -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file=$progdir/$program elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file=$progdir/$program fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if $opt_dry_run; then # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS else if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd=\$cmd$args fi } test execute = "$opt_mode" && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $debug_cmd libs= libdirs= admincmds= for opt in "$nonopt" ${1+"$@"} do if test -d "$opt"; then func_append libdirs " $opt" elif test -f "$opt"; then if func_lalib_unsafe_p "$opt"; then func_append libs " $opt" else func_warning "'$opt' is not a valid libtool archive" fi else func_fatal_error "invalid argument '$opt'" fi done if test -n "$libs"; then if test -n "$lt_sysroot"; then sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" else sysroot_cmd= fi # Remove sysroot references if $opt_dry_run; then for lib in $libs; do echo "removing references to $lt_sysroot and '=' prefixes from $lib" done else tmpdir=`func_mktempdir` for lib in $libs; do $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ > $tmpdir/tmp-la mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" fi fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_quiet && exit $EXIT_SUCCESS if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then echo "----------------------------------------------------------------------" echo "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done echo echo "If you ever happen to want to link against installed libraries" echo "in a given directory, LIBDIR, you must either use libtool, and" echo "specify the full pathname of the library, or use the '-LLIBDIR'" echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the '$shlibpath_var' environment variable" echo " during execution" fi if test -n "$runpath_var"; then echo " - add LIBDIR to the '$runpath_var' environment variable" echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the '$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'" fi echo echo "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" echo "pages." ;; *) echo "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac echo "----------------------------------------------------------------------" fi exit $EXIT_SUCCESS } test finish = "$opt_mode" && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $debug_cmd # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac then # Aesthetically quote it. func_quote_arg pretty "$nonopt" install_prog="$func_quote_arg_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_arg pretty "$arg" func_append install_prog "$func_quote_arg_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; *) install_cp=false ;; esac # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=false stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=: ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then if test X-m = "X$prev" && test -n "$install_override_mode"; then arg2=$install_override_mode no_mode=false fi prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_arg pretty "$arg" func_append install_prog " $func_quote_arg_result" if test -n "$arg2"; then func_quote_arg pretty "$arg2" fi func_append install_shared_prog " $func_quote_arg_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the '$prev' option requires an argument" if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_arg pretty "$install_override_mode" func_append install_shared_prog " -m $func_quote_arg_result" fi fi if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=: if $isdir; then destdir=$dest destname= else func_dirname_and_basename "$dest" "" "." destdir=$func_dirname_result destname=$func_basename_result # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "'$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "'$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic=$magic staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. func_append staticlibs " $file" ;; *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "'$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir=$func_dirname_result func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking '$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname=$1 shift srcname=$realname test -n "$relink_command" && srcname=${realname}T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme=$stripme case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme= ;; esac ;; os2*) case $realname in *_dll.a) tstripme= ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try 'ln -sf' first, because the 'ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib=$destdir/$realname func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name=$func_basename_result instname=$dir/${name}i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile=$destdir/$destname else func_basename "$file" destfile=$func_basename_result destfile=$destdir/$destfile fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest=$destfile destfile= ;; *) func_fatal_help "cannot copy a libtool object to '$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test yes = "$build_old_libs"; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile=$destdir/$destname else func_basename "$file" destfile=$func_basename_result destfile=$destdir/$destfile fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext= case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=.exe fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script '$wrapper'" finalize=: for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'` if test -n "$libdir" && test ! -f "$libfile"; then func_warning "'$lib' has not been installed in '$libdir'" finalize=false fi done relink_command= func_source "$wrapper" outputname= if test no = "$fast_install" && test -n "$relink_command"; then $opt_dry_run || { if $finalize; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file=$func_basename_result outputname=$tmpdir/$file # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_quiet || { func_quote_arg expand,pretty "$relink_command" eval "func_echo $func_quote_arg_result" } if eval "$relink_command"; then : else func_error "error: relink '$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file=$outputname else func_warning "cannot relink '$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name=$func_basename_result # Set up the ranlib parameters. oldlib=$destdir/$name func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $tool_oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run '$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test install = "$opt_mode" && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $debug_cmd my_outputname=$1 my_originator=$2 my_pic_p=${3-false} my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms=${my_outputname}S.c else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist=$output_objdir/$my_outputname.nm func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif /* 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 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) /* External symbol declarations for the compiler. */\ " if test yes = "$dlself"; then func_verbose "generating symbol list for '$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do func_to_tool_file "$progfile" func_convert_file_msys_to_w32 func_verbose "extracting global C symbols from '$func_to_tool_file_result'" $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols=$output_objdir/$outputname.exp $opt_dry_run || { $RM $export_symbols eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from '$dlprefile'" func_basename "$dlprefile" name=$func_basename_result case $host in *cygwin* | *mingw* | *cegcc* ) # if an import library, we need to obtain dlname if func_win32_import_lib_p "$dlprefile"; then func_tr_sh "$dlprefile" eval "curr_lafile=\$libfile_$func_tr_sh_result" dlprefile_dlbasename= if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # Use subshell, to avoid clobbering current variable values dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` if test -n "$dlprefile_dlname"; then func_basename "$dlprefile_dlname" dlprefile_dlbasename=$func_basename_result else # no lafile. user explicitly requested -dlpreopen . $sharedlib_from_linklib_cmd "$dlprefile" dlprefile_dlbasename=$sharedlib_from_linklib_result fi fi $opt_dry_run || { if test -n "$dlprefile_dlbasename"; then eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' else func_warning "Could not compute DLL name from $name" eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" } else # not an import lib $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } fi ;; *) $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } ;; esac done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi func_show_eval '$RM "${nlist}I"' if test -n "$global_symbol_to_import"; then eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I' fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[];\ " if test -s "$nlist"I; then echo >> "$output_objdir/$my_dlsyms" "\ static void lt_syminit(void) { LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols; for (; symbol->name; ++symbol) {" $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms" echo >> "$output_objdir/$my_dlsyms" "\ } }" fi echo >> "$output_objdir/$my_dlsyms" "\ LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = { {\"$my_originator\", (void *) 0}," if test -s "$nlist"I; then echo >> "$output_objdir/$my_dlsyms" "\ {\"@INIT@\", (void *) <_syminit}," fi case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) $my_pic_p && pic_flag_for_symtable=" $pic_flag" ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"' # Transform the symbol file into the correct name. symfileobj=$output_objdir/${my_outputname}S.$objext case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for '$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_cygming_gnu_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is a GNU/binutils-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_gnu_implib_p () { $debug_cmd func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` test -n "$func_cygming_gnu_implib_tmp" } # func_cygming_ms_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is an MS-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_ms_implib_p () { $debug_cmd func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` test -n "$func_cygming_ms_implib_tmp" } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $debug_cmd win32_libid_type=unknown win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then case $nm_interface in "MS dumpbin") if func_cygming_ms_implib_p "$1" || func_cygming_gnu_implib_p "$1" then win32_nmres=import else win32_nmres= fi ;; *) func_to_tool_file "$1" func_convert_file_msys_to_w32 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ s|.*|import| p q } }'` ;; esac case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_cygming_dll_for_implib ARG # # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib () { $debug_cmd sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` } # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs # # The is the core of a fallback implementation of a # platform-specific function to extract the name of the # DLL associated with the specified import library LIBNAME. # # SECTION_NAME is either .idata$6 or .idata$7, depending # on the platform and compiler that created the implib. # # Echos the name of the DLL associated with the # specified import library. func_cygming_dll_for_implib_fallback_core () { $debug_cmd match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` $OBJDUMP -s --section "$1" "$2" 2>/dev/null | $SED '/^Contents of section '"$match_literal"':/{ # Place marker at beginning of archive member dllname section s/.*/====MARK====/ p d } # These lines can sometimes be longer than 43 characters, but # are always uninteresting /:[ ]*file format pe[i]\{,1\}-/d /^In archive [^:]*:/d # Ensure marker is printed /^====MARK====/p # Remove all lines with less than 43 characters /^.\{43\}/!d # From remaining lines, remove first 43 characters s/^.\{43\}//' | $SED -n ' # Join marker and all lines until next marker into a single line /^====MARK====/ b para H $ b para b :para x s/\n//g # Remove the marker s/^====MARK====// # Remove trailing dots and whitespace s/[\. \t]*$// # Print /./p' | # we now have a list, one entry per line, of the stringified # contents of the appropriate section of all members of the # archive that possess that section. Heuristic: eliminate # all those that have a first or second character that is # a '.' (that is, objdump's representation of an unprintable # character.) This should work for all archives with less than # 0x302f exports -- but will fail for DLLs whose name actually # begins with a literal '.' or a single character followed by # a '.'. # # Of those that remain, print the first one. $SED -e '/^\./d;/^.\./d;q' } # func_cygming_dll_for_implib_fallback ARG # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # # This fallback implementation is for use when $DLLTOOL # does not support the --identify-strict option. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib_fallback () { $debug_cmd if func_cygming_gnu_implib_p "$1"; then # binutils import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` elif func_cygming_ms_implib_p "$1"; then # ms-generated import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` else # unknown sharedlib_from_linklib_result= fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { $debug_cmd f_ex_an_ar_dir=$1; shift f_ex_an_ar_oldlib=$1 if test yes = "$lock_old_archive_extraction"; then lockfile=$f_ex_an_ar_oldlib.lock until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done fi func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 'stat=$?; rm -f "$lockfile"; exit $stat' if test yes = "$lock_old_archive_extraction"; then $opt_dry_run || rm -f "$lockfile" fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $debug_cmd my_gentop=$1; shift my_oldlibs=${1+"$@"} my_oldobjs= my_xlib= my_xabs= my_xdir= for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib=$func_basename_result my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir=$my_gentop/$my_xlib_u func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` func_basename "$darwin_archive" darwin_base_archive=$func_basename_result darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches; do func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch" $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive" cd "unfat-$$/$darwin_base_archive-$darwin_arch" func_extract_an_archive "`pwd`" "$darwin_base_archive" cd "$darwin_curdir" $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result=$my_oldobjs } # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory where it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs 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 BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # 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 relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then file=\"\$0\"" func_quote_arg pretty "$ECHO" qECHO=$func_quote_arg_result $ECHO "\ # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } ECHO=$qECHO fi # Very basic option parsing. These options are (a) specific to # the libtool wrapper, (b) are identical between the wrapper # /script/ and the wrapper /executable/ that is used only on # windows platforms, and (c) all begin with the string "--lt-" # (application programs are unlikely to have options that match # this pattern). # # There are only two supported options: --lt-debug and # --lt-dump-script. There is, deliberately, no --lt-help. # # The first argument to this parsing function should be the # script's $0 value, followed by "$@". lt_option_debug= func_parse_lt_options () { lt_script_arg0=\$0 shift for lt_opt do case \"\$lt_opt\" in --lt-debug) lt_option_debug=1 ;; --lt-dump-script) lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` cat \"\$lt_dump_D/\$lt_dump_F\" exit 0 ;; --lt-*) \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 exit 1 ;; esac done # Print the debug banner immediately: if test -n \"\$lt_option_debug\"; then echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2 fi } # Used when --lt-debug. Prints its arguments to stdout # (redirection is the responsibility of the caller) func_lt_dump_args () { lt_dump_args_N=1; for lt_arg do \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\" lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` done } # Core function for launching the target application func_exec_program_core () { " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 } # A function to encapsulate launching the target application # Strips options in the --lt-* namespace from \$@ and # launches target application with the remaining arguments. func_exec_program () { case \" \$* \" in *\\ --lt-*) for lt_wr_arg do case \$lt_wr_arg in --lt-*) ;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; esac shift done ;; esac func_exec_program_core \${1+\"\$@\"} } # Parse options func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test yes = "$fast_install"; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else \$ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # fixup the dll searchpath if we need to. # # Fix the DLL searchpath if we need to. Do this before prepending # to shlibpath, because on Windows, both are PATH and uninstalled # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi # Export our shlibpath_var if we have one. if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #include #include #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) /* declarations of non-ANSI functions */ #if defined __MINGW32__ # ifdef __STRICT_ANSI__ int _putenv (const char *); # endif #elif defined __CYGWIN__ # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif /* #elif defined other_platform || defined ... */ #endif /* portability defines, excluding path handling macros */ #if defined _MSC_VER # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv # define S_IXUSR _S_IEXEC #elif defined __MINGW32__ # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv #elif defined __CYGWIN__ # define HAVE_SETENV # define FOPEN_WB "wb" /* #elif defined other platforms ... */ #endif #if defined PATH_MAX # define LT_PATHMAX PATH_MAX #elif defined MAXPATHLEN # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \ defined __OS2__ # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free (stale); stale = 0; } \ } while (0) #if defined LT_DEBUGWRAPPER static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_debugprintf (const char *file, int line, const char *fmt, ...); void lt_fatal (const char *file, int line, const char *message, ...); static const char *nonnull (const char *s); static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); char **prepare_spawn (char **argv); void lt_dump_script (FILE *f); EOF cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; size_t tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined HAVE_DOS_BASED_FILE_SYSTEM if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined HAVE_DOS_BASED_FILE_SYSTEM } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = (size_t) (q - p); p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (STREQ (str, pat)) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else size_t len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { size_t orig_value_len = strlen (orig_value); size_t add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ size_t len = strlen (new_value); while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[--len] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF case $host_os in mingw*) cat <<"EOF" /* Prepares an argument vector before calling spawn(). Note that spawn() does not by itself call the command interpreter (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); v.dwPlatformId == VER_PLATFORM_WIN32_NT; }) ? "cmd.exe" : "command.com"). Instead it simply concatenates the arguments, separated by ' ', and calls CreateProcess(). We must quote the arguments since Win32 CreateProcess() interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a special way: - Space and tab are interpreted as delimiters. They are not treated as delimiters if they are surrounded by double quotes: "...". - Unescaped double quotes are removed from the input. Their only effect is that within double quotes, space and tab are treated like normal characters. - Backslashes not followed by double quotes are not special. - But 2*n+1 backslashes followed by a double quote become n backslashes followed by a double quote (n >= 0): \" -> " \\\" -> \" \\\\\" -> \\" */ #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" char ** prepare_spawn (char **argv) { size_t argc; char **new_argv; size_t i; /* Count number of arguments. */ for (argc = 0; argv[argc] != NULL; argc++) ; /* Allocate new argument vector. */ new_argv = XMALLOC (char *, argc + 1); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) { const char *string = argv[i]; if (string[0] == '\0') new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) { int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); size_t length; unsigned int backslashes; const char *s; char *quoted_string; char *p; length = 0; backslashes = 0; if (quote_around) length++; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') length += backslashes + 1; length++; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) length += backslashes + 1; quoted_string = XMALLOC (char, length + 1); p = quoted_string; backslashes = 0; if (quote_around) *p++ = '"'; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') { unsigned int j; for (j = backslashes + 1; j > 0; j--) *p++ = '\\'; } *p++ = c; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) { unsigned int j; for (j = backslashes; j > 0; j--) *p++ = '\\'; *p++ = '"'; } *p = '\0'; new_argv[i] = quoted_string; } else new_argv[i] = (char *) string; } new_argv[argc] = NULL; return new_argv; } EOF ;; esac cat <<"EOF" void lt_dump_script (FILE* f) { EOF func_emit_wrapper yes | $SED -n -e ' s/^\(.\{79\}\)\(..*\)/\1\ \2/ h s/\([\\"]\)/\\\1/g s/$/\\n/ s/\([^\n]*\).*/ fputs ("\1", f);/p g D' cat <<"EOF" } EOF } # end: func_emit_cwrapperexe_src # func_win32_import_lib_p ARG # True if ARG is an import lib, as indicated by $file_magic_cmd func_win32_import_lib_p () { $debug_cmd case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in *import*) : ;; *) false ;; esac } # func_suncc_cstd_abi # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!! # Several compiler flags select an ABI that is incompatible with the # Cstd library. Avoid specifying it if any are in CXXFLAGS. func_suncc_cstd_abi () { $debug_cmd case " $compile_command " in *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*) suncc_use_cstd_abi=no ;; *) suncc_use_cstd_abi=yes ;; esac } # func_mode_link arg... func_mode_link () { $debug_cmd case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # what system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll that has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= os2dllname= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=false prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module=$wl-single_module func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test yes != "$build_libtool_libs" \ && func_fatal_configuration "cannot build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg=$1 shift func_quote_arg pretty,unquoted "$arg" qarg=$func_quote_arg_unquoted_result func_append libtool_args " $func_quote_arg_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir=$arg prev= continue ;; dlfiles|dlprefiles) $preload || { # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=: } case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test no = "$dlself"; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test dlprefiles = "$prev"; then dlself=yes elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test dlfiles = "$prev"; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols=$arg test -f "$arg" \ || func_fatal_error "symbol file '$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex=$arg prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir=$arg prev= continue ;; mllvm) # Clang does not use LLVM to link, so we can simply discard any # '-mllvm $arg' options when doing the link step. prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test none = "$pic_object" && test none = "$non_pic_object"; then func_fatal_error "cannot find name of object for '$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result if test none != "$pic_object"; then # Prepend the subdirectory the object is found in. pic_object=$xdir$pic_object if test dlfiles = "$prev"; then if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test dlprefiles = "$prev"; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg=$pic_object fi # Non-PIC object. if test none != "$non_pic_object"; then # Prepend the subdirectory the object is found in. non_pic_object=$xdir$non_pic_object # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test none = "$pic_object"; then arg=$non_pic_object fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object=$pic_object func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "'$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file '$arg' does not exist" fi arg=$save_arg prev= continue ;; os2dllname) os2dllname=$arg prev= continue ;; precious_regex) precious_files_regex=$arg prev= continue ;; release) release=-$arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test rpath = "$prev"; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds=$arg prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xassembler) func_append compiler_flags " -Xassembler $qarg" prev= func_append compile_command " -Xassembler $qarg" func_append finalize_command " -Xassembler $qarg" continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg=$arg case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "'-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test X-export-symbols = "X$arg"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname "-L" '' "$arg" if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between '-L' and '$1'" else func_fatal_error "need path for '-L' option" fi fi func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of '$dir'" dir=$absdir ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # Preserve sysroot, but never include relative directories case $dir in [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; *) func_append deplibs " -L$dir" ;; esac func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test X-lc = "X$arg" || test X-lm = "X$arg"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test X-lc = "X$arg" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*) # Do not include libc due to us having libc/libc_r. test X-lc = "X$arg" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test X-lc = "X$arg" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test X-lc = "X$arg" && continue ;; esac elif test X-lc_r = "X$arg"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -mllvm) prev=mllvm continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; # Solaris ld rejects as of 11.4. Refer to Oracle bug 22985199. -pthread) case $host in *solaris2*) ;; *) case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac ;; esac continue ;; -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module=$wl-multi_module continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "'-no-install' is ignored for $host" func_warning "assuming '-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -os2dllname) prev=os2dllname continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; =*) func_stripname '=' '' "$dir" dir=$lt_sysroot$func_stripname_result ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs func_quote_arg pretty "$flag" func_append arg " $func_quote_arg_result" func_append compiler_flags " $func_quote_arg_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs func_quote_arg pretty "$flag" func_append arg " $wl$func_quote_arg_result" func_append compiler_flags " $wl$func_quote_arg_result" func_append linker_flags " $func_quote_arg_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xassembler) prev=xassembler continue ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_arg pretty "$arg" arg=$func_quote_arg_result ;; # Flags to be passed through unchanged, with rationale: # -64, -mips[0-9] enable 64-bit mode for the SGI compiler # -r[0-9][0-9]* specify processor for the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler # +DA*, +DD* enable 64-bit mode for the HP compiler # -q* compiler args for the IBM compiler # -m*, -t[45]*, -txscale* architecture-specific flags for GCC # -F/path path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* profiling flags for GCC # -fstack-protector* stack protector flags for GCC # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization # -specs=* GCC specs files # -stdlib=* select c++ std lib with clang # -fsanitize=* Clang/GCC memory and address sanitizer # -fuse-ld=* Linker select flags for GCC # -static-* direct GCC to link specific libraries statically # -fcilkplus Cilk Plus language extension features for C/C++ # -Wa,* Pass flags directly to the assembler -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus|-Wa,*) func_quote_arg pretty "$arg" arg=$func_quote_arg_result func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" continue ;; -Z*) if test os2 = "`expr $host : '.*\(os2\)'`"; then # OS/2 uses -Zxxx to specify OS/2-specific options compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case $arg in -Zlinker | -Zstack) prev=xcompiler ;; esac continue else # Otherwise treat like 'Some other compiler flag' below func_quote_arg pretty "$arg" arg=$func_quote_arg_result fi ;; # Some other compiler flag. -* | +*) func_quote_arg pretty "$arg" arg=$func_quote_arg_result ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test none = "$pic_object" && test none = "$non_pic_object"; then func_fatal_error "cannot find name of object for '$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result test none = "$pic_object" || { # Prepend the subdirectory the object is found in. pic_object=$xdir$pic_object if test dlfiles = "$prev"; then if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test dlprefiles = "$prev"; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg=$pic_object } # Non-PIC object. if test none != "$non_pic_object"; then # Prepend the subdirectory the object is found in. non_pic_object=$xdir$non_pic_object # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test none = "$pic_object"; then arg=$non_pic_object fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object=$pic_object func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "'$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. func_append deplibs " $arg" func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. func_resolve_sysroot "$arg" if test dlfiles = "$prev"; then # This library was specified with -dlopen. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test dlprefiles = "$prev"; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_arg pretty "$arg" arg=$func_quote_arg_result ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the '$prevarg' option requires an argument" if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname=$func_basename_result libobjs_save=$libobjs if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" # Definition is injected by LT_CONFIG during libtool generation. func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH" func_dirname "$output" "/" "" output_objdir=$func_dirname_result$objdir func_to_tool_file "$output_objdir/" tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_preserve_dup_deps; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test lib = "$linkmode"; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can '-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=false newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test lib,link = "$linkmode,$pass"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs=$tmp_deplibs fi if test lib,link = "$linkmode,$pass" || test prog,scan = "$linkmode,$pass"; then libs=$deplibs deplibs= fi if test prog = "$linkmode"; then case $pass in dlopen) libs=$dlfiles ;; dlpreopen) libs=$dlprefiles ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test lib,dlpreopen = "$linkmode,$pass"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs=$dlprefiles fi if test dlopen = "$pass"; then # Collect dlpreopened libraries save_deplibs=$deplibs deplibs= fi for deplib in $libs; do lib= found=false case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test lib = "$linkmode"; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test lib != "$linkmode" && test prog != "$linkmode"; then func_warning "'-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test lib = "$linkmode"; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib=$searchdir/lib$name$search_ext if test -f "$lib"; then if test .la = "$search_ext"; then found=: else found=false fi break 2 fi done done if $found; then # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll=$l done if test "X$ll" = "X$old_library"; then # only static version available found=false func_dirname "$lib" "" "." ladir=$func_dirname_result lib=$ladir/$old_library if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi else # deplib doesn't seem to be a libtool library if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" fi continue fi ;; # -l *.ltframework) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test lib = "$linkmode"; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test conv = "$pass" && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test conv = "$pass"; then deplibs="$deplib $deplibs" continue fi if test scan = "$pass"; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "'-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test link = "$pass"; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test conv = "$pass"; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=false case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=: fi ;; pass_all) valid_a_lib=: ;; esac if $valid_a_lib; then echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" else echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because the file extensions .$libext of this argument makes me believe" echo "*** that it is just a static archive that I should not use here." fi ;; esac continue ;; prog) if test link != "$pass"; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test conv = "$pass"; then deplibs="$deplib $deplibs" elif test prog = "$linkmode"; then if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=: continue ;; esac # case $deplib $found || test -f "$lib" \ || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'" # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "'$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir=$func_dirname_result dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test lib,link = "$linkmode,$pass" || test prog,scan = "$linkmode,$pass" || { test prog != "$linkmode" && test lib != "$linkmode"; }; then test -n "$dlopen" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test conv = "$pass"; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for '$lib'" fi # It is a libtool convenience library, so add in its objects. func_append convenience " $ladir/$objdir/$old_library" func_append old_convenience " $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done elif test prog != "$linkmode" && test lib != "$linkmode"; then func_fatal_error "'$lib' is not a convenience library" fi continue fi # $pass = conv # Get the name of the library we link against. linklib= if test -n "$old_library" && { test yes = "$prefer_static_libs" || test built,no = "$prefer_static_libs,$installed"; }; then linklib=$old_library else for l in $old_library $library_names; do linklib=$l done fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for '$lib'" fi # This library was specified with -dlopen. if test dlopen = "$pass"; then test -z "$libdir" \ && func_fatal_error "cannot -dlopen a convenience library: '$lib'" if test -z "$dlname" || test yes != "$dlopen_support" || test no = "$build_libtool_libs" then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. func_append dlprefiles " $lib $dependency_libs" else func_append newdlfiles " $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of '$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir=$ladir fi ;; esac func_basename "$lib" laname=$func_basename_result # Find the relevant object directory and library name. if test yes = "$installed"; then if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library '$lib' was moved." dir=$ladir absdir=$abs_ladir libdir=$abs_ladir else dir=$lt_sysroot$libdir absdir=$lt_sysroot$libdir fi test yes = "$hardcode_automatic" && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir=$ladir absdir=$abs_ladir # Remove this search path later func_append notinst_path " $abs_ladir" else dir=$ladir/$objdir absdir=$abs_ladir/$objdir # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test dlpreopen = "$pass"; then if test -z "$libdir" && test prog = "$linkmode"; then func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'" fi case $host in # special handling for platforms with PE-DLLs. *cygwin* | *mingw* | *cegcc* ) # Linker will automatically link against shared library if both # static and shared are present. Therefore, ensure we extract # symbols from the import library if a shared library is present # (otherwise, the dlopen module name will be incorrect). We do # this by putting the import library name into $newdlprefiles. # We recover the dlopen module name by 'saving' the la file # name in a special purpose variable, and (later) extracting the # dlname from the la file. if test -n "$dlname"; then func_tr_sh "$dir/$linklib" eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" func_append newdlprefiles " $dir/$linklib" else func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" fi ;; * ) # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then func_append newdlprefiles " $dir/$dlname" else func_append newdlprefiles " $dir/$linklib" fi ;; esac fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test lib = "$linkmode"; then deplibs="$dir/$old_library $deplibs" elif test prog,link = "$linkmode,$pass"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test prog = "$linkmode" && test link != "$pass"; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=false if test no != "$link_all_deplibs" || test -z "$library_names" || test no = "$build_libtool_libs"; then linkalldeplibs=: fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if $linkalldeplibs; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test prog,link = "$linkmode,$pass"; then if test -n "$library_names" && { { test no = "$prefer_static_libs" || test built,yes = "$prefer_static_libs,$installed"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then # Make sure the rpath contains only unique directories. case $temp_rpath: in *"$absdir:"*) ;; *) func_append temp_rpath "$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if $alldeplibs && { test pass_all = "$deplibs_check_method" || { test yes = "$build_libtool_libs" && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test built = "$use_static_libs" && test yes = "$installed"; then use_static_libs=no fi if test -n "$library_names" && { test no = "$use_static_libs" || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc* | *os2*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test no = "$installed"; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule= for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule=$dlpremoduletest break fi done if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then echo if test prog = "$linkmode"; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test lib = "$linkmode" && test yes = "$hardcode_into_libs"; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname=$1 shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname=$dlname elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc* | *os2*) func_arith $current - $age major=$func_arith_result versuffix=-$major ;; esac eval soname=\"$soname_spec\" else soname=$realname fi # Make a new name for the extract_expsyms_cmds to use soroot=$soname func_basename "$soroot" soname=$func_basename_result func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from '$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for '$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test prog = "$linkmode" || test relink != "$opt_mode"; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test no = "$hardcode_direct"; then add=$dir/$linklib case $host in *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;; *-*-sysv4*uw2*) add_dir=-L$dir ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir=-L$dir ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we cannot # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library"; then echo echo "*** And there doesn't seem to be a static archive available" echo "*** The link will probably fail, sorry" else add=$dir/$old_library fi elif test -n "$old_library"; then add=$dir/$old_library fi fi esac elif test no = "$hardcode_minus_L"; then case $host in *-*-sunos*) add_shlibpath=$dir ;; esac add_dir=-L$dir add=-l$name elif test no = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name else lib_linked=no fi ;; relink) if test yes = "$hardcode_direct" && test no = "$hardcode_direct_absolute"; then add=$dir/$linklib elif test yes = "$hardcode_minus_L"; then add_dir=-L$absdir # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add=-l$name elif test yes = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name else lib_linked=no fi ;; *) lib_linked=no ;; esac if test yes != "$lib_linked"; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test prog = "$linkmode"; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test yes != "$hardcode_direct" && test yes != "$hardcode_minus_L" && test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test prog = "$linkmode" || test relink = "$opt_mode"; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test yes = "$hardcode_direct" && test no = "$hardcode_direct_absolute"; then add=$libdir/$linklib elif test yes = "$hardcode_minus_L"; then add_dir=-L$libdir add=-l$name elif test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add=-l$name elif test yes = "$hardcode_automatic"; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib"; then add=$inst_prefix_dir$libdir/$linklib else add=$libdir/$linklib fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir=-L$libdir # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add=-l$name fi if test prog = "$linkmode"; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test prog = "$linkmode"; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test unsupported != "$hardcode_direct"; then test -n "$old_library" && linklib=$old_library compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test yes = "$build_libtool_libs"; then # Not a shared library if test pass_all != "$deplibs_check_method"; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo $ECHO "*** Warning: This system cannot link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test yes = "$module"; then echo "*** But as you try to build a module library, libtool will still create " echo "*** a static module, that should work as long as the dlopening application" echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using 'nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** 'nm' from GNU binutils and a full rebuild may help." fi if test no = "$build_old_libs"; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test lib = "$linkmode"; then if test -n "$dependency_libs" && { test yes != "$hardcode_into_libs" || test yes = "$build_old_libs" || test yes = "$link_static"; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs=$temp_deplibs fi func_append newlib_search_path " $absdir" # Link against this library test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result";; *) func_resolve_sysroot "$deplib" ;; esac if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi func_append tmp_libs " $func_resolve_sysroot_result" done if test no != "$link_all_deplibs"; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path=$deplib ;; *.la) func_resolve_sysroot "$deplib" deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of '$dir'" absdir=$dir fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names"; then for tmp in $deplibrary_names; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl"; then depdepl=$absdir/$objdir/$depdepl darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl" func_append linker_flags " -dylib_file $darwin_install_name:$depdepl" path= fi fi ;; *) path=-L$absdir/$objdir ;; esac else eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "'$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "'$deplib' seems to be moved" path=-L$absdir fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test link = "$pass"; then if test prog = "$linkmode"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs=$newdependency_libs if test dlpreopen = "$pass"; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test dlopen != "$pass"; then test conv = "$pass" || { # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= } if test prog,link = "$linkmode,$pass"; then vars="compile_deplibs finalize_deplibs" else vars=deplibs fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Add Sun CC postdeps if required: test CXX = "$tagname" && { case $host_os in linux*) case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C++ 5.9 func_suncc_cstd_abi if test no != "$suncc_use_cstd_abi"; then func_append postdeps ' -library=Cstd -library=Crun' fi ;; esac ;; solaris*) func_cc_basename "$CC" case $func_cc_basename_result in CC* | sunCC*) func_suncc_cstd_abi if test no != "$suncc_use_cstd_abi"; then func_append postdeps ' -library=Cstd -library=Crun' fi ;; esac ;; esac } # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i= ;; esac if test -n "$i"; then func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test prog = "$linkmode"; then dlfiles=$newdlfiles fi if test prog = "$linkmode" || test lib = "$linkmode"; then dlprefiles=$newdlprefiles fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then func_warning "'-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "'-l' and '-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "'-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "'-R' is ignored for archives" test -n "$vinfo" && \ func_warning "'-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "'-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "'-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs=$output func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form 'libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test no = "$module" \ && func_fatal_help "libtool library '$output' must begin with 'lib'" if test no != "$need_lib_prefix"; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test pass_all != "$deplibs_check_method"; then func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs" else echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test no = "$dlself" \ || func_warning "'-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test 1 -lt "$#" \ && func_warning "ignoring multiple '-rpath's for a libtool library" install_libdir=$1 oldlibs= if test -z "$rpath"; then if test yes = "$build_libtool_libs"; then # Building a libtool convenience library. # Some compilers have problems with a '.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "'-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "'-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs=$IFS; IFS=: set dummy $vinfo 0 0 0 shift IFS=$save_ifs test -n "$7" && \ func_fatal_help "too many parameters to '-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major=$1 number_minor=$2 number_revision=$3 # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # that has an extra 1 added just for fun # case $version_type in # correct linux to gnu/linux during the next big refactor darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_revision ;; freebsd-aout|qnx|sunos) current=$number_major revision=$number_minor age=0 ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_minor lt_irix_increment=no ;; *) func_fatal_configuration "$modename: unknown library version type '$version_type'" ;; esac ;; no) current=$1 revision=$2 age=$3 ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT '$current' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION '$revision' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE '$age' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE '$age' is greater than the current interface number '$current'" func_fatal_error "'$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" # On Darwin other compilers case $CC in nagfor*) verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" ;; *) verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; esac ;; freebsd-aout) major=.$current versuffix=.$current.$revision ;; freebsd-elf | midnightbsd-elf) func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision ;; irix | nonstopux) if test no = "$lt_irix_increment"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring=$verstring_prefix$major.$revision # Add in all the interfaces that we are compatible with. loop=$revision while test 0 -ne "$loop"; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring=$verstring_prefix$major.$iface:$verstring done # Before this point, $major must not contain '.'. major=.$major versuffix=$major.$revision ;; linux) # correct to gnu/linux during the next big refactor func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=.$current.$age.$revision verstring=$current.$age.$revision # Add in all the interfaces that we are compatible with. loop=$age while test 0 -ne "$loop"; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring=$verstring:$iface.0 done # Make executables depend on our current version. func_append verstring ":$current.0" ;; qnx) major=.$current versuffix=.$current ;; sco) major=.$current versuffix=.$current ;; sunos) major=.$current versuffix=.$current.$revision ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 file systems. func_arith $current - $age major=$func_arith_result versuffix=-$major ;; *) func_fatal_configuration "unknown library version type '$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring=0.0 ;; esac if test no = "$need_version"; then versuffix= else versuffix=.0.0 fi fi # Remove version info from name if versioning should be avoided if test yes,no = "$avoid_version,$need_version"; then major= versuffix= verstring= fi # Check to see if the archive will have undefined symbols. if test yes = "$allow_undefined"; then if test unsupported = "$allow_undefined_flag"; then if test yes = "$build_old_libs"; then func_warning "undefined symbols not allowed in $host shared libraries; building static only" build_libtool_libs=no else func_fatal_error "can't build $host shared library unless -no-undefined is specified" fi fi else # Don't allow undefined symbols. allow_undefined_flag=$no_undefined_flag fi fi func_generate_dlsyms "$libname" "$libname" : func_append libobjs " $symfileobj" test " " = "$libobjs" && libobjs= if test relink != "$opt_mode"; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*) if test -n "$precious_files_regex"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles=$dlfiles dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) func_append dlfiles " $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles=$dlprefiles dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) func_append dlprefiles " $lib" ;; esac done if test yes = "$build_libtool_libs"; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test yes = "$build_libtool_need_lc"; then func_append deplibs " -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release= versuffix= major= newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` $nocaseglob else potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib=$potent_lib while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | $SED 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;; *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib= break 2 fi done done fi if test -n "$a_deplib"; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib"; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib= ;; esac fi if test -n "$a_deplib"; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib=$potent_lib # see symlink-check above in file_magic test if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib= break 2 fi done done fi if test -n "$a_deplib"; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib"; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs= tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test yes = "$allow_libtool_libs_with_static_runtimes"; then for i in $predeps $postdeps; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test none = "$deplibs_check_method"; then echo "*** Warning: inter-library dependencies are not supported in this platform." else echo "*** Warning: inter-library dependencies are not known to be supported." fi echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes ;; esac ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test yes = "$droppeddeps"; then if test yes = "$module"; then echo echo "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" echo "*** a static module, that should work as long as the dlopening" echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using 'nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** 'nm' from GNU binutils and a full rebuild may help." fi if test no = "$build_old_libs"; then oldlibs=$output_objdir/$libname.$libext build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." if test no = "$allow_undefined"; then echo echo "*** Since this library must not contain undefined symbols," echo "*** because either the platform does not support them or" echo "*** it was explicitly requested with -no-undefined," echo "*** libtool will only create a static version of it." if test no = "$build_old_libs"; then oldlibs=$output_objdir/$libname.$libext build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done deplibs=$new_libs # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test yes = "$build_libtool_libs"; then # Remove $wl instances when linking with ld. # FIXME: should test the right _cmds variable. case $archive_cmds in *\$LD\ *) wl= ;; esac if test yes = "$hardcode_into_libs"; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath=$finalize_rpath test relink = "$opt_mode" || rpath=$compile_rpath$rpath for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then func_replace_sysroot "$libdir" libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath=$finalize_shlibpath test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname=$1 shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname=$realname fi if test -z "$dlname"; then dlname=$soname fi lib=$output_objdir/$realname linknames= for link do func_append linknames " $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols=$output_objdir/$libname.uexp func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile func_dll_def_p "$export_symbols" || { # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols=$export_symbols export_symbols= always_export_symbols=yes } fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for '$libname.la'" export_symbols=$output_objdir/$libname.exp $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs=$IFS; IFS='~' for cmd1 in $cmds; do IFS=$save_ifs # Take the normal branch if the nm_file_list_spec branch # doesn't work or if tool conversion is not needed. case $nm_file_list_spec~$to_tool_file_cmd in *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) try_normal_branch=yes eval cmd=\"$cmd1\" func_len " $cmd" len=$func_len_result ;; *) try_normal_branch=no ;; esac if test yes = "$try_normal_branch" \ && { test "$len" -lt "$max_cmd_len" \ || test "$max_cmd_len" -le -1; } then func_show_eval "$cmd" 'exit $?' skipped_export=false elif test -n "$nm_file_list_spec"; then func_basename "$output" output_la=$func_basename_result save_libobjs=$libobjs save_output=$output output=$output_objdir/$output_la.nm func_to_tool_file "$output" libobjs=$nm_file_list_spec$func_to_tool_file_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' output=$save_output libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS=$save_ifs if test -n "$export_symbols_regex" && test : != "$skipped_export"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols=$export_symbols test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test : != "$skipped_export" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for '$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands, which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs=$tmp_deplibs if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test yes = "$compiler_needs_object" && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $convenience func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test relink = "$opt_mode"; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test yes = "$module" && test -n "$module_cmds"; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test : != "$skipped_export" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then output=$output_objdir/$output_la.lnkscript func_verbose "creating GNU ld script: $output" echo 'INPUT (' > $output for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done echo ')' >> $output func_append delfiles " $output" func_to_tool_file "$output" output=$func_to_tool_file_result elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then output=$output_objdir/$output_la.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test yes = "$compiler_needs_object"; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done func_append delfiles " $output" func_to_tool_file "$output" output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-$k.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test -z "$objlist" || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test 1 -eq "$k"; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-$k.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-$k.$objext objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi func_append delfiles " $output" else output= fi ${skipped_export-false} && { func_verbose "generating symbol list for '$libname.la'" export_symbols=$output_objdir/$libname.exp $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi } test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs=$IFS; IFS='~' for cmd in $concat_cmds; do IFS=$save_ifs $opt_quiet || { func_quote_arg expand,pretty "$cmd" eval "func_echo $func_quote_arg_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test relink = "$opt_mode"; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS=$save_ifs if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi ${skipped_export-false} && { if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols=$export_symbols test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for '$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands, which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi } libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test yes = "$module" && test -n "$module_cmds"; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs=$IFS; IFS='~' for cmd in $cmds; do IFS=$sp$nl eval cmd=\"$cmd\" IFS=$save_ifs $opt_quiet || { func_quote_arg expand,pretty "$cmd" eval "func_echo $func_quote_arg_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test relink = "$opt_mode"; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS=$save_ifs # Restore the uninstalled library and exit if test relink = "$opt_mode"; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test yes = "$module" || test yes = "$export_dynamic"; then # On all known operating systems, these are identical. dlname=$soname fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then func_warning "'-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "'-l' and '-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "'-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "'-R' is ignored for objects" test -n "$vinfo" && \ func_warning "'-version-info' is ignored for objects" test -n "$release" && \ func_warning "'-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object '$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj=$output ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # if reload_cmds runs $LD directly, get rid of -Wl from # whole_archive_flag_spec and hope we can get by with turning comma # into space. case $reload_cmds in *\$LD[\ \$]*) wl= ;; esac if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags else gentop=$output_objdir/${obj}x func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # If we're not building shared, we need to use non_pic_objs test yes = "$build_libtool_libs" || libobjs=$non_pic_objects # Create the old-style object. reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs output=$obj func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi test yes = "$build_libtool_libs" || { if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS } if test -n "$pic_flag" || test default != "$pic_mode"; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output=$libobj func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "'-version-info' is ignored for programs" test -n "$release" && \ func_warning "'-release' is ignored for programs" $preload \ && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \ && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test CXX = "$tagname"; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) func_append compile_command " $wl-bind_at_load" func_append finalize_command " $wl-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs=$new_libs func_append compile_command " $compile_deplibs" func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath=$rpath rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append finalize_perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath=$rpath if test -n "$libobjs" && test yes = "$build_old_libs"; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" false # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=: case $host in *cegcc* | *mingw32ce*) # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. wrappers_required=false ;; *cygwin* | *mingw* ) test yes = "$build_libtool_libs" || wrappers_required=false ;; *) if test no = "$need_relink" || test yes != "$build_libtool_libs"; then wrappers_required=false fi ;; esac $wrappers_required || { # Replace the output file specification. compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command=$compile_command$compile_rpath # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Delete the generated files. if test -f "$output_objdir/${outputname}S.$objext"; then func_show_eval '$RM "$output_objdir/${outputname}S.$objext"' fi exit $exit_status } if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test yes = "$no_install"; then # We don't need to create a wrapper script. link_command=$compile_var$compile_command$compile_rpath # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi exit $EXIT_SUCCESS fi case $hardcode_action,$fast_install in relink,*) # Fast installation is not supported link_command=$compile_var$compile_command$compile_rpath relink_command=$finalize_var$finalize_command$finalize_rpath func_warning "this platform does not like uninstalled shared libraries" func_warning "'$output' will be relinked during installation" ;; *,yes) link_command=$finalize_var$compile_command$finalize_rpath relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` ;; *,no) link_command=$compile_var$compile_command$compile_rpath relink_command=$finalize_var$finalize_command$finalize_rpath ;; *,needless) link_command=$finalize_var$compile_command$finalize_rpath relink_command= ;; esac # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output_objdir/$outputname" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_arg pretty "$var_value" relink_command="$var=$func_quote_arg_result; export $var; $relink_command" fi done func_quote eval cd "`pwd`" func_quote_arg pretty,unquoted "($func_quote_result; $relink_command)" relink_command=$func_quote_arg_unquoted_result fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource=$output_path/$objdir/lt-$output_name.c cwrapper=$output_path/$output_name.exe $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host"; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do case $build_libtool_libs in convenience) oldobjs="$libobjs_save $symfileobj" addlibs=$convenience build_libtool_libs=no ;; module) oldobjs=$libobjs_save addlibs=$old_convenience build_libtool_libs=no ;; *) oldobjs="$old_deplibs $non_pic_objects" $preload && test -f "$symfileobj" \ && func_append oldobjs " $symfileobj" addlibs=$old_convenience ;; esac if test -n "$addlibs"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase=$func_basename_result case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds elif test -n "$archiver_list_spec"; then func_verbose "using command file archive linking..." for obj in $oldobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > $output_objdir/$libname.libcmd func_to_tool_file "$output_objdir/$libname.libcmd" oldobjs=" $archiver_list_spec$func_to_tool_file_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj"; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test -z "$oldobjs"; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test yes = "$build_old_libs" && old_library=$libname.$libext func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_arg pretty,unquoted "$var_value" relink_command="$var=$func_quote_arg_unquoted_result; export $var; $relink_command" fi done # Quote the link command for shipping. func_quote eval cd "`pwd`" relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" func_quote_arg pretty,unquoted "$relink_command" relink_command=$func_quote_arg_unquoted_result if test yes = "$hardcode_automatic"; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test yes = "$installed"; then if test -z "$install_libdir"; then break fi output=$output_objdir/${outputname}i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name=$func_basename_result func_resolve_sysroot "$deplib" eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` test -z "$libdir" && \ func_fatal_error "'$deplib' is not a valid libtool archive" func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" ;; -L*) func_stripname -L '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -L$func_replace_sysroot_result" ;; -R*) func_stripname -R '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -R$func_replace_sysroot_result" ;; *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs=$newdependency_libs newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name=$func_basename_result eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "'$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles=$newdlfiles newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name=$func_basename_result eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "'$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles=$newdlprefiles else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles=$newdlfiles newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlprefiles " $abs" done dlprefiles=$newdlprefiles fi $RM $output # place dlname in correct position for cygwin # In fact, it would be nice if we could use this code for all target # systems that can't hard-code library paths into their executables # and that have no shared library path variable independent of PATH, # but it turns out we can't easily determine that from inspecting # libtool variables, so we have to hard-code the OSs to which it # applies here; at the moment, that means platforms that use the PE # object format with DLL files. See the long comment at the top of # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) # If a -bindir argument was supplied, place the dll there. if test -n "$bindir"; then func_relative_path "$install_libdir" "$bindir" tdlname=$func_relative_path_result/$dlname else # Otherwise fall back on heuristic. tdlname=../bin/$dlname fi ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that cannot go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test no,yes = "$installed,$need_relink"; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } if test link = "$opt_mode" || test relink = "$opt_mode"; then func_mode_link ${1+"$@"} fi # func_mode_uninstall arg... func_mode_uninstall () { $debug_cmd RM=$nonopt files= rmforce=false exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic=$magic for arg do case $arg in -f) func_append RM " $arg"; rmforce=: ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir=$func_dirname_result if test . = "$dir"; then odir=$objdir else odir=$dir/$objdir fi func_basename "$file" name=$func_basename_result test uninstall = "$opt_mode" && odir=$dir # Remember odir for removal later, being careful to avoid duplicates if test clean = "$opt_mode"; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif $rmforce; then continue fi rmfiles=$file case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case $opt_mode in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test none != "$pic_object"; then func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test none != "$non_pic_object"; then func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test clean = "$opt_mode"; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.$objext" if test yes = "$fast_install" && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name"; then func_append rmfiles " $odir/lt-$noexename.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the $objdir's in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then func_mode_uninstall ${1+"$@"} fi test -z "$opt_mode" && { help=$generic_help func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode '$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # where we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: Gyoto-2.0.2/plugins/null/m4/000077500000000000000000000000001455254334400156005ustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/m4/libtool.m4000077700000000000000000000000001455254334400225702../../../m4/libtool.m4ustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/m4/ltoptions.m4000077700000000000000000000000001455254334400235462../../../m4/ltoptions.m4ustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/m4/ltsugar.m4000077700000000000000000000000001455254334400226222../../../m4/ltsugar.m4ustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/m4/ltversion.m4000077700000000000000000000000001455254334400235322../../../m4/ltversion.m4ustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/m4/lt~obsolete.m4000077700000000000000000000000001455254334400244042../../../m4/lt~obsolete.m4ustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/m4/pkg.m4000077700000000000000000000000001455254334400210222../../../m4/pkg.m4ustar00rootroot00000000000000Gyoto-2.0.2/plugins/null/missing000077700000000000000000000000001455254334400206712../../missingustar00rootroot00000000000000Gyoto-2.0.2/plugins/python/000077500000000000000000000000001455254334400156275ustar00rootroot00000000000000Gyoto-2.0.2/plugins/python/AUTHORS000077700000000000000000000000001455254334400203702../../AUTHORSustar00rootroot00000000000000Gyoto-2.0.2/plugins/python/COPYING000077700000000000000000000000001455254334400203362../../COPYINGustar00rootroot00000000000000Gyoto-2.0.2/plugins/python/ChangeLog000077700000000000000000000000001455254334400215742../../ChangeLogustar00rootroot00000000000000Gyoto-2.0.2/plugins/python/INSTALL000077700000000000000000000000001455254334400203322../../INSTALLustar00rootroot00000000000000Gyoto-2.0.2/plugins/python/Makefile.am000066400000000000000000000001351455254334400176620ustar00rootroot00000000000000ACLOCAL_AMFLAGS = -I m4 SUBDIRS=@mySUBDIRS@ $(SUBDIRS): cd $@ ; $(MAKE) .PHONY: $(SUBDIRS) Gyoto-2.0.2/plugins/python/Makefile.in000066400000000000000000000636741455254334400177140ustar00rootroot00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ 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@ target_triplet = @target@ subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(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/python.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_CLEAN_FILES = bin/gyoto 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 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 distdir-am dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # 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)` DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/../../compile \ $(top_srcdir)/../../config.guess \ $(top_srcdir)/../../config.sub $(top_srcdir)/../../install-sh \ $(top_srcdir)/../../ltmain.sh $(top_srcdir)/../../missing \ $(top_srcdir)/bin/gyoto.in AUTHORS COPYING ChangeLog INSTALL \ NEWS README.md config.guess config.sub depcomp 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 GZIP_ENV = --best DIST_TARGETS = dist-gzip # Exists only to be overridden by the user if desired. AM_DISTCHECK_DVI_TARGET = dvi 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@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DYLIB_VAR = @DYLIB_VAR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FILECMD = @FILECMD@ GREP = @GREP@ GYOTO = @GYOTO@ GYOTO_EPREFIX = @GYOTO_EPREFIX@ GYOTO_PLUGIN_SFX = @GYOTO_PLUGIN_SFX@ GYOTO_PREFIX = @GYOTO_PREFIX@ Gyoto_CFLAGS = @Gyoto_CFLAGS@ Gyoto_LIBS = @Gyoto_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ NUMPY_CFLAGS = @NUMPY_CFLAGS@ 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@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PYTHON = @PYTHON@ PYTHON_CFLAGS = @PYTHON_CFLAGS@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBS = @PYTHON_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SYS = @SYS@ VERSION = @VERSION@ Y_INST_HOME = @Y_INST_HOME@ Y_INST_SITE = @Y_INST_SITE@ 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@ linkname = @linkname@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ mySUBDIRS = @mySUBDIRS@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ plugin_sfx = @plugin_sfx@ pluginname = @pluginname@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ soverdir = @soverdir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = @mySUBDIRS@ all: all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu 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__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): bin/gyoto: $(top_builddir)/config.status $(top_srcdir)/bin/gyoto.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 # 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: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(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) | eval GZIP= gzip $(GZIP_ENV) -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-zstd: distdir tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst $(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) | eval GZIP= gzip $(GZIP_ENV) -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*) \ eval GZIP= gzip $(GZIP_ENV) -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*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ *.tar.zst*) \ zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ 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) $(AM_DISTCHECK_DVI_TARGET) \ && $(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 installdirs: installdirs-recursive installdirs-am: 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." 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-libtool \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: 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: .MAKE: $(am__recursive_targets) 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 dist-zstd distcheck distclean \ distclean-generic 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-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 .PRECIOUS: Makefile $(SUBDIRS): cd $@ ; $(MAKE) .PHONY: $(SUBDIRS) # 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: Gyoto-2.0.2/plugins/python/NEWS000077700000000000000000000000001455254334400174462../../NEWSustar00rootroot00000000000000Gyoto-2.0.2/plugins/python/README.md000066400000000000000000000053351455254334400171140ustar00rootroot00000000000000# Python plug-in for Gyoto ## Purpose Files in this directory (plugins/python/ in the Gyoto source) allow building a Gyoto plug-in that embeds the Python interpreter to call Python routine from within Gyoto. This allows extending Gyoto with new Metric, Astrobj or Spectrum classes implemented in Python. This is different from, but complementary with, the files in the python/ directory, which allow extending Python to call Gyoto routines from Python. ## Building and installing This directory is built and installed with the rest of Gyoto. See INSTALL.Gyoto.md in the top-most directory. Make sure the right Python interpreter is found at the "configure" step. ## Caveats Coding your new Metric, Astrobj or Spectrum class in Python is efficient in terms of human resources, while coding it in C++ is much more efficient in terms of computing resources. ## Usage It is possible to compile this plug-in for the several installations of Python that may coexist on the system. The name of the plug-in will be the same as the name of the python executable (e.g. python3, python3.9...) It the rest of this text, we will assume this is `python3'. This plug-in is not part of the plug-ins loaded by default in Gyoto. Several possibilities exist to load it explicitly: * set the GYOTO_PLUGINS environment variable, not forgetting to also list the other desired default plugins, e.g.: ```export GYOTO_PLUGINS=stdplug,python3,nofail:lorene``` * use the `--plugins' option of the gyoto command-line tool, e.g.: ```gyoto --plugins=stdplug,python3,nofail:lorene ...``` * in Python, use ```gyoto.core.requirePlugin('python3')``` * in XML, set the plugin property: `````` The content of plugins/python/doc/examples should give enough resources to get started. The gyoto_sample_*.py modules contain documentation about how to code a class in Python while the test*.py scripts give an idea of how to instantiate and use such classes using the Python bindings. One can also directly load the provided XML files into the stand-alone gyoto executable by using the --plugins option. Note that multi-threading is not efficient when using a Python metric in particular, but MPI parallelization works quite well, so the command line could look something like: ``` mpirun -np 4 gyoto --plugins=python3,stdplug -P-1 input.xml \!output.fits ``` For more information or for information on writing new classes in C++, please refer to Sect. 9 of the Gyoto manual, available as doc/user_guide/GyotoManual.pdf once Gyoto has been built on your system, or at https://gyoto.obspm.fr/GyotoManual.pdf ## Copyright This is part of Gyoto and has the same license (GPL v3+). It is packaged in a sub-directory as an example for packaging Gyoto plug-ins. Gyoto-2.0.2/plugins/python/aclocal.m4000066400000000000000000001536711455254334400175040ustar00rootroot00000000000000# generated automatically by aclocal 1.16.5 -*- Autoconf -*- # Copyright (C) 1996-2021 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.71],, [m4_warning([this file was generated for autoconf 2.71. 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'.])]) # pkg.m4 - Macros to locate and use pkg-config. -*- Autoconf -*- # serial 12 (pkg-config-0.29.2) dnl Copyright © 2004 Scott James Remnant . dnl Copyright © 2012-2015 Dan Nicholson 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 2 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, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl 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, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA dnl 02111-1307, USA. dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a dnl configuration script generated by Autoconf, you may include it under dnl the same distribution terms that you use for the rest of that dnl program. dnl PKG_PREREQ(MIN-VERSION) dnl ----------------------- dnl Since: 0.29 dnl dnl Verify that the version of the pkg-config macros are at least dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's dnl installed version of pkg-config, this checks the developer's version dnl of pkg.m4 when generating configure. dnl dnl To ensure that this macro is defined, also add: dnl m4_ifndef([PKG_PREREQ], dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) dnl dnl See the "Since" comment for each macro you use to see what version dnl of the macros you require. m4_defun([PKG_PREREQ], [m4_define([PKG_MACROS_VERSION], [0.29.2]) m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) ])dnl PKG_PREREQ dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) dnl ---------------------------------- dnl Since: 0.16 dnl dnl Search for the pkg-config tool and set the PKG_CONFIG variable to dnl first found in the path. Checks that the version of pkg-config found dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is dnl used since that's the first version where most current features of dnl pkg-config existed. AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])dnl PKG_PROG_PKG_CONFIG dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------------------------------- dnl Since: 0.18 dnl dnl Check to see whether a particular set of modules exists. Similar to dnl PKG_CHECK_MODULES(), but does not set variables or print errors. dnl dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) dnl only at the first occurrence in configure.ac, so if the first place dnl it's called might be skipped (such as if it is within an "if", you dnl have to call PKG_CHECK_EXISTS manually AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) dnl --------------------------------------------- dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting dnl pkg_failed based on the result. m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])dnl _PKG_CONFIG dnl _PKG_SHORT_ERRORS_SUPPORTED dnl --------------------------- dnl Internal check to see if pkg-config supports short errors. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])dnl _PKG_SHORT_ERRORS_SUPPORTED dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl -------------------------------------------------------------- dnl Since: 0.4.0 dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES might not happen, you should be sure to include an dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $2]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])dnl PKG_CHECK_MODULES dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl --------------------------------------------------------------------- dnl Since: 0.29 dnl dnl Checks for existence of MODULES and gathers its build flags with dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags dnl and VARIABLE-PREFIX_LIBS from --libs. dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to dnl include an explicit call to PKG_PROG_PKG_CONFIG in your dnl configure.ac. AC_DEFUN([PKG_CHECK_MODULES_STATIC], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl _save_PKG_CONFIG=$PKG_CONFIG PKG_CONFIG="$PKG_CONFIG --static" PKG_CHECK_MODULES($@) PKG_CONFIG=$_save_PKG_CONFIG[]dnl ])dnl PKG_CHECK_MODULES_STATIC dnl PKG_INSTALLDIR([DIRECTORY]) dnl ------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable pkgconfigdir as the location where a module dnl should install pkg-config .pc files. By default the directory is dnl $libdir/pkgconfig, but the default can be changed by passing dnl DIRECTORY. The user can override through the --with-pkgconfigdir dnl parameter. AC_DEFUN([PKG_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([pkgconfigdir], [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, [with_pkgconfigdir=]pkg_default) AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_INSTALLDIR dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) dnl -------------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable noarch_pkgconfigdir as the location where a dnl module should install arch-independent pkg-config .pc files. By dnl default the directory is $datadir/pkgconfig, but the default can be dnl changed by passing DIRECTORY. The user can override through the dnl --with-noarch-pkgconfigdir parameter. AC_DEFUN([PKG_NOARCH_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([noarch-pkgconfigdir], [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, [with_noarch_pkgconfigdir=]pkg_default) AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_NOARCH_INSTALLDIR dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------- dnl Since: 0.28 dnl dnl Retrieves the value of the pkg-config variable for the given module. AC_DEFUN([PKG_CHECK_VAR], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl _PKG_CONFIG([$1], [variable="][$3]["], [$2]) AS_VAR_COPY([$1], [pkg_cv_][$1]) AS_VAR_IF([$1], [""], [$5], [$4])dnl ])dnl PKG_CHECK_VAR dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], dnl [DESCRIPTION], [DEFAULT]) dnl ------------------------------------------ dnl dnl Prepare a "--with-" configure option using the lowercase dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and dnl PKG_CHECK_MODULES in a single macro. AC_DEFUN([PKG_WITH_MODULES], [ m4_pushdef([with_arg], m4_tolower([$1])) m4_pushdef([description], [m4_default([$5], [build with ]with_arg[ support])]) m4_pushdef([def_arg], [m4_default([$6], [auto])]) m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) m4_case(def_arg, [yes],[m4_pushdef([with_without], [--without-]with_arg)], [m4_pushdef([with_without],[--with-]with_arg)]) AC_ARG_WITH(with_arg, AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, [AS_TR_SH([with_]with_arg)=def_arg]) AS_CASE([$AS_TR_SH([with_]with_arg)], [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], [auto],[PKG_CHECK_MODULES([$1],[$2], [m4_n([def_action_if_found]) $3], [m4_n([def_action_if_not_found]) $4])]) m4_popdef([with_arg]) m4_popdef([description]) m4_popdef([def_arg]) ])dnl PKG_WITH_MODULES dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [DESCRIPTION], [DEFAULT]) dnl ----------------------------------------------- dnl dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES dnl check._[VARIABLE-PREFIX] is exported as make variable. AC_DEFUN([PKG_HAVE_WITH_MODULES], [ PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) AM_CONDITIONAL([HAVE_][$1], [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) ])dnl PKG_HAVE_WITH_MODULES dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [DESCRIPTION], [DEFAULT]) dnl ------------------------------------------------------ dnl dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make dnl and preprocessor variable. AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], [ PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) ])dnl PKG_HAVE_DEFINE_WITH_MODULES # Copyright (C) 2002-2021 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.16' 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.16.5], [], [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.16.5])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-2021 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-2021 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-2021 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-2021 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. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. AS_CASE([$CONFIG_FILES], [*\'*], [eval set x "$CONFIG_FILES"], [*], [set x $CONFIG_FILES]) shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`AS_DIRNAME(["$am_mf"])` am_filepart=`AS_BASENAME(["$am_mf"])` AM_RUN_LOG([cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles]) || am_rc=$? done if test $am_rc -ne 0; then AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE="gmake" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking).]) fi AS_UNSET([am_dirpart]) AS_UNSET([am_filepart]) AS_UNSET([am_mf]) AS_UNSET([am_rc]) rm -f conftest-deps.mk } ])# _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. # This creates each '.Po' and '.Plo' makefile fragment that we'll 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" MAKE="${MAKE-make}"])]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2021 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 m4_ifdef([_$0_ALREADY_INIT], [m4_fatal([$0 expanded multiple times ]m4_defn([_$0_ALREADY_INIT]))], [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])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_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([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 ]) # Variables for tags utilities; see am/tags.am if test -z "$CTAGS"; then CTAGS=ctags fi AC_SUBST([CTAGS]) if test -z "$ETAGS"; then ETAGS=etags fi AC_SUBST([ETAGS]) if test -z "$CSCOPE"; then CSCOPE=cscope fi AC_SUBST([CSCOPE]) 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-2021 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-2021 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])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2021 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 whether make has an 'include' directive that can support all # the idioms we need for our automatic dependency tracking code. AC_DEFUN([AM_MAKE_INCLUDE], [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) AS_CASE([$?:`cat confinc.out 2>/dev/null`], ['0:this is the am__doit target'], [AS_CASE([$s], [BSD], [am__include='.include' am__quote='"'], [am__include='include' am__quote=''])]) if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* AC_MSG_RESULT([${_am_result}]) AC_SUBST([am__include])]) AC_SUBST([am__quote])]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2021 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 MISSING="\${SHELL} '$am_aux_dir/missing'" 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-2021 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-2021 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-2021 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-2021 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-2021 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-2021 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-2021 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-2021 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/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/python.m4]) Gyoto-2.0.2/plugins/python/bin/000077500000000000000000000000001455254334400163775ustar00rootroot00000000000000Gyoto-2.0.2/plugins/python/bin/gyoto.in000066400000000000000000000003501455254334400200660ustar00rootroot00000000000000#!/bin/sh set -e export LD_LIBRARY_PATH=@abs_top_srcdir@/lib/.libs:$LD_LIBRARY_PATH export DYLD_LIBRARY_PATH=@abs_top_srcdir@/lib/.libs:$DYLD_LIBRARY_PATH export GYOTO_PLUGINS=stdplug,nofail:lorene,@pluginname@ @GYOTO@ $@ exit 0 Gyoto-2.0.2/plugins/python/config.guess000077700000000000000000000000001455254334400231022../../config.guessustar00rootroot00000000000000Gyoto-2.0.2/plugins/python/config.sub000077700000000000000000000000001455254334400222102../../config.subustar00rootroot00000000000000Gyoto-2.0.2/plugins/python/configure000077500000000000000000023365211455254334400175520ustar00rootroot00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.71 for gyoto-python 0.0.0. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=: if test ${ZSH_VERSION+y} && (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 $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; 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 # 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # 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'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 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="as_nop=: if test \${ZSH_VERSION+y} && (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 \$as_nop 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 \$as_nop exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) test x\"\$blah\" = xblah || 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 -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 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes else $as_nop as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$as_shell as_have_required=yes if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null then : break 2 fi fi done;; esac as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes fi fi 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'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno then : printf "%s\n" "$0: This script requires a shell more modern than all" printf "%s\n" "$0: the shells that I found on your system." if test ${ZSH_VERSION+y} ; then printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and $0: gyoto@sympa.obspm.fr about your system, including any $0: error possibly output before this message. Then install $0: a modern shell, or manually run the script under such a $0: 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_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # 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=`printf "%s\n" "$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 || printf "%s\n" 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_nop 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_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # 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 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$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 || printf "%s\n" 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" || { printf "%s\n" "$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 } # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. 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 # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' 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='gyoto-python' PACKAGE_TARNAME='gyoto-python' PACKAGE_VERSION='0.0.0' PACKAGE_STRING='gyoto-python 0.0.0' PACKAGE_BUGREPORT='gyoto@sympa.obspm.fr' PACKAGE_URL='' ac_unique_file="include/GyotoPython.h" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_STDIO_H # include #endif #ifdef HAVE_STDLIB_H # include #endif #ifdef HAVE_STRING_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_header_c_list= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS mySUBDIRS NUMPY_CFLAGS DEFAULT_FALSE DEFAULT_TRUE linkname pluginname PYTHON_LIBS PYTHON_LDFLAGS PYTHON_CFLAGS PYTHON_INCLUDES PYTHON_CONFIG PYTHON Y_INST_SITE Y_INST_HOME GYOTO_PLUGIN_SFX GYOTO_EPREFIX GYOTO_PREFIX GYOTO soverdir Gyoto_LIBS Gyoto_CFLAGS plugin_sfx SYS DYLIB_VAR PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG CXXCPP am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX LT_SYS_LIBRARY_PATH OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR DLLTOOL OBJDUMP FILECMD LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC LIBTOOL AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V CSCOPE ETAGS CTAGS 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_os target_vendor target_cpu target host_os host_vendor host_cpu host build_os build_vendor build_cpu build 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 am__quote' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_shared enable_static with_pic enable_fast_install with_aix_soname enable_dependency_tracking with_gnu_ld with_sysroot enable_libtool_lock with_python ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS LT_SYS_LIBRARY_PATH CXX CXXFLAGS CCC CXXCPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR Gyoto_CFLAGS Gyoto_LIBS PYTHON PYTHON_CONFIG' # 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 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=`printf "%s\n" "$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=`printf "%s\n" "$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=`printf "%s\n" "$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=`printf "%s\n" "$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. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && printf "%s\n" "$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" ;; *) printf "%s\n" "$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 || printf "%s\n" 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 gyoto-python 0.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/gyoto-python] --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] --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of gyoto-python 0.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-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] --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --disable-libtool-lock avoid locking (might break parallel builds) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --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-python[=interpreter] force (or disable) python support, possibly specifying interpreter 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 LT_SYS_LIBRARY_PATH User-defined run-time library search path. CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path Gyoto_CFLAGS C compiler flags for Gyoto, overriding pkg-config Gyoto_LIBS linker flags for Gyoto, overriding pkg-config PYTHON the Python interpreter PYTHON_CONFIG the Python-config program 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=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$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 configure.gnu first; this name is used for a wrapper for # Metaconfig's "Configure" on case-insensitive file systems. 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 printf "%s\n" "$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 gyoto-python configure 0.0.0 generated by GNU Autoconf 2.71 Copyright (C) 2021 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 conftest.beam 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\"" printf "%s\n" "$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 printf "%s\n" "$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_nop printf "%s\n" "$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_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.beam 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\"" printf "%s\n" "$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 printf "%s\n" "$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_nop printf "%s\n" "$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_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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop 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 $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ #include #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 (void) { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$3=yes" else $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # 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 conftest.beam 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\"" printf "%s\n" "$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 printf "%s\n" "$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_nop printf "%s\n" "$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_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\"" printf "%s\n" "$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 printf "%s\n" "$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_nop printf "%s\n" "$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.beam 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\"" printf "%s\n" "$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 printf "%s\n" "$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_nop printf "%s\n" "$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 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type ac_configure_args_raw= for ac_arg do case $ac_arg in *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append ac_configure_args_raw " '$ac_arg'" done case $ac_configure_args_raw in *$as_nl*) ac_safe_unquote= ;; *) ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. ac_unsafe_a="$ac_unsafe_z#~" ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; esac 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 gyoto-python $as_me 0.0.0, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw _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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac printf "%s\n" "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=`printf "%s\n" "$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=$? # Sanitize IFS. IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo printf "%s\n" "## ---------------- ## ## 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_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$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 printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && printf "%s\n" "$as_me: caught signal $ac_signal" printf "%s\n" "$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 printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi for ac_site_file in $ac_site_files do case $ac_site_file in #( */*) : ;; #( *) : ac_site_file=./$ac_site_file ;; esac if test -f "$ac_site_file" && test -r "$ac_site_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Test code for whether the C compiler supports C89 (global declarations) ac_c_conftest_c89_globals=' /* Does the compiler advertise C89 conformance? Do not test the value of __STDC__, because some compilers set it to 0 while being otherwise adequately conformant. */ #if !defined __STDC__ # error "Compiler does not advertise C89 conformance" #endif #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*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 do not provoke an error unfortunately, instead are silently treated as an "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 is necessary to write \x00 == 0 to get something that is 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 **, int *(*)(struct buf *, struct stat *, int), int, int);' # Test code for whether the C compiler supports C89 (body of main). ac_c_conftest_c89_main=' ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); ' # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' // Does the compiler advertise C99 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare // FILE and stderr. #define debug(...) dprintf (2, __VA_ARGS__) #define showlist(...) puts (#__VA_ARGS__) #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) static void test_varargs_macros (void) { int x = 1234; int y = 5678; debug ("Flag"); debug ("X = %d\n", x); showlist (The first, second, and third items.); report (x>y, "x is %d but y is %d", x, y); } // Check long long types. #define BIG64 18446744073709551615ull #define BIG32 4294967295ul #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) #if !BIG_OK #error "your preprocessor is broken" #endif #if BIG_OK #else #error "your preprocessor is broken" #endif static long long int bignum = -9223372036854775807LL; static unsigned long long int ubignum = BIG64; struct incomplete_array { int datasize; double data[]; }; struct named_init { int number; const wchar_t *name; double average; }; typedef const char *ccp; static inline int test_restrict (ccp restrict text) { // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) continue; return 0; } // Check varargs and va_copy. static bool test_varargs (const char *format, ...) { va_list args; va_start (args, format); va_list args_copy; va_copy (args_copy, args); const char *str = ""; int number = 0; float fnumber = 0; while (*format) { switch (*format++) { case '\''s'\'': // string str = va_arg (args_copy, const char *); break; case '\''d'\'': // int number = va_arg (args_copy, int); break; case '\''f'\'': // float fnumber = va_arg (args_copy, double); break; default: break; } } va_end (args_copy); va_end (args); return *str && number && fnumber; } ' # Test code for whether the C compiler supports C99 (body of main). ac_c_conftest_c99_main=' // Check bool. _Bool success = false; success |= (argc != 0); // Check restrict. if (test_restrict ("String literal") == 0) success = true; char *restrict newvar = "Another string"; // Check varargs. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); test_varargs_macros (); // Check flexible array members. struct incomplete_array *ia = malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; // Check named initializers. struct named_init ni = { .number = 34, .name = L"Test wide string", .average = 543.34343, }; ni.number = 58; int dynamic_array[ni.number]; dynamic_array[0] = argv[0][0]; dynamic_array[ni.number - 1] = 543; // work around unused variable warnings ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' || dynamic_array[ni.number - 1] != 543); ' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' // Does the compiler advertise C11 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif // Check _Alignas. char _Alignas (double) aligned_as_double; char _Alignas (0) no_special_alignment; extern char aligned_as_int; char _Alignas (0) _Alignas (int) aligned_as_int; // Check _Alignof. enum { int_alignment = _Alignof (int), int_array_alignment = _Alignof (int[100]), char_alignment = _Alignof (char) }; _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); // Check _Noreturn. int _Noreturn does_not_return (void) { for (;;) continue; } // Check _Static_assert. struct test_static_assert { int x; _Static_assert (sizeof (int) <= sizeof (long int), "_Static_assert does not work in struct"); long int y; }; // Check UTF-8 literals. #define u8 syntax error! char const utf8_literal[] = u8"happens to be ASCII" "another string"; // Check duplicate typedefs. typedef long *long_ptr; typedef long int *long_ptr; typedef long_ptr long_ptr; // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. struct anonymous { union { struct { int i; int j; }; struct { int k; long int l; } w; }; int m; } v1; ' # Test code for whether the C compiler supports C11 (body of main). ac_c_conftest_c11_main=' _Static_assert ((offsetof (struct anonymous, i) == offsetof (struct anonymous, w.k)), "Anonymous union alignment botch"); v1.i = 2; v1.w.k = 5; ok |= v1.i != 5; ' # Test code for whether the C compiler supports C11 (complete). ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} ${ac_c_conftest_c11_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} ${ac_c_conftest_c11_main} return ok; } " # Test code for whether the C compiler supports C99 (complete). ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} return ok; } " # Test code for whether the C compiler supports C89 (complete). ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} return ok; } " as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" # Test code for whether the C++ compiler supports C++98 (global declarations) ac_cxx_conftest_cxx98_globals=' // Does the compiler advertise C++98 conformance? #if !defined __cplusplus || __cplusplus < 199711L # error "Compiler does not advertise C++98 conformance" #endif // These inclusions are to reject old compilers that // lack the unsuffixed header files. #include #include // and are *not* freestanding headers in C++98. extern void assert (int); namespace std { extern int strcmp (const char *, const char *); } // Namespaces, exceptions, and templates were all added after "C++ 2.0". using std::exception; using std::strcmp; namespace { void test_exception_syntax() { try { throw "test"; } catch (const char *s) { // Extra parentheses suppress a warning when building autoconf itself, // due to lint rules shared with more typical C programs. assert (!(strcmp) (s, "test")); } } template struct test_template { T const val; explicit test_template(T t) : val(t) {} template T add(U u) { return static_cast(u) + val; } }; } // anonymous namespace ' # Test code for whether the C++ compiler supports C++98 (body of main) ac_cxx_conftest_cxx98_main=' assert (argc); assert (! argv[0]); { test_exception_syntax (); test_template tt (2.0); assert (tt.add (4) == 6.0); assert (true && !false); } ' # Test code for whether the C++ compiler supports C++11 (global declarations) ac_cxx_conftest_cxx11_globals=' // Does the compiler advertise C++ 2011 conformance? #if !defined __cplusplus || __cplusplus < 201103L # error "Compiler does not advertise C++11 conformance" #endif namespace cxx11test { constexpr int get_val() { return 20; } struct testinit { int i; double d; }; class delegate { public: delegate(int n) : n(n) {} delegate(): delegate(2354) {} virtual int getval() { return this->n; }; protected: int n; }; class overridden : public delegate { public: overridden(int n): delegate(n) {} virtual int getval() override final { return this->n * 2; } }; class nocopy { public: nocopy(int i): i(i) {} nocopy() = default; nocopy(const nocopy&) = delete; nocopy & operator=(const nocopy&) = delete; private: int i; }; // for testing lambda expressions template Ret eval(Fn f, Ret v) { return f(v); } // for testing variadic templates and trailing return types template auto sum(V first) -> V { return first; } template auto sum(V first, Args... rest) -> V { return first + sum(rest...); } } ' # Test code for whether the C++ compiler supports C++11 (body of main) ac_cxx_conftest_cxx11_main=' { // Test auto and decltype auto a1 = 6538; auto a2 = 48573953.4; auto a3 = "String literal"; int total = 0; for (auto i = a3; *i; ++i) { total += *i; } decltype(a2) a4 = 34895.034; } { // Test constexpr short sa[cxx11test::get_val()] = { 0 }; } { // Test initializer lists cxx11test::testinit il = { 4323, 435234.23544 }; } { // Test range-based for int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; for (auto &x : array) { x += 23; } } { // Test lambda expressions using cxx11test::eval; assert (eval ([](int x) { return x*2; }, 21) == 42); double d = 2.0; assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); assert (d == 5.0); assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); assert (d == 5.0); } { // Test use of variadic templates using cxx11test::sum; auto a = sum(1); auto b = sum(1, 2); auto c = sum(1.0, 2.0, 3.0); } { // Test constructor delegation cxx11test::delegate d1; cxx11test::delegate d2(); cxx11test::delegate d3(45); } { // Test override and final cxx11test::overridden o1(55464); } { // Test nullptr char *c = nullptr; } { // Test template brackets test_template<::test_template> v(test_template(12)); } { // Unicode literals char const *utf8 = u8"UTF-8 string \u2500"; char16_t const *utf16 = u"UTF-8 string \u2500"; char32_t const *utf32 = U"UTF-32 string \u2500"; } ' # Test code for whether the C compiler supports C++11 (complete). ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} ${ac_cxx_conftest_cxx11_globals} int main (int argc, char **argv) { int ok = 0; ${ac_cxx_conftest_cxx98_main} ${ac_cxx_conftest_cxx11_main} return ok; } " # Test code for whether the C compiler supports C++98 (complete). ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} int main (int argc, char **argv) { int ok = 0; ${ac_cxx_conftest_cxx98_main} return ok; } " # Auxiliary files required by this configure script. ac_aux_files="compile ltmain.sh missing install-sh config.guess config.sub" # Locations in which to look for auxiliary files. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." # Search for a directory containing all of the required auxiliary files, # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. # If we don't find one directory that contains all the files we need, # we report the set of missing files from the *first* directory in # $ac_aux_dir_candidates and give up. ac_missing_aux_files="" ac_first_candidate=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in $ac_aux_dir_candidates do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac as_found=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 ac_aux_dir_found=yes ac_install_sh= for ac_aux in $ac_aux_files do # As a special case, if "install-sh" is required, that requirement # can be satisfied by any of "install-sh", "install.sh", or "shtool", # and $ac_install_sh is set appropriately for whichever one is found. if test x"$ac_aux" = x"install-sh" then if test -f "${as_dir}install-sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 ac_install_sh="${as_dir}install-sh -c" elif test -f "${as_dir}install.sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 ac_install_sh="${as_dir}install.sh -c" elif test -f "${as_dir}shtool"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 ac_install_sh="${as_dir}shtool install -c" else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} install-sh" else break fi fi else if test -f "${as_dir}${ac_aux}"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" else break fi fi fi done if test "$ac_aux_dir_found" = yes; then ac_aux_dir="$as_dir" break fi ac_first_candidate=false as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$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. if test -f "${ac_aux_dir}config.guess"; then ac_config_guess="$SHELL ${ac_aux_dir}config.guess" fi if test -f "${ac_aux_dir}config.sub"; then ac_config_sub="$SHELL ${ac_aux_dir}config.sub" fi if test -f "$ac_aux_dir/configure"; then ac_configure="$SHELL ${ac_aux_dir}configure" 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,) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 printf "%s\n" "$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=`printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`${MAKE-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 # 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 printf %s "checking build system type... " >&6; } if test ${ac_cv_build+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 printf %s "checking host system type... " >&6; } if test ${ac_cv_host+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 printf %s "checking target system type... " >&6; } if test ${ac_cv_target+y} then : printf %s "(cached) " >&6 else $as_nop if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 printf "%s\n" "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' set x $ac_cv_target shift target_cpu=$1 target_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: target_os=$* IFS=$ac_save_IFS case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac # The aliases save the names the user supplied, while $host etc. # will get canonicalized. test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- am__api_version='1.16' # 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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 printf %s "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if test ${ac_cv_path_install+y} then : printf %s "(cached) " >&6 else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac # Account for fact that we put trailing slashes in our PATH walk. 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+y}; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 printf "%s\n" "$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' { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "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=`printf "%s\n" "$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 MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 printf "%s\n" "$STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 printf "%s\n" "$ac_ct_STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 printf %s "checking for a race-free mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if test ${ac_cv_path_mkdir+y} then : printf %s "(cached) " >&6 else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 ('*'coreutils) '* | \ 'BusyBox '* | \ '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+y}; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 printf "%s\n" "$AWK" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$AWK" && break done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval test \${ac_cv_prog_make_${ac_make}_set+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } SET_MAKE= else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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+y} 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} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 printf %s "checking whether $am_make supports nested variables... " >&6; } if test ${am_cv_make_support_nested_variables+y} then : printf %s "(cached) " >&6 else $as_nop if printf "%s\n" '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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 printf "%s\n" "$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='gyoto-python' VERSION='0.0.0' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h # 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 -' # Variables for tags utilities; see am/tags.am if test -z "$CTAGS"; then CTAGS=ctags fi if test -z "$ETAGS"; then ETAGS=etags fi if test -z "$CSCOPE"; then CSCOPE=cscope fi # 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 case `pwd` in *\ * | *\ *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.7' macro_revision='2.4.7' 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 printf %s "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*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 printf "%s\n" "printf" >&6; } ;; print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 printf "%s\n" "print -r" >&6; } ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 printf "%s\n" "cat" >&6; } ;; esac DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } case $?:`cat confinc.out 2>/dev/null` in #( '0:this is the am__doit target') : case $s in #( BSD) : am__include='.include' am__quote='"' ;; #( *) : am__include='include' am__quote='' ;; esac ;; #( *) : ;; esac if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 printf "%s\n" "${_am_result}" >&6; } # Check whether --enable-dependency-tracking was given. if test ${enable_dependency_tracking+y} 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 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. set dummy ${ac_tool_prefix}clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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}clang" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "clang", so it can be a program name with args. set dummy clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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="clang" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 fi test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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. printf "%s\n" "$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 -version; 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\"" printf "%s\n" "$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 printf "%s\n" "$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 (void) { ; 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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 printf %s "checking whether the C compiler works... " >&6; } ac_link_default=`printf "%s\n" "$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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? printf "%s\n" "$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+y} && 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 $as_nop ac_file='' fi if test -z "$ac_file" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 printf %s "checking for C compiler default output file name... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 printf %s "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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$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_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 printf "%s\n" "$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 (void) { 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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 printf %s "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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? printf "%s\n" "$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 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 printf "%s\n" "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? printf "%s\n" "$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_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_c_compiler_gnu if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes else $as_nop CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } if test $ac_test_CFLAGS; 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 ac_prog_cc_stdc=no if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c11_program _ACEOF for ac_arg in '' -std=gnu11 do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } CC="$CC $ac_cv_prog_cc_c11" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 ac_prog_cc_stdc=c11 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c99_program _ACEOF for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c99=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } CC="$CC $ac_cv_prog_cc_c99" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 ac_prog_cc_stdc=c99 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c89_program _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 conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } CC="$CC $ac_cv_prog_cc_c89" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 ac_prog_cc_stdc=c89 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 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 printf %s "checking whether $CC understands -c and -o together... " >&6; } if test ${am_cv_prog_cc_c_o+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 printf "%s\n" "$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 depcc="$CC" am_compiler_list= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CC_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 printf %s "checking for a sed that does not truncate output... " >&6; } if test ${ac_cv_path_SED+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '' >> "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 printf "%s\n" "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 printf %s "checking for grep that handles long lines and -e... " >&6; } if test ${ac_cv_path_GREP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 printf "%s\n" "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 printf %s "checking for egrep... " >&6; } if test ${ac_cv_path_EGREP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 printf "%s\n" "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 printf %s "checking for fgrep... " >&6; } if test ${ac_cv_path_FGREP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 printf "%s\n" "$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+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else $as_nop with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 printf %s "checking for GNU ld... " >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 printf %s "checking for non-GNU ld... " >&6; } fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 else $as_nop 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 printf "%s\n" "$LD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if test ${lt_cv_path_NM+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DUMPBIN+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 printf "%s\n" "$DUMPBIN" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DUMPBIN+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 printf %s "checking the name lister ($NM) interface... " >&6; } if test ${lt_cv_nm_interface+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 printf "%s\n" "$lt_cv_nm_interface" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 printf %s "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 printf "%s\n" "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 printf %s "checking the maximum length of command line arguments... " >&6; } if test ${lt_cv_sys_max_cmd_len+y} then : printf %s "(cached) " >&6 else $as_nop 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* | midnightbsd* | 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 printf %s "checking how to convert $build file names to $host format... " >&6; } if test ${lt_cv_to_host_file_cmd+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 printf %s "checking how to convert $build file names to toolchain format... " >&6; } if test ${lt_cv_to_tool_file_cmd+y} then : printf %s "(cached) " >&6 else $as_nop #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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 printf %s "checking for $LD option to reload object files... " >&6; } if test ${lt_cv_ld_reload_flag+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_ld_reload_flag='-r' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 printf "%s\n" "$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}file", so it can be a program name with args. set dummy ${ac_tool_prefix}file; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_FILECMD+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$FILECMD"; then ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_FILECMD="${ac_tool_prefix}file" printf "%s\n" "$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 FILECMD=$ac_cv_prog_FILECMD if test -n "$FILECMD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 printf "%s\n" "$FILECMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_FILECMD"; then ac_ct_FILECMD=$FILECMD # Extract the first word of "file", so it can be a program name with args. set dummy file; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_FILECMD+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_FILECMD"; then ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_FILECMD="file" printf "%s\n" "$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_FILECMD=$ac_cv_prog_ac_ct_FILECMD if test -n "$ac_ct_FILECMD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 printf "%s\n" "$ac_ct_FILECMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_FILECMD" = x; then FILECMD=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac FILECMD=$ac_ct_FILECMD fi else FILECMD="$ac_cv_prog_FILECMD" 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OBJDUMP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 printf "%s\n" "$OBJDUMP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OBJDUMP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 printf %s "checking how to recognize dependent libraries... " >&6; } if test ${lt_cv_deplibs_check_method+y} then : printf %s "(cached) " >&6 else $as_nop 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='$FILECMD -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* | midnightbsd*) 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=$FILECMD 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=$FILECMD 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=$FILECMD 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DLLTOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 printf "%s\n" "$DLLTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DLLTOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 printf %s "checking how to associate runtime and link libraries... " >&6; } if test ${lt_cv_sharedlib_from_linklib_cmd+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 printf "%s\n" "$AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 printf "%s\n" "$ac_ct_AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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} # Use ARFLAGS variable as AR's operation code to sync the variable naming with # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have # higher priority because thats what people were doing historically (setting # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS # variable obsoleted/removed. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} lt_ar_flags=$AR_FLAGS # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override # by AR_FLAGS because that was never working and AR_FLAGS is about to die. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 printf %s "checking for archiver @FILE support... " >&6; } if test ${lt_cv_ar_at_file+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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=$? printf "%s\n" "$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=$? printf "%s\n" "$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.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 printf "%s\n" "$STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 printf "%s\n" "$ac_ct_STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 printf "%s\n" "$RANLIB" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_RANLIB+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 printf "%s\n" "$ac_ct_RANLIB" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 printf %s "checking command to parse $NM output from $compiler object... " >&6; } if test ${lt_cv_sys_global_symbol_pipe+y} then : printf %s "(cached) " >&6 else $as_nop # 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++ or ICC, # 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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && 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=$? printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 printf "%s\n" "failed" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 printf %s "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test ${with_sysroot+y} then : withval=$with_sysroot; else $as_nop 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|'') ;; #( *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 printf "%s\n" "$with_sysroot" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 printf "%s\n" "${lt_sysroot:-no}" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 printf %s "checking for a working dd... " >&6; } if test ${ac_cv_path_lt_DD+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 printf %s "checking how to truncate binary pipes... " >&6; } if test ${lt_cv_truncate_bin+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 printf "%s\n" "$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+y} 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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `$FILECMD 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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test yes = "$lt_cv_prog_gnu_ld"; then case `$FILECMD conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `$FILECMD 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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then emul=elf case `$FILECMD conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `$FILECMD conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `$FILECMD 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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `$FILECMD conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `$FILECMD 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" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 printf %s "checking whether the C compiler needs -belf... " >&6; } if test ${lt_cv_cc_needs_belf+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_cc_needs_belf=yes else $as_nop lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 printf "%s\n" "$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=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `$FILECMD 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 printf "%s\n" "$MANIFEST_TOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if test ${lt_cv_path_mainfest_tool+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DSYMUTIL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 printf "%s\n" "$DSYMUTIL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_NMEDIT+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 printf "%s\n" "$NMEDIT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_NMEDIT+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 printf "%s\n" "$ac_ct_NMEDIT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LIPO+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 printf "%s\n" "$LIPO" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_LIPO+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 printf "%s\n" "$ac_ct_LIPO" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 printf "%s\n" "$OTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 printf "%s\n" "$ac_ct_OTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL64+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 printf "%s\n" "$OTOOL64" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL64+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 printf "%s\n" "$ac_ct_OTOOL64" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 printf %s "checking for -single_module linker flag... " >&6; } if test ${lt_cv_apple_cc_single_mod+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 printf %s "checking for -exported_symbols_list linker flag... " >&6; } if test ${lt_cv_ld_exported_symbols_list+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_ld_exported_symbols_list=yes else $as_nop lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 printf %s "checking for -force_load linker flag... " >&6; } if test ${lt_cv_ld_force_load+y} then : printf %s "(cached) " >&6 else $as_nop 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 $AR_FLAGS libconftest.a conftest.o" >&5 $AR $AR_FLAGS 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 printf "%s\n" "$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*) case $MACOSX_DEPLOYMENT_TARGET,$host in 10.[012],*|,*powerpc*-darwin[5-8]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; *) _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 } ac_header= ac_cache= for ac_item in $ac_header_c_list do if test $ac_cache; then ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then printf "%s\n" "#define $ac_item 1" >> confdefs.h fi ac_header= ac_cache= elif test $ac_header; then ac_cache=$ac_item else ac_header=$ac_item fi done if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes then : printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h fi 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 : printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h fi # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test ${enable_shared+y} 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 $as_nop enable_shared=yes fi # Check whether --enable-static was given. if test ${enable_static+y} 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 $as_nop enable_static=yes fi # Check whether --with-pic was given. if test ${with_pic+y} 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 $as_nop pic_mode=default fi # Check whether --enable-fast-install was given. if test ${enable_fast_install+y} 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 $as_nop enable_fast_install=yes fi shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[5-9]*,yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 printf %s "checking which variant of shared library versioning to provide... " >&6; } # Check whether --with-aix-soname was given. if test ${with_aix_soname+y} 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 $as_nop if test ${lt_cv_with_aix_soname+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_with_aix_soname=aix fi with_aix_soname=$lt_cv_with_aix_soname fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 printf %s "checking for objdir... " >&6; } if test ${lt_cv_objdir+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 printf "%s\n" "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 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 and # ICC, which need '.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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 printf %s "checking for ${ac_tool_prefix}file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 printf "%s\n" "$MAGIC_CMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 printf %s "checking for file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 printf "%s\n" "$MAGIC_CMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test ${lt_cv_prog_compiler_rtti_exceptions+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 printf "%s\n" "$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' ;; # flang / f18. f95 an alias for gfortran or flang on Debian flang* | f18* | f95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if test ${lt_cv_prog_compiler_pic_works+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 printf "%s\n" "$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\" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test ${lt_cv_prog_compiler_static_works+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } if test yes = "$lt_cv_prog_compiler_static_works"; then : else lt_prog_compiler_static= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 printf "%s\n" "$hard_links" >&6; } if test no = "$hard_links"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 printf %s "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++ and ICC port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++ or Intel C++ Compiler. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 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 file_list_spec='@' ;; 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*) hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 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 == "L") || (\$ 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 test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam \ 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 test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam \ 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++ or Intel C++ Compiler. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl* | icl*) # Native MSVC or ICC 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 and ICC 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* | midnightbsd*) 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) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 printf %s "checking if $CC understands -b... " >&6; } if test ${lt_cv_prog_compiler__b+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 printf "%s\n" "$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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if test ${lt_cv_irix_exported_symbol+y} then : printf %s "(cached) " >&6 else $as_nop 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 $as_nop lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 printf "%s\n" "$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' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' ;; 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 file_list_spec='@' ;; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 printf "%s\n" "$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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc+y} then : printf %s "(cached) " >&6 else $as_nop $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=$? printf "%s\n" "$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=$? printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 printf %s "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* | *,icl*) # Native MSVC or ICC 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 and ICC 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* | midnightbsd*) # 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 test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; 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.beam \ 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes else $as_nop ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$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_nop 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_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 printf %s "checking for shl_load in -ldld... " >&6; } if test ${ac_cv_lib_dld_shl_load+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ char shl_load (); int main (void) { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_shl_load=yes else $as_nop ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 printf "%s\n" "$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 $as_nop 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_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes else $as_nop ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$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_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 printf %s "checking for dlopen in -lsvld... " >&6; } if test ${ac_cv_lib_svld_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_svld_dlopen=yes else $as_nop ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 printf "%s\n" "$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_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 printf %s "checking for dld_link in -ldld... " >&6; } if test ${ac_cv_lib_dld_dld_link+y} then : printf %s "(cached) " >&6 else $as_nop 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. */ char dld_link (); int main (void) { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_dld_link=yes else $as_nop ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 printf "%s\n" "$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" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 printf %s "checking whether a program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self+y} then : printf %s "(cached) " >&6 else $as_nop 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=$? printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 printf "%s\n" "$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\" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self_static+y} then : printf %s "(cached) " >&6 else $as_nop 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=$? printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 printf "%s\n" "$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= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 printf %s "checking whether stripping libraries is possible... " >&6; } if test -z "$STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } else if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then old_striplib="$STRIP --strip-debug" striplib="$STRIP --strip-unneeded" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else case $host_os in darwin*) # FIXME - insert some real tests, host_os isn't really good enough striplib="$STRIP -x" old_striplib="$STRIP -S" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } ;; freebsd*) if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then old_striplib="$STRIP --strip-debug" striplib="$STRIP --strip-unneeded" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } ;; esac fi fi # Report what library types will actually be built { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 printf %s "checking if libtool supports shared libraries... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 printf "%s\n" "$can_build_shared" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 printf "%s\n" "$enable_shared" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 printf %s "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 printf "%s\n" "$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 ac_config_commands="$ac_config_commands libtool" # Only expand once: # Checks for programs. 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 clang++ 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 printf "%s\n" "$CXX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 clang++ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 printf "%s\n" "$ac_ct_CXX" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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. printf "%s\n" "$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\"" printf "%s\n" "$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 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 printf %s "checking whether the compiler supports GNU C++... " >&6; } if test ${ac_cv_cxx_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+y} ac_save_CXXFLAGS=$CXXFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 printf %s "checking whether $CXX accepts -g... " >&6; } if test ${ac_cv_prog_cxx_g+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes else $as_nop CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : else $as_nop ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } if test $ac_test_CXXFLAGS; 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_prog_cxx_stdcxx=no if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 printf %s "checking for $CXX option to enable C++11 features... " >&6; } if test ${ac_cv_prog_cxx_cxx11+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cxx_cxx11=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_cxx_conftest_cxx11_program _ACEOF for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA do CXX="$ac_save_CXX $ac_arg" if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_cxx11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx11" != "xno" && break done rm -f conftest.$ac_ext CXX=$ac_save_CXX fi if test "x$ac_cv_prog_cxx_cxx11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cxx_cxx11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } CXX="$CXX $ac_cv_prog_cxx_cxx11" fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 ac_prog_cxx_stdcxx=cxx11 fi fi if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 printf %s "checking for $CXX option to enable C++98 features... " >&6; } if test ${ac_cv_prog_cxx_cxx98+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cxx_cxx98=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_cxx_conftest_cxx98_program _ACEOF for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA do CXX="$ac_save_CXX $ac_arg" if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_cxx98=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx98" != "xno" && break done rm -f conftest.$ac_ext CXX=$ac_save_CXX fi if test "x$ac_cv_prog_cxx_cxx98" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cxx_cxx98" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } CXX="$CXX $ac_cv_prog_cxx_cxx98" fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 ac_prog_cxx_stdcxx=cxx98 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= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CXX_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 printf "%s\n" "$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 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 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 printf %s "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if test ${ac_cv_prog_CXXCPP+y} then : printf %s "(cached) " >&6 else $as_nop # Double quotes because $CXX needs to be expanded for CXXCPP in "$CXX -E" cpp /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. # 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. */ #include Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : else $as_nop # 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 $as_nop # 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 printf "%s\n" "$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. # 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. */ #include Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : else $as_nop # 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 $as_nop # 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_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else $as_nop with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 printf %s "checking for GNU ld... " >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 printf %s "checking for non-GNU ld... " >&6; } fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 else $as_nop 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 printf "%s\n" "$LD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 printf %s "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 test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam \ 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 test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam \ 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* | ,icl* | no,icl*) # Native MSVC or ICC # 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 file_list_spec_CXX='@' ;; 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* | midnightbsd*) # 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 printf "%s\n" "$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=$? printf "%s\n" "$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* | midnightbsd*) # 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic_CXX+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } if test ${lt_cv_prog_compiler_pic_works_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 printf "%s\n" "$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\" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test ${lt_cv_prog_compiler_static_works_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 printf "%s\n" "$hard_links" >&6; } if test no = "$hard_links"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 printf %s "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 == "L") || (\$ 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* | icl*) 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 printf "%s\n" "$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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc_CXX+y} then : printf %s "(cached) " >&6 else $as_nop $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=$? printf "%s\n" "$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=$? printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX ;; esac fi ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 printf %s "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* | *,icl*) # Native MSVC or ICC 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 and ICC 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* | midnightbsd*) # 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 test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; 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.beam \ 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 printf "%s\n" "$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_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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. set dummy ${ac_tool_prefix}clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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}clang" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "clang", so it can be a program name with args. set dummy clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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="clang" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 fi test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$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. printf "%s\n" "$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 -version; 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\"" printf "%s\n" "$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 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_c_compiler_gnu if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 else $as_nop 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 (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes else $as_nop CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } if test $ac_test_CFLAGS; 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 ac_prog_cc_stdc=no if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c11_program _ACEOF for ac_arg in '' -std=gnu11 do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } CC="$CC $ac_cv_prog_cc_c11" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 ac_prog_cc_stdc=c11 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c99_program _ACEOF for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c99=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } CC="$CC $ac_cv_prog_cc_c99" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 ac_prog_cc_stdc=c99 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c89_program _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 conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } CC="$CC $ac_cv_prog_cc_c89" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 ac_prog_cc_stdc=c89 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 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 printf %s "checking whether $CC understands -c and -o together... " >&6; } if test ${am_cv_prog_cc_c_o+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 printf "%s\n" "$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 depcc="$CC" am_compiler_list= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CC_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 else $as_nop 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 printf "%s\n" "$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$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 printf "%s\n" "$PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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" printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } PKG_CONFIG="" fi fi if test "x$PKG_CONFIG" == "x" then : as_fn_error $? "Please install pkg-config" "$LINENO" 5 fi # Checks for libraries. # Checks for header files. # Checks for typedefs, structures, and compiler characteristics. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes then : else $as_nop printf "%s\n" "#define size_t unsigned int" >>confdefs.h fi # Checks for library functions. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" if test "x$ac_cv_func_pow" = xyes then : printf "%s\n" "#define HAVE_POW 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt" if test "x$ac_cv_func_sqrt" = xyes then : printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h fi # Guess *LD_LIBRARY_PATH variable for make check SYS=other DYLIB_VAR=LD_LIBRARY_PATH case "x$target_os" in xdarwin*|xmacos) DYLIB_VAR=DYLD_LIBRARY_PATH SYS=Darwin ;; *) ;; esac plugin_sfx=so # Used in yorick/stdplug/Makefile if test "x$PKG_CONFIG_PATH" != "x" then : PKG_CONFIG_PATH=:$PKG_CONFIG_PATH fi PKG_CONFIG_PATH=../../lib$PKG_CONFIG_PATH export PKG_CONFIG_PATH echo $PKG_CONFIG_PATH # Read Gyoto's pkg-config file pkg_failed=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gyoto" >&5 printf %s "checking for gyoto... " >&6; } if test -n "$Gyoto_CFLAGS"; then pkg_cv_Gyoto_CFLAGS="$Gyoto_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gyoto\""; } >&5 ($PKG_CONFIG --exists --print-errors "gyoto") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_Gyoto_CFLAGS=`$PKG_CONFIG --cflags "gyoto" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$Gyoto_LIBS"; then pkg_cv_Gyoto_LIBS="$Gyoto_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gyoto\""; } >&5 ($PKG_CONFIG --exists --print-errors "gyoto") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_Gyoto_LIBS=`$PKG_CONFIG --libs "gyoto" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } 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 Gyoto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gyoto" 2>&1` else Gyoto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gyoto" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$Gyoto_PKG_ERRORS" >&5 as_fn_error $? "gyoto.pc not found or not functional! Check PKG_CONFIG_PATH or call the guru" "$LINENO" 5 elif test $pkg_failed = untried; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } as_fn_error $? "gyoto.pc not found or not functional! Check PKG_CONFIG_PATH or call the guru" "$LINENO" 5 else Gyoto_CFLAGS=$pkg_cv_Gyoto_CFLAGS Gyoto_LIBS=$pkg_cv_Gyoto_LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } soverdir=`$PKG_CONFIG --variable=GYOTO_PLUGDIR gyoto` GYOTO=`$PKG_CONFIG --variable=GYOTO gyoto` GYOTO_PREFIX=`$PKG_CONFIG --variable=prefix gyoto` GYOTO_EPREFIX=`$PKG_CONFIG --variable=exec_prefix gyoto` GYOTO_PLUGIN_SFX=`$PKG_CONFIG --variable=GYOTO_PLUGIN_SFX gyoto` Y_INST_HOME=`$PKG_CONFIG --variable=Y_INST_HOME gyoto` Y_INST_SITE=`$PKG_CONFIG --variable=Y_INST_SITE gyoto` gyoto_MPICXX=`$PKG_CONFIG --variable=MPICXX gyoto` fi if test "x$gyoto_MPICXX" != "x" then : CXX="$gyoto_MPICXX" fi # Check whether --with-python was given. if test ${with_python+y} then : withval=$with_python; case $with_python in yes | no) ;; *) PYTHON=`which $with_python` || as_fn_error $? "$with_python: command not found" "$LINENO" 5 with_python=yes esac fi for ac_prog in python3 python \ python3 \ \ python4.0 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PYTHON+y} then : printf %s "(cached) " >&6 else $as_nop case $PYTHON in [\\/]* | ?:[\\/]*) ac_cv_path_PYTHON="$PYTHON" # 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_PYTHON="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$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 PYTHON=$ac_cv_path_PYTHON if test -n "$PYTHON"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 printf "%s\n" "$PYTHON" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$PYTHON" && break done # Extract the first word of "`basename $PYTHON`-config", so it can be a program name with args. set dummy `basename $PYTHON`-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PYTHON_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $PYTHON_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PYTHON_CONFIG="$PYTHON_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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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_PYTHON_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$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 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG if test -n "$PYTHON_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5 printf "%s\n" "$PYTHON_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "xyes" = "xyes" && $PYTHON_CONFIG --embed then : PYTHON_EMBED_FLAG="--embed" else $as_nop PYTHON_EMBED_FLAG="" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 printf %s "checking for Python includes... " >&6; } if test ${pc_cv_python_includes+y} then : printf %s "(cached) " >&6 else $as_nop if test -x "$PYTHON_CONFIG"; then pc_cv_python_includes=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --includes 2>&5` else pc_cv_python_includes="-I$includedir/$_PYTHON_BASENAME" fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_includes" >&5 printf "%s\n" "$pc_cv_python_includes" >&6; } PYTHON_INCLUDES=$pc_cv_python_includes pc_cflags_store=$CPPFLAGS CPPFLAGS="$CFLAGS $PYTHON_INCLUDES" ac_fn_c_check_header_compile "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" if test "x$ac_cv_header_Python_h" = xyes then : fi CPPFLAGS=$pc_cflags_store { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python CFLAGS" >&5 printf %s "checking for Python CFLAGS... " >&6; } if test ${pc_cv_python_cflags+y} then : printf %s "(cached) " >&6 else $as_nop if test -x "$PYTHON_CONFIG"; then pc_cv_python_cflags=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --cflags 2>&5` else pc_cv_python_cflags= fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_cflags" >&5 printf "%s\n" "$pc_cv_python_cflags" >&6; } PYTHON_CFLAGS=$pc_cv_python_cflags { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python LDFLAGS" >&5 printf %s "checking for Python LDFLAGS... " >&6; } if test ${pc_cv_python_ldflags+y} then : printf %s "(cached) " >&6 else $as_nop if test -x "$PYTHON_CONFIG"; then pc_cv_python_ldflags=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --ldflags 2>&5` else pc_cv_python_ldflags= fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_ldflags" >&5 printf "%s\n" "$pc_cv_python_ldflags" >&6; } PYTHON_LDFLAGS=$pc_cv_python_ldflags { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python libs" >&5 printf %s "checking for Python libs... " >&6; } if test ${pc_cv_python_libs+y} then : printf %s "(cached) " >&6 else $as_nop if test -x "$PYTHON_CONFIG"; then pc_cv_python_libs=`$PYTHON_CONFIG $PYTHON_EMBED_FLAG --libs 2>&5` else pc_cv_python_libs="-l$_PYTHON_BASENAME" fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_libs" >&5 printf "%s\n" "$pc_cv_python_libs" >&6; } PYTHON_LIBS=$pc_cv_python_libs # Make sure plug-in name matches real name of interpreter. # If different from provided name, make a symlink. pluginname=`basename $PYTHON` linkname=`basename $PYTHON` real=`which $PYTHON` curdir=`pwd` while test x$real != x ; do cd `dirname $real` pluginname=`basename $real` real=`readlink $pluginname || true` done cd $curdir if test x$pluginname != x$linkname; then DEFAULT_TRUE= DEFAULT_FALSE='#' else DEFAULT_TRUE='#' DEFAULT_FALSE= fi # Find out where NumPy headers are located { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NumPy include files" >&5 printf %s "checking for NumPy include files... " >&6; } numpy_includes=`$PYTHON -c "import numpy ; print(numpy.get_include())"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $numpy_includes" >&5 printf "%s\n" "$numpy_includes" >&6; } if test "x$numpy_includes" != "x" then : NUMPY_CFLAGS=-I$numpy_includes else $as_nop NUMPY_CFLAGS="" fi mySUBDIRS="lib" ac_config_files="$ac_config_files Makefile lib/Makefile bin/gyoto" 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_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$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+y} || &/ 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 printf "%s\n" "$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}' # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' :mline /\\$/{ N s,\\\n,, b mline } t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g t quote s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g t quote b any :quote s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g s/\[/\\&/g s/\]/\\&/g s/\$/$$/g H :any ${ g s/^\n// s/\n/ /g p } ' DEFS=`sed -n "$ac_script" confdefs.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=`printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 printf %s "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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 printf "%s\n" "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= 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 "${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 "${DEFAULT_TRUE}" && test -z "${DEFAULT_FALSE}"; then as_fn_error $? "conditional \"DEFAULT\" 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" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 printf "%s\n" "$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 as_nop=: if test ${ZSH_VERSION+y} && (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 $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; 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 # 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 case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # 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 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$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_nop 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_nop 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 || printf "%s\n" 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 # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. 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 # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' 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=`printf "%s\n" "$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 || printf "%s\n" 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 gyoto-python $as_me 0.0.0, which was generated by GNU Autoconf 2.71. 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 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" 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 Configuration files: $config_files Configuration commands: $config_commands Report bugs to ." _ACEOF ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ gyoto-python config.status 0.0.0 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" Copyright (C) 2021 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 ) printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --he | --h | --help | --hel | -h ) printf "%s\n" "$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 \printf "%s\n" "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 printf "%s\n" "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" # 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' 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"`' FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $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"`' DLLTOOL='`$ECHO "$DLLTOOL" | $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"`' lt_ar_flags='`$ECHO "$lt_ar_flags" | $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 SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ FILECMD \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ DLLTOOL \ sharedlib_from_linklib_cmd \ AR \ 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 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; "bin/gyoto") CONFIG_FILES="$CONFIG_FILES bin/gyoto" ;; *) 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+y} || CONFIG_FILES=$config_files test ${CONFIG_COMMANDS+y} || 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" eval set X " :F $CONFIG_FILES :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=`printf "%s\n" "$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 '` printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`printf "%s\n" "$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 || printf "%s\n" 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=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$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@*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 printf "%s\n" "$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"; } && { printf "%s\n" "$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 printf "%s\n" "$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 ;; :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 printf "%s\n" "$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. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. case $CONFIG_FILES in #( *\'*) : eval set x "$CONFIG_FILES" ;; #( *) : set x $CONFIG_FILES ;; #( *) : ;; esac shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`$as_dirname -- "$am_mf" || $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$am_mf" : 'X\(//\)[^/]' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` am_filepart=`$as_basename -- "$am_mf" || $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$am_mf" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` { echo "$as_me:$LINENO: cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles" >&5 (cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). See \`config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} { am_mf=; unset am_mf;} { am_rc=; unset am_rc;} rm -f conftest-deps.mk } ;; "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 # 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 # A file(cmd) program that detects file types. FILECMD=$lt_FILECMD # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # 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 # DLL creation program. DLLTOOL=$lt_DLLTOOL # 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 (by configure). lt_ar_flags=$lt_ar_flags # Flags to create an archive. AR_FLAGS=\${ARFLAGS-"\$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 ;; "Makefile":F) test -e bin/gyoto && chmod a+x bin/gyoto ;; "lib/Makefile":F) test -e bin/gyoto && chmod a+x bin/gyoto ;; "bin/gyoto":F) test -e bin/gyoto && chmod a+x bin/gyoto ;; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi Gyoto-2.0.2/plugins/python/configure.ac000066400000000000000000000066471455254334400201320ustar00rootroot00000000000000# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.71]) AC_INIT([gyoto-python],[0.0.0],[gyoto@sympa.obspm.fr]) AC_CONFIG_SRCDIR([include/GyotoPython.h]) AC_CONFIG_MACRO_DIR([m4]) AC_CANONICAL_TARGET AM_INIT_AUTOMAKE LT_INIT # Checks for programs. AC_PROG_CXX AC_PROG_CC AC_PROG_INSTALL PKG_PROG_PKG_CONFIG([]) AS_IF([test "x$PKG_CONFIG" == "x"], [AC_MSG_ERROR([Please install pkg-config])]) # Checks for libraries. # Checks for header files. # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_SIZE_T # Checks for library functions. AC_CHECK_FUNCS([pow sqrt]) # Guess *LD_LIBRARY_PATH variable for make check AC_SUBST([target_os]) SYS=other DYLIB_VAR=LD_LIBRARY_PATH case "x$target_os" in xdarwin*|xmacos) DYLIB_VAR=DYLD_LIBRARY_PATH SYS=Darwin ;; *) ;; esac plugin_sfx=so AC_SUBST([DYLIB_VAR]) # Used in yorick/stdplug/Makefile AC_SUBST([SYS]) AC_SUBST([plugin_sfx]) AS_IF([test "x$PKG_CONFIG_PATH" != "x"], [PKG_CONFIG_PATH=:$PKG_CONFIG_PATH]) PKG_CONFIG_PATH=../../lib$PKG_CONFIG_PATH export PKG_CONFIG_PATH echo $PKG_CONFIG_PATH # Read Gyoto's pkg-config file PKG_CHECK_MODULES([Gyoto], [gyoto], [ AC_SUBST([soverdir], [`$PKG_CONFIG --variable=GYOTO_PLUGDIR gyoto`]) AC_SUBST([GYOTO], [`$PKG_CONFIG --variable=GYOTO gyoto`]) AC_SUBST([GYOTO_PREFIX], [`$PKG_CONFIG --variable=prefix gyoto`]) AC_SUBST([GYOTO_EPREFIX], [`$PKG_CONFIG --variable=exec_prefix gyoto`]) AC_SUBST([GYOTO_PLUGIN_SFX], [`$PKG_CONFIG --variable=GYOTO_PLUGIN_SFX gyoto`]) AC_SUBST([Y_INST_HOME], [`$PKG_CONFIG --variable=Y_INST_HOME gyoto`]) AC_SUBST([Y_INST_SITE], [`$PKG_CONFIG --variable=Y_INST_SITE gyoto`]) gyoto_MPICXX=`$PKG_CONFIG --variable=MPICXX gyoto` ], [AC_MSG_ERROR([gyoto.pc not found or not functional! Check PKG_CONFIG_PATH or call the guru])] ) AS_IF([test "x$gyoto_MPICXX" != "x"], [CXX="$gyoto_MPICXX"]) AC_ARG_WITH([python], [AS_HELP_STRING([--with-python@<:@=interpreter@:>@],[force (or disable) python support, possibly specifying interpreter])], [ case $with_python in yes | no) ;; *) PYTHON=`which $with_python` || AC_MSG_ERROR([$with_python: command not found]) with_python=yes esac ], []) PC_PROG_PYTHON([python3], [3.0], [4.0]) PC_PYTHON_PROG_PYTHON_CONFIG([],[yes]) PC_PYTHON_CHECK_INCLUDES PC_PYTHON_CHECK_HEADERS PC_PYTHON_CHECK_CFLAGS PC_PYTHON_CHECK_LDFLAGS PC_PYTHON_CHECK_LIBS # Make sure plug-in name matches real name of interpreter. # If different from provided name, make a symlink. pluginname=`basename $PYTHON` linkname=`basename $PYTHON` real=`which $PYTHON` curdir=`pwd` while test x$real != x ; do cd `dirname $real` pluginname=`basename $real` real=`readlink $pluginname || true` done cd $curdir AC_SUBST([pluginname]) AC_SUBST([linkname]) AM_CONDITIONAL([DEFAULT], [test x$pluginname != x$linkname]) # Find out where NumPy headers are located AC_MSG_CHECKING([for NumPy include files]) numpy_includes=`$PYTHON -c "import numpy ; print(numpy.get_include())"` AC_MSG_RESULT($numpy_includes) AS_IF([ test "x$numpy_includes" != "x"], [NUMPY_CFLAGS=-I$numpy_includes], [NUMPY_CFLAGS=""]) AC_SUBST([NUMPY_CFLAGS]) mySUBDIRS="lib" AC_CONFIG_FILES([Makefile lib/Makefile bin/gyoto], [test -e bin/gyoto && chmod a+x bin/gyoto]) AC_SUBST([mySUBDIRS]) AC_OUTPUT Gyoto-2.0.2/plugins/python/depcomp000077700000000000000000000000001455254334400211742../../depcompustar00rootroot00000000000000Gyoto-2.0.2/plugins/python/doc/000077500000000000000000000000001455254334400163745ustar00rootroot00000000000000Gyoto-2.0.2/plugins/python/doc/examples/000077500000000000000000000000001455254334400202125ustar00rootroot00000000000000Gyoto-2.0.2/plugins/python/doc/examples/example-python-flared-disk.xml000066400000000000000000000023021455254334400260660ustar00rootroot00000000000000 4e6 0.52 8 90 180 200 32 2.0e-6 2.4e-6 50 0. 0.3 import math class FlaredDisk: opening=0.2 rin=4 rout=15 def __call__(self, coord): r=math.sin(coord[2])*coord[1] h_r=abs(math.cos(coord[2])) return max(h_r-self.opening, self.rin-r, r-self.rout) def getVelocity(self, coord, vel): self.this.metric().circularVelocity(coord, vel) FlaredDisk Intensity Gyoto-2.0.2/plugins/python/doc/examples/example-python-standard.xml000066400000000000000000000046311455254334400255100ustar00rootroot00000000000000 An optically thin blob centered on the origin of the coordinate system, in flat space-time. Computation uses the spherical coordinates. 0. 4e6 8 150 In UTF-8 locales, "microas" may be written "µas". 90 In UTF-8 locales, "degree" may be written "°". 0 0 32 gyoto_sample_standard FixedStar Standard objects define a potential of some sort through method __call__, below CriticalValue is inside the object, above is outside. SafetyValue must be slighlty above CriticalValue, a minimum of __call__ is searched when the potential is below SafetyValue to check whether the object has been crossed. In this Python implementation of the FixedStar (like in the eponymous C++ implementation), CriticalValue and SafetyValue are both set when setting the convenience, ad-hoc property Radius defined in Python. The other Python-defined properties are the 3 space coordinates of the center of the FixedStar, a spectrum and an opacity. 0. 0. 0. 12. 0 0.001 0 0.01 Gyoto::Astrobj::Python::Standard also support the rest of the Gyoto::Astrobj::Standard Properties: 20. 1e0 0. Intensity One can also specify a unit (if Gyoto was compiled with --with-udunits): Intensity[mJy/pix²] Intensity[mJy/µas²] Intensity[J.m-2.s-1.sr-1.Hz-1] Intensity[erg.cm-2.s-1.sr-1.Hz-1] Intensity[mJy.sr-1] Intensity[Jy.sr-1] 0.01 Gyoto-2.0.2/plugins/python/doc/examples/example-python-thindisk.xml000066400000000000000000000024371455254334400255270ustar00rootroot00000000000000 This example shows how to code a spectrum in Python directly in the XML file. 0. 1000. 100. 1.22 0. 0.314159265358979323846264338327950288419716 32 Python::ThinDisk inherits from ThinDisk, we can set the usual parameters: 3. We could write a python module in a separate file, say "gyoto_sample_spectra.py", and use the "Module" entity to load it: Alternatively, we can put the Python code inline using the "InlineModule" entity. Common indentation will be removed so we don't have to flush everything left . class ThinDisk: def emission(self, nuem, dsem, cph, co): return dsem Since there is only one class in the module, we do not need to specify the class name here: 0. Gyoto-2.0.2/plugins/python/doc/examples/example-python.xml000066400000000000000000000034641455254334400237150ustar00rootroot00000000000000 The goal of this example is to exhibit using a Metric and a Spectrum coded in Python. It is functionaly equivalent to example-fixed-star-minkowski-cartesian.xml in the main Gyoto example directory. An optically thin blob centered on the origin of the coordinate system, in flat space-time. Computation uses the Cartesian coordinates. 4e6 gyoto_sample_metrics Minkowski 8 150 In UTF-8 locales, "microas" may be written "µas". 90 In UTF-8 locales, "degree" may be written "°". 0 0 32 12 0 0 0 gyoto_sample_spectra PowerLaw 0.001 0. gyoto_sample_spectra PowerLaw 0.001 0. 1e0 0. Intensity One can also specify a unit (if Gyoto was compiled with --with-udunits): Intensity[mJy/pix²] Intensity[mJy/µas²] Intensity[J.m-2.s-1.sr-1.Hz-1] Intensity[erg.cm-2.s-1.sr-1.Hz-1] Intensity[mJy.sr-1] Intensity[Jy.sr-1] Gyoto-2.0.2/plugins/python/doc/examples/example-torus-PythonKerrBL.xml000066400000000000000000000016161455254334400260660ustar00rootroot00000000000000 gyoto_sample_metrics KerrBL 0.5 1000. 100. 0.78 0. 0.15 32 2.0e-6 2.4e-6 3.5 0.5 0. 1. 0. 1e-10 20. BinSpectrum Gyoto-2.0.2/plugins/python/doc/examples/gyoto_sample_metrics.py000066400000000000000000000323561455254334400250250ustar00rootroot00000000000000'''Sample metrics for using with Gyoto Python plug-in Those classes demonstrate how to use Python classes as Gyoto Metric implementations using Gyoto's "python" plug-in. Note that this plug-in can be renamed to whatever matches the particular version of Python it has been built against (e.g. python3.4). The goal is to be able to instantiate these from XML, from Yorick... and even from Python using the gyoto extension... Synopsis: import gyoto.core gyoto.core.requirePlugin("python") # or python2.7 or python3.4... gg=gyoto.core.Metric("Python") gg.set("Module", "gyoto_sample_metric") gg.set("Class", "Minkowski") Classes that aim at implementing the Gyoto::Metric::Generic interface do so by providing the following methods: gmunu(self, dst, pos): mandatory; christoffel(self, dst, pos): mandatory; getRms(self): optional getRmb(self): optional getSpecificAngularMomentum(self, rr): optional getPotential(self, pos, l_cst): optional __setattr__(self, key, value): optional, useful to react when the C++ Metric object sets attributes: this: if the Python extension "gyoto.core" can be imported, it will be set to a gyoto.core.Metric instance pointing to the C++-side instance. If the "gyoto.core" extension cannot be loaded, this will be set to None. spherical: when the spherical(bool t) method is called in the C++ layer, it sets the spherical attribute in the Python side. mass: when the mass(double m) method is called in the C++ side, it sets the spherical attribute in the Python side. __setitem__(self, key, value): optional, mandatory to support the "Parameters" Property to set arbitrary parameters for this metric. set(self, key, val) and get(self, key): optional, both need to be implemented in order to support additional "Properties" with arbitrary names. In addition, member self.properties must be set to a dictionary listing key:datatype pairs, where both key and datatype are strings. As of writing, only "double" is supported as a datatype. ''' import math import numpy import gyoto.core class Minkowski: '''Flat space metric Implemented for both Cartesian and spherical coordinates. ''' def __setattr__(self, key, value): '''Set attributes. Optional. C++ will set several attributes. By overloading __setattr__, one can react when that occurs, in particular to make sure `this' knows the coordinate kind as in this example. Attributes set by the C++ layer: this: if the Python extension "gyoto.core" can be imported, it will be set to a gyoto.core.Metric instance pointing to the C++-side instance. If the "gyoto.core" extension cannot be loaded, this will be set to None. spherical: when the spherical(bool t) method is called in the C++ layer, it sets the spherical attribute in the Python side. mass: when the mass(double m) method is called in the C++ side, it sets the spherical attribute in the Python side. This example initializes coordKind in the C++ side if it is not already set, since this Minkowski class can work in either. ''' # First, actually store the attribute. This is what would # happen if we did not overload __setattr__. self.__dict__[key]=value # Then, if key is "this", ensure this knows a valid coordKind. if (key == "this"): cK=value.coordKind() if cK is gyoto.core.GYOTO_COORDKIND_UNSPECIFIED: value.set("Spherical", False) # We could do without this, since this will tell us later # anyway. else: self.spherical = (cK is gyoto.core.GYOTO_COORDKIND_SPHERICAL) def gmunu(self, g, x): ''' Gyoto::Metric::Generic::gmunu(double dst[4][4], const double pos[4]) Mandatory. C++ will send two NumPy arrays. ''' for mu in range(0, 4): for nu in range(0, 4): g[mu][nu]=g[nu][mu]=0 g[0][0]=-1; if not self.spherical: for mu in range(1, 4): g[mu][mu]=1. return r=x[1] theta=x[2] tmp=r*math.sin(theta) g[1][1]=1. g[2][2]=r*r g[3][3]=tmp*tmp def christoffel(self, dst, x): '''Gyoto::Metric::Generic::christoffel(double dst[4][4][4], const double pos[4]) Mandatory. C++ will send two NumPy arrays. ''' for alpha in range(0, 4): for mu in range(0, 4): for nu in range(0, 4): dst[alpha][mu][nu]=0. if not self.spherical: return 0 r=x[1] theta=x[2] sth=math.sin(theta) cth=math.cos(theta) dst[1][2][2]=-r dst[1][3][3]=-r*sth*sth dst[2][1][2]=dst[2][2][1]= 1./r dst[2][3][3]=-sth*cth dst[3][1][3]=dst[3][3][1]= dst[2][1][2] dst[3][2][3]=dst[3][3][2]= math.tan(math.pi*0.5 - x[2]) return 0 class KerrBL: '''A Python implementation of Gyoto::Metric::KerrBL Spin and HorizonSecurity may be set either using the Parameters Property, as in: O.5 0.01 or using two distinct ad hoc "properties": 0.5 0.01 The various methods are essentially cut-and-paste from the C++ class. Only gmunu and christoffel absolutely need to be implemented, but various Astrobj require more. See below. This is for educational and testing purposes. For all practical uses, the C++ implementation is much faster. ''' # This is needed to support setting Spin and HorizonSecurity by name # in addition to the set and get methods properties={"Spin":"double", "HorizonSecurity":"double"} spin=0. drhor=gyoto.core.GYOTO_KERR_HORIZON_SECURITY rsink=2.+gyoto.core.GYOTO_KERR_HORIZON_SECURITY def __setitem__(self, key, value): '''Set parameters Optional, one way to handle parameters This is how Gyoto sends the XML entity: metric[key]=value key=0: set spin (0.) key=1: set drhor, thickness of sink layer around horizon (0.01) ''' if (key==0): self.spin = value elif (key==1): self.drhor = value else: raise IndexError def set(self, key, value): '''Set parameters by name Optional, one way to handle parameters This is how Gyoto sends custom XML entities, e.g. value metric.set("MyEntity", value) Here: key="Spin": set spin (0.) key="HorizonSecurity": set drhor, thickness of sink layer around horizon (0.01) ''' if (key=="Spin"): self.spin = value elif (key=="HorizonSecurity"): self.drhor = value else: raise IndexError def get(self, key): '''Get parameters by name Optional, mandatory if "properties" and "set" are defined. ''' if (key=="Spin"): return self.spin elif (key=="HorizonSecurity"): return self.drhor else: raise IndexError def __setattr__(self, key, value): '''Set attributes. Optional. C++ will set several attributes. By overloading __setattr__, one can react when that occurs, in particular to make sure `this' knows the coordinate kind as in this example. In addition, update self.rsink each time self.spin or self.drhor change. ''' # First, actually store the attribute. This is what would # happen if we did not overload __setattr__. self.__dict__[key]=value # Then, if key is "this", ensure `this' knows a valid coordKind. if (key == "this"): self.this.set("Spherical", True) elif key in ("spin", "drhor"): if self.spin > 1: self.rsink=drhor else: self.rsink=1.+math.sqrt(1.-self.spin**2)+self.drhor def gmunu(self, g, x): ''' Gyoto::Metric::Generic::gmunu(double g[4], const double pos[4]) Mandatory. C++ will send two NumPy arrays. Note that the user will not be able to call this method directly but through self.this.gmunu which has a different calling sequence: g=self.this.gmunu(x) ''' spin_=self.spin a2_=spin_**2 r=x[1] sth2=math.sin(x[2])**2 cth2=math.cos(x[2])**2 r2=r*r sigma=r2+a2_*cth2 delta=r2-2.*r+a2_ for mu in range(0, 4): for nu in range(0, 4): g[mu][nu]=g[nu][mu]=0 g[0][0] = -1.+2.*r/sigma; g[1][1] = sigma/delta; g[2][2] = sigma; g[3][3] = (r2+a2_+2.*r*a2_*sth2/sigma)*sth2; g[0][3] = g[3][0] = -2*spin_*r*sth2/sigma; def christoffel(self, dst, x): '''Gyoto::Metric::Generic::christoffel(double dst[4][4][4], const double pos[4]) Mandatory. C++ will send two NumPy arrays. Like gmunu, the call will actually be: dst=metric.gmunu(x) where `metric' is self.this. ''' for alpha in range(0, 4): for mu in range(0, 4): for nu in range(0, 4): dst[alpha][mu][nu]=0. spin_=self.spin a2_=spin_**2 r=x[1] sth=math.sin(x[2]) cth=math.cos(x[2]) sth2 = sth*sth cth2 = cth*cth sth4=sth2*sth2 s2th = 2.*sth*cth c2th=cth2-sth2 s4th = 2.*s2th*c2th s2th2= s2th*s2th ctgth=cth/sth r2=r*r r4=r2*r2 r6=r4*r2; Sigma=r2+a2_*cth2 Sigma2=Sigma*Sigma Delta=r2-2.*r+a2_ Deltam1=1./Delta Sigmam1=1./Sigma Sigmam2=Sigmam1*Sigmam1 Sigmam3=Sigmam2*Sigmam1 a2cthsth=a2_*cth*sth rSigmam1=r*Sigmam1 Deltam1Sigmam2=Deltam1*Sigmam2 r2plusa2 = r2+a2_ dst[1][1][1]=(1.-r)*Deltam1+rSigmam1; dst[1][2][1]=dst[1][1][2]=-a2cthsth*Sigmam1; dst[1][2][2]=-Delta*rSigmam1; dst[1][3][3]=-Delta*sth2*(r+(a2_*(-2.*r2+Sigma)*sth2)/Sigma2)/Sigma; dst[1][3][0]=dst[1][0][3]=spin_*Delta*(-2*r2+Sigma)*sth2*Sigmam3; dst[1][0][0]=-Delta*(-2.*r2+Sigma)*Sigmam3; dst[2][1][1]=a2cthsth*Deltam1*Sigmam1; dst[2][2][1]=dst[2][1][2]=rSigmam1; dst[2][2][2]=-a2cthsth*Sigmam1; dst[2][3][3]=-sth*cth*Sigmam3 * (Delta*Sigma2 + 2.*r*r2plusa2*r2plusa2); dst[2][0][3]=dst[2][3][0]=spin_*r*r2plusa2*s2th*Sigmam3; dst[2][0][0]=-2.*a2cthsth*r*Sigmam3; dst[3][3][1]=dst[3][1][3]=Deltam1*Sigmam2 * (r*Sigma*(Sigma-2.*r) + a2_*(Sigma-2.*r2)*sth2); dst[3][3][2]=dst[3][2][3]=Sigmam2*ctgth * (-(Sigma+Delta)*a2_*sth2 + r2plusa2*r2plusa2); dst[3][0][1]=dst[3][1][0]=spin_*(2.*r2-Sigma)*Deltam1Sigmam2; dst[3][0][2]=dst[3][2][0]=-2.*spin_*r*ctgth*Sigmam2; dst[0][3][1]=dst[0][1][3]=-spin_*sth2*Deltam1Sigmam2 * (2.*r2*r2plusa2 + Sigma*(r2-a2_)); dst[0][3][2]=dst[0][2][3]=Sigmam2*spin_*a2_*r*sth2*s2th; dst[0][0][1]=dst[0][1][0]=(a2_+r2)*(2.*r2-Sigma)*Deltam1Sigmam2; dst[0][0][2]=dst[0][2][0]=-a2_*r*s2th*Sigmam2; return 0 def getRms(self): aa=self.spin; a2_=aa*aa z1 = 1. + pow((1. - a2_),1./3.)*(pow((1. + aa),1./3.) + pow((1. - aa),1./3.)) z2 = pow(3.*a2_ + z1*z1,1./2.); return (3. + z2 - pow((3. - z1)*(3. + z1 + 2.*z2),1./2.)); def getRmb(self): spin_=self.spin return 2.-spin_+2.*math.sqrt(1.-spin_); def getSpecificAngularMomentum(self, rr): aa=self.spin sqrtr=math.sqrt(rr); return (rr*rr-2.*aa*sqrtr+aa*aa)/(rr**1.5-2.*sqrtr+aa); def getPotential(self, pos, l_cst): # this is W = -ln(|u_t|) for a circular equatorial 4-velocity # Don't try to call directly gmunu from `self', # Call it through `this', a pointer to the C++ instance of # Gyoto::Metric::Python # Note that the calling sequence is not gmunu(self, gg, pos) gg=self.this.gmunu(pos) gtt = gg[0,0]; gtp = gg[0,3]; gpp = gg[3,3]; Omega = -(gtp + l_cst * gtt)/(gpp + l_cst * gtp) ; W = (0.5 * math.log(abs(gtt + 2. * Omega * gtp + Omega*Omega * gpp)) - math.log(abs(gtt + Omega * gtp))) ; return W ; def isStopCondition(self, coord): return coord[1] < self.rsink def circularVelocity(self, coor, vel, d): '''Velocity of a particle in circular motion at point Note: this is called only if this->keplerian_ is False. ''' sinth = math.sin(coor[2]); coord = [coor[0], coor[1]*sinth, math.pi*0.5, coor[3]]; vel[1] = vel[2] = 0.; #vel[3] = 1./((d*pow(coord[1], 1.5) + spin_)*sinth); vel[3] = 1./((d*pow(coord[1], 1.5) + self.spin)); vel[0] = self.this.SysPrimeToTdot(coor, vel[1:]); vel[3] *= vel[0]; Gyoto-2.0.2/plugins/python/doc/examples/gyoto_sample_spectra.py000066400000000000000000000103101455254334400250020ustar00rootroot00000000000000'''Sample spectra for using with Gyoto Python plug-in Those classes demonstrate how to use Python classes as Gyoto Spectrum implementations using Gyoto's "python" plug-in. Note that this plug-in can be renamed to whatever matches the particular version of Python it has been built against (e.g. python3.4). The goal is to be able to instantiate these from XML, from Yorick... and even from Python using the gyoto extension... Synopsis: import gyoto.core gyoto.core.requirePlugin("python") # or python2.7 or python3.4... sp=gyoto.core.Spectrum("Python") sp.set("Module", "gyoto_sample_spectra") sp.set("Class", "PowerLaw") # or "BlackBody6000" sp.set("Parameters", (1., 2.)) val=sp(3e8/2e-6) Classes that aim at implementing the Gyoto::Spectrum::Generic interface do so by providing the following members and methods: __call__(self, nu): mandatory; __setitem__: optional; integrate: optional; properties, set, get: optional. ''' import math import numpy import gyoto.core class BlackBody6000: '''Black-body spectrum at 6000K Parameters: none. This example is pretty minimal: it's a black-body with fixed temperature. We implement the only mandaroty function: __call__(self, nu). ''' def __call__(self, nu): '''spectrum(frequency_in_Hz) = black-body distribution for T=6000K. This function implements only Gyoto::Spectrum::Python::operator()(double nu). It does so by not accepting the varargs argument. Contrast with the PowerLaw definition of __call__. ''' temperature=6000. PLANCK_OVER_BOLTZMANN=4.7992373e-11 return nu*nu*nu/(math.exp(PLANCK_OVER_BOLTZMANN*nu/temperature)-1.); class PowerLaw: '''Powerlaw spectrum Parameters: (constant, exponent) This example is pretty complete. It implements everything usefull and some eye-candy. ''' constant=0. exponent=0. properties={"Constant": "double", "Exponent": "double"} def __setitem__(self, key, value): ''' This is how Gyoto sends the XML entity: spectrum[i]=value i=0: set constant i=1: set exponent ''' if (key==0 or key == "Constant"): self.constant = value elif (key==1 or key == "Exponent"): self.exponent = value else: raise IndexError set=__setitem__ def get(self, key): ''' Implementing this is absolutely not necessary (Gyoto does not use it, as of now), but we can: it allows retrieving the parameters like __setitem__ sets them: spectrum[0] == spectrum.constant spectrum[1] == spectrum.exponent ''' if (key==0 or key=="Constant"): return self.constant elif (key==1 or key=="Exponent"): return self.exponent else: raise IndexError def __call__(self, *args): '''spectrum(frequency_in_Hz) = constant * nu**exponent This function implements both Spectrum::Python::operator()(double nu). and Spectrum::Python::operator()(double nu, double opacity, double ds). This behavior is obtained by having the varargs *args as second argument instead of a normal variable. The second overloaded function is here exactly the same as the C++ generic implementation and therefore useless. It is here to illustrate the API. ''' nu=args[0] if (len(args)==1): return self.constant * math.pow(nu, self.exponent) else: opacity=args[1] ds=args[2] thickness=(opacity*ds) if (thickness): return self(nu) * (1.-math.exp(-thickness)) return 0. def integrate(self, nu1, nu2): ''' If present, this function implements Gyoto::Spectrum::Python::integrate(double nu1, double nu2) If absent, the generic integrator is used. ''' if (self.exponent == -1.): return self.constant * (math.log(nu2) -math.log(nu1)) return self.constant * (math.pow(nu2, self.exponent+1)- math.pow(nu1, self.exponent+1)) / (self.exponent+1) Gyoto-2.0.2/plugins/python/doc/examples/gyoto_sample_standard.py000066400000000000000000000133071455254334400251520ustar00rootroot00000000000000'''Sample Astrobj::Standard for using with Gyoto Python plug-in Those classes demonstrate how to use Python classes as Gyoto Astrobj::Standard implementations using Gyoto's "python" plug-in. Note that this plug-in can be renamed to whatever matches the particular version of Python it has been built against (e.g. python3.4). The goal is to be able to instantiate these from XML, from Yorick... and even from Python using the gyoto extension... Synopsis: import gyoto.core gyoto.core.requirePlugin("python") # or python2.7 or python3.4... sp=gyoto.core.Astrobj("Python::Standard") sp.set("Module", "gyoto_sample_standard") sp.set("Class", "FixedStar") sp.set("Position", (0., 0., 0.)) sp.set("Radius", 1.) Classes that aim at implementing the Gyoto::Astrobj::Standard interface do so by providing the following methods and variable: __call__: required getVelocity: required giveDelta, emission, integrateEmission, transmission, set, get, properties: optional. emission and integrateEmission can be overloaded by using the varargs argument. Ad-hoc properties are declared in member properties which is a dict in the form: properties = { Key1: type1, Key2: type2} where Keyi and typei are strings. They are then handled by set(self, key, val) and get(self, key). ''' import math import numpy import gyoto.core class FixedStar: ''' Sample class for Astrobj::Python::Standard ''' properties={"Position": "vector_double", "Radius": "double", "Spectrum": "spectrum", "Opacity": "spectrum"} '''Properties handled by set() and get() ''' position=numpy.zeros(3, dtype=float) '''3 coordinates of the center of the star ''' radius=1. '''Radius of the Star in geometrical units ''' spectrum=gyoto.core.Spectrum("BlackBody") opacity=gyoto.core.Spectrum("PowerLaw") def set(self, key, val): '''Set parameters as ad hoc entities Python: instance.set("Position", (x1, x2, x3)) instance.set("Radius", radius) XML: x1 x2 x3 radius Setting Radius actually sets CriticalValue and SafetyValue (Properties of Astrobj::Standard). ''' if (key=="Position"): self.position = val elif key == "Radius": self.radius = val elif key == "Spectrum": self.spectrum = val elif key == "Opacity": self.opacity = val # Note: since we set attributes here, __setattr__(self, key, # val) defined below will be called and implements useful side # effects. def get(self, key): '''Retrieve properties Optional, but simple to implement and very usefull. Required to write back to XML, which is used for MPI parallelization. ''' if key == "Position": return self.position if key == "Radius": return self.radius if key == "Spectrum": return self.spectrum if key == "Opacity": return self.opacity def __setattr__(self, key, val): '''Set attributes Optional, but allows reacting when attributes (self.xxx) change. In particular, Gyoto will set self.this to the C++ class instance upon initialization. ''' # First, actually store the attribute. This is what would # happen if we did not overload __setattr__. self.__dict__[key]=val if key == "this": # Then, if key is "this", trigger the side effects of # setting position and radius. This will reenter # __setattr__ with the following cases. self.position=self.position self.radius=self.radius elif key == "position": # when position is set, cache Cartesian expression pos=numpy.zeros(4, dtype=float) pos[1:]=val self.coord_st=self.to_cartesian(pos) elif key == "radius": # Update two properties from the Gyoto::Standard interface self.this.set("CriticalValue", val**2) self.this.set("SafetyValue", val**2*1.1+0.1) def to_cartesian(self, coord): '''Helper function, not in the API ''' gg=self.this.metric() spherical=False if gg is not None: spherical = gg.coordKind() == gyoto.core.GYOTO_COORDKIND_SPHERICAL if spherical: rs=coord[1] ths=coord[2] phs=coord[3] st=math.sin(ths) ct=math.cos(ths) sp=math.sin(phs) cp=math.cos(phs) return numpy.array((coord[0], rs*st*cp, rs*st*sp, rs*ct)) return coord def __call__(self, coord): ''' Astrobj::Standard::operator()() Required ''' coord_ph=self.to_cartesian(coord) coord_st=self.coord_st dx = coord_ph[1]-coord_st[1] dy = coord_ph[2]-coord_st[2] dz = coord_ph[3]-coord_st[3] return dx*dx + dy*dy + dz*dz def getVelocity(self, coord, vel): ''' Velocity field Required ''' vel[0]=1. for i in range(1, 4): vel[i]=0. def emission(self, nuem, dsem, cph, co): ''' emission Optional ''' if self.this.opticallyThin(): return self.spectrum(nuem, self.opacity(nuem), dsem) return self.spectrum(nuem) def transmission(self, nuem, dsem, cph, co): if (not self.this.opticallyThin()): return 0. opac=self.opacity(nuem) if opac == 0.: return 1. return math.exp(-opac*dsem) Gyoto-2.0.2/plugins/python/doc/examples/gyoto_sample_thindisks.py000066400000000000000000000021741455254334400253520ustar00rootroot00000000000000'''Sample Astrobj::ThinDisk for using with Gyoto Python plug-in Those classes demonstrate how to use Python classes as Gyoto Astrobj::ThibDisk implementations using Gyoto's "python" plug-in. Note that this plug-in can be renamed to whatever matches the particular version of Python it has been built against (e.g. python3.4). The goal is to be able to instantiate these from XML, from Yorick... and even from Python using the gyoto extension... Synopsis: import gyoto.core gyoto.core.requirePlugin("python") # or python2.7 or python3.4... td=gyoto.core.Astrobj("Python::ThinDisk") td.set("Module", "gyoto_sample_thindisks") td.set("Class", "ThinDisk") Classes that aim at implementing the Gyoto::Astrobj::ThinDisk interface do so by providing the following methods: getVelocity, giveDelta, emission, integrateEmission, transmission, __setitem__: optional. emission and integrateEmission can be overloaded by using the varargs argument. ''' class ThinDisk: '''A ThinDisk with trivial emission ''' def emission(self, nuem, dsem, cph, co): return dsem Gyoto-2.0.2/plugins/python/doc/examples/test.py000066400000000000000000000033661455254334400215530ustar00rootroot00000000000000import gyoto.core import sys import os.path # The name of the Gyoto plug-in that can be loaded in a given Python # session is the same as the name of the Python executable python_plugin = os.path.basename(sys.executable) gyoto.core.requirePlugin(python_plugin) sp=gyoto.core.Spectrum("Python") sp.set("Module", "gyoto_sample_spectra") sp.set("Class", "PowerLaw") sp.set("Parameters", (1., 10.)) print('value: {}'.format(sp(3e8/2e-6))) sp.set("Parameters", (2., 20.)) print('value: {}'.format(sp(3e8/2e-6))) #BlackBody6000 does not accept any parameter: sp=gyoto.core.Spectrum("Python") sp.set("Module", "gyoto_sample_spectra") sp.set("Class", "BlackBody6000") print('value: {}'.format(sp(3e8/2e-6))) sp.set("Module", "gyoto_sample_spectra") sp.set("Class", "PowerLaw") sp.set("Parameters", (2., 0.)) print('using Python integrate: {}'.format(sp.integrate(1., 2.))) sp2=gyoto.core.Spectrum("PowerLaw") sp2.set("Exponent", 0.) sp2.set("Constant", 2.) print('using Gyoto generic integrator: {}'.format(sp2.integrate(1., 2.))) sp.set("Module", "gyoto_sample_spectra") sp.set("Class", "PowerLaw") sp.set("Parameters", (2., 1.)) print('using Python integrate: {}'.format(sp.integrate(1., 2.))) sp2=gyoto.core.Spectrum("PowerLaw") sp2.set("Exponent", 1.) sp2.set("Constant", 2.) print('using Gyoto generic integrator: {}'.format(sp2.integrate(1., 2.))) sp.set("Module", "gyoto_sample_spectra") sp.set("Class", "PowerLaw") sp.set("Parameters", (5., -1.)) print('using Python integrate: {}'.format(sp.integrate(1., 2.))) sp2=gyoto.core.Spectrum("PowerLaw") sp2.set("Exponent", -1.) sp2.set("Constant", 5.) print('using Gyoto generic integrator: {}'.format(sp2.integrate(1., 2.))) gg=gyoto.core.Metric("Python") gg.set("Module", "gyoto_sample_metrics") gg.set("Class", "Minkowski") Gyoto-2.0.2/plugins/python/doc/examples/test_KerrBL.py000066400000000000000000000053431455254334400227510ustar00rootroot00000000000000# Compare the C++ and Python implementations of the KerrBL metric # # This script is for demonstration and test purposes, in all practical case # the C++ implementation should be preferred. # Import gyoto, require the Python plug-in. Note that the Python # plug-in name depends on the running interpreter. Default to basename # of Python executable, then python3, then python. import gyoto.core, gyoto.std import sys, os.path, importlib, gyoto_sample_metrics try: gyoto.core.requirePlugin(os.path.basename(sys.executable)) except gyoto.core.Error: try: gyoto.core.requirePlugin("python3") except gyoto.core.Error: try: gyoto.core.requirePlugin("python") except gyoto.core.Error: raise gyoto.core.Error("Could not load Python plugin, tried: "+os.path.basename(sys.executable)+", python3 and python") # Instanciate an instance of the C++ KerrBL and an instance of the Python equivalent kerrc=gyoto.std.KerrBL() kerrp=gyoto.core.Metric("Python") kerrp.set("Module", "gyoto_sample_metrics") kerrp.set("Class", "KerrBL") # Set spin kerrc.spin(0.5) kerrp.set("Parameters", (0.5,)) # Test getRms Rmsp=kerrp.getRms() Rmsc=kerrc.getRms() assert (Rmsp==Rmsc), "Rms is different" # Test getRmb Rmbp=kerrp.getRmb() Rmbc=kerrc.getRmb() assert (Rmbp==Rmbc), "Rmb is different" # Test getSpecificAngularMomentum samp=kerrp.getSpecificAngularMomentum(10.) samc=kerrc.getSpecificAngularMomentum(10.) assert (samp==samc), "Specific angular momentum is different" # Test gmunu pos=[0, 10, 1, 1.] ggp=kerrp.gmunu(pos) ggc=kerrc.gmunu(pos) assert (ggp==ggc).all(), "gmunu is different" # Test christoffel pos=[0, 10, 1, 1.] chp=kerrp.christoffel(pos) chc=kerrp.christoffel(pos) assert (chp==chc).all(), "christoffel is different" # Test getPotential Wp=kerrp.getPotential([0, 10, 1, 1.], 10.) Wc=kerrc.getPotential([0, 10, 1, 1.], 10.) assert (Wp==Wc), "getPotential is different" # Test isStopCondition Wp=kerrp.isStopCondition([0, 10, 1, 1., 0., 0., 0., 0]) Wc=kerrc.isStopCondition([0, 10, 1, 1., 0., 0., 0., 0]) assert (Wp==Wc), "isStopCondition is different" # Test circularVelocity kerrp.keplerian(False) kerrc.keplerian(False) vp=kerrp.circularVelocity([0, 10, 1, 1.]) vc=kerrc.circularVelocity([0, 10, 1, 1.]) assert (vp==vc).all(), "isStopCondition is different" vp=numpy.ndarray(4, dtype=float) vc=numpy.ndarray(4, dtype=float) kerrp.circularVelocity([0, 10, 1, 1.], vp) kerrc.circularVelocity([0, 10, 1, 1.], vc) assert (vp==vc).all(), "isStopCondition is different" vp=numpy.ndarray(4, dtype=float) vc=numpy.ndarray(4, dtype=float) kerrp.circularVelocity([0, 10, 1, 1.], vp, -1) kerrc.circularVelocity([0, 10, 1, 1.], vc, -1) assert (vp==vc).all(), "isStopCondition is different" print ("All tests passed successfully") Gyoto-2.0.2/plugins/python/gyoto.in000066400000000000000000000003421455254334400173170ustar00rootroot00000000000000#!/bin/sh set -e export LD_LIBRARY_PATH=@abs_top_srcdir@/lib/.libs:$LD_LIBRARY_PATH export DYLD_LIBRARY_PATH=@abs_top_srcdir@/lib/.libs:$DYLD_LIBRARY_PATH export GYOTO_PLUGINS=stdplug,nofail:lorene,obspm @GYOTO@ $@@ exit 0 Gyoto-2.0.2/plugins/python/include/000077500000000000000000000000001455254334400172525ustar00rootroot00000000000000Gyoto-2.0.2/plugins/python/include/GyotoPython.h000066400000000000000000000610371455254334400217350ustar00rootroot00000000000000/* Copyright 2015-2016, 2022 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ /** * \file GyotoPython.h * \brief Extending Gyoto using Python * * The classes provided here allow implementing a Spectrum, an Astrobj * or a Metric in Python. Together, they form the "python" Gyoto * plug-in. * * This is complementary to, but distinct from the "gyoto" Python * extension. Here, we are embedding Python inside Gyoto so that a few * functions are coded in Python. The Python extension does the * reverse: it allows calling Gyoto functions from within * Python. Beware of the vocabulary: here, we call "plug-in" a shared * library that extends Gyoto, and "extension" a shared library that * extends Python. * * The plug-in works within the gyoto command-line utility as well as * when Gyoto is used inside Python or inside Yorick. The only caveat * is that the python plug-in of Gyoto should not be loaded into a * Python interpreter different from the one that was used for * building the plug-in. * * For this reason, the name of this plug-in depends on the Python * interpreter that was used when building. It can be simply "python", * or a be versionned: for instance "python2.7" or "python3.4". This * way, it is possible to keep several copies of the plug-in, one for * each version of the Python interpreter that are installed on the * machine. Any version can be used in the gyoto command-line utility * or in Yorick, but when Gyoto is used inside Python, only the * matching version of this plug-in may be used. * * Implementing a Spectrum, Astrobj or Metric kind in Python is much * easier than implementing a new C++ plug-in for Gyoto. This saves in * development time. However, there is a cost in terms of computing * time. While this cost may not be noticeable for Spectra and is * moderate for Astrobjs (at least for simple ones), it is quite * significant for Metrics, because the gmunu and christoffel methods * are evaluated several times per integration step, for every * photon. On one example using the Minkowski Metric, the integration * of a full image with the Python implementation took approx. 150-200 * more time than the same integration with the C++ * implementation. So, for Metrics, the Python implementation can * serve as a prototyping test-bed, but most users will probably still * want to re-implement their Metrics in C++ eventually. * * Note also that multi-threading is not very efficient for the * Metric::Python class, because only one thread may interact with the * Python interpreter at any time. MPI multi-processing runs much * faster. Here again, this limitation is less problematic for Spectra * and Astrobjs than it is for Metrics. * * The principle of these classes is very simple: the plugin embeds a * Python interpreter. Each instance of the Gyoto classes * Gyoto::Metric::Python, Gyoto::Spectrum::Python, * Gyoto::Astrobj:Python::Standard and * Gyoto::Astrobj::Python::ThinDisk instantiate a Python class in this * interpreter, and delegate certain methods from the Gyoto API to * this instance. * * In simple cases, the Python instance does not even need to know * that it is running in Gyoto. It simply exposes an interface that is * being called. However, Gyoto sets a few attributes in each * method. Most notably, if the "gyoto" python extension is available, * Gyoto will set the attribute "this" to the C++ instance that * created the Python class instance, so that the Python code can * access C++-side information. * */ #ifndef __GyotoPython_H_ #define __GyotoPython_H_ #include #include #include #include #include #include #include #include #include namespace Gyoto { /** * \namespace Gyoto::Python * \brief Helpers for the classes deriving from Gyoto::Python::Base */ namespace Python { class Base; template class Object; /// Convert Gyoto Value to Python Object PyObject * PyObject_FromGyotoValue(const Gyoto::Value&); /// Return new reference to method, or NULL if method not found. PyObject * PyInstance_GetMethod(PyObject* pInstance, const char *name); /// Return refernce to the gyoto module, or NULL. PyObject * PyImport_Gyoto(); /// Set "this" attribute in instance void PyInstance_SetThis(PyObject * pInstance, PyObject * pNew, void * ptr); /// Check whether method accepts the varargs argument bool PyCallable_HasVarArg(PyObject * pMethod); /// Create module from Python source code in a C string PyObject * PyModule_NewFromPythonCode(const char * code); /// Get reference to the Spectrum constructor in the gyoto Python extension PyObject * pGyotoSpectrum() ; /// Get reference to the Metric constructor in the gyoto Python extension PyObject * pGyotoMetric() ; /// Get reference to the StandardAstrobj constructor in the gyoto Python extension PyObject * pGyotoStandardAstrobj() ; /// Get reference to the ThinDisk constructor in the gyoto Python extension PyObject * pGyotoThinDisk() ; } namespace Spectrum { class Python; } namespace Metric { class Python; } namespace Astrobj { /** * \namespace Gyoto::Astrobj::Python * \brief Classes that wrap Python classes as Gyoto Astrobj implementations */ namespace Python { class Standard; class ThinDisk; } } } /** * \class Gyoto::Python::Base * * \brief Base class for classes in the Python plug-in. * * All derived C++ classes (Gyoto::Metric::Python, * Gyoto::Spectrum::Python, Gyoto::Astrobj::Python::Standard and * Gyoto::Astrobj::Python::Thindisk have those three Properties: * - Module (string): the module in which the Python class is * implemented; * - Class (string): the name of the Python class, in module Module, * to interface with; * - Parameters (vector): optional list of parameters for this * class. These parameters are passed one by one to the Python * instance using __setitem__ with numerical keys. * * Those C++ classes wrap around Python classes that implement certain * methods. Those Python classes may accepts parameters through the * Parameters property described above by implementing __setitem__, or * by providing: * - member "properties", a dict in the form {name: dtype} where name * is the property name and dtype the corresponding datatype. * - methods set(self, key, value) and get(self, key). * * All the Gyoto instances of the classes descending from * Gyoto::Python::Base expose themselves to the Python instance they * wrap immediately after instantiation by setting the 'this' * attribute. If the 'gyoto' Python extension can be loaded, then * 'this' will be an instance of one of the classes gyoto.Metric, * gyoto.Spectrum, gyoto.StandardAstrobj or gyoto.ThinDisk pointing to * the underlying C++ instance. If the 'gyoto' extension is not * available, 'this' will be None. * */ class Gyoto::Python::Base { protected: /** * \brief Name of the Python module that holds the class * * For instance, if the class is implemented in toto.py, the module * name is "toto". Property name: Module. */ std::string module_; /** * \brief Python source code for module that holds the class * */ std::string inline_module_; /** * \brief Name of the Python class that we want to expose * * Property name: Class. */ std::string class_; /** * \brief Parameters that this class needs * * A list of parameters (doubles) can be passed in the Property * Parameters. They will be sent to the Python instance using * __setitem__. */ std::vector parameters_; /** * \brief Reference to the python module once it has been loaded. */ PyObject * pModule_; /** * \brief Reference to the python instance once it has been instantiated. */ PyObject * pInstance_; /** * \brief Reference to the properties member */ PyObject * pProperties_; /** * \brief Reference to the (optional) Set method */ PyObject * pSet_; /** * \brief Reference to the (optional) Get method */ PyObject * pGet_; public: Base(); Base(const Base&); ~Base(); virtual std::string module() const ; ///< Return module_ virtual std::string inlineModule() const ; ///< Return inline_module_ /** * \brief Set #module_ and import the Python module * * Side effects: * - sets #inline_module_ to ""; * - calls #klass(#class_) if #class_ is already known, so #module_ * can be set (or reset) after #class_. */ virtual void module(const std::string&); /** * \brief Set #inline_module_ and import the Python module * * Side effects: * - sets #module_ to ""; * - calls #klass(#class_) if #class_ is already known, so #module_ * can be set (or reset) after #class_. */ virtual void inlineModule(const std::string&); /// Retrieve #class_. virtual std::string klass() const ; /** * \brief Set #class_ and instantiate the Python class. * * Sets #pInstance_. * * This generic implementation takes care of the common ground, but * does not set 'this' or call #parameters(#parameters_). Therefore, * all the derived classes should reimplement this method and at * least call Python::Base::klass(c) and * #parameters(#parameters_). Between the two is the right moment to * check that the Python class implements the required API and to * cache PyObject* pointers to class methods. */ virtual void klass(const std::string& c); /// Retrieve #parameters_ virtual std::vector parameters() const; /** * \brief Set #parameters_ and send them to #pInstance_ * * The parameters are sent to the class instance using the * __setitem__ method with numerical keys. */ virtual void parameters(const std::vector&); virtual bool hasPythonProperty(std::string const &key) const ; virtual void setPythonProperty(std::string const &key, Value val); virtual Value getPythonProperty(std::string const &key) const; virtual int pythonPropertyType(std::string const &key) const; }; /** * \class Gyoto::Python::Object * * \brief Class template to implement parts of the Gyoto::Object API * **/ template class Gyoto::Python::Object : public O, public Gyoto::Python::Base { public: Object() : O(), Gyoto::Python::Base() {} Object(const Object& o) : O(o), Base(o) {} virtual ~Object() {}; using O::set; virtual void set(std::string const &key, Value val) { GYOTO_DEBUG_EXPR(key); GYOTO_DEBUG_EXPR(val.type); if (hasPythonProperty(key)) { GYOTO_DEBUG << "Python key " << key << " exists" << std::endl; setPythonProperty(key, val); } else { GYOTO_DEBUG << "Python key " << key << " does not exist" << std::endl; O::set(key, val); } } virtual void set(Property const &p, Value val){ std::string key=p.name; GYOTO_DEBUG_EXPR(key); if (!hasPythonProperty(key)) { GYOTO_DEBUG << "calling Generic::set" << std::endl; O::set(p, val); return; } setPythonProperty(key, val); } virtual void set(Property const &p, Value val, std::string const &unit) { GYOTO_DEBUG_EXPR(p.name); if (hasPythonProperty(p.name)) { GYOTO_DEBUG << "Python key " << p.name << " exists" << std::endl; if (unit!="") GYOTO_ERROR("units not implemented"); setPythonProperty(p.name, val); } else { GYOTO_DEBUG << "Python key " << p.name << " does not exist" << std::endl; O::set(p, val, unit); } } using O::get; virtual Value get(std::string const &key) const { GYOTO_DEBUG_EXPR(key); if (!hasPythonProperty(key)) { GYOTO_DEBUG << "calling Generic::get" << std::endl; return O::get(key); } return getPythonProperty(key); } Value get(Property const &p, std::string const &unit) const { if (!hasPythonProperty(p.name)) { GYOTO_DEBUG << "calling Generic::get" << std::endl; return O::get(p, unit); } return getPythonProperty(p.name); } Value get(Property const &p) const { if (!hasPythonProperty(p.name)) { GYOTO_DEBUG << "calling Generic::get" << std::endl; return O::get(p); } return getPythonProperty(p.name); } using O::setParameter; virtual int setParameter(std::string name, std::string content, std::string unit) { GYOTO_DEBUG_EXPR(name); GYOTO_DEBUG_EXPR(content); GYOTO_DEBUG_EXPR(unit); if (hasPythonProperty(name)) { Property p(NULL); p.name=name; p.type=pythonPropertyType(name); GYOTO_DEBUG << "Calling setParameter(p, name, content, unit)" << std::endl; setParameter(p, name, content, unit); return 0; } return O::setParameter(name, content, unit); } virtual void fillElement(Gyoto::FactoryMessenger *fmp) const { O::fillElement(fmp); if (pProperties_) { Py_ssize_t pos=0; PyObject *pKey, *pVal; while (PyDict_Next(pProperties_, &pos, &pKey, &pVal)) { std::string key=PyUnicode_AsUTF8(pKey); std::string stype=PyUnicode_AsUTF8(pVal); Property::type_e type = Property::typeFromString(stype); const Property p (key, type); this->fillProperty(fmp, p); } } } void setParameters(Gyoto::FactoryMessenger *fmp) { std::string name="", content="", unit=""; FactoryMessenger * child = NULL; if (fmp) while (fmp->getNextParameter(&name, &content, &unit)) { GYOTO_DEBUG << "Setting '" << name << "' to '" << content << "' (unit='"<property(name); } if (!prop) {; GYOTO_DEBUG << "'" << name << "' not found, calling setParameter()" << std::endl; // The specific setParameter() implementation may well know // this entity setParameter(name, content, unit); } else { GYOTO_DEBUG << "'" << name << "' found "<< std::endl; std::vector plugins; switch (prop->type) { case Property::metric_t: set(*prop, fmp->metric()); break; case Property::astrobj_t: set(*prop, fmp->astrobj()); break; case Property::screen_t: set(*prop, fmp->screen()); break; case Property::spectrum_t: content = fmp -> getAttribute("kind"); child = fmp -> getChild(); plugins = Gyoto::split(fmp -> getAttribute("plugin"), ","); set(*prop, (*Spectrum::getSubcontractor(content, plugins))(child, plugins) ); delete child; break; case Property::spectrometer_t: content = fmp -> getAttribute("kind"); child = fmp -> getChild(); plugins = Gyoto::split(fmp -> getAttribute("plugin"), ","); set(*prop, (*Spectrometer::getSubcontractor(content, plugins))(child, plugins) ); delete child; break; case Property::filename_t: content = fmp->fullPath(content); // no 'break;' here, we need to proceed default: setParameter(*prop, name, content, unit); break; } } if (need_delete) delete prop; } GYOTO_DEBUG << "Done processing parameters" << std::endl; } }; /** * \class Gyoto::Spectrum::Python * * \brief Loader for Python classes implementing the Spectrum interface * * It interfaces with a Python class which must implement at least the * __call__ method. * * Sample XML file: * \include example-python.xml * Sample Python module: * \include gyoto_sample_spectra.py */ class Gyoto::Spectrum::Python : public Gyoto::Python::Object { friend class Gyoto::SmartPointer; protected: /** * \brief Reference to ___call__ * * __call__ is the method in the underlying Python class that * implements Gyoto::Spectrum::Generic::operator()(). */ PyObject * pCall_; /** * \brief Reference to the (optional) integrate method */ PyObject * pIntegrate_; /** * \brief Whether __call__ is overloaded * * This is determined automatically by looking at the parameters * accepted by __call__: * \code * def __call__(self, nu) * \endcode * In this case call is not overloaded and implements only virtual * double operator()(double nu) const; * \code * def __call__(self, *args) * \endcode * In this case __call__ is overloaded and implements both double * operator()(double nu) const and virtual double operator()(double * nu, double opacity, double ds) const. */ bool pCall_overloaded_; public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; Python(); Python(const Python&); virtual Python * clone() const; ~Python(); // For some reason we need to implement the bunch although only one // is non-trivial virtual std::string module() const ; virtual void module(const std::string&); virtual std::string inlineModule() const ; virtual void inlineModule(const std::string&); virtual std::string klass() const ; virtual void klass(const std::string&); virtual std::vector parameters() const; virtual void parameters(const std::vector&); virtual double operator()(double nu) const; virtual double operator()(double nu, double opacity, double ds) const; virtual double integrate(double nu1, double nu2) ; }; /** * \class Gyoto::Metric::Python * \brief Metric coded in Python * * Loader for Python Metric classes. It interfaces with a Python class * which must implement at least the gmunu and christoffel methods. * * Other methods are optional: getRmb, getRms, getSpecificAngularMomentum, * getPotential. * * Use <Cartesian> or </Spherical> to select the coordinate system * kind. * * Sample XML file: * \include example-python.xml * Sample Python module: * \include gyoto_sample_metrics.py */ class Gyoto::Metric::Python : public Gyoto::Python::Object { friend class Gyoto::SmartPointer; private: // Variables to cache Python objects: /** * \brief Reference to the gmunu method */ PyObject * pGmunu_; /** * \brief Reference to the christoffel method */ PyObject * pChristoffel_; /** * \brief Reference to the getRmb method */ PyObject * pGetRmb_; /** * \brief Reference to the getRms method */ PyObject * pGetRms_; /** * \brief Reference to the method getSpecificAngularMomentum */ PyObject * pGetSpecificAngularMomentum_; /** * \brief Reference to the getPotential method */ PyObject * pGetPotential_; /** * \brief Reference to the isStopCondition method */ PyObject * pIsStopCondition_; /** * \brief Reference to the circularVelocity method */ PyObject * pCircularVelocity_; public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; Python(); Python(const Python&); ~Python(); virtual Python* clone() const ; // Accessors for the Gyoto::Property members: // Those are mere wrappers arround Generic::coordKind(), useful for // declaring a boolen property using the macro GYOTO_PROPERTY_BOOL: void spherical(bool); bool spherical() const; virtual std::string module() const ; virtual void module(const std::string&); virtual std::string inlineModule() const ; virtual void inlineModule(const std::string&); virtual std::string klass() const ; virtual void klass(const std::string&); virtual std::vector parameters() const; virtual void parameters(const std::vector&); using Gyoto::Metric::Generic::mass; virtual void mass(double m); // The minimal Gyoto::Metric API: void gmunu(double g[4][4], const double * x) const ; int christoffel(double dst[4][4][4], const double * x) const ; // Little more double getRmb() const; double getRms() const; double getSpecificAngularMomentum(double rr) const; double getPotential(double const pos[4], double l_cst) const; int isStopCondition(double const coord[8]) const; void circularVelocity(double const pos[4], double vel[4], double dir=1.) const ; }; /** * \class Gyoto::Astrobj::Python::Standard * \brief Coding a Gyoto::Astrobj::Standard in Python * * Sample XML file: * \include example-python-standard.xml * Sample Python module: * \include gyoto_sample_standard.py */ class Gyoto::Astrobj::Python::Standard : public Gyoto::Python::Object { friend class Gyoto::SmartPointer; private: PyObject *pEmission_, *pIntegrateEmission_, *pTransmission_, *pCall_, *pGetVelocity_, *pGiveDelta_; bool pEmission_overloaded_, pIntegrateEmission_overloaded_; public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; /* Birth and Death*/ Standard(); Standard(const Standard&); ~Standard(); Standard* clone() const; /* Astrobj::Generic API */ virtual double emission(double nu_em, double dsem, state_t const &coord_ph, double const coord_obj[8]=NULL) const ; virtual void emission(double Inu[], double const nu_em[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]=NULL) const ; virtual double integrateEmission(double nu1, double nu2, double dsem, state_t const &c_ph, double const c_obj[8]=NULL) const; virtual void integrateEmission(double * I, double const * boundaries, size_t const * chaninds, size_t nbnu, double dsem, state_t const &cph, double const *co) const; virtual double transmission(double nuem, double dsem, state_t const &cph, double const *co) const ; /* Astrobj::Standard API */ virtual double operator()(double const coord[4]) ; virtual void getVelocity(double const pos[4], double vel[4]) ; virtual double giveDelta(double coord[8]); /* Python::Base */ virtual std::string module() const ; virtual void module(const std::string&); virtual std::string inlineModule() const ; virtual void inlineModule(const std::string&); virtual std::string klass() const ; virtual void klass(const std::string&); virtual std::vector parameters() const; virtual void parameters(const std::vector&); virtual double criticalValue() const ; virtual void criticalValue(double) ; }; /** * \class Gyoto::Astrobj::Python::ThinDisk * \brief Coding a Gyoto::Astrobj::ThinDisk in Python * * Sample XML file: * \include example-python-thindisk.xml * Sample Python module: * \include gyoto_sample_thindisks.py */ class Gyoto::Astrobj::Python::ThinDisk : public Gyoto::Python::Object { friend class Gyoto::SmartPointer; private: PyObject *pEmission_, *pIntegrateEmission_, *pTransmission_, *pCall_, *pGetVelocity_, *pGiveDelta_; bool pEmission_overloaded_, pIntegrateEmission_overloaded_; public: GYOTO_OBJECT; GYOTO_OBJECT_THREAD_SAFETY; /* Birth and Death*/ ThinDisk(); ThinDisk(const ThinDisk&); ~ThinDisk(); ThinDisk* clone() const; /* Astrobj::Generic API */ virtual double emission(double nu_em, double dsem, state_t const &coord_ph, double const coord_obj[8]=NULL) const ; virtual void emission(double Inu[], double const nu_em[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]=NULL) const ; virtual double integrateEmission(double nu1, double nu2, double dsem, state_t const &c_ph, double const c_obj[8]=NULL) const; virtual void integrateEmission(double * I, double const * boundaries, size_t const * chaninds, size_t nbnu, double dsem, state_t const &cph, double const *co) const; virtual double transmission(double nuem, double dsem, state_t const &cph ,double const *co) const ; /* Astrobj::ThinDisk API */ virtual double operator()(double const coord[4]) ; virtual void getVelocity(double const pos[4], double vel[4]) ; /* Python::Base */ virtual std::string module() const ; virtual void module(const std::string&); virtual std::string inlineModule() const ; virtual void inlineModule(const std::string&); virtual std::string klass() const ; virtual void klass(const std::string&); virtual std::vector parameters() const; virtual void parameters(const std::vector&); }; #endif Gyoto-2.0.2/plugins/python/lib/000077500000000000000000000000001455254334400163755ustar00rootroot00000000000000Gyoto-2.0.2/plugins/python/lib/Base.C000066400000000000000000000446341455254334400173660ustar00rootroot00000000000000/* Copyright © 2015-2017, 2019, 2022 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoPython.h" #include "GyotoValue.h" #include "GyotoProperty.h" #include "GyotoSpectrometer.h" #include "GyotoScreen.h" #include #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #define NO_IMPORT_ARRAY #define PY_ARRAY_UNIQUE_SYMBOL GyotoPython_ARRAY_API #include using namespace Gyoto; using namespace Gyoto::Python; using namespace std; class Proxy: public Gyoto::Object { public: void set_double(double); }; PyObject * Gyoto::Python::PyObject_FromGyotoValue(const Gyoto::Value& val){ PyObject * pVal = NULL; switch (val.type) { case Property::bool_t: pVal = PyBool_FromLong(val); break; case Property::long_t: pVal = PyLong_FromLong(val); break; case Property::unsigned_long_t: case Property::size_t_t: pVal = PyLong_FromUnsignedLong(val); break; case Property::double_t: pVal = PyFloat_FromDouble(val); break; case Property::filename_t: case Property::string_t: pVal = PyUnicode_FromString(std::string(val).c_str()); break; case Property::vector_double_t: { std::vector vval = val; npy_intp dims[] = {npy_intp(vval.size())}; pVal = PyArray_SimpleNew(1, dims, NPY_DOUBLE); for (npy_intp k=0; k vval = val; npy_intp dims[] = {npy_intp(vval.size())}; pVal = PyArray_SimpleNew(1, dims, NPY_ULONG); for (npy_intp k=0; k(val)); } break; case Property::empty_t: pVal = Py_None; break; case Property::metric_t: default: GYOTO_ERROR("Type not implemented in Python::Metric::PyObject_FromGyotoValue()"); } return pVal; } PyObject * Gyoto::Python::PyInstance_GetMethod (PyObject* pInstance, const char *name) { PyObject * pName = PyUnicode_FromString(name); if (!pName) return NULL; if (!PyObject_HasAttr(pInstance, pName)) { Py_XDECREF(pName); return NULL; } PyObject * pMethod = PyObject_GetAttr(pInstance, pName); Py_DECREF(pName); if (!pMethod) return NULL; if (!PyCallable_Check(pMethod)) { Py_DECREF(pMethod); return NULL; } return pMethod; } bool Gyoto::Python::PyCallable_HasVarArg(PyObject * pMethod) { static PyObject * pGetArgSpec = NULL; if (!pGetArgSpec) { // search for getfullargspec PyObject * pName = PyUnicode_FromString("inspect"); PyObject * pModule = PyImport_Import(pName); Py_XDECREF(pName); pName=NULL; pGetArgSpec = PyObject_GetAttrString(pModule, "getfullargspec"); } if (!pGetArgSpec) { // getargspec deprecated since Python 3.0, removed in 3.11 PyObject * pName = PyUnicode_FromString("inspect"); PyObject * pModule = PyImport_Import(pName); Py_XDECREF(pName); pName=NULL; pGetArgSpec = PyObject_GetAttrString(pModule, "getargspec"); } if (!pGetArgSpec) { PyErr_Print(); GYOTO_ERROR("Failed finding method getargspec or getfullargspec in module inspect"); } PyObject * pArgSpec = PyObject_CallFunctionObjArgs(pGetArgSpec, pMethod, NULL); bool answer = (PyTuple_GetItem(pArgSpec, 1) != Py_None); Py_XDECREF(pArgSpec); return answer; } PyObject * Gyoto::Python::PyImport_Gyoto() { static PyObject * pModule = NULL; static bool need_load = true; if (need_load) { need_load=false; pModule = PyImport_ImportModule("gyoto.core"); if (PyErr_Occurred()) { GYOTO_WARNING << ""; PyErr_Print(); } } return pModule; } PyObject * Gyoto::Python::pGyotoSpectrum() { static PyObject * res = NULL; static bool need_load = true; if (need_load) { need_load=false; PyObject* pGyoto=Gyoto::Python::PyImport_Gyoto(); if (pGyoto) res = PyObject_GetAttrString(pGyoto, "Spectrum"); } return res; } PyObject * Gyoto::Python::pGyotoThinDisk() { static PyObject * res = NULL; static bool need_load = true; if (need_load) { need_load=false; PyObject* pGyoto=Gyoto::Python::PyImport_Gyoto(); if (pGyoto) res = PyObject_GetAttrString(pGyoto, "ThinDisk"); } return res; } PyObject * Gyoto::Python::pGyotoMetric() { static PyObject * res = NULL; static bool need_load = true; if (need_load) { need_load=false; PyObject* pGyoto=Gyoto::Python::PyImport_Gyoto(); if (pGyoto) res = PyObject_GetAttrString(pGyoto, "Metric"); } return res; } PyObject * Gyoto::Python::pGyotoStandardAstrobj() { static PyObject * res = NULL; static bool need_load = true; if (need_load) { need_load=false; PyObject* pGyoto=Gyoto::Python::PyImport_Gyoto(); if (pGyoto) res = PyObject_GetAttrString(pGyoto, "StandardAstrobj"); } return res; } void Gyoto::Python::PyInstance_SetThis(PyObject * pInstance, PyObject * pNew, void * ptr) { PyObject * pThis = NULL; if (pNew) pThis = PyObject_CallFunction(pNew, "l", (long)ptr); else { pThis = Py_None; Py_INCREF(pThis); } PyObject_SetAttrString(pInstance, "this", pThis); Py_XDECREF(pThis); } PyObject * Gyoto::Python::PyModule_NewFromPythonCode(const char * source_code) { PyObject * pDedent = NULL; if (!pDedent) { GYOTO_DEBUG << "importing textwrap.dedent\n"; PyObject * mod = PyImport_ImportModule("textwrap"); if (PyErr_Occurred() || !mod) { Py_XDECREF(mod); return NULL; } pDedent = PyObject_GetAttrString(mod, "dedent"); Py_XDECREF(mod); if (PyErr_Occurred() || !pDedent) { return NULL; } GYOTO_DEBUG << "done importing textwrap.dedent\n"; } GYOTO_DEBUG << "dedenting source code... \n"; PyObject * pCode = PyObject_CallFunction(pDedent, "s", source_code); if (PyErr_Occurred() || !pCode) { GYOTO_DEBUG << "failed dedenting source code!\n"; Py_XDECREF(pCode); return NULL; } const char * new_source_code = NULL; if (PyUnicode_Check(pCode)) { PyObject * tmp = PyUnicode_AsUTF8String(pCode); Py_DECREF(pCode); pCode = tmp; } if (!PyBytes_Check(pCode)) { GYOTO_DEBUG << "not a PyBytes string\n"; Py_DECREF(pCode); return NULL; } new_source_code = PyBytes_AsString(pCode); GYOTO_DEBUG << "compiling inline code...\n"; PyObject * object_code=Py_CompileString(new_source_code, "", Py_file_input); Py_DECREF(pCode); if (PyErr_Occurred() || !object_code) { GYOTO_DEBUG << "failed compiling inline code!\n"; Py_XDECREF(object_code); PyErr_Print(); return NULL; } GYOTO_DEBUG << "importing object code as module...\n"; PyObject * mod = PyImport_ExecCodeModule("gyoto_inline", object_code); Py_XDECREF(object_code); if (PyErr_Occurred() || !mod) { GYOTO_DEBUG << "failed importing object code as module!\n"; Py_XDECREF(mod); PyErr_Print(); return NULL; } return mod; } // Birth and death Base::Base() : module_(""), inline_module_(""), class_(""), parameters_(), pModule_(NULL), pInstance_(NULL), pProperties_(NULL), pSet_(NULL), pGet_(NULL) {} Base::Base(const Base& o) : module_(o.module_), inline_module_(o.inline_module_), class_(o.class_), parameters_(o.parameters_), pModule_(o.pModule_), pInstance_(o.pInstance_), pProperties_(o.pProperties_), pSet_(o.pSet_), pGet_(o.pGet_) { Py_XINCREF(pModule_); Py_XINCREF(pInstance_); Py_XINCREF(pProperties_); Py_XINCREF(pSet_); Py_XINCREF(pGet_); } Base::~Base() { Py_XDECREF(pGet_); Py_XDECREF(pSet_); Py_XDECREF(pProperties_); Py_XDECREF(pInstance_); Py_XDECREF(pModule_); } /* Accessors */ std::string Base::module() const { return module_; } void Base::module(const std::string &m) { GYOTO_DEBUG << "Loading Python module " << m << endl; PyGILState_STATE gstate; module_=m; if (m=="") return; inline_module_=""; gstate = PyGILState_Ensure(); PyObject *pName=PyUnicode_FromString(m.c_str()); if (!pName) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Failed translating string to Python"); } Py_XDECREF(pModule_); pModule_ = PyImport_Import(pName); Py_DECREF(pName); if (PyErr_Occurred() || !pModule_) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Failed loading Python module"); } PyGILState_Release(gstate); if (class_ != "") klass(class_); GYOTO_DEBUG << "Done loading Python module " << m << endl; } std::string Base::inlineModule() const { return inline_module_; } void Base::inlineModule(const std::string &m) { inline_module_=m; if (m=="") return; module_=""; GYOTO_DEBUG << "Loading inline Python module :" << m << endl; PyGILState_STATE gstate = PyGILState_Ensure(); Py_XDECREF(pModule_); pModule_ = Gyoto::Python::PyModule_NewFromPythonCode(m.c_str()); if (PyErr_Occurred() || !pModule_) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Failed loading inline Python module"); } PyGILState_Release(gstate); if (class_ != "") klass(class_); GYOTO_DEBUG << "Done loading Python module " << m << endl; } std::string Base::klass() const { return class_; } void Base::klass(const std::string &f) { class_=f; if (!pModule_) return; GYOTO_DEBUG << "Instantiating Python class " << f << endl; PyGILState_STATE gstate = PyGILState_Ensure(); Py_XDECREF(pProperties_); pProperties_=NULL; Py_XDECREF(pGet_); pGet_=NULL; Py_XDECREF(pSet_); pSet_=NULL; Py_XDECREF(pInstance_); pInstance_=NULL; if (class_ == ""){ GYOTO_DEBUG << "class_ is empty: check whether there is a single class in module...\n"; PyObject * dict = PyModule_GetDict(pModule_); PyObject *key, *value, *tmp; Py_ssize_t pos = 0, nclass=0; while (PyDict_Next(dict, &pos, &key, &value)) { if ( #if PY_VERSION_HEX < 0x03000000 PyClass_Check(value) || #endif PyObject_TypeCheck(value, &PyType_Type)) { ++nclass; if (PyUnicode_Check(key)) { tmp = PyUnicode_AsUTF8String(key); } else { tmp = key; Py_INCREF(tmp); } if (!PyBytes_Check(tmp)) { Py_DECREF(tmp); PyGILState_Release(gstate); GYOTO_ERROR("not a PyBytes string"); } class_= PyBytes_AsString(tmp); Py_DECREF(tmp); } } if (nclass>1) { GYOTO_DEBUG << "several classes in module" << endl; class_ = ""; } else if (nclass == 1) { GYOTO_DEBUG << "single class in module: " << class_ << endl; } else if (nclass == 0) { PyGILState_Release(gstate); GYOTO_ERROR("no class in Python module\n"); } } PyObject * pClass = PyObject_GetAttrString(pModule_, class_.c_str()); if (PyErr_Occurred() || !pClass) { PyErr_Print(); Py_XDECREF(pClass); PyGILState_Release(gstate); GYOTO_ERROR("Could not find class in module"); } if (!PyCallable_Check(pClass)) { Py_DECREF(pClass); PyGILState_Release(gstate); GYOTO_ERROR("Class is not callable"); } pInstance_ = PyObject_CallObject(pClass, NULL); Py_DECREF(pClass); pClass=NULL; if (PyErr_Occurred() || !pInstance_) { PyErr_Print(); Py_XDECREF(pInstance_); pInstance_=NULL; PyGILState_Release(gstate); GYOTO_ERROR("Failed instantiating Python class"); } pSet_= Gyoto::Python::PyInstance_GetMethod(pInstance_, "set"); if (PyErr_Occurred()) { PyErr_Print(); Py_XDECREF(pSet_); pSet_=NULL; Py_XDECREF(pInstance_); pInstance_=NULL; PyGILState_Release(gstate); GYOTO_ERROR("Error getting set method"); } pGet_= Gyoto::Python::PyInstance_GetMethod(pInstance_, "get"); if (PyErr_Occurred()) { PyErr_Print(); Py_XDECREF(pSet_); pSet_=NULL; Py_XDECREF(pGet_); pGet_=NULL; Py_XDECREF(pInstance_); pInstance_=NULL; PyGILState_Release(gstate); GYOTO_ERROR("Error getting set method"); } pProperties_ = NULL; if (PyObject_HasAttrString(pInstance_, "properties")) pProperties_ = PyObject_GetAttrString(pInstance_, "properties"); if (PyErr_Occurred()) { PyErr_Print(); Py_XDECREF(pProperties_); pInstance_=NULL; Py_XDECREF(pGet_); pGet_=NULL; Py_XDECREF(pSet_); pSet_=NULL; Py_XDECREF(pInstance_); pInstance_=NULL; PyGILState_Release(gstate); GYOTO_ERROR("Error getting properties member"); } if (pProperties_) { if (!PyDict_Check(pProperties_)) { Py_XDECREF(pProperties_); pInstance_=NULL; Py_XDECREF(pGet_); pGet_=NULL; Py_XDECREF(pSet_); pSet_=NULL; Py_XDECREF(pInstance_); pInstance_=NULL; PyGILState_Release(gstate); GYOTO_ERROR("'properties' is not a dict'"); } } PyGILState_Release(gstate); GYOTO_DEBUG << "Done instantiating Python class " << f << endl; } std::vector Base::parameters() const {return parameters_;} void Base::parameters(const std::vector &p){ parameters_=p; if (!pInstance_ || p.size()==0) return; PyGILState_STATE gstate = PyGILState_Ensure(); for (size_t i=0; i vec(sz); for (npy_intp k=0; k((Gyoto::Spectrum::Generic*) (address)); } break; default: Py_XDECREF(pVal); PyGILState_Release(gstate); GYOTO_ERROR("unimplemented data type for Python property"); } Py_XDECREF(pVal); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in getPythonProperty()"); } PyGILState_Release(gstate); return val; } Gyoto-2.0.2/plugins/python/lib/Makefile.am000066400000000000000000000017251455254334400204360ustar00rootroot00000000000000ACLOCAL_AMFLAGS = -I m4 AM_CPPFLAGS = -I@top_srcdir@/include -DGYOTO_NO_DEPRECATED \ $(PYTHON_INCLUDES) $(NUMPY_CFLAGS) -DGYOTO_PLUGIN=@pluginname@ AM_LDFLAGS = $(Gyoto_LDFLAGS) -module -export-dynamic \ $(PYTHON_LDFLAGS) $(PYTHON_LIBS) -avoid-version -shared AM_CXXFLAGS = $(Gyoto_CFLAGS) -DGYOTO_PREFIX=\"@prefix@\" \ $(PYTHON_CFLAGS) soverdir=@soverdir@ sover_LTLIBRARIES = libgyoto-@pluginname@.la libgyoto_@pluginname@_la_SOURCES = \ PythonPlug.C Base.C Spectrum.C Metric.C Standard.C ThinDisk.C mk_video.C if DEFAULT install-data-hook: cd $(DESTDIR)$(soverdir) && \ rm -f libgyoto-$(linkname).$(GYOTO_PLUGIN_SFX) && \ $(LN_S) libgyoto-$(pluginname).$(GYOTO_PLUGIN_SFX) \ libgyoto-$(linkname).$(GYOTO_PLUGIN_SFX) uninstall-hook: rm -f $(DESTDIR)$(soverdir)/libgyoto-python.$(GYOTO_PLUGIN_SFX) endif # HEADERS: where they are, where to install them library_includedir=$(GYOTO_PREFIX)/include/Gyoto library_include_HEADERS=$(top_srcdir)/include/*.h Gyoto-2.0.2/plugins/python/lib/Makefile.in000066400000000000000000000606041455254334400204500ustar00rootroot00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ 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@ target_triplet = @target@ subdir = lib ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(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/python.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(library_include_HEADERS) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = 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)$(soverdir)" \ "$(DESTDIR)$(library_includedir)" LTLIBRARIES = $(sover_LTLIBRARIES) libgyoto_@pluginname@_la_LIBADD = am_libgyoto_@pluginname@_la_OBJECTS = PythonPlug.lo Base.lo \ Spectrum.lo Metric.lo Standard.lo ThinDisk.lo mk_video.lo libgyoto_@pluginname@_la_OBJECTS = \ $(am_libgyoto_@pluginname@_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = 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 = DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/../../depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/Base.Plo ./$(DEPDIR)/Metric.Plo \ ./$(DEPDIR)/PythonPlug.Plo ./$(DEPDIR)/Spectrum.Plo \ ./$(DEPDIR)/Standard.Plo ./$(DEPDIR)/ThinDisk.Plo \ ./$(DEPDIR)/mk_video.Plo am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(libgyoto_@pluginname@_la_SOURCES) DIST_SOURCES = $(libgyoto_@pluginname@_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac HEADERS = $(library_include_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # 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)` am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/../../depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DYLIB_VAR = @DYLIB_VAR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FILECMD = @FILECMD@ GREP = @GREP@ GYOTO = @GYOTO@ GYOTO_EPREFIX = @GYOTO_EPREFIX@ GYOTO_PLUGIN_SFX = @GYOTO_PLUGIN_SFX@ GYOTO_PREFIX = @GYOTO_PREFIX@ Gyoto_CFLAGS = @Gyoto_CFLAGS@ Gyoto_LIBS = @Gyoto_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ NUMPY_CFLAGS = @NUMPY_CFLAGS@ 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@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PYTHON = @PYTHON@ PYTHON_CFLAGS = @PYTHON_CFLAGS@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBS = @PYTHON_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SYS = @SYS@ VERSION = @VERSION@ Y_INST_HOME = @Y_INST_HOME@ Y_INST_SITE = @Y_INST_SITE@ 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@ linkname = @linkname@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ mySUBDIRS = @mySUBDIRS@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ plugin_sfx = @plugin_sfx@ pluginname = @pluginname@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ soverdir = @soverdir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ACLOCAL_AMFLAGS = -I m4 AM_CPPFLAGS = -I@top_srcdir@/include -DGYOTO_NO_DEPRECATED \ $(PYTHON_INCLUDES) $(NUMPY_CFLAGS) -DGYOTO_PLUGIN=@pluginname@ AM_LDFLAGS = $(Gyoto_LDFLAGS) -module -export-dynamic \ $(PYTHON_LDFLAGS) $(PYTHON_LIBS) -avoid-version -shared AM_CXXFLAGS = $(Gyoto_CFLAGS) -DGYOTO_PREFIX=\"@prefix@\" \ $(PYTHON_CFLAGS) sover_LTLIBRARIES = libgyoto-@pluginname@.la libgyoto_@pluginname@_la_SOURCES = \ PythonPlug.C Base.C Spectrum.C Metric.C Standard.C ThinDisk.C mk_video.C # HEADERS: where they are, where to install them library_includedir = $(GYOTO_PREFIX)/include/Gyoto library_include_HEADERS = $(top_srcdir)/include/*.h all: all-am .SUFFIXES: .SUFFIXES: .C .lo .o .obj $(srcdir)/Makefile.in: $(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) --gnu lib/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu lib/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__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-soverLTLIBRARIES: $(sover_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(sover_LTLIBRARIES)'; test -n "$(soverdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(soverdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(soverdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(soverdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(soverdir)"; \ } uninstall-soverLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(sover_LTLIBRARIES)'; test -n "$(soverdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(soverdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(soverdir)/$$f"; \ done clean-soverLTLIBRARIES: -test -z "$(sover_LTLIBRARIES)" || rm -f $(sover_LTLIBRARIES) @list='$(sover_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libgyoto-@pluginname@.la: $(libgyoto_@pluginname@_la_OBJECTS) $(libgyoto_@pluginname@_la_DEPENDENCIES) $(EXTRA_libgyoto_@pluginname@_la_DEPENDENCIES) $(AM_V_CXXLD)$(CXXLINK) -rpath $(soverdir) $(libgyoto_@pluginname@_la_OBJECTS) $(libgyoto_@pluginname@_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Base.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Metric.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/PythonPlug.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Spectrum.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Standard.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ThinDisk.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mk_video.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .C.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .C.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .C.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-library_includeHEADERS: $(library_include_HEADERS) @$(NORMAL_INSTALL) @list='$(library_include_HEADERS)'; test -n "$(library_includedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(library_includedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(library_includedir)" || 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_HEADER) $$files '$(DESTDIR)$(library_includedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(library_includedir)" || exit $$?; \ done uninstall-library_includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(library_include_HEADERS)'; test -n "$(library_includedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(library_includedir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(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-am 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" cscopelist: cscopelist-am 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 distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(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 check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(soverdir)" "$(DESTDIR)$(library_includedir)"; 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: 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." @DEFAULT_FALSE@install-data-hook: @DEFAULT_FALSE@uninstall-hook: clean: clean-am clean-am: clean-generic clean-libtool clean-soverLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/Base.Plo -rm -f ./$(DEPDIR)/Metric.Plo -rm -f ./$(DEPDIR)/PythonPlug.Plo -rm -f ./$(DEPDIR)/Spectrum.Plo -rm -f ./$(DEPDIR)/Standard.Plo -rm -f ./$(DEPDIR)/ThinDisk.Plo -rm -f ./$(DEPDIR)/mk_video.Plo -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-library_includeHEADERS \ install-soverLTLIBRARIES @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/Base.Plo -rm -f ./$(DEPDIR)/Metric.Plo -rm -f ./$(DEPDIR)/PythonPlug.Plo -rm -f ./$(DEPDIR)/Spectrum.Plo -rm -f ./$(DEPDIR)/Standard.Plo -rm -f ./$(DEPDIR)/ThinDisk.Plo -rm -f ./$(DEPDIR)/mk_video.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-library_includeHEADERS \ uninstall-soverLTLIBRARIES @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) uninstall-hook .MAKE: install-am install-data-am install-strip uninstall-am .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-soverLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-data-hook install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-library_includeHEADERS install-man install-pdf \ install-pdf-am install-ps install-ps-am \ install-soverLTLIBRARIES install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-hook \ uninstall-library_includeHEADERS uninstall-soverLTLIBRARIES .PRECIOUS: Makefile @DEFAULT_TRUE@install-data-hook: @DEFAULT_TRUE@ cd $(DESTDIR)$(soverdir) && \ @DEFAULT_TRUE@ rm -f libgyoto-$(linkname).$(GYOTO_PLUGIN_SFX) && \ @DEFAULT_TRUE@ $(LN_S) libgyoto-$(pluginname).$(GYOTO_PLUGIN_SFX) \ @DEFAULT_TRUE@ libgyoto-$(linkname).$(GYOTO_PLUGIN_SFX) @DEFAULT_TRUE@uninstall-hook: @DEFAULT_TRUE@ rm -f $(DESTDIR)$(soverdir)/libgyoto-python.$(GYOTO_PLUGIN_SFX) # 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: Gyoto-2.0.2/plugins/python/lib/Metric.C000066400000000000000000000271451455254334400177350ustar00rootroot00000000000000#include "GyotoPython.h" #include "GyotoProperty.h" #include "GyotoError.h" #include "GyotoValue.h" #include "GyotoSpectrometer.h" #include "GyotoScreen.h" #include "GyotoFactoryMessenger.h" #include #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #define NO_IMPORT_ARRAY #define PY_ARRAY_UNIQUE_SYMBOL GyotoPython_ARRAY_API #include using namespace Gyoto; using namespace Gyoto::Metric; using namespace Gyoto::Python; using namespace std; GYOTO_PROPERTY_START(Gyoto::Metric::Python, "Python-based Metric class") GYOTO_PROPERTY_STRING(Gyoto::Metric::Python, Module, module, "Python module containing the Metric implementation.") GYOTO_PROPERTY_STRING(Gyoto::Metric::Python, InlineModule, inlineModule, "Inline code of Python module containing the Spectrum implementation.") GYOTO_PROPERTY_STRING(Gyoto::Metric::Python, Class, klass, "Python class (in Module) implementing the Metric.") GYOTO_PROPERTY_VECTOR_DOUBLE(Gyoto::Metric::Python, Parameters, parameters, "Parameters for the class instance.") GYOTO_PROPERTY_BOOL(Metric::Python, Spherical, Cartesian, spherical, "Whether the coordinate system is Spherical or (default) Cartesian.") GYOTO_PROPERTY_END(Metric::Python, Generic::properties) GYOTO_PROPERTY_THREAD_UNSAFE(Metric::Python) // Birth and death Gyoto::Metric::Python::Python() : Python::Object(), pGmunu_(NULL), pChristoffel_(NULL), pGetRmb_(NULL), pGetRms_(NULL), pGetSpecificAngularMomentum_(NULL), pGetPotential_(NULL), pIsStopCondition_(NULL), pCircularVelocity_(NULL) { kind("Python"); coordKind(GYOTO_COORDKIND_CARTESIAN); } Gyoto::Metric::Python::Python(const Python& o) : Python::Object(o), pGmunu_(o.pGmunu_), pChristoffel_(o.pChristoffel_), pGetRmb_(o.pGetRmb_), pGetRms_(o.pGetRms_), pGetSpecificAngularMomentum_(o.pGetSpecificAngularMomentum_), pGetPotential_(o.pGetPotential_), pIsStopCondition_(o.pIsStopCondition_), pCircularVelocity_(o.pCircularVelocity_) { Py_XINCREF(pGmunu_); Py_XINCREF(pChristoffel_); Py_XINCREF(pGetRmb_); Py_XINCREF(pGetRms_); Py_XINCREF(pGetSpecificAngularMomentum_); Py_XINCREF(pGetPotential_); Py_XINCREF(pIsStopCondition_); Py_XINCREF(pCircularVelocity_); } Gyoto::Metric::Python::~Python() { Py_XDECREF(pCircularVelocity_); Py_XDECREF(pIsStopCondition_); Py_XDECREF(pGetPotential_); Py_XDECREF(pGetSpecificAngularMomentum_); Py_XDECREF(pGetRms_); Py_XDECREF(pGetRmb_); Py_XDECREF(pChristoffel_); Py_XDECREF(pGmunu_); } Metric::Python* Gyoto::Metric::Python::clone() const {return new Python(*this);} // Property accessors void Gyoto::Metric::Python::spherical(bool t) { coordKind(t?GYOTO_COORDKIND_SPHERICAL:GYOTO_COORDKIND_CARTESIAN); if (!pInstance_) return; GYOTO_DEBUG << "Set \"spherical\"\n"; PyGILState_STATE gstate = PyGILState_Ensure(); int res = PyObject_SetAttrString(pInstance_, "spherical", t?Py_True:Py_False); if (PyErr_Occurred() || res == -1) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Failed setting \"spherical\" using __setattr__"); } PyGILState_Release(gstate); GYOTO_DEBUG << "done.\n"; } bool Gyoto::Metric::Python::spherical() const { if (coordKind() == GYOTO_COORDKIND_UNSPECIFIED) GYOTO_ERROR("coordKind unspecified"); return coordKind() == GYOTO_COORDKIND_SPHERICAL; } void Gyoto::Metric::Python::mass(double m) { Generic::mass(m); if (!pInstance_) return; GYOTO_DEBUG << "Setting \"mass\"\n"; PyGILState_STATE gstate = PyGILState_Ensure(); PyObject * pM = PyFloat_FromDouble(mass()); int res = PyObject_SetAttrString(pInstance_, "mass", pM); Py_DECREF(pM); if (PyErr_Occurred() || res == -1) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Failed setting \"mass\" using __setattr__"); } PyGILState_Release(gstate); GYOTO_DEBUG << "done.\n"; } std::vector Metric::Python::parameters() const {return Python::Base::parameters();} void Metric::Python::parameters(const std::vector& m) {Python::Base::parameters(m);} std::string Metric::Python::module() const {return Python::Base::module();} void Metric::Python::module(const std::string& m){Python::Base::module(m);} std::string Metric::Python::inlineModule() const {return Python::Base::inlineModule();} void Metric::Python::inlineModule(const std::string& m){Python::Base::inlineModule(m);} std::string Metric::Python::klass() const {return Python::Base::klass();} void Gyoto::Metric::Python::klass(const std::string &f) { PyGILState_STATE gstate = PyGILState_Ensure(); Py_XDECREF(pGetPotential_); pGetPotential_=NULL; Py_XDECREF(pGetSpecificAngularMomentum_); pGetSpecificAngularMomentum_=NULL; Py_XDECREF(pGetRms_); pGetRms_=NULL; Py_XDECREF(pGetRmb_); pGetRmb_=NULL; Py_XDECREF(pChristoffel_); pChristoffel_=NULL; Py_XDECREF(pGmunu_); pGmunu_=NULL; PyGILState_Release(gstate); Python::Base::klass(f); if (!pModule_) return; gstate = PyGILState_Ensure(); GYOTO_DEBUG << "Checking Python class methods" << f << endl; pGmunu_ = Gyoto::Python::PyInstance_GetMethod(pInstance_, "gmunu"); pChristoffel_ = Gyoto::Python::PyInstance_GetMethod(pInstance_, "christoffel"); pGetRmb_= Gyoto::Python::PyInstance_GetMethod(pInstance_, "getRmb"); pGetRms_= Gyoto::Python::PyInstance_GetMethod(pInstance_, "getRms"); pGetSpecificAngularMomentum_= Gyoto::Python::PyInstance_GetMethod(pInstance_, "getSpecificAngularMomentum"); pGetPotential_= Gyoto::Python::PyInstance_GetMethod(pInstance_, "getPotential"); pIsStopCondition_= Gyoto::Python::PyInstance_GetMethod(pInstance_, "isStopCondition"); pCircularVelocity_= Gyoto::Python::PyInstance_GetMethod(pInstance_, "circularVelocity"); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error while retrieving methods"); } if (!pGmunu_) { PyGILState_Release(gstate); GYOTO_ERROR("Object does not implement required method \"gmunu\""); } if (!pChristoffel_) { PyGILState_Release(gstate); GYOTO_ERROR("Object does not implement required method \"christoffel\""); } Gyoto::Python::PyInstance_SetThis(pInstance_, Gyoto::Python::pGyotoMetric(), this); PyGILState_Release(gstate); if (parameters_.size()) parameters(parameters_); if (coordKind()) spherical(spherical()); mass(mass()); GYOTO_DEBUG << "Done checking Python class methods" << f << endl; } void Metric::Python::gmunu(double g[4][4], const double * x) const { if (!pGmunu_) GYOTO_ERROR("gmunu method not loaded yet"); PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp g_dims[] = {4, 4}; PyObject * pG = PyArray_SimpleNewFromData(2, g_dims, NPY_DOUBLE, g); PyObject * pX = PyArray_SimpleNewFromData(1, g_dims, NPY_DOUBLE, const_cast(x)); PyObject * pR = PyObject_CallFunctionObjArgs(pGmunu_, pG, pX, NULL); Py_XDECREF(pR); Py_XDECREF(pX); Py_XDECREF(pG); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in Metric::Python::gmunu"); } PyGILState_Release(gstate); } int Metric::Python::christoffel(double dst[4][4][4], const double * x) const { if (!pChristoffel_) GYOTO_ERROR("christoffel method not loaded yet"); PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp d_dims[] = {4, 4, 4}; PyObject * pD = PyArray_SimpleNewFromData(3, d_dims, NPY_DOUBLE, dst); PyObject * pX = PyArray_SimpleNewFromData(1, d_dims, NPY_DOUBLE, const_cast(x)); PyObject * pR = PyObject_CallFunctionObjArgs(pChristoffel_, pD, pX, NULL); Py_XDECREF(pX); Py_XDECREF(pD); if (PyErr_Occurred()) { Py_XDECREF(pR); PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in Metric::Python::christoffel"); } double r = PyFloat_AsDouble(pR); Py_XDECREF(pR); PyGILState_Release(gstate); return r; } double Metric::Python::getRmb () const { if (!pGetRmb_) return Metric::Generic::getRmb(); PyGILState_STATE gstate = PyGILState_Ensure(); PyObject * pR = PyObject_CallFunctionObjArgs(pGetRmb_, NULL); if (PyErr_Occurred()) { Py_XDECREF(pR); PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in Metric::getRmb()"); } double res = PyFloat_AsDouble(pR); Py_XDECREF(pR); PyGILState_Release(gstate); return res; } double Metric::Python::getRms () const { if (!pGetRms_) return Metric::Generic::getRms(); PyGILState_STATE gstate = PyGILState_Ensure(); PyObject * pR = PyObject_CallFunctionObjArgs(pGetRms_, NULL); if (PyErr_Occurred()) { Py_XDECREF(pR); PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in Metric::getRms()"); } double res = PyFloat_AsDouble(pR); Py_XDECREF(pR); PyGILState_Release(gstate); return res; } double Metric::Python::getSpecificAngularMomentum (double rr) const { if (!pGetSpecificAngularMomentum_) return Metric::Generic::getSpecificAngularMomentum(rr); PyGILState_STATE gstate = PyGILState_Ensure(); PyObject * pRr = PyFloat_FromDouble(rr); PyObject * pR = PyObject_CallFunctionObjArgs(pGetSpecificAngularMomentum_, pRr, NULL); Py_XDECREF(pRr); if (PyErr_Occurred()) { Py_XDECREF(pR); PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in Metric::getSpecificAngularMomentum()"); } double res = PyFloat_AsDouble(pR); Py_XDECREF(pR); PyGILState_Release(gstate); return res; } double Metric::Python::getPotential (double const pos[4], double l_cst) const { if (!pGetPotential_) return Metric::Generic::getPotential(pos, l_cst); PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp dims_pos[] = {4}; PyObject * pPo = PyArray_SimpleNewFromData(1, dims_pos, NPY_DOUBLE, const_cast(pos)); PyObject * pCs = PyFloat_FromDouble(l_cst); PyObject * pR = PyObject_CallFunctionObjArgs(pGetPotential_, pPo, pCs, NULL); Py_XDECREF(pCs); Py_XDECREF(pPo); if (PyErr_Occurred()) { Py_XDECREF(pR); PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in Metric::getPotential()"); } double res = PyFloat_AsDouble(pR); Py_XDECREF(pR); PyGILState_Release(gstate); return res; } int Metric::Python::isStopCondition (double const coord[8]) const { if (!pIsStopCondition_) return Metric::Generic::isStopCondition(coord); PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp dims_coord[] = {8}; PyObject * pPo = PyArray_SimpleNewFromData(1, dims_coord, NPY_DOUBLE, const_cast(coord)); PyObject * pR = PyObject_CallFunctionObjArgs(pIsStopCondition_, pPo, NULL); Py_XDECREF(pPo); if (PyErr_Occurred()) { Py_XDECREF(pR); PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in Metric::isStopCondition()"); } int res = PyLong_AsLong(pR); Py_XDECREF(pR); PyGILState_Release(gstate); return res; } void Metric::Python::circularVelocity(double const pos[4], double vel[4], double dir) const { if (!pCircularVelocity_ || keplerian_) { Metric::Generic::circularVelocity(pos, vel, dir); return; } PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp dims[] = {4}; PyObject * pP = PyArray_SimpleNewFromData(1, dims, NPY_DOUBLE, const_cast(pos)); PyObject * pV = PyArray_SimpleNewFromData(1, dims, NPY_DOUBLE, vel); PyObject * pD = PyFloat_FromDouble(dir); PyObject * pR = PyObject_CallFunctionObjArgs(pCircularVelocity_, pP, pV, pD, NULL); Py_XDECREF(pR); Py_XDECREF(pD); Py_XDECREF(pV); Py_XDECREF(pP); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in Metric::Python::circularVelocity"); } PyGILState_Release(gstate); } Gyoto-2.0.2/plugins/python/lib/PythonPlug.C000066400000000000000000000043731455254334400206210ustar00rootroot00000000000000/* Copyright 2015, 2022 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoPython.h" #include #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #define PY_ARRAY_UNIQUE_SYMBOL GyotoPython_ARRAY_API #include using namespace Gyoto; #if PY_VERSION_HEX < 0x03070000 static PyThreadState* mainPyThread=NULL; #endif namespace Gyoto { // import_array is actually a MACRO which returns a value. // We want to eat this return. bool eat_import_array() { import_array1(false); return true;} } extern "C" void __GyotoPluginInit() { Spectrum::Register("Python", &(Spectrum::Subcontractor)); Metric::Register("Python", &(Metric::Subcontractor)); Astrobj::Register("Python::Standard", &(Astrobj::Subcontractor)); Astrobj::Register("Python::ThinDisk", &(Astrobj::Subcontractor)); Py_InitializeEx(0); PyObject *pSys = PyImport_ImportModule("sys"); PyObject *pPath = PyObject_GetAttrString(pSys, "path"); PyObject *pDir = PyUnicode_FromString("."); Py_XDECREF(pSys); PyList_Reverse(pPath); PyList_Append(pPath, pDir); Py_XDECREF(pDir); PyList_Reverse(pPath); Py_XDECREF(pPath); Py_XDECREF(PyImport_ImportModule("numpy")); if (PyErr_Occurred()) { PyErr_Print(); GYOTO_ERROR("Failed importing numpy"); } Gyoto::eat_import_array(); # if PY_VERSION_HEX < 0x03070000 if (!PyEval_ThreadsInitialized()) { PyEval_InitThreads(); mainPyThread = PyEval_SaveThread(); } # endif if (PyErr_Occurred()) { PyErr_Print(); GYOTO_ERROR("Failed"); } } Gyoto-2.0.2/plugins/python/lib/Spectrum.C000066400000000000000000000141631455254334400203100ustar00rootroot00000000000000#include "GyotoPython.h" #include "GyotoProperty.h" #include "GyotoError.h" #include "Python.h" using namespace Gyoto; using namespace Gyoto::Spectrum; using namespace std; GYOTO_PROPERTY_START(Gyoto::Spectrum::Python, "Python-based Spectrum class") GYOTO_PROPERTY_STRING(Gyoto::Spectrum::Python, Module, module, "Name of Python module containing the Spectrum implementation.") GYOTO_PROPERTY_STRING(Gyoto::Spectrum::Python, InlineModule, inlineModule, "Inline code of Python module containing the Spectrum implementation.") GYOTO_PROPERTY_STRING(Gyoto::Spectrum::Python, Class, klass, "Python class (in Module) implementing the Spectrum.") GYOTO_PROPERTY_VECTOR_DOUBLE(Gyoto::Spectrum::Python, Parameters, parameters, "Parameters for the class instance.") GYOTO_PROPERTY_END(Gyoto::Spectrum::Python, Gyoto::Spectrum::Generic::properties) GYOTO_PROPERTY_THREAD_UNSAFE(Gyoto::Spectrum::Python) Spectrum::Python::Python() : Python::Object(), pCall_(NULL), pIntegrate_(NULL), pCall_overloaded_(false) { kind("Python"); } Spectrum::Python::Python(const Python&o) : Python::Object(o), pCall_(o.pCall_), pIntegrate_(o.pIntegrate_), pCall_overloaded_(o.pCall_overloaded_) { PyGILState_STATE gstate = PyGILState_Ensure(); Py_XINCREF(pCall_); Py_XINCREF(pIntegrate_); PyGILState_Release(gstate); } Spectrum::Python::~Python(){ PyGILState_STATE gstate = PyGILState_Ensure(); Py_XDECREF(pIntegrate_); Py_XDECREF(pCall_); PyGILState_Release(gstate); } Spectrum::Python* Spectrum::Python::clone() const {return new Python(*this);} /* Gyoto::Python::Base API: reimplement ::klass method */ std::vector Spectrum::Python::parameters() const {return Python::Base::parameters();} void Spectrum::Python::parameters(const std::vector& m) {Python::Base::parameters(m);} std::string Spectrum::Python::module() const {return Python::Base::module();} void Spectrum::Python::module(const std::string& m){Python::Base::module(m);} std::string Spectrum::Python::inlineModule() const {return Python::Base::inlineModule();} void Spectrum::Python::inlineModule(const std::string& m){Python::Base::inlineModule(m);} std::string Spectrum::Python::klass() const {return Python::Base::klass();} void Spectrum::Python::klass(const std::string &f) { PyGILState_STATE gstate = PyGILState_Ensure(); Py_XDECREF(pIntegrate_); pIntegrate_=NULL; Py_XDECREF(pCall_); pCall_=NULL; PyGILState_Release(gstate); Python::Base::klass(f); if (!pModule_) return; gstate = PyGILState_Ensure(); GYOTO_DEBUG << "Checking Python class methods" << f << endl; pCall_ = Gyoto::Python::PyInstance_GetMethod(pInstance_, "__call__"); pIntegrate_ = Gyoto::Python::PyInstance_GetMethod(pInstance_, "integrate"); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error while retrieving methods"); } if (!pCall_) { PyGILState_Release(gstate); GYOTO_ERROR("Object does not implement required method \"__call__\""); } pCall_overloaded_ = Gyoto::Python::PyCallable_HasVarArg(pCall_); Gyoto::Python::PyInstance_SetThis(pInstance_, Gyoto::Python::pGyotoSpectrum(), this); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error while setting this"); } PyGILState_Release(gstate); if (parameters_.size()) parameters(parameters_); GYOTO_DEBUG << "Done checking Python class methods" << f << endl; } /* Gyoto::Spectrum::Generic API */ double Spectrum::Python::operator()(double nu) const { if (!pCall_) GYOTO_ERROR("Python class not loaded yet"); PyGILState_STATE gstate; gstate = PyGILState_Ensure(); PyObject * pArgs = Py_BuildValue("(d)", nu); if (PyErr_Occurred() || !pArgs) { PyErr_Print(); Py_XDECREF(pArgs); PyGILState_Release(gstate); GYOTO_ERROR("Failed building argument list"); } PyObject * pValue = PyObject_CallObject(pCall_, pArgs); Py_DECREF(pArgs); if (PyErr_Occurred() || !pValue) { PyErr_Print(); Py_XDECREF(pValue); PyGILState_Release(gstate); GYOTO_ERROR("Failed calling Python method __call__"); } double res = PyFloat_AsDouble(pValue); Py_DECREF(pValue); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error interpreting result as double"); } PyGILState_Release(gstate); return res; } double Spectrum::Python::operator()(double nu, double opacity, double ds) const { if (!pCall_overloaded_) return Generic::operator()(nu, opacity, ds); PyGILState_STATE gstate; gstate = PyGILState_Ensure(); PyObject * pArgs = Py_BuildValue("(ddd)", nu, opacity, ds); if (PyErr_Occurred() || !pArgs) { PyErr_Print(); Py_XDECREF(pArgs); PyGILState_Release(gstate); GYOTO_ERROR("Failed building argument list"); } PyObject * pValue = PyObject_CallObject(pCall_, pArgs); Py_DECREF(pArgs); if (PyErr_Occurred() || !pValue) { PyErr_Print(); Py_XDECREF(pValue); PyGILState_Release(gstate); GYOTO_ERROR("Failed calling Python method __call__"); } double res = PyFloat_AsDouble(pValue); Py_DECREF(pValue); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error interpreting result as double"); } PyGILState_Release(gstate); return res; } double Spectrum::Python::integrate(double nu1, double nu2) { if (!pIntegrate_) return Generic::integrate(nu1, nu2); PyGILState_STATE gstate = PyGILState_Ensure(); PyObject * pArgs = Py_BuildValue("dd", nu1, nu2); if (PyErr_Occurred() || !pArgs) { PyErr_Print(); Py_XDECREF(pArgs); PyGILState_Release(gstate); GYOTO_ERROR("Failed building argument list"); } PyObject * pValue = PyObject_CallObject(pIntegrate_, pArgs); Py_DECREF(pArgs); if (PyErr_Occurred() || !pValue) { PyErr_Print(); Py_XDECREF(pValue); PyGILState_Release(gstate); GYOTO_ERROR("Failed calling Python method integrate"); } double res = PyFloat_AsDouble(pValue); Py_DECREF(pValue); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error interpreting result as double"); } PyGILState_Release(gstate); return res; } Gyoto-2.0.2/plugins/python/lib/Standard.C000066400000000000000000000324141455254334400202450ustar00rootroot00000000000000#include "GyotoPython.h" #include "GyotoProperty.h" #include "GyotoError.h" #include #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #define NO_IMPORT_ARRAY #define PY_ARRAY_UNIQUE_SYMBOL GyotoPython_ARRAY_API #include using namespace Gyoto; using namespace std; GYOTO_PROPERTY_START(Gyoto::Astrobj::Python::Standard, "Python-based Astrobj class") GYOTO_PROPERTY_STRING(Gyoto::Astrobj::Python::Standard, Module, module, "Python module containing the Astrobj implementation.") GYOTO_PROPERTY_STRING(Gyoto::Astrobj::Python::Standard, InlineModule, inlineModule, "Inline code of Python module containing the Spectrum implementation.") GYOTO_PROPERTY_STRING(Gyoto::Astrobj::Python::Standard, Class, klass, "Python class (in Module) implementing the Astrobj.") GYOTO_PROPERTY_VECTOR_DOUBLE(Gyoto::Astrobj::Python::Standard, Parameters, parameters, "Parameters for the class instance.") GYOTO_PROPERTY_DOUBLE(Gyoto::Astrobj::Python::Standard, CriticalValue, criticalValue, "The object is defined by __call__ < this value") GYOTO_PROPERTY_END(Astrobj::Python::Standard, Astrobj::Standard::properties) GYOTO_PROPERTY_THREAD_UNSAFE(Astrobj::Python::Standard) // Birth and death Gyoto::Astrobj::Python::Standard::Standard() : Gyoto::Python::Object(), pEmission_(NULL), pIntegrateEmission_(NULL), pTransmission_(NULL), pCall_(NULL), pGetVelocity_(NULL), pGiveDelta_(NULL), pEmission_overloaded_(false), pIntegrateEmission_overloaded_(false) { kind("Python::Standard"); } Gyoto::Astrobj::Python::Standard::Standard(const Standard& o) : Gyoto::Python::Object(o), pEmission_(o.pEmission_), pIntegrateEmission_(o.pIntegrateEmission_), pTransmission_(o.pTransmission_), pCall_(o.pCall_), pGetVelocity_(o.pGetVelocity_), pGiveDelta_(o.pGiveDelta_), pEmission_overloaded_(o.pEmission_overloaded_), pIntegrateEmission_overloaded_(o.pIntegrateEmission_overloaded_) { Py_XINCREF(pEmission_); Py_XINCREF(pIntegrateEmission_); Py_XINCREF(pTransmission_); Py_XINCREF(pCall_); Py_XINCREF(pGetVelocity_); Py_XINCREF(pGiveDelta_); } Gyoto::Astrobj::Python::Standard::~Standard() { Py_XDECREF(pEmission_); Py_XDECREF(pIntegrateEmission_); Py_XDECREF(pTransmission_); Py_XDECREF(pCall_); Py_XDECREF(pGetVelocity_); Py_XDECREF(pGiveDelta_); } Astrobj::Python::Standard* Gyoto::Astrobj::Python::Standard::clone() const {return new Standard(*this);} double Astrobj::Python::Standard::criticalValue() const {return critical_value_;} void Astrobj::Python::Standard::criticalValue(double v) {critical_value_=v;} std::vector Astrobj::Python::Standard::parameters() const {return Gyoto::Python::Base::parameters();} void Astrobj::Python::Standard::parameters(const std::vector& m) {Gyoto::Python::Base::parameters(m);} std::string Astrobj::Python::Standard::module() const {return Gyoto::Python::Base::module();} std::string Astrobj::Python::Standard::inlineModule() const {return Gyoto::Python::Base::inlineModule();} void Astrobj::Python::Standard::inlineModule(const std::string& m) {Gyoto::Python::Base::inlineModule(m);} void Astrobj::Python::Standard::module(const std::string& m) {Gyoto::Python::Base::module(m);} std::string Astrobj::Python::Standard::klass() const {return Gyoto::Python::Base::klass();} void Gyoto::Astrobj::Python::Standard::klass(const std::string &f) { PyGILState_STATE gstate = PyGILState_Ensure(); Py_XDECREF(pEmission_); Py_XDECREF(pIntegrateEmission_); Py_XDECREF(pTransmission_); Py_XDECREF(pCall_); Py_XDECREF(pGetVelocity_); Py_XDECREF(pGiveDelta_); PyGILState_Release(gstate); pEmission_overloaded_ = false; pIntegrateEmission_overloaded_ = false; Gyoto::Python::Base::klass(f); if (!pModule_) return; gstate = PyGILState_Ensure(); GYOTO_DEBUG << "Checking Python class methods" << f << endl; pEmission_ = Gyoto::Python::PyInstance_GetMethod(pInstance_, "emission"); pIntegrateEmission_ = Gyoto::Python::PyInstance_GetMethod(pInstance_, "integrateEmission"); pTransmission_ = Gyoto::Python::PyInstance_GetMethod(pInstance_, "transmission"); pCall_ = Gyoto::Python::PyInstance_GetMethod(pInstance_, "__call__"); pGetVelocity_ = Gyoto::Python::PyInstance_GetMethod(pInstance_, "getVelocity"); pGiveDelta_ = Gyoto::Python::PyInstance_GetMethod(pInstance_, "giveDelta"); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error while retrieving methods"); } if (!pCall_) { PyGILState_Release(gstate); GYOTO_ERROR("Object does not implement required method \"__call__\""); } if (!pGetVelocity_) { PyGILState_Release(gstate); GYOTO_ERROR("Object does not implement required method \"getVelocity\""); } pEmission_overloaded_ = pEmission_ && Gyoto::Python::PyCallable_HasVarArg(pEmission_); pIntegrateEmission_overloaded_ = pIntegrateEmission_ && Gyoto::Python::PyCallable_HasVarArg(pIntegrateEmission_); Gyoto::Python::PyInstance_SetThis(pInstance_, Gyoto::Python::pGyotoStandardAstrobj(), this); PyGILState_Release(gstate); if (parameters_.size()) parameters(parameters_); GYOTO_DEBUG << "Done checking Python class methods" << f << endl; } double Gyoto::Astrobj::Python::Standard::operator()(double const coord[4]) { if (!pCall_) GYOTO_ERROR("__call__ not loaded yet"); PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp dims[] = {4}; PyObject * pCoord = PyArray_SimpleNewFromData(1, dims, NPY_DOUBLE, const_cast(coord)); PyObject * pR = PyObject_CallFunctionObjArgs(pCall_, pCoord, NULL); double res = PyFloat_AsDouble(pR); Py_XDECREF(pR); Py_XDECREF(pCoord); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in Standard::operator()()"); } PyGILState_Release(gstate); return res; } void Gyoto::Astrobj::Python::Standard::getVelocity (double const coord[4], double vel[4]) { PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp dims[] = {4}; PyObject * pCoord = PyArray_SimpleNewFromData(1, dims, NPY_DOUBLE, const_cast(coord)); PyObject * pVel = PyArray_SimpleNewFromData(1, dims, NPY_DOUBLE, vel); PyObject * pR = PyObject_CallFunctionObjArgs(pGetVelocity_, pCoord, pVel, NULL); Py_XDECREF(pR); Py_XDECREF(pCoord); Py_XDECREF(pVel); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in Standard::getVelocity()"); } PyGILState_Release(gstate); } double Gyoto::Astrobj::Python::Standard::giveDelta(double coord[8]) { if (!pGiveDelta_) return Astrobj::Standard::giveDelta(coord); PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp dims[] = {8}; PyObject * pCoord = PyArray_SimpleNewFromData(1, dims, NPY_DOUBLE, coord); PyObject * pR = PyObject_CallFunctionObjArgs(pGiveDelta_, pCoord, NULL); double res = PyFloat_AsDouble(pR); Py_XDECREF(pR); Py_XDECREF(pCoord); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in Standard::giveDelta()"); } PyGILState_Release(gstate); return res; } double Gyoto::Astrobj::Python::Standard::emission (double nu_em, double dsem, state_t const &coord_ph, double const coord_obj[8]) const { if (!pEmission_) return Astrobj::Standard::emission(nu_em, dsem, coord_ph, coord_obj); PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp dims_co[] = {8}; npy_intp dims_ph[] = {npy_intp(coord_ph.size())}; PyObject * pNu = PyFloat_FromDouble(nu_em); PyObject * pDs = PyFloat_FromDouble(dsem); PyObject * pCp = PyArray_SimpleNewFromData(1, dims_ph, NPY_DOUBLE, const_cast(&coord_ph[0])); PyObject * pCo = PyArray_SimpleNewFromData(1, dims_co, NPY_DOUBLE, const_cast(coord_obj)); PyObject * pR = PyObject_CallFunctionObjArgs(pEmission_, pNu, pDs, pCp, pCo, NULL); Py_XDECREF(pCo); Py_XDECREF(pCp); Py_XDECREF(pDs); Py_XDECREF(pNu); if (PyErr_Occurred()) { Py_XDECREF(pR); PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in Standard::emission()"); } double res = PyFloat_AsDouble(pR); Py_XDECREF(pR); PyGILState_Release(gstate); return res; } void Gyoto::Astrobj::Python::Standard::emission (double Inu[], double const nu_em[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]) const { if (!pEmission_ || !pEmission_overloaded_) { Astrobj::Standard::emission(Inu, nu_em, nbnu, dsem, coord_ph, coord_obj); return; } PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp I_dims[] = {static_cast(nbnu)}; npy_intp dims_co[] = {8}; npy_intp dims_cp[] = {npy_intp(coord_ph.size())}; PyObject * pIn = PyArray_SimpleNewFromData(1, I_dims, NPY_DOUBLE, Inu); PyObject * pNu = PyArray_SimpleNewFromData(1, I_dims, NPY_DOUBLE, const_cast(nu_em)); PyObject * pDs = PyFloat_FromDouble(dsem); PyObject * pCp = PyArray_SimpleNewFromData(1, dims_cp, NPY_DOUBLE, const_cast(&coord_ph[0])); PyObject * pCo = PyArray_SimpleNewFromData(1, dims_co, NPY_DOUBLE, const_cast(coord_obj)); PyObject * pR = PyObject_CallFunctionObjArgs(pEmission_, pIn, pNu, pDs, pCp, pCo, NULL); Py_XDECREF(pR); Py_XDECREF(pCo); Py_XDECREF(pCp); Py_XDECREF(pDs); Py_XDECREF(pNu); Py_XDECREF(pIn); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in Standard::emission()"); } PyGILState_Release(gstate); } double Gyoto::Astrobj::Python::Standard::integrateEmission (double nu1, double nu2, double dsem, state_t const &c_ph, double const c_obj[8]) const { if (!pIntegrateEmission_) return Astrobj::Standard::integrateEmission(nu1, nu2, dsem, c_ph,c_obj); PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp dims_co[] = {8}; npy_intp dims_cp[] = {npy_intp(c_ph.size())}; PyObject * pN1 = PyFloat_FromDouble(nu1); PyObject * pN2 = PyFloat_FromDouble(nu2); PyObject * pDs = PyFloat_FromDouble(dsem); PyObject * pCp = PyArray_SimpleNewFromData(1, dims_cp, NPY_DOUBLE, const_cast(&c_ph[0])); PyObject * pCo = PyArray_SimpleNewFromData(1, dims_co, NPY_DOUBLE, const_cast(c_obj)); PyObject * pR = PyObject_CallFunctionObjArgs(pIntegrateEmission_, pN1, pN2, pDs, pCp, pCo, NULL); Py_XDECREF(pCo); Py_XDECREF(pCp); Py_XDECREF(pDs); Py_XDECREF(pN2); Py_XDECREF(pN1); if (PyErr_Occurred()) { Py_XDECREF(pR); PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in Standard::integrateEmission()"); } double res = PyFloat_AsDouble(pR); Py_XDECREF(pR); PyGILState_Release(gstate); return res; } void Gyoto::Astrobj::Python::Standard::integrateEmission (double * I, double const * boundaries, size_t const * chaninds, size_t nbnu, double dsem, state_t const &cph, const double *co) const{ if (!pIntegrateEmission_ || !pIntegrateEmission_overloaded_) { Gyoto::Astrobj::Standard::integrateEmission(I, boundaries, chaninds, nbnu, dsem, cph, co); return; } PyGILState_STATE gstate = PyGILState_Ensure(); size_t nbo=0; for (size_t i=0; i<2*nbnu; ++i) if (nbo < chaninds[i]) nbo=chaninds[i]; npy_intp nNu = nbnu, nBo = nbo, nCh = 2*nbnu, nCo = 8, nCp = npy_intp(cph.size()); PyObject * pI = PyArray_SimpleNewFromData(1, &nNu, NPY_DOUBLE, I); PyObject * pBo = PyArray_SimpleNewFromData(1, &nBo, NPY_DOUBLE, const_cast(boundaries)); PyObject * pCh = PyArray_SimpleNewFromData(1, &nCh, NPY_UINTP, const_cast(chaninds)); PyObject * pDs = PyFloat_FromDouble(dsem); PyObject * pCp = PyArray_SimpleNewFromData(1, &nCp, NPY_DOUBLE, const_cast(&cph[0])); PyObject * pCo = PyArray_SimpleNewFromData(1, &nCo, NPY_DOUBLE, const_cast(co)); PyObject * pR = PyObject_CallFunctionObjArgs(pIntegrateEmission_, pI, pBo, pCh, pDs, pCp, pCo, NULL); Py_XDECREF(pR); Py_XDECREF(pCo); Py_XDECREF(pCp); Py_XDECREF(pDs); Py_XDECREF(pCh); Py_XDECREF(pBo); Py_XDECREF(pI); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in Standard::integrateEmission()"); } PyGILState_Release(gstate); } double Gyoto::Astrobj::Python::Standard::transmission (double nuem, double dsem, state_t const &cph, double const *co) const { if (!pTransmission_) return Astrobj::Standard::transmission(nuem, dsem, cph, co); PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp pdims[] = {npy_intp(cph.size())}; npy_intp odims[] = {8}; PyObject * pNu = PyFloat_FromDouble(nuem); PyObject * pDs = PyFloat_FromDouble(dsem); PyObject * pCp = PyArray_SimpleNewFromData(1, pdims, NPY_DOUBLE, const_cast(&cph[0])); PyObject * pCo = PyArray_SimpleNewFromData(1, odims, NPY_DOUBLE, const_cast(co)); PyObject * pR = PyObject_CallFunctionObjArgs(pTransmission_, pNu, pDs, pCp, pCo, NULL); Py_XDECREF(pCo); Py_XDECREF(pCp); Py_XDECREF(pDs); Py_XDECREF(pNu); if (PyErr_Occurred()) { Py_XDECREF(pR); PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in Standard::transmission()"); } double res = PyFloat_AsDouble(pR); Py_XDECREF(pR); PyGILState_Release(gstate); return res; } Gyoto-2.0.2/plugins/python/lib/ThinDisk.C000066400000000000000000000277011455254334400202250ustar00rootroot00000000000000#include "GyotoPython.h" #include "GyotoProperty.h" #include "GyotoError.h" #include #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #define NO_IMPORT_ARRAY #define PY_ARRAY_UNIQUE_SYMBOL GyotoPython_ARRAY_API #include using namespace Gyoto; using namespace std; GYOTO_PROPERTY_START(Gyoto::Astrobj::Python::ThinDisk, "Python-based Astrobj class") GYOTO_PROPERTY_STRING(Gyoto::Astrobj::Python::ThinDisk, Module, module, "Python module containing the Astrobj implementation.") GYOTO_PROPERTY_STRING(Gyoto::Astrobj::Python::ThinDisk, InlineModule, inlineModule, "Inline code of Python module containing the Spectrum implementation.") GYOTO_PROPERTY_STRING(Gyoto::Astrobj::Python::ThinDisk, Class, klass, "Python class (in Module) implementing the Astrobj.") GYOTO_PROPERTY_VECTOR_DOUBLE(Gyoto::Astrobj::Python::ThinDisk, Parameters, parameters, "Parameters for the class instance.") GYOTO_PROPERTY_END(Astrobj::Python::ThinDisk, Astrobj::ThinDisk::properties) GYOTO_PROPERTY_THREAD_UNSAFE(Astrobj::Python::ThinDisk) // Birth and death Gyoto::Astrobj::Python::ThinDisk::ThinDisk() : Gyoto::Python::Object(), pEmission_(NULL), pIntegrateEmission_(NULL), pTransmission_(NULL), pCall_(NULL), pGetVelocity_(NULL), pEmission_overloaded_(false), pIntegrateEmission_overloaded_(false) { kind("Python::ThinDisk"); } Gyoto::Astrobj::Python::ThinDisk::ThinDisk(const ThinDisk& o) : Gyoto::Python::Object(o), pEmission_(o.pEmission_), pIntegrateEmission_(o.pIntegrateEmission_), pTransmission_(o.pTransmission_), pCall_(o.pCall_), pGetVelocity_(o.pGetVelocity_), pEmission_overloaded_(o.pEmission_overloaded_), pIntegrateEmission_overloaded_(o.pIntegrateEmission_overloaded_) { Py_XINCREF(pEmission_); Py_XINCREF(pIntegrateEmission_); Py_XINCREF(pTransmission_); Py_XINCREF(pCall_); Py_XINCREF(pGetVelocity_); } Gyoto::Astrobj::Python::ThinDisk::~ThinDisk() { Py_XDECREF(pEmission_); Py_XDECREF(pIntegrateEmission_); Py_XDECREF(pTransmission_); Py_XDECREF(pCall_); Py_XDECREF(pGetVelocity_); } Astrobj::Python::ThinDisk* Gyoto::Astrobj::Python::ThinDisk::clone() const {return new ThinDisk(*this);} std::vector Astrobj::Python::ThinDisk::parameters() const {return Gyoto::Python::Base::parameters();} void Astrobj::Python::ThinDisk::parameters(const std::vector& m) {Gyoto::Python::Base::parameters(m);} std::string Astrobj::Python::ThinDisk::module() const {return Gyoto::Python::Base::module();} void Astrobj::Python::ThinDisk::module(const std::string& m) {Gyoto::Python::Base::module(m);} std::string Astrobj::Python::ThinDisk::inlineModule() const {return Gyoto::Python::Base::inlineModule();} void Astrobj::Python::ThinDisk::inlineModule(const std::string& m) {Gyoto::Python::Base::inlineModule(m);} std::string Astrobj::Python::ThinDisk::klass() const {return Gyoto::Python::Base::klass();} void Gyoto::Astrobj::Python::ThinDisk::klass(const std::string &f) { PyGILState_STATE gstate = PyGILState_Ensure(); Py_XDECREF(pEmission_); Py_XDECREF(pIntegrateEmission_); Py_XDECREF(pTransmission_); Py_XDECREF(pCall_); Py_XDECREF(pGetVelocity_); PyGILState_Release(gstate); pEmission_overloaded_ = false; pIntegrateEmission_overloaded_ = false; Gyoto::Python::Base::klass(f); if (!pModule_) return; gstate = PyGILState_Ensure(); GYOTO_DEBUG << "Checking Python class methods" << f << endl; pEmission_ = Gyoto::Python::PyInstance_GetMethod(pInstance_, "emission"); pIntegrateEmission_ = Gyoto::Python::PyInstance_GetMethod(pInstance_, "integrateEmission"); pTransmission_ = Gyoto::Python::PyInstance_GetMethod(pInstance_, "transmission"); pCall_ = Gyoto::Python::PyInstance_GetMethod(pInstance_, "__call__"); pGetVelocity_ = Gyoto::Python::PyInstance_GetMethod(pInstance_, "getVelocity"); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error while retrieving methods"); } pEmission_overloaded_ = pEmission_ && Gyoto::Python::PyCallable_HasVarArg(pEmission_); pIntegrateEmission_overloaded_ = pIntegrateEmission_ && Gyoto::Python::PyCallable_HasVarArg(pIntegrateEmission_); Gyoto::Python::PyInstance_SetThis(pInstance_, Gyoto::Python::pGyotoThinDisk(), this); PyGILState_Release(gstate); if (parameters_.size()) parameters(parameters_); GYOTO_DEBUG << "Done checking Python class methods" << f << endl; } double Gyoto::Astrobj::Python::ThinDisk::operator()(double const coord[4]) { if (!pCall_) return Gyoto::Astrobj::ThinDisk::operator()(coord); PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp dims[] = {4}; PyObject * pCoord = PyArray_SimpleNewFromData(1, dims, NPY_DOUBLE, const_cast(coord)); PyObject * pR = PyObject_CallFunctionObjArgs(pCall_, pCoord, NULL); Py_XDECREF(pCoord); if (PyErr_Occurred()) { Py_XDECREF(pR); PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in ThinDisk::operator()()"); } double res = PyFloat_AsDouble(pR); Py_XDECREF(pR); PyGILState_Release(gstate); return res; } void Gyoto::Astrobj::Python::ThinDisk::getVelocity (double const coord[4], double vel[4]) { if (!pGetVelocity_) return Gyoto::Astrobj::ThinDisk::getVelocity(coord, vel); PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp dims[] = {4}; PyObject * pCoord = PyArray_SimpleNewFromData(1, dims, NPY_DOUBLE, const_cast(coord)); PyObject * pVel = PyArray_SimpleNewFromData(1, dims, NPY_DOUBLE, vel); PyObject * pR = PyObject_CallFunctionObjArgs(pGetVelocity_, pCoord, pVel, NULL); Py_XDECREF(pR); Py_XDECREF(pCoord); Py_XDECREF(pVel); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in ThinDisk::getVelocity()"); } PyGILState_Release(gstate); } double Gyoto::Astrobj::Python::ThinDisk::emission (double nu_em, double dsem, state_t const &coord_ph, double const coord_obj[8]) const { if (!pEmission_) return Astrobj::ThinDisk::emission(nu_em, dsem, coord_ph, coord_obj); PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp dims_co[] = {8}; npy_intp dims_cp[] = {npy_intp(coord_ph.size())}; PyObject * pNu = PyFloat_FromDouble(nu_em); PyObject * pDs = PyFloat_FromDouble(dsem); PyObject * pCp = PyArray_SimpleNewFromData(1, dims_cp, NPY_DOUBLE, const_cast(&coord_ph[0])); PyObject * pCo = PyArray_SimpleNewFromData(1, dims_co, NPY_DOUBLE, const_cast(coord_obj)); PyObject * pR = PyObject_CallFunctionObjArgs(pEmission_, pNu, pDs, pCp, pCo, NULL); Py_XDECREF(pCo); Py_XDECREF(pCp); Py_XDECREF(pDs); Py_XDECREF(pNu); if (PyErr_Occurred()) { Py_XDECREF(pR); PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in ThinDisk::emission()"); } double res = PyFloat_AsDouble(pR); Py_XDECREF(pR); PyGILState_Release(gstate); return res; } void Gyoto::Astrobj::Python::ThinDisk::emission (double Inu[], double const nu_em[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]) const { if (!pEmission_ || !pEmission_overloaded_) { Astrobj::ThinDisk::emission(Inu, nu_em, nbnu, dsem, coord_ph, coord_obj); return; } PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp I_dims[] = {static_cast(nbnu)}; npy_intp dims_co[] = {8}; npy_intp dims_cp[] = {npy_intp(coord_ph.size())}; PyObject * pIn = PyArray_SimpleNewFromData(1, I_dims, NPY_DOUBLE, Inu); PyObject * pNu = PyArray_SimpleNewFromData(1, I_dims, NPY_DOUBLE, const_cast(nu_em)); PyObject * pDs = PyFloat_FromDouble(dsem); PyObject * pCp = PyArray_SimpleNewFromData(1, dims_cp, NPY_DOUBLE, const_cast(&coord_ph[0])); PyObject * pCo = PyArray_SimpleNewFromData(1, dims_co, NPY_DOUBLE, const_cast(coord_obj)); PyObject * pR = PyObject_CallFunctionObjArgs(pEmission_, pIn, pNu, pDs, pCp, pCo, NULL); Py_XDECREF(pR); Py_XDECREF(pCo); Py_XDECREF(pCp); Py_XDECREF(pDs); Py_XDECREF(pNu); Py_XDECREF(pIn); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in ThinDisk::emission()"); } PyGILState_Release(gstate); } double Gyoto::Astrobj::Python::ThinDisk::integrateEmission (double nu1, double nu2, double dsem, state_t const &c_ph, double const c_obj[8]) const { if (!pIntegrateEmission_) return Astrobj::ThinDisk::integrateEmission(nu1, nu2, dsem, c_ph,c_obj); PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp dims_co[] = {8}; npy_intp dims_cp[] = {npy_intp(c_ph.size())}; PyObject * pN1 = PyFloat_FromDouble(nu1); PyObject * pN2 = PyFloat_FromDouble(nu2); PyObject * pDs = PyFloat_FromDouble(dsem); PyObject * pCp = PyArray_SimpleNewFromData(1, dims_cp, NPY_DOUBLE, const_cast(&c_ph[0])); PyObject * pCo = PyArray_SimpleNewFromData(1, dims_co, NPY_DOUBLE, const_cast(c_obj)); PyObject * pR = PyObject_CallFunctionObjArgs(pIntegrateEmission_, pN1, pN2, pDs, pCp, pCo, NULL); Py_XDECREF(pCo); Py_XDECREF(pCp); Py_XDECREF(pDs); Py_XDECREF(pN2); Py_XDECREF(pN1); if (PyErr_Occurred()) { Py_XDECREF(pR); PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in ThinDisk::integrateEmission()"); } double res = PyFloat_AsDouble(pR); Py_XDECREF(pR); PyGILState_Release(gstate); return res; } void Gyoto::Astrobj::Python::ThinDisk::integrateEmission (double * I, double const * boundaries, size_t const * chaninds, size_t nbnu, double dsem, state_t const &cph, double const *co) const{ if (!pIntegrateEmission_ || !pIntegrateEmission_overloaded_) { Gyoto::Astrobj::ThinDisk::integrateEmission(I, boundaries, chaninds, nbnu, dsem, cph, co); return; } PyGILState_STATE gstate = PyGILState_Ensure(); size_t nbo=0; for (size_t i=0; i<2*nbnu; ++i) if (nbo < chaninds[i]) nbo=chaninds[i]; npy_intp nNu = nbnu, nBo = nbo, nCh = 2*nbnu, nCo = 8, nCp = npy_intp(cph.size()); PyObject * pI = PyArray_SimpleNewFromData(1, &nNu, NPY_DOUBLE, I); PyObject * pBo = PyArray_SimpleNewFromData(1, &nBo, NPY_DOUBLE, const_cast(boundaries)); PyObject * pCh = PyArray_SimpleNewFromData(1, &nCh, NPY_UINTP, const_cast(chaninds)); PyObject * pDs = PyFloat_FromDouble(dsem); PyObject * pCp = PyArray_SimpleNewFromData(1, &nCp, NPY_DOUBLE, const_cast(&cph[0])); PyObject * pCo = PyArray_SimpleNewFromData(1, &nCo, NPY_DOUBLE, const_cast(co)); PyObject * pR = PyObject_CallFunctionObjArgs(pIntegrateEmission_, pI, pBo, pCh, pDs, pCp, pCo, NULL); Py_XDECREF(pR); Py_XDECREF(pCo); Py_XDECREF(pCp); Py_XDECREF(pDs); Py_XDECREF(pCh); Py_XDECREF(pBo); Py_XDECREF(pI); if (PyErr_Occurred()) { PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in ThinDisk::integrateEmission()"); } PyGILState_Release(gstate); } double Gyoto::Astrobj::Python::ThinDisk::transmission (double nuem, double dsem, state_t const &cph, double const * co) const { if (!pTransmission_) return Astrobj::ThinDisk::transmission(nuem, dsem, cph, co); PyGILState_STATE gstate = PyGILState_Ensure(); npy_intp pdims[] = {npy_intp(cph.size())}; npy_intp odims[] = {8}; PyObject * pNu = PyFloat_FromDouble(nuem); PyObject * pDs = PyFloat_FromDouble(dsem); PyObject * pCp = PyArray_SimpleNewFromData(1, pdims, NPY_DOUBLE, const_cast(&cph[0])); PyObject * pCo = PyArray_SimpleNewFromData(1, odims, NPY_DOUBLE, const_cast(co)); PyObject * pR = PyObject_CallFunctionObjArgs(pTransmission_, pNu, pDs, pCp, pCo, NULL); Py_XDECREF(pCo); Py_XDECREF(pCp); Py_XDECREF(pDs); Py_XDECREF(pNu); if (PyErr_Occurred()) { Py_XDECREF(pR); PyErr_Print(); PyGILState_Release(gstate); GYOTO_ERROR("Error occurred in ThinDisk::transmission()"); } double res = PyFloat_AsDouble(pR); Py_XDECREF(pR); PyGILState_Release(gstate); return res; } Gyoto-2.0.2/plugins/python/lib/mk_video.C000066400000000000000000000031641455254334400203020ustar00rootroot00000000000000/* Copyright 2019 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ #include "GyotoPython.h" #include "GyotoProperty.h" #include "GyotoError.h" #include #include #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #define NO_IMPORT_ARRAY #define PY_ARRAY_UNIQUE_SYMBOL GyotoPython_ARRAY_API #include #include extern "C" int mk_video(int argc, char ** argv) { GYOTO_DEBUG << " in mk_video()" << std::endl; wchar_t * wargv[argc]; size_t sz; for (int k=0; k # # 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 any warranty. # This Makefile contains targets that fail if run in parallel .NOTPARALLEL: # List whatever files you want to include in your source distribution here. # You can include whole directories but note that *everything* under that # directory will be included DISTFILES = PKG-INFO Makefile.in configure setup.py install-sh DESTDIR = VPATH = @srcdir@ SED = @SED@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_DISTNAME = ${PACKAGE_NAME}-${PACKAGE_VERSION} PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PYTHON = @PYTHON@ VIRTUALENV = @VIRTUALENV@ SPHINXBUILD = @SPHINXBUILD@ SHELL = @SHELL@ MKDIR_P = @MKDIR_P@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ prefix = @prefix@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ pythondir = @pythondir@ pyexecdir = @pyexecdir@ pkgdatadir = $(datadir)/@PACKAGE_NAME@ pkgincludedir = $(includedir)/@PACKAGE_NAME@ pkgpythondir = @pkgpythondir@ pkgpyexecdir = @pkgpyexecdir@ PYTHONPATH = $(pythondir)$(PATH_SEPARATOR)$(DESTDIR)$(pythondir) SWIG=@SWIG@ CFITSIO_CFLAGS = @CFITSIO_CFLAGS@ CFITSIO_LIBS = @CFITSIO_LIBS@ XERCES_CFLAGS = @XERCES_CFLAGS@ XERCES_LIBS = @XERCES_LIBS@ UDUNITS_CFLAGS = @UDUNITS_CFLAGS@ UDUNITS_CPPFLAGS = @UDUNITS_CPPFLAGS@ UDUNITS_LDFLAGS = @UDUNITS_LDFLAGS@ UDUNITS_LIBS = @UDUNITS_LIBS@ CXX=@CXX@ CC=$(CXX) PYTHON = @PYTHON@ PYTHON_ABI_FLAGS = @PYTHON_ABI_FLAGS@ PYTHON_CFLAGS = @PYTHON_CFLAGS@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_EXTENSION_SUFFIX = @PYTHON_EXTENSION_SUFFIX@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBS = @PYTHON_LIBS@ PYTHON_PREFIX = @PYTHON_PREFIX@ CPPFLAGS=-I../include -I$(top_srcdir)/include $(CFITSIO_CFLAGS) $(XERCES_CFLAGS) $(UDUNITS_CFLAGS) CXXFLAGS=@CXXFLAGS@ $(CFITSIO_CFLAGS) $(XERCES_CFLAGS) $(UDUNITS_CFLAGS) CFLAGS=$(CXXFLAGS) SWIG_CMD = $(SWIG) -I../include -I$(srcdir)/../include -c++ -python -outdir swig_output export LDFLAGS export CFLAGS export CPPFLAGS export CXXFLAGS export CC GYOTO_EXTENSIONS = gyoto/_core$(PYTHON_EXTENSION_SUFFIX) \ gyoto/_std$(PYTHON_EXTENSION_SUFFIX) GYOTO_PYFILES = gyoto/core.py gyoto/std.py GYOTO_SWIGFILES = $(srcdir)/gyoto.i $(srcdir)/gyoto_std.i gyoto_doc.i $(srcdir)/numpy.i $(srcdir)/gyoto_swig.h $(srcdir)/gyoto_std_swig.h @HAVE_LORENE_TRUE@GYOTO_EXTENSIONS += gyoto/_lorene$(PYTHON_EXTENSION_SUFFIX) @HAVE_LORENE_TRUE@GYOTO_PYFILES += gyoto/lorene.py @HAVE_LORENE_TRUE@GYOTO_SWIGFILES += $(srcdir)/gyoto_lorene.i all: $(GYOTO_PYFILES) $(GYOTO_EXTENSIONS) directories setup-check setup-check: cp -f build/lib.*/gyoto/*.so gyoto/ directories: mkdir -p dist mkdir -p Gyoto.egg-info ../doc/xml/index.xml: cd ../doc; $(MAKE) doxygen.stamp gyoto_doc.i.orig: ../doc/xml/index.xml $(PYTHON) $(srcdir)/doxy2swig.py --no-function-definition $< $@ || rm $@ gyoto_doc.i: gyoto_doc.i.orig $(SED) -e 's/Gyoto::Screen::Angles/Angles/' \ -e 's/Gyoto::Screen::Bucket/Bucket/' \ -e 's/Gyoto::Screen::Coord1dSet/Coord1dSet/' \ -e 's/Gyoto::Screen::Coord2dSet/Coord2dSet/' \ -e 's/Gyoto::Screen::Empty/Empty/' \ -e 's/Gyoto::Screen::Grid/Grid/' \ -e 's/Gyoto::Screen::Indices/Indices/' \ -e 's/Gyoto::Screen::Range/Range/' \ -e 's/Gyoto::Screen::RepeatAngle/RepeatAngle/' \ $< > $@ gyoto/_core$(PYTHON_EXTENSION_SUFFIX): core_wrap.cxx $(PYTHON) setup.py build gyoto/_std$(PYTHON_EXTENSION_SUFFIX): std_wrap.cxx $(PYTHON) setup.py build gyoto/_lorene$(PYTHON_EXTENSION_SUFFIX): lorene_wrap.cxx $(PYTHON) setup.py build gyoto/core.py: $(srcdir)/headers/core swig_output/core.py $(MKDIR_P) `dirname $@` cat $^ > $@ gyoto/std.py: $(srcdir)/headers/std swig_output/std.py $(MKDIR_P) `dirname $@` cat $^ > $@ gyoto/lorene.py: $(srcdir)/headers/lorene swig_output/lorene.py $(MKDIR_P) `dirname $@` cat $^ > $@ swig_output/core.py core_wrap.cxx: gyoto.i gyoto_doc.i $(top_srcdir)/include/*.h $(builddir)/../include/*.h $(MKDIR_P) swig_output $(SWIG_CMD) -o core_wrap.cxx $(srcdir)/gyoto.i swig_output/std.py std_wrap.cxx: gyoto_std.i gyoto.i gyoto_doc.i $(top_srcdir)/include/*.h $(builddir)/../include/*.h $(MKDIR_P) swig_output $(SWIG_CMD) -o std_wrap.cxx $(srcdir)/gyoto_std.i swig_output/lorene.py lorene_wrap.cxx: gyoto_lorene.i gyoto.i gyoto_doc.i $(top_srcdir)/include/*.h $(builddir)/../include/*.h $(MKDIR_P) swig_output $(SWIG_CMD) -o lorene_wrap.cxx $(srcdir)/gyoto_lorene.i .PHONY: all setup-check install uninstall distclean info install-html html install-pdf pdf install-dvi dvi install-ps ps clean dist check installdirs # Since installing to a virtualenv is all the rage these days, support it here. If the VIRTUALENV # variable is set to anything other than "no", set up a new virtualenv and install there, otherwise # install as usual from setup.py install: all installdirs ifneq ($(VIRTUALENV),no) $(VIRTUALENV) $(VIRTUALENV_FLAGS) $(DESTDIR)$(prefix) || $(VIRTUALENV) $(DESTDIR)$(prefix) $(DESTDIR)$(prefix)/bin/python setup.py install --prefix=$(DESTDIR)$(prefix) else $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) --record=gyoto_installed.txt endif $(INSTALL_DATA) $(GYOTO_SWIGFILES) $(DESTDIR)$(pkgincludedir) # setup.py doesn't (yet) support an uninstall command, so until it does, you # must manually remove everything that was installed here. The following example # should remove a basic package installed via setup.py, but please double- and # triple-check it so that you don't remove something you shouldn't! # Be sure to remove any extra files you install, such as binaries or documentation! uninstall: -cd $(DESTDIR)$(pkgincludedir) ; \ for file in $(GYOTO_SWIGFILES) numpy.i gyoto_swig.h ; do \ rm `basename $$file` ;\ done -rm -rvf $(DESTDIR)$(pkgpythondir) -cat gyoto_*installed.txt | xargs rm -rmdir $(DESTDIR)$(pkgincludedir) # Just use the usual setup.py clean command clean: $(PYTHON) setup.py clean -rm -Rf build dist swig_output $(GYOTO_PYFILES) $(GYOTO_EXTENSIONS) -rm *.pyc gyoto_doc.i gyoto_doc.i.orig -rm -f doxygen_sqlite3.db gyoto_*installed.txt -rm -f tests/*.pyc *_wrap.cxx gyoto/*.pyc gyoto/*.so -rm -Rf _gyoto*.so Gyoto*.egg-info _*.so -rm -Rf dist gyoto/__pycache__/ tests/__pycache__/ .eggs/ __pycache__/ # Clean up the output of configure distclean: clean -rm -v $(builddir)/setup*.py -rm -v $(builddir)/Makefile # You can either use the setup.py sdist command or you can roll your own here dist: # $(PYTHON) setup.py sdist mkdir $(PACKAGE_DISTNAME) cp -r $(DISTFILES) $(PACKAGE_DISTNAME) tar -czf $(PACKAGE_DISTNAME).tar.gz $(PACKAGE_DISTNAME) rm -rf $(PACKAGE_DISTNAME) # Use the setup.py test command check: LD_LIBRARY_PATH=../lib/.libs:$$LD_LIBRARY_PATH PYTHONPATH=.:$$PYTHONPATH $(PYTHON) setup.py test # setup.py might complain if a directory doesn't exist so just in case, make the directory # here installdirs: $(MKDIR_P) $(DESTDIR)$(pkgpythondir) $(MKDIR_P) $(DESTDIR)$(pkgincludedir) # The following show how to install documentation. In this example, # docs are built from a separate Makefile contained in the docs # directory which uses the SPHINXBUILD variable to store the location # of the sphinx-build (Python doc tool) binary to use. # $(DESTDIR)$(infodir)/foo.info: docs/build/texinfo/foo.info # $(POST_INSTALL) # $(INSTALL_DATA) @< $(DESTDIR)$@ # if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then # install-info --dir-file=$(DESTDIR)$(infodir)/dir \ # $(DESTDIR)$(infodir)/foo.info; # else true; fi # # info: docs/build/texinfo/foo.info # # docs/build/texinfo/foo.info: $(wildcard docs/source/*) # ifneq ($(SPHINXBUILD),no) # $(MAKE) -C docs info SPHINXBUILD=$(SPHINXBUILD) # endif # # # install-html: html installdirs # $(INSTALL_DATA) docs/build/html/* $(DESTDIR)$(htmldir) # # html: docs/build/html/index.html # # docs/build/html/index.html: $(wildcard $(srcdir)/docs/source/*) # ifneq ($(SPHINXBUILD),no) # $(MAKE) -C docs html SPHINXBUILD=$(SPHINXBUILD) # endif # # # install-pdf: pdf installdirs # $(INSTALL_DATA) docs/build/latex/foo.pdf $(DESTDIR)$(pdfdir) # # pdf: docs/build/latex/Foo.pdf # # docs/build/latex/foo.pdf: $(wildcard $(srcdir)/docs/source/*) # ifneq ($(SPHINXBUILD),no) # $(MAKE) -C docs latexpdf SPHINXBUILD=$(SPHINXBUILD) # endif # # # install-dvi: # # dvi: # # install-ps: # # ps: Gyoto-2.0.2/python/PKG-INFO000066400000000000000000000002651455254334400152460ustar00rootroot00000000000000Metadata-Version: 1.2 Name: gyoto Version: 0.1 Summary: The General relativitY Orbit Tracer of paris Observatory Home-page: http://gyoto.obspm.fr Author-email: gyoto@sympa.obspm.fr Gyoto-2.0.2/python/README.md000066400000000000000000000030561455254334400154310ustar00rootroot00000000000000# Gyoto extension module for Python ## Purpose Files in this directory (python/ in the Gyoto source tree) allow building a Python extension module to call Gyoto routines from Python. This allows implementing complex algorithms for instance for computing movies of for fitting data. This is different from, but complementary with, the files in the plugins/python/ directory, which allow extending Gyoto with new Metric, Astrobj and Spectrum classes implemented in Python. ## Building & installing This directory is built and installed with the rest of Gyoto. See INSTALL.Gyoto.md in the top-most directory. Make sure the right Python interpreter is found at the "configure" step. If installing to a custom prefix (e.g. your home directory), set the PYTHONPATH environment variable to where the Gyoto python module is installed at the "make install" step. ## Usage Once properly installed, import gyoto or its sub-modules: gyoto.core, gyoto.std, gyoto.lorene, gyoto.utils, gyoto.metric, gyoto.astrobj, gyoto.spectrum (but not from the python/ source tree, the build system is currently such that this does not work). The examples.py script contains plenty of examples. Since the modules expose most of the C++ API, the user and reference manuals apply, see the doc/ directory in the Gyoto source tree and https://gyoto.obspm.fr/ https://gyoto.obspm.fr/GyotoManual.pdf https://gyoto.obspm.fr/namespaces.html ## Known issues It is not possible to import gyoto in Python from the python/ source directory. Change to another directory before trying to run the example scripts. Gyoto-2.0.2/python/doxy2swig.py000066400000000000000000000421301455254334400164570ustar00rootroot00000000000000#!/usr/bin/env python # -*- coding: utf-8 -*- """Doxygen XML to SWIG docstring converter. Usage: doxy2swig.py [options] input.xml output.i Converts Doxygen generated XML files into a file containing docstrings that can be used by SWIG-1.3.x. Note that you need to get SWIG version > 1.3.23 or use Robin Dunn's docstring patch to be able to use the resulting output. input.xml is your doxygen generated XML file and output.i is where the output will be written (the file will be clobbered). """ ###################################################################### # # This code is implemented using Mark Pilgrim's code as a guideline: # http://www.faqs.org/docs/diveintopython/kgp_divein.html # # Author: Prabhu Ramachandran # License: BSD style # # Thanks: # Johan Hake: the include_function_definition feature # Bill Spotz: bug reports and testing. # Sebastian Henschel: Misc. enhancements. # # Copyright 2008-2015 Prabhu Ramachandran # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # 3. Neither the name of the copyright holder nor the names of its # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Gyoto history: # 2015-05-27: # * add the third clause of the BSD license per request of the # original author. # 2015-05-25: # * add explicit copyright notice and BSD (2 clause) license. The # original author only specified "BSD style". # 2015-01-05: # * download this file from # http://www.aero.iitb.ac.in/~prabhu/software/code/python/doxy2swig.py # * change my_open_write to open output with utf-8 encoding; # * small modifications to make the script run under both # python2.7 and python3.4. # ###################################################################### from xml.dom import minidom import re import textwrap import sys import types import os.path import optparse import codecs def my_open_read(source): if hasattr(source, "read"): return source else: return open(source) def my_open_write(dest): if hasattr(dest, "write"): return dest else: return codecs.open(dest, 'w', 'utf-8') class Doxy2SWIG: """Converts Doxygen generated XML files into a file containing docstrings that can be used by SWIG-1.3.x that have support for feature("docstring"). Once the data is parsed it is stored in self.pieces. """ def __init__(self, src, include_function_definition=True, quiet=False): """Initialize the instance given a source object. `src` can be a file or filename. If you do not want to include function definitions from doxygen then set `include_function_definition` to `False`. This is handy since this allows you to use the swig generated function definition using %feature("autodoc", [0,1]). """ f = my_open_read(src) self.my_dir = os.path.dirname(f.name) self.xmldoc = minidom.parse(f).documentElement f.close() self.pieces = [] self.pieces.append('\n// File: %s\n'%\ os.path.basename(f.name)) self.space_re = re.compile(r'\s+') self.lead_spc = re.compile(r'^(%feature\S+\s+\S+\s*?)"\s+(\S)') self.multi = 0 self.ignores = ['inheritancegraph', 'param', 'listofallmembers', 'innerclass', 'name', 'declname', 'incdepgraph', 'invincdepgraph', 'programlisting', 'type', 'references', 'referencedby', 'location', 'collaborationgraph', 'reimplements', 'reimplementedby', 'derivedcompoundref', 'basecompoundref'] #self.generics = [] self.include_function_definition = include_function_definition if not include_function_definition: self.ignores.append('argsstring') self.quiet = quiet def generate(self): """Parses the file set in the initialization. The resulting data is stored in `self.pieces`. """ self.parse(self.xmldoc) def parse(self, node): """Parse a given node. This function in turn calls the `parse_` functions which handle the respective nodes. """ pm = getattr(self, "parse_%s"%node.__class__.__name__) pm(node) def parse_Document(self, node): self.parse(node.documentElement) def parse_Text(self, node): txt = node.data txt = txt.replace('\\', r'\\\\') txt = txt.replace('"', r'\"') # ignore pure whitespace m = self.space_re.match(txt) if m and len(m.group()) == len(txt): pass else: self.add_text(textwrap.fill(txt, break_long_words=False)) def parse_Element(self, node): """Parse an `ELEMENT_NODE`. This calls specific `do_` handers for different elements. If no handler is available the `generic_parse` method is called. All tagNames specified in `self.ignores` are simply ignored. """ name = node.tagName ignores = self.ignores if name in ignores: return attr = "do_%s" % name if hasattr(self, attr): handlerMethod = getattr(self, attr) handlerMethod(node) else: self.generic_parse(node) #if name not in self.generics: self.generics.append(name) def parse_Comment(self, node): """Parse a `COMMENT_NODE`. This does nothing for now.""" return def add_text(self, value): """Adds text corresponding to `value` into `self.pieces`.""" if type(value) in (list, tuple): self.pieces.extend(value) else: self.pieces.append(value) def get_specific_nodes(self, node, names): """Given a node and a sequence of strings in `names`, return a dictionary containing the names as keys and child `ELEMENT_NODEs`, that have a `tagName` equal to the name. """ nodes = [(x.tagName, x) for x in node.childNodes \ if x.nodeType == x.ELEMENT_NODE and \ x.tagName in names] return dict(nodes) def generic_parse(self, node, pad=0): """A Generic parser for arbitrary tags in a node. Parameters: - node: A node in the DOM. - pad: `int` (default: 0) If 0 the node data is not padded with newlines. If 1 it appends a newline after parsing the childNodes. If 2 it pads before and after the nodes are processed. Defaults to 0. """ npiece = 0 if pad: npiece = len(self.pieces) if pad == 2: self.add_text('\n') for n in node.childNodes: self.parse(n) if pad: if len(self.pieces) > npiece: self.add_text('\n') def space_parse(self, node): self.add_text(' ') self.generic_parse(node) do_ref = space_parse do_emphasis = space_parse do_bold = space_parse do_computeroutput = space_parse do_formula = space_parse def do_compoundname(self, node): self.add_text('\n\n') data = node.firstChild.data self.add_text('%%feature("docstring") %s "\n'%data) def do_compounddef(self, node): kind = node.attributes['kind'].value if kind in ('class', 'struct'): prot = node.attributes['prot'].value if prot != 'public': return names = ('compoundname', 'briefdescription', 'detaileddescription', 'includes') first = self.get_specific_nodes(node, names) for n in names: if n in first: self.parse(first[n]) self.add_text(['";','\n']) for n in node.childNodes: if n not in first.values(): self.parse(n) elif kind in ('file', 'namespace'): nodes = node.getElementsByTagName('sectiondef') for n in nodes: self.parse(n) def do_includes(self, node): self.add_text('C++ includes: ') self.generic_parse(node, pad=1) def do_parameterlist(self, node): text='unknown' for key, val in node.attributes.items(): if key == 'kind': if val == 'param': text = 'Parameters' elif val == 'exception': text = 'Exceptions' else: text = val break self.add_text(['\n', '\n', text, ':', '\n']) self.generic_parse(node, pad=1) def do_para(self, node): self.add_text('\n') self.generic_parse(node, pad=1) def do_parametername(self, node): self.add_text('\n') try: data=node.firstChild.data except AttributeError: # perhaps a tag in it data=node.firstChild.firstChild.data if data.find('Exception') != -1: self.add_text(data) else: self.add_text("%s: "%data) def do_parameterdefinition(self, node): self.generic_parse(node, pad=1) def do_detaileddescription(self, node): self.generic_parse(node, pad=1) def do_briefdescription(self, node): self.generic_parse(node, pad=1) def do_memberdef(self, node): prot = node.attributes['prot'].value id = node.attributes['id'].value kind = node.attributes['kind'].value tmp = node.parentNode.parentNode.parentNode compdef = tmp.getElementsByTagName('compounddef')[0] cdef_kind = compdef.attributes['kind'].value if prot == 'public': first = self.get_specific_nodes(node, ('definition', 'name')) name = first['name'].firstChild.data if name[:8] == 'operator': # Don't handle operators yet. return if not 'definition' in first or \ kind in ['variable', 'typedef']: return if self.include_function_definition: defn = first['definition'].firstChild.data else: defn = "" self.add_text('\n') self.add_text('%feature("docstring") ') anc = node.parentNode.parentNode if cdef_kind in ('file', 'namespace'): ns_node = anc.getElementsByTagName('innernamespace') if not ns_node and cdef_kind == 'namespace': ns_node = anc.getElementsByTagName('compoundname') if ns_node: ns = ns_node[0].firstChild.data self.add_text(' %s::%s "\n%s'%(ns, name, defn)) else: self.add_text(' %s "\n%s'%(name, defn)) elif cdef_kind in ('class', 'struct'): # Get the full function name. anc_node = anc.getElementsByTagName('compoundname') cname = anc_node[0].firstChild.data self.add_text(' %s::%s "\n%s'%(cname, name, defn)) for n in node.childNodes: if n not in first.values(): self.parse(n) self.add_text(['";', '\n']) def do_definition(self, node): data = node.firstChild.data self.add_text('%s "\n%s'%(data, data)) def do_sectiondef(self, node): kind = node.attributes['kind'].value if kind in ('public-func', 'func', 'user-defined', ''): self.generic_parse(node) def do_header(self, node): """For a user defined section def a header field is present which should not be printed as such, so we comment it in the output.""" data = node.firstChild.data self.add_text('\n/*\n %s \n*/\n'%data) # If our immediate sibling is a 'description' node then we # should comment that out also and remove it from the parent # node's children. parent = node.parentNode idx = parent.childNodes.index(node) if len(parent.childNodes) >= idx + 2: nd = parent.childNodes[idx+2] if nd.nodeName == 'description': nd = parent.removeChild(nd) self.add_text('\n/*') self.generic_parse(nd) self.add_text('\n*/\n') def do_simplesect(self, node): kind = node.attributes['kind'].value if kind in ('date', 'rcs', 'version'): pass elif kind == 'warning': self.add_text(['\n', 'WARNING: ']) self.generic_parse(node) elif kind == 'see': self.add_text('\n') self.add_text('See: ') self.generic_parse(node) else: self.generic_parse(node) def do_argsstring(self, node): self.generic_parse(node, pad=1) def do_member(self, node): kind = node.attributes['kind'].value refid = node.attributes['refid'].value if kind == 'function' and refid[:9] == 'namespace': self.generic_parse(node) def do_doxygenindex(self, node): self.multi = 1 comps = node.getElementsByTagName('compound') for c in comps: refid = c.attributes['refid'].value fname = refid + '.xml' if not os.path.exists(fname): fname = os.path.join(self.my_dir, fname) if not self.quiet: print("parsing file: %s"%fname) p = Doxy2SWIG(fname, self.include_function_definition, self.quiet) p.generate() self.pieces.extend(self.clean_pieces(p.pieces)) def write(self, fname): o = my_open_write(fname) if self.multi: o.write("".join(self.pieces)) else: o.write("".join(self.clean_pieces(self.pieces))) o.close() def clean_pieces(self, pieces): """Cleans the list of strings given as `pieces`. It replaces multiple newlines by a maximum of 2 and returns a new list. It also wraps the paragraphs nicely. """ ret = [] count = 0 for i in pieces: if i == '\n': count = count + 1 else: if i == '";': if count: ret.append('\n') elif count > 2: ret.append('\n\n') elif count: ret.append('\n'*count) count = 0 ret.append(i) _data = "".join(ret) ret = [] for i in _data.split('\n\n'): if i == 'Parameters:' or i == 'Exceptions:': ret.extend([i, '\n-----------', '\n\n']) elif i.find('// File:') > -1: # leave comments alone. ret.extend([i, '\n']) else: _tmp = textwrap.fill(i.strip(), break_long_words=False) _tmp = self.lead_spc.sub(r'\1"\2', _tmp) ret.extend([_tmp, '\n\n']) return ret def convert(input, output, include_function_definition=True, quiet=False): p = Doxy2SWIG(input, include_function_definition, quiet) p.generate() p.write(output) def main(): usage = __doc__ parser = optparse.OptionParser(usage) parser.add_option("-n", '--no-function-definition', action='store_true', default=False, dest='func_def', help='do not include doxygen function definitions') parser.add_option("-q", '--quiet', action='store_true', default=False, dest='quiet', help='be quiet and minimize output') options, args = parser.parse_args() if len(args) != 2: parser.error("error: no input and output specified") convert(args[0], args[1], not options.func_def, options.quiet) if __name__ == '__main__': main() Gyoto-2.0.2/python/example-mpi.py000066400000000000000000000117441455254334400167450ustar00rootroot00000000000000#/bin/env python # -*- coding: utf-8 -*- # Example file for gyoto with MPI # # Copyright 2015-2018 Thibaut Paumard # # This file is part of Gyoto. # # Gyoto 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. # # Gyoto 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 Gyoto. If not, see . ### Explanation: # # The script examplifies how to use MPI parallelization with Gyoto # commanded from Python. It performs the ray-tracing of one of the # Gyoto examples in doc/examples/ using MPI parallelization. It does # nothing with the result, uncomment the last few lines if you want to # display them. # # The parallel computing model of Gyoto is MIMD (Multiple Instruction, # Multiple Data) which allows not caring too much about the details in # the high level program. We have a single 'manager' process that # takes care of handling input/output and distributes the work load # (ray-tracing of individual geodesics) to 'worker' processes. The # workers are processes that run the static method # Gyoto::Scenery::mpiWorker(). This can be done directly from Python # or by involing instances of gyoto-mpi-worker.VERSION where VERSION # is the ABI version of Gyoto. # # There are three basic scenarios supported in Gyoto to start the # manager and the workers: # # 1- mpirun starts only the rank 0, manager process, which is # responsible for starting the workers processes using # MPI_Comm_spawn(); # # 2- mpirun starts one instance of the manager process and NWORKER # instances of the worker process; # # 3- mpirun starts NP instances of a process; rank 0 becomes the # manager while rank > 0 invoke Scenery.mpiWorker(). # ### Synopsis: # # This script automatically detects how it was started and supports # the three scenarios above: # # 1- mpirun -np 1 python example-mpi.py # 2- mpirun -np 1 python example-mpi.py : -np NWORKERS gyoto-mpi-worker.VERSION # 3- mpirun -np python example-mpi.py # # where NWORKERS is the desired number of workers to use (e.g. 4) and # VERSION is the gyoto ABI version (e.g. 5 or 5-unreleased). # ### Environment: # # The system must be able to find libgyoto, the plugins, and (in # scenario 1) the command-line utility gyoto-mpi-workers.VERSION. # Therefore you may need to set PATH and LD_LIBRARY_PATH appropriately # or the like. # ### # 1- Let mpi4py initialize the MPI environment: import mpi4py.MPI # 2- Prepare Gyoto::Scenery to ray-trace import numpy import matplotlib as ml import matplotlib.pyplot as plt import gyoto.core import gyoto.std sc=gyoto.core.Factory("../doc/examples/example-moving-star.xml").scenery() sc.nThreads(1) sc.astrobj().opticallyThin(False) # 3- Autodetect scenario # Spawn processes and clone scenery into them: world = mpi4py.MPI.COMM_WORLD if (world.size == 1): # This is scenario 1 # We spawn 4 instances of gyoto-mpi-worker.VERSION sc.mpiSpawn(4) else: if (world.rank == 0): # This is scenario 2 or 3, this process is the manager print("Rank ", world.rank, " becoming manager") sc.mpiSpawn(-1) else: # This is scenario 3, this process is a worker print("Rank ", world.rank, " becoming worker") sc.mpiWorker() print("Rank ", world.rank, " terminating") exit() # 4- Prepare storage for ray-traced quantities # Prepare array for holding results res=sc.screen().resolution() intensity=numpy.zeros((res, res), dtype=float) time=numpy.zeros((res, res), dtype=float) distance=numpy.zeros((res, res), dtype=float) # Store array pointers in AstrobjProperties aop=gyoto.core.AstrobjProperties() aop.intensity=gyoto.core.array_double.fromnumpy2(intensity) aop.time=gyoto.core.array_double.fromnumpy2(time) aop.distance=gyoto.core.array_double.fromnumpy2(distance) # 5- Prepare Coord2dSet to select what Photons to launch ii=gyoto.core.Range(1, res, 1) jj=gyoto.core.Range(1, res, 1) grid=gyoto.core.Grid(ii, jj) sc.mpiClone() # 6- Ray-trace sc.rayTrace(grid, aop) # 7- Terminate MPI workers # # If the workers were spawned, this is done automatically when the # Scenery object sc is deleted (but it does not harm to do it by hand). # # If the processes were created by mpirun, this needs to be done # exactly once. Don't try to use the processes after calling # mpiTerminate(). # # Note that the same workers, if not spawned, can be reused in # anorther Scenery. They should really be terminated only after the # last MPI ray-tracing has been perfomed. sc.mpiTerminate() # 8- Do something with the data # plt.imshow(intensity) # plt.show() # plt.imshow(time) # plt.show() # plt.imshow(distance) # plt.show() print("All done, exiting") Gyoto-2.0.2/python/example-patterndisk.py000077500000000000000000000056571455254334400205210ustar00rootroot00000000000000#!/usr/bin/env python3 # # In this example script, we create a Gyoto Scnenery with a # PatternDisk, save it, read it and check that the re-read scenery is # identical to the saved one. # This is the same example as yorick/check-patterndisk.i import gyoto.core, gyoto.std import numpy import os import matplotlib.pyplot as plt ### Create a metric metric = gyoto.std.KerrBL() metric.mass(4e6, "sunmass"); ### Create PatternDisk # Create opacity and intensity grids as numpy arrays. # Get pointers in a format that Gyoto undestands. # Warning: here we assume that size_t is the same as uint64. gridshape=numpy.asarray( (1, 3, 11) , numpy.uint64) pgridshape=gyoto.core.array_size_t.fromnumpy1(gridshape) opacity=numpy.zeros(gridshape) popacity=gyoto.core.array_double.fromnumpy3(opacity) opacity[:, 0::2, 0::2]=100. opacity[:, 1::2, 1::2]=100. intensity=opacity*0.+1.; pintensity=gyoto.core.array_double.fromnumpy3(intensity) # Create PatternDisk, attach grids, set some parameters pd=gyoto.std.PatternDisk() pd.copyIntensity(pintensity, pgridshape) pd.copyOpacity (popacity, pgridshape) pd.innerRadius(3) pd.outerRadius(28) pd.repeatPhi(8) pd.metric(metric) pd.rMax(50) ### Create screen screen=gyoto.core.Screen() screen.metric(metric) screen.resolution(64) screen.time(1000., "geometrical_time") screen.distance(100., "geometrical") screen.fieldOfView(30./100.) screen.inclination(110., "degree") screen.PALN(180., "degree") ### Create Scenery sc=gyoto.core.Scenery() sc.metric(metric) sc.screen(screen) sc.astrobj(pd) ### Save Scenery pd.fitsWrite("!check-patterndisk.fits.gz") gyoto.core.Factory(sc).write("check-patterndisk.xml") ### Read Scenery sc2=gyoto.core.Factory("check-patterndisk.xml").scenery() ### Check # Compare Sceneries assert sc2.screen().dMax() == sc.screen().dMax(), "dmax was not conserved when writing and reading XML" assert sc2.tMin() == sc.tMin(), "tmin was not conserved when writing and reading XML" # Delete temporary files os.unlink("check-patterndisk.xml") os.unlink("check-patterndisk.fits.gz") # Compare PatternDisks # compare shape pd2 = gyoto.std.PatternDisk(sc2.astrobj()) pgridshape2=gyoto.core.array_size_t(3) pd2.getIntensityNaxes(pgridshape2) for k in range (3): assert pgridshape2[k]==pgridshape[k], "shape of grid changed" bufsize=gridshape.prod() # compare intensity buf=gyoto.core.array_double.frompointer(pd2.getIntensity()) for k in range(bufsize): assert buf[k] == pintensity[k], "Intensity changed" # compare opacity buf=gyoto.core.array_double.frompointer(pd2.opacity()) for k in range(bufsize): assert buf[k] == popacity[k], "Opacity changed" ### Ray-trace ii=gyoto.core.Range(1, screen.resolution(), 1) jj=gyoto.core.Range(1, screen.resolution(), 1) grid=gyoto.core.Grid(ii, jj) aop=gyoto.core.AstrobjProperties() frame=numpy.zeros((screen.resolution(), screen.resolution())) pframe=gyoto.core.array_double.fromnumpy2(frame) aop.intensity=pframe sc.rayTrace(grid, aop) plt.imshow(frame, origin='lower') plt.show() Gyoto-2.0.2/python/example.py000066400000000000000000000175401455254334400161620ustar00rootroot00000000000000#/bin/env python # -*- coding: utf-8 -*- # Example file for gyoto # # Copyright 2014-2018 Thibaut Paumard # # This file is part of Gyoto. # # Gyoto 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. # # Gyoto 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 Gyoto. If not, see . import numpy import matplotlib as ml import matplotlib.pyplot as plt import gyoto.core import gyoto.std # Simple stuff scr=gyoto.core.Screen() gg=gyoto.std.KerrBL() scr.metric(gg) pos=scr.getObserverPos() # Load Scenery a=gyoto.core.Factory("../doc/examples/example-moving-star.xml") sc=a.scenery() sc.nThreads(8) sc.astrobj().opticallyThin(False) scr=sc.screen() dest=numpy.zeros(8, float) scr.getRayTriad(1,1,dest) dest=numpy.ndarray(3, float) scr.coordToSky((0., 5., numpy.pi/2, 0), dest) # Trace and plot NULL geodesic: ph=gyoto.core.Photon() ph.setInitialCondition(sc.metric(), sc.astrobj(), sc.screen(), 0., 0.) ph.hit() n=ph.get_nelements() # We try to map Gyoto arrays to NumPy arrays wherever possible. # Create NumPy arrays t=numpy.ndarray(n) r=numpy.ndarray(n) theta=numpy.ndarray(n) phi=numpy.ndarray(n) # Call Gyoto method that takes these arrays as argument: ph.get_t(t) ph.getCoord(t, r, theta, phi) plt.plot(t, r) plt.show() # Trace and plot timelike geodesic # We need to cast the object to a gyoto.std.Star: wl=gyoto.std.Star(sc.astrobj()) wl.xFill(1000) n=wl.get_nelements() x=numpy.ndarray(n) y=numpy.ndarray(n) z=numpy.ndarray(n) wl.get_xyz(x, y, z) plt.plot(x, y) plt.show() # Ray-trace scenery # For that, we can use the short-hand: sc.requestedQuantitiesString('Intensity EmissionTime MinDistance') results=sc.rayTrace() plt.imshow(results['Intensity']) plt.show() plt.imshow(results['EmissionTime']) plt.show() plt.imshow(results['MinDistance']) plt.show() # Or we can do it manually to understand how the Gyoto API works: res=sc.screen().resolution() intensity=numpy.zeros((res, res), dtype=float) time=numpy.zeros((res, res), dtype=float) distance=numpy.zeros((res, res), dtype=float) aop=gyoto.core.AstrobjProperties() # Here we will use the low-level AstrobjProperties facilities. This is # one of a few Gyoto functionalities where NumPy arrays are not # directly supported. We use lower-level C-like arrays through the # gyoto.core.array_double and gyoto.core.array_unsigned_long classes. Beware # that this type does not provide any safeguards, it is quite easy to # get it to SEGFAULT. As we develop Gyoto, we try to remove the need # for the gyoto.core.array_* classes in favor of NumPy arrays. Code that # uses this... ``feature'' therefore may break in future releases. # # To (indirectly) use NumPy arrays with a functionality that requires # gyoto.core.array_* arguments, create the arrays using numpy (see above: # `intensity', `time' and `distance' arrays) , then cast them using # the fromnumpyN static methods, where the digit N indicates the # dimensionality of the NumPy array. The underlying storage belongs to # the NumPy variable and will be deleted with it: don't use the # array_double() variable (for anyting else that destroying it) past # the destruction of the corresponding NumPy variable. aop.intensity=gyoto.core.array_double.fromnumpy2(intensity) aop.time=gyoto.core.array_double.fromnumpy2(time) aop.distance=gyoto.core.array_double.fromnumpy2(distance) ii=gyoto.core.Range(1, res, 1) jj=gyoto.core.Range(1, res, 1) grid=gyoto.core.Grid(ii, jj, "\rj = ") sc.rayTrace(grid, aop) plt.imshow(intensity) plt.show() plt.imshow(time) plt.show() plt.imshow(distance) plt.show() # Another Scenery, with spectrum sc=gyoto.core.Factory("../doc/examples/example-polish-doughnut.xml").scenery() sc.screen().resolution(32) res=sc.screen().resolution() ns=sc.screen().spectrometer().nSamples() spectrum=numpy.zeros((ns, res, res), dtype=float) ii=gyoto.core.Range(1, res, 1) jj=gyoto.core.Range(1, res, 1) grid=gyoto.core.Grid(ii, jj, "\rj = ") aop=gyoto.core.AstrobjProperties() aop.spectrum=gyoto.core.array_double.fromnumpy3(spectrum) aop.offset=res*res sc.rayTrace(grid, aop) plt.imshow(spectrum[1,:,:]) plt.show() # Another Scenery, with impact coords, created from within Python met=gyoto.core.Metric("KerrBL") met.mass(4e6, "sunmass") ao=gyoto.core.Astrobj("PageThorneDisk") ao.metric(met) ao.opticallyThin(False) ao.rMax(100) screen=gyoto.core.Screen() screen.distance(8, "kpc") screen.time(8, "kpc") screen.resolution(64) screen.inclination(numpy.pi/4) screen.PALN(numpy.pi) screen.time(8, "kpc") screen.fieldOfView(100, "µas") sc=gyoto.core.Scenery() sc.metric(met) sc.astrobj(ao) sc.screen(screen) sc.delta(1, "kpc") sc.adaptive(True) sc.nThreads(8) res=sc.screen().resolution() ii=gyoto.core.Range(1, res, 1) jj=gyoto.core.Range(1, res, 1) grid=gyoto.core.Grid(ii, jj, "\rj = ") ipct=numpy.zeros((res, res, 16), dtype=float) aop=gyoto.core.AstrobjProperties() aop.impactcoords=gyoto.core.array_double.fromnumpy3(ipct) aop.offset=res*res sc.rayTrace(grid, aop) plt.imshow(ipct[:,:,0], interpolation="nearest", vmin=-100, vmax=0) plt.show() # Trace one line of the above using alpha and delta N=10 buf=numpy.linspace(screen.fieldOfView()*-0.5, screen.fieldOfView()*0.5, N) a=gyoto.core.Angles(buf) d=gyoto.core.RepeatAngle(screen.fieldOfView()*-0.5, N) bucket=gyoto.core.Bucket(a, d) ipct=numpy.zeros((N, 16), dtype=float) aop=gyoto.core.AstrobjProperties() aop.impactcoords=gyoto.core.array_double.fromnumpy2(ipct) aop.offset=N sc.rayTrace(bucket, aop) plt.plot(buf, ipct[:,0]) plt.show() # Trace the diagonal of the above using i and j. The Range and Indices # definitions below are equivalent. Range is more efficient for a # range, Indices can hold arbitrary indices. ind=numpy.arange(1, res+1, dtype=numpy.uintp) # on 64bit arch... ii=gyoto.core.Indices(ind) # Or: # ind=gyoto.core.array_size_t(res) # for i in range(0, res): # ind[i]=i+1 # ii=gyoto.core.Indices(ind, res) jj=gyoto.core.Range(1, res, 1) bucket=gyoto.core.Bucket(ii, jj) ipct=numpy.zeros((res, 16), dtype=float) aop=gyoto.core.AstrobjProperties() aop.impactcoords=gyoto.core.array_double.fromnumpy2(ipct) aop.offset=res sc.rayTrace(bucket, aop) t=numpy.clip(ipct[:,0], a_min=-200, a_max=0) plt.plot(t) plt.show() # Any derived class can be instantiated from its name, as soon as the # corresponding plug-in has been loaded into Gyoto. The standard # plug-in is normally loaded automatically (and is always loaded when # gyoto.std is imported), but this can also be forced with # gyoto.core.requirePlugin(): gyoto.core.requirePlugin('stdplug') tt=gyoto.core.Astrobj('Torus') kerr=gyoto.core.Metric('KerrBL') # Most properties that can be set in an XML file can also be accessed # from Python using the Property/Value mechanism: # Low-level access: p=tt.property("SmallRadius") p.type==gyoto.core.Property.double_t tt.set(p, gyoto.core.Value(0.2)) tt.get(p) == 0.2 # Higher-level: kerr.set("Spin", 0.95) kerr.get("Spin") == 0.95 # However, we also have Python extensions around the standard Gyoto # plug-ins. import gyoto.std # And if the lorene plug-in has been compiled: # import gyoto.lorene # It then becomes possible to access the methods specific to derived # classes. They can be instantiated directly from the gyoto_* extension: tr2=gyoto.std.Torus() # and we can cast a generic pointer (from the gyoto extension) to a # derived class: tr=gyoto.std.Torus(tt) tt.get("SmallRadius") == tr.smallRadius() # Another example: using a complex (i.e. compound) Astrobj: cplx=gyoto.std.ComplexAstrobj() cplx.append(tr) cplx.append(sc.astrobj()) sc.astrobj(cplx) print("All done, exiting") Gyoto-2.0.2/python/gyoto.i000066400000000000000000001035211455254334400154630ustar00rootroot00000000000000/* Copyright 2014-2022 Thibaut Paumard This file is part of Gyoto. Gyoto 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. Gyoto 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 Gyoto. If not, see . */ /* This is a Swig interface file. It is currently meant to provide Python bindings only, but it should not be too difficult to provide bindings for java, Tcl or whatever other language Swig supports. */ // ******** SOME INITIALIZATION ********* // // Define the module name, with a docstring %module(docstring="The General relativitY Orbit Tracer of paris Observatory", package="gyoto") core // Let Swig generate some documentation for the overloaded methods %feature("autodoc", "1"); // gyoto_doc.i is generated from the doxygen comments using doxy2swig.py %import gyoto_doc.i // Make it possible to detect that a .h file is being processed by // Swig rather than CPP. There should be a Swig feature for that, I // didn't find it. %define GYOTO_SWIGIMPORTED %enddef // Make sure we don't activate the deprecated method names (see // GyotoDefs.h): it is better to fail on them to update them now. %define GYOTO_NO_DEPRECATED %enddef // ********** MACRO DEFINITIONS *********** // // Exposing SmartPointers does not work well: it breaks automatic // inheritance and docstring generation. We therefore provide Swig // typemaps to convert SmartPointers to normal pointers // automatically. We also use the ref/unref features to let Swig // handle the reference counting for us mostly automatically (which is // what we wouldotherwise loose by not using SmartPointers). // // Since SmartPointers are templates, we use macros here to provide // typemaps for various SmartPointer specializations. // Typemaps for Gyoto::SmartPointer %define GyotoSmPtrTypeMapClass(klass) GyotoSmPtrTypeMap(Gyoto::klass, SWIGTYPE_p_Gyoto__ ## klass) %enddef // Typemaps for Gyoto::SmartPointer %define GyotoSmPtrTypeMapClassGeneric(nspace) GyotoSmPtrTypeMap(Gyoto::nspace::Generic, SWIGTYPE_p_Gyoto__ ## nspace ## __Generic) %enddef // Typemaps for Gyoto::SmartPointer %define GyotoSmPtrTypeMapClassDerived(nspace, klass) GyotoSmPtrTypeMap(Gyoto::nspace::klass, SWIGTYPE_p_Gyoto__ ## nspace ## __ ## klass) %enddef // Basic macro used in the above: gtype is the Gyoto name of a type, // e.g. Gyoto::Metric::KerrBL, while stype is the Swig name for same // type, e.g. SWIGTYPE_p_Gyoto__Metric__KerrBL %define GyotoSmPtrTypeMap(gtype, stype) %typemap(in) Gyoto::SmartPointer (gtype *) { int res=0; void *argp=0; res=SWIG_ConvertPtr($input, &argp, stype, 0); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "argument of type '" #gtype "*'"); } gtype * kp=reinterpret_cast< gtype * >(argp); $1 = Gyoto::SmartPointer(kp); } %typemap(out) Gyoto::SmartPointer (gtype *) { gtype* normal_pointer=(gtype *) (Gyoto::SmartPointer(result)); if (normal_pointer) normal_pointer->incRefCount(); $result = SWIG_NewPointerObj( normal_pointer, stype, SWIG_POINTER_OWN | 0 ); } %typemap(typecheck,precedence=SWIG_TYPECHECK_VOIDPTR) Gyoto::SmartPointer, gtype * { void *vptr = 0; int res = SWIG_ConvertPtr($input, &vptr, stype, 0); $1 = SWIG_CheckState(res); } %typemap(typecheck) Gyoto::SmartPointer< gtype > = Gyoto::SmartPointer; %typemap(typecheck) gtype * = Gyoto::SmartPointer; %typemap(typecheck) gtype const * = Gyoto::SmartPointer; %enddef // Include header for a class deriving from SmartPointee, providing // the ref and unref features %define GyotoSmPtrClass(klass) %feature("ref") Gyoto:: klass "$this->incRefCount();//ref"; %feature("unref") Gyoto:: klass "$this->decRefCount(); if (!$this->getRefCount()) delete $this;//unref"; // clone() method returns a new object with refCount 0 %newobject Gyoto :: klass :: clone; %extend Gyoto::klass { std::string __str__() { return Gyoto::Factory($self).format(); } }; %include Gyoto ## klass ## .h %enddef // Include header for a base class (e.g. GyotoMetric.h), provide // constructor from kind string (e.g. gyoto.Metric('KerrBL')), provide // ref/unref features %define GyotoSmPtrClassGeneric(klass) %rename(klass) klass ## Ptr; %rename(klass ## Register) Gyoto::klass::Register_; %inline { Gyoto::Register::Entry * get ## klass ## Register() { return Gyoto::klass::Register_; } } %rename(register ## klass) Gyoto::klass::Register; %rename(init ## klass ## Register) Gyoto::klass::initRegister; %rename(get ## klass ## Subcontractor) Gyoto::klass::getSubcontractor; %rename(klass) Gyoto::klass::Generic; %feature("ref") Gyoto:: klass ::Generic"$this->incRefCount();//ref Generic"; %feature("unref") Gyoto:: klass ::Generic"$this->decRefCount(); if (!$this->getRefCount()) delete $this;//unref Generic"; %newobject Gyoto :: klass :: Generic :: clone; // Need to mark the base classes as "notabstract" to extend them with // a down-cast constructor %feature("notabstract") Gyoto::klass::Generic; // Ignore all the actual constructors as these classes are really abstract %ignore Gyoto::klass::Generic::Generic(Gyoto::klass::Generic const &); %ignore Gyoto::klass::Generic::Generic(const Generic &); %ignore Gyoto::klass::Generic::Generic(const klass::Generic &); %ignore Gyoto::klass::Generic::Generic(); %ignore Gyoto::klass::Generic::Generic(double); %ignore Gyoto::klass::Generic::Generic(kind_t); %ignore Gyoto::klass::Generic::Generic(const std::string); %ignore Gyoto::klass::Generic::Generic(const int, const std::string &); // Make a pseudo constructor for down-casting. %extend Gyoto::klass::Generic { Generic(std::string nm) { std::vector plugin; Gyoto::klass::Generic * res = NULL; { Gyoto::SmartPointer pres= Gyoto::klass::getSubcontractor(nm.c_str(), plugin)(NULL, plugin); res = (Gyoto::klass::Generic *)(pres); // We need to increment refcount, else the object is destroyed // when the original smartpoiter is: if (res) res -> incRefCount(); } // Now that the original smartpointer has been detroyed, refcount is 1. // ref feature will increment it again, so we need to decrement is now: res->decRefCount(); GYOTO_DEBUG_EXPR(res->getRefCount()); // Special for Uniform spectrometer: // if 'res' can be cast to uniform spectrometer, set Kind. if(dynamic_cast(res)) res->set("Kind", nm); // end special case return res; } Generic(std::string nm, std::vector plugin) { GYOTO_DEBUG_EXPR(plugin.size()); Gyoto::klass::Generic * res = NULL; { Gyoto::SmartPointer pres= Gyoto::klass::getSubcontractor(nm.c_str(), plugin)(NULL, plugin); res = (Gyoto::klass::Generic *)(pres); // We need to increment refcount, else the object is destroyed // when the original smartpoiter is: if (res) res -> incRefCount(); } // Now that the original smartpointer has been detroyed, refcount is 1. // ref feature will increment it again, so we need to decrement is now: res->decRefCount(); GYOTO_DEBUG_EXPR(res->getRefCount()); // Special for Uniform spectrometer: // if 'res' can be cast to uniform spectrometer, set Kind. if(dynamic_cast(res)) res->set("Kind", nm); // end special case return res; } Generic(long address) { Gyoto::klass::Generic * res = (Gyoto::klass::Generic *)(address); // Should be done by ref feature: // if (res) res -> incRefCount(); return res; } Generic(Gyoto::klass::Generic *orig) { return orig; } std::string __str__() { return Gyoto::Factory($self).format(); } }; %include Gyoto ## klass ## .h %enddef // Include header for derived class. Parameters: nspace: namespace // (e.g. Astrobj); klass: classname (e.g. Complex); nick: name to use // in the flattened namespace (e.g. ComplexAstrobj); hdr: header file // (e.g. GyotoComplexAstrobj.h). Extends class with a pseudo // constructor for upcasting, // e.g. cplx=gyoto_std.ComplexAstrobj(sc.strobj()) %define GyotoSmPtrClassDerivedPtrHdr(nspace, klass, nick, hdr) %rename(nick) Gyoto::nspace::klass; %newobject Gyoto :: nspace:: klass :: clone; %feature("notabstract") Gyoto::nspace::klass; %extend Gyoto::nspace::klass { klass(Gyoto::nspace::Generic * base) { Gyoto::nspace::klass * res = dynamic_cast< Gyoto::nspace::klass * >(base); if (!res) GYOTO_ERROR("This pointer cannot be cast to 'Gyoto::" #nspace "::" #klass "*'"); return res; } klass(long address) { Gyoto::nspace::klass * res = (Gyoto::nspace::klass *)(address); // Should be done by ref feature: // if (res) res -> incRefCount(); return res; } }; %include hdr %enddef // Simplification of the above when nick == klass %define GyotoSmPtrClassDerivedHdr(nspace, klass, hdr) GyotoSmPtrClassDerivedPtrHdr(nspace, klass, klass, hdr) %enddef // Simplification of the above when hdr == Gyoto ## klass ## .h %define GyotoSmPtrClassDerived(nspace, klass) GyotoSmPtrClassDerivedHdr(nspace, klass, Gyoto ## klass ## .h) %enddef // Add things for all metrics %define GyotoSmPtrClassDerivedMetric(klass) %extend Gyoto::Metric::klass { // Support this syntax: // vel = gg.circularVelocity(pos) // in addition of gg.circularVelocity(pos, vel) // Same for gmunu and christoffel void circularVelocity(double const IN_ARRAY1[4], double ARGOUT_ARRAY1[4]) { Gyoto::SmartPointer($self)->circularVelocity(IN_ARRAY1, ARGOUT_ARRAY1); } void zamoVelocity(double const IN_ARRAY1[4], double ARGOUT_ARRAY1[4]) { Gyoto::SmartPointer($self)->zamoVelocity(IN_ARRAY1, ARGOUT_ARRAY1); } using Gyoto::Metric::Generic::christoffel; void christoffel(double ARGOUT_ARRAY3[4][4][4], double const IN_ARRAY1[4]) { Gyoto::SmartPointer($self)->christoffel(ARGOUT_ARRAY3, IN_ARRAY1); } }; GyotoSmPtrClassDerived(Metric, klass) %enddef // ******** INCLUDES ******** // // Include any file that is needed to compile the wrappers %{ #define SWIG_FILE_WITH_INIT #define GYOTO_NO_DEPRECATED #include "gyoto_swig.h" using namespace Gyoto; swig_type_info * __Gyoto_SWIGTYPE_p_Gyoto__Error() { return SWIGTYPE_p_Gyoto__Error; } %} // ******** INITIALIZATION ******** // // Catch all Gyoto errors and re-throw them as run-time errors for the // target language %exception { try { $action } catch (Gyoto::Error e) { // PyErr_SetString(PyErr_NewException("gyoto.Error", NULL, NULL), e); SWIG_Python_Raise (SWIG_NewPointerObj ((new Gyoto::Error(static_cast(e))), __Gyoto_SWIGTYPE_p_Gyoto__Error(),SWIG_POINTER_NEW), "gyoto.Error", __Gyoto_SWIGTYPE_p_Gyoto__Error()); SWIG_fail; } } // This will be called upon extension initialization %init { if (!Gyoto::Astrobj::Register_ && !Gyoto::Metric::Register_ && !Gyoto::Spectrum::Register_ && !Gyoto::Spectrometer::Register_) Gyoto::Register::init(); #ifdef SWIGPYTHON import_array(); #endif } // Rename operator++() -> increment() for everything %rename(increment) *::operator++; // Rename operator=() -> assign() for everything %rename(assign) *::operator=; // Rename operator*() -> __ref__ // nothing to do, that's the default // ******** TYPEMAPS ******** // // Actually instantiate typemaps using de macros defined above GyotoSmPtrTypeMapClassGeneric(Metric); GyotoSmPtrTypeMapClassGeneric(Astrobj); GyotoSmPtrTypeMapClassGeneric(Spectrum); GyotoSmPtrTypeMapClassGeneric(Spectrometer); GyotoSmPtrTypeMapClassDerived(Astrobj, ThinDisk); GyotoSmPtrTypeMapClassDerived(Astrobj, Standard) GyotoSmPtrTypeMapClass(Screen); GyotoSmPtrTypeMapClass(Scenery); GyotoSmPtrTypeMapClass(Photon); %extend Gyoto::SmartPointee { long getPointer() { return long($self); } }; GyotoSmPtrTypeMapClass(SmartPointee); GyotoSmPtrTypeMapClassDerived(Spectrometer, Complex); GyotoSmPtrTypeMapClassDerived(Spectrometer, Uniform); GyotoSmPtrTypeMapClassDerived(Units, Unit); GyotoSmPtrTypeMapClassDerived(Units, Converter); GyotoSmPtrTypeMapClassDerived(Worldline, IntegState); GyotoSmPtrTypeMapClassDerived(Astrobj, Properties); // Typemaps for Gyoto::Value: // In: cast from target language representations for all the supported // types. %typemap(in) Gyoto::Value { int res=-1; void *argp=0; if (!SWIG_IsOK(res)) { res=SWIG_ConvertPtr($input, &argp, SWIGTYPE_p_Gyoto__Metric__Generic, 0); if (SWIG_IsOK(res)) { Gyoto::SmartPointer temp = reinterpret_cast< Gyoto::Metric::Generic * >(argp); if(temp) $1 = Gyoto::Value(temp); else $1 = Gyoto::Value(); } } if (!SWIG_IsOK(res)) { res=SWIG_ConvertPtr($input, &argp, SWIGTYPE_p_Gyoto__Value, 0); if (SWIG_IsOK(res)) { Gyoto::Value * temp = reinterpret_cast< Gyoto::Value * >(argp); $1 = *temp; if (SWIG_IsNewObj(res)) delete temp; } } if (!SWIG_IsOK(res)) { res=SWIG_ConvertPtr($input, &argp, SWIGTYPE_p_Gyoto__Astrobj__Generic, 0); if (SWIG_IsOK(res)) { Gyoto::SmartPointer temp = reinterpret_cast< Gyoto::Astrobj::Generic * >(argp); $1 = Gyoto::Value(temp); } } if (!SWIG_IsOK(res)) { res=SWIG_ConvertPtr($input, &argp, SWIGTYPE_p_Gyoto__Spectrum__Generic, 0); if (SWIG_IsOK(res)) { Gyoto::SmartPointer temp = reinterpret_cast< Gyoto::Spectrum::Generic * >(argp); $1 = Gyoto::Value(temp); } } if (!SWIG_IsOK(res)) { res=SWIG_ConvertPtr($input, &argp, SWIGTYPE_p_Gyoto__Spectrometer__Generic, 0); if (SWIG_IsOK(res)) { Gyoto::SmartPointer temp = reinterpret_cast< Gyoto::Spectrometer::Generic * >(argp); $1 = Gyoto::Value(temp); } } if (!SWIG_IsOK(res)) { res=SWIG_ConvertPtr($input, &argp, SWIGTYPE_p_Gyoto__Screen, 0); if (SWIG_IsOK(res)) { Gyoto::SmartPointer temp = reinterpret_cast< Gyoto::Screen * >(argp); $1 = Gyoto::Value(temp); } } if (!SWIG_IsOK(res)) { std::string *temp = 0; res = SWIG_AsPtr_std_string ($input, &temp) ; if (SWIG_IsOK(res)) $1 = Gyoto::Value(*temp); if (SWIG_IsNewObj(res) && temp) delete temp; } if (!SWIG_IsOK(res)) { std::vector *temp=0; res = swig::traits_asptr< std::vector >::asptr($input, &temp); if (SWIG_IsOK(res)) $1 = Gyoto::Value(*temp); if (SWIG_IsNewObj(res) && temp) delete temp; } if (!SWIG_IsOK(res)) { std::vector *temp=0; res = swig::traits_asptr< std::vector >::asptr($input, &temp); if (SWIG_IsOK(res)) $1 = Gyoto::Value(*temp); if (SWIG_IsNewObj(res) && temp) delete temp; } if (!SWIG_IsOK(res)) { long temp=0; res = SWIG_AsVal(long)($input, &temp); if (SWIG_IsOK(res)) $1 = Gyoto::Value(temp); } if (!SWIG_IsOK(res)) { double temp=0; res = SWIG_AsVal(double)($input, &temp); if (SWIG_IsOK(res)) $1 = Gyoto::Value(temp); } if (!SWIG_IsOK(res)) SWIG_exception_fail(SWIG_ArgError(res), "argument of type 'Gyoto::Value*'"); } // Typecheck: should be debugged, does not seem to filter anything %typemap(typecheck) Gyoto::Value { void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gyoto__Value, 0); $1 = res; } // Out: cast from Gyoto::Value to language-specific representation // for each sub-type. %typemap(out) Gyoto::Value { switch ($1.type) { case Gyoto::Property::unsigned_long_t: $result = SWIG_From_unsigned_SS_long((unsigned long)($1)); break; case Gyoto::Property::long_t: $result = SWIG_From_long(long($1)); break; case Gyoto::Property::bool_t: $result = SWIG_From_bool(bool($1)); break; case Gyoto::Property::double_t: $result = SWIG_From_double(double($1)); break; case Gyoto::Property::filename_t: case Gyoto::Property::string_t: $result = SWIG_From_std_string(static_cast< std::string >($1)); break; case Gyoto::Property::vector_double_t: $result = swig::from(($1).operator std::vector()); break; case Gyoto::Property::vector_unsigned_long_t: $result = swig::from(($1).operator std::vector()); break; case Gyoto::Property::metric_t: { Gyoto::Metric::Generic* normal_pointer=(Gyoto::Metric::Generic *) (Gyoto::SmartPointer($1)); if (normal_pointer) normal_pointer->incRefCount(); $result = SWIG_NewPointerObj( normal_pointer, SWIGTYPE_p_Gyoto__Metric__Generic, SWIG_POINTER_OWN | 0 ); } break; case Gyoto::Property::astrobj_t: { Gyoto::Astrobj::Generic* normal_pointer=(Gyoto::Astrobj::Generic *) (Gyoto::SmartPointer($1)); if (normal_pointer) normal_pointer->incRefCount(); $result = SWIG_NewPointerObj( normal_pointer, SWIGTYPE_p_Gyoto__Astrobj__Generic, SWIG_POINTER_OWN | 0 ); } break; case Gyoto::Property::spectrum_t: { Gyoto::Spectrum::Generic* normal_pointer=(Gyoto::Spectrum::Generic *) (Gyoto::SmartPointer($1)); if (normal_pointer) normal_pointer->incRefCount(); $result = SWIG_NewPointerObj( normal_pointer, SWIGTYPE_p_Gyoto__Spectrum__Generic, SWIG_POINTER_OWN | 0 ); } break; case Gyoto::Property::spectrometer_t: { Gyoto::Spectrometer::Generic* normal_pointer=(Gyoto::Spectrometer::Generic *) (Gyoto::SmartPointer($1)); if (normal_pointer) normal_pointer->incRefCount(); $result = SWIG_NewPointerObj( normal_pointer, SWIGTYPE_p_Gyoto__Spectrometer__Generic, SWIG_POINTER_OWN | 0 ); } break; case Gyoto::Property::screen_t: { Gyoto::Screen* normal_pointer=(Gyoto::Screen *) (Gyoto::SmartPointer($1)); if (normal_pointer) normal_pointer->incRefCount(); $result = SWIG_NewPointerObj( normal_pointer, SWIGTYPE_p_Gyoto__Screen, SWIG_POINTER_OWN | 0 ); } break; default: $result = SWIG_NewPointerObj((new Gyoto::Value(static_cast< const Gyoto::Value& >($1))), SWIGTYPE_p_Gyoto__Value, SWIG_POINTER_OWN | 0 ); } } // Non-Gyoto typemaps: // Handle std::string %include "std_string.i"; // Handle std::vector and %include "std_vector.i"; %template(vector_string) std::vector; %template(vector_double) std::vector; %{ typedef unsigned long unsignedlong; %} %template(vector_unsigned_long) std::vector; #ifdef SWIGPYTHON // Handle some arrays as NumPy arrays %include "numpy.i"; %numpy_typemaps(size_t, NPY_ULONG , size_t); %numpy_typemaps(double, NPY_DOUBLE, size_t); #endif // Handle generic C arrays using a class-like interface %include "carrays.i" %array_class(double, array_double); %array_class(size_t, array_size_t); %array_class(unsigned long, array_unsigned_long); #ifdef SWIGPYTHON // Provide conversion between generic C arrays and NumPy ndarrays %define ExtendArrayNumPy(name, type) %extend name { static name* fromnumpy1(type* IN_ARRAY1, size_t DIM1) { return static_cast< name * >(IN_ARRAY1); } static name* fromnumpy2(type* IN_ARRAY2, size_t DIM1, size_t DIM2) { return static_cast< name * >(IN_ARRAY2); } static name* fromnumpy3(type* IN_ARRAY3, size_t DIM1, size_t DIM2, size_t DIM3) { return static_cast< name * >(IN_ARRAY3); } static name* fromnumpy4(type* IN_ARRAY4, size_t DIM1, size_t DIM2, size_t DIM3, size_t DIM4) { return static_cast< name * >(IN_ARRAY4); } }; %enddef ExtendArrayNumPy(array_double, double); ExtendArrayNumPy(array_unsigned_long, unsigned long); ExtendArrayNumPy(array_size_t, size_t); #endif %apply (double * IN_ARRAY1, size_t DIM1) {(double * dates, size_t n_dates)}; %apply (double * IN_ARRAY1, size_t DIM1) {(double const * cst, size_t const ncsts)}; %apply (double * INPLACE_ARRAY1, size_t DIM1) {(double * x1dest, size_t n1)}; %apply (double * INPLACE_ARRAY1, size_t DIM1) {(double * x2dest, size_t n2)}; %apply (double * INPLACE_ARRAY1, size_t DIM1) {(double * x3dest, size_t n3)}; %apply (double * INPLACE_ARRAY1, size_t DIM1) {(double * x0dot, size_t n0d)}; %apply (double * INPLACE_ARRAY1, size_t DIM1) {(double * x1dot, size_t n1d)}; %apply (double * INPLACE_ARRAY1, size_t DIM1) {(double * x2dot, size_t n2d)}; %apply (double * INPLACE_ARRAY1, size_t DIM1) {(double * x3dot, size_t n3d)}; // Handle all const arrays of fixed size as NumPy IN_ARRAYs %apply (double IN_ARRAY1[ANY]) {(const double [ANY])}; %apply (double IN_ARRAY2[ANY][ANY]) {(const double [ANY][ANY])}; %apply (double IN_ARRAY3[ANY][ANY][ANY]) {(const double [ANY][ANY][ANY])}; %apply (double IN_ARRAY4[ANY][ANY][ANY][ANY]) {(const double [ANY][ANY][ANY][ANY])}; // Handle all non-const arrays of fixed size as INPLACE. %apply (double INPLACE_ARRAY1[ANY]) {(double [ANY])}; %apply (double INPLACE_ARRAY2[ANY][ANY]) {(double [ANY][ANY])}; %apply (double INPLACE_ARRAY3[ANY][ANY][ANY]) {(double [ANY][ANY][ANY])}; %apply (double INPLACE_ARRAY4[ANY][ANY][ANY][ANY]) {(double [ANY][ANY][ANY][ANY])}; %apply (double ARGOUT_ARRAY1[ANY]) {(double ARGOUT_ARRAY1_1[ANY])} %apply (double ARGOUT_ARRAY1[ANY]) {(double ARGOUT_ARRAY1_2[ANY])} %apply (double ARGOUT_ARRAY1[ANY]) {(double ARGOUT_ARRAY1_3[ANY])} %apply (double ARGOUT_ARRAY1[ANY]) {(double ARGOUT_ARRAY1_4[ANY])} // ******** INTERFACE ******** // // Here starts the actual parsing of the various header files // Expose the build-time configuration variables %include "GyotoConfig.h" // Expose the global definitions and typedefs %include "GyotoDefs.h" // Expose the Gyoto::Error class // Not a SmartPointee %extend Gyoto::Error { const char *__str__() { return *($self); } }; %exceptionclass Gyoto::Error ; %include "GyotoError.h" // Expose the SmartPointer API %ignore Gyoto::SmartPointer::operator(); %rename(assign) Gyoto::SmartPointer::operator=; %feature("ref") Gyoto::SmartPointee "$this->incRefCount();//ref SmartPointee"; %feature("unref") Gyoto::SmartPointee "$this->decRefCount(); if (!$this->getRefCount()) delete $this;//unref SmartPointee"; %include "GyotoSmartPointer.h" // Expose Gyoto::Register::list as gyoto.listRegister %rename(RegisterEntry) Gyoto::Register::Entry; %rename(initRegister) Gyoto::Register::init; %rename(listRegister) Gyoto::Register::list; %include GyotoRegister.h // Not a SmartPointee %rename(Functor__Double_constDoubleArray) Gyoto::Functor::Double_constDoubleArray; %rename(Functor__Double_Double_const) Gyoto::Functor::Double_Double_const; %include "GyotoFunctors.h" // Not a SmartPointee %include "GyotoHooks.h" // Not a SmartPointee %include "GyotoWIP.h" // Worldline: not a SmartPointee %immutable Gyoto::Value::type; %rename(assign) Gyoto::Value::operator=; %rename(toDouble) Gyoto::Value::operator double; %rename(toLong) Gyoto::Value::operator long; %rename(toULong) Gyoto::Value::operator unsigned long; %extend Gyoto::Value {size_t toSizeT() {return size_t(*$self);}}; %rename(toString) Gyoto::Value::operator std::string; %rename(toVDouble) Gyoto::Value::operator std::vector; %extend Gyoto::Value { std::vector toVULong() {return ($self)->operator std::vector();} }; %rename(toMetric) Gyoto::Value::operator Gyoto::SmartPointer; %rename(toAstrobj) Gyoto::Value::operator Gyoto::SmartPointer; %rename(toSpectrum) Gyoto::Value::operator Gyoto::SmartPointer; %rename(toSpectrometer) Gyoto::Value::operator Gyoto::SmartPointer; %rename(toScreen) Gyoto::Value::operator Gyoto::SmartPointer; %include "GyotoValue.h" %include "GyotoObject.h" %rename(Worldline__IntegState__Generic) Gyoto::Worldline::IntegState::Generic; %rename(Worldline__IntegState__Boost) Gyoto::Worldline::IntegState::Boost; %rename(Worldline__IntegState__Legacy) Gyoto::Worldline::IntegState::Legacy; %extend Gyoto::Worldline { void get_t(double * INPLACE_ARRAY1, size_t DIM1) { if (DIM1 != ($self)->get_nelements()) GYOTO_ERROR("wrong output array size"); ($self)->get_t(INPLACE_ARRAY1); } void get_xyz( double * x1dest, size_t n1, double * x2dest, size_t n2, double * x3dest, size_t n3) { if (n1 != ($self)->get_nelements() || n2 != n1 || n3 != n1) GYOTO_ERROR("wrong size for output array"); ($self)->get_xyz(x1dest, x2dest, x3dest); } void getSkyPos(SmartPointer screen, double * x1dest, size_t n1, double * x2dest, size_t n2, double * x3dest, size_t n3) { if (n1 != ($self)->get_nelements() || n2 != n1 || n3 != n1) GYOTO_ERROR("wrong size for output array"); ($self)->getSkyPos(screen, x1dest, x2dest, x3dest); } void get_dot(double * x0dot, size_t n0d, double * x1dot, size_t n1d, double * x2dot, size_t n2d, double * x3dot, size_t n3d) { if (n0d != ($self)->get_nelements() || n1d != n0d || n2d != n0d || n3d != n0d) GYOTO_ERROR("wrong size for output array"); ($self)->get_dot(x0dot, x1dot, x2dot, x3dot); } void get_prime( double * x1dot, size_t n1d, double * x2dot, size_t n2d, double * x3dot, size_t n3d) { if (n1d != ($self)->get_nelements() || n2d != n1d || n3d != n1d) GYOTO_ERROR("wrong size for output array"); ($self)->get_prime(x1dot, x2dot, x3dot); } // support this syntax: // vel = gg.circularVelocity(pos) // in addition of gg.circularVelocity(pos, vel) // void getInitialCoord(std::vector &ARGOUT_ARRAY1) { // ($self)->getInitialCoord(ARGOUT_ARRAY1); // } // void getCoord(size_t index, Gyoto::Worldline::state_type &ARGOUT_ARRAY1) { // ($self)->getCoord(index, ARGOUT_ARRAY1); // } void getCartesianPos(size_t index, double ARGOUT_ARRAY1[8]) { ($self)->getCartesianPos(index, ARGOUT_ARRAY1); } }; %include "GyotoWorldline.h" %extend Gyoto::Screen { // Support this syntax: // pos = scr.getObserverPos() void getObserverPos(double ARGOUT_ARRAY1[4]) { ($self)->getObserverPos(ARGOUT_ARRAY1); } void getFourVel(double ARGOUT_ARRAY1[4]) { ($self)->getFourVel(ARGOUT_ARRAY1); } }; GyotoSmPtrClass(Screen) GyotoSmPtrClass(Scenery) %ignore Gyoto::Photon::Refined; GyotoSmPtrClass(Photon) %rename(AstrobjProperties) Gyoto::Astrobj::Properties; GyotoSmPtrClassGeneric(Astrobj) GyotoSmPtrClassDerived(Astrobj, ThinDisk) %ignore Gyoto::Astrobj::Standard::Standard(); %ignore Gyoto::Astrobj::Standard::Standard(double radmax); %ignore Gyoto::Astrobj::Standard::Standard(std::string kind); %ignore Gyoto::Astrobj::Standard::Standard(const Standard& ); GyotoSmPtrClassDerivedPtrHdr(Astrobj, Standard, StandardAstrobj, GyotoStandardAstrobj.h) %define _PConverter(member, method) Gyoto::Units::Converter * method() { Gyoto::Units::Converter * res = $self->member; if (res) res -> incRefCount(); return res; } %enddef %extend Gyoto::Astrobj::Properties{ _PConverter(binspectrum_converter_, binSpectrumConverter) _PConverter(intensity_converter_, intensityConverter) _PConverter(spectrum_converter_, spectrumConverter) }; %extend Gyoto::Metric::Generic { // Support this syntax: // vel = gg.circularVelocity(pos) // in addition of gg.circularVelocity(pos, vel) // Same for gmunu and christoffel void circularVelocity(double const IN_ARRAY1[4], double ARGOUT_ARRAY1[4]) { ($self)->circularVelocity(IN_ARRAY1, ARGOUT_ARRAY1); } void zamoVelocity(double const IN_ARRAY1[4], double ARGOUT_ARRAY1[4]) { ($self)->zamoVelocity(IN_ARRAY1, ARGOUT_ARRAY1); } void christoffel(double ARGOUT_ARRAY3[4][4][4], double const IN_ARRAY1[4]) { ($self)->christoffel(ARGOUT_ARRAY3, IN_ARRAY1); } }; GyotoSmPtrClassGeneric(Metric) GyotoSmPtrClassGeneric(Spectrum) GyotoSmPtrClassGeneric(Spectrometer) %inline { class myCplxSpectroIdxExcept {}; } %exception Gyoto::Spectrometer::Complex::__getitem__ { try { $action ; } catch (myCplxSpectroIdxExcept e) { SWIG_exception_fail(SWIG_IndexError, "Index out of bounds"); } } %extend Gyoto::Spectrometer::Complex { Gyoto::SmartPointer __getitem__ (size_t i) { if (i >= ($self)->getCardinal()) { throw myCplxSpectroIdxExcept(); } Gyoto::SmartPointer res = ($self)->operator[](i); return res; } }; %extend Gyoto::Spectrometer::Complex { void __setitem__(int i, Gyoto::Spectrometer::Generic * p) { ($self)->operator[](i)=p; } }; GyotoSmPtrClassDerivedPtrHdr(Spectrometer, Complex, ComplexSpectrometer, GyotoComplexSpectrometer.h) GyotoSmPtrClassDerivedPtrHdr(Spectrometer, Uniform, UniformSpectrometer, GyotoUniformSpectrometer.h) // Not a class %include "GyotoConfig.h" // Not a class %include "GyotoUtils.h" // Not a SmartPointee %include "GyotoFactory.h" // Backwards-compatibility code introduced 2018-10-04 %extend Gyoto::Factory { Gyoto::SmartPointer getScenery() { GYOTO_WARNING << "Factory::getScenery() is deprecated, use Factory::scenery() instead\n"; return ($self)->scenery(); } Gyoto::SmartPointer getPhoton() { GYOTO_WARNING << "Factory::getPhoton() is deprecated, use Factory::photon() instead\n"; return ($self)->photon(); } }; // Not a SmartPointee %include "GyotoFactoryMessenger.h" // SWIG fails on nested classes. Work around this limitation: %{ typedef Gyoto::Screen::CoordType_e CoordType_e; typedef Gyoto::Screen::Coord1dSet Coord1dSet; typedef Gyoto::Screen::Coord2dSet Coord2dSet; typedef Gyoto::Screen::Grid Grid; typedef Gyoto::Screen::Bucket Bucket; typedef Gyoto::Screen::Empty Empty; typedef Gyoto::Screen::Range Range; typedef Gyoto::Screen::Indices Indices; typedef Gyoto::Screen::Angles Angles; typedef Gyoto::Screen::RepeatAngle RepeatAngle; %} enum CoordType_e; #ifdef HAVE_BOOST_ARRAY_HPP namespace boost { template class array { public: T& operator[](size_t c) { return buf[c] ; } }; } #endif %extend GYOTO_ARRAY { T __getitem__(size_t c) { return $self->operator[](c); } }; %template(ARRAY_double_2) GYOTO_ARRAY; %template(ARRAY_size_t_2) GYOTO_ARRAY; class Coord1dSet { public: const CoordType_e kind; public: Coord1dSet(CoordType_e k); virtual void begin() =0; virtual bool valid() =0; virtual size_t size()=0; virtual size_t operator*() const ; virtual double angle() const ; virtual Coord1dSet& operator++()=0; }; %extend Coord1dSet { // Get value of coord set size_t value() const { return **($self); } }; class Coord2dSet { public: const CoordType_e kind; Coord2dSet(CoordType_e k); virtual Coord2dSet& operator++() =0; virtual GYOTO_ARRAY operator* () const; virtual GYOTO_ARRAY angles() const ; virtual void begin() =0; virtual bool valid() =0; virtual size_t size()=0; }; class Grid: public Coord2dSet { protected: protected: const char * const prefix_; Coord1dSet &iset_; Coord1dSet &jset_; public: Grid(Coord1dSet &iset, Coord1dSet &jset, const char * const p=NULL); virtual Coord2dSet& operator++(); virtual GYOTO_ARRAY operator* () const; virtual void begin(); virtual bool valid(); virtual size_t size(); }; class Bucket : public Coord2dSet { protected: Coord1dSet &alpha_; Coord1dSet &delta_; public: Bucket(Coord1dSet &iset, Coord1dSet &jset); virtual Coord2dSet& operator++(); virtual GYOTO_ARRAY angles() const; virtual GYOTO_ARRAY operator*() const; virtual void begin(); virtual bool valid(); virtual size_t size(); }; class Empty: public Coord2dSet { public: Empty(); virtual Coord2dSet& operator++(); virtual void begin(); virtual bool valid(); virtual size_t size(); }; class Range : public Coord1dSet { protected: const size_t mi_, ma_, d_, sz_; size_t cur_; public: Range(size_t mi, size_t ma, size_t d); void begin(); bool valid(); size_t size(); Coord1dSet& operator++(); size_t operator*() const ; }; class Indices : public Coord1dSet { protected: size_t const * const indices_; size_t const sz_; size_t i_; public: Indices (size_t *carray, size_t nel); void begin(); bool valid(); size_t size(); Coord1dSet& operator++(); size_t operator*() const ; size_t index() const ; }; %extend Indices { Indices (size_t DIM1, size_t *IN_ARRAY1) { return new Indices(IN_ARRAY1, DIM1); } } class Angles : public Coord1dSet { protected: double const * const buf_; size_t const sz_; size_t i_; public: Angles (double * carray, size_t nel); void begin(); bool valid(); size_t size(); Coord1dSet& operator++(); double angle() const ; }; %extend Angles { Angles (size_t DIM1, double *IN_ARRAY1) { return new Angles(IN_ARRAY1, DIM1); } } class RepeatAngle : public Coord1dSet { protected: double const val_; size_t const sz_; size_t i_; public: RepeatAngle (double val, size_t sz); void begin(); bool valid(); size_t size(); Coord1dSet& operator++(); double angle() const ; }; // Not a SmartPointee %ignore Gyoto::Property::Property; %include "GyotoProperty.h" // Units and Converters are SmartPointee %extend Gyoto::Units::Unit { std::string __str__() { return (std::string(*($self))); } }; %feature("ref") Gyoto::Units::Unit "$this->incRefCount();//ref Unit"; %feature("unref") Gyoto::Units::Unit "$this->decRefCount(); if (!$this->getRefCount()) delete $this;//unref Unit"; %feature("ref") Gyoto::Units::Converter "$this->incRefCount();//ref Converter"; %feature("unref") Gyoto::Units::Converter "$this->decRefCount(); if (!$this->getRefCount()) delete $this;//unref Converter"; %include "GyotoConverters.h" // not a SmartPointee %include "GyotoGridData2D.h" %include "GyotoFitsRW.h" // Workaround cvar bug in Swig which makes help(gyoto) fail: %inline { namespace Gyoto { extern int __class__; } int Gyoto::__class__ = 0; } Gyoto-2.0.2/python/gyoto/000077500000000000000000000000001455254334400153075ustar00rootroot00000000000000Gyoto-2.0.2/python/gyoto/__init__.py000066400000000000000000000016221455254334400174210ustar00rootroot00000000000000"""The General relativitY Orbit Tracer of paris Observatory Note that importing "gyoto" is deprecated and may cease to work in a future release. Please update your code to import gyoto.core instead. """ # For backwards compatibility, expose gyoto.core as gyoto from gyoto.core import * # Provide a Pythonic wrapper around Scenery.rayTrace. # The underlying C++-like interface remains accessible. from gyoto import core, util core.Scenery.rayTrace = util.rayTrace core.Scenery.rayTrace.__doc__ += core._core.Scenery_rayTrace.__doc__ core.Scenery.__getitem__ = util.Scenery_getitem core.Scenery.__getitem__.__doc__ += core.Scenery.rayTrace.__doc__ core.Worldline.getCartesian = util._Worldline_getCartesian core.Worldline.getCartesian.__doc__ = core._core.Worldline_getCartesian.__doc__ core.Worldline.getCoord = util._Worldline_getCoord core.Worldline.getCoord.__doc__ = core._core.Worldline_getCoord.__doc__ Gyoto-2.0.2/python/gyoto/_namespaces.py000066400000000000000000000017221455254334400201410ustar00rootroot00000000000000'''Namespace wrapper helpers Not part of the API ''' def make_namespace(Generic, _globals): import sys as _sys import inspect as _inspect from gyoto.core import requirePlugin as _requirePlugin, havePlugin as _havePlugin import gyoto.core as _core import gyoto.std as _std _modules = [_core, _std] _requirePlugin("lorene", True) if _havePlugin("lorene"): import gyoto.lorene as _lorene _modules.append(_lorene) res = [] for _mod in _modules: for _name, _obj in _inspect.getmembers(_mod): if _inspect.isclass(_obj) and issubclass(_obj, Generic): __import__(_obj.__module__, globals(), locals(), [_obj.__name__,]) _globals.update({_obj.__name__: getattr(_sys.modules[_obj.__module__], _obj.__name__)}) res . append(_obj.__name__) return res Gyoto-2.0.2/python/gyoto/animate.py000077500000000000000000000723751455254334400173200ustar00rootroot00000000000000#!/usr/bin/env python3 '''Create movies using Gyoto This module provides facilities to animate Gyoto Sceneries and render them as movie files. The module can also be called as a script on the command line. rayTrace() takes as argument a user-defined callable func and a sceneray (among other parameters). func is responsible for mutating the scenery for each frame. raTrace then ray-traces the scenery. Two callables suitable as the func argument are provided. mk_movie() is the top-level function. It opens a video file, calls rayTrace() in a loop and closes the video. Classes: VideoWriter -- abstract interface with video library OpenCVVideoWriter -- implements VideoWriter using OpenCV-Python PyAVVideoWriter -- implements VideoWriter using PyAV NullVideoWriter -- a VideoWriter that does not write anything orbiting_screen -- a callable that can be used by rayTrace orbiting_screen_forward -- idem accelerating_tangential_screen -- idem growing_mass -- idem Function: rayTraceFrame -- mutates Gyoto scenery and raytrace it defaultScenery -- returns a default Gyoto scenery defaultTrajectory -- returns a default screen trajectory mk_video -- make a video ''' try: from . import core, std except ImportError: from gyoto import core, std import numpy import os import matplotlib.pyplot as plt import matplotlib import argparse import warnings ### Helper functions ## An API for video-writing facilities class VideoWriter: '''Generic interface to write videos ''' norm=None vmin=0. vmax=0. cmap=plt.cm.get_cmap('hot') def __init__(self, filename, fps, width, height): '''Initialize video Derived classes should open the video in there initializer and call the base class __init__. ''' self.fps=fps self.width=width self.height=height def colorize(self, im_float): '''Colorize image Given a Gyoto frame (numpy array of doubles), returns and RGB image (3 planes of uint8 type). ''' if self.norm is None: if self.vmax==0: self.vmax = numpy.nanmax(im_float) if self.vmax != 0.: self.norm=matplotlib.colors.Normalize(vmin=0., vmax=self.vmax, clip=True) im_float = self.norm(im_float) else: im_float=self.norm(im_float) return numpy.uint8(self.cmap(im_float)*255.)[:, :, :3] def write(self, frame): '''Write frame to video Frame is a numpy RGB image. ''' raise NotImplementedError def close(self): '''Close video ''' raise NotImplementedError def __del__(self): self.close() class NullVideoWriter(VideoWriter): '''A VideoWriter that does not write anything Mostly useful during preparatory work in cunjunction with plot=True. ''' def write(self, frame): '''Write frame to video Frame is a numpy RGB image. ''' pass def close(self): '''Close video ''' pass class OpenCVVideoWriter(VideoWriter): '''An implementation of VideoWriter that uses OpenCV-python ''' video=None fourcc=0 def __init__(self, filename, fps, width, height): import cv2 VideoWriter.__init__(self, filename, fps, width, height) self.video=cv2.VideoWriter(filename, self.fourcc, fps, (width, height), True) def write(self, frame): self.video.write(frame[::-1, :, ::-1]) def close(self): if self.video is not None: self.video.release() self.video=None class PyAVVideoWriter(VideoWriter): '''An implementation of VideoWriter that uses PyAV ''' container=None stream=None fourcc=0 def __init__(self, filename, fps, width, height, codec_name='mpeg4', pix_fmt='yuv420p'): import av self.av=av VideoWriter.__init__(self, filename, fps, width, height) self.container = av.open(filename, mode='w') self.stream = self.container.add_stream(codec_name, rate=fps) self.stream.width = width self.stream.height = height self.stream.pix_fmt = pix_fmt def write(self, frame): avframe=self.av.VideoFrame.from_ndarray(frame[::-1,:,:], format='rgb24') for packet in self.stream.encode(avframe): self.container.mux(packet) def close(self): if self.container is not None: for packet in self.stream.encode(): self.container.mux(packet) self.container.close() self.stream=None self.container=None ## Two types of changes for the screen # # The rayTrace function below takes a callable as argument to mutate # the screen between exposures. We define two such callables (as # classes) for two kinds of videos below. # class accelerating_tangential_screen: '''The screen does not move but has increasing velocity Members: maxvel -- norm of velocity for last frame. Should never reach 1! ''' maxvel=0.99 def __init__(self, **args): for key in args: setattr(self, key, args[key]) def __call__(self, sc, k, nframes): scr=sc.screen() metric=sc.metric() pos=scr.getObserverPos() ucirc=metric.circularVelocity(pos) uzamo=metric.zamoVelocity(pos) Gamma=-metric.ScalarProd(pos, ucirc, uzamo) Vzamo=ucirc/Gamma-uzamo # ucirc as seen by zamo norm_circ=metric.ScalarProd(pos, Vzamo, Vzamo) norm_wanted=self.maxvel*k/(nframes-1) Vzamo *= norm_wanted/numpy.sqrt(norm_circ) # rescale velocity Gamma2 = 1./(1.-metric.ScalarProd(pos, Vzamo, Vzamo)) assert Gamma2 >= 0, 'Gamma2 < 0! VzamoxVzamo='+str(metric.ScalarProd(pos, Vzamo, Vzamo))+', norm_wanted='+str(norm_wanted)+', norm_circ='+str(norm_circ) Gamma=numpy.sqrt(Gamma2) fourvel=Gamma*(uzamo+Vzamo) scr.fourVel(fourvel) class static_screen: '''The screen does not move This is meaningful when the astrobj itself is changing. The camera will typically be far away, with ObserverKind set to ObserverAtInfinity. members: tref -- reference time, read from sc.screen() the first time __call__ is called t0 -- coordinate time at movie start t1 -- coordinate time at movie end unit -- unit in which t0 and t1 are expressed ''' tref=None t0=0. t1=1000. unit='geometric' def __init__(self, **args): for key in args: setattr(self, key, args[key]) def __call__(self, sc, k, nframes): '''update time in screen ''' if self.tref is None: self.tref=sc.screen().time(self.unit) t = self.t0+k*(self.t1-self.t0)/(nframes-1) sc.screen().time(self.tref+t, self.unit) class orbiting_screen: '''The screen follows an orbit, camera looks along -er members: t0 -- proper time at movie start t1 -- proper time at movie end trajectory -- a gyoto.std.Star (or anything else that provides getCoord(t, coord, proper). ''' t0=0. t1=1000. trajectory=None def __init__(self, **args): for key in args: setattr(self, key, args[key]) def __call__(self, sc, k, nframes): t = self.t0+k*(self.t1-self.t0)/(nframes-1) coord=core.vector_double(8) self.trajectory.getCoord(t, coord, True) pos=[coord[i] for i in range(4)] vel=[coord[i] for i in range(4, 8)] screen=sc.screen() screen.setObserverPos(pos) screen.fourVel(vel) class orbiting_screen_forward: '''The screen follows an orbit, camera looks forward members: t0 -- proper time at movie start t1 -- proper time at movie end roll -- roll angle: left is rotated roll degrees towards up trajectory -- a gyoto.std.Star (or anything else that provides getCoord(t, coord, proper). ''' t0=0. t1=1000. roll=0. trajectory=None def __init__(self, **args): for key in args: setattr(self, key, args[key]) self.metric=self.trajectory.metric() def __call__(self, sc, k, nframes): metric=sc.metric() tau = self.t0+k*(self.t1-self.t0)/(nframes-1) coord=core.vector_double(8) self.trajectory.getCoord(tau, coord, True) pos=numpy.asarray([coord[i] for i in range(4)]) vel=numpy.asarray([coord[i] for i in range(4, 8)]) screen=sc.screen() screen.setObserverPos(pos) screen.fourVel(vel) # The 3 other elements of the tetrad are initialized as # follows: front is along the 3-velocity; up is er projected # on the plane orthogonal to front; left is the external # product up x front, thus (left, up, front) is direct. Then # we orthonormalise this tetrad. Obviously, this will fail if # vel3c is along er. # # We convert everything to cartesian to compute the external # product. front=numpy.zeros(4) metric.cartesianVelocity(coord, front[1:]) front /= numpy.sqrt((front*front).sum()) if metric.coordKind()==core.GYOTO_COORDKIND_SPHERICAL: t=pos[0] r=pos[1] theta=pos[2] phi=pos[3] st=numpy.sin(theta) ct=numpy.cos(theta) sp=numpy.sin(phi) cp=numpy.cos(phi) posr=[pos[0], r*st*cp, r*st*sp, r*ct] else: posr=pos r=numpy.sqrt(pos[1:]**2).sum() up0=numpy.concatenate(([0.], posr[1:]/r)) up0 -= (front*up0).sum()*front up0 /= numpy.sqrt((up0*up0).sum()) left0=numpy.zeros(4) left0[1]=up0[2]*front[3]-up0[3]*front[2] left0[2]=up0[3]*front[1]-up0[1]*front[3] left0[3]=up0[1]*front[2]-up0[2]*front[1] rollr=self.roll*numpy.pi/180 cr=numpy.cos(rollr) sr=numpy.sin(rollr) up=cr*up0-sr*left0 left=cr*left0+sr*up0 if metric.coordKind()==core.GYOTO_COORDKIND_SPHERICAL: er=posr/r ephi=numpy.asarray([0., -sp, cp, 0.]) etheta=numpy.asarray([0., ct*cp, ct*sp, -st]) front=numpy.asarray([ 0., (er*front).sum(), (etheta*front).sum(), (ephi*front).sum() ]) up=numpy.asarray([ 0., (er*up).sum(), (etheta*up).sum(), (ephi*up).sum() ]) left=numpy.asarray([ 0., (er*left).sum(), (etheta*left).sum(), (ephi*left).sum() ]) metric.GramSchmidt(pos, vel, up, front, left); screen.screenVector1(left) screen.screenVector2(up) screen.screenVector3(front) class growing_mass: '''The mass of the central object changes The Astrobj needs to be PatternDisk-like (it needs to have the properties InnerRadius and OuterRadius). ''' delta0=0.01 deltaMax0=1. rin0=0. rout0=28. rmax0=50. d0=28. factor_first=100. factor_last=2.01/28. def __init__(self, scenery=None, **args): if scenery is not None: self.delta0=scenery.delta() scr=scenery.screen() self.d0=scr.distance('geometrical') ao=scenery.astrobj() self.deltaMax0=ao.deltaMaxInsideRMax() self.rin0=ao.get('InnerRadius', 'geometrical') self.rout0=ao.get('OuterRadius', 'geometrical') self.rmax0=ao.rMax() self.factor_last=2.01/self.d0 scenery.screen().observerKind('ZAMO') for key in args: setattr(self, key, args[key]) def __call__(self, sc, k, nframes): # factor=(((self.factor_last*k) # +(self.factor_first*(self.nframes-1-k))) # /(self.nframes-1)) # print(factor) log2_first=numpy.log2(self.factor_first) log2_last=numpy.log2(self.factor_last) log2_k=(((log2_last*k) +(log2_first*(nframes-1-k))) /(nframes-1)) factor=2.**log2_k sc.delta(factor*self.delta0) scr=sc.screen() scr.distance(factor*self.d0, 'geometrical') print(factor, scr.distance('geometrical')) ao=sc.astrobj() ao.deltaMaxInsideRMax(factor*self.deltaMax0) ao.set('InnerRadius', factor*self.rin0, 'geometrical') ao.set('OuterRadius', factor*self.rout0, 'geometrical') ao.rMax(factor*self.rmax0) ## Helper function for tracing one frame def rayTraceFrame(sc, func, k, nframes, width, height): '''Ray-trace one frame of a Gyoto video Parameters: sc: Scenery to ray-trace func: callable to mutate the Screen k: number of the frame width: width of the video height: height of the video Returns: The raytraced intensity as a NumPy array ''' intensity=numpy.zeros((height, width)) pintensity=core.array_double.fromnumpy2(intensity) func(sc, k, nframes) res=max(width, height) sc.screen().resolution(res) ii=core.Range(res//2-width//2+1, res//2-width//2+width, 1) jj=core.Range(res//2-height//2+1, res//2-height//2+height, 1) grid=core.Grid(ii, jj) aop=core.AstrobjProperties() aop.intensity=pintensity sc.rayTrace(grid, aop) # print(newpos) # print(newvel) # plt.imshow(intensity) # plt.show() return intensity ## Build default scenery and trajectory def defaultScenery(): '''Create a default scenery The astrobj is a PatternDisk. ''' metric = core.Metric("KerrBL") metric.mass(4e6, "sunmass"); gridshape=numpy.asarray( (1, 3, 11) , numpy.uint64) pgridshape=core.array_size_t.fromnumpy1(gridshape) opacity=numpy.zeros(gridshape) popacity=core.array_double.fromnumpy3(opacity) opacity[:, 0::2, 0::2]=100. opacity[:, 1::2, 1::2]=100. intensity=opacity*0.+1.; pintensity=core.array_double.fromnumpy3(intensity) pd=std.PatternDisk() pd.velocityKind('ZAMO') pd.copyIntensity(pintensity, pgridshape) pd.copyOpacity (popacity, pgridshape) pd.innerRadius(0) pd.outerRadius(28) pd.repeatPhi(8) pd.metric(metric) pd.rMax(50) screen=core.Screen() screen.metric(metric) screen.resolution(64) screen.time(1000., "geometrical_time") screen.distance(28., "geometrical") # Standard 24x36 field of view after a 55mm objective screen.fieldOfView(2.*numpy.arctan(18./55), 'radians') screen.anglekind('Rectilinear') screen.inclination(95., "degree") screen.PALN(180., "degree") sc=core.Scenery() sc.metric(metric) sc.screen(screen) sc.astrobj(pd) sc.nThreads(8) return sc def defaultTrajectory(screen): '''Get default trajectory and adapt screen (field-of-view etc.) ''' screen.observerKind('VelocitySpecified') screen.fieldOfView(90, 'degree') traj=std.Star() traj.metric(screen.metric()) traj.setInitCoord((0., 28., 0.8, 0.), (0., 0., 0.007)) return traj ### The main function def mk_video(scenery=None, func="orbiting_screen", orbit_trajectory=None, orbit_t0=0., orbit_t1=1000., static_t0=0., static_t1=1000., static_unit='geometrical', acceleration_maxvel=0.99, growth_factor_first=None, growth_factor_last=None, duration=10, fps=3, width=128, height=72, dangle1=None, dangle2=None, fov=None, verbose=0, debug=False, nthreads=8, output=None, backend=OpenCVVideoWriter, cmap=None, observerkind=None, plot=False, frame_first=0, frame_last=None ): '''Make a video from a Gyoto Scenery Keyword arguments: scenery -- the Scenery to animate, a string (XML file name), Gyoto.core.Scenery instance or None in which case a default Scenery is used func -- a callable which will be called as func(scenery, k) where k is the frame number. func() is responsible to mutate the Scenery for each frame, for instance by moving the camera, changing its field-of view etc.. func may also be a string, the name of one of the built-in callables: orbiting_screen (default), orbiting_screen_forward, static_screen, accelerating_tangential_screen or growing_mass. Those options take parameters below orbit_trajectory -- only if func above starts with 'orbiting_screen', a gyoto.std.Star instance or a string (XML file name) or None (in which case a default trajectory is used) specifying the trajectory of the Screen. orbit_t0 -- only if func above starts with 'orbiting_screen', proper time along the trajectory at the beginning of the movie orbit_t1 -- only if func above starts with 'orbiting_screen', proper time along the trajectory at the end of the movie static_t0-- only if func above is 'static_screen', coordinate observing time offset at first frame static_t0-- only if func above is 'static_screen', coordinate observing time offset at last frame static_unit -- only if func above is 'static_screen', unit in which static_t0 and static_t1 are expressed ('geometrical'). acceleration_maxvel -- only if func is 'accelerating_tangential_screen', maximum velocity of the observer, in terms of c (default: 0.99) growth_factor_first -- only if func is 'growing_mass', scale factor for first frame. growth_factor_last -- only if func is 'growing_mass', scale factor for last frame. duration -- duration pf the movie in seconds (default: 10.) fps -- frames per second (default: 3) width -- width of the movie in pixels (default: 128) height -- height of the movie in pixels (default: 72) dangle1 -- rotate the camera dangle1 degrees horizontally dangle2 -- rotate the camera dangle2 degrees vertically fov -- screen field-of-view verbose -- verbosity level (default: 0) debug -- debug mode (default: False) nthreads -- number of parallel threads to use (default: 8) output -- output file name backend -- class implementing VideoWriter observerkind -- change observer kind (default: VelocitySpecified) plot -- show each frame (default: False) ''' # Set a few variables nframes=int(duration*fps) # Read or create Scenery if scenery is None: sc=defaultScenery() elif type(scenery) is core.Scenery: sc=scenery else: sc=core.Factory(scenery).scenery() screen=sc.screen() metric=sc.metric() # Select video type, init func callable if func == 'orbiting_screen': # Read or create trajectory if orbit_trajectory is None: traj=defaultTrajectory(screen) elif type(orbit_trajectory) is std.Star: traj=orbit_trajectory else: traj=std.Star(core.Factory(orbit_trajectory).astrobj()) traj.metric(metric) screen.observerKind('VelocitySpecified') func=orbiting_screen(trajectory=traj, t0=orbit_t0, t1=orbit_t1) elif func == 'static_screen': func=static_screen(unit=static_unit, t0=static_t0, t1=static_t1) elif func == 'orbiting_screen_forward': # Read or create trajectory if orbit_trajectory is None: traj=defaultTrajectory(screen) elif type(orbit_trajectory) is std.Star: traj=orbit_trajectory else: traj=std.Star(core.Factory(orbit_trajectory).astrobj()) traj.metric(metric) screen.observerKind('FullySpecified') func=orbiting_screen_forward(trajectory=traj, t0=orbit_t0, t1=orbit_t1) elif func == 'accelerating_tangential_screen': screen.observerKind('VelocitySpecified') screen.dangle1(-45, 'degree') screen.fieldOfView(90, 'degree') func=accelerating_tangential_screen(maxvel=acceleration_maxvel) elif func == 'growing_mass': func=growing_mass(sc) if growth_factor_first is not None: func.factor_first=growth_factor_first if growth_factor_last is not None: func.factor_last=growth_factor_last # else assume func is a callable # Override some values set on command-line if (observerkind is not None): screen.observerKind(observerkind) if dangle1 is not None: screen.dangle1(dangle1, 'degree') if dangle2 is not None: screen.dangle2(dangle2, 'degree') if fov is not None: screen.fieldOfView(fov, 'degree') # Prepare for ray-tracing nframes=int(duration*fps) screen.resolution(max(height, width)) core.verbose(verbose) core.debug(debug) sc.nThreads(nthreads) # Open video if backend == 'OpenCV': backend=OpenCVVideoWriter elif backend == 'PyAV': backend=PyAVVideoWriter elif backend is None or backend == 'Null': backend=NullVideoWriter if type(output) == str or backend is NullVideoWriter: video=backend(output, fps, width, height) elif isinstance(output, VideoWriter): video=output else: raise ValueError('output needs to be a string or VideoWriter') if type(cmap) == str: video.cmap=plt.cm.get_cmap(cmap) elif cmap is not None: video.cmap=cmap # Loop on frame number if frame_last is None: frame_last=nframes-1 for k in range(frame_first, frame_last+1): print(k, "/", nframes) intensity=rayTraceFrame(sc, func, k, nframes, width, height) frame=video.colorize(intensity) if plot: plt.imshow(frame, origin='lower') plt.show() video.write(frame) # Close video del video ### Define arguments parser = argparse.ArgumentParser(description= '''Make a video from a Gyoto Scenery Synopsys: gyoto mk-video --output= [--options...] Several types of videos are available and can be selected with --func. Currently, only the KerrBL Metric implements the methods needed for those various videos (zamoVelocity, circularVelocity and observerTetrad are needed). All parameters except --output have reasonable defaults. For even more advanced usage, see the module 'gyoto.animate' in Python. This script requires one of the modules OpenCV-python or PyAV to be installed (see --backend option). gyoto mk-video --output= \\ --func=static_screen \\ [--scenery=] \\ [--static-unit=