music-1.1.16/0000755000175000017500000000000013571740114007724 500000000000000music-1.1.16/AUTHORS0000644000175000017500000000044513571617503010724 00000000000000To find out what should go in this file, see "Information For Maintainers of GNU Software" (maintain.texi), the section called "Recording Changes". Mikael Djurfeldt Örjan Ekeberg Johannes Hjorth wrote the viewevents utility. Eilif Müller added support for MPICH 2.0 music-1.1.16/COPYING0000644000175000017500000010451313571617503010710 00000000000000 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 . music-1.1.16/Makefile.am0000644000175000017500000000153413571617503011710 00000000000000SUBDIRS = mpidep rudeconfig src utils @TESTDIR@ @EXTRAS@ doc @EXAMPLESDIR@ @MUSICCONFIGDIR@ @PYMUSIC_SUBDIR@ @ROS_SUBDIR@ debdir=../@PACKAGE_NAME@-@PACKAGE_VERSION@ debian-source: dist mv @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz ../@PACKAGE_NAME@_@PACKAGE_VERSION@.orig.tar.gz @test ! -e $(debdir) || ( echo "*** Remove directory ../@PACKAGE_NAME@-@PACKAGE_VERSION@" && exit 1 ) ( cd ..; tar zxf @PACKAGE_NAME@_@PACKAGE_VERSION@.orig.tar.gz ) mkdir $(debdir)/debian cp -pr $(srcdir)/debian/* $(debdir)/debian EXTRA_DIST = BUGS #dist-hook: # rm $(distdir)/TODO installcheck-local: if LAUNCHSTYLE_SET /bin/sh $(DESTDIR)$(bindir)/music_tests else @echo "checkinstall target is supported only when compiled with openMPI or MPICH libraries." @exit 1 endif distuninstallcheck: @: #uninstall: # @echo "make: uninstall target is not supported." music-1.1.16/config.sub0000755000175000017500000010645013571626611011642 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2018 Free Software Foundation, Inc. timestamp='2018-02-22' # 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 to . # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS Canonicalize a configuration name. Options: -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-2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo "$1" exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ kopensolaris*-gnu* | cloudabi*-eabi* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) basic_machine=`echo "$1" | sed 's/-[^-]*$//'` if [ "$basic_machine" != "$1" ] then os=`echo "$1" | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 ;; -lynx*5) os=-lynxos5 ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arceb \ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | avr | avr32 \ | ba \ | be32 | be64 \ | bfin \ | c4x | c8051 | clipper \ | d10v | d30v | dlx | dsp16xx \ | e2k | epiphany \ | fido | fr30 | frv | ft32 \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia16 | ia64 \ | ip2k | iq2000 \ | k1om \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa32r6 | mipsisa32r6el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64r6 | mipsisa64r6el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 | or1k | or1knd | or32 \ | pdp10 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pru \ | pyramid \ | riscv32 | riscv64 \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | visium \ | wasm32 \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; leon|leon[3-9]) basic_machine=sparc-$basic_machine ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) ;; ms1) basic_machine=mt-unknown ;; strongarm | thumb | xscale) basic_machine=arm-unknown ;; xgate) basic_machine=$basic_machine-unknown os=-none ;; xscaleeb) basic_machine=armeb-unknown ;; xscaleel) basic_machine=armel-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | ba-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | c8051-* | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | e2k-* | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ | ip2k-* | iq2000-* \ | k1om-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | microblaze-* | microblazeel-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa32r6-* | mipsisa32r6el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64r6-* | mipsisa64r6el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | or1k*-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pru-* \ | pyramid-* \ | riscv32-* | riscv64-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | visium-* \ | wasm32-* \ | 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-pc os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; asmjs) basic_machine=asmjs-unknown ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2*) basic_machine=m68k-bull os=-sysv3 ;; e500v[12]) basic_machine=powerpc-unknown os=$os"spe" ;; e500v[12]-*) basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=$os"spe" ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; 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 ;; vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; leon-*|leon[3-9]-*) basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze*) basic_machine=microblaze-xilinx ;; mingw64) basic_machine=x86_64-pc os=-mingw64 ;; mingw32) basic_machine=i686-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; moxiebox) basic_machine=moxie-unknown os=-moxiebox ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i686-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; nsv-tandem) basic_machine=nsv-tandem ;; nsx-tandem) basic_machine=nsx-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos | rdos64) basic_machine=x86_64-pc os=-rdos ;; rdos32) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh5el) basic_machine=sh5le-unknown ;; 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 ;; x64) basic_machine=x86_64-pc ;; 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 ;; 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 ;; 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 ;; 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 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # es1800 is here to avoid being matched by es* (a different OS) -es1800*) os=-ose ;; # Now accept the basic system types. # The portable systems comes first. # Each alternative MUST end in a * to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* | -cloudabi* | -sortix* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \ | -midnightbsd*) # 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 | -xray | -os68k* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* \ | -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 ;; -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 ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -pikeos*) # Until real need of OS specific support for # particular features comes up, bare metal # configurations are quite functional. case $basic_machine in arm*) os=-eabi ;; *) os=-elf ;; esac ;; -nacl*) ;; -ios) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; c8051-*) os=-elf ;; hexagon-*) os=-elf ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; pru-*) os=-elf ;; *-be) os=-beos ;; *-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 ;; *-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-functions 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: music-1.1.16/utils/0000755000175000017500000000000013571740113011063 500000000000000music-1.1.16/utils/datafile.cc0000644000175000017500000000353113571617503013073 00000000000000/* This file is part of the skol suite. Copyright (C) 2005, 2008 Mikael Djurfeldt The skol suite 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, or (at your option) any later version. The skol suite 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 the skol suite; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "datafile.h" using std::numeric_limits; bool Datafile::atHeaderLine () { return peek () == '#'; } void Datafile::ignoreLine () { ignore (numeric_limits::max (), '\n'); } void Datafile::ignoreWhitespace () { while (isspace (peek ())) ignore (); } bool Datafile::scanLine (const char* pattern) { const char* p = pattern; while (*p != '\0') { if (peek () == '\n') { ignore (); return false; } if (peek () == *p) ++p; else p = pattern; ignore (); } return true; } bool Datafile::read (const char* pattern, int& x) { seekg (0); while (atHeaderLine ()) if (scanLine (pattern)) { *this >> x; return true; } return false; } bool Datafile::read (const char* pattern, double& x) { seekg (0); while (atHeaderLine ()) if (scanLine (pattern)) { *this >> x; return true; } return false; } void Datafile::skipHeader () { ignoreWhitespace (); while (atHeaderLine ()) ignoreLine (); } music-1.1.16/utils/Makefile.am0000644000175000017500000000434013571617503013046 00000000000000## Process this file with Automake to create Makefile.in ACLOCAL = $(top_srcdir)/aclocal.sh bin_PROGRAMS = music @MPI_UTILS@ @OPTIONAL_UTILS@ EXTRA_PROGRAMS = eventsource eventsink eventselect \ eventgenerator eventcounter eventlogger \ contsink messagesource viewevents if DARWIN OPENGL = -framework OpenGL GLUT = -framework GLUT else OPENGL = -lGL GLUT = -lGLU endif MUSIC_INCLUDE = -I$(top_srcdir)/src -I$(top_builddir)/src music_SOURCES = music.cc music_CXXFLAGS = $(MUSIC_INCLUDE) -I$(top_srcdir) @MPI_CXXFLAGS@ music_LDADD = $(top_builddir)/src/libmusic.la $(top_builddir)/mpidep/libmpidep.la @MPI_LDFLAGS@ eventsource_SOURCES = eventsource.cc datafile.h datafile.cc eventsource_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ eventsource_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ eventsink_SOURCES = eventsink.cc eventsink_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ eventsink_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ eventselect_SOURCES = eventselect.cc eventselect_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ eventselect_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ eventgenerator_SOURCES = eventgenerator.cc eventgenerator_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ eventgenerator_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ eventcounter_SOURCES = eventcounter.cc eventcounter_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ eventcounter_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ eventlogger_SOURCES = eventlogger.cc eventlogger_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ eventlogger_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ contsink_SOURCES = contsink.cc contsink_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ contsink_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ messagesource_SOURCES = messagesource.cc messagesource_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ messagesource_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ viewevents_SOURCES = viewevents.cpp VisualiseNeurons.cpp VisualiseNeurons.h viewevents_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ viewevents_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ -lglut -lpthread viewevents_LDFLAGS = $(OPENGL) $(GLUT) MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) music-1.1.16/utils/eventgenerator.cc0000644000175000017500000001431613571617503014355 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ // Leave as first include---required by BG/L #include #include #include #include #include #include extern "C" { #include #include } #include #include "datafile.h" const double DEFAULT_TIMESTEP = 1e-2; const double DEFAULT_FREQUENCY = 10.0; // Hz void usage (int rank) { if (rank == 0) { std::cerr << "Usage: eventgenerator [OPTION...] N_UNITS" << std::endl << "`eventgenerator' generates spikes from a Poisson distribution." << std::endl << std:: endl << " -t, --timestep TIMESTEP time between tick() calls (default " << DEFAULT_TIMESTEP << " s)" << std::endl << " -b, --maxbuffered TICKS maximal amount of data buffered" << std::endl << " -f, --frequency FREQ average frequency (default " << DEFAULT_FREQUENCY << " Hz)" << std::endl << " -m, --imaptype TYPE linear (default) or roundrobin" << std::endl << " -i, --indextype TYPE global (default) or local" << std::endl << " --out PORTNAME output port name (default: out)" << std::endl << " -h, --help print this help message" << std::endl << std::endl << "Report bugs to ." << std::endl; } exit (1); } string portName ("out"); int nUnits; double timestep = DEFAULT_TIMESTEP; int maxbuffered = 0; double freq = DEFAULT_FREQUENCY; string imaptype = "linear"; string indextype = "global"; void getargs (int rank, int argc, char* argv[]) { enum { OUT }; opterr = 0; // handle errors ourselves while (1) { static struct option longOptions[] = { {"timestep", required_argument, 0, 't'}, {"maxbuffered", required_argument, 0, 'b'}, {"frequency", required_argument, 0, 'f'}, {"imaptype", required_argument, 0, 'm'}, {"indextype", required_argument, 0, 'i'}, {"help", no_argument, 0, 'h'}, {"out", required_argument, 0, OUT}, {0, 0, 0, 0} }; /* `getopt_long' stores the option index here. */ int option_index = 0; // the + below tells getopt_long not to reorder argv int c = getopt_long (argc, argv, "+t:b:f:m:i:h", longOptions, &option_index); /* detect the end of the options */ if (c == -1) break; switch (c) { case 't': timestep = atof (optarg); // NOTE: could do error checking continue; case 'b': maxbuffered = atoi (optarg); continue; case 'f': freq = atof (optarg); // NOTE: error checking here as well continue; case 'm': imaptype = optarg; if (imaptype != "linear" && imaptype != "roundrobin") { usage (rank); abort (); } continue; case 'i': indextype = optarg; if (indextype != "global" && indextype != "local") { usage (rank); abort (); } continue; case OUT: portName = optarg; continue; case '?': break; // ignore unknown options case 'h': usage (rank); default: abort (); } } if (argc != optind + 1) usage (rank); nUnits = atoi (argv[optind]); } double negexp (double m) { return - m * log (drand48 ()); } int main (int argc, char *argv[]) { MUSIC::Setup* setup = new MUSIC::Setup (argc, argv); MPI::Intracomm comm = setup->communicator (); int nProcesses = comm.Get_size (); int rank = comm.Get_rank (); getargs (rank, argc, argv); MUSIC::EventOutputPort* out = setup->publishEventOutput (portName); if (!out->isConnected ()) { if (rank == 0) std::cerr << "eventgenerator port is not connected" << std::endl; comm.Abort (1); } MUSIC::Index::Type type; if (indextype == "global") type = MUSIC::Index::GLOBAL; else type = MUSIC::Index::LOCAL; std::vector ids; std::vector nextSpike; if (imaptype == "linear") { int nUnitsPerProcess = nUnits / nProcesses; int nLocalUnits = nUnitsPerProcess; int rest = nUnits % nProcesses; int firstId = nUnitsPerProcess * rank; if (rank < rest) { firstId += rank; nLocalUnits += 1; } else firstId += rest; for (int i = 0; i < nLocalUnits; ++i) ids.push_back (firstId + i); MUSIC::LinearIndex indices (firstId, nLocalUnits); if (maxbuffered > 0) out->map (&indices, type, maxbuffered); else out->map (&indices, type); } else { for (int i = rank; i < nUnits; i += nProcesses) ids.push_back (i); MUSIC::PermutationIndex indices (&ids.front (), ids.size ()); if (maxbuffered > 0) out->map (&indices, type, maxbuffered); else out->map (&indices, type); } double stoptime; setup->config ("stoptime", &stoptime); MUSIC::Runtime* runtime = new MUSIC::Runtime (setup, timestep); srand48 (rank); // Use different seeds double m = 1.0 / freq; for (unsigned int i = 0; i < ids.size (); ++i) nextSpike.push_back (negexp (m)); double time = runtime->time (); while (time < stoptime) { double nextTime = time + timestep; if (type == MUSIC::Index::GLOBAL) { for (unsigned int i = 0; i < ids.size (); ++i) while (nextSpike[i] < nextTime) { out->insertEvent (nextSpike[i], MUSIC::GlobalIndex (ids[i])); nextSpike[i] += negexp (m); } } else { for (unsigned int i = 0; i < ids.size (); ++i) while (nextSpike[i] < nextTime) { out->insertEvent (nextSpike[i], MUSIC::LocalIndex (i)); nextSpike[i] += negexp (m); } } // Make data available for other programs runtime->tick (); time = runtime->time (); } runtime->finalize (); delete runtime; return 0; } music-1.1.16/utils/datafile.h0000644000175000017500000000234713571617503012741 00000000000000/* This file is part of the skol suite. Copyright (C) 2005, 2008, 2009 Mikael Djurfeldt The skol suite 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, or (at your option) any later version. The skol suite 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 the skol suite; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef DATAFILE_H #include #include class Datafile : public std::ifstream { protected: bool atHeaderLine (); bool scanLine (const char* pattern); public: Datafile (std::string filename) : std::ifstream (filename.data ()) { } void ignoreLine (); void ignoreWhitespace (); bool read (const char*, int& x); bool read (const char*, double& x); void skipHeader (); }; #define DATAFILE_H #endif music-1.1.16/utils/viewevents.cpp0000644000175000017500000000201213571617503013707 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ // viewevents.cpp written by Johannes Hjorth, hjorth@nada.kth.se #include "VisualiseNeurons.h" #include #include #include int main(int argc, char **argv) { VisualiseNeurons *vn = new VisualiseNeurons(); vn->run(argc,argv); std::cout << "Done." << std::endl; vn->finalize(); } music-1.1.16/utils/VisualiseNeurons.h0000644000175000017500000001120213571617503014474 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ // VisualiseNeurons.h written by Johannes Hjorth, hjorth@nada.kth.se #ifdef __APPLE__ #include #else #include #endif #include #include #include #include #include #include #include #include "datafile.h" #include #include #include #include #include #include #include #include #ifndef _VISUALISE_NEURONS #define _VISUALISE_NEURONS #define DEFAULT_TIMESTEP 1e-3 #define PI 3.141592653589793 // Inner class used in priority queue class TimeIdPair { public: TimeIdPair() { time_ = -1; }; TimeIdPair(double time, MUSIC::GlobalIndex id) { time_ = time; id_ = id; } //bool operator<(const TimeIdPair&) const; bool operator<(const TimeIdPair&) const; double getTime() const { return time_; } MUSIC::GlobalIndex getId() const { return id_; } private: double time_; MUSIC::GlobalIndex id_; }; class VisualiseNeurons : public MUSIC::EventHandlerGlobalIndex { public: VisualiseNeurons() { tau_ = 10e-3; // How fast does activity decay in visualisation? time_ = 0; // Current time dt_ = DEFAULT_TIMESTEP; stopTime_ = 0; // End of simulation time oldTime_ = 0; // Time of previous timestep done_ = 0; // Are we there yet? maxDist_ = 0; // Radie of a thought sphere containing all neurons is3dFlag_ = 0; // If it is 3d structure, then lets rotate. synchFlag_ = 0; // Should we try to keep a steady pace or go full speed? scaleTime_ = 1; gettimeofday(&tickStartTime_,NULL); windowTitle_ = "viewevents"; } void run(int argc, char **argv); void readConfigFile(string filename); void finalize(); // Event handler for incomming spikes void operator () ( double t, MUSIC::GlobalIndex id ); void display(); void rotateTimer(); void tick(); void addNeuron(double x, double y, double z, double r, double cIdx); // Static wrapper functions static void displayWrapper(); static void rotateTimerWrapper(int v); static void* runMusic(void *arg); typedef struct { GLdouble x; GLdouble y; GLdouble z; GLdouble r; // radie of neuron }neuronCoord; typedef struct { GLdouble r; GLdouble g; GLdouble b; }neuronColour; private: void getArgs(int argc, char* argv[]); void printHelp(); MUSIC::Setup* setup_; // ONLY to be used during setup phase MUSIC::Runtime* runtime_; // Music runtime object GLuint neuronList_; // OpenGL list for drawing object std::vector coords_; // Coordinates of neuron population std::vector volt_; // Activity of neuron population std::vector cMap_; // Which colour does neurons have std::vector baseLineCol_; // Colour of resting neuron std::vector excitedCol_; // Colour of spiking neuron double spikeScale_; // eg, 0.1 = scale up spiking neurons by 10% string windowTitle_; double dt_; double tau_; // Tau decay of activity double time_; // Current time double oldTime_; // Previous timestep double stopTime_; // End of simulations int done_; // Simulation done? double rotAngle_; // Current rotation angle int rank_; // Rank of this process double maxDist_; // Distance from origo to outermost neuron // Used when calculating camera position int is3dFlag_; pthread_t tickThreadID_; int synchFlag_; // Do we try to synch, or run full throttle? double scaleTime_; // real time / simulated time struct timeval tickStartTime_; struct timeval tickEndTime_; struct timeval tickDelay_; string confFile_; // Config file with colours and coordinates //priority_queue priorityQueue_; std::priority_queue priorityQueue_; }; static std::vector objTable_; #endif music-1.1.16/utils/VisualiseNeurons.cpp0000644000175000017500000003735013571617503015043 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ // VisualiseNeurons.cpp written by Johannes Hjorth, hjorth@nada.kth.se #include "VisualiseNeurons.h" #include void VisualiseNeurons::printHelp() { std::cerr << "Usage: viewevents [OPTION...] CONFIGFILE" << std::endl << "`viewevents' receives spikes through a MUSIC input port" << std::endl << "and displays them as a 3D graphical representation." << std::endl << std::endl << " -t, --timestep TIMESTEP time between tick() calls (default 1 ms)" << std::endl << " -s, --scaletime SCALING real time to simulated time scale factor (s)" << std::endl << " If omitted, the visualisation runs at full speed." << std::endl << " -h, --help print this help message" << std::endl << " -T, --title TITLE window title" << std::endl << std::endl << "CONFIGFILE format:" << std::endl << "" << std::endl << "" << std::endl << "" << std::endl << "[Baseline colour neuron i: R G B]" << std::endl << "[Excited colour neuron i: R G B]" << std::endl << "" << std::endl << "[Neuron i information: X Y Z RADIE NEURONTYPEINDEX]" << std::endl << std::endl << "Report bugs to ." << std::endl; exit(1); } void VisualiseNeurons::getArgs(int argc, char* argv[]) { opterr = 0; // handle errors ourselves while (1) { static struct option long_options[] = { {"timestep", required_argument, 0, 't'}, {"scaletime", required_argument, 0, 's'}, {"help", no_argument, 0, 'h'}, {"title", required_argument, 0, 'T'}, {0, 0, 0, 0} }; /* `getopt_long' stores the option index here. */ int option_index = 0; // the + below tells getopt_long not to reorder argv int c = getopt_long (argc, argv, "+t:s:T:h", long_options, &option_index); /* detect the end of the options */ if (c == -1) break; switch (c) { case 't': dt_ = atof (optarg); //*fixme* error checking std::cout << "Using dt = " << dt_ << std::endl; continue; case 's': synchFlag_ = 1; scaleTime_ = atof(optarg); std::cout << "Using scaletime: " << scaleTime_ << std::endl; continue; case '?': break; // ignore unknown options case 'T': windowTitle_ = optarg; //new string(optarg); continue; case 'h': printHelp(); // fall through... default: abort (); } } if (argc < optind + 1 || argc > optind + 1) { printHelp(); // exits } confFile_ = string(argv[optind]); } void VisualiseNeurons::run(int argc, char **argv) { // Add this object to the static-wrapper objTable_.push_back(this); // Init music setup_ = new MUSIC::Setup(argc, argv); MPI::Intracomm comm = setup_->communicator(); rank_ = comm.Get_rank(); if(rank_ > 0) { std::cerr << argv[0] << " only supports one process currently!" << std::endl; exit(-1); } // Init glut glutInit(&argc,argv); glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_CONTINUE_EXECUTION); // Store the stop time setup_->config ("stoptime", &stopTime_); // Parse inparameters getArgs(argc,argv); readConfigFile(confFile_); MUSIC::EventInputPort* evport = setup_->publishEventInput("plot"); if (!evport->isConnected()) { if (rank_ == 0) std::cerr << "port `plot' is not connected" << std::endl; comm.Abort (1); } if(evport->width() != (int) coords_.size()) { std::cerr << "Size mismatch: port width " << evport->width() << " number of neurons to plot " << coords_.size() << std::endl; } MUSIC::LinearIndex indexmap(0, evport->width()); evport->map (&indexmap, this, 0.0); double stoptime; setup_->config ("stoptime", &stoptime); // GLUT glutInitDisplayMode(GLUT_DOUBLE | GLUT_DEPTH); glutInitWindowSize(500, 500); glutInitWindowPosition(50, 50); glutCreateWindow(windowTitle_.c_str()); // Initialise glEnable(GL_DEPTH_TEST); glClearColor (0.0,0.0,0.0,1.0); GLfloat pos[4] = { -100, 100, 200, 0.0 }; GLfloat light[4] = { 1.0, 1.0, 1.0, 1.0}; // Lightsources glLightfv(GL_LIGHT0, GL_POSITION, pos); glLightfv(GL_LIGHT0, GL_DIFFUSE, light); glLightfv(GL_LIGHT0, GL_SPECULAR, light); glEnable(GL_LIGHT0); glEnable(GL_LIGHTING); // Default materials glColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE); glEnable(GL_COLOR_MATERIAL); glEnable(GL_NORMALIZE); // Setup camera glMatrixMode(GL_PROJECTION); glLoadIdentity(); double fov = (is3dFlag_) ? 0.7*maxDist_/2 : 0.5*maxDist_/2; // std::cout << "MAX DIST: " << maxDist_ << std::endl; glFrustum(-fov,fov,-fov,fov,maxDist_/2,3.1*maxDist_); // Visible range 50-800 glTranslated(0,0,-2.2*maxDist_); //-600 double camAng = (is3dFlag_) ? 30 : -30; glRotated(camAng,1,0,0); glMatrixMode(GL_MODELVIEW); // Create displaylist for neuron(s) GLUquadric* neuronQuad = gluNewQuadric(); int nVert = (coords_.size() < 500) ? 10 : 2; neuronList_ = glGenLists(1); glNewList(neuronList_, GL_COMPILE); gluSphere(neuronQuad, 1, nVert*2, nVert); //gluSphere(neuronQuad, 1, 20, 10); glEndList(); glutDisplayFunc(displayWrapper); glutPostRedisplay(); glFinish(); // Music done. if(rank_ == 0) { void *exitStatus; glutTimerFunc(25,rotateTimerWrapper, 1); pthread_create(&tickThreadID_, NULL, runMusic, &synchFlag_); glutPostRedisplay(); glFinish(); glutMainLoop(); pthread_join(tickThreadID_,&exitStatus); } else { std::cerr << "Only run start() on rank 0" << std::endl; } } void VisualiseNeurons::finalize() { runtime_->finalize (); delete runtime_; // std::cout << "Rank " << rank_ // << ": Searching for VisualiseNeurons wrapper object"; for(unsigned int i = 0; i < objTable_.size(); i++) { if(objTable_[i] == this) { //std::cout << "found."; } else { //std::cout << "."; } } //std::cout << std::endl; // Should delete all other objects also. } void VisualiseNeurons::display() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); glRotated(rotAngle_,0.1*sin(rotAngle_/100),1,0); for(unsigned int i = 0; i < coords_.size(); i++) { // Here we translate coordinate system and draw a neuron glPushMatrix(); //double vMin = -100e-3; //double vMax = 100e-3; double col = volt_[i]; //(volt_[i] - vMin)/(vMax - vMin); // maxCol is [1 0.9 0] // GLdouble red = 0.25 + 0.75*col; // GLdouble green = 0.53 + 0.37*col; // GLdouble blue = 0.10 - 0.10*col; neuronColour tmpColB = baseLineCol_[cMap_[i]]; neuronColour tmpColE = excitedCol_[cMap_[i]]; GLdouble red = tmpColB.r + (tmpColE.r-tmpColB.r)*col; GLdouble green = tmpColB.g + (tmpColE.g-tmpColB.g)*col; GLdouble blue = tmpColB.b + (tmpColE.b-tmpColB.b)*col; glColor3d(red,green,blue); //float specReflection[] = { 0.2*col, 0.2*col, 0.2*col, 1 }; //glMaterialfv(GL_FRONT, GL_SPECULAR, specReflection); glTranslated(coords_[i].x,coords_[i].y,coords_[i].z); double scale = coords_[i].r*(1+spikeScale_*col); glScaled(scale,scale,scale); glCallList(neuronList_); glPopMatrix(); } char buffer[20]; sprintf(buffer,"%.3f s",time_); //std::cout << "Buffer: " << buffer << std::endl; //std::cout << time_ << std::endl; glLoadIdentity(); glColor3d(0.2,0.2,0.4); // glRasterPos2d(-maxDist_*1.7,-maxDist_*1.75); // glRasterPos3d(-maxDist_*2,-1.7*maxDist_,0*maxDist_); if(is3dFlag_) { glColor3d(1,1,1); glRasterPos3d(-maxDist_*0.9,-maxDist_*0.5,maxDist_); } else { glRasterPos3d(-maxDist_*0.8,maxDist_*0.8,0.3*maxDist_); } for(unsigned int i = 0; i < strlen(buffer); i++) { glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18,buffer[i]); } glutSwapBuffers(); } void VisualiseNeurons::addNeuron(double x, double y, double z, double r, double cIdx) { if(cIdx >= cMap_.size()) { std::cerr << "VisualiseNeurons: Neuron colour index " << cIdx << " out of range, using 0." << std::endl; cIdx = 0; } // std::cout << "Adding neuron " << x << "," << y << "," << z // << "," << r << "," << cIdx << std::endl; neuronCoord p; p.x = x; p.y = y; p.z = z; p.r = r; coords_.push_back(p); volt_.push_back(0); cMap_.push_back(cIdx); } void VisualiseNeurons::rotateTimer() { rotAngle_ += 0.5; if(rotAngle_ >= 36000) { rotAngle_ -= 36000; } } void VisualiseNeurons::operator () (double t, MUSIC::GlobalIndex id) { //std::cout << "Event " << id << " detected at " << t // << " (vis time = " << time_ << ")" << std::endl; assert(0 <= id && id < (int) volt_.size()); // Check that it is within range if(t < time_) // time_ is old timestep { std::cerr << "Received old spike " << t << " at " << time_ << std::endl; } TimeIdPair *tmpPair = new TimeIdPair(t,id); // Add time to priority queue priorityQueue_.push(*tmpPair); } void VisualiseNeurons::tick() { if(!done_){ // Reinitialize realtime clock at first tick if (runtime_->time () == 0.0) gettimeofday(&tickStartTime_,NULL); #if 0 // Call music to get the latest simulation data std::cerr << "Size: " << volt_.size() << " "; std::cerr << "Entering tick (" << time_ <<")..."; #endif runtime_->tick(); #if 0 std::cerr << "done(" << time_ <<")." << std::endl; #endif oldTime_ = time_; time_ = runtime_->time (); // Make sure the time steps are correct assert(dt_ - 1e-9 < time_ - oldTime_ && time_ - oldTime_ < dt_ + 1e-9); // Should we make the visualisation go in realTime=scaleTime_*simTime? if(synchFlag_) { // Yes, how long did we spend in the tick? gettimeofday(&tickEndTime_,NULL); // How much of the time allocated for this timestep remains? double delayLeft = dt_*scaleTime_ - (tickEndTime_.tv_sec - tickStartTime_.tv_sec) - (tickEndTime_.tv_usec - tickStartTime_.tv_usec) / 1000000.0; if(delayLeft > 0) { // We reuse the timeval for the delay tickDelay_.tv_sec = 0; tickDelay_.tv_usec = (int) (delayLeft*1e6); // std::cerr << "Delay left : " << tickDelay_.tv_usec // << " milliseconds" << std::endl; // Delay so that enough time passes //select(0,0,0,0,&tickDelay_); usleep(tickDelay_.tv_usec); } else { // Whoops, simulation were too slow... print error. std::cerr << "t = " << time_ << ": Music's tick() took " << -delayLeft*1e6 << " microseconds too long to execute" << std::endl; } // Set end of this tick as start of next tick gettimeofday(&tickStartTime_,NULL); } // Decay the volt/activity for(unsigned int i = 0; i < volt_.size(); i++) { volt_[i] *= 1-(time_-oldTime_)/tau_; } // Add any new spikes that occured since last tick() while(!priorityQueue_.empty() && priorityQueue_.top().getTime() <= time_) { volt_[priorityQueue_.top().getId()] = 1; priorityQueue_.pop(); } // Tell GLUT to update the screen //glutPostRedisplay(); // Have we reached the end? if(time_ >= stopTime_ - dt_/2.0) { done_ = 1; } } else { std::cout << "Last tick." << std::endl; } } void VisualiseNeurons::displayWrapper() { for(unsigned int i = 0; i < objTable_.size(); i++) { VisualiseNeurons *vn = objTable_[i]; vn->display(); } } void VisualiseNeurons::rotateTimerWrapper(int v) { VisualiseNeurons *vn = 0; for(unsigned int i = 0; i < objTable_.size(); i++) { vn = objTable_[i]; if(vn->is3dFlag_) { vn->rotateTimer(); } } glutPostRedisplay(); glFinish(); if(vn && !(vn->done_)) { glutTimerFunc(100,rotateTimerWrapper, 1); } } void* VisualiseNeurons::runMusic(void *arg) { VisualiseNeurons *vn = 0; for(unsigned int i = 0; i < objTable_.size(); i++) { vn = objTable_[i]; // Switch to runtime mode // If the code is extended to handle more than one process // then this will actually be SLOWER since the runtimes // are *not* created in parallell // Reason for this current setup is that we want to start // the GLUT-loop as fast as possible, to get something on screen. vn->runtime_ = new MUSIC::Runtime (vn->setup_, vn->dt_); } int allDone = 0; while(!allDone && objTable_.size() > 0) { allDone = 1; for(unsigned int i = 0; i < objTable_.size(); i++) { vn = objTable_[i]; vn->tick(); if(vn && !vn->done_) { allDone = 0; } } } std::cout << "Simulation done." << std::endl; // Simulation done. glutLeaveMainLoop(); // Thread ends, return null return NULL; } void VisualiseNeurons::readConfigFile(string filename) { double x, y, z, r, dist; double minDist = 1e66, maxR = 0; neuronColour tmp; int i = 0; int nCols, cIdx; std::cout << "Reading : " << filename << std::endl; Datafile in(filename); if (!in) { std::cerr << "eventsource: could not open " << filename << std::endl; abort (); } // !!! WHY?!! // VisualiseNeurons.cpp:246: undefined reference to `datafile::skip_header()' //in.skip_header(); // How many different colours are there in >> nCols; std::cout << "VisualiseNeurons: Reading " << nCols << " different neuron types" << std::endl; for(i = 0; i < nCols; i++) { // Read in neuron base colours in >> tmp.r >> tmp.g >> tmp.b; baseLineCol_.push_back(tmp); // Read in neuron excited colour in >> tmp.r >> tmp.g >> tmp.b; excitedCol_.push_back(tmp); } // Read in neuron coordinates and colour in >> x >> y >> z >> r >> cIdx; while(!in.eof()) { addNeuron(x,y,z,r,cIdx); dist = sqrt(x*x + y*y + z*z); maxDist_ = (dist > maxDist_) ? dist : maxDist_; // All neurons are not in one plane if(abs(x) > 1e-9 && abs(y) > 1e-9 && abs(z) > 1e-9) { is3dFlag_ = 1; } // Dist and R are used to calculate spikeScale_ if(dist > 0) { minDist = (dist < minDist) ? dist : minDist; } maxR = (r > maxR) ? r : maxR; // std::cout << "Neuron " << i << " at " << x << "," << y << "," << z // << " radie " << r << std::endl; i++; // Read in neuron coordinates and colour index in >> x >> y >> z >> r >> cIdx; } spikeScale_ = (minDist/(3*maxR))-1; spikeScale_ = (spikeScale_ > 0) ? spikeScale_ : 0; std::cout << "Read " << i << " neuron positions" << std::endl; std::cout << "Setting spike scaling to " << spikeScale_ << std::endl; } /* bool VisualiseNeurons::TimeIdPair::operator<(const TimeIdPair& right) const { return time_ < right.getTime(); } */ //bool VisualiseNeurons::TimeIdPair::operator>(const TimeIdPair& right) const bool TimeIdPair::operator<(const TimeIdPair& right) const { // Note that we use > here, since we want lowest items first return time_ > right.getTime(); } music-1.1.16/utils/eventlogger.cc0000644000175000017500000001622513571617503013647 00000000000000#include #include #include #include extern "C" { #include #include } const double DEFAULT_TIMESTEP = 0.01; MPI::Intracomm comm; void usage (int rank) { if (rank == 0) { std::cerr << "Usage: eventlogger [OPTION...]" << std::endl << "`eventlogger' logs spikes from a MUSIC port." << std::endl << std::endl << " -t, --timestep TIMESTEP time between tick() calls (default " << DEFAULT_TIMESTEP << " s)" << std::endl << " -l, --acclatency LATENCY acceptable data latency (s)" << std::endl << " -b, --maxbuffered TICKS maximal amount of data buffered" << std::endl << " -m, --imaptype TYPE linear (default) or roundrobin" << std::endl << " -i, --indextype TYPE global (default) or local" << std::endl << " -a, --all each receiver rank reports all spikes" << std::endl << " --in PORTNAME input port name (default: in)" << std::endl << " --message-in PORTNAME message port name (default: message)" << std::endl << " -h, --help print this help message" << std::endl << std::endl << "Report bugs to ." << std::endl; } exit (1); } double apptime; class MyEventHandlerGlobal : public MUSIC::EventHandlerGlobalIndex { int rank; public: MyEventHandlerGlobal (int rank_) : rank (rank_) { } void operator () (double t, MUSIC::GlobalIndex id) { // For now: just print out incoming events std::cout << "Rank " << rank << ": Event (" << id << ", " << t << ") detected at " << apptime << std::endl; } }; class MyEventHandlerLocal: public MUSIC::EventHandlerLocalIndex { int rank; public: MyEventHandlerLocal (int rank_) : rank (rank_) { } void operator () (double t, MUSIC::LocalIndex id) { // For now: just print out incoming events std::cout << "Rank " << rank << ": Event (" << id << ", " << t << ") detected at " << apptime << std::endl; } }; class MyMessageHandler : public MUSIC::MessageHandler { int rank; public: MyMessageHandler (int rank_) : rank (rank_) { } void operator () (double t, void* msg, size_t size) { // Print out incoming messages std::string message (static_cast (msg), size); std::cout << "Rank " << rank << ": Message (" << t << ", " << message << ") detected at " << apptime << std::endl; } }; string portName ("in"); string messagePortName ("message"); double timestep = DEFAULT_TIMESTEP; double latency = 0.0; int maxbuffered = 0; std::string imaptype = "linear"; std::string indextype = "global"; bool all = false; bool useBarrier = false; int main (int argc, char* argv[]) { MUSIC::Setup* setup = new MUSIC::Setup (argc, argv); comm = setup->communicator (); int nProcesses = comm.Get_size (); // how many processes are there? int rank = comm.Get_rank (); // which process am I? enum { IN, MESSAGE_IN }; opterr = 0; // handle errors ourselves while (1) { static struct option longOptions[] = { {"timestep", required_argument, 0, 't'}, {"acclatency", required_argument, 0, 'l'}, {"maxbuffered", required_argument, 0, 'b'}, {"imaptype", required_argument, 0, 'm'}, {"indextype", required_argument, 0, 'i'}, {"all", no_argument, 0, 'a'}, {"adapter", no_argument, 0, 'z'}, {"help", no_argument, 0, 'h'}, {"in", required_argument, 0, IN}, {"message-in", required_argument, 0, MESSAGE_IN}, {0, 0, 0, 0} }; //`getopt_long' stores the option index here. int optionIndex = 0; // the + below tells getopt_long not to reorder argv int c = getopt_long (argc, argv, "+t:l:b:m:i:azh", longOptions, &optionIndex); // detect the end of the options if (c == -1) break; switch (c) { case 't': timestep = atof (optarg); // NOTE: could add error checking continue; case 'l': latency = atof (optarg); continue; case 'b': maxbuffered = atoi (optarg); continue; case 'm': imaptype = optarg; if (imaptype != "linear" && imaptype != "roundrobin") { usage (rank); abort (); } continue; case 'i': indextype = optarg; if (indextype != "global" && indextype != "local") { usage (rank); abort (); } continue; case 'a': all = true; continue; case 'z': useBarrier = true; continue; case IN: portName = optarg; continue; case MESSAGE_IN: messagePortName = optarg; continue; case '?': break; // ignore unknown options case 'h': usage (rank); default: abort (); } } // Port publishing MUSIC::EventInputPort* evport = setup->publishEventInput (portName); MUSIC::MessageInputPort* msgport = setup->publishMessageInput (messagePortName); if (!evport->isConnected () && !msgport->isConnected ()) { if (rank == 0) std::cerr << "eventlogger: no connected input ports" << std::endl; comm.Abort (1); } // Port mapping MyEventHandlerGlobal evhandlerGlobal (rank); MyEventHandlerLocal evhandlerLocal (rank); if (evport->isConnected ()) { // Split the width among the available processes int width = 0; if (evport->hasWidth ()) width = evport->width (); else { std::cerr << "port width not specified in Configuration file" << std::endl; comm.Abort (1); } if (imaptype == "linear") { int nLocal = width / nProcesses; int rest = width % nProcesses; int firstId = nLocal * rank; if (rank < rest) { firstId += rank; nLocal += 1; } else firstId += rest; MUSIC::LinearIndex indexmap (all ? 0 : firstId, all ? width : nLocal); if (indextype == "global") if (maxbuffered > 0) evport->map (&indexmap, &evhandlerGlobal, latency, maxbuffered); else evport->map (&indexmap, &evhandlerGlobal, latency); else if (maxbuffered > 0) evport->map (&indexmap, &evhandlerLocal, latency, maxbuffered); else evport->map (&indexmap, &evhandlerLocal, latency); } else { std::vector v; for (int i = all ? 0 : rank; i < width; i += all ? 1 : nProcesses) v.push_back (i); MUSIC::PermutationIndex indexmap (&v.front (), v.size ()); if (indextype == "global") if (maxbuffered > 0) evport->map (&indexmap, &evhandlerGlobal, latency, maxbuffered); else evport->map (&indexmap, &evhandlerGlobal, latency); else if (maxbuffered > 0) evport->map (&indexmap, &evhandlerLocal, latency, maxbuffered); else evport->map (&indexmap, &evhandlerLocal, latency); } } // Messages MyMessageHandler msgHandler (rank); if (msgport->isConnected ()) { if (maxbuffered > 0) msgport->map (&msgHandler, latency, maxbuffered); else msgport->map (&msgHandler, latency); } double stoptime; setup->config ("stoptime", &stoptime); if (useBarrier) MPI::COMM_WORLD.Barrier(); // Run MUSIC::Runtime* runtime = new MUSIC::Runtime (setup, timestep); apptime = runtime->time (); while (apptime < stoptime) { // Retrieve data from other program runtime->tick (); apptime = runtime->time (); } runtime->finalize (); delete runtime; return 0; } music-1.1.16/utils/eventsource.cc0000644000175000017500000001354013571617503013665 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ // Leave as first include---required by BG/L #include #include #include #include #include extern "C" { #include #include } #include #include "datafile.h" const double DEFAULT_TIMESTEP = 1e-2; void usage (int rank) { if (rank == 0) { std::cerr << "Usage: eventsource [OPTION...] N_UNITS PREFIX [SUFFIX]" << std::endl << "`eventsource' reads spikes from a set of files with names PREFIX RANK SUFFIX" << std::endl << "and propagates these spikes through a MUSIC output port." << std::endl << std:: endl << " -t, --timestep TIMESTEP time between tick() calls (default " << DEFAULT_TIMESTEP << " s)" << std::endl << " -b, --maxbuffered TICKS maximal amount of data buffered" << std::endl << " -m, --imaptype TYPE linear (default) or roundrobin" << std::endl << " -i, --indextype TYPE global (default) or local" << std::endl << " --out PORTNAME output port name (default: out)" << std::endl << " -h, --help print this help message" << std::endl << std::endl << "Report bugs to ." << std::endl; } exit (1); } string portName ("out"); int nUnits; double timestep = DEFAULT_TIMESTEP; int maxbuffered = 0; string imaptype = "linear"; string indextype = "global"; string prefix; string suffix = ".dat"; void getargs (int rank, int argc, char* argv[]) { enum { OUT }; opterr = 0; // handle errors ourselves while (1) { static struct option longOptions[] = { {"timestep", required_argument, 0, 't'}, {"maxbuffered", required_argument, 0, 'b'}, {"imaptype", required_argument, 0, 'm'}, {"indextype", required_argument, 0, 'i'}, {"help", no_argument, 0, 'h'}, {"out", required_argument, 0, OUT}, {0, 0, 0, 0} }; /* `getopt_long' stores the option index here. */ int option_index = 0; // the + below tells getopt_long not to reorder argv int c = getopt_long (argc, argv, "+t:b:m:i:h", longOptions, &option_index); /* detect the end of the options */ if (c == -1) break; switch (c) { case 't': timestep = atof (optarg); // NOTE: could do error checking continue; case 'b': maxbuffered = atoi (optarg); continue; case 'm': imaptype = optarg; if (imaptype != "linear" && imaptype != "roundrobin") { usage (rank); abort (); } continue; case 'i': indextype = optarg; if (indextype != "global" && indextype != "local") { usage (rank); abort (); } continue; case OUT: portName = optarg; continue; case '?': break; // ignore unknown options case 'h': usage (rank); default: abort (); } } if (argc < optind + 2 || argc > optind + 3) usage (rank); nUnits = atoi (argv[optind]); prefix = argv[optind + 1]; if (argc == optind + 3) suffix = argv[optind + 2]; } int main (int argc, char *argv[]) { MUSIC::Setup* setup = new MUSIC::Setup (argc, argv); MPI::Intracomm comm = setup->communicator (); int nProcesses = comm.Get_size (); int rank = comm.Get_rank (); getargs (rank, argc, argv); MUSIC::EventOutputPort* out = setup->publishEventOutput (portName); if (!out->isConnected ()) { if (rank == 0) std::cerr << "eventsource port is not connected" << std::endl; comm.Abort (1); } MUSIC::Index::Type type; if (indextype == "global") type = MUSIC::Index::GLOBAL; else type = MUSIC::Index::LOCAL; if (imaptype == "linear") { int nUnitsPerProcess = nUnits / nProcesses; int nLocalUnits = nUnitsPerProcess; int rest = nUnits % nProcesses; int firstId = nUnitsPerProcess * rank; if (rank < rest) { firstId += rank; nLocalUnits += 1; } else firstId += rest; MUSIC::LinearIndex indices (firstId, nLocalUnits); if (maxbuffered > 0) out->map (&indices, type, maxbuffered); else out->map (&indices, type); } else { std::vector v; for (int i = rank; i < nUnits; i += nProcesses) v.push_back (i); MUSIC::PermutationIndex indices (&v.front (), v.size ()); if (maxbuffered > 0) out->map (&indices, type, maxbuffered); else out->map (&indices, type); } double stoptime; setup->config ("stoptime", &stoptime); std::ostringstream spikefile; spikefile << prefix << rank << suffix; Datafile in (spikefile.str ()); if (!in) { std::cerr << "eventsource: could not open " << spikefile.str () << std::endl; abort (); } MUSIC::Runtime* runtime = new MUSIC::Runtime (setup, timestep); in.skipHeader (); int id; double t; in >> t >> id; bool moreSpikes = !in.eof (); double time = runtime->time (); while (time < stoptime) { double nextTime = time + timestep; while (moreSpikes && t < nextTime) { // MUSIC_LOGR("event("<insertEvent (t, MUSIC::GlobalIndex (id)); in >> t >> id; moreSpikes = !in.eof (); } // Make data available for other programs runtime->tick (); time = runtime->time (); } runtime->finalize (); delete runtime; return 0; } music-1.1.16/utils/eventcounter.cc0000644000175000017500000001301613571617503014042 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ // Leave as first include---required by BG/L #include #include #include #include #include #include #include extern "C" { #include #include } #include const double DEFAULT_TIMESTEP = 1e-2; void usage (int rank) { if (rank == 0) { std::cerr << "Usage: eventcounter [OPTION...] N_UNITS PREFIX [SUFFIX]" << std::endl << "`eventcounter' receives spikes through a MUSIC input port, counts" << std::endl << "all spikes for each index and writes the frequencies to a set of files" << std::endl << "with names PREFIX RANK SUFFIX" << std::endl << std:: endl << " -t, --timestep TIMESTEP time between tick() calls (default " << DEFAULT_TIMESTEP << " s)" << std::endl << " -b, --maxbuffered TICKS maximal amount of data buffered" << std::endl << " -m, --imaptype TYPE linear (default) or roundrobin" << std::endl << " -h, --help print this help message" << std::endl << std::endl << "Report bugs to ." << std::endl; } exit (1); } std::vector counters; class MyEventHandlerLocal: public MUSIC::EventHandlerLocalIndex { public: void operator () (double t, MUSIC::LocalIndex id) { ++counters[id]; } }; int nUnits; double timestep = DEFAULT_TIMESTEP; int maxbuffered = 0; string imaptype = "linear"; string prefix; string suffix = ".dat"; void getargs (int rank, int argc, char* argv[]) { opterr = 0; // handle errors ourselves while (1) { static struct option longOptions[] = { {"timestep", required_argument, 0, 't'}, {"maxbuffered", required_argument, 0, 'b'}, {"imaptype", required_argument, 0, 'm'}, {"help", no_argument, 0, 'h'}, {0, 0, 0, 0} }; /* `getopt_long' stores the option index here. */ int option_index = 0; // the + below tells getopt_long not to reorder argv int c = getopt_long (argc, argv, "+t:b:m:h", longOptions, &option_index); /* detect the end of the options */ if (c == -1) break; switch (c) { case 't': timestep = atof (optarg); // NOTE: could do error checking continue; case 'b': maxbuffered = atoi (optarg); continue; case 'm': imaptype = optarg; if (imaptype != "linear" && imaptype != "roundrobin") { usage (rank); abort (); } continue; case '?': break; // ignore unknown options case 'h': usage (rank); default: abort (); } } if (argc < optind + 2 || argc > optind + 3) usage (rank); nUnits = atoi (argv[optind]); prefix = argv[optind + 1]; if (argc == optind + 3) suffix = argv[optind + 2]; } int main (int argc, char *argv[]) { MUSIC::Setup* setup = new MUSIC::Setup (argc, argv); MPI::Intracomm comm = setup->communicator (); int nProcesses = comm.Get_size (); int rank = comm.Get_rank (); getargs (rank, argc, argv); MUSIC::EventInputPort* in = setup->publishEventInput ("in"); if (!in->isConnected ()) { if (rank == 0) std::cerr << "eventcounter port is not connected" << std::endl; comm.Abort (1); } std::ostringstream spikefile; spikefile << prefix << rank << suffix; std::ofstream out (spikefile.str ().c_str ()); if (!out) { std::cerr << "eventcounter: could not open " << spikefile.str () << " for writing" << std::endl; abort (); } MyEventHandlerLocal evhandlerLocal; if (imaptype == "linear") { int nUnitsPerProcess = nUnits / nProcesses; int nLocalUnits = nUnitsPerProcess; int rest = nUnits % nProcesses; int firstId = nUnitsPerProcess * rank; if (rank < rest) { firstId += rank; nLocalUnits += 1; } else firstId += rest; MUSIC::LinearIndex indices (firstId, nLocalUnits); if (maxbuffered > 0) in->map (&indices, &evhandlerLocal, 0.0, maxbuffered); else in->map (&indices, &evhandlerLocal, 0.0); } else { std::vector v; for (int i = rank; i < nUnits; i += nProcesses) v.push_back (i); MUSIC::PermutationIndex indices (&v.front (), v.size ()); if (maxbuffered > 0) in->map (&indices, &evhandlerLocal, 0.0, maxbuffered); else in->map (&indices, &evhandlerLocal, 0.0); } counters.resize (nUnits); for (int i = 0; i < nUnits; ++i) counters[i] = 0; double stoptime; setup->config ("stoptime", &stoptime); MUSIC::Runtime* runtime = new MUSIC::Runtime (setup, timestep); double time = runtime->time (); while (time < stoptime) { // Retrieve data from other program runtime->tick (); time = runtime->time (); } for (std::vector::iterator i = counters.begin (); i != counters.end (); ++i) out << static_cast (*i) / stoptime << std::endl; out.close (); runtime->finalize (); delete runtime; return 0; } music-1.1.16/utils/ChangeLog0000644000175000017500000001150113571617503012561 000000000000002012-09-03 Mikael Djurfeldt * eventgenerator.cc, eventsink.cc: Take options --out and -in for assigning the output and input port names, respectively. 2012-08-23 Mikael Djurfeldt * eventsource.cc: Take option --out for assigning the output port name. 2012-08-13 Mikael Djurfeldt * VisualiseNeurons.cpp: Added #include . 2011-03-04 Mikael Djurfeldt * application_mapper.cc, application_mapper.hh, music.cc: Added an option -e to the music launcher tool. This option causes the music launcher tool to write down one launcher script for each application. These scripts can be used in place of the music tool in environments which require this. 2010-07-28 Mikael Djurfeldt * Release 1.0.7 2009-10-25 Mikael Djurfeldt * Release 1.0.6 2009-10-24 Mikael Djurfeldt * Release 1.0.5 * application_mapper.cc (ApplicationMapper::mapConnectivity): Let port code be unique within the multi-simulation. 2009-04-01 Mikael Djurfeldt * Release 1.0.4 2009-03-13 Mikael Djurfeldt * Release 1.0.3 2009-03-12 Mikael Djurfeldt * Release 1.0.2 2009-03-08 Mikael Djurfeldt * Release 1.0.1 2009-03-07 Mikael Djurfeldt * VisualiseNeurons.cpp (VisualiseNeurons::printHelp): Updated text. * eventcounter.cc (usage): Updated text. 2009-03-06 Mikael Djurfeldt * music.cc: New option -v. 2009-03-04 Mikael Djurfeldt * music.cc (print_map): New function. (main): Add new option -m for printing of application ranks. 2009-03-03 Mikael Djurfeldt * Release 1.0 2009-02-15 Mikael Djurfeldt * application_mapper.cc (ApplicattionMapper::mapConnectivity): Moved generation of port codes to a position which is treated identically in all processes. 2009-02-11 Mikael Djurfeldt * music.cc: Moved mpi dependent code to ../mpidep/mpidep.cc. * Makefile.am: Removed dependency on librudeconfig for all utilities except the music launcher. * Makefile.am (music_LDADD): Added dependency on libmpidep.a. * music.cc: Test if ompi_comm_free exists instead of ompi_comm_create which doesn't exist in OpenMPI 1.3. 2009-02-10 Mikael Djurfeldt * eventcounter.cc, eventsource.cc, eventgenerator: Added option --maxbuffered. * music.cc (getRank): Added code to support newer (1.3.x) versions of OpenMPI. 2009-02-05 Mikael Djurfeldt * application_mapper.cc (ApplicationMapper::mapConnectivity): Compute and propagate a unique "port code" for each port name. 2008-12-02 Mikael Djurfeldt * Switch to CamelCase. 2008-11-16 Mikael Djurfeldt * Makefile.am: Added eventcounter. * eventcounter.cc: New file. 2008-11-06 Mikael Djurfeldt * VisualiseNeurons.cpp: #include . (Should change to C++ code.) * music.cc (launch): Added standard configuration variable "wd", specifying working directory. 2008-11-05 Mikael Djurfeldt * eventgenerator.cc: New file. * Makefile.am: Added eventgenerator.cc. 2008-11-03 Mikael Djurfeldt * eventsink.cc, eventselect.cc: New files. * Makefile.am: Added eventsink, eventselect. * eventsource.cc: Error checking when opening files. * Makefile.am: Compile viewevents conditionally. 2008-11-02 Mikael Djurfeldt * eventsource.cc: Extended to support global and local indices and roundrobin index maps. 2008-10-30 Mikael Djurfeldt * Changes to implement propagation of configuration information and routing of spikes. 2008-10-10 Mikael Djurfeldt * eventsource.cc: Updated to use global_index. 2008-10-08 Mikael Djurfeldt * eventsource.cc, datafile.h, datafile.cc: New files. * Makefile.am: Added eventsource. 2007-11-06 Mikael Djurfeldt * music.cc (BGL): #include 2007-11-02 Mikael Djurfeldt * application_map.hh: #include "rudeconfig/src/config.h" instead of . * Makefile.am (music_CXXFLAGS): Added -I$(top_srcdir). * music.cc (get_rank): Support OPENMPI. 2007-11-01 Mikael Djurfeldt * parse.hh, parse.cc: Moved to src. * music.cc: Rewritten. * Makefile.am (music_SOURCES): Added application_map.hh, application_map.cc. 2007-10-25 Mikael Djurfeldt * Makefile.am, music.cc, parse.cc, parse.hh: New files. 2007-08-17 Mikael Djurfeldt * Pang! music-1.1.16/utils/contsink.cc0000644000175000017500000000603013571617503013147 00000000000000#include #include #include #include #include #include extern "C" { #include #include } #define DEFAULT_TIMESTEP 1e-2 double *data; void usage (int rank) { if (rank == 0) { std::cerr << "Usage: contsink [OPTION...]" << std::endl << "`contsink' receives continuous data" << std::endl << "through a MUSIC input port." << std::endl << std:: endl << " -t, --timestep TIMESTEP time between tick() calls (default " << DEFAULT_TIMESTEP << " s)" << std::endl << " -d, --delay SECS delay until data should arrive" << std::endl << " -i, --interpolate no interpolation" << std::endl << " -h, --help print this help message" << std::endl << std::endl << "Report bugs to ." << std::endl; } exit (1); } double timestep = DEFAULT_TIMESTEP; double delay = 0.0; bool interpolate = true; void getargs (int rank, int argc, char* argv[]) { opterr = 0; // handle errors ourselves while (1) { static struct option longOptions[] = { {"timestep", required_argument, 0, 't'}, {"delay", required_argument, 0, 'd'}, {"interpolate", no_argument, 0, 'i'}, {"help", no_argument, 0, 'h'}, {0, 0, 0, 0} }; /* `getopt_long' stores the option index here. */ int option_index = 0; // the + below tells getopt_long not to reorder argv int c = getopt_long (argc, argv, "+t:d:ih", longOptions, &option_index); /* detect the end of the options */ if (c == -1) break; switch (c) { case 't': timestep = atof (optarg); continue; case 'd': delay = atof (optarg); continue; case 'i': interpolate = false; continue; case '?': break; // ignore unknown options case 'h': usage (rank); default: abort (); } } if (argc < optind + 0 || argc > optind + 0) usage (rank); } int main (int argc, char* argv[]) { MUSIC::Setup* setup = new MUSIC::Setup (argc, argv); MUSIC::ContInputPort* contdata = setup->publishContInput ("contdata"); MPI::Intracomm comm = setup->communicator (); int nProcesses = comm.Get_size (); int rank = comm.Get_rank (); getargs (rank, argc, argv); int totalWidth = contdata->width (); int localWidth = (totalWidth-1) / nProcesses + 1; int myWidth = localWidth; if (rank == nProcesses - 1) // Last processor myWidth = totalWidth - (nProcesses-1) * localWidth; data = new double[myWidth]; // Declare where in memory to put data MUSIC::ArrayData dmap (data, MPI::DOUBLE, rank * localWidth, myWidth); contdata->map (&dmap, delay, interpolate); double stoptime; setup->config ("stoptime", &stoptime); MUSIC::Runtime* runtime = new MUSIC::Runtime (setup, timestep); for (; runtime->time () < stoptime; runtime->tick ()) { for (int i = 0; i < myWidth; ++i) std::cout << data[i] << " "; std::cout << "on " << rank << " @" << runtime->time () << std::endl; } runtime->finalize (); delete runtime; return 0; } music-1.1.16/utils/eventselect.cc0000644000175000017500000001336213571617503013646 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ // Leave as first include---required by BG/L #include #include #include #include #include #include #include extern "C" { #include #include } #include const double DEFAULT_TIMESTEP = 1e-2; void usage (int rank) { if (rank == 0) { std::cerr << "Usage: eventselect [OPTION...] N_UNITS UNITS" << std::endl << "`eventselect' receives events from an input port of width N_UNITS" << std::endl << "and sends events for the subset of id:s specified in the file UNITS" << std::endl << std:: endl << " -t, --timestep TIMESTEP time between tick() calls (default " << DEFAULT_TIMESTEP << " s)" << std::endl << " -h, --help print this help message" << std::endl << std::endl << "Report bugs to ." << std::endl; } exit (1); } std::vector eventBuffer; class MyEventHandlerGlobal : public MUSIC::EventHandlerGlobalIndex { public: void operator () (double t, MUSIC::GlobalIndex id) { eventBuffer.push_back (MUSIC::Event (t, id)); } }; int nUnits; double timestep = DEFAULT_TIMESTEP; string units; void getargs (int rank, int argc, char* argv[]) { opterr = 0; // handle errors ourselves while (1) { static struct option longOptions[] = { {"timestep", required_argument, 0, 't'}, {"help", no_argument, 0, 'h'}, {0, 0, 0, 0} }; /* `getopt_long' stores the option index here. */ int option_index = 0; // the + below tells getopt_long not to reorder argv int c = getopt_long (argc, argv, "+t:m:i:h", longOptions, &option_index); /* detect the end of the options */ if (c == -1) break; switch (c) { case 't': timestep = atof (optarg); // NOTE: some error checking would be good! continue; case '?': break; // ignore unknown options case 'h': usage (rank); default: abort (); } } if (argc != optind + 2) usage (rank); nUnits = atoi (argv[optind]); units = argv[optind + 1]; } void mapOutput (MUSIC::EventOutputPort* out, int nProcesses, int rank, std::string fname) { std::ifstream unitfile (fname.c_str ()); if (!unitfile) { std::cerr << "eventselect: could not open " << fname << " for writing" << std::endl; abort (); } // First count the integers int nUnits = 0; int id; while (unitfile >> id) ++nUnits; unitfile.close (); int nUnitsPerProcess = nUnits / nProcesses; int nLocalUnits = nUnitsPerProcess; int rest = nUnits % nProcesses; int firstId = nUnitsPerProcess * rank; if (rank < rest) { firstId += rank; nLocalUnits += 1; } else firstId += rest; // Now read in our selection nUnits = 0; unitfile.open (fname.c_str ()); while (nUnits < firstId) { unitfile >> id; ++nUnits; } nUnits = 0; std::vector units; while (nUnits < nLocalUnits) { unitfile >> id; units.push_back (id); ++nUnits; } unitfile.close (); MUSIC::PermutationIndex indices (&units.front (), units.size ()); out->map (&indices, MUSIC::Index::GLOBAL); } void mapInput (MUSIC::EventInputPort* in, int nProcesses, int rank, MyEventHandlerGlobal& evhandler) { int nUnitsPerProcess = nUnits / nProcesses; int nLocalUnits = nUnitsPerProcess; int rest = nUnits % nProcesses; int firstId = nUnitsPerProcess * rank; if (rank < rest) { firstId += rank; nLocalUnits += 1; } else firstId += rest; MUSIC::LinearIndex indices (firstId, nLocalUnits); in->map (&indices, &evhandler, 0.0); } int main (int argc, char *argv[]) { MUSIC::Setup* setup = new MUSIC::Setup (argc, argv); MPI::Intracomm comm = setup->communicator (); int nProcesses = comm.Get_size (); int rank = comm.Get_rank (); getargs (rank, argc, argv); MUSIC::EventInputPort* in = setup->publishEventInput ("in"); if (!in->isConnected ()) { if (rank == 0) std::cerr << "eventselect port in is not connected" << std::endl; comm.Abort (1); } MUSIC::EventOutputPort* out = setup->publishEventOutput ("out"); if (!out->isConnected ()) { if (rank == 0) std::cerr << "eventselect port out is not connected" << std::endl; comm.Abort (1); } mapOutput (out, nProcesses, rank, units); MyEventHandlerGlobal evhandlerGlobal; mapInput (in, nProcesses, rank, evhandlerGlobal); double stoptime; setup->config ("stoptime", &stoptime); MUSIC::Runtime* runtime = new MUSIC::Runtime (setup, timestep); double time = runtime->time (); while (time < stoptime) { eventBuffer.clear (); // Retrieve data runtime->tick (); sort (eventBuffer.begin (), eventBuffer.end ()); for (std::vector::iterator i = eventBuffer.begin (); i != eventBuffer.end (); ++i) // Send data (NOTE: assumes that non-mapped id:s will be discarded) out->insertEvent (i->t, MUSIC::GlobalIndex (i->id)); time = runtime->time (); } runtime->finalize (); delete runtime; return 0; } music-1.1.16/utils/messagesource.cc0000644000175000017500000001037313571617503014171 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ // Leave as first include---required by BG/L #include #include #include #include #include #include #include extern "C" { #include #include } #include const double DEFAULT_TIMESTEP = 1e-2; void usage (int rank) { if (rank == 0) { std::cerr << "Usage: messagesource [OPTION...] PREFIX [SUFFIX]" << std::endl << "`messagesource' reads messages from a set of files with names PREFIX RANK SUFFIX" << std::endl << "and propagates these messages through a MUSIC output port." << std::endl << std:: endl << " -t, --timestep TIMESTEP time between tick() calls (default " << DEFAULT_TIMESTEP << " s)" << std::endl << " -b, --maxbuffered TICKS maximal amount of data buffered" << std::endl << " -h, --help print this help message" << std::endl << std::endl << "Report bugs to ." << std::endl; } exit (1); } double timestep = DEFAULT_TIMESTEP; int maxbuffered = 0; string prefix; string suffix = ".dat"; void getargs (int rank, int argc, char* argv[]) { opterr = 0; // handle errors ourselves while (1) { static struct option longOptions[] = { {"timestep", required_argument, 0, 't'}, {"maxbuffered", required_argument, 0, 'b'}, {"help", no_argument, 0, 'h'}, {0, 0, 0, 0} }; /* `getopt_long' stores the option index here. */ int option_index = 0; // the + below tells getopt_long not to reorder argv int c = getopt_long (argc, argv, "+t:b:h", longOptions, &option_index); /* detect the end of the options */ if (c == -1) break; switch (c) { case 't': timestep = atof (optarg); // NOTE: could do error checking continue; case 'b': maxbuffered = atoi (optarg); continue; case '?': break; // ignore unknown options case 'h': usage (rank); default: abort (); } } if (argc < optind + 1 || argc > optind + 2) usage (rank); prefix = argv[optind]; if (argc == optind + 2) suffix = argv[optind + 1]; } int main (int argc, char *argv[]) { MUSIC::Setup* setup = new MUSIC::Setup (argc, argv); MPI::Intracomm comm = setup->communicator (); int rank = comm.Get_rank (); getargs (rank, argc, argv); MUSIC::MessageOutputPort* out = setup->publishMessageOutput ("out"); if (!out->isConnected ()) { if (rank == 0) std::cerr << "messagesource port is not connected" << std::endl; comm.Abort (1); } if (maxbuffered > 0) out->map (maxbuffered); else out->map (); double stoptime; setup->config ("stoptime", &stoptime); std::ostringstream messagefile; messagefile << prefix << rank << suffix; std::ifstream in (messagefile.str ().c_str ()); if (!in) { std::cerr << "messagesource: could not open " << messagefile.str () << std::endl; abort (); } MUSIC::Runtime* runtime = new MUSIC::Runtime (setup, timestep); double t; char msg[80]; in >> t; in.ignore (); // ignore one whitespace character in.get (msg, 80); bool moreMessages = !in.eof (); double time = runtime->time (); while (time < stoptime) { double nextTime = time + timestep; while (moreMessages && t < nextTime) { out->insertMessage (t, msg, strlen (msg)); in >> t; in.ignore (); // ignore one whitespace character in.get (msg, 80); moreMessages = !in.eof (); } // Make data available for other programs runtime->tick (); time = runtime->time (); } runtime->finalize (); delete runtime; return 0; } music-1.1.16/utils/eventsink.cc0000644000175000017500000001422113571617503013326 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009, 2018 INCF * * MUSIC 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. * * MUSIC 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 . */ // Leave as first include---required by BG/L #include #include #include #include #include #include #include extern "C" { #include #include } #include const double DEFAULT_TIMESTEP = 1e-2; void usage (int rank) { if (rank == 0) { std::cerr << "Usage: eventsink [OPTION...] N_UNITS PREFIX [SUFFIX]" << std::endl << "`eventsink' receives spikes through a MUSIC input port" << std::endl << "and writes these to a set of files with names PREFIX RANK SUFFIX" << std::endl << std:: endl << " -t, --timestep TIMESTEP time between tick() calls (default " << DEFAULT_TIMESTEP << " s)" << std::endl << " -m, --imaptype TYPE linear (default) or roundrobin" << std::endl << " -i, --indextype TYPE global (default) or local" << std::endl << " --in PORTNAME input port name (default: in)" << std::endl << " -h, --help print this help message" << std::endl << std::endl << "Report bugs to ." << std::endl; } exit (1); } std::vector eventBuffer; class MyEventHandlerGlobal : public MUSIC::EventHandlerGlobalIndex { public: void operator () (double t, MUSIC::GlobalIndex id) { eventBuffer.push_back (MUSIC::Event (t, id)); } }; class MyEventHandlerLocal: public MUSIC::EventHandlerLocalIndex { public: void operator () (double t, MUSIC::LocalIndex id) { eventBuffer.push_back (MUSIC::Event (t, id)); } }; string portName ("in"); int nUnits; double timestep = DEFAULT_TIMESTEP; string imaptype = "linear"; string indextype = "global"; string prefix; string suffix = ".dat"; bool useBarrier = false; void getargs (int rank, int argc, char* argv[]) { enum { IN }; opterr = 0; // handle errors ourselves while (1) { static struct option longOptions[] = { {"timestep", required_argument, 0, 't'}, {"imaptype", required_argument, 0, 'm'}, {"indextype", required_argument, 0, 'i'}, {"help", no_argument, 0, 'h'}, {"in", required_argument, 0, IN}, {"adapter", no_argument, 0, 'z'}, {0, 0, 0, 0} }; /* `getopt_long' stores the option index here. */ int option_index = 0; // the + below tells getopt_long not to reorder argv int c = getopt_long (argc, argv, "+t:m:i:hz", longOptions, &option_index); /* detect the end of the options */ if (c == -1) break; switch (c) { case 't': timestep = atof (optarg); // NOTE: could do error checking continue; case 'm': imaptype = optarg; if (imaptype != "linear" && imaptype != "roundrobin") { usage (rank); abort (); } continue; case 'i': indextype = optarg; if (indextype != "global" && indextype != "local") { usage (rank); abort (); } continue; case IN: portName = optarg; continue; case 'z': useBarrier = true; continue; case '?': break; // ignore unknown options case 'h': usage (rank); default: abort (); } } if (argc < optind + 2 || argc > optind + 3) usage (rank); nUnits = atoi (argv[optind]); prefix = argv[optind + 1]; if (argc == optind + 3) suffix = argv[optind + 2]; } int main (int argc, char *argv[]) { MUSIC::Setup* setup = new MUSIC::Setup (argc, argv); MPI::Intracomm comm = setup->communicator (); int nProcesses = comm.Get_size (); int rank = comm.Get_rank (); getargs (rank, argc, argv); MUSIC::EventInputPort* in = setup->publishEventInput (portName); if (!in->isConnected ()) { if (rank == 0) std::cerr << "eventsink port is not connected" << std::endl; comm.Abort (1); } std::ostringstream spikefile; spikefile << prefix << rank << suffix; std::ofstream out (spikefile.str ().c_str ()); if (!out) { std::cerr << "eventsink: could not open " << spikefile.str () << " for writing" << std::endl; abort (); } MyEventHandlerGlobal evhandlerGlobal; MyEventHandlerLocal evhandlerLocal; if (imaptype == "linear") { int nUnitsPerProcess = nUnits / nProcesses; int nLocalUnits = nUnitsPerProcess; int rest = nUnits % nProcesses; int firstId = nUnitsPerProcess * rank; if (rank < rest) { firstId += rank; nLocalUnits += 1; } else firstId += rest; MUSIC::LinearIndex indices (firstId, nLocalUnits); if (indextype == "global") in->map (&indices, &evhandlerGlobal, 0.0); else in->map (&indices, &evhandlerLocal, 0.0); } else { std::vector v; for (int i = rank; i < nUnits; i += nProcesses) v.push_back (i); MUSIC::PermutationIndex indices (&v.front (), v.size ()); if (indextype == "global") in->map (&indices, &evhandlerGlobal, 0.0); else in->map (&indices, &evhandlerLocal, 0.0); } double stoptime; setup->config ("stoptime", &stoptime); if (useBarrier) MPI::COMM_WORLD.Barrier(); MUSIC::Runtime* runtime = new MUSIC::Runtime (setup, timestep); double time = runtime->time (); while (time < stoptime) { eventBuffer.clear (); // Retrieve data from other program runtime->tick (); sort (eventBuffer.begin (), eventBuffer.end ()); for (std::vector::iterator i = eventBuffer.begin (); i != eventBuffer.end (); ++i) out << i->t << '\t' << i->id << std::endl; time = runtime->time (); } out.close (); runtime->finalize (); delete runtime; return 0; } music-1.1.16/utils/music.cc0000644000175000017500000001671613571617503012453 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009, 2017 INCF * * MUSIC 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. * * MUSIC 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 . */ #include #include #include "config.h" #include #include "music/application_mapper.hh" #include "mpidep/mpidep.hh" extern "C" { #include #include #include #include #include } using std::string; /* The preprocessor macro MUSIC_HANDLE_MAP is currently used to disable * broken functionality which previously tried to predict which ranks * ran which applications. Such prediction can only be safely made using * MPI. This could be implemented at a later date. */ void usage (int rank) { if (rank <= 0) { std::cout << "Usage: mpirun ... music [OPTION...] CONFIG" << std::endl << "`music' launches an application as part of a multi-simulation job." << std::endl << std::endl << " -h, --help print this help message" << std::endl #ifdef MUSIC_HANDLE_MAP << " -m, --map print application rank map" << std::endl // << " -f, --file-map creates a file with the list of environment variable of each application" << std::endl // << " -e, --export-scripts export launcher scripts" << std::endl #endif << " -v, --version prints version of MUSIC library" << std::endl << std::endl << "Report bugs to ." << std::endl; } exit (0); } void print_map (MUSIC::Configuration* config) { MUSIC::ApplicationMap* a = config->applications (); std::cout << "rank\tapplication" << std::endl; for (MUSIC::ApplicationMap::iterator i = a->begin (); i != a->end (); ++i) { int first = i->leader (); int nProc = i->nProc (); std::cout << first; if (nProc > 1) std::cout << "-" << first + nProc - 1; std::cout << '\t' << i->name () << std::endl; } } /*const static char* const configEnvVarName = "_MUSIC_CONFIG_"; const static char* const mapFName = "music.map"; void export_scripts (MUSIC::ApplicationMapper* map) { MUSIC::Configuration* config = map->config (); MUSIC::ApplicationMap* a = config->applications (); for (MUSIC::ApplicationMap::iterator i = a->begin (); i != a->end (); ++i) { std::string name = i->name (); std::string fname = name + ".sh"; std::ofstream script (fname.c_str ()); script << "#!/bin/sh" << std::endl << std::endl; map->mapConnectivity (name); MUSIC::Configuration* config = map->config (i->color()); config->writeEnv (); script << "export " << configEnvVarName << "=\"" << getenv (configEnvVarName) << '"' << std::endl; std::string binary; config->lookup ("binary", &binary); std::string args; config->lookup ("args", &args); script << binary << ' ' << args << std::endl; script.close (); } } void export_map(MUSIC::ApplicationMapper* map) { MUSIC::Configuration* config = map->config (); MUSIC::ApplicationMap* a = config->applications (); std::ofstream map_file (mapFName); for (MUSIC::ApplicationMap::iterator i = a->begin (); i != a->end (); ++i) { map->mapConnectivity (i->name()); MUSIC::Configuration* config = map->config (i->color()); config->writeEnv (); map_file << getenv (configEnvVarName) << std::endl; } map_file.close (); }*/ void print_version (int rank) { if (rank <= 0) { std::cout << "MUSIC " << MUSIC::version () << std::endl << "Copyright (C) 2007-2012 INCF." << std::endl << "You may redistribute copies of MUSIC" << std::endl << "under the terms of the GNU General Public License." << std::endl << "For more information about these matters, see the file named COPYING." << std::endl; } exit (0); } void launch (MUSIC::Configuration* config, char** argv) { string binary; config->lookup ("binary", &binary); config->writeEnv (); string wd; if (config->lookup ("wd", &wd)) { if (chdir (wd.c_str ())) goto error_exit; } execvp (binary.c_str (), argv); error_exit: // if we get here, something is wrong std::cerr << "Error during launching of binary " << binary << std::endl; perror ("MUSIC"); exit (1); } /* remedius * option -f to the music launcher tool is added. This option causes the * music launcher tool to write a file that contains mapping information of the rank (rank range) * to the according launching environment variable. * This file can be used while launching multiple applications in MPMD mode. */ int main (int argc, char *argv[]) { // predict the rank MPI::Init will give us using // mpi implementation dependent code from ../mpidep int rank = -1; #if MUSIC_USE_MPI rank = getRank (argc, argv); #endif bool do_print_map = false; bool do_export_scripts = false; bool do_export_map = false; opterr = 0; // handle errors ourselves while (1) { static struct option longOptions[] = { {"help", no_argument, 0, 'h'}, #ifdef MUSIC_HANDLE_MAP {"map", required_argument, 0, 'm'}, // {"export-scripts", required_argument, 0, 'e'}, // {"file-map", required_argument, 0, 'f'}, #endif {"version", no_argument, 0, 'v'}, {0, 0, 0, 0} }; /* `getopt_long' stores the option index here. */ int option_index = 0; // the + below tells getopt_long not to reorder argv int c = getopt_long (argc, argv, "+hm:v", longOptions, &option_index); /* detect the end of the options */ if (c == -1) break; switch (c) { case '?': break; // ignore unknown options case 'h': usage (rank); case 'm': do_print_map = true; continue; /* case 'e': do_export_scripts = true; continue; case 'f': do_export_map = true; continue;*/ case 'v': print_version (rank); default: abort (); } } // extract the configuration file name using // mpi implementation dependent code from ../mpidep std::istream* configFile = getConfig (rank, argc, argv); if (!*configFile) { if (rank <= 0) std::cerr << "MUSIC: Couldn't open configuration file " << argv[1] << std::endl; exit (1); } MUSIC::Configuration config; MUSIC::ApplicationMapper mapper (&config); if (rank >= 0) // Only try to map applications if rank prediction worked mapper.map (configFile, rank); #ifdef MUSIC_HANDLE_MAP if (do_print_map) { if (rank <= 0) print_map (&config); } /* if (do_export_scripts) { if (rank <= 0) export_scripts (&map); } if(do_export_map) { if (rank <=0) export_map(&map); }*/ if (do_print_map) //|| do_export_scripts || do_export_map) return 0; #endif if (rank == -1) { std::cerr << "MUSIC: Unable to determine process rank." << std::endl << "MUSIC: Did you launch music using mpirun?" << std::endl << "MUSIC: If so, check the comments about porting in README." << std::endl; exit (1); } launch (&config, argv); return 0; } music-1.1.16/utils/Makefile.in0000644000175000017500000016065013571626612013067 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 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@ bin_PROGRAMS = music$(EXEEXT) @MPI_UTILS@ @OPTIONAL_UTILS@ EXTRA_PROGRAMS = eventsource$(EXEEXT) eventsink$(EXEEXT) \ eventselect$(EXEEXT) eventgenerator$(EXEEXT) \ eventcounter$(EXEEXT) eventlogger$(EXEEXT) contsink$(EXEEXT) \ messagesource$(EXEEXT) viewevents$(EXEEXT) subdir = utils ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.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 CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_contsink_OBJECTS = contsink-contsink.$(OBJEXT) contsink_OBJECTS = $(am_contsink_OBJECTS) contsink_DEPENDENCIES = $(top_builddir)/src/libmusic.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 = contsink_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(contsink_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_eventcounter_OBJECTS = eventcounter-eventcounter.$(OBJEXT) eventcounter_OBJECTS = $(am_eventcounter_OBJECTS) eventcounter_DEPENDENCIES = $(top_builddir)/src/libmusic.la eventcounter_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(eventcounter_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_eventgenerator_OBJECTS = eventgenerator-eventgenerator.$(OBJEXT) eventgenerator_OBJECTS = $(am_eventgenerator_OBJECTS) eventgenerator_DEPENDENCIES = $(top_builddir)/src/libmusic.la eventgenerator_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(eventgenerator_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_eventlogger_OBJECTS = eventlogger-eventlogger.$(OBJEXT) eventlogger_OBJECTS = $(am_eventlogger_OBJECTS) eventlogger_DEPENDENCIES = $(top_builddir)/src/libmusic.la eventlogger_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(eventlogger_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_eventselect_OBJECTS = eventselect-eventselect.$(OBJEXT) eventselect_OBJECTS = $(am_eventselect_OBJECTS) eventselect_DEPENDENCIES = $(top_builddir)/src/libmusic.la eventselect_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(eventselect_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_eventsink_OBJECTS = eventsink-eventsink.$(OBJEXT) eventsink_OBJECTS = $(am_eventsink_OBJECTS) eventsink_DEPENDENCIES = $(top_builddir)/src/libmusic.la eventsink_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(eventsink_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_eventsource_OBJECTS = eventsource-eventsource.$(OBJEXT) \ eventsource-datafile.$(OBJEXT) eventsource_OBJECTS = $(am_eventsource_OBJECTS) eventsource_DEPENDENCIES = $(top_builddir)/src/libmusic.la eventsource_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(eventsource_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_messagesource_OBJECTS = messagesource-messagesource.$(OBJEXT) messagesource_OBJECTS = $(am_messagesource_OBJECTS) messagesource_DEPENDENCIES = $(top_builddir)/src/libmusic.la messagesource_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(messagesource_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ am_music_OBJECTS = music-music.$(OBJEXT) music_OBJECTS = $(am_music_OBJECTS) music_DEPENDENCIES = $(top_builddir)/src/libmusic.la \ $(top_builddir)/mpidep/libmpidep.la music_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(music_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_viewevents_OBJECTS = viewevents-viewevents.$(OBJEXT) \ viewevents-VisualiseNeurons.$(OBJEXT) viewevents_OBJECTS = $(am_viewevents_OBJECTS) viewevents_DEPENDENCIES = $(top_builddir)/src/libmusic.la viewevents_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(viewevents_CXXFLAGS) \ $(CXXFLAGS) $(viewevents_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) depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/contsink-contsink.Po \ ./$(DEPDIR)/eventcounter-eventcounter.Po \ ./$(DEPDIR)/eventgenerator-eventgenerator.Po \ ./$(DEPDIR)/eventlogger-eventlogger.Po \ ./$(DEPDIR)/eventselect-eventselect.Po \ ./$(DEPDIR)/eventsink-eventsink.Po \ ./$(DEPDIR)/eventsource-datafile.Po \ ./$(DEPDIR)/eventsource-eventsource.Po \ ./$(DEPDIR)/messagesource-messagesource.Po \ ./$(DEPDIR)/music-music.Po \ ./$(DEPDIR)/viewevents-VisualiseNeurons.Po \ ./$(DEPDIR)/viewevents-viewevents.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 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(contsink_SOURCES) $(eventcounter_SOURCES) \ $(eventgenerator_SOURCES) $(eventlogger_SOURCES) \ $(eventselect_SOURCES) $(eventsink_SOURCES) \ $(eventsource_SOURCES) $(messagesource_SOURCES) \ $(music_SOURCES) $(viewevents_SOURCES) DIST_SOURCES = $(contsink_SOURCES) $(eventcounter_SOURCES) \ $(eventgenerator_SOURCES) $(eventlogger_SOURCES) \ $(eventselect_SOURCES) $(eventsink_SOURCES) \ $(eventsource_SOURCES) $(messagesource_SOURCES) \ $(music_SOURCES) $(viewevents_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)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp \ ChangeLog DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = $(top_srcdir)/aclocal.sh AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BINDIR = @BINDIR@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXAMPLESDIR = @EXAMPLESDIR@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ FGREP = @FGREP@ GREP = @GREP@ HAVE_PYTHON = @HAVE_PYTHON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LAUNCHSTYLE = @LAUNCHSTYLE@ 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@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPI_CFLAGS = @MPI_CFLAGS@ MPI_CXXFLAGS = @MPI_CXXFLAGS@ MPI_LDFLAGS = @MPI_LDFLAGS@ MPI_UTILS = @MPI_UTILS@ MUSICCONFIGDIR = @MUSICCONFIGDIR@ MUSIC_ANYSOURCE = @MUSIC_ANYSOURCE@ MUSIC_HAVE_LONG_LONG = @MUSIC_HAVE_LONG_LONG@ MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER = @MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER@ MUSIC_HAVE_SIZE_T = @MUSIC_HAVE_SIZE_T@ MUSIC_ISENDWAITALL = @MUSIC_ISENDWAITALL@ MUSIC_USE_MPI = @MUSIC_USE_MPI@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPTIONAL_UTILS = @OPTIONAL_UTILS@ 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@ PKGDATADIR = @PKGDATADIR@ PKGEXTRABINDIR = @PKGEXTRABINDIR@ PYBUFFER_CPPFLAGS = @PYBUFFER_CPPFLAGS@ PYBUFFER_CXXFLAGS = @PYBUFFER_CXXFLAGS@ PYEXECDIR = @PYEXECDIR@ PYMUSIC_CPPFLAGS = @PYMUSIC_CPPFLAGS@ PYMUSIC_CXXFLAGS = @PYMUSIC_CXXFLAGS@ PYMUSIC_SUBDIR = @PYMUSIC_SUBDIR@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ ROS_SUBDIR = @ROS_SUBDIR@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTDIR = @TESTDIR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ @DARWIN_FALSE@OPENGL = -lGL @DARWIN_TRUE@OPENGL = -framework OpenGL @DARWIN_FALSE@GLUT = -lGLU @DARWIN_TRUE@GLUT = -framework GLUT MUSIC_INCLUDE = -I$(top_srcdir)/src -I$(top_builddir)/src music_SOURCES = music.cc music_CXXFLAGS = $(MUSIC_INCLUDE) -I$(top_srcdir) @MPI_CXXFLAGS@ music_LDADD = $(top_builddir)/src/libmusic.la $(top_builddir)/mpidep/libmpidep.la @MPI_LDFLAGS@ eventsource_SOURCES = eventsource.cc datafile.h datafile.cc eventsource_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ eventsource_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ eventsink_SOURCES = eventsink.cc eventsink_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ eventsink_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ eventselect_SOURCES = eventselect.cc eventselect_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ eventselect_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ eventgenerator_SOURCES = eventgenerator.cc eventgenerator_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ eventgenerator_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ eventcounter_SOURCES = eventcounter.cc eventcounter_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ eventcounter_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ eventlogger_SOURCES = eventlogger.cc eventlogger_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ eventlogger_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ contsink_SOURCES = contsink.cc contsink_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ contsink_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ messagesource_SOURCES = messagesource.cc messagesource_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ messagesource_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ viewevents_SOURCES = viewevents.cpp VisualiseNeurons.cpp VisualiseNeurons.h viewevents_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ viewevents_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ -lglut -lpthread viewevents_LDFLAGS = $(OPENGL) $(GLUT) MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) all: all-am .SUFFIXES: .SUFFIXES: .cc .cpp .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu utils/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu utils/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): 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 contsink$(EXEEXT): $(contsink_OBJECTS) $(contsink_DEPENDENCIES) $(EXTRA_contsink_DEPENDENCIES) @rm -f contsink$(EXEEXT) $(AM_V_CXXLD)$(contsink_LINK) $(contsink_OBJECTS) $(contsink_LDADD) $(LIBS) eventcounter$(EXEEXT): $(eventcounter_OBJECTS) $(eventcounter_DEPENDENCIES) $(EXTRA_eventcounter_DEPENDENCIES) @rm -f eventcounter$(EXEEXT) $(AM_V_CXXLD)$(eventcounter_LINK) $(eventcounter_OBJECTS) $(eventcounter_LDADD) $(LIBS) eventgenerator$(EXEEXT): $(eventgenerator_OBJECTS) $(eventgenerator_DEPENDENCIES) $(EXTRA_eventgenerator_DEPENDENCIES) @rm -f eventgenerator$(EXEEXT) $(AM_V_CXXLD)$(eventgenerator_LINK) $(eventgenerator_OBJECTS) $(eventgenerator_LDADD) $(LIBS) eventlogger$(EXEEXT): $(eventlogger_OBJECTS) $(eventlogger_DEPENDENCIES) $(EXTRA_eventlogger_DEPENDENCIES) @rm -f eventlogger$(EXEEXT) $(AM_V_CXXLD)$(eventlogger_LINK) $(eventlogger_OBJECTS) $(eventlogger_LDADD) $(LIBS) eventselect$(EXEEXT): $(eventselect_OBJECTS) $(eventselect_DEPENDENCIES) $(EXTRA_eventselect_DEPENDENCIES) @rm -f eventselect$(EXEEXT) $(AM_V_CXXLD)$(eventselect_LINK) $(eventselect_OBJECTS) $(eventselect_LDADD) $(LIBS) eventsink$(EXEEXT): $(eventsink_OBJECTS) $(eventsink_DEPENDENCIES) $(EXTRA_eventsink_DEPENDENCIES) @rm -f eventsink$(EXEEXT) $(AM_V_CXXLD)$(eventsink_LINK) $(eventsink_OBJECTS) $(eventsink_LDADD) $(LIBS) eventsource$(EXEEXT): $(eventsource_OBJECTS) $(eventsource_DEPENDENCIES) $(EXTRA_eventsource_DEPENDENCIES) @rm -f eventsource$(EXEEXT) $(AM_V_CXXLD)$(eventsource_LINK) $(eventsource_OBJECTS) $(eventsource_LDADD) $(LIBS) messagesource$(EXEEXT): $(messagesource_OBJECTS) $(messagesource_DEPENDENCIES) $(EXTRA_messagesource_DEPENDENCIES) @rm -f messagesource$(EXEEXT) $(AM_V_CXXLD)$(messagesource_LINK) $(messagesource_OBJECTS) $(messagesource_LDADD) $(LIBS) music$(EXEEXT): $(music_OBJECTS) $(music_DEPENDENCIES) $(EXTRA_music_DEPENDENCIES) @rm -f music$(EXEEXT) $(AM_V_CXXLD)$(music_LINK) $(music_OBJECTS) $(music_LDADD) $(LIBS) viewevents$(EXEEXT): $(viewevents_OBJECTS) $(viewevents_DEPENDENCIES) $(EXTRA_viewevents_DEPENDENCIES) @rm -f viewevents$(EXEEXT) $(AM_V_CXXLD)$(viewevents_LINK) $(viewevents_OBJECTS) $(viewevents_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/contsink-contsink.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eventcounter-eventcounter.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eventgenerator-eventgenerator.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eventlogger-eventlogger.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eventselect-eventselect.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eventsink-eventsink.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eventsource-datafile.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eventsource-eventsource.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/messagesource-messagesource.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/music-music.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/viewevents-VisualiseNeurons.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/viewevents-viewevents.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .cc.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 $@ $< .cc.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) '$<'` .cc.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 $@ $< contsink-contsink.o: contsink.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(contsink_CXXFLAGS) $(CXXFLAGS) -MT contsink-contsink.o -MD -MP -MF $(DEPDIR)/contsink-contsink.Tpo -c -o contsink-contsink.o `test -f 'contsink.cc' || echo '$(srcdir)/'`contsink.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/contsink-contsink.Tpo $(DEPDIR)/contsink-contsink.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='contsink.cc' object='contsink-contsink.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(contsink_CXXFLAGS) $(CXXFLAGS) -c -o contsink-contsink.o `test -f 'contsink.cc' || echo '$(srcdir)/'`contsink.cc contsink-contsink.obj: contsink.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(contsink_CXXFLAGS) $(CXXFLAGS) -MT contsink-contsink.obj -MD -MP -MF $(DEPDIR)/contsink-contsink.Tpo -c -o contsink-contsink.obj `if test -f 'contsink.cc'; then $(CYGPATH_W) 'contsink.cc'; else $(CYGPATH_W) '$(srcdir)/contsink.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/contsink-contsink.Tpo $(DEPDIR)/contsink-contsink.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='contsink.cc' object='contsink-contsink.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(contsink_CXXFLAGS) $(CXXFLAGS) -c -o contsink-contsink.obj `if test -f 'contsink.cc'; then $(CYGPATH_W) 'contsink.cc'; else $(CYGPATH_W) '$(srcdir)/contsink.cc'; fi` eventcounter-eventcounter.o: eventcounter.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventcounter_CXXFLAGS) $(CXXFLAGS) -MT eventcounter-eventcounter.o -MD -MP -MF $(DEPDIR)/eventcounter-eventcounter.Tpo -c -o eventcounter-eventcounter.o `test -f 'eventcounter.cc' || echo '$(srcdir)/'`eventcounter.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/eventcounter-eventcounter.Tpo $(DEPDIR)/eventcounter-eventcounter.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='eventcounter.cc' object='eventcounter-eventcounter.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventcounter_CXXFLAGS) $(CXXFLAGS) -c -o eventcounter-eventcounter.o `test -f 'eventcounter.cc' || echo '$(srcdir)/'`eventcounter.cc eventcounter-eventcounter.obj: eventcounter.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventcounter_CXXFLAGS) $(CXXFLAGS) -MT eventcounter-eventcounter.obj -MD -MP -MF $(DEPDIR)/eventcounter-eventcounter.Tpo -c -o eventcounter-eventcounter.obj `if test -f 'eventcounter.cc'; then $(CYGPATH_W) 'eventcounter.cc'; else $(CYGPATH_W) '$(srcdir)/eventcounter.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/eventcounter-eventcounter.Tpo $(DEPDIR)/eventcounter-eventcounter.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='eventcounter.cc' object='eventcounter-eventcounter.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventcounter_CXXFLAGS) $(CXXFLAGS) -c -o eventcounter-eventcounter.obj `if test -f 'eventcounter.cc'; then $(CYGPATH_W) 'eventcounter.cc'; else $(CYGPATH_W) '$(srcdir)/eventcounter.cc'; fi` eventgenerator-eventgenerator.o: eventgenerator.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventgenerator_CXXFLAGS) $(CXXFLAGS) -MT eventgenerator-eventgenerator.o -MD -MP -MF $(DEPDIR)/eventgenerator-eventgenerator.Tpo -c -o eventgenerator-eventgenerator.o `test -f 'eventgenerator.cc' || echo '$(srcdir)/'`eventgenerator.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/eventgenerator-eventgenerator.Tpo $(DEPDIR)/eventgenerator-eventgenerator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='eventgenerator.cc' object='eventgenerator-eventgenerator.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventgenerator_CXXFLAGS) $(CXXFLAGS) -c -o eventgenerator-eventgenerator.o `test -f 'eventgenerator.cc' || echo '$(srcdir)/'`eventgenerator.cc eventgenerator-eventgenerator.obj: eventgenerator.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventgenerator_CXXFLAGS) $(CXXFLAGS) -MT eventgenerator-eventgenerator.obj -MD -MP -MF $(DEPDIR)/eventgenerator-eventgenerator.Tpo -c -o eventgenerator-eventgenerator.obj `if test -f 'eventgenerator.cc'; then $(CYGPATH_W) 'eventgenerator.cc'; else $(CYGPATH_W) '$(srcdir)/eventgenerator.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/eventgenerator-eventgenerator.Tpo $(DEPDIR)/eventgenerator-eventgenerator.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='eventgenerator.cc' object='eventgenerator-eventgenerator.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventgenerator_CXXFLAGS) $(CXXFLAGS) -c -o eventgenerator-eventgenerator.obj `if test -f 'eventgenerator.cc'; then $(CYGPATH_W) 'eventgenerator.cc'; else $(CYGPATH_W) '$(srcdir)/eventgenerator.cc'; fi` eventlogger-eventlogger.o: eventlogger.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventlogger_CXXFLAGS) $(CXXFLAGS) -MT eventlogger-eventlogger.o -MD -MP -MF $(DEPDIR)/eventlogger-eventlogger.Tpo -c -o eventlogger-eventlogger.o `test -f 'eventlogger.cc' || echo '$(srcdir)/'`eventlogger.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/eventlogger-eventlogger.Tpo $(DEPDIR)/eventlogger-eventlogger.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='eventlogger.cc' object='eventlogger-eventlogger.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventlogger_CXXFLAGS) $(CXXFLAGS) -c -o eventlogger-eventlogger.o `test -f 'eventlogger.cc' || echo '$(srcdir)/'`eventlogger.cc eventlogger-eventlogger.obj: eventlogger.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventlogger_CXXFLAGS) $(CXXFLAGS) -MT eventlogger-eventlogger.obj -MD -MP -MF $(DEPDIR)/eventlogger-eventlogger.Tpo -c -o eventlogger-eventlogger.obj `if test -f 'eventlogger.cc'; then $(CYGPATH_W) 'eventlogger.cc'; else $(CYGPATH_W) '$(srcdir)/eventlogger.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/eventlogger-eventlogger.Tpo $(DEPDIR)/eventlogger-eventlogger.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='eventlogger.cc' object='eventlogger-eventlogger.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventlogger_CXXFLAGS) $(CXXFLAGS) -c -o eventlogger-eventlogger.obj `if test -f 'eventlogger.cc'; then $(CYGPATH_W) 'eventlogger.cc'; else $(CYGPATH_W) '$(srcdir)/eventlogger.cc'; fi` eventselect-eventselect.o: eventselect.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventselect_CXXFLAGS) $(CXXFLAGS) -MT eventselect-eventselect.o -MD -MP -MF $(DEPDIR)/eventselect-eventselect.Tpo -c -o eventselect-eventselect.o `test -f 'eventselect.cc' || echo '$(srcdir)/'`eventselect.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/eventselect-eventselect.Tpo $(DEPDIR)/eventselect-eventselect.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='eventselect.cc' object='eventselect-eventselect.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventselect_CXXFLAGS) $(CXXFLAGS) -c -o eventselect-eventselect.o `test -f 'eventselect.cc' || echo '$(srcdir)/'`eventselect.cc eventselect-eventselect.obj: eventselect.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventselect_CXXFLAGS) $(CXXFLAGS) -MT eventselect-eventselect.obj -MD -MP -MF $(DEPDIR)/eventselect-eventselect.Tpo -c -o eventselect-eventselect.obj `if test -f 'eventselect.cc'; then $(CYGPATH_W) 'eventselect.cc'; else $(CYGPATH_W) '$(srcdir)/eventselect.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/eventselect-eventselect.Tpo $(DEPDIR)/eventselect-eventselect.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='eventselect.cc' object='eventselect-eventselect.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventselect_CXXFLAGS) $(CXXFLAGS) -c -o eventselect-eventselect.obj `if test -f 'eventselect.cc'; then $(CYGPATH_W) 'eventselect.cc'; else $(CYGPATH_W) '$(srcdir)/eventselect.cc'; fi` eventsink-eventsink.o: eventsink.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventsink_CXXFLAGS) $(CXXFLAGS) -MT eventsink-eventsink.o -MD -MP -MF $(DEPDIR)/eventsink-eventsink.Tpo -c -o eventsink-eventsink.o `test -f 'eventsink.cc' || echo '$(srcdir)/'`eventsink.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/eventsink-eventsink.Tpo $(DEPDIR)/eventsink-eventsink.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='eventsink.cc' object='eventsink-eventsink.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventsink_CXXFLAGS) $(CXXFLAGS) -c -o eventsink-eventsink.o `test -f 'eventsink.cc' || echo '$(srcdir)/'`eventsink.cc eventsink-eventsink.obj: eventsink.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventsink_CXXFLAGS) $(CXXFLAGS) -MT eventsink-eventsink.obj -MD -MP -MF $(DEPDIR)/eventsink-eventsink.Tpo -c -o eventsink-eventsink.obj `if test -f 'eventsink.cc'; then $(CYGPATH_W) 'eventsink.cc'; else $(CYGPATH_W) '$(srcdir)/eventsink.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/eventsink-eventsink.Tpo $(DEPDIR)/eventsink-eventsink.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='eventsink.cc' object='eventsink-eventsink.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventsink_CXXFLAGS) $(CXXFLAGS) -c -o eventsink-eventsink.obj `if test -f 'eventsink.cc'; then $(CYGPATH_W) 'eventsink.cc'; else $(CYGPATH_W) '$(srcdir)/eventsink.cc'; fi` eventsource-eventsource.o: eventsource.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventsource_CXXFLAGS) $(CXXFLAGS) -MT eventsource-eventsource.o -MD -MP -MF $(DEPDIR)/eventsource-eventsource.Tpo -c -o eventsource-eventsource.o `test -f 'eventsource.cc' || echo '$(srcdir)/'`eventsource.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/eventsource-eventsource.Tpo $(DEPDIR)/eventsource-eventsource.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='eventsource.cc' object='eventsource-eventsource.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventsource_CXXFLAGS) $(CXXFLAGS) -c -o eventsource-eventsource.o `test -f 'eventsource.cc' || echo '$(srcdir)/'`eventsource.cc eventsource-eventsource.obj: eventsource.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventsource_CXXFLAGS) $(CXXFLAGS) -MT eventsource-eventsource.obj -MD -MP -MF $(DEPDIR)/eventsource-eventsource.Tpo -c -o eventsource-eventsource.obj `if test -f 'eventsource.cc'; then $(CYGPATH_W) 'eventsource.cc'; else $(CYGPATH_W) '$(srcdir)/eventsource.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/eventsource-eventsource.Tpo $(DEPDIR)/eventsource-eventsource.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='eventsource.cc' object='eventsource-eventsource.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventsource_CXXFLAGS) $(CXXFLAGS) -c -o eventsource-eventsource.obj `if test -f 'eventsource.cc'; then $(CYGPATH_W) 'eventsource.cc'; else $(CYGPATH_W) '$(srcdir)/eventsource.cc'; fi` eventsource-datafile.o: datafile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventsource_CXXFLAGS) $(CXXFLAGS) -MT eventsource-datafile.o -MD -MP -MF $(DEPDIR)/eventsource-datafile.Tpo -c -o eventsource-datafile.o `test -f 'datafile.cc' || echo '$(srcdir)/'`datafile.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/eventsource-datafile.Tpo $(DEPDIR)/eventsource-datafile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='datafile.cc' object='eventsource-datafile.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventsource_CXXFLAGS) $(CXXFLAGS) -c -o eventsource-datafile.o `test -f 'datafile.cc' || echo '$(srcdir)/'`datafile.cc eventsource-datafile.obj: datafile.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventsource_CXXFLAGS) $(CXXFLAGS) -MT eventsource-datafile.obj -MD -MP -MF $(DEPDIR)/eventsource-datafile.Tpo -c -o eventsource-datafile.obj `if test -f 'datafile.cc'; then $(CYGPATH_W) 'datafile.cc'; else $(CYGPATH_W) '$(srcdir)/datafile.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/eventsource-datafile.Tpo $(DEPDIR)/eventsource-datafile.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='datafile.cc' object='eventsource-datafile.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventsource_CXXFLAGS) $(CXXFLAGS) -c -o eventsource-datafile.obj `if test -f 'datafile.cc'; then $(CYGPATH_W) 'datafile.cc'; else $(CYGPATH_W) '$(srcdir)/datafile.cc'; fi` messagesource-messagesource.o: messagesource.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(messagesource_CXXFLAGS) $(CXXFLAGS) -MT messagesource-messagesource.o -MD -MP -MF $(DEPDIR)/messagesource-messagesource.Tpo -c -o messagesource-messagesource.o `test -f 'messagesource.cc' || echo '$(srcdir)/'`messagesource.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/messagesource-messagesource.Tpo $(DEPDIR)/messagesource-messagesource.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='messagesource.cc' object='messagesource-messagesource.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(messagesource_CXXFLAGS) $(CXXFLAGS) -c -o messagesource-messagesource.o `test -f 'messagesource.cc' || echo '$(srcdir)/'`messagesource.cc messagesource-messagesource.obj: messagesource.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(messagesource_CXXFLAGS) $(CXXFLAGS) -MT messagesource-messagesource.obj -MD -MP -MF $(DEPDIR)/messagesource-messagesource.Tpo -c -o messagesource-messagesource.obj `if test -f 'messagesource.cc'; then $(CYGPATH_W) 'messagesource.cc'; else $(CYGPATH_W) '$(srcdir)/messagesource.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/messagesource-messagesource.Tpo $(DEPDIR)/messagesource-messagesource.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='messagesource.cc' object='messagesource-messagesource.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(messagesource_CXXFLAGS) $(CXXFLAGS) -c -o messagesource-messagesource.obj `if test -f 'messagesource.cc'; then $(CYGPATH_W) 'messagesource.cc'; else $(CYGPATH_W) '$(srcdir)/messagesource.cc'; fi` music-music.o: music.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(music_CXXFLAGS) $(CXXFLAGS) -MT music-music.o -MD -MP -MF $(DEPDIR)/music-music.Tpo -c -o music-music.o `test -f 'music.cc' || echo '$(srcdir)/'`music.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/music-music.Tpo $(DEPDIR)/music-music.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='music.cc' object='music-music.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(music_CXXFLAGS) $(CXXFLAGS) -c -o music-music.o `test -f 'music.cc' || echo '$(srcdir)/'`music.cc music-music.obj: music.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(music_CXXFLAGS) $(CXXFLAGS) -MT music-music.obj -MD -MP -MF $(DEPDIR)/music-music.Tpo -c -o music-music.obj `if test -f 'music.cc'; then $(CYGPATH_W) 'music.cc'; else $(CYGPATH_W) '$(srcdir)/music.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/music-music.Tpo $(DEPDIR)/music-music.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='music.cc' object='music-music.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(music_CXXFLAGS) $(CXXFLAGS) -c -o music-music.obj `if test -f 'music.cc'; then $(CYGPATH_W) 'music.cc'; else $(CYGPATH_W) '$(srcdir)/music.cc'; fi` viewevents-viewevents.o: viewevents.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(viewevents_CXXFLAGS) $(CXXFLAGS) -MT viewevents-viewevents.o -MD -MP -MF $(DEPDIR)/viewevents-viewevents.Tpo -c -o viewevents-viewevents.o `test -f 'viewevents.cpp' || echo '$(srcdir)/'`viewevents.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/viewevents-viewevents.Tpo $(DEPDIR)/viewevents-viewevents.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='viewevents.cpp' object='viewevents-viewevents.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(viewevents_CXXFLAGS) $(CXXFLAGS) -c -o viewevents-viewevents.o `test -f 'viewevents.cpp' || echo '$(srcdir)/'`viewevents.cpp viewevents-viewevents.obj: viewevents.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(viewevents_CXXFLAGS) $(CXXFLAGS) -MT viewevents-viewevents.obj -MD -MP -MF $(DEPDIR)/viewevents-viewevents.Tpo -c -o viewevents-viewevents.obj `if test -f 'viewevents.cpp'; then $(CYGPATH_W) 'viewevents.cpp'; else $(CYGPATH_W) '$(srcdir)/viewevents.cpp'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/viewevents-viewevents.Tpo $(DEPDIR)/viewevents-viewevents.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='viewevents.cpp' object='viewevents-viewevents.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(viewevents_CXXFLAGS) $(CXXFLAGS) -c -o viewevents-viewevents.obj `if test -f 'viewevents.cpp'; then $(CYGPATH_W) 'viewevents.cpp'; else $(CYGPATH_W) '$(srcdir)/viewevents.cpp'; fi` viewevents-VisualiseNeurons.o: VisualiseNeurons.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(viewevents_CXXFLAGS) $(CXXFLAGS) -MT viewevents-VisualiseNeurons.o -MD -MP -MF $(DEPDIR)/viewevents-VisualiseNeurons.Tpo -c -o viewevents-VisualiseNeurons.o `test -f 'VisualiseNeurons.cpp' || echo '$(srcdir)/'`VisualiseNeurons.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/viewevents-VisualiseNeurons.Tpo $(DEPDIR)/viewevents-VisualiseNeurons.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='VisualiseNeurons.cpp' object='viewevents-VisualiseNeurons.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(viewevents_CXXFLAGS) $(CXXFLAGS) -c -o viewevents-VisualiseNeurons.o `test -f 'VisualiseNeurons.cpp' || echo '$(srcdir)/'`VisualiseNeurons.cpp viewevents-VisualiseNeurons.obj: VisualiseNeurons.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(viewevents_CXXFLAGS) $(CXXFLAGS) -MT viewevents-VisualiseNeurons.obj -MD -MP -MF $(DEPDIR)/viewevents-VisualiseNeurons.Tpo -c -o viewevents-VisualiseNeurons.obj `if test -f 'VisualiseNeurons.cpp'; then $(CYGPATH_W) 'VisualiseNeurons.cpp'; else $(CYGPATH_W) '$(srcdir)/VisualiseNeurons.cpp'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/viewevents-VisualiseNeurons.Tpo $(DEPDIR)/viewevents-VisualiseNeurons.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='VisualiseNeurons.cpp' object='viewevents-VisualiseNeurons.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(viewevents_CXXFLAGS) $(CXXFLAGS) -c -o viewevents-VisualiseNeurons.obj `if test -f 'VisualiseNeurons.cpp'; then $(CYGPATH_W) 'VisualiseNeurons.cpp'; else $(CYGPATH_W) '$(srcdir)/VisualiseNeurons.cpp'; fi` .cpp.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 $@ $< .cpp.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) '$<'` .cpp.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 $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; 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-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/contsink-contsink.Po -rm -f ./$(DEPDIR)/eventcounter-eventcounter.Po -rm -f ./$(DEPDIR)/eventgenerator-eventgenerator.Po -rm -f ./$(DEPDIR)/eventlogger-eventlogger.Po -rm -f ./$(DEPDIR)/eventselect-eventselect.Po -rm -f ./$(DEPDIR)/eventsink-eventsink.Po -rm -f ./$(DEPDIR)/eventsource-datafile.Po -rm -f ./$(DEPDIR)/eventsource-eventsource.Po -rm -f ./$(DEPDIR)/messagesource-messagesource.Po -rm -f ./$(DEPDIR)/music-music.Po -rm -f ./$(DEPDIR)/viewevents-VisualiseNeurons.Po -rm -f ./$(DEPDIR)/viewevents-viewevents.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-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-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)/contsink-contsink.Po -rm -f ./$(DEPDIR)/eventcounter-eventcounter.Po -rm -f ./$(DEPDIR)/eventgenerator-eventgenerator.Po -rm -f ./$(DEPDIR)/eventlogger-eventlogger.Po -rm -f ./$(DEPDIR)/eventselect-eventselect.Po -rm -f ./$(DEPDIR)/eventsink-eventsink.Po -rm -f ./$(DEPDIR)/eventsource-datafile.Po -rm -f ./$(DEPDIR)/eventsource-eventsource.Po -rm -f ./$(DEPDIR)/messagesource-messagesource.Po -rm -f ./$(DEPDIR)/music-music.Po -rm -f ./$(DEPDIR)/viewevents-VisualiseNeurons.Po -rm -f ./$(DEPDIR)/viewevents-viewevents.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 .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-binPROGRAMS clean-generic clean-libtool 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-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 .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: music-1.1.16/py-compile0000755000175000017500000001110013571626611011646 00000000000000#!/bin/sh # py-compile - Compile a Python program scriptversion=2018-03-07.03; # UTC # Copyright (C) 2000-2018 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. # This file is maintained in Automake, please report # bugs to or send patches to # . if [ -z "$PYTHON" ]; then PYTHON=python fi me=py-compile usage_error () { echo "$me: $*" >&2 echo "Try '$me --help' for more information." >&2 exit 1 } basedir= destdir= while test $# -ne 0; do case "$1" in --basedir) if test $# -lt 2; then usage_error "option '--basedir' requires an argument" else basedir=$2 fi shift ;; --destdir) if test $# -lt 2; then usage_error "option '--destdir' requires an argument" else destdir=$2 fi shift ;; -h|--help) cat <<\EOF Usage: py-compile [--help] [--version] [--basedir DIR] [--destdir DIR] FILES..." Byte compile some python scripts FILES. Use --destdir to specify any leading directory path to the FILES that you don't want to include in the byte compiled file. Specify --basedir for any additional path information you do want to be shown in the byte compiled file. Example: py-compile --destdir /tmp/pkg-root --basedir /usr/share/test test.py test2.py Report bugs to . EOF exit $? ;; -v|--version) echo "$me $scriptversion" exit $? ;; --) shift break ;; -*) usage_error "unrecognized option '$1'" ;; *) break ;; esac shift done files=$* if test -z "$files"; then usage_error "no files given" fi # if basedir was given, then it should be prepended to filenames before # byte compilation. if [ -z "$basedir" ]; then pathtrans="path = file" else pathtrans="path = os.path.join('$basedir', file)" fi # if destdir was given, then it needs to be prepended to the filename to # byte compile but not go into the compiled file. if [ -z "$destdir" ]; then filetrans="filepath = path" else filetrans="filepath = os.path.normpath('$destdir' + os.sep + path)" fi $PYTHON -c " import sys, os, py_compile, imp files = '''$files''' sys.stdout.write('Byte-compiling python modules...\n') for file in files.split(): $pathtrans $filetrans if not os.path.exists(filepath) or not (len(filepath) >= 3 and filepath[-3:] == '.py'): continue sys.stdout.write(file) sys.stdout.flush() if hasattr(imp, 'get_tag'): py_compile.compile(filepath, imp.cache_from_source(filepath), path) else: py_compile.compile(filepath, filepath + 'c', path) sys.stdout.write('\n')" || exit $? # this will fail for python < 1.5, but that doesn't matter ... $PYTHON -O -c " import sys, os, py_compile, imp # pypy does not use .pyo optimization if hasattr(sys, 'pypy_translation_info'): sys.exit(0) files = '''$files''' sys.stdout.write('Byte-compiling python modules (optimized versions) ...\n') for file in files.split(): $pathtrans $filetrans if not os.path.exists(filepath) or not (len(filepath) >= 3 and filepath[-3:] == '.py'): continue sys.stdout.write(file) sys.stdout.flush() if hasattr(imp, 'get_tag'): py_compile.compile(filepath, imp.cache_from_source(filepath, False), path) else: py_compile.compile(filepath, filepath + 'o', path) sys.stdout.write('\n')" 2>/dev/null || : # 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: music-1.1.16/testsuite/0000755000175000017500000000000013571740114011755 500000000000000music-1.1.16/testsuite/Makefile.am0000644000175000017500000000033013571617503013732 00000000000000if COND_USE_MPI SUBDIRS = unittests/catch sanitytests endif #runtestdir = $(bindir) #dist_runtest_DATA = music_tests.sh EXTRA_DIST = test_old install-data-hook: @INSTALL_PROGRAM@ music_tests $(DESTDIR)$(bindir) music-1.1.16/testsuite/sanitytests/0000755000175000017500000000000013571740114014347 500000000000000music-1.1.16/testsuite/sanitytests/contdelay.cc0000644000175000017500000001046313571617503016571 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ // Leave as first include---required by BG/L #include #include #include #include #include #include #include extern "C" { #include #include } #include const double DEFAULT_TIMESTEP = 1e-2; void usage (int rank) { if (rank == 0) { std::cerr << "Usage: contdelay [OPTION...]" << std::endl << "`contdelay' receives data a MUSIC input port" << std::endl << "and sends them out after a delay" << std::endl << std:: endl << " -t, --timestep TIMESTEP time between tick() calls (default " << DEFAULT_TIMESTEP << " s)" << std::endl << " -d, --delay SECS amount of delay" << std::endl << " -b, --maxbuffer TICKS maximal buffer" << std::endl << " -h, --help print this help message" << std::endl << std::endl << "Report bugs to ." << std::endl; } exit (1); } std::vector eventBuffer; std::vector overflowBuffer; double timestep = DEFAULT_TIMESTEP; double delay = 0.0; int label = -1; int maxbuffered = 0; void getargs (int rank, int argc, char* argv[]) { opterr = 0; // handle errors ourselves while (1) { static struct option longOptions[] = { {"timestep", required_argument, 0, 't'}, {"delay", required_argument, 0, 'd'}, {"label", required_argument, 0, 'L'}, {"maxbuffer", required_argument, 0, 'b'}, {"help", no_argument, 0, 'h'}, {0, 0, 0, 0} }; /* `getopt_long' stores the option index here. */ int option_index = 0; // the + below tells getopt_long not to reorder argv int c = getopt_long (argc, argv, "+t:d:L:b:h", longOptions, &option_index); /* detect the end of the options */ if (c == -1) break; switch (c) { case 't': timestep = atof (optarg); continue; case 'd': delay = atof(optarg); continue; case 'L': label = atoi(optarg); continue; case 'b': maxbuffered = atoi(optarg); continue; case '?': break; // ignore unknown options case 'h': usage (rank); default: abort (); } } if (argc < optind || argc > optind) usage (rank); } double inData = 0.0; double outData = 0.0; double auxData = 0.0; int main (int argc, char *argv[]) { MUSIC::Setup* setup = new MUSIC::Setup (argc, argv); MPI::Intracomm comm = setup->communicator (); int rank = comm.Get_rank (); getargs (rank, argc, argv); MUSIC::ContInputPort* in = setup->publishContInput ("in"); if (!in->isConnected ()) { if (rank == 0) std::cerr << "contdelay input port is not connected" << std::endl; comm.Abort (1); } MUSIC::ArrayData inMap (&inData, MPI::DOUBLE, 0, 1); in->map (&inMap, delay, maxbuffered); MUSIC::ContOutputPort* out = setup->publishContOutput ("out"); if (!out->isConnected ()) { if (rank == 0) std::cerr << "contdelay output port is not connected" << std::endl; comm.Abort (1); } MUSIC::ArrayData outMap (&outData, MPI::DOUBLE, 0, 1); out->map (&outMap, maxbuffered); // Optional extra input port MUSIC::ContInputPort* aux = setup->publishContInput ("aux"); if (aux->isConnected ()) { MUSIC::ArrayData auxMap (&auxData, MPI::DOUBLE, 0, 1); aux->map (&auxMap, delay, maxbuffered); } double stoptime; setup->config ("stoptime", &stoptime); MUSIC::Runtime* runtime = new MUSIC::Runtime (setup, timestep); for (; runtime->time () < stoptime; runtime->tick ()) { outData = inData + auxData; } runtime->finalize (); delete runtime; return 0; } music-1.1.16/testsuite/sanitytests/Makefile.am0000644000175000017500000000401413571617503016327 00000000000000## Process this file with Automake to create Makefile.in ACLOCAL = $(top_srcdir)/aclocal.sh testbindir = $(libdir)/@PACKAGE@-@PACKAGE_VERSION@ testbin_PROGRAMS = clocksource constsource contdelay eventdelay \ multiport launchtest #testshdir = $(datadir)/@PACKAGE@-@PACKAGE_VERSION@/tests #dist_testsh_DATA = events.test chain.test run_test \ divergence.test fork.test loop.test \ cloop.test const.test contclock.test \ launchtest.test messages.test \ multicomm.test multiport.test MUSIC_INCLUDE = -I$(top_srcdir)/src -I$(top_builddir)/src clocksource_SOURCES = clocksource.cc clocksource_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ clocksource_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ constsource_SOURCES = constsource.cc constsource_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ constsource_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ contdelay_SOURCES = contdelay.cc contdelay_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ contdelay_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ eventdelay_SOURCES = eventdelay.cc eventdelay_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ eventdelay_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ multiport_SOURCES = multiport.cc multiport_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ multiport_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ launchtest_SOURCES = launchtest.cc launchtest_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ launchtest_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) EXTRA_DIST = events.test chain.test run_test \ divergence.test fork.test loop.test \ cloop.test const.test contclock.test \ launchtest.test messages.test \ multicomm.test multiport.test install-data-hook: mkdir -p $(DESTDIR)@PKGDATADIR@/tests cd $(srcdir);\ @INSTALL_PROGRAM@ events.test chain.test run_test \ divergence.test fork.test loop.test \ cloop.test const.test contclock.test \ launchtest.test messages.test \ multicomm.test multiport.test \ $(DESTDIR)@PKGDATADIR@/tests music-1.1.16/testsuite/sanitytests/clocksource.cc0000644000175000017500000000672713571617503017133 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ // Leave as first include---required by BG/L #include #include #include #include #include extern "C" { #include #include } #include const double DEFAULT_TIMESTEP = 1e-2; double dataarray[1]; void usage (int rank) { if (rank == 0) { std::cerr << "Usage: clocksource [OPTION...]" << std::endl << "`clocksource' sends out the current time" << std::endl << "through a MUSIC output port." << std::endl << std:: endl << " -t, --timestep TIMESTEP time between tick() calls (default " << DEFAULT_TIMESTEP << " s)" << std::endl << " -b, --maxbuffered TICKS maximal amount of data buffered" << std::endl << " -h, --help print this help message" << std::endl << std::endl << "Report bugs to ." << std::endl; } exit (1); } double timestep = DEFAULT_TIMESTEP; int maxbuffered = 0; void getargs (int rank, int argc, char* argv[]) { opterr = 0; // handle errors ourselves while (1) { static struct option longOptions[] = { {"timestep", required_argument, 0, 't'}, {"maxbuffered", required_argument, 0, 'b'}, {"help", no_argument, 0, 'h'}, {0, 0, 0, 0} }; /* `getopt_long' stores the option index here. */ int option_index = 0; // the + below tells getopt_long not to reorder argv int c = getopt_long (argc, argv, "+t:b:h", longOptions, &option_index); /* detect the end of the options */ if (c == -1) break; switch (c) { case 't': timestep = atof (optarg); continue; case 'b': maxbuffered = atoi (optarg); continue; case '?': break; // ignore unknown options case 'h': usage (rank); default: abort (); } } if (argc < optind + 0 || argc > optind + 0) usage (rank); } int main (int argc, char *argv[]) { MUSIC::Setup* setup = new MUSIC::Setup (argc, argv); MPI::Intracomm comm = setup->communicator (); int rank = comm.Get_rank (); getargs (rank, argc, argv); MUSIC::ContOutputPort* out = setup->publishContOutput ("clock"); if (!out->isConnected ()) { if (rank == 0) std::cerr << "clocksource port is not connected" << std::endl; comm.Abort (1); } MUSIC::ArrayData dmap (dataarray, MPI::DOUBLE, 0, 1); if (maxbuffered > 0) out->map (&dmap, maxbuffered); else out->map (&dmap); double stoptime; setup->config ("stoptime", &stoptime); dataarray[0] = 0.0; MUSIC::Runtime* runtime = new MUSIC::Runtime (setup, timestep); for (; runtime->time () < stoptime; runtime->tick ()) { // Use current time (valid at next tick) at exported data dataarray[0] = runtime->time () + timestep; } runtime->finalize (); delete runtime; return 0; } music-1.1.16/testsuite/sanitytests/const.test0000644000175000017500000001072113571617503016324 00000000000000#!/bin/sh NP=4 music_conf="$( echo "${0##*/}" | sed 's/\.test//' ).music" abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")" path="`dirname $abspath`" . ${path}/run_test write_configuration () { method=$1 echo "Communication method: ${method}" # this is music configuration file cat < "${MUSIC_DATA_PATH}/${music_conf}" stoptime=1.0 [from] np=2 binary=${TEST_EXTRABINDIR}/constsource [to] np=2 binary=${TEST_BINDIR}/contsink from.contdata -> to.contdata [7, ${method}] EOF } # this is the output we should expect to see cat <<\EOF > "${MUSIC_DATA_PATH}/ok" 4 5 6 on 1 @0 4 5 6 on 1 @0.01 4 5 6 on 1 @0.02 4 5 6 on 1 @0.03 4 5 6 on 1 @0.04 4 5 6 on 1 @0.05 4 5 6 on 1 @0.06 4 5 6 on 1 @0.07 4 5 6 on 1 @0.08 4 5 6 on 1 @0.09 4 5 6 on 1 @0.1 4 5 6 on 1 @0.11 4 5 6 on 1 @0.12 4 5 6 on 1 @0.13 4 5 6 on 1 @0.14 4 5 6 on 1 @0.15 4 5 6 on 1 @0.16 4 5 6 on 1 @0.17 4 5 6 on 1 @0.18 4 5 6 on 1 @0.19 4 5 6 on 1 @0.2 4 5 6 on 1 @0.21 4 5 6 on 1 @0.22 4 5 6 on 1 @0.23 4 5 6 on 1 @0.24 4 5 6 on 1 @0.25 4 5 6 on 1 @0.26 4 5 6 on 1 @0.27 4 5 6 on 1 @0.28 4 5 6 on 1 @0.29 4 5 6 on 1 @0.3 4 5 6 on 1 @0.31 4 5 6 on 1 @0.32 4 5 6 on 1 @0.33 4 5 6 on 1 @0.34 4 5 6 on 1 @0.35 4 5 6 on 1 @0.36 4 5 6 on 1 @0.37 4 5 6 on 1 @0.38 4 5 6 on 1 @0.39 4 5 6 on 1 @0.4 4 5 6 on 1 @0.41 4 5 6 on 1 @0.42 4 5 6 on 1 @0.43 4 5 6 on 1 @0.44 4 5 6 on 1 @0.45 4 5 6 on 1 @0.46 4 5 6 on 1 @0.47 4 5 6 on 1 @0.48 4 5 6 on 1 @0.49 4 5 6 on 1 @0.5 4 5 6 on 1 @0.51 4 5 6 on 1 @0.52 4 5 6 on 1 @0.53 4 5 6 on 1 @0.54 4 5 6 on 1 @0.55 4 5 6 on 1 @0.56 4 5 6 on 1 @0.57 4 5 6 on 1 @0.58 4 5 6 on 1 @0.59 4 5 6 on 1 @0.6 4 5 6 on 1 @0.61 4 5 6 on 1 @0.62 4 5 6 on 1 @0.63 4 5 6 on 1 @0.64 4 5 6 on 1 @0.65 4 5 6 on 1 @0.66 4 5 6 on 1 @0.67 4 5 6 on 1 @0.68 4 5 6 on 1 @0.69 4 5 6 on 1 @0.7 4 5 6 on 1 @0.71 4 5 6 on 1 @0.72 4 5 6 on 1 @0.73 4 5 6 on 1 @0.74 4 5 6 on 1 @0.75 4 5 6 on 1 @0.76 4 5 6 on 1 @0.77 4 5 6 on 1 @0.78 4 5 6 on 1 @0.79 4 5 6 on 1 @0.8 4 5 6 on 1 @0.81 4 5 6 on 1 @0.82 4 5 6 on 1 @0.83 4 5 6 on 1 @0.84 4 5 6 on 1 @0.85 4 5 6 on 1 @0.86 4 5 6 on 1 @0.87 4 5 6 on 1 @0.88 4 5 6 on 1 @0.89 4 5 6 on 1 @0.9 4 5 6 on 1 @0.91 4 5 6 on 1 @0.92 4 5 6 on 1 @0.93 4 5 6 on 1 @0.94 4 5 6 on 1 @0.95 4 5 6 on 1 @0.96 4 5 6 on 1 @0.97 4 5 6 on 1 @0.98 4 5 6 on 1 @0.99 0 1 2 3 on 0 @0 0 1 2 3 on 0 @0.01 0 1 2 3 on 0 @0.02 0 1 2 3 on 0 @0.03 0 1 2 3 on 0 @0.04 0 1 2 3 on 0 @0.05 0 1 2 3 on 0 @0.06 0 1 2 3 on 0 @0.07 0 1 2 3 on 0 @0.08 0 1 2 3 on 0 @0.09 0 1 2 3 on 0 @0.1 0 1 2 3 on 0 @0.11 0 1 2 3 on 0 @0.12 0 1 2 3 on 0 @0.13 0 1 2 3 on 0 @0.14 0 1 2 3 on 0 @0.15 0 1 2 3 on 0 @0.16 0 1 2 3 on 0 @0.17 0 1 2 3 on 0 @0.18 0 1 2 3 on 0 @0.19 0 1 2 3 on 0 @0.2 0 1 2 3 on 0 @0.21 0 1 2 3 on 0 @0.22 0 1 2 3 on 0 @0.23 0 1 2 3 on 0 @0.24 0 1 2 3 on 0 @0.25 0 1 2 3 on 0 @0.26 0 1 2 3 on 0 @0.27 0 1 2 3 on 0 @0.28 0 1 2 3 on 0 @0.29 0 1 2 3 on 0 @0.3 0 1 2 3 on 0 @0.31 0 1 2 3 on 0 @0.32 0 1 2 3 on 0 @0.33 0 1 2 3 on 0 @0.34 0 1 2 3 on 0 @0.35 0 1 2 3 on 0 @0.36 0 1 2 3 on 0 @0.37 0 1 2 3 on 0 @0.38 0 1 2 3 on 0 @0.39 0 1 2 3 on 0 @0.4 0 1 2 3 on 0 @0.41 0 1 2 3 on 0 @0.42 0 1 2 3 on 0 @0.43 0 1 2 3 on 0 @0.44 0 1 2 3 on 0 @0.45 0 1 2 3 on 0 @0.46 0 1 2 3 on 0 @0.47 0 1 2 3 on 0 @0.48 0 1 2 3 on 0 @0.49 0 1 2 3 on 0 @0.5 0 1 2 3 on 0 @0.51 0 1 2 3 on 0 @0.52 0 1 2 3 on 0 @0.53 0 1 2 3 on 0 @0.54 0 1 2 3 on 0 @0.55 0 1 2 3 on 0 @0.56 0 1 2 3 on 0 @0.57 0 1 2 3 on 0 @0.58 0 1 2 3 on 0 @0.59 0 1 2 3 on 0 @0.6 0 1 2 3 on 0 @0.61 0 1 2 3 on 0 @0.62 0 1 2 3 on 0 @0.63 0 1 2 3 on 0 @0.64 0 1 2 3 on 0 @0.65 0 1 2 3 on 0 @0.66 0 1 2 3 on 0 @0.67 0 1 2 3 on 0 @0.68 0 1 2 3 on 0 @0.69 0 1 2 3 on 0 @0.7 0 1 2 3 on 0 @0.71 0 1 2 3 on 0 @0.72 0 1 2 3 on 0 @0.73 0 1 2 3 on 0 @0.74 0 1 2 3 on 0 @0.75 0 1 2 3 on 0 @0.76 0 1 2 3 on 0 @0.77 0 1 2 3 on 0 @0.78 0 1 2 3 on 0 @0.79 0 1 2 3 on 0 @0.8 0 1 2 3 on 0 @0.81 0 1 2 3 on 0 @0.82 0 1 2 3 on 0 @0.83 0 1 2 3 on 0 @0.84 0 1 2 3 on 0 @0.85 0 1 2 3 on 0 @0.86 0 1 2 3 on 0 @0.87 0 1 2 3 on 0 @0.88 0 1 2 3 on 0 @0.89 0 1 2 3 on 0 @0.9 0 1 2 3 on 0 @0.91 0 1 2 3 on 0 @0.92 0 1 2 3 on 0 @0.93 0 1 2 3 on 0 @0.94 0 1 2 3 on 0 @0.95 0 1 2 3 on 0 @0.96 0 1 2 3 on 0 @0.97 0 1 2 3 on 0 @0.98 0 1 2 3 on 0 @0.99 EOF # sort the file using locale specified by current environment sort "${MUSIC_DATA_PATH}/ok" -o "${MUSIC_DATA_PATH}/ok" cat <<\EOF > "${MUSIC_DATA_PATH}/errok" EOF for method in point-to-point collective ; do write_configuration "${method}" run_test "${NP}" "${music_conf}" exit_code=$? if test "${exit_code}" -gt 0 ; then exit "${exit_code}" fi done exit 0 music-1.1.16/testsuite/sanitytests/chain.test0000644000175000017500000000320313571617503016255 00000000000000#!/bin/sh NP=4 music_conf="$( echo "${0##*/}" | sed 's/\.test//' ).music" abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")" path="`dirname $abspath`" . ${path}/run_test write_configuration () { method=$1 echo "Communication method: ${method}" # this is music configuration file cat < "${MUSIC_DATA_PATH}/${music_conf}" stoptime=1.0 [from] np=2 binary=${TEST_BINDIR}/eventsource args=-b 2 10 ${MUSIC_DATA_PATH}/spikes [mid] np=1 binary=${TEST_EXTRABINDIR}/eventdelay args=-d 0.3 [to] np=1 binary=${TEST_BINDIR}/eventlogger args=-b 2 from.out -> mid.in [10, ${method}] mid.out -> to.in [10, ${method}] EOF } # this is input data cat <<\EOF > "${MUSIC_DATA_PATH}/spikes0.dat" # spikes 0.0 0 0.1 1 0.2 2 0.3 3 0.4 4 0.5 5 0.6 6 0.7 7 0.8 8 0.9 9 EOF cat <<\EOF > "${MUSIC_DATA_PATH}/spikes1.dat" # spikes 0.0 9 0.1 0 0.2 1 0.3 2 0.4 3 0.5 4 0.6 5 0.7 6 0.8 7 0.9 8 EOF # this is the output we should expect to see cat <<\EOF > "${MUSIC_DATA_PATH}/ok" Rank 0: Event (9, 0.3) detected at 0.29 Rank 0: Event (0, 0.3) detected at 0.29 Rank 0: Event (1, 0.4) detected at 0.39 Rank 0: Event (2, 0.5) detected at 0.49 Rank 0: Event (3, 0.6) detected at 0.57 Rank 0: Event (4, 0.7) detected at 0.67 Rank 0: Event (5, 0.9) detected at 0.87 EOF # sort the file using locale specified by current environment sort "${MUSIC_DATA_PATH}/ok" -o "${MUSIC_DATA_PATH}/ok" cat <<\EOF > "${MUSIC_DATA_PATH}/errok" EOF for method in point-to-point collective ; do write_configuration "${method}" run_test "${NP}" "${music_conf}" exit_code=$? if test "${exit_code}" -gt 0 ; then exit "${exit_code}" fi done exit 0music-1.1.16/testsuite/sanitytests/loop.test0000644000175000017500000001130713571617503016150 00000000000000#!/bin/sh NP=4 music_conf="$( echo "${0##*/}" | sed 's/\.test//' ).music" abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")" path="`dirname $abspath`" . ${path}/run_test write_configuration () { method=$1 echo "Communication method: ${method}" # this is music configuration file cat < "${MUSIC_DATA_PATH}/${music_conf}" np=1 stoptime=1.1 [A] binary=${TEST_BINARY}/eventdelay args=-d 0.1 -L 1 -b 2 [B] binary=${TEST_BINARY}/eventdelay args=-d 0.1 -L 2 -b 2 [from] binary=${TEST_BINARY}/eventsource args=-b 5 10 ${MUSIC_DATA_PATH}/spikes [to] binary=${TEST_BINARY}/eventlogger args=-b 5 from.out -> A.in [10, ${method}] A.out -> B.in [10, ${method}] B.out -> A.aux [10, ${method}] B.out -> to.in [10, ${method}] EOF } # this is input data cat <<\EOF > "${MUSIC_DATA_PATH}/spikes0.dat" # spikes 0.0 0 0.1 1 0.2 2 0.3 3 0.4 4 0.5 5 0.6 6 0.7 7 0.8 8 0.9 9 EOF # this is the output we should expect to see cat <<\EOF > "${MUSIC_DATA_PATH}/ok" 1:Got(0, 0.1) 1:Got(1, 0.2) 1:Sent(0, 0.1 @0.1) 2:Got(0, 0.2) 2:Sent(0, 0.2 @0.2) 1:Got(0, 0.3) 1:Sent(1, 0.2 @0.2) 1:Got(2, 0.3) 2:Got(1, 0.3) 2:Sent(1, 0.3 @0.3) 1:Got(1, 0.4) 1:Sent(0, 0.3 @0.3) 1:Sent(2, 0.3 @0.3) 2:Got(0, 0.4) 1:Got(3, 0.4) 2:Got(2, 0.4) Rank 0: Event (0, 0.2) detected at 0.19 Rank 0: Event (1, 0.3) detected at 0.29 2:Sent(0, 0.4 @0.4) 2:Sent(2, 0.4 @0.4) 1:Got(0, 0.5) 1:Got(2, 0.5) Rank 0: Event (0, 0.4) detected at 0.39 Rank 0: Event (2, 0.4) detected at 0.39 1:Sent(1, 0.4 @0.4) 2:Got(1, 0.5) 2:Got(3, 0.5) 1:Sent(3, 0.4 @0.4) 1:Got(4, 0.5) 2:Sent(1, 0.5 @0.5) 2:Sent(3, 0.5 @0.5) Rank 0: Event (1, 0.5) detected at 0.49 Rank 0: Event (3, 0.5) detected at 0.49 1:Got(1, 0.6) 1:Got(3, 0.6) 1:Sent(0, 0.5 @0.5) 1:Sent(2, 0.5 @0.5) 1:Sent(4, 0.5 @0.5) 2:Got(0, 0.6) 2:Got(2, 0.6) 2:Got(4, 0.6) 1:Got(0, 0.7) 2:Sent(0, 0.6 @0.59) 2:Sent(2, 0.6 @0.59) 2:Sent(4, 0.6 @0.59) Rank 0: Event (0, 0.6) detected at 0.54 Rank 0: Event (2, 0.6) detected at 0.54 1:Got(2, 0.7) 1:Got(4, 0.7) Rank 0: Event (4, 0.6) detected at 0.54 1:Got(5, 0.6) 1:Got(6, 0.7) 1:Sent(1, 0.6 @0.59) 1:Sent(3, 0.6 @0.59) 1:Sent(5, 0.6 @0.59) 2:Got(1, 0.7) 2:Got(3, 0.7) 2:Got(5, 0.7) 2:Sent(1, 0.7 @0.69) 2:Sent(3, 0.7 @0.69) 2:Sent(5, 0.7 @0.69) 1:Got(1, 0.8) 1:Got(3, 0.8) Rank 0: Event (1, 0.7) detected at 0.64 Rank 0: Event (3, 0.7) detected at 0.64 1:Got(5, 0.8) 1:Sent(0, 0.7 @0.69) 1:Sent(2, 0.7 @0.69) 1:Sent(4, 0.7 @0.69) 1:Sent(6, 0.7 @0.69) 1:Got(7, 0.8) Rank 0: Event (5, 0.7) detected at 0.64 2:Got(0, 0.8) 2:Got(2, 0.8) 2:Got(4, 0.8) 2:Got(6, 0.8) 2:Sent(0, 0.8 @0.79) 2:Sent(2, 0.8 @0.79) 2:Sent(4, 0.8 @0.79) 2:Sent(6, 0.8 @0.79) Rank 0: Event (0, 0.8) detected at 0.74 Rank 0: Event (2, 0.8) detected at 0.74 Rank 0: Event (4, 0.8) detected at 0.74 Rank 0: Event (6, 0.8) detected at 0.74 1:Got(0, 0.9) 1:Got(2, 0.9) 1:Got(4, 0.9) 1:Got(6, 0.9) 1:Sent(1, 0.8 @0.79) 1:Sent(3, 0.8 @0.79) 1:Sent(5, 0.8 @0.79) 1:Sent(7, 0.8 @0.79) 2:Got(1, 0.9) 2:Got(3, 0.9) 2:Got(5, 0.9) 2:Got(7, 0.9) 1:Got(8, 0.9) 2:Sent(1, 0.9 @0.89) 2:Sent(3, 0.9 @0.89) 2:Sent(5, 0.9 @0.89) 2:Sent(7, 0.9 @0.89) 1:Got(1, 1) 1:Got(3, 1) 1:Got(5, 1) 1:Got(7, 1) 1:Sent(0, 0.9 @0.89) Rank 0: Event (1, 0.9) detected at 0.84 Rank 0: Event (3, 0.9) detected at 0.84 1:Sent(2, 0.9 @0.89) 1:Sent(4, 0.9 @0.89) 1:Sent(6, 0.9 @0.89) 1:Sent(8, 0.9 @0.9) Rank 0: Event (5, 0.9) detected at 0.84 1:Got(9, 1) Rank 0: Event (7, 0.9) detected at 0.84 2:Got(0, 1) 2:Got(2, 1) 2:Got(4, 1) 2:Got(6, 1) 2:Got(8, 1) 2:Sent(0, 1 @0.99) 2:Sent(2, 1 @0.99) 2:Sent(4, 1 @0.99) 2:Sent(6, 1 @0.99) 1:Got(0, 1.1) 1:Got(2, 1.1) 1:Got(4, 1.1) 2:Sent(8, 1 @1) Rank 0: Event (0, 1) detected at 0.94 1:Got(6, 1.1) 1:Sent(1, 1 @0.99) Rank 0: Event (2, 1) detected at 0.94 Rank 0: Event (4, 1) detected at 0.94 Rank 0: Event (6, 1) detected at 0.94 1:Sent(3, 1 @0.99) 1:Sent(5, 1 @0.99) 1:Sent(7, 1 @0.99) 1:Got(8, 1.1) 1:Sent(9, 1 @1) 2:Got(1, 1.1) Rank 0: Event (8, 1) detected at 0.99 2:Got(3, 1.1) 2:Got(5, 1.1) 2:Got(7, 1.1) 2:Got(9, 1.1) 2:Sent(1, 1.1 @1.09) 2:Sent(3, 1.1 @1.09) 2:Sent(5, 1.1 @1.09) 2:Sent(7, 1.1 @1.09) 1:Got(1, 1.2) 1:Got(3, 1.2) 1:Got(5, 1.2) 1:Got(7, 1.2) 1:Sent(0, 1.1 @1.09) 1:Sent(2, 1.1 @1.09) 1:Sent(4, 1.1 @1.09) 1:Sent(6, 1.1 @1.09) Rank 0: Event (1, 1.1) detected at 1.04 Rank 0: Event (3, 1.1) detected at 1.04 Rank 0: Event (5, 1.1) detected at 1.04 Rank 0: Event (7, 1.1) detected at 1.04 2:Got(0, 1.2) 2:Got(2, 1.2) 2:Got(4, 1.2) 2:Got(6, 1.2) EOF # sort the file using locale specified by current environment sort "${MUSIC_DATA_PATH}/ok" -o "${MUSIC_DATA_PATH}/ok" cat <<\EOF > "${MUSIC_DATA_PATH}/errok" EOF for method in point-to-point collective ; do write_configuration "${method}" run_test "${NP}" "${music_conf}" exit_code=$? if test "${exit_code}" -gt 0 ; then exit "${exit_code}" fi done exit 0 music-1.1.16/testsuite/sanitytests/multiport.cc0000644000175000017500000002536113571617503016651 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009, 2019 INCF * * MUSIC 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. * * MUSIC 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 . */ // Leave as first include---required by BG/L #include #include #include #include #include #include extern "C" { #include #include } #include #include const double DEFAULT_TIMESTEP = 1e-2; const double DEFAULT_FREQUENCY = 10.0; // Hz void usage (int rank) { if (rank == 0) { std::cerr << "Usage: multiport [OPTION...]" << std::endl << "`eventgenerator' generates spikes from a Poisson distribution." << std::endl << std:: endl << " -t, --timestep TIMESTEP time between tick() calls (default " << DEFAULT_TIMESTEP << " s)" << std::endl << " -b, --maxbuffered TICKS maximal amount of data buffered" << std::endl << " -f, --frequency FREQ average frequency (default " << DEFAULT_FREQUENCY << " Hz)" << std::endl << " -m, --imaptype TYPE linear (default) or roundrobin" << std::endl << " -i, --indextype TYPE global (default) or local" << std::endl << " --out NAME:WIDTH name and width of an output port" << std::endl << " --in NAME:WIDTH name and width of input port" << std::endl << " -h, --help print this help message" << std::endl << std::endl << "Report bugs to ." << std::endl; } exit (1); } double timestep = DEFAULT_TIMESTEP; int maxbuffered = 0; double freq = DEFAULT_FREQUENCY; string imaptype = "linear"; string indextype = "global"; double negexp (double m) { return - m * log (drand48 ()); } class Port { protected: MUSIC::Setup* setup_; std::string name_; int width_; public: Port (MUSIC::Setup* setup, std::string name, int width) : setup_ (setup), name_ (name), width_ (width) { } }; class OutputPort : public Port { MUSIC::EventOutputPort* port_; MUSIC::Index::Type type; std::vector ids; std::vector nextSpike; double m; public: OutputPort (MUSIC::Setup* setup, std::string name, int width) : Port (setup, name, width) { } void publish () { port_ = setup_->publishEventOutput (name_); if (!port_->isConnected ()) { if (setup_->communicator ().Get_rank () == 0) std::cerr << "multiport port is not connected" << std::endl; setup_->communicator ().Abort (1); } } void map (int maxbuffered, std::string imaptype, std::string indextype) { MPI::Intracomm comm = setup_->communicator (); int rank = comm.Get_rank (); int nProcesses = comm.Get_size (); if (indextype == "global") type = MUSIC::Index::GLOBAL; else type = MUSIC::Index::LOCAL; if (imaptype == "linear") { int nUnitsPerProcess = width_ / nProcesses; int nLocalUnits = nUnitsPerProcess; int rest = width_ % nProcesses; int firstId = nUnitsPerProcess * rank; if (rank < rest) { firstId += rank; nLocalUnits += 1; } else firstId += rest; for (int i = 0; i < nLocalUnits; ++i) ids.push_back (firstId + i); MUSIC::LinearIndex indices (firstId, nLocalUnits); if (maxbuffered > 0) port_->map (&indices, type, maxbuffered); else port_->map (&indices, type); } else { for (int i = rank; i < width_; i += nProcesses) ids.push_back (i); MUSIC::PermutationIndex indices (&ids.front (), ids.size ()); if (maxbuffered > 0) port_->map (&indices, type, maxbuffered); else port_->map (&indices, type); } } void init (double freq) { m = 1.0 / freq; for (unsigned int i = 0; i < ids.size (); ++i) nextSpike.push_back (negexp (m)); } void tick (double nextTime) { if (type == MUSIC::Index::GLOBAL) { for (unsigned int i = 0; i < ids.size (); ++i) while (nextSpike[i] < nextTime) { port_->insertEvent (nextSpike[i], MUSIC::GlobalIndex (ids[i])); nextSpike[i] += negexp (m); } } else { for (unsigned int i = 0; i < ids.size (); ++i) while (nextSpike[i] < nextTime) { port_->insertEvent (nextSpike[i], MUSIC::LocalIndex (i)); nextSpike[i] += negexp (m); } } } }; class MyEventHandlerGlobal : public MUSIC::EventHandlerGlobalIndex { public: void operator () (double t, MUSIC::GlobalIndex id) { //eventBuffer.push_back (MUSIC::Event (t, id)); } }; class MyEventHandlerLocal: public MUSIC::EventHandlerLocalIndex { public: void operator () (double t, MUSIC::LocalIndex id) { //eventBuffer.push_back (MUSIC::Event (t, id)); } }; class InputPort : public Port { MUSIC::EventInputPort* port_; MyEventHandlerGlobal evhandlerGlobal; MyEventHandlerLocal evhandlerLocal; public: InputPort (MUSIC::Setup* setup, std::string name, int width) : Port (setup, name, width) { } void publish () { port_ = setup_->publishEventInput (name_); if (!port_->isConnected ()) { if (setup_->communicator ().Get_rank () == 0) std::cerr << "multiport port is not connected" << std::endl; setup_->communicator ().Abort (1); } } void map (std::string imaptype, std::string indextype) { MPI::Intracomm comm = setup_->communicator (); int rank = comm.Get_rank (); int nProcesses = comm.Get_size (); if (imaptype == "linear") { int nUnitsPerProcess = width_ / nProcesses; int nLocalUnits = nUnitsPerProcess; int rest = width_ % nProcesses; int firstId = nUnitsPerProcess * rank; if (rank < rest) { firstId += rank; nLocalUnits += 1; } else firstId += rest; MUSIC::LinearIndex indices (firstId, nLocalUnits); if (indextype == "global") port_->map (&indices, &evhandlerGlobal, 0.1); else port_->map (&indices, &evhandlerLocal, 0.0); } else { std::vector v; for (int i = rank; i < width_; i += nProcesses) v.push_back (i); MUSIC::PermutationIndex indices (&v.front (), v.size ()); if (indextype == "global") port_->map (&indices, &evhandlerGlobal, 0.0); else port_->map (&indices, &evhandlerLocal, 0.0); } } }; std::vector outputPort; void makeOutput (MUSIC::Setup* setup, std::string name, int width) { outputPort.push_back (new OutputPort (setup, name, width)); } std::vector inputPort; void makeInput (MUSIC::Setup* setup, std::string name, int width) { inputPort.push_back (new InputPort (setup, name, width)); } void parsePort (MUSIC::Setup* setup, std::string s, void (*makePort) (MUSIC::Setup* setup, std::string name, int width)) { std::istringstream is (s); char name[80]; if (!is.getline (name, 80, ':')) MUSIC::error ("couldn't parse port name"); int width; if (!(is >> width)) MUSIC::error ("couldn't parse port width"); makePort (setup, name, width); } void getargs (MUSIC::Setup* setup, int argc, char* argv[]) { int rank = setup->communicator ().Get_rank (); enum { OUT, IN }; opterr = 0; // handle errors ourselves while (1) { static struct option longOptions[] = { {"timestep", required_argument, 0, 't'}, {"maxbuffered", required_argument, 0, 'b'}, {"frequency", required_argument, 0, 'f'}, {"imaptype", required_argument, 0, 'm'}, {"indextype", required_argument, 0, 'i'}, {"help", no_argument, 0, 'h'}, {"out", required_argument, 0, OUT}, {"in", required_argument, 0, IN}, {0, 0, 0, 0} }; /* `getopt_long' stores the option index here. */ int option_index = 0; // the + below tells getopt_long not to reorder argv int c = getopt_long (argc, argv, "+t:b:f:m:i:h", longOptions, &option_index); /* detect the end of the options */ if (c == -1) break; switch (c) { case 't': timestep = atof (optarg); // NOTE: could do error checking continue; case 'b': maxbuffered = atoi (optarg); continue; case 'f': freq = atof (optarg); // NOTE: error checking here as well continue; case 'm': imaptype = optarg; if (imaptype != "linear" && imaptype != "roundrobin") { usage (rank); abort (); } continue; case 'i': indextype = optarg; if (indextype != "global" && indextype != "local") { usage (rank); abort (); } continue; case OUT: parsePort (setup, optarg, makeOutput); continue; case IN: parsePort (setup, optarg, makeInput); continue; case '?': break; // ignore unknown options case 'h': usage (rank); default: abort (); } } if (argc != optind) usage (rank); } #include void errhandler (MPI_Comm* comm, int* error, ...) { assert (0); } int main (int argc, char *argv[]) { MUSIC::Setup* setup = new MUSIC::Setup (argc, argv); MPI_Errhandler errh; #if MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER MPI_Comm_create_errhandler (errhandler, &errh); #else MPI_Errhandler_create (errhandler, &errh); #endif MPI_Comm_set_errhandler (MPI_COMM_WORLD, errh); MPI::Intracomm comm = setup->communicator (); int rank = comm.Get_rank (); getargs (setup, argc, argv); for (std::vector::iterator i = inputPort.begin (); i != inputPort.end (); ++i) (*i)->publish (); for (std::vector::iterator i = outputPort.begin (); i != outputPort.end (); ++i) (*i)->publish (); for (std::vector::iterator i = inputPort.begin (); i != inputPort.end (); ++i) (*i)->map (imaptype, indextype); for (std::vector::iterator i = outputPort.begin (); i != outputPort.end (); ++i) (*i)->map (maxbuffered, imaptype, indextype); double stoptime; setup->config ("stoptime", &stoptime); MUSIC::Runtime* runtime = new MUSIC::Runtime (setup, timestep); srand48 (rank); // Use different seeds for (std::vector::iterator i = outputPort.begin (); i != outputPort.end (); ++i) (*i)->init (freq); double time = runtime->time (); while (time < stoptime) { double nextTime = time + timestep; for (std::vector::iterator i = outputPort.begin (); i != outputPort.end (); ++i) (*i)->tick (nextTime); // Make data available for other programs runtime->tick (); time = runtime->time (); } runtime->finalize (); delete runtime; return 0; } music-1.1.16/testsuite/sanitytests/events.test0000755000175000017500000000311613571617503016505 00000000000000#!/bin/sh NP=4 music_conf="$( echo "${0##*/}" | sed 's/\.test//' ).music" abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")" path="`dirname $abspath`" . ${path}/run_test write_configuration () { method=$1 echo "Communication method: ${method}" # this is music configuration file cat < "${MUSIC_DATA_PATH}/${music_conf}" np=2 stoptime=1.0 [from] binary=${TEST_BINDIR}/eventsource args=-b 1 10 ${MUSIC_DATA_PATH}/spikes [to] binary=${TEST_BINDIR}/eventlogger args=-b 2 from.out -> to.in [10, ${method}] EOF } # this is input data cat <<\EOF > "${MUSIC_DATA_PATH}/spikes0.dat" # spikes 0.0 0 0.1 1 0.2 2 0.3 3 0.4 4 EOF cat <<\EOF > "${MUSIC_DATA_PATH}/spikes1.dat" # spikes 0.0 9 0.6 5 0.7 6 0.8 7 0.9 8 EOF # this is the output we should expect to see cat <<\EOF > "${MUSIC_DATA_PATH}/ok" Rank 0: Event (0, 0) detected at 0 Rank 0: Event (1, 0.1) detected at 0.09 Rank 0: Event (2, 0.2) detected at 0.19 Rank 0: Event (3, 0.3) detected at 0.28 Rank 0: Event (4, 0.4) detected at 0.39 Rank 1: Event (5, 0.6) detected at 0.58 Rank 1: Event (6, 0.7) detected at 0.68 Rank 1: Event (7, 0.8) detected at 0.79 Rank 1: Event (8, 0.9) detected at 0.89 Rank 1: Event (9, 0) detected at 0 EOF # sort the file using locale specified by current environment sort "${MUSIC_DATA_PATH}/ok" -o "${MUSIC_DATA_PATH}/ok" cat <<\EOF > "${MUSIC_DATA_PATH}/errok" EOF for method in point-to-point collective ; do write_configuration "${method}" run_test "${NP}" "${music_conf}" exit_code=$? if test "${exit_code}" -gt 0 ; then exit "${exit_code}" fi done exit 0music-1.1.16/testsuite/sanitytests/launchtest.test0000644000175000017500000000176213571617503017355 00000000000000#!/bin/sh NP=6 music_conf="$( echo "${0##*/}" | sed 's/\.test//' ).music" abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")" path="`dirname $abspath`" . ${path}/run_test write_configuration () { method=$1 echo "Communication method: ${method}" # this is music configuration file cat < "${MUSIC_DATA_PATH}/${music_conf}" binary=${TEST_EXTRABINDIR}/launchtest np=3 [1] args=hej du glade param=1.0 [2] args=ta en spade param=2.0 1.as1 -> 2.bd1 2.bd2 <- 1.as2 # asd bd2 -> 2.as2 [12,${method}] EOF } # this is the output we should expect to see cat <<\EOF > "${MUSIC_DATA_PATH}/ok" EOF # sort the file using locale specified by current environment sort "${MUSIC_DATA_PATH}/ok" -o "${MUSIC_DATA_PATH}/ok" cat <<\EOF > "${MUSIC_DATA_PATH}/errok" EOF for method in point-to-point collective ; do write_configuration "${method}" run_test "${NP}" "${music_conf}" exit_code=$? if test "${exit_code}" -gt 0 ; then exit "${exit_code}" fi done exit 0 music-1.1.16/testsuite/sanitytests/messages.test0000644000175000017500000000317713571617503017014 00000000000000#!/bin/sh NP=4 music_conf="$( echo "${0##*/}" | sed 's/\.test//' ).music" abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")" path="`dirname $abspath`" . ${path}/run_test write_configuration () { method=$1 echo "Communication method: ${method}" # this is music configuration file cat < "${MUSIC_DATA_PATH}/${music_conf}" np=2 stoptime=1.0 [from] binary=${TEST_BINDIR}/messagesource args=-b 1 ${MUSIC_DATA_PATH}/messages [to] binary=${TEST_BINDIR}/eventlogger args=-b 2 from.out -> to.message [10, ${method}] EOF } # this is input data cat <<\EOF > "${MUSIC_DATA_PATH}/messages0.dat" 0.3 Hello 0.7 ! EOF cat <<\EOF > "${MUSIC_DATA_PATH}/messages1.dat" 0.5 World 0.71 Hello World 0.72 ! EOF # this is the output we should expect to see cat <<\EOF > "${MUSIC_DATA_PATH}/ok" Rank 0: Message (0.3, Hello) detected at 0.28 Rank 1: Message (0.3, Hello) detected at 0.28 Rank 0: Message (0.5, World) detected at 0.49 Rank 1: Message (0.5, World) detected at 0.49 Rank 0: Message (0.7, !) detected at 0.68 Rank 1: Message (0.7, !) detected at 0.68 Rank 0: Message (0.71, Hello World) detected at 0.69 Rank 1: Message (0.71, Hello World) detected at 0.69 Rank 0: Message (0.72, !) detected at 0.7 Rank 1: Message (0.72, !) detected at 0.7 EOF # sort the file using locale specified by current environment sort "${MUSIC_DATA_PATH}/ok" -o "${MUSIC_DATA_PATH}/ok" cat <<\EOF > "${MUSIC_DATA_PATH}/errok" EOF for method in point-to-point collective ; do write_configuration "${method}" run_test "${NP}" "${music_conf}" exit_code=$? if test "${exit_code}" -gt 0 ; then exit "${exit_code}" fi done exit 0music-1.1.16/testsuite/sanitytests/cloop.test0000644000175000017500000000522313571617503016313 00000000000000#!/bin/sh NP=4 music_conf="$( echo "${0##*/}" | sed 's/\.test//' ).music" abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")" path="`dirname $abspath`" . ${path}/run_test write_configuration () { method=$1 echo "Communication method: ${method}" # this is music configuration file cat < "${MUSIC_DATA_PATH}/${music_conf}" np=1 stoptime=1.0 [A] binary=${TEST_EXTRABINDIR}/contdelay args=-d 0.1 -b 1000 [B] binary=${TEST_EXTRABINDIR}/contdelay args=-d 0.1 -b 1000 [from] binary=${TEST_EXTRABINDIR}/clocksource args=-b 5 [to] binary=${TEST_BINDIR}/contsink from.clock -> A.in [1,${method}] A.out -> B.in [1,${method}] B.out -> to.contdata [1,${method}] B.out -> A.aux [1,${method}] EOF } # this is the output we should expect to see cat <<\EOF > "${MUSIC_DATA_PATH}/ok" 0 on 0 @0 0 on 0 @0.01 0 on 0 @0.02 0 on 0 @0.03 0 on 0 @0.04 0 on 0 @0.05 0 on 0 @0.06 0 on 0 @0.07 0 on 0 @0.08 0 on 0 @0.09 0 on 0 @0.1 0 on 0 @0.11 0 on 0 @0.12 0 on 0 @0.13 0 on 0 @0.14 0 on 0 @0.15 0 on 0 @0.16 0 on 0 @0.17 0 on 0 @0.18 0 on 0 @0.19 0 on 0 @0.2 0 on 0 @0.21 0 on 0 @0.22 0.01 on 0 @0.23 0.02 on 0 @0.24 0.03 on 0 @0.25 0.04 on 0 @0.26 0.05 on 0 @0.27 0.06 on 0 @0.28 0.07 on 0 @0.29 0.08 on 0 @0.3 0.09 on 0 @0.31 0.1 on 0 @0.32 0.11 on 0 @0.33 0.12 on 0 @0.34 0.13 on 0 @0.35 0.14 on 0 @0.36 0.15 on 0 @0.37 0.16 on 0 @0.38 0.17 on 0 @0.39 0.18 on 0 @0.4 0.19 on 0 @0.41 0.2 on 0 @0.42 0.21 on 0 @0.43 0.22 on 0 @0.44 0.24 on 0 @0.45 0.26 on 0 @0.46 0.28 on 0 @0.47 0.3 on 0 @0.48 0.32 on 0 @0.49 0.34 on 0 @0.5 0.36 on 0 @0.51 0.38 on 0 @0.52 0.4 on 0 @0.53 0.42 on 0 @0.54 0.44 on 0 @0.55 0.46 on 0 @0.56 0.48 on 0 @0.57 0.5 on 0 @0.58 0.52 on 0 @0.59 0.54 on 0 @0.6 0.56 on 0 @0.61 0.58 on 0 @0.62 0.6 on 0 @0.63 0.62 on 0 @0.64 0.64 on 0 @0.65 0.66 on 0 @0.66 0.69 on 0 @0.67 0.72 on 0 @0.68 0.75 on 0 @0.69 0.78 on 0 @0.7 0.81 on 0 @0.71 0.84 on 0 @0.72 0.87 on 0 @0.73 0.9 on 0 @0.74 0.93 on 0 @0.75 0.96 on 0 @0.76 0.99 on 0 @0.77 1.02 on 0 @0.78 1.05 on 0 @0.79 1.08 on 0 @0.8 1.11 on 0 @0.81 1.14 on 0 @0.82 1.17 on 0 @0.83 1.2 on 0 @0.84 1.23 on 0 @0.85 1.26 on 0 @0.86 1.29 on 0 @0.87 1.32 on 0 @0.88 1.36 on 0 @0.89 1.4 on 0 @0.9 1.44 on 0 @0.91 1.48 on 0 @0.92 1.52 on 0 @0.93 1.56 on 0 @0.94 1.6 on 0 @0.95 1.64 on 0 @0.96 1.68 on 0 @0.97 1.72 on 0 @0.98 1.76 on 0 @0.99 EOF # sort the file using locale specified by current environment sort "${MUSIC_DATA_PATH}/ok" -o "${MUSIC_DATA_PATH}/ok" cat <<\EOF > "${MUSIC_DATA_PATH}/errok" EOF for method in point-to-point collective ; do write_configuration "${method}" run_test "${NP}" "${music_conf}" exit_code=$? if test "${exit_code}" -gt 0 ; then exit "${exit_code}" fi done exit 0 music-1.1.16/testsuite/sanitytests/contclock.test0000644000175000017500000000240113571617503017151 00000000000000#!/bin/sh NP=2 music_conf="$( echo "${0##*/}" | sed 's/\.test//' ).music" abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")" path="`dirname $abspath`" . ${path}/run_test write_configuration () { method=$1 echo "Communication method: ${method}" # this is music configuration file cat < "${MUSIC_DATA_PATH}/${music_conf}" stoptime=0.5 [from] np=1 binary=${TEST_EXTRABINDIR}/clocksource args=-t 0.02 -b 3 [to] np=1 binary=${TEST_BINDIR}/contsink args=-t 0.03 from.clock -> to.contdata [1, ${method}] EOF } # this is the output we should expect to see cat <<\EOF > "${MUSIC_DATA_PATH}/ok" 0 on 0 @0 0.03 on 0 @0.03 0.06 on 0 @0.06 0.09 on 0 @0.09 0.12 on 0 @0.12 0.15 on 0 @0.15 0.18 on 0 @0.18 0.21 on 0 @0.21 0.24 on 0 @0.24 0.27 on 0 @0.27 0.3 on 0 @0.3 0.33 on 0 @0.33 0.36 on 0 @0.36 0.39 on 0 @0.39 0.42 on 0 @0.42 0.45 on 0 @0.45 0.48 on 0 @0.48 EOF # sort the file using locale specified by current environment sort "${MUSIC_DATA_PATH}/ok" -o "${MUSIC_DATA_PATH}/ok" cat <<\EOF > "${MUSIC_DATA_PATH}/errok" EOF for method in point-to-point collective ; do write_configuration "${method}" run_test "${NP}" "${music_conf}" exit_code=$? if test "${exit_code}" -gt 0 ; then exit "${exit_code}" fi done exit 0 music-1.1.16/testsuite/sanitytests/launchtest.cc0000644000175000017500000000074013571617503016756 00000000000000#include #include int main (int argc, char *argv[]) { MUSIC::Setup* musicSetup = new MUSIC::Setup (argc, argv); MPI::Intracomm comm = musicSetup->communicator (); int rank = comm.Get_rank (); double param; if (!musicSetup->config ("param", ¶m)) param = -1.0; std::cout << "rank=" << rank << ":param=" << param; for (int i = 0; i < argc; ++i) std::cout << ':' << argv[i]; std::cout << std::endl; MPI_Finalize (); return 0; } music-1.1.16/testsuite/sanitytests/fork.test0000644000175000017500000000373713571617503016150 00000000000000#!/bin/sh NP=6 music_conf="$( echo "${0##*/}" | sed 's/\.test//' ).music" abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")" path="`dirname $abspath`" . ${path}/run_test write_configuration () { method=$1 echo "Communication method: ${method}" # this is music configuration file cat < "${MUSIC_DATA_PATH}/${music_conf}" np=2 stoptime=1.0 [from] binary=${TEST_BINDIR}/eventsource args=10 ${MUSIC_DATA_PATH}/spikes [to] binary=${TEST_BINDIR}/eventlogger from.out -> to.in [10,${method}] [two] binary=${TEST_BINDIR}/eventlogger from.out -> two.in [10,${method}] EOF } # this is input data cat <<\EOF > "${MUSIC_DATA_PATH}/spikes0.dat" # spikes 0.0 0 0.1 1 0.2 2 0.3 3 0.4 4 EOF cat <<\EOF > "${MUSIC_DATA_PATH}/spikes1.dat" # spikes 0.0 9 0.6 5 0.7 6 0.8 7 0.9 8 EOF # this is the output we should expect to see cat <<\EOF > "${MUSIC_DATA_PATH}/ok" Rank 0: Event (0, 0) detected at 0 Rank 0: Event (1, 0.1) detected at 0 Rank 0: Event (2, 0.2) detected at 0 Rank 0: Event (3, 0.3) detected at 0 Rank 0: Event (4, 0.4) detected at 0 Rank 0: Event (0, 0) detected at 0 Rank 0: Event (1, 0.1) detected at 0 Rank 0: Event (2, 0.2) detected at 0 Rank 0: Event (3, 0.3) detected at 0 Rank 0: Event (4, 0.4) detected at 0 Rank 1: Event (9, 0) detected at 0 Rank 1: Event (5, 0.6) detected at 0 Rank 1: Event (6, 0.7) detected at 0 Rank 1: Event (7, 0.8) detected at 0 Rank 1: Event (8, 0.9) detected at 0 Rank 1: Event (9, 0) detected at 0 Rank 1: Event (5, 0.6) detected at 0 Rank 1: Event (6, 0.7) detected at 0 Rank 1: Event (7, 0.8) detected at 0 Rank 1: Event (8, 0.9) detected at 0 EOF # sort the file using locale specified by current environment sort "${MUSIC_DATA_PATH}/ok" -o "${MUSIC_DATA_PATH}/ok" cat <<\EOF > "${MUSIC_DATA_PATH}/errok" EOF for method in point-to-point collective ; do write_configuration "${method}" run_test "${NP}" "${music_conf}" exit_code=$? if test "${exit_code}" -gt 0 ; then exit "${exit_code}" fi done exit 0music-1.1.16/testsuite/sanitytests/divergence.test0000644000175000017500000000354713571617503017321 00000000000000#!/bin/sh NP=3 music_conf="$( echo "${0##*/}" | sed 's/\.test//' ).music" abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")" path="`dirname $abspath`" . ${path}/run_test write_configuration () { method=$1 echo "Communication method: ${method}" # this is music configuration file cat < "${MUSIC_DATA_PATH}/${music_conf}" stoptime=1.0 [from] binary=${TEST_BINDIR}/eventsource args=10 ${MUSIC_DATA_PATH}/spikes np=1 [to] binary=${TEST_BINDIR}/eventlogger args=-a np=2 from.out -> to.in [10,${method}] EOF } # this is input data cat <<\EOF > "${MUSIC_DATA_PATH}/spikes0.dat" # spikes 0.0 0 0.1 1 0.2 2 0.3 3 0.4 4 0.5 5 0.6 6 0.7 7 0.8 8 0.9 9 EOF # this is the output we should expect to see cat <<\EOF > "${MUSIC_DATA_PATH}/ok" Rank 0: Event (0, 0) detected at 0 Rank 0: Event (1, 0.1) detected at 0 Rank 0: Event (2, 0.2) detected at 0 Rank 1: Event (0, 0) detected at 0 Rank 0: Event (3, 0.3) detected at 0 Rank 0: Event (4, 0.4) detected at 0 Rank 0: Event (5, 0.5) detected at 0 Rank 0: Event (6, 0.6) detected at 0 Rank 0: Event (7, 0.7) detected at 0 Rank 0: Event (8, 0.8) detected at 0 Rank 0: Event (9, 0.9) detected at 0 Rank 1: Event (1, 0.1) detected at 0 Rank 1: Event (2, 0.2) detected at 0 Rank 1: Event (3, 0.3) detected at 0 Rank 1: Event (4, 0.4) detected at 0 Rank 1: Event (5, 0.5) detected at 0 Rank 1: Event (6, 0.6) detected at 0 Rank 1: Event (7, 0.7) detected at 0 Rank 1: Event (8, 0.8) detected at 0 Rank 1: Event (9, 0.9) detected at 0 EOF # sort the file using locale specified by current environment sort "${MUSIC_DATA_PATH}/ok" -o "${MUSIC_DATA_PATH}/ok" cat <<\EOF > "${MUSIC_DATA_PATH}/errok" EOF for method in point-to-point collective ; do write_configuration "${method}" run_test "${NP}" "${music_conf}" exit_code=$? if test "${exit_code}" -gt 0 ; then exit "${exit_code}" fi done exit 0 music-1.1.16/testsuite/sanitytests/multicomm.test0000644000175000017500000000413513571617503017206 00000000000000#!/bin/sh NP=8 music_conf="$( echo "${0##*/}" | sed 's/\.test//' ).music" abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")" path="`dirname $abspath`" . ${path}/run_test write_configuration () { method=$1 echo "Communication method: ${method}" # this is music configuration file cat < "${MUSIC_DATA_PATH}/${music_conf}" stoptime=1.0 np=2 [S0] binary=${TEST_BINDIR}/eventsource args=--out out0 10 ${MUSIC_DATA_PATH}/spikes [S1] binary=${TEST_BINDIR}/eventsource args=--out out1 10 ${MUSIC_DATA_PATH}/spikes [R0] binary=${TEST_BINDIR}/eventlogger args=--in in0 [R1] binary=${TEST_BINDIR}/eventlogger args=--in in1 S0.out0 -> R0.in0 [10, ${method}] S1.out1 -> R1.in1 [10, ${method}] EOF } # this is input data cat <<\EOF > "${MUSIC_DATA_PATH}/spikes0.dat" # spikes 0.0 0 0.1 1 0.2 2 0.3 3 0.4 4 EOF cat <<\EOF > "${MUSIC_DATA_PATH}/spikes1.dat" # spikes 0.0 9 0.6 5 0.7 6 0.8 7 0.9 8 EOF # this is the output we should expect to see cat <<\EOF > "${MUSIC_DATA_PATH}/ok" Rank 0: Event (0, 0) detected at 0 Rank 0: Event (1, 0.1) detected at 0 Rank 0: Event (2, 0.2) detected at 0 Rank 0: Event (3, 0.3) detected at 0 Rank 0: Event (4, 0.4) detected at 0 Rank 1: Event (9, 0) detected at 0 Rank 1: Event (5, 0.6) detected at 0 Rank 1: Event (6, 0.7) detected at 0 Rank 1: Event (7, 0.8) detected at 0 Rank 1: Event (8, 0.9) detected at 0 Rank 0: Event (0, 0) detected at 0 Rank 0: Event (1, 0.1) detected at 0 Rank 0: Event (2, 0.2) detected at 0 Rank 0: Event (3, 0.3) detected at 0 Rank 0: Event (4, 0.4) detected at 0 Rank 1: Event (9, 0) detected at 0 Rank 1: Event (5, 0.6) detected at 0 Rank 1: Event (6, 0.7) detected at 0 Rank 1: Event (7, 0.8) detected at 0 Rank 1: Event (8, 0.9) detected at 0 EOF # sort the file using locale specified by current environment sort "${MUSIC_DATA_PATH}/ok" -o "${MUSIC_DATA_PATH}/ok" cat <<\EOF > "${MUSIC_DATA_PATH}/errok" EOF for method in point-to-point collective ; do write_configuration "${method}" run_test "${NP}" "${music_conf}" exit_code=$? if test "${exit_code}" -gt 0 ; then exit "${exit_code}" fi done exit 0music-1.1.16/testsuite/sanitytests/eventdelay.cc0000644000175000017500000001373313571617503016752 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ // Leave as first include---required by BG/L #include #include #include #include #include #include #include extern "C" { #include #include } #include const double DEFAULT_TIMESTEP = 1e-2; void usage (int rank) { if (rank == 0) { std::cerr << "Usage: eventdelay [OPTION...]" << std::endl << "`eventdelay' receives spikes through a MUSIC input port" << std::endl << "and relays them to an output port" << std::endl << std:: endl << " -t, --timestep TIMESTEP time between tick() calls (default " << DEFAULT_TIMESTEP << " s)" << std::endl << " -d, --delay SECS amount of delay" << std::endl << " -b, --maxbuffer TICKS maximal buffer" << std::endl << " -L, --label LABEL log events using LABEL" << std::endl << " -h, --help print this help message" << std::endl << std::endl << "Report bugs to ." << std::endl; } exit (1); } std::vector eventBuffer; std::vector overflowBuffer; double timestep = DEFAULT_TIMESTEP; double delay = 0.0; int label = -1; int maxbuffered = 0; #ifdef MUSIC_LOCAL class MyEventHandler: public MUSIC::EventHandlerLocalIndex { public: void operator () (double t, MUSIC::LocalIndex id) { eventBuffer.push_back (MUSIC::Event (t + delay, id)); if (label != -1) std::cout << label << ":Got(" << id << ", " << t + delay << ")" << std::endl; } }; #else class MyEventHandler: public MUSIC::EventHandlerGlobalIndex { public: void operator () (double t, MUSIC::GlobalIndex id) { eventBuffer.push_back (MUSIC::Event (t + delay, id)); if (label != -1) std::cout << label << ":Got(" << id << ", " << t + delay << ")" << std::endl; } }; #endif void getargs (int rank, int argc, char* argv[]) { opterr = 0; // handle errors ourselves while (1) { static struct option longOptions[] = { {"timestep", required_argument, 0, 't'}, {"delay", required_argument, 0, 'd'}, {"label", required_argument, 0, 'L'}, {"maxbuffer", required_argument, 0, 'b'}, {"help", no_argument, 0, 'h'}, {0, 0, 0, 0} }; /* `getopt_long' stores the option index here. */ int option_index = 0; // the + below tells getopt_long not to reorder argv int c = getopt_long (argc, argv, "+t:d:L:b:h", longOptions, &option_index); /* detect the end of the options */ if (c == -1) break; switch (c) { case 't': timestep = atof (optarg); continue; case 'd': delay = atof(optarg); continue; case 'L': label = atoi(optarg); continue; case 'b': maxbuffered = atoi(optarg); continue; case '?': break; // ignore unknown options case 'h': usage (rank); default: abort (); } } if (argc < optind || argc > optind) usage (rank); } int main (int argc, char *argv[]) { MUSIC::Setup* setup = new MUSIC::Setup (argc, argv); MPI::Intracomm comm = setup->communicator (); int nProcesses = comm.Get_size (); int rank = comm.Get_rank (); getargs (rank, argc, argv); MUSIC::EventInputPort* in = setup->publishEventInput ("in"); if (!in->isConnected ()) { if (rank == 0) std::cerr << "eventdelay input port is not connected" << std::endl; comm.Abort (1); } MUSIC::EventOutputPort* out = setup->publishEventOutput ("out"); if (!out->isConnected ()) { if (rank == 0) std::cerr << "eventdelay output port is not connected" << std::endl; comm.Abort (1); } // Optional extra input port MUSIC::EventInputPort* aux = setup->publishEventInput ("aux"); int width = in->width (); MyEventHandler evhandler; int localWidth = width / nProcesses; int myWidth = localWidth; if (rank == nProcesses-1) { myWidth = localWidth; // FIXME } MUSIC::LinearIndex indices (rank*localWidth, myWidth); if (maxbuffered) in->map (&indices, &evhandler, delay, maxbuffered); else in->map (&indices, &evhandler, delay); #ifdef MUSIC_LOCAL out->map (&indices, MUSIC::Index::LOCAL); #else out->map (&indices, MUSIC::Index::GLOBAL); #endif if (aux->isConnected ()) { if (maxbuffered) aux->map (&indices, &evhandler, 0.0, maxbuffered); else aux->map (&indices, &evhandler, 0.0); } double stoptime; setup->config ("stoptime", &stoptime); MUSIC::Runtime* runtime = new MUSIC::Runtime (setup, timestep); for (; runtime->time () < stoptime; runtime->tick ()) { sort (eventBuffer.begin (), eventBuffer.end ()); for (std::vector::iterator i = eventBuffer.begin (); i != eventBuffer.end (); ++i) { if (i->t < runtime->time () + timestep) { if (label != -1) std::cout << label << ":Sent(" << i->id << ", " << i->t << " @" << runtime->time () << ")" << std::endl; #ifdef MUSIC_LOCAL out->insertEvent (i->t, MUSIC::LocalIndex (i->id)); #else out->insertEvent (i->t, MUSIC::GlobalIndex (i->id)); #endif } else overflowBuffer.push_back (*i); } eventBuffer.clear (); for (std::vector::iterator i = overflowBuffer.begin (); i != overflowBuffer.end (); ++i) eventBuffer.push_back (*i); overflowBuffer.clear (); } runtime->finalize (); delete runtime; return 0; } music-1.1.16/testsuite/sanitytests/constsource.cc0000644000175000017500000000702713571617503017160 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ // Leave as first include---required by BG/L #include #include #include #include #include extern "C" { #include #include } #include const double DEFAULT_TIMESTEP = 1e-2; double *dataarray; void usage (int rank) { if (rank == 0) { std::cerr << "Usage: constsource [OPTION...]" << std::endl << "`constsource' sends out constant values" << std::endl << "through a MUSIC output port." << std::endl << std:: endl << " -t, --timestep TIMESTEP time between tick() calls (default " << DEFAULT_TIMESTEP << " s)" << std::endl << " -h, --help print this help message" << std::endl << std::endl << "Report bugs to ." << std::endl; } exit (1); } double timestep = DEFAULT_TIMESTEP; int localwidth = 1; void getargs (int rank, int argc, char* argv[]) { opterr = 0; // handle errors ourselves while (1) { static struct option longOptions[] = { {"timestep", required_argument, 0, 't'}, {"help", no_argument, 0, 'h'}, {0, 0, 0, 0} }; /* `getopt_long' stores the option index here. */ int option_index = 0; // the + below tells getopt_long not to reorder argv int c = getopt_long (argc, argv, "+t:n:h", longOptions, &option_index); /* detect the end of the options */ if (c == -1) break; switch (c) { case 't': timestep = atof (optarg); continue; case '?': break; // ignore unknown options case 'h': usage (rank); default: abort (); } } if (argc < optind + 0 || argc > optind + 0) usage (rank); } int main (int argc, char *argv[]) { MUSIC::Setup* setup = new MUSIC::Setup (argc, argv); MPI::Intracomm comm = setup->communicator (); int nProcesses = comm.Get_size (); int rank = comm.Get_rank (); getargs (rank, argc, argv); MUSIC::ContOutputPort* out = setup->publishContOutput ("contdata"); if (!out->isConnected ()) { if (rank == 0) std::cerr << "constsource port is not connected" << std::endl; comm.Abort (1); } int totalWidth = out->width (); int localWidth = (totalWidth-1) / nProcesses + 1; int myWidth = localWidth; if (rank == nProcesses - 1) // Last processor myWidth = totalWidth - (nProcesses-1) * localWidth; dataarray = new double[myWidth]; for (int i = 0; i < myWidth; ++i) dataarray[i] = rank * localWidth + i; MUSIC::ArrayData dmap (dataarray, MPI::DOUBLE, rank * localWidth, myWidth); out->map (&dmap); double stoptime; setup->config ("stoptime", &stoptime); MUSIC::Runtime* runtime = new MUSIC::Runtime (setup, timestep); double time = runtime->time (); while (time < stoptime) { runtime->tick (); time = runtime->time (); } runtime->finalize (); delete runtime; return 0; } music-1.1.16/testsuite/sanitytests/Makefile.in0000644000175000017500000011473613571626612016356 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 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@ testbin_PROGRAMS = clocksource$(EXEEXT) constsource$(EXEEXT) \ contdelay$(EXEEXT) eventdelay$(EXEEXT) multiport$(EXEEXT) \ launchtest$(EXEEXT) subdir = testsuite/sanitytests ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.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 CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(testbindir)" PROGRAMS = $(testbin_PROGRAMS) am_clocksource_OBJECTS = clocksource-clocksource.$(OBJEXT) clocksource_OBJECTS = $(am_clocksource_OBJECTS) clocksource_DEPENDENCIES = $(top_builddir)/src/libmusic.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 = clocksource_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(clocksource_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_constsource_OBJECTS = constsource-constsource.$(OBJEXT) constsource_OBJECTS = $(am_constsource_OBJECTS) constsource_DEPENDENCIES = $(top_builddir)/src/libmusic.la constsource_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(constsource_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_contdelay_OBJECTS = contdelay-contdelay.$(OBJEXT) contdelay_OBJECTS = $(am_contdelay_OBJECTS) contdelay_DEPENDENCIES = $(top_builddir)/src/libmusic.la contdelay_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(contdelay_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_eventdelay_OBJECTS = eventdelay-eventdelay.$(OBJEXT) eventdelay_OBJECTS = $(am_eventdelay_OBJECTS) eventdelay_DEPENDENCIES = $(top_builddir)/src/libmusic.la eventdelay_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(eventdelay_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_launchtest_OBJECTS = launchtest-launchtest.$(OBJEXT) launchtest_OBJECTS = $(am_launchtest_OBJECTS) launchtest_DEPENDENCIES = $(top_builddir)/src/libmusic.la launchtest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(launchtest_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_multiport_OBJECTS = multiport-multiport.$(OBJEXT) multiport_OBJECTS = $(am_multiport_OBJECTS) multiport_DEPENDENCIES = $(top_builddir)/src/libmusic.la multiport_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(multiport_CXXFLAGS) \ $(CXXFLAGS) $(AM_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) depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/clocksource-clocksource.Po \ ./$(DEPDIR)/constsource-constsource.Po \ ./$(DEPDIR)/contdelay-contdelay.Po \ ./$(DEPDIR)/eventdelay-eventdelay.Po \ ./$(DEPDIR)/launchtest-launchtest.Po \ ./$(DEPDIR)/multiport-multiport.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 = $(clocksource_SOURCES) $(constsource_SOURCES) \ $(contdelay_SOURCES) $(eventdelay_SOURCES) \ $(launchtest_SOURCES) $(multiport_SOURCES) DIST_SOURCES = $(clocksource_SOURCES) $(constsource_SOURCES) \ $(contdelay_SOURCES) $(eventdelay_SOURCES) \ $(launchtest_SOURCES) $(multiport_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)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = $(top_srcdir)/aclocal.sh AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BINDIR = @BINDIR@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXAMPLESDIR = @EXAMPLESDIR@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ FGREP = @FGREP@ GREP = @GREP@ HAVE_PYTHON = @HAVE_PYTHON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LAUNCHSTYLE = @LAUNCHSTYLE@ 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@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPI_CFLAGS = @MPI_CFLAGS@ MPI_CXXFLAGS = @MPI_CXXFLAGS@ MPI_LDFLAGS = @MPI_LDFLAGS@ MPI_UTILS = @MPI_UTILS@ MUSICCONFIGDIR = @MUSICCONFIGDIR@ MUSIC_ANYSOURCE = @MUSIC_ANYSOURCE@ MUSIC_HAVE_LONG_LONG = @MUSIC_HAVE_LONG_LONG@ MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER = @MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER@ MUSIC_HAVE_SIZE_T = @MUSIC_HAVE_SIZE_T@ MUSIC_ISENDWAITALL = @MUSIC_ISENDWAITALL@ MUSIC_USE_MPI = @MUSIC_USE_MPI@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPTIONAL_UTILS = @OPTIONAL_UTILS@ 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@ PKGDATADIR = @PKGDATADIR@ PKGEXTRABINDIR = @PKGEXTRABINDIR@ PYBUFFER_CPPFLAGS = @PYBUFFER_CPPFLAGS@ PYBUFFER_CXXFLAGS = @PYBUFFER_CXXFLAGS@ PYEXECDIR = @PYEXECDIR@ PYMUSIC_CPPFLAGS = @PYMUSIC_CPPFLAGS@ PYMUSIC_CXXFLAGS = @PYMUSIC_CXXFLAGS@ PYMUSIC_SUBDIR = @PYMUSIC_SUBDIR@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ ROS_SUBDIR = @ROS_SUBDIR@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTDIR = @TESTDIR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ testbindir = $(libdir)/@PACKAGE@-@PACKAGE_VERSION@ #testshdir = $(datadir)/@PACKAGE@-@PACKAGE_VERSION@/tests #dist_testsh_DATA = events.test chain.test run_test \ # divergence.test fork.test loop.test \ # cloop.test const.test contclock.test \ # launchtest.test messages.test \ # multicomm.test multiport.test MUSIC_INCLUDE = -I$(top_srcdir)/src -I$(top_builddir)/src clocksource_SOURCES = clocksource.cc clocksource_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ clocksource_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ constsource_SOURCES = constsource.cc constsource_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ constsource_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ contdelay_SOURCES = contdelay.cc contdelay_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ contdelay_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ eventdelay_SOURCES = eventdelay.cc eventdelay_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ eventdelay_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ multiport_SOURCES = multiport.cc multiport_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ multiport_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ launchtest_SOURCES = launchtest.cc launchtest_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ launchtest_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) EXTRA_DIST = events.test chain.test run_test \ divergence.test fork.test loop.test \ cloop.test const.test contclock.test \ launchtest.test messages.test \ multicomm.test multiport.test all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu testsuite/sanitytests/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu testsuite/sanitytests/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-testbinPROGRAMS: $(testbin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(testbin_PROGRAMS)'; test -n "$(testbindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(testbindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(testbindir)" || 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)$(testbindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(testbindir)$$dir" || exit $$?; \ } \ ; done uninstall-testbinPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(testbin_PROGRAMS)'; test -n "$(testbindir)" || 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)$(testbindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(testbindir)" && rm -f $$files clean-testbinPROGRAMS: @list='$(testbin_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 clocksource$(EXEEXT): $(clocksource_OBJECTS) $(clocksource_DEPENDENCIES) $(EXTRA_clocksource_DEPENDENCIES) @rm -f clocksource$(EXEEXT) $(AM_V_CXXLD)$(clocksource_LINK) $(clocksource_OBJECTS) $(clocksource_LDADD) $(LIBS) constsource$(EXEEXT): $(constsource_OBJECTS) $(constsource_DEPENDENCIES) $(EXTRA_constsource_DEPENDENCIES) @rm -f constsource$(EXEEXT) $(AM_V_CXXLD)$(constsource_LINK) $(constsource_OBJECTS) $(constsource_LDADD) $(LIBS) contdelay$(EXEEXT): $(contdelay_OBJECTS) $(contdelay_DEPENDENCIES) $(EXTRA_contdelay_DEPENDENCIES) @rm -f contdelay$(EXEEXT) $(AM_V_CXXLD)$(contdelay_LINK) $(contdelay_OBJECTS) $(contdelay_LDADD) $(LIBS) eventdelay$(EXEEXT): $(eventdelay_OBJECTS) $(eventdelay_DEPENDENCIES) $(EXTRA_eventdelay_DEPENDENCIES) @rm -f eventdelay$(EXEEXT) $(AM_V_CXXLD)$(eventdelay_LINK) $(eventdelay_OBJECTS) $(eventdelay_LDADD) $(LIBS) launchtest$(EXEEXT): $(launchtest_OBJECTS) $(launchtest_DEPENDENCIES) $(EXTRA_launchtest_DEPENDENCIES) @rm -f launchtest$(EXEEXT) $(AM_V_CXXLD)$(launchtest_LINK) $(launchtest_OBJECTS) $(launchtest_LDADD) $(LIBS) multiport$(EXEEXT): $(multiport_OBJECTS) $(multiport_DEPENDENCIES) $(EXTRA_multiport_DEPENDENCIES) @rm -f multiport$(EXEEXT) $(AM_V_CXXLD)$(multiport_LINK) $(multiport_OBJECTS) $(multiport_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clocksource-clocksource.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/constsource-constsource.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/contdelay-contdelay.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eventdelay-eventdelay.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/launchtest-launchtest.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multiport-multiport.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .cc.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 $@ $< .cc.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) '$<'` .cc.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 $@ $< clocksource-clocksource.o: clocksource.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(clocksource_CXXFLAGS) $(CXXFLAGS) -MT clocksource-clocksource.o -MD -MP -MF $(DEPDIR)/clocksource-clocksource.Tpo -c -o clocksource-clocksource.o `test -f 'clocksource.cc' || echo '$(srcdir)/'`clocksource.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/clocksource-clocksource.Tpo $(DEPDIR)/clocksource-clocksource.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='clocksource.cc' object='clocksource-clocksource.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(clocksource_CXXFLAGS) $(CXXFLAGS) -c -o clocksource-clocksource.o `test -f 'clocksource.cc' || echo '$(srcdir)/'`clocksource.cc clocksource-clocksource.obj: clocksource.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(clocksource_CXXFLAGS) $(CXXFLAGS) -MT clocksource-clocksource.obj -MD -MP -MF $(DEPDIR)/clocksource-clocksource.Tpo -c -o clocksource-clocksource.obj `if test -f 'clocksource.cc'; then $(CYGPATH_W) 'clocksource.cc'; else $(CYGPATH_W) '$(srcdir)/clocksource.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/clocksource-clocksource.Tpo $(DEPDIR)/clocksource-clocksource.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='clocksource.cc' object='clocksource-clocksource.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(clocksource_CXXFLAGS) $(CXXFLAGS) -c -o clocksource-clocksource.obj `if test -f 'clocksource.cc'; then $(CYGPATH_W) 'clocksource.cc'; else $(CYGPATH_W) '$(srcdir)/clocksource.cc'; fi` constsource-constsource.o: constsource.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(constsource_CXXFLAGS) $(CXXFLAGS) -MT constsource-constsource.o -MD -MP -MF $(DEPDIR)/constsource-constsource.Tpo -c -o constsource-constsource.o `test -f 'constsource.cc' || echo '$(srcdir)/'`constsource.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/constsource-constsource.Tpo $(DEPDIR)/constsource-constsource.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='constsource.cc' object='constsource-constsource.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(constsource_CXXFLAGS) $(CXXFLAGS) -c -o constsource-constsource.o `test -f 'constsource.cc' || echo '$(srcdir)/'`constsource.cc constsource-constsource.obj: constsource.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(constsource_CXXFLAGS) $(CXXFLAGS) -MT constsource-constsource.obj -MD -MP -MF $(DEPDIR)/constsource-constsource.Tpo -c -o constsource-constsource.obj `if test -f 'constsource.cc'; then $(CYGPATH_W) 'constsource.cc'; else $(CYGPATH_W) '$(srcdir)/constsource.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/constsource-constsource.Tpo $(DEPDIR)/constsource-constsource.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='constsource.cc' object='constsource-constsource.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(constsource_CXXFLAGS) $(CXXFLAGS) -c -o constsource-constsource.obj `if test -f 'constsource.cc'; then $(CYGPATH_W) 'constsource.cc'; else $(CYGPATH_W) '$(srcdir)/constsource.cc'; fi` contdelay-contdelay.o: contdelay.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(contdelay_CXXFLAGS) $(CXXFLAGS) -MT contdelay-contdelay.o -MD -MP -MF $(DEPDIR)/contdelay-contdelay.Tpo -c -o contdelay-contdelay.o `test -f 'contdelay.cc' || echo '$(srcdir)/'`contdelay.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/contdelay-contdelay.Tpo $(DEPDIR)/contdelay-contdelay.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='contdelay.cc' object='contdelay-contdelay.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(contdelay_CXXFLAGS) $(CXXFLAGS) -c -o contdelay-contdelay.o `test -f 'contdelay.cc' || echo '$(srcdir)/'`contdelay.cc contdelay-contdelay.obj: contdelay.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(contdelay_CXXFLAGS) $(CXXFLAGS) -MT contdelay-contdelay.obj -MD -MP -MF $(DEPDIR)/contdelay-contdelay.Tpo -c -o contdelay-contdelay.obj `if test -f 'contdelay.cc'; then $(CYGPATH_W) 'contdelay.cc'; else $(CYGPATH_W) '$(srcdir)/contdelay.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/contdelay-contdelay.Tpo $(DEPDIR)/contdelay-contdelay.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='contdelay.cc' object='contdelay-contdelay.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(contdelay_CXXFLAGS) $(CXXFLAGS) -c -o contdelay-contdelay.obj `if test -f 'contdelay.cc'; then $(CYGPATH_W) 'contdelay.cc'; else $(CYGPATH_W) '$(srcdir)/contdelay.cc'; fi` eventdelay-eventdelay.o: eventdelay.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventdelay_CXXFLAGS) $(CXXFLAGS) -MT eventdelay-eventdelay.o -MD -MP -MF $(DEPDIR)/eventdelay-eventdelay.Tpo -c -o eventdelay-eventdelay.o `test -f 'eventdelay.cc' || echo '$(srcdir)/'`eventdelay.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/eventdelay-eventdelay.Tpo $(DEPDIR)/eventdelay-eventdelay.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='eventdelay.cc' object='eventdelay-eventdelay.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventdelay_CXXFLAGS) $(CXXFLAGS) -c -o eventdelay-eventdelay.o `test -f 'eventdelay.cc' || echo '$(srcdir)/'`eventdelay.cc eventdelay-eventdelay.obj: eventdelay.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventdelay_CXXFLAGS) $(CXXFLAGS) -MT eventdelay-eventdelay.obj -MD -MP -MF $(DEPDIR)/eventdelay-eventdelay.Tpo -c -o eventdelay-eventdelay.obj `if test -f 'eventdelay.cc'; then $(CYGPATH_W) 'eventdelay.cc'; else $(CYGPATH_W) '$(srcdir)/eventdelay.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/eventdelay-eventdelay.Tpo $(DEPDIR)/eventdelay-eventdelay.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='eventdelay.cc' object='eventdelay-eventdelay.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(eventdelay_CXXFLAGS) $(CXXFLAGS) -c -o eventdelay-eventdelay.obj `if test -f 'eventdelay.cc'; then $(CYGPATH_W) 'eventdelay.cc'; else $(CYGPATH_W) '$(srcdir)/eventdelay.cc'; fi` launchtest-launchtest.o: launchtest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(launchtest_CXXFLAGS) $(CXXFLAGS) -MT launchtest-launchtest.o -MD -MP -MF $(DEPDIR)/launchtest-launchtest.Tpo -c -o launchtest-launchtest.o `test -f 'launchtest.cc' || echo '$(srcdir)/'`launchtest.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/launchtest-launchtest.Tpo $(DEPDIR)/launchtest-launchtest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='launchtest.cc' object='launchtest-launchtest.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(launchtest_CXXFLAGS) $(CXXFLAGS) -c -o launchtest-launchtest.o `test -f 'launchtest.cc' || echo '$(srcdir)/'`launchtest.cc launchtest-launchtest.obj: launchtest.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(launchtest_CXXFLAGS) $(CXXFLAGS) -MT launchtest-launchtest.obj -MD -MP -MF $(DEPDIR)/launchtest-launchtest.Tpo -c -o launchtest-launchtest.obj `if test -f 'launchtest.cc'; then $(CYGPATH_W) 'launchtest.cc'; else $(CYGPATH_W) '$(srcdir)/launchtest.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/launchtest-launchtest.Tpo $(DEPDIR)/launchtest-launchtest.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='launchtest.cc' object='launchtest-launchtest.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(launchtest_CXXFLAGS) $(CXXFLAGS) -c -o launchtest-launchtest.obj `if test -f 'launchtest.cc'; then $(CYGPATH_W) 'launchtest.cc'; else $(CYGPATH_W) '$(srcdir)/launchtest.cc'; fi` multiport-multiport.o: multiport.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(multiport_CXXFLAGS) $(CXXFLAGS) -MT multiport-multiport.o -MD -MP -MF $(DEPDIR)/multiport-multiport.Tpo -c -o multiport-multiport.o `test -f 'multiport.cc' || echo '$(srcdir)/'`multiport.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/multiport-multiport.Tpo $(DEPDIR)/multiport-multiport.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='multiport.cc' object='multiport-multiport.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(multiport_CXXFLAGS) $(CXXFLAGS) -c -o multiport-multiport.o `test -f 'multiport.cc' || echo '$(srcdir)/'`multiport.cc multiport-multiport.obj: multiport.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(multiport_CXXFLAGS) $(CXXFLAGS) -MT multiport-multiport.obj -MD -MP -MF $(DEPDIR)/multiport-multiport.Tpo -c -o multiport-multiport.obj `if test -f 'multiport.cc'; then $(CYGPATH_W) 'multiport.cc'; else $(CYGPATH_W) '$(srcdir)/multiport.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/multiport-multiport.Tpo $(DEPDIR)/multiport-multiport.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='multiport.cc' object='multiport-multiport.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(multiport_CXXFLAGS) $(CXXFLAGS) -c -o multiport-multiport.obj `if test -f 'multiport.cc'; then $(CYGPATH_W) 'multiport.cc'; else $(CYGPATH_W) '$(srcdir)/multiport.cc'; fi` 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 $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(testbindir)"; 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-testbinPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/clocksource-clocksource.Po -rm -f ./$(DEPDIR)/constsource-constsource.Po -rm -f ./$(DEPDIR)/contdelay-contdelay.Po -rm -f ./$(DEPDIR)/eventdelay-eventdelay.Po -rm -f ./$(DEPDIR)/launchtest-launchtest.Po -rm -f ./$(DEPDIR)/multiport-multiport.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-testbinPROGRAMS @$(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)/clocksource-clocksource.Po -rm -f ./$(DEPDIR)/constsource-constsource.Po -rm -f ./$(DEPDIR)/contdelay-contdelay.Po -rm -f ./$(DEPDIR)/eventdelay-eventdelay.Po -rm -f ./$(DEPDIR)/launchtest-launchtest.Po -rm -f ./$(DEPDIR)/multiport-multiport.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-testbinPROGRAMS .MAKE: install-am install-data-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-testbinPROGRAMS \ 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-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip install-testbinPROGRAMS 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-testbinPROGRAMS .PRECIOUS: Makefile install-data-hook: mkdir -p $(DESTDIR)@PKGDATADIR@/tests cd $(srcdir);\ @INSTALL_PROGRAM@ events.test chain.test run_test \ divergence.test fork.test loop.test \ cloop.test const.test contclock.test \ launchtest.test messages.test \ multicomm.test multiport.test \ $(DESTDIR)@PKGDATADIR@/tests # 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: music-1.1.16/testsuite/sanitytests/run_test0000644000175000017500000000160213571617503016061 00000000000000#!/bin/sh run_test () { np=$1 test_name=$2 if [ $# -eq 3 ]; then timeout=$3 else timeout=4 fi if ! $( timeout $timeout sh -c "${MUSIC_BINARY} ${np} ${MUSIC_DATA_PATH}/${test_name} 2> ${MUSIC_DATA_PATH}/err | sort -o ${MUSIC_DATA_PATH}/out"); then echo "...TIMEOUT" echo "......given:" cat "${MUSIC_DATA_PATH}/out" return 15 fi if ${CMP} -s "${MUSIC_DATA_PATH}/out" "${MUSIC_DATA_PATH}/ok" ; then echo "...OK" else echo "...FAILED" echo "......given:" cat "${MUSIC_DATA_PATH}/out" echo "......expected:" cat "${MUSIC_DATA_PATH}/ok" echo "......error:" cat "${MUSIC_DATA_PATH}/err" return 2 fi if "$CMP" -s "${MUSIC_DATA_PATH}/err" "${MUSIC_DATA_PATH}/errok"; then : else echo "err:" >&2 cat "${MUSIC_DATA_PATH}/err" >&2 echo "errok:" >&2 cat "${MUSIC_DATA_PATH}/errok" >&2 return 10 fi return 0 } music-1.1.16/testsuite/sanitytests/multiport.test0000644000175000017500000000242213571617503017234 00000000000000#!/bin/sh NP=4 music_conf="$( echo "${0##*/}" | sed 's/\.test//' ).music" abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")" path="`dirname $abspath`" . ${path}/run_test # this is music configuration file cat < "${MUSIC_DATA_PATH}/${music_conf}" stoptime=1.0 [A] binary=${TEST_EXTRABINDIR}/multiport args=--in in0:2640 --in in1:2640 --in in2:1 --out out0:968 --out out1:968 --out out2:1 --out out3:1 np=2 [B] binary=${TEST_EXTRABINDIR}/multiport args=--in in0:1 --out out0:2640 --out out1:2640 --out out2:1 np=1 [C] binary=${TEST_EXTRABINDIR}/multiport args=--in in0:968 --in in1:968 --in in2:1 --in in3:1 --out out0:1 np=1 B.out0 -> A.in0 [2640, collective] B.out1 -> A.in1 [2640, collective] B.out2 -> A.in2 [1,collective] A.out0 -> C.in0 [968,collective] A.out1 -> C.in1 [968,collective] A.out2 -> C.in2 [1,collective] A.out3 -> C.in3 [1,collective] C.out0 -> B.in0 [1,collective] EOF # this is the output we should expect to see cat <<\EOF > "${MUSIC_DATA_PATH}/ok" EOF # sort the file using locale specified by current environment sort "${MUSIC_DATA_PATH}/ok" -o "${MUSIC_DATA_PATH}/ok" cat <<\EOF > "${MUSIC_DATA_PATH}/errok" EOF run_test "${NP}" "${music_conf}" exit_code=$? if test "${exit_code}" -gt 0 ; then exit "${exit_code}" fi exit 0 music-1.1.16/testsuite/test_old/0000755000175000017500000000000013571617503013577 500000000000000music-1.1.16/testsuite/test_old/launchtest.music0000644000175000017500000000023613571617503016734 00000000000000binary=./launchtest np=3 [1] args=hej du glade param=1.0 [2] args=ta en spade param=2.0 1.as1 -> 2.bd1 2.bd2 <- 1.as2 # asd bd2 -> 2.as2 [12] music-1.1.16/testsuite/test_old/multipoisson2.music0000644000175000017500000000052113571617503017406 00000000000000stoptime=10.0 [mid] np=1 binary=eventdelay args=-d 0.1 -b 2 [from] np=1 binary=eventgenerator args=-b 2 12 [to] np=1 binary=eventsink args=12 multipoisson .dat # binary=eventlogger # args=-b 2 # from.out -> mid.in [12] # mid.out -> to.in [12] from.out -> mid.in [12,collective] mid.out -> to.in [12,collective] music-1.1.16/testsuite/test_old/const.music0000644000175000017500000000020013571617503015677 00000000000000stoptime=1.0 [from] np=2 binary=./constsource [to] np=2 binary=./contsink from.contdata -> to.contdata [7,collective] music-1.1.16/testsuite/test_old/contclock.music0000644000175000017500000000022513571617503016537 00000000000000stoptime=0.5 [from] np=1 binary=./clocksource args=-t 0.02 -b 3 [to] np=1 binary=./contsink args=-t 0.03 from.clock -> to.contdata [1] music-1.1.16/testsuite/test_old/events.py0000644000175000017500000000032213571617503015372 00000000000000import os from music import * define ('stoptime', 1.0) app1 = Application (2, 'eventsource', '-b 1 10 spikes') app2 = Application (2, 'eventlogger', '-b 2') connect (app1, 'out', app2, 'in', 10) launch () music-1.1.16/testsuite/test_old/divergence.music0000644000175000017500000000022513571617503016673 00000000000000stoptime=1.0 [from] binary=./eventsource args=10 spikes np=1 [to] binary=./eventlogger args=-a np=2 from.out -> to.in [10, collective] music-1.1.16/testsuite/test_old/chain.music0000644000175000017500000000033213571617503015641 00000000000000np=1 stoptime=1.0 [from] np=2 binary=./eventsource args=-b 2 10 spikes [mid] binary=./eventdelay args=-d 0.3 [to] binary=./eventlogger args=-b 2 from.out -> mid.in [10, collective] mid.out -> to.in [10] music-1.1.16/testsuite/test_old/loop.music0000644000175000017500000000044513571617503015535 00000000000000np=1 stoptime=1.1 [A] binary=./eventdelay args=-d 0.1 -L 1 -b 2 [B] binary=./eventdelay args=-d 0.1 -L 2 -b 2 [from] binary=./eventsource args=-b 5 10 spikes [to] binary=./eventlogger args=-b 5 from.out -> A.in [10] A.out -> B.in [10] B.out -> A.aux [10] B.out -> to.in [10] music-1.1.16/testsuite/test_old/coba.cc0000644000175000017500000002363613571617503014744 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007 CSC, KTH * * MUSIC 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. * * MUSIC 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 . */ #define N 4000 #define T 5.0 #define DT 1e-4 #define PRINT_EVERY_NTH 100 #define N_PLOTTED_ECELLS 5 #define N_PLOTTED_ICELLS 5 #define cell_area 20000e-12 #define tau_m 20e-3 #define C_m 1e-2 #define rho_leak 5e-1 #define Erev_leak -65e-3 #define Gexc 6e-9 #define Ginh 67e-9 #define Erev_exc 0 #define Erev_inh -80e-3 #define tau_exc 5e-3 #define tau_inh 10e-3 #define conn_prob 0.02 #define conn_delay 1e-6 // arbitrary non-zero #define gNa 0.1e4 #define gKd 0.03e4 #define ENa 50e-3 #define EK -90e-3 #define Vtr -63e-3 #define N_e ((int) (0.8 * N)) #define N_i (N - N_e) #include #include #include #include using namespace libsplit; class projection; class cells { private: split_int* split; int _pop_id; int _leak_id; int _na_id; int _k_id; int _size; public: cells (split_int* _split, int size); int pop_id () { return _pop_id; } int na_id () { return _na_id; } int size () { return _size; } projection* project (cells* post); void set_parameters (); }; class projection { split_int* split; int proj_id; connection_set c; public: projection (split_int* _split, cells& pre, cells& post) : split (_split), c (random_uniform (conn_prob)) { c.init (0, pre.size (), 0, post.size ()); proj_id = split->create_projection (CHEMICAL_SYNAPSE, SCALAR, pre.pop_id (), CONTRIB, pre.na_id (), post.pop_id (), 0, c.size ()); for (c.begin (); !c.end (); ++c) { split->set_projection_index_int (proj_id, SYN_PRE, c.id (), c.pre ()); split->set_projection_index_int (proj_id, SYN_POST, c.id (), c.post ()); split->set_projection_index_real (proj_id, SYN_DELAY, c.id (), conn_delay); } } void set_parameters (double G, double Erev, double tau) { split->set_projection_scalar_real (proj_id, SYN_E, Erev); split->set_projection_scalar_real (proj_id, SYN_DURATION, 0.0); split->set_projection_scalar_real (proj_id, SYN_RAISE, 0.0); split->set_projection_scalar_real (proj_id, SYN_DECAY, tau); for (c.begin (); !c.end (); ++c) split->set_projection_index_real (proj_id, SYN_G, c.id (), G); } }; cells::cells (split_int* _split, int size) : split (_split), _size (size) { int tree_map[1] = { 0 }; _pop_id = split->create_population (); split->create_electric_tree (_pop_id, ELECTRIC_SCALAR_STAR, N_e, 0, 0, tree_map /* dummy */ ); _leak_id = split->create_e_leak (_pop_id, N_e, 0); _na_id = split->create_simple_channel (_pop_id, TRAUB_NA, SCALAR, N_e, 0); _k_id = split->create_simple_channel (_pop_id, HH_K, SCALAR, N_e, 0); } projection* cells::project (cells* post) { return new projection (split, *this, *post); } void cells::set_parameters () { split->set_scalar_real (_pop_id, ELECTRIC, 0, CM, cell_area * C_m); split->set_scalar_real (_pop_id, ELECTRIC, 0, GCORE, 0); split->set_scalar_real (_pop_id, CONTRIB, _leak_id, E_LEAK_E, Erev_leak); for (int i = 0; i < _size; ++i) { split->set_index_real (_pop_id, ELECTRIC, 0, INITIAL, i, Erev_leak); split->set_index_real (_pop_id, CONTRIB, _leak_id, E_LEAK_G_M, i, cell_area * rho_leak); } // Na activation split->set_scalar_real (_pop_id, CONTRIB, _na_id, ACT_ALPHA_A, 0.32e6); split->set_scalar_real (_pop_id, CONTRIB, _na_id, ACT_ALPHA_B, 13e-3 + Vtr); split->set_scalar_real (_pop_id, CONTRIB, _na_id, ACT_ALPHA_C, 4e-3); split->set_scalar_real (_pop_id, CONTRIB, _na_id, ACT_BETA_A, 0.28e6); split->set_scalar_real (_pop_id, CONTRIB, _na_id, ACT_BETA_B, 40e-3 + Vtr); split->set_scalar_real (_pop_id, CONTRIB, _na_id, ACT_BETA_C, 5e-3); split->set_scalar_int (_pop_id, CONTRIB, _na_id, ACT_EXPO, 3); // Na inactivation split->set_scalar_real (_pop_id, CONTRIB, _na_id, INACT_ALPHA_A, 0.128e3); split->set_scalar_real (_pop_id, CONTRIB, _na_id, INACT_ALPHA_B, 17e-3 + Vtr); split->set_scalar_real (_pop_id, CONTRIB, _na_id, INACT_ALPHA_C, 18e-3); split->set_scalar_real (_pop_id, CONTRIB, _na_id, INACT_BETA_A, 4e3); split->set_scalar_real (_pop_id, CONTRIB, _na_id, INACT_BETA_B, 40e-3 + Vtr); split->set_scalar_real (_pop_id, CONTRIB, _na_id, INACT_BETA_C, 5e-3); split->set_scalar_int (_pop_id, CONTRIB, _na_id, INACT_EXPO, 1); // K split->set_scalar_real (_pop_id, CONTRIB, _k_id, ACT_ALPHA_A, 0.032e6); split->set_scalar_real (_pop_id, CONTRIB, _k_id, ACT_ALPHA_B, 15e-3 + Vtr); split->set_scalar_real (_pop_id, CONTRIB, _k_id, ACT_ALPHA_C, 5e-3); split->set_scalar_real (_pop_id, CONTRIB, _k_id, ACT_BETA_A, 0.5e3); split->set_scalar_real (_pop_id, CONTRIB, _k_id, ACT_BETA_B, 10e-3 + Vtr); split->set_scalar_real (_pop_id, CONTRIB, _k_id, ACT_BETA_C, 40e-3); split->set_scalar_int (_pop_id, CONTRIB, _k_id, ACT_EXPO, 4); for (int i = 0; i < _size; ++i) { // Na split->set_index_real (_pop_id, CONTRIB, _na_id, CHAN_E, i, ENa); split->set_index_real (_pop_id, CONTRIB, _na_id, CHAN_G, i, cell_area * gNa); // K split->set_index_real (_pop_id, CONTRIB, _k_id, CHAN_E, i, EK); split->set_index_real (_pop_id, CONTRIB, _k_id, CHAN_G, i, cell_area * gKd); } } class noise { split_int* split; cells* c; int id; public: noise (split_int* _split, cells* _c) : split (_split), c (_c) { id = split->create_noise (c->pop_id (), c->size (), 0); } void set_parameters () { for (int i = 0; i < c->size (); ++i) { split->set_index_real (c->pop_id (), CONTRIB, id, NOISE_E, i, 0); split->set_index_real (c->pop_id (), CONTRIB, id, NOISE_G, i, 7.5e-10); split->set_index_real (c->pop_id (), CONTRIB, id, NOISE_INTENSITY, i, 100); split->set_index_real (c->pop_id (), CONTRIB, id, NOISE_INITIAL, i, 0); split->set_index_real (c->pop_id (), CONTRIB, id, NOISE_TAU, i, 0.01); split->set_index_real (c->pop_id (), CONTRIB, id, NOISE_START_TIME, i, 0); split->set_index_real (c->pop_id (), CONTRIB, id, NOISE_END_TIME, i, 0.05); } } }; void setup_volts_plot (split_int* split, int id, cells* c, int n, int& idx) { for (int i = 0; i < n; ++i) { split->set_plot_index_int (id, idx, PLOT_ID, 0); split->set_plot_index_int (id, idx, PLOT_POP_ID, c->pop_id ()); split->set_plot_index_int (id, idx, PLOT_TYPE, ELECTRIC); split->set_plot_index_int (id, idx, PLOT_TAG, STATE_SV); split->set_plot_index_int (id, idx, PLOT_IDX, i); split->set_plot_index_real (id, idx, PLOT_MIN, -0.08); split->set_plot_index_real (id, idx, PLOT_MAX, 0.05); ++idx; } } int main (int argc, char **argv) { std::cout << "Setup\n"; split_int* split = new split_int (&argc, &argv); // Create cells cells* ecells = new cells (split, N_e); cells* icells = new cells (split, N_i); // Create synapses projection* ee = ecells->project (ecells); projection* ei = ecells->project (icells); projection* ii = icells->project (icells); projection* ie = icells->project (ecells); // Create ports int n_ports = 0; while (true) { std::ostrstream portname; portname << "ein" << n_ports; if (is_port (portname.str ())) { split->create_spike_input (portname.str (), ecells->pop_id (), 0, N); std::ostrstream portname; portname << "iin" << n_ports; if (is_port (portname.sr ())) split->create_spike_input (portname.str (), icells->pop_id (), 0, N); ++n_ports; } else break; } if (n_ports > 0) { split->create_spike_output ("eout", ecells->pop_id (), CONTRIB, ecells->na_id ()); split->create_spike_output ("iout", icells->pop_id (), CONTRIB, icells->na_id ()); } // Noiseinjection noise* enoise = new noise (split, ecells); noise* inoise = new noise (split, icells); // Volt plots int volts_id = split->create_plot ("volts.out", N_PLOTTED_ECELLS + N_PLOTTED_ICELLS); split->set_plot_scalar_int (volts_id, PLOT_EVERY_NTH, 1); int idx = 0; setup_volts_plot (split, volts_id, ecells, N_PLOTTED_ECELLS, idx); setup_volts_plot (split, volts_id, icells, N_PLOTTED_ICELLS, idx); // Spike plot int spikes_id = split->create_spike_plot_ranges ("spikes.out"); split->set_plot_range (spikes_id, ecells->pop_id (), ELECTRIC, 0, STATE_SV, 0, ecells->size ()); split->set_plot_range (spikes_id, icells->pop_id (), ELECTRIC, 0, STATE_SV, 0, icells->size ()); // Distribute simulation onto slaves split->map (0); // Cell parameters ecells->set_parameters (); icells->set_parameters (); // Synaptic parameters ee->set_parameters (Gexc, Erev_exc, tau_exc); ei->set_parameters (Gexc, Erev_exc, tau_exc); ii->set_parameters (Ginh, Erev_inh, tau_inh); ie->set_parameters (Ginh, Erev_inh, tau_inh); // Noise parameters enoise->set_parameters (); inoise->set_parameters (); // Allocate split->allocate (0.0, T, DT); // Initialize split->initialize (DT); // Simulate std::cout << "Simulate\n"; int total_steps = (int) ceil (T / DT); for (int steps = 0; steps < total_steps; steps += PRINT_EVERY_NTH) split->simulate (PRINT_EVERY_NTH); // Quit split->quit (); return 0; } music-1.1.16/testsuite/test_old/poisson2.music0000644000175000017500000000022413571617503016333 00000000000000np=1 stoptime=10.0 [from] binary=eventgenerator args=-b 2 16 [to] binary=eventsink args=16 poisson .dat from.out -> to.in [16,collective] music-1.1.16/testsuite/test_old/fork.music0000644000175000017500000000025513571617503015524 00000000000000np=2 stoptime=1.0 [from] binary=./eventsource args=10 spikes [to] binary=./eventlogger from.out -> to.in [10] [two] binary=./eventlogger from.out -> two.in [10] music-1.1.16/testsuite/test_old/ChangeLog0000644000175000017500000001053213571617503015272 000000000000002014-05-28 Ekaterina Brocke * test folder is renamed to sanitytests and moved to testsuite/ 2012-09-03 Mikael Djurfeldt * eventdelay.cc: Don't log events if not given -L option. 2012-08-23 Mikael Djurfeldt * multicomm.music: New file. Tests the case with two connector pairs. * divergence.music: New file. Tests the case where multiple receiving ranks listens to the same sources. * eventlogger.cc: Added option -a/--all meaning map all indices in all ranks; Added options --in and --message-in for specifying event input and message input port names; Changed default message port name to "message". 2010-07-28 Mikael Djurfeldt * Release 1.0.7 2009-10-25 Mikael Djurfeldt * Release 1.0.6 2009-10-24 Mikael Djurfeldt * Release 1.0.5 2009-04-01 Mikael Djurfeldt * Release 1.0.4 2009-03-14 Mikael Djurfeldt * messagesource.cc, messages.music, messages0.dat, messages1.dat: New files. * Makefile.am (noinst_PROGRAMS): Added messagesource. (EXTRA_DIST): Added messages.music. * eventlogger.cc: Added support for messages. 2009-03-13 Mikael Djurfeldt * Release 1.0.3 2009-03-12 Mikael Djurfeldt * Release 1.0.2 2009-03-11 Mikael Djurfeldt * Makefile.am: Automatically build all test programs (but don't install them). (EXTRA_DIST): Added cloop.music. 2009-03-08 Mikael Djurfeldt * Release 1.0.1 2009-03-07 Mikael Djurfeldt * events.music: Removed absolute paths from binaries. 2009-03-06 Mikael Djurfeldt * Makefile.am: Don't install waveproducer/waveconsumer example. 2009-03-05 Mikael Djurfeldt * constsource.cc (main): Initialize loop variable i. * contdelay.cc (getargs): Use atof instead of atoi for option -d. 2009-03-03 Mikael Djurfeldt * Release 1.0 2009-02-19 Mikael Djurfeldt * eventlogger.cc: Log time of event as well as time of reception. 2009-02-10 Mikael Djurfeldt * eventlogger.cc: Added options --acclatency and --maxbuffered. 2008-12-02 Mikael Djurfeldt * Switch to CamelCase. 2008-11-13 Mikael Djurfeldt * eventlogger.cc: Print error message if port width not specified. 2008-11-04 Mikael Djurfeldt * eventlogger.cc, events.music: Input port renamed from "eventlog" to "in". 2008-11-03 Mikael Djurfeldt * eventlogger.cc: Added better argument handling, including options; Bugfix: Don't pass pointers to automatic event handlers to map. * events.music: Removed index map type argument (which is now an option). 2008-10-14 Mikael Djurfeldt * eventlogger.cc: Check that port is connected before mapping it. 2008-10-10 Mikael Djurfeldt * eventlogger.cc: Updated to use global_index. 2008-02-01 Mikael Djurfeldt * Makefile.am (waveproducer_SOURCES, waveproducer_CXXFLAGS, waveproducer_LDADD): Renamed from wavegenerator_SOURCES, wavegenerator_CXXFLAGS, wavegenerator_LDADD. * waveproducer.cc: Renamed from wavegenerator.cc 2007-11-01 Mikael Djurfeldt * Makefile.am (bin_PROGRAMS): Added launchtest. * launchest.cc, launchtest.music: New files. * wavegenerator.cc (main): Don't pass color to setup. * waveconsumer.cc (main): Don't pass color to setup. * application1.cc (main): Don't pass color to setup. 2007-10-19 –rjan Ekeberg * wavegenerator.cc, waveconsumer.cc, application1.cc: Replace C MPI calls with their C++ equivalents. 2007-10-19 Mikael Djurfeldt * wavegenerator.cc (main): Renamed array_data, linear_index from arraydata, linearindex. 2007-10-18 –rjan Ekeberg * wavegenerator.cc: Added new miniature application. * Makefile.am: Added rule to build wavegenerator. 2007-09-13 Mikael Djurfeldt * application1.cc: Modified to conform to setup.hh and runtime.hh. * Makefile.am: New file. 2007-08-17 Mikael Djurfeldt * Pling! music-1.1.16/testsuite/test_old/events.music0000644000175000017500000000020713571617503016064 00000000000000np=2 stoptime=1.0 [from] binary=./eventsource args=-b 1 10 spikes [to] binary=./eventlogger args=-b 2 from.out -> to.in [10] music-1.1.16/testsuite/test_old/cloop.music0000644000175000017500000000041213571617503015672 00000000000000np=1 stoptime=1.0 [A] binary=./contdelay args=-d 0.1 -b 1000 [B] binary=./contdelay args=-d 0.1 -b 1000 [from] binary=./clocksource args=-b 5 [to] binary=./contsink from.clock -> A.in [1] A.out -> B.in [1] B.out -> to.contdata [1] B.out -> A.aux [1] music-1.1.16/testsuite/test_old/poisson.music0000644000175000017500000000023513571617503016253 00000000000000stoptime=10.0 [from] np=4 binary=eventgenerator args=-b 2 16 [to] np=4 binary=eventsink args=16 poisson .dat from.out -> to.in [16,collective] music-1.1.16/testsuite/test_old/parsetest.cc0000644000175000017500000000272713571617503016050 00000000000000// L¤nkas stendes i katalogin music/utils: // // g++ -o parsetest -I .. parsetest.cc -L ../rudeconfig/.libs -l rudeconfig // // Anv¤ndning: // Behvovs inte,... typ // export LD_LIBRARY_PATH=/home/hjorth/music/rudeconfig/.libs // // LD_LIBRARY_PATH=/home/hjorth/music/rudeconfig/.libs ./parsetest ../test/launchtest.music #include "rudeconfig/src/config.h" #include int main (int argc, char** argv) { rude::Config* cfile = new rude::Config (); cfile->load (argv[1]); int n_sections = cfile->getNumSections (); for (int s = 0; s < n_sections; ++s) { const char* name = cfile->getSectionNameAt (s); cfile->setSection (name); std::cout << "Section \"" << name << "\":" << std::endl; int n_members = cfile->getNumDataMembers (); for (int m = 0; m < n_members; ++m) { const char* name = cfile->getDataNameAt (m); std::cout << name << '\t' << cfile->getStringValue (name) << std::endl; } int n_sd = cfile->getNumSourceDestMembers(); for (int i = 0; i < n_sd; i++) { const char* srcApp = cfile->getSrcAppAt(i); const char* srcObj = cfile->getSrcObjAt(i); const char* destApp = cfile->getDestAppAt(i); const char* destObj = cfile->getDestObjAt(i); const char* width = cfile->getWidthAt(i); std::cout << srcApp << "." << srcObj << " -> " << destApp << "." << destObj << " [" << width << "]\n"; } } } music-1.1.16/testsuite/test_old/multicomm.music0000644000175000017500000000040013571617503016561 00000000000000stoptime=1.0 np=2 [S0] binary=eventsource args=--out out0 10 spikes [S1] binary=eventsource args=--out out1 10 spikes [R0] binary=eventlogger args=--in in0 [R1] binary=eventlogger args=--in in1 S0.out0 -> R0.in0 [10] S1.out1 -> R1.in1 [10] music-1.1.16/testsuite/test_old/multipoisson.music0000644000175000017500000000052113571617503017324 00000000000000stoptime=10.0 [mid] np=1 binary=eventdelay args=-d 0.1 -b 2 [from] np=1 binary=eventgenerator args=-b 2 12 [to] np=1 binary=eventsink args=12 multipoisson .dat # binary=eventlogger # args=-b 2 # from.out -> mid.in [12] # mid.out -> to.in [12] from.out -> mid.in [12,collective] mid.out -> to.in [12,collective] music-1.1.16/testsuite/test_old/multiport.music0000644000175000017500000000112213571617503016614 00000000000000stoptime=1.0 [A] binary=multiport args=--in in0:2640 --in in1:2640 --in in2:1 --out out0:968 --out out1:968 --out out2:1 --out out3:1 np=2 [B] binary=multiport args=--in in0:1 --out out0:2640 --out out1:2640 --out out2:1 np=1 [C] binary=multiport args=--in in0:968 --in in1:968 --in in2:1 --in in3:1 --out out0:1 np=1 B.out0 -> A.in0 [2640,collective] B.out1 -> A.in1 [2640,collective] B.out2 -> A.in2 [1,collective] A.out0 -> C.in0 [968,collective] A.out1 -> C.in1 [968,collective] A.out2 -> C.in2 [1,collective] A.out3 -> C.in3 [1,collective] C.out0 -> B.in0 [1,collective] music-1.1.16/testsuite/test_old/launcher.cc0000644000175000017500000000113013571617503015622 00000000000000#include #include #include extern char **environ; int main(int nargs, char **argv) { int err; BGLPersonality whoAmI; rts_get_personality(&whoAmI, sizeof whoAmI); if(whoAmI.zCoord < whoAmI.zSize / 2) { printf("%d starts as first\n", whoAmI.zCoord); err = execve("/gpfs/scratch/o/orjan/application1", argv, environ); } else { printf("%d starts as second\n", whoAmI.zCoord); err = execve("/gpfs/scratch/o/orjan/application2", argv, environ); } //Should not get here.... printf("Note: execve call returned %d\n", err); return(-1); } music-1.1.16/testsuite/music_tests.in0000644000175000017500000002225513571617503014602 00000000000000#!/bin/sh # # This script runs all tests that are located in the MUSIC testsuite directory # usage () { if test $1 -ne 0 ; then echo "Unknown option: $2" fi cat < "$1" rm -f "$1.XXX" } JUNIT_FILE= JUNIT_TESTS= JUNIT_FAILURES= JUNIT_CLASSNAME='core' junit_open () { JUNIT_FILE="${TEST_OUTDIR}/music_test_results.xml" JUNIT_TESTS=0 JUNIT_FAILURES=0 TIME_TOTAL=0 # Be compatible with BSD date; no --rfc-3339 and :z modifier timestamp="$( date -u '+%FT%T+00:00' )" echo '' > "${JUNIT_FILE}" echo "" >> "${JUNIT_FILE}" echo ' ' >> "${JUNIT_FILE}" echo " " >> "${JUNIT_FILE}" echo " " >> "${JUNIT_FILE}" echo " " >> "${JUNIT_FILE}" echo " " >> "${JUNIT_FILE}" echo " " >> "${JUNIT_FILE}" echo ' ' >> "${JUNIT_FILE}" } # arguments: classname testname [fail_message fail_trace] junit_write () { if test "x${JUNIT_FILE}" = x ; then bail_out 'junit_write: report file not open, call junit_open first!' fi if test "x$1" = x || test "x$2" = x ; then bail_out 'junit_write: classname and testname arguments are mandatory!' fi JUNIT_TESTS=$(( ${JUNIT_TESTS} + 1 )) printf '%s' " > "${JUNIT_FILE}" if test "x$3" != x ; then echo '>' >> "${JUNIT_FILE}" echo " > "${JUNIT_FILE}" echo "$4" | sed 's/]]>/]]>]]\>> "${JUNIT_FILE}" echo "]]>" >> "${JUNIT_FILE}" echo " " >> "${JUNIT_FILE}" else echo ' />' >> "${JUNIT_FILE}" fi } junit_close () { if test "x${JUNIT_FILE}" = x ; then bail_out 'junit_close: report file not open, call junit_open first!' fi portable_inplace_sed "${JUNIT_FILE}" "s/time=XXX/time=\"${TIME_TOTAL}\"/" portable_inplace_sed "${JUNIT_FILE}" "s/tests=XXX/tests=\"${JUNIT_TESTS}\"/" portable_inplace_sed "${JUNIT_FILE}" "s/failures=XXX/failures=\"${JUNIT_FAILURES}\"/" echo ' ' >> "${JUNIT_FILE}" echo ' ' >> "${JUNIT_FILE}" echo '' >> "${JUNIT_FILE}" JUNIT_FILE= } #arguments: run_test script_name codes_success codes_failure run_test() { TEST_TOTAL=$(( ${TEST_TOTAL} + 1 )) test_name="$1" param_success="$2" param_failure="$3" msg_error= junit_class="$( echo "${test_name}" | sed 's/.[^.]\+$//' | sed 's/\/[^/]\+$//' | sed 's/\//./' )" junit_name="$( echo "${test_name}" | sed 's/^.*\/\([^/]\+\)$/\1/' )" TEST_OUTFILE="${TEST_OUTDIR}/$( echo "${test_name##*/}" | sed 's/\.test//' ).log" echo "Running test '${test_name}'..." echo >> "${TEST_LOGFILE}" "Running test '${test_name}'..." # Generating script on fly due to possible command # incompatibility with different subshells (dash, bash, etc.) echo "#!/bin/sh" > "${TEST_RUNFILE}" echo "set +e" >> "${TEST_RUNFILE}" command="${TEST_BASEDIR}/${test_name} > ${TEST_OUTFILE} 2>&1" echo "${command}" >> "${TEST_RUNFILE}" echo "echo \$? > ${TEST_RETFILE} ; exit 0" >> "${TEST_RUNFILE}" chmod 755 "${TEST_RUNFILE}" time_dirty="$( /bin/bash -c "time ${TIME_PARAM} ${TEST_RUNFILE} " 2>&1 )" rm -f "${TEST_RUNFILE}" TIME_ELAPSED="$( echo "${time_dirty}" | awk 'NR == 1 { print $2 ; }' )" TIME_TOTAL="$( awk "BEGIN { print (${TIME_TOTAL} + ${TIME_ELAPSED}) ; }" )" exit_code="$(cat "${TEST_RETFILE}")" sed 's/^/ > /g' "${TEST_OUTFILE}" >> "${TEST_LOGFILE}" msg_dirty=${param_success##* ${exit_code} } msg_clean=${msg_dirty%%,*} if test "${msg_dirty}" != "${param_success}" ; then TEST_PASSED=$(( ${TEST_PASSED} + 1 )) explanation="${msg_clean}" junit_failure= else TEST_FAILED=$(( ${TEST_FAILED} + 1 )) JUNIT_FAILURES=$(( ${JUNIT_FAILURES} + 1 )) msg_dirty=${param_failure##* ${exit_code} } msg_clean=${msg_dirty%%,*} if test "${msg_dirty}" != "${param_failure}" ; then explanation="${msg_clean}" else explanation="Failed: unexpected exit code ${exit_code}" msg_error="$( cat "${TEST_OUTFILE}" )" fi junit_failure="${exit_code} (${explanation})" fi echo "...${explanation}" echo >> "${TEST_LOGFILE}" "-> ${exit_code} (${explanation})" echo >> "${TEST_LOGFILE}" "----------------------------------------" junit_write "${JUNIT_CLASSNAME}.${junit_class}" "${junit_name}" "${junit_failure}" "$(cat "${TEST_OUTFILE}")" # Panic on "unexpected" exit code if test "x${msg_error}" != x ; then echo "${msg_error}" echo echo "***" echo "*** An unexpected exit code usually hints at a bug in the test suite!" ask_results exit 2 fi rm -f "${TEST_OUTFILE}" "${TEST_RETFILE}" } while test $# -gt 0 ; do case "$1" in --help) usage 0 ;; --output-dir=*) TEST_OUTDIR="$( echo "$1" | sed 's/^--output-dir=//' )" ;; --showme-tests) EXEC=list_test ;; *) TEST_NAME="${TEST_NAME} $1" # usage 1 "$1" ;; esac shift done # Gather some information about the host INFO_ARCH="$(uname -m)" INFO_HOME="$(/bin/sh -c 'echo ~')" INFO_HOST="$(hostname -f)" INFO_OS="$(uname -s)" INFO_USER="$(whoami)" INFO_VER="$(uname -r)" TIME_PARAM="-p" /bin/sh -c "time ${TIME_PARAM} uname" >/dev/null 2>&1 || TIME_PARAM="" TIMEFORMAT=$'real %2R\nuser %2U\nsys %2S' export TIMEFORMAT TEST_OUTDIR=${TEST_OUTDIR:-"$( pwd )/reports"} TEST_NAME=${TEST_NAME:-""} EXEC=${EXEC:-"run_test"} TEST_LOGFILE="${TEST_OUTDIR}/output.log" TEST_RETFILE="${TEST_OUTDIR}/output.ret" TEST_RUNFILE="${TEST_OUTDIR}/runtest.sh" if test -d "${TEST_OUTDIR}" ; then rm -rf "${TEST_OUTDIR}" fi mkdir "${TEST_OUTDIR}" TMPDIR=${TMPDIR:-${TEST_OUTDIR}} TEST_TMPDIR="$(mktemp -d "${TMPDIR:-/tmp}/music.XXXXX")" MUSIC_DATA_PATH="${TEST_TMPDIR}" export MUSIC_DATA_PATH TEST_TOTAL=0 TEST_PASSED=0 TEST_FAILED=0 junit_open echo > "${TEST_LOGFILE}" "MUSIC v. @PACKAGE_VERSION@" echo >> "${TEST_LOGFILE}" "=======================" echo >> "${TEST_LOGFILE}" "Host information:" echo >> "${TEST_LOGFILE}" "architeture\t:\t${INFO_ARCH}" echo >> "${TEST_LOGFILE}" "home directory\t:\t${INFO_HOME}" echo >> "${TEST_LOGFILE}" "host name\t:\t${INFO_HOST}" echo >> "${TEST_LOGFILE}" "system\t\t:\t${INFO_OS}" echo >> "${TEST_LOGFILE}" "user name\t:\t${INFO_USER}" echo >> "${TEST_LOGFILE}" "kernel version\t:\t${INFO_VER}" echo >> "${TEST_LOGFILE}" "=======================" TEST_BASEDIR="@PKGEXTRABINDIR@" echo >> "${TEST_LOGFILE}" "Running tests from ${TEST_BASEDIR}" CODES_SUCCESS=' 0 Success' CODES_FAILURE=\ ' 1 Failed: missed assertion,' for test_prefix in test_ launchtest ; do for test_name in $(ls "${TEST_BASEDIR}" | grep "${test_prefix}") ; do if requestedTest "${test_name}" ; then "$EXEC" "${test_name}" "${CODES_SUCCESS}" "${CODES_FAILURE}" fi done done TEST_BASEDIR="@PKGDATADIR@/tests" echo >> "${TEST_LOGFILE}" "Running tests from ${TEST_BASEDIR}" TEST_BINDIR="@BINDIR@" export TEST_BINDIR TEST_EXTRABINDIR="@PKGEXTRABINDIR@" export TEST_EXTRABINDIR CMP="${CMP-cmp}" export CMP MUSIC_BINARY="@BINDIR@/musicrun" export MUSIC_BINARY CODES_SUCCESS=' 0 Success' CODES_FAILURE=\ ' 2 Failed: error in tested code block,'\ ' 10 Failed: unknown error,'\ ' 15 Failed: timeout,' for test_ext in test ; do for test_name in $(ls "${TEST_BASEDIR}" | grep ".*\.${test_ext}\$") ; do if requestedTest "${test_name}" ; then "$EXEC" "${test_name}" "${CODES_SUCCESS}" "${CODES_FAILURE}" fi done done junit_close if test ${TEST_FAILED} -gt 0 ; then echo "***" echo "*** There were errors detected during the run of the MUSIC test suite!" ask_results else rm -rf "${TEST_TMPDIR}" fi exit 0 music-1.1.16/testsuite/unittests/0000755000175000017500000000000013571740114014017 500000000000000music-1.1.16/testsuite/unittests/catch/0000755000175000017500000000000013571740114015101 500000000000000music-1.1.16/testsuite/unittests/catch/test_ag.cc0000644000175000017500000001071713571617503016771 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #define CATCH_CONFIG_NO_VARIADIC_MACROS #include "music/application_graph.hh" #include #include "catch.hpp" /*#define CATCH_CONFIG_RUNNER #include int main( int argc, char* argv[] ) { MPI_Init(&argc, &argv); int result = Catch::Session().run( argc, argv ); MPI_Finalize(); return result; }*/ using namespace MUSIC; typedef AGraph T_AGraph; typedef ANode T_ANode; typedef AEdge T_AEdge; class TC_AGraph : public T_AGraph { protected: int c_loops_; public: TC_AGraph() : T_AGraph(1, 2, 1), c_loops_(0) { } ; protected: void handleLoop(T_ANode &x, std::vector & path) { c_loops_++; T_AGraph::handleLoop(x, path); } void reset() { c_loops_ = 0; T_AGraph::reset(); } }; TEST_CASE_METHOD(TC_AGraph, "Create AGraph with nAppls = 2; nEdges = 1, color = 1", "[agraph]" ) { REQUIRE( n_apps_ == 2); REQUIRE( c_apps_ == 0); REQUIRE( n_edges_ == 1); REQUIRE( c_edges_ == 0); REQUIRE( color_ == 1); REQUIRE( nNodes() == c_apps_); REQUIRE(nEdges() == c_edges_); REQUIRE(local_node_color() == color_); bool edge_ = 1; std::string data1("node1"); std::string data2("node2"); addNode(T_ANode(edge_, !edge_, data1), color_); addNode(T_ANode(!edge_, edge_, data2), color_ - 1); SECTION( "TEST TemporalNegotiatorGraph::addNode()", "[agraph]" ) { REQUIRE( c_apps_ == 2); } T_ANode &node1 = at(color_); T_ANode &node2 = at(color_ - 1); SECTION( "TEST TemporalNegotiatorGraph::at()", "[agraph]" ) { REQUIRE( &(node1.data()) == &data1); REQUIRE(&(node2.data()) == &data2); } SECTION( "TEST TemporalNegotiatorGraph::local_node()", "[agraph]" ) { T_ANode &lnode = local_node(); REQUIRE( &lnode == &node1); } SECTION( "TEST TemporalNegotiatorGraph::iterator", "[agraph]" ) { iterator it; int k = 1; //nodes are stored in the order according to the color for (it = begin(); it < end(); ++it, ++k) REQUIRE((it->data()[4] - 48) == (k % 2 + 1)); } T_AEdge &cur_edge = addEdge(T_AEdge(node1, node2, data1[4])); SECTION( "TEST TemporalNegotiatorGraph::addEdge()", "[agraph]" ) { REQUIRE( c_edges_ == 1); REQUIRE(&(cur_edge.data()) == &data1[4]); T_ANode::edge_iterator it; int c_edges = 0; for (it = node1.begin_o(); it < node1.end_o(); ++it, ++c_edges) { REQUIRE( &((*it)->pre()) == &node1); REQUIRE( &((*it)->post()) == &node2); } REQUIRE(c_edges == 1); for (it = node2.begin_o(); it < node2.end_o(); ++it) { REQUIRE(false); } for (it = node1.begin_i(); it < node1.end_i(); ++it) { REQUIRE(false); } c_edges = 0; for (it = node2.begin_i(); it < node2.end_i(); ++it, ++c_edges) { REQUIRE( &((*it)->pre()) == &node1); REQUIRE( &((*it)->post()) == &node2); } REQUIRE(c_edges == 1); } SECTION( "TEST TemporalNegotiatorGraph::edge()", "[agraph]" ) { T_AEdge tmp_edge = edge(node1, 0); REQUIRE( &tmp_edge.data() == &data1[4]); } std::vector path; depthFirst(node1, path); //very poor check SECTION( "TEST TemporalNegotiatorGraph::depthFirst()", "[agraph]" ) { REQUIRE(c_loops_ == 0); iterator it; for (it = begin(); it < end(); ++it) REQUIRE(it->visited); } reset(); SECTION( "TEST TemporalNegotiatorGraph::reset()", "[agraph]" ) { iterator it; for (it = begin(); it < end(); ++it) REQUIRE_FALSE(it->visited); for (it = begin(); it < end(); ++it) REQUIRE_FALSE(it->in_path); } } music-1.1.16/testsuite/unittests/catch/Makefile.am0000644000175000017500000000116213571617503017062 00000000000000## Process this file with Automake to create Makefile.in ACLOCAL = $(top_srcdir)/aclocal.sh testlibdir = $(libdir)/@PACKAGE@-@PACKAGE_VERSION@ testlib_PROGRAMS = test_ag #test_tng MUSIC_INCLUDE = -I$(top_srcdir)/src -I$(top_builddir)/src test_ag_SOURCES = test_ag.cc catch.hpp test_ag_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ test_ag_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ #test_tng_SOURCES = tc_temporal_negotiator_graph.cc #test_tng_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ #test_tng_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) music-1.1.16/testsuite/unittests/catch/catch.hpp0000644000175000017500000114561013571617503016631 00000000000000/* * CATCH v1.0 build 43 (master branch) * Generated: 2014-05-04 09:22:51.466832 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it directly * Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved. * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED #define TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED #define TWOBLUECUBES_CATCH_HPP_INCLUDED #ifdef __clang__ #pragma clang diagnostic ignored "-Wglobal-constructors" #pragma clang diagnostic ignored "-Wvariadic-macros" #pragma clang diagnostic ignored "-Wc99-extensions" #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpadded" #pragma clang diagnostic ignored "-Wc++98-compat" #pragma clang diagnostic ignored "-Wc++98-compat-pedantic" #endif #ifdef CATCH_CONFIG_MAIN # define CATCH_CONFIG_RUNNER #endif #ifdef CATCH_CONFIG_RUNNER # ifndef CLARA_CONFIG_MAIN # define CLARA_CONFIG_MAIN_NOT_DEFINED # define CLARA_CONFIG_MAIN # endif #endif // #included from: internal/catch_notimplemented_exception.h #define TWOBLUECUBES_CATCH_NOTIMPLEMENTED_EXCEPTION_H_INCLUDED // #included from: catch_common.h #define TWOBLUECUBES_CATCH_COMMON_H_INCLUDED #define INTERNAL_CATCH_UNIQUE_NAME_LINE2( name, line ) name##line #define INTERNAL_CATCH_UNIQUE_NAME_LINE( name, line ) INTERNAL_CATCH_UNIQUE_NAME_LINE2( name, line ) #define INTERNAL_CATCH_UNIQUE_NAME( name ) INTERNAL_CATCH_UNIQUE_NAME_LINE( name, __LINE__ ) #define INTERNAL_CATCH_STRINGIFY2( expr ) #expr #define INTERNAL_CATCH_STRINGIFY( expr ) INTERNAL_CATCH_STRINGIFY2( expr ) #include #include #include // #included from: catch_compiler_capabilities.h #define TWOBLUECUBES_CATCH_COMPILER_CAPABILITIES_HPP_INCLUDED // Much of the following code is based on Boost (1.53) #ifdef __clang__ # if __has_feature(cxx_nullptr) # define CATCH_CONFIG_CPP11_NULLPTR # endif # if __has_feature(cxx_noexcept) # define CATCH_CONFIG_CPP11_NOEXCEPT # endif #endif // __clang__ //////////////////////////////////////////////////////////////////////////////// // Borland #ifdef __BORLANDC__ #if (__BORLANDC__ > 0x582 ) //#define CATCH_CONFIG_SFINAE // Not confirmed #endif #endif // __BORLANDC__ //////////////////////////////////////////////////////////////////////////////// // EDG #ifdef __EDG_VERSION__ #if (__EDG_VERSION__ > 238 ) //#define CATCH_CONFIG_SFINAE // Not confirmed #endif #endif // __EDG_VERSION__ //////////////////////////////////////////////////////////////////////////////// // Digital Mars #ifdef __DMC__ #if (__DMC__ > 0x840 ) //#define CATCH_CONFIG_SFINAE // Not confirmed #endif #endif // __DMC__ //////////////////////////////////////////////////////////////////////////////// // GCC #ifdef __GNUC__ #if __GNUC__ < 3 #if (__GNUC_MINOR__ >= 96 ) //#define CATCH_CONFIG_SFINAE #endif #elif __GNUC__ >= 3 // #define CATCH_CONFIG_SFINAE // Taking this out completely for now #endif // __GNUC__ < 3 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6 && defined(__GXX_EXPERIMENTAL_CXX0X__) ) //#define CATCH_CONFIG_CPP11_NULLPTR #endif #endif // __GNUC__ //////////////////////////////////////////////////////////////////////////////// // Visual C++ #ifdef _MSC_VER #if (_MSC_VER >= 1310 ) // (VC++ 7.0+) //#define CATCH_CONFIG_SFINAE // Not confirmed #endif #endif // _MSC_VER // Use variadic macros if the compiler supports them #if ( defined _MSC_VER && _MSC_VER > 1400 && !defined __EDGE__) || \ ( defined __WAVE__ && __WAVE_HAS_VARIADICS ) || \ ( defined __GNUC__ && __GNUC__ >= 3 ) || \ ( !defined __cplusplus && __STDC_VERSION__ >= 199901L || __cplusplus >= 201103L ) #ifndef CATCH_CONFIG_NO_VARIADIC_MACROS #define CATCH_CONFIG_VARIADIC_MACROS #endif #endif //////////////////////////////////////////////////////////////////////////////// // C++ language feature support // detect language version: #if (__cplusplus == 201103L) # define CATCH_CPP11 # define CATCH_CPP11_OR_GREATER #elif (__cplusplus >= 201103L) # define CATCH_CPP11_OR_GREATER #endif // noexcept support: #if defined(CATCH_CONFIG_CPP11_NOEXCEPT) && !defined(CATCH_NOEXCEPT) # define CATCH_NOEXCEPT noexcept # define CATCH_NOEXCEPT_IS(x) noexcept(x) #else # define CATCH_NOEXCEPT throw() # define CATCH_NOEXCEPT_IS(x) #endif namespace Catch { class NonCopyable { NonCopyable( NonCopyable const& ); void operator = ( NonCopyable const& ); protected: NonCopyable() {} virtual ~NonCopyable(); }; class SafeBool { public: typedef void (SafeBool::*type)() const; static type makeSafe( bool value ) { return value ? &SafeBool::trueValue : 0; } private: void trueValue() const {} }; template inline void deleteAll( ContainerT& container ) { typename ContainerT::const_iterator it = container.begin(); typename ContainerT::const_iterator itEnd = container.end(); for(; it != itEnd; ++it ) delete *it; } template inline void deleteAllValues( AssociativeContainerT& container ) { typename AssociativeContainerT::const_iterator it = container.begin(); typename AssociativeContainerT::const_iterator itEnd = container.end(); for(; it != itEnd; ++it ) delete it->second; } bool startsWith( std::string const& s, std::string const& prefix ); bool endsWith( std::string const& s, std::string const& suffix ); bool contains( std::string const& s, std::string const& infix ); void toLowerInPlace( std::string& s ); std::string toLower( std::string const& s ); std::string trim( std::string const& str ); struct pluralise { pluralise( std::size_t count, std::string const& label ); friend std::ostream& operator << ( std::ostream& os, pluralise const& pluraliser ); std::size_t m_count; std::string m_label; }; struct SourceLineInfo { SourceLineInfo(); SourceLineInfo( char const* _file, std::size_t _line ); SourceLineInfo( SourceLineInfo const& other ); # ifdef CATCH_CPP11_OR_GREATER SourceLineInfo( SourceLineInfo && ) = default; SourceLineInfo& operator = ( SourceLineInfo const& ) = default; SourceLineInfo& operator = ( SourceLineInfo && ) = default; # endif bool empty() const; bool operator == ( SourceLineInfo const& other ) const; std::string file; std::size_t line; }; std::ostream& operator << ( std::ostream& os, SourceLineInfo const& info ); // This is just here to avoid compiler warnings with macro constants and boolean literals inline bool isTrue( bool value ){ return value; } void throwLogicError( std::string const& message, SourceLineInfo const& locationInfo ); // Use this in variadic streaming macros to allow // >> +StreamEndStop // as well as // >> stuff +StreamEndStop struct StreamEndStop { std::string operator+() { return std::string(); } }; template T const& operator + ( T const& value, StreamEndStop ) { return value; } } #define CATCH_INTERNAL_LINEINFO ::Catch::SourceLineInfo( __FILE__, static_cast( __LINE__ ) ) #define CATCH_INTERNAL_ERROR( msg ) ::Catch::throwLogicError( msg, CATCH_INTERNAL_LINEINFO ); #include namespace Catch { class NotImplementedException : public std::exception { public: NotImplementedException( SourceLineInfo const& lineInfo ); virtual ~NotImplementedException() CATCH_NOEXCEPT {} virtual const char* what() const CATCH_NOEXCEPT; private: std::string m_what; SourceLineInfo m_lineInfo; }; } // end namespace Catch /////////////////////////////////////////////////////////////////////////////// #define CATCH_NOT_IMPLEMENTED throw Catch::NotImplementedException( CATCH_INTERNAL_LINEINFO ) // #included from: internal/catch_context.h #define TWOBLUECUBES_CATCH_CONTEXT_H_INCLUDED // #included from: catch_interfaces_generators.h #define TWOBLUECUBES_CATCH_INTERFACES_GENERATORS_H_INCLUDED #include namespace Catch { struct IGeneratorInfo { virtual ~IGeneratorInfo(); virtual bool moveNext() = 0; virtual std::size_t getCurrentIndex() const = 0; }; struct IGeneratorsForTest { virtual ~IGeneratorsForTest(); virtual IGeneratorInfo& getGeneratorInfo( std::string const& fileInfo, std::size_t size ) = 0; virtual bool moveNext() = 0; }; IGeneratorsForTest* createGeneratorsForTest(); } // end namespace Catch // #included from: catch_ptr.hpp #define TWOBLUECUBES_CATCH_PTR_HPP_INCLUDED #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpadded" #endif namespace Catch { // An intrusive reference counting smart pointer. // T must implement addRef() and release() methods // typically implementing the IShared interface template class Ptr { public: Ptr() : m_p( NULL ){} Ptr( T* p ) : m_p( p ){ if( m_p ) m_p->addRef(); } Ptr( Ptr const& other ) : m_p( other.m_p ){ if( m_p ) m_p->addRef(); } ~Ptr(){ if( m_p ) m_p->release(); } void reset() { if( m_p ) m_p->release(); m_p = NULL; } Ptr& operator = ( T* p ){ Ptr temp( p ); swap( temp ); return *this; } Ptr& operator = ( Ptr const& other ){ Ptr temp( other ); swap( temp ); return *this; } void swap( Ptr& other ) { std::swap( m_p, other.m_p ); } T* get() { return m_p; } const T* get() const{ return m_p; } T& operator*() const { return *m_p; } T* operator->() const { return m_p; } bool operator !() const { return m_p == NULL; } operator SafeBool::type() const { return SafeBool::makeSafe( m_p != NULL ); } private: T* m_p; }; struct IShared : NonCopyable { virtual ~IShared(); virtual void addRef() const = 0; virtual void release() const = 0; }; template struct SharedImpl : T { SharedImpl() : m_rc( 0 ){} virtual void addRef() const { ++m_rc; } virtual void release() const { if( --m_rc == 0 ) delete this; } mutable unsigned int m_rc; }; } // end namespace Catch #ifdef __clang__ #pragma clang diagnostic pop #endif #include #include #include namespace Catch { class TestCase; class Stream; struct IResultCapture; struct IRunner; struct IGeneratorsForTest; struct IConfig; struct IContext { virtual ~IContext(); virtual IResultCapture& getResultCapture() = 0; virtual IRunner& getRunner() = 0; virtual size_t getGeneratorIndex( std::string const& fileInfo, size_t totalSize ) = 0; virtual bool advanceGeneratorsForCurrentTest() = 0; virtual Ptr getConfig() const = 0; }; struct IMutableContext : IContext { virtual ~IMutableContext(); virtual void setResultCapture( IResultCapture* resultCapture ) = 0; virtual void setRunner( IRunner* runner ) = 0; virtual void setConfig( Ptr const& config ) = 0; }; IContext& getCurrentContext(); IMutableContext& getCurrentMutableContext(); void cleanUpContext(); Stream createStream( std::string const& streamName ); } // #included from: internal/catch_test_registry.hpp #define TWOBLUECUBES_CATCH_TEST_REGISTRY_HPP_INCLUDED // #included from: catch_interfaces_testcase.h #define TWOBLUECUBES_CATCH_INTERFACES_TESTCASE_H_INCLUDED #include namespace Catch { class TestCaseFilters; struct ITestCase : IShared { virtual void invoke () const = 0; protected: virtual ~ITestCase(); }; class TestCase; struct IConfig; struct ITestCaseRegistry { virtual ~ITestCaseRegistry(); virtual std::vector const& getAllTests() const = 0; virtual void getFilteredTests( TestCaseFilters const& filters, IConfig const& config, std::vector& matchingTestCases ) const = 0; virtual void getFilteredTests( IConfig const& config, std::vector& matchingTestCases ) const = 0; }; } namespace Catch { template class MethodTestCase : public SharedImpl { public: MethodTestCase( void (C::*method)() ) : m_method( method ) {} virtual void invoke() const { C obj; (obj.*m_method)(); } private: virtual ~MethodTestCase() {} void (C::*m_method)(); }; typedef void(*TestFunction)(); struct NameAndDesc { NameAndDesc( const char* _name = "", const char* _description= "" ) : name( _name ), description( _description ) {} const char* name; const char* description; }; struct AutoReg { AutoReg( TestFunction function, SourceLineInfo const& lineInfo, NameAndDesc const& nameAndDesc ); template AutoReg( void (C::*method)(), char const* className, NameAndDesc const& nameAndDesc, SourceLineInfo const& lineInfo ) { registerTestCase( new MethodTestCase( method ), className, nameAndDesc, lineInfo ); } void registerTestCase( ITestCase* testCase, char const* className, NameAndDesc const& nameAndDesc, SourceLineInfo const& lineInfo ); ~AutoReg(); private: AutoReg( AutoReg const& ); void operator= ( AutoReg const& ); }; } // end namespace Catch #ifdef CATCH_CONFIG_VARIADIC_MACROS /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CATCH_TESTCASE( ... ) \ static void INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ )(); \ namespace{ Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar )( &INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ ), CATCH_INTERNAL_LINEINFO, Catch::NameAndDesc( __VA_ARGS__ ) ); }\ static void INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ )() /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CATCH_METHOD_AS_TEST_CASE( QualifiedMethod, ... ) \ namespace{ Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar )( &QualifiedMethod, "&" #QualifiedMethod, Catch::NameAndDesc( __VA_ARGS__ ), CATCH_INTERNAL_LINEINFO ); } /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CATCH_TEST_CASE_METHOD( ClassName, ... )\ namespace{ \ struct INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ ) : ClassName{ \ void test(); \ }; \ Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar ) ( &INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ )::test, #ClassName, Catch::NameAndDesc( __VA_ARGS__ ), CATCH_INTERNAL_LINEINFO ); \ } \ void INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ )::test() #else /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CATCH_TESTCASE( Name, Desc ) \ static void INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ )(); \ namespace{ Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar )( &INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ ), CATCH_INTERNAL_LINEINFO, Catch::NameAndDesc( Name, Desc ) ); }\ static void INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ )() /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CATCH_METHOD_AS_TEST_CASE( QualifiedMethod, Name, Desc ) \ namespace{ Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar )( &QualifiedMethod, "&" #QualifiedMethod, Catch::NameAndDesc( Name, Desc ), CATCH_INTERNAL_LINEINFO ); } /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CATCH_TEST_CASE_METHOD( ClassName, TestName, Desc )\ namespace{ \ struct INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ ) : ClassName{ \ void test(); \ }; \ Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar ) ( &INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ )::test, #ClassName, Catch::NameAndDesc( TestName, Desc ), CATCH_INTERNAL_LINEINFO ); \ } \ void INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ )::test() #endif // #included from: internal/catch_capture.hpp #define TWOBLUECUBES_CATCH_CAPTURE_HPP_INCLUDED // #included from: catch_expression_decomposer.hpp #define TWOBLUECUBES_CATCH_EXPRESSION_DECOMPOSER_HPP_INCLUDED // #included from: catch_expression_lhs.hpp #define TWOBLUECUBES_CATCH_EXPRESSION_LHS_HPP_INCLUDED // #included from: catch_expressionresult_builder.h #define TWOBLUECUBES_CATCH_ASSERTIONRESULT_BUILDER_H_INCLUDED // #included from: catch_tostring.h #define TWOBLUECUBES_CATCH_TOSTRING_H_INCLUDED // #included from: catch_sfinae.hpp #define TWOBLUECUBES_CATCH_SFINAE_HPP_INCLUDED // Try to detect if the current compiler supports SFINAE namespace Catch { struct TrueType { static const bool value = true; typedef void Enable; char sizer[1]; }; struct FalseType { static const bool value = false; typedef void Disable; char sizer[2]; }; #ifdef CATCH_CONFIG_SFINAE template struct NotABooleanExpression; template struct If : NotABooleanExpression {}; template<> struct If : TrueType {}; template<> struct If : FalseType {}; template struct SizedIf; template<> struct SizedIf : TrueType {}; template<> struct SizedIf : FalseType {}; #endif // CATCH_CONFIG_SFINAE } // end namespace Catch #include #include #include #include #include #ifdef __OBJC__ // #included from: catch_objc_arc.hpp #define TWOBLUECUBES_CATCH_OBJC_ARC_HPP_INCLUDED #import #ifdef __has_feature #define CATCH_ARC_ENABLED __has_feature(objc_arc) #else #define CATCH_ARC_ENABLED 0 #endif void arcSafeRelease( NSObject* obj ); id performOptionalSelector( id obj, SEL sel ); #if !CATCH_ARC_ENABLED inline void arcSafeRelease( NSObject* obj ) { [obj release]; } inline id performOptionalSelector( id obj, SEL sel ) { if( [obj respondsToSelector: sel] ) return [obj performSelector: sel]; return nil; } #define CATCH_UNSAFE_UNRETAINED #define CATCH_ARC_STRONG #else inline void arcSafeRelease( NSObject* ){} inline id performOptionalSelector( id obj, SEL sel ) { #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Warc-performSelector-leaks" #endif if( [obj respondsToSelector: sel] ) return [obj performSelector: sel]; #ifdef __clang__ #pragma clang diagnostic pop #endif return nil; } #define CATCH_UNSAFE_UNRETAINED __unsafe_unretained #define CATCH_ARC_STRONG __strong #endif #endif namespace Catch { namespace Detail { // SFINAE is currently disabled by default for all compilers. // If the non SFINAE version of IsStreamInsertable is ambiguous for you // and your compiler supports SFINAE, try #defining CATCH_CONFIG_SFINAE #ifdef CATCH_CONFIG_SFINAE template class IsStreamInsertableHelper { template struct TrueIfSizeable : TrueType {}; template static TrueIfSizeable dummy(T2*); static FalseType dummy(...); public: typedef SizedIf type; }; template struct IsStreamInsertable : IsStreamInsertableHelper::type {}; #else struct BorgType { template BorgType( T const& ); }; TrueType& testStreamable( std::ostream& ); FalseType testStreamable( FalseType ); FalseType operator<<( std::ostream const&, BorgType const& ); template struct IsStreamInsertable { static std::ostream &s; static T const&t; enum { value = sizeof( testStreamable(s << t) ) == sizeof( TrueType ) }; }; #endif template struct StringMakerBase { template static std::string convert( T const& ) { return "{?}"; } }; template<> struct StringMakerBase { template static std::string convert( T const& _value ) { std::ostringstream oss; oss << _value; return oss.str(); } }; struct Endianness { enum Arch { Big, Little }; static Arch which() { union { int asInt; char asChar[sizeof (int)]; }; asInt = 1; return ( asChar[sizeof(int)-1] == 1 ) ? Big : Little; } }; // Writes the raw memory into a string, considering endianness template std::string rawMemoryToString( T value ) { union { T typedValue; unsigned char bytes[sizeof(T)]; }; typedValue = value; std::ostringstream oss; oss << "0x"; int i = 0, end = sizeof(T), inc = 1; if( Endianness::which() == Endianness::Little ) { i = end-1; end = inc = -1; } for( ; i != end; i += inc ) oss << std::hex << std::setw(2) << std::setfill('0') << (unsigned int)bytes[i]; return oss.str(); } } // end namespace Detail template std::string toString( T const& value ); template struct StringMaker : Detail::StringMakerBase::value> {}; template struct StringMaker { template static std::string convert( U* p ) { if( !p ) return INTERNAL_CATCH_STRINGIFY( NULL ); else return Detail::rawMemoryToString( p ); } }; template struct StringMaker { static std::string convert( R C::* p ) { if( !p ) return INTERNAL_CATCH_STRINGIFY( NULL ); else return Detail::rawMemoryToString( p ); } }; namespace Detail { template std::string rangeToString( InputIterator first, InputIterator last ); } template struct StringMaker > { static std::string convert( std::vector const& v ) { return Detail::rangeToString( v.begin(), v.end() ); } }; namespace Detail { template std::string makeString( T const& value ) { return StringMaker::convert( value ); } } // end namespace Detail /// \brief converts any type to a string /// /// The default template forwards on to ostringstream - except when an /// ostringstream overload does not exist - in which case it attempts to detect /// that and writes {?}. /// Overload (not specialise) this template for custom typs that you don't want /// to provide an ostream overload for. template std::string toString( T const& value ) { return StringMaker::convert( value ); } // Built in overloads std::string toString( std::string const& value ); std::string toString( std::wstring const& value ); std::string toString( const char* const value ); std::string toString( char* const value ); std::string toString( int value ); std::string toString( unsigned long value ); std::string toString( unsigned int value ); std::string toString( const double value ); std::string toString( bool value ); std::string toString( char value ); std::string toString( signed char value ); std::string toString( unsigned char value ); #ifdef CATCH_CONFIG_CPP11_NULLPTR std::string toString( std::nullptr_t ); #endif #ifdef __OBJC__ std::string toString( NSString const * const& nsstring ); std::string toString( NSString * CATCH_ARC_STRONG const& nsstring ); std::string toString( NSObject* const& nsObject ); #endif namespace Detail { template std::string rangeToString( InputIterator first, InputIterator last ) { std::ostringstream oss; oss << "{ "; if( first != last ) { oss << toString( *first ); for( ++first ; first != last ; ++first ) { oss << ", " << toString( *first ); } } oss << " }"; return oss.str(); } } } // end namespace Catch // #included from: catch_assertionresult.h #define TWOBLUECUBES_CATCH_ASSERTIONRESULT_H_INCLUDED #include // #included from: catch_result_type.h #define TWOBLUECUBES_CATCH_RESULT_TYPE_H_INCLUDED namespace Catch { // ResultWas::OfType enum struct ResultWas { enum OfType { Unknown = -1, Ok = 0, Info = 1, Warning = 2, FailureBit = 0x10, ExpressionFailed = FailureBit | 1, ExplicitFailure = FailureBit | 2, Exception = 0x100 | FailureBit, ThrewException = Exception | 1, DidntThrowException = Exception | 2 }; }; inline bool isOk( ResultWas::OfType resultType ) { return ( resultType & ResultWas::FailureBit ) == 0; } inline bool isJustInfo( int flags ) { return flags == ResultWas::Info; } // ResultAction::Value enum struct ResultAction { enum Value { None, Failed = 1, // Failure - but no debug break if Debug bit not set Debug = 2, // If this bit is set, invoke the debugger Abort = 4 // Test run should abort }; }; // ResultDisposition::Flags enum struct ResultDisposition { enum Flags { Normal = 0x00, ContinueOnFailure = 0x01, // Failures fail test, but execution continues NegateResult = 0x02, // Prefix expressiom with ! SuppressFail = 0x04 // Failures are reported but do not fail the test }; }; inline ResultDisposition::Flags operator | ( ResultDisposition::Flags lhs, ResultDisposition::Flags rhs ) { return static_cast( static_cast( lhs ) | static_cast( rhs ) ); } inline bool shouldContinueOnFailure( int flags ) { return ( flags & ResultDisposition::ContinueOnFailure ) != 0; } inline bool shouldNegate( int flags ) { return ( flags & ResultDisposition::NegateResult ) != 0; } inline bool shouldSuppressFailure( int flags ) { return ( flags & ResultDisposition::SuppressFail ) != 0; } } // end namespace Catch namespace Catch { struct AssertionInfo { AssertionInfo() {} AssertionInfo( std::string const& _macroName, SourceLineInfo const& _lineInfo, std::string const& _capturedExpression, ResultDisposition::Flags _resultDisposition ); std::string macroName; SourceLineInfo lineInfo; std::string capturedExpression; ResultDisposition::Flags resultDisposition; }; struct AssertionResultData { AssertionResultData() : resultType( ResultWas::Unknown ) {} std::string reconstructedExpression; std::string message; ResultWas::OfType resultType; }; class AssertionResult { public: AssertionResult(); AssertionResult( AssertionInfo const& info, AssertionResultData const& data ); ~AssertionResult(); # ifdef CATCH_CPP11_OR_GREATER AssertionResult( AssertionResult const& ) = default; AssertionResult( AssertionResult && ) = default; AssertionResult& operator = ( AssertionResult const& ) = default; AssertionResult& operator = ( AssertionResult && ) = default; # endif bool isOk() const; bool succeeded() const; ResultWas::OfType getResultType() const; bool hasExpression() const; bool hasMessage() const; std::string getExpression() const; std::string getExpressionInMacro() const; bool hasExpandedExpression() const; std::string getExpandedExpression() const; std::string getMessage() const; SourceLineInfo getSourceInfo() const; std::string getTestMacroName() const; protected: AssertionInfo m_info; AssertionResultData m_resultData; }; } // end namespace Catch // #included from: catch_evaluate.hpp #define TWOBLUECUBES_CATCH_EVALUATE_HPP_INCLUDED #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable:4389) // '==' : signed/unsigned mismatch #endif #include namespace Catch { namespace Internal { enum Operator { IsEqualTo, IsNotEqualTo, IsLessThan, IsGreaterThan, IsLessThanOrEqualTo, IsGreaterThanOrEqualTo }; template struct OperatorTraits { static const char* getName(){ return "*error*"; } }; template<> struct OperatorTraits { static const char* getName(){ return "=="; } }; template<> struct OperatorTraits { static const char* getName(){ return "!="; } }; template<> struct OperatorTraits { static const char* getName(){ return "<"; } }; template<> struct OperatorTraits { static const char* getName(){ return ">"; } }; template<> struct OperatorTraits { static const char* getName(){ return "<="; } }; template<> struct OperatorTraits{ static const char* getName(){ return ">="; } }; template inline T& opCast(T const& t) { return const_cast(t); } // nullptr_t support based on pull request #154 from Konstantin Baumann #ifdef CATCH_CONFIG_CPP11_NULLPTR inline std::nullptr_t opCast(std::nullptr_t) { return nullptr; } #endif // CATCH_CONFIG_CPP11_NULLPTR // So the compare overloads can be operator agnostic we convey the operator as a template // enum, which is used to specialise an Evaluator for doing the comparison. template class Evaluator{}; template struct Evaluator { static bool evaluate( T1 const& lhs, T2 const& rhs) { return opCast( lhs ) == opCast( rhs ); } }; template struct Evaluator { static bool evaluate( T1 const& lhs, T2 const& rhs ) { return opCast( lhs ) != opCast( rhs ); } }; template struct Evaluator { static bool evaluate( T1 const& lhs, T2 const& rhs ) { return opCast( lhs ) < opCast( rhs ); } }; template struct Evaluator { static bool evaluate( T1 const& lhs, T2 const& rhs ) { return opCast( lhs ) > opCast( rhs ); } }; template struct Evaluator { static bool evaluate( T1 const& lhs, T2 const& rhs ) { return opCast( lhs ) >= opCast( rhs ); } }; template struct Evaluator { static bool evaluate( T1 const& lhs, T2 const& rhs ) { return opCast( lhs ) <= opCast( rhs ); } }; template bool applyEvaluator( T1 const& lhs, T2 const& rhs ) { return Evaluator::evaluate( lhs, rhs ); } // This level of indirection allows us to specialise for integer types // to avoid signed/ unsigned warnings // "base" overload template bool compare( T1 const& lhs, T2 const& rhs ) { return Evaluator::evaluate( lhs, rhs ); } // unsigned X to int template bool compare( unsigned int lhs, int rhs ) { return applyEvaluator( lhs, static_cast( rhs ) ); } template bool compare( unsigned long lhs, int rhs ) { return applyEvaluator( lhs, static_cast( rhs ) ); } template bool compare( unsigned char lhs, int rhs ) { return applyEvaluator( lhs, static_cast( rhs ) ); } // unsigned X to long template bool compare( unsigned int lhs, long rhs ) { return applyEvaluator( lhs, static_cast( rhs ) ); } template bool compare( unsigned long lhs, long rhs ) { return applyEvaluator( lhs, static_cast( rhs ) ); } template bool compare( unsigned char lhs, long rhs ) { return applyEvaluator( lhs, static_cast( rhs ) ); } // int to unsigned X template bool compare( int lhs, unsigned int rhs ) { return applyEvaluator( static_cast( lhs ), rhs ); } template bool compare( int lhs, unsigned long rhs ) { return applyEvaluator( static_cast( lhs ), rhs ); } template bool compare( int lhs, unsigned char rhs ) { return applyEvaluator( static_cast( lhs ), rhs ); } // long to unsigned X template bool compare( long lhs, unsigned int rhs ) { return applyEvaluator( static_cast( lhs ), rhs ); } template bool compare( long lhs, unsigned long rhs ) { return applyEvaluator( static_cast( lhs ), rhs ); } template bool compare( long lhs, unsigned char rhs ) { return applyEvaluator( static_cast( lhs ), rhs ); } // pointer to long (when comparing against NULL) template bool compare( long lhs, T* rhs ) { return Evaluator::evaluate( reinterpret_cast( lhs ), rhs ); } template bool compare( T* lhs, long rhs ) { return Evaluator::evaluate( lhs, reinterpret_cast( rhs ) ); } // pointer to int (when comparing against NULL) template bool compare( int lhs, T* rhs ) { return Evaluator::evaluate( reinterpret_cast( lhs ), rhs ); } template bool compare( T* lhs, int rhs ) { return Evaluator::evaluate( lhs, reinterpret_cast( rhs ) ); } #ifdef CATCH_CONFIG_CPP11_NULLPTR // pointer to nullptr_t (when comparing against nullptr) template bool compare( std::nullptr_t, T* rhs ) { return Evaluator::evaluate( NULL, rhs ); } template bool compare( T* lhs, std::nullptr_t ) { return Evaluator::evaluate( lhs, NULL ); } #endif // CATCH_CONFIG_CPP11_NULLPTR } // end of namespace Internal } // end of namespace Catch #ifdef _MSC_VER #pragma warning(pop) #endif namespace Catch { struct STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison; // Wraps the (stringised versions of) the lhs, operator and rhs of an expression - as well as // the result of evaluating it. This is used to build an AssertionResult object class ExpressionResultBuilder { public: ExpressionResultBuilder( ResultWas::OfType resultType = ResultWas::Unknown ); ExpressionResultBuilder( ExpressionResultBuilder const& other ); ExpressionResultBuilder& operator=(ExpressionResultBuilder const& other ); ExpressionResultBuilder& setResultType( ResultWas::OfType result ); ExpressionResultBuilder& setResultType( bool result ); ExpressionResultBuilder& setLhs( std::string const& lhs ); ExpressionResultBuilder& setRhs( std::string const& rhs ); ExpressionResultBuilder& setOp( std::string const& op ); ExpressionResultBuilder& endExpression( ResultDisposition::Flags resultDisposition ); template ExpressionResultBuilder& operator << ( T const& value ) { m_stream << value; return *this; } std::string reconstructExpression( AssertionInfo const& info ) const; AssertionResult buildResult( AssertionInfo const& info ) const; template STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison& operator && ( RhsT const& ); template STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison& operator || ( RhsT const& ); private: AssertionResultData m_data; struct ExprComponents { ExprComponents() : shouldNegate( false ) {} bool shouldNegate; std::string lhs, rhs, op; } m_exprComponents; std::ostringstream m_stream; }; } // end namespace Catch namespace Catch { // Wraps the LHS of an expression and captures the operator and RHS (if any) - // wrapping them all in an ExpressionResultBuilder object template class ExpressionLhs { ExpressionLhs& operator = ( ExpressionLhs const& ); # ifdef CATCH_CPP11_OR_GREATER ExpressionLhs& operator = ( ExpressionLhs && ) = delete; # endif public: ExpressionLhs( T lhs ) : m_lhs( lhs ) {} # ifdef CATCH_CPP11_OR_GREATER ExpressionLhs( ExpressionLhs const& ) = default; ExpressionLhs( ExpressionLhs && ) = default; # endif template ExpressionResultBuilder& operator == ( RhsT const& rhs ) { return captureExpression( rhs ); } template ExpressionResultBuilder& operator != ( RhsT const& rhs ) { return captureExpression( rhs ); } template ExpressionResultBuilder& operator < ( RhsT const& rhs ) { return captureExpression( rhs ); } template ExpressionResultBuilder& operator > ( RhsT const& rhs ) { return captureExpression( rhs ); } template ExpressionResultBuilder& operator <= ( RhsT const& rhs ) { return captureExpression( rhs ); } template ExpressionResultBuilder& operator >= ( RhsT const& rhs ) { return captureExpression( rhs ); } ExpressionResultBuilder& operator == ( bool rhs ) { return captureExpression( rhs ); } ExpressionResultBuilder& operator != ( bool rhs ) { return captureExpression( rhs ); } ExpressionResultBuilder& endExpression( ResultDisposition::Flags resultDisposition ) { bool value = m_lhs ? true : false; return m_result .setLhs( Catch::toString( value ) ) .setResultType( value ) .endExpression( resultDisposition ); } // Only simple binary expressions are allowed on the LHS. // If more complex compositions are required then place the sub expression in parentheses template STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison& operator + ( RhsT const& ); template STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison& operator - ( RhsT const& ); template STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison& operator / ( RhsT const& ); template STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison& operator * ( RhsT const& ); template STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison& operator && ( RhsT const& ); template STATIC_ASSERT_Expression_Too_Complex_Please_Rewrite_As_Binary_Comparison& operator || ( RhsT const& ); private: template ExpressionResultBuilder& captureExpression( RhsT const& rhs ) { return m_result .setResultType( Internal::compare( m_lhs, rhs ) ) .setLhs( Catch::toString( m_lhs ) ) .setRhs( Catch::toString( rhs ) ) .setOp( Internal::OperatorTraits::getName() ); } private: ExpressionResultBuilder m_result; T m_lhs; }; } // end namespace Catch namespace Catch { // Captures the LHS of the expression and wraps it in an Expression Lhs object class ExpressionDecomposer { public: template ExpressionLhs operator->* ( T const& operand ) { return ExpressionLhs( operand ); } ExpressionLhs operator->* ( bool value ) { return ExpressionLhs( value ); } }; } // end namespace Catch // #included from: catch_message.h #define TWOBLUECUBES_CATCH_MESSAGE_H_INCLUDED #include namespace Catch { struct MessageInfo { MessageInfo( std::string const& _macroName, SourceLineInfo const& _lineInfo, ResultWas::OfType _type ); std::string macroName; SourceLineInfo lineInfo; ResultWas::OfType type; std::string message; unsigned int sequence; bool operator == ( MessageInfo const& other ) const { return sequence == other.sequence; } bool operator < ( MessageInfo const& other ) const { return sequence < other.sequence; } private: static unsigned int globalCount; }; struct MessageBuilder { MessageBuilder( std::string const& macroName, SourceLineInfo const& lineInfo, ResultWas::OfType type ) : m_info( macroName, lineInfo, type ) {} template MessageBuilder& operator << ( T const& value ) { m_stream << value; return *this; } MessageInfo m_info; std::ostringstream m_stream; }; class ScopedMessage { public: ScopedMessage( MessageBuilder const& builder ); ~ScopedMessage(); MessageInfo m_info; }; } // end namespace Catch // #included from: catch_interfaces_capture.h #define TWOBLUECUBES_CATCH_INTERFACES_CAPTURE_H_INCLUDED #include namespace Catch { class TestCase; class ExpressionResultBuilder; class AssertionResult; struct AssertionInfo; struct SectionInfo; struct MessageInfo; class ScopedMessageBuilder; struct Counts; struct IResultCapture { virtual ~IResultCapture(); virtual void assertionEnded( AssertionResult const& result ) = 0; virtual bool sectionStarted( SectionInfo const& sectionInfo, Counts& assertions ) = 0; virtual void sectionEnded( SectionInfo const& name, Counts const& assertions, double _durationInSeconds ) = 0; virtual void pushScopedMessage( MessageInfo const& message ) = 0; virtual void popScopedMessage( MessageInfo const& message ) = 0; virtual bool shouldDebugBreak() const = 0; virtual ResultAction::Value acceptExpression( ExpressionResultBuilder const& assertionResult, AssertionInfo const& assertionInfo ) = 0; virtual std::string getCurrentTestName() const = 0; virtual const AssertionResult* getLastResult() const = 0; }; } // #included from: catch_debugger.h #define TWOBLUECUBES_CATCH_DEBUGGER_H_INCLUDED // #included from: catch_platform.h #define TWOBLUECUBES_CATCH_PLATFORM_H_INCLUDED #if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) #define CATCH_PLATFORM_MAC #elif defined(__IPHONE_OS_VERSION_MIN_REQUIRED) #define CATCH_PLATFORM_IPHONE #elif defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER) #define CATCH_PLATFORM_WINDOWS #endif #include namespace Catch{ bool isDebuggerActive(); void writeToDebugConsole( std::string const& text ); } #ifdef CATCH_PLATFORM_MAC // The following code snippet based on: // http://cocoawithlove.com/2008/03/break-into-debugger.html #ifdef DEBUG #if defined(__ppc64__) || defined(__ppc__) #define CATCH_BREAK_INTO_DEBUGGER() \ if( Catch::isDebuggerActive() ) { \ __asm__("li r0, 20\nsc\nnop\nli r0, 37\nli r4, 2\nsc\nnop\n" \ : : : "memory","r0","r3","r4" ); \ } #else #define CATCH_BREAK_INTO_DEBUGGER() if( Catch::isDebuggerActive() ) {__asm__("int $3\n" : : );} #endif #endif #elif defined(_MSC_VER) #define CATCH_BREAK_INTO_DEBUGGER() if( Catch::isDebuggerActive() ) { __debugbreak(); } #elif defined(__MINGW32__) extern "C" __declspec(dllimport) void __stdcall DebugBreak(); #define CATCH_BREAK_INTO_DEBUGGER() if( Catch::isDebuggerActive() ) { DebugBreak(); } #endif #ifndef CATCH_BREAK_INTO_DEBUGGER #define CATCH_BREAK_INTO_DEBUGGER() Catch::isTrue( true ); #endif // #included from: catch_interfaces_registry_hub.h #define TWOBLUECUBES_CATCH_INTERFACES_REGISTRY_HUB_H_INCLUDED #include namespace Catch { class TestCase; struct ITestCaseRegistry; struct IExceptionTranslatorRegistry; struct IExceptionTranslator; struct IReporterRegistry; struct IReporterFactory; struct IRegistryHub { virtual ~IRegistryHub(); virtual IReporterRegistry const& getReporterRegistry() const = 0; virtual ITestCaseRegistry const& getTestCaseRegistry() const = 0; virtual IExceptionTranslatorRegistry& getExceptionTranslatorRegistry() = 0; }; struct IMutableRegistryHub { virtual ~IMutableRegistryHub(); virtual void registerReporter( std::string const& name, IReporterFactory* factory ) = 0; virtual void registerTest( TestCase const& testInfo ) = 0; virtual void registerTranslator( const IExceptionTranslator* translator ) = 0; }; IRegistryHub& getRegistryHub(); IMutableRegistryHub& getMutableRegistryHub(); void cleanUp(); std::string translateActiveException(); } // #included from: catch_interfaces_config.h #define TWOBLUECUBES_CATCH_INTERFACES_CONFIG_H_INCLUDED #include #include #include namespace Catch { struct Verbosity { enum Level { NoOutput = 0, Quiet, Normal }; }; struct WarnAbout { enum What { Nothing = 0x00, NoAssertions = 0x01 }; }; struct ShowDurations { enum OrNot { DefaultForReporter, Always, Never }; }; class TestCaseFilters; struct IConfig : IShared { virtual ~IConfig(); virtual bool allowThrows() const = 0; virtual std::ostream& stream() const = 0; virtual std::string name() const = 0; virtual bool includeSuccessfulResults() const = 0; virtual bool shouldDebugBreak() const = 0; virtual bool warnAboutMissingAssertions() const = 0; virtual int abortAfter() const = 0; virtual bool showInvisibles() const = 0; virtual ShowDurations::OrNot showDurations() const = 0; virtual std::vector const& filters() const = 0; }; } #include namespace Catch { inline IResultCapture& getResultCapture() { return getCurrentContext().getResultCapture(); } template ExpressionResultBuilder expressionResultBuilderFromMatcher( MatcherT const& matcher, std::string const& matcherCallAsString ) { std::string matcherAsString = matcher.toString(); if( matcherAsString == "{?}" ) matcherAsString = matcherCallAsString; return ExpressionResultBuilder() .setRhs( matcherAsString ) .setOp( "matches" ); } template ExpressionResultBuilder expressionResultBuilderFromMatcher( MatcherT const& matcher, ArgT const& arg, std::string const& matcherCallAsString ) { return expressionResultBuilderFromMatcher( matcher, matcherCallAsString ) .setLhs( Catch::toString( arg ) ) .setResultType( matcher.match( arg ) ); } template ExpressionResultBuilder expressionResultBuilderFromMatcher( MatcherT const& matcher, ArgT* arg, std::string const& matcherCallAsString ) { return expressionResultBuilderFromMatcher( matcher, matcherCallAsString ) .setLhs( Catch::toString( arg ) ) .setResultType( matcher.match( arg ) ); } struct TestFailureException{}; } // end namespace Catch /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CATCH_ACCEPT_EXPR( evaluatedExpr, resultDisposition, originalExpr ) \ if( Catch::ResultAction::Value internal_catch_action = Catch::getResultCapture().acceptExpression( evaluatedExpr, __assertionInfo ) ) { \ if( internal_catch_action & Catch::ResultAction::Debug ) CATCH_BREAK_INTO_DEBUGGER(); \ if( internal_catch_action & Catch::ResultAction::Abort ) throw Catch::TestFailureException(); \ if( !Catch::shouldContinueOnFailure( resultDisposition ) ) throw Catch::TestFailureException(); \ Catch::isTrue( false && originalExpr ); \ } /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CATCH_TEST( expr, resultDisposition, macroName ) \ do { \ Catch::AssertionInfo __assertionInfo( macroName, CATCH_INTERNAL_LINEINFO, #expr, resultDisposition ); \ try { \ INTERNAL_CATCH_ACCEPT_EXPR( ( Catch::ExpressionDecomposer()->*expr ).endExpression( resultDisposition ), resultDisposition, expr ); \ } catch( Catch::TestFailureException& ) { \ throw; \ } catch( ... ) { \ INTERNAL_CATCH_ACCEPT_EXPR( Catch::ExpressionResultBuilder( Catch::ResultWas::ThrewException ) << Catch::translateActiveException(), \ Catch::ResultDisposition::Normal, expr ); \ } \ } while( Catch::isTrue( false ) ) /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CATCH_IF( expr, resultDisposition, macroName ) \ INTERNAL_CATCH_TEST( expr, resultDisposition, macroName ); \ if( Catch::getResultCapture().getLastResult()->succeeded() ) /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CATCH_ELSE( expr, resultDisposition, macroName ) \ INTERNAL_CATCH_TEST( expr, resultDisposition, macroName ); \ if( !Catch::getResultCapture().getLastResult()->succeeded() ) /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CATCH_NO_THROW( expr, resultDisposition, macroName ) \ do { \ Catch::AssertionInfo __assertionInfo( macroName, CATCH_INTERNAL_LINEINFO, #expr, resultDisposition ); \ try { \ expr; \ INTERNAL_CATCH_ACCEPT_EXPR( Catch::ExpressionResultBuilder( Catch::ResultWas::Ok ), resultDisposition, false ); \ } \ catch( ... ) { \ INTERNAL_CATCH_ACCEPT_EXPR( Catch::ExpressionResultBuilder( Catch::ResultWas::ThrewException ) << Catch::translateActiveException(), resultDisposition, false ); \ } \ } while( Catch::isTrue( false ) ) /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CATCH_THROWS_IMPL( expr, exceptionType, resultDisposition ) \ try { \ if( Catch::getCurrentContext().getConfig()->allowThrows() ) { \ expr; \ INTERNAL_CATCH_ACCEPT_EXPR( Catch::ExpressionResultBuilder( Catch::ResultWas::DidntThrowException ), resultDisposition, false ); \ } \ } \ catch( Catch::TestFailureException& ) { \ throw; \ } \ catch( exceptionType ) { \ INTERNAL_CATCH_ACCEPT_EXPR( Catch::ExpressionResultBuilder( Catch::ResultWas::Ok ), resultDisposition, false ); \ } /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CATCH_THROWS( expr, exceptionType, resultDisposition, macroName ) \ do { \ Catch::AssertionInfo __assertionInfo( macroName, CATCH_INTERNAL_LINEINFO, #expr, resultDisposition ); \ INTERNAL_CATCH_THROWS_IMPL( expr, exceptionType, resultDisposition ) \ } while( Catch::isTrue( false ) ) /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CATCH_THROWS_AS( expr, exceptionType, resultDisposition, macroName ) \ do { \ Catch::AssertionInfo __assertionInfo( macroName, CATCH_INTERNAL_LINEINFO, #expr, resultDisposition ); \ INTERNAL_CATCH_THROWS_IMPL( expr, exceptionType, resultDisposition ) \ catch( ... ) { \ INTERNAL_CATCH_ACCEPT_EXPR( ( Catch::ExpressionResultBuilder( Catch::ResultWas::ThrewException ) << Catch::translateActiveException() ), \ resultDisposition | Catch::ResultDisposition::ContinueOnFailure, false ); \ } \ } while( Catch::isTrue( false ) ) /////////////////////////////////////////////////////////////////////////////// #ifdef CATCH_CONFIG_VARIADIC_MACROS #define INTERNAL_CATCH_MSG( messageType, resultDisposition, macroName, ... ) \ do { \ Catch::AssertionInfo __assertionInfo( macroName, CATCH_INTERNAL_LINEINFO, "", resultDisposition ); \ INTERNAL_CATCH_ACCEPT_EXPR( Catch::ExpressionResultBuilder( messageType ) << __VA_ARGS__ +::Catch::StreamEndStop(), resultDisposition, true ) \ } while( Catch::isTrue( false ) ) #else #define INTERNAL_CATCH_MSG( messageType, resultDisposition, macroName, log ) \ do { \ Catch::AssertionInfo __assertionInfo( macroName, CATCH_INTERNAL_LINEINFO, "", resultDisposition ); \ INTERNAL_CATCH_ACCEPT_EXPR( Catch::ExpressionResultBuilder( messageType ) << log, resultDisposition, true ) \ } while( Catch::isTrue( false ) ) #endif /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CATCH_INFO( log, macroName ) \ Catch::ScopedMessage INTERNAL_CATCH_UNIQUE_NAME( scopedMessage ) = Catch::MessageBuilder( macroName, CATCH_INTERNAL_LINEINFO, Catch::ResultWas::Info ) << log; /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CHECK_THAT( arg, matcher, resultDisposition, macroName ) \ do { \ Catch::AssertionInfo __assertionInfo( macroName, CATCH_INTERNAL_LINEINFO, #arg " " #matcher, resultDisposition ); \ try { \ INTERNAL_CATCH_ACCEPT_EXPR( ( Catch::expressionResultBuilderFromMatcher( ::Catch::Matchers::matcher, arg, #matcher ) ), resultDisposition, false ); \ } catch( Catch::TestFailureException& ) { \ throw; \ } catch( ... ) { \ INTERNAL_CATCH_ACCEPT_EXPR( ( Catch::ExpressionResultBuilder( Catch::ResultWas::ThrewException ) << Catch::translateActiveException() ), \ resultDisposition | Catch::ResultDisposition::ContinueOnFailure, false ); \ } \ } while( Catch::isTrue( false ) ) // #included from: internal/catch_section.h #define TWOBLUECUBES_CATCH_SECTION_H_INCLUDED // #included from: catch_section_info.h #define TWOBLUECUBES_CATCH_SECTION_INFO_H_INCLUDED namespace Catch { struct SectionInfo { SectionInfo( std::string const& _name, std::string const& _description, SourceLineInfo const& _lineInfo ) : name( _name ), description( _description ), lineInfo( _lineInfo ) {} std::string name; std::string description; SourceLineInfo lineInfo; }; } // end namespace Catch // #included from: catch_totals.hpp #define TWOBLUECUBES_CATCH_TOTALS_HPP_INCLUDED #include namespace Catch { struct Counts { Counts() : passed( 0 ), failed( 0 ) {} Counts operator - ( Counts const& other ) const { Counts diff; diff.passed = passed - other.passed; diff.failed = failed - other.failed; return diff; } Counts& operator += ( Counts const& other ) { passed += other.passed; failed += other.failed; return *this; } std::size_t total() const { return passed + failed; } std::size_t passed; std::size_t failed; }; struct Totals { Totals operator - ( Totals const& other ) const { Totals diff; diff.assertions = assertions - other.assertions; diff.testCases = testCases - other.testCases; return diff; } Totals delta( Totals const& prevTotals ) const { Totals diff = *this - prevTotals; if( diff.assertions.failed > 0 ) ++diff.testCases.failed; else ++diff.testCases.passed; return diff; } Totals& operator += ( Totals const& other ) { assertions += other.assertions; testCases += other.testCases; return *this; } Counts assertions; Counts testCases; }; } // #included from: catch_timer.h #define TWOBLUECUBES_CATCH_TIMER_H_INCLUDED #ifdef CATCH_PLATFORM_WINDOWS typedef unsigned long long uint64_t; #else #include #endif namespace Catch { class Timer { public: Timer() : m_ticks( 0 ) {} void start(); unsigned int getElapsedNanoseconds() const; unsigned int getElapsedMilliseconds() const; double getElapsedSeconds() const; private: uint64_t m_ticks; }; } // namespace Catch #include namespace Catch { class Section { public: Section( SourceLineInfo const& lineInfo, std::string const& name, std::string const& description = "" ); ~Section(); # ifdef CATCH_CPP11_OR_GREATER Section( Section const& ) = default; Section( Section && ) = default; Section& operator = ( Section const& ) = default; Section& operator = ( Section && ) = default; # endif // This indicates whether the section should be executed or not operator bool(); private: SectionInfo m_info; std::string m_name; Counts m_assertions; bool m_sectionIncluded; Timer m_timer; }; } // end namespace Catch #ifdef CATCH_CONFIG_VARIADIC_MACROS #define INTERNAL_CATCH_SECTION( ... ) \ if( Catch::Section INTERNAL_CATCH_UNIQUE_NAME( catch_internal_Section ) = Catch::Section( CATCH_INTERNAL_LINEINFO, __VA_ARGS__ ) ) #else #define INTERNAL_CATCH_SECTION( name, desc ) \ if( Catch::Section INTERNAL_CATCH_UNIQUE_NAME( catch_internal_Section ) = Catch::Section( CATCH_INTERNAL_LINEINFO, name, desc ) ) #endif // #included from: internal/catch_generators.hpp #define TWOBLUECUBES_CATCH_GENERATORS_HPP_INCLUDED #include #include #include #include namespace Catch { template struct IGenerator { virtual ~IGenerator() {} virtual T getValue( std::size_t index ) const = 0; virtual std::size_t size () const = 0; }; template class BetweenGenerator : public IGenerator { public: BetweenGenerator( T from, T to ) : m_from( from ), m_to( to ){} virtual T getValue( std::size_t index ) const { return m_from+static_cast( index ); } virtual std::size_t size() const { return static_cast( 1+m_to-m_from ); } private: T m_from; T m_to; }; template class ValuesGenerator : public IGenerator { public: ValuesGenerator(){} void add( T value ) { m_values.push_back( value ); } virtual T getValue( std::size_t index ) const { return m_values[index]; } virtual std::size_t size() const { return m_values.size(); } private: std::vector m_values; }; template class CompositeGenerator { public: CompositeGenerator() : m_totalSize( 0 ) {} // *** Move semantics, similar to auto_ptr *** CompositeGenerator( CompositeGenerator& other ) : m_fileInfo( other.m_fileInfo ), m_totalSize( 0 ) { move( other ); } CompositeGenerator& setFileInfo( const char* fileInfo ) { m_fileInfo = fileInfo; return *this; } ~CompositeGenerator() { deleteAll( m_composed ); } operator T () const { size_t overallIndex = getCurrentContext().getGeneratorIndex( m_fileInfo, m_totalSize ); typename std::vector*>::const_iterator it = m_composed.begin(); typename std::vector*>::const_iterator itEnd = m_composed.end(); for( size_t index = 0; it != itEnd; ++it ) { const IGenerator* generator = *it; if( overallIndex >= index && overallIndex < index + generator->size() ) { return generator->getValue( overallIndex-index ); } index += generator->size(); } CATCH_INTERNAL_ERROR( "Indexed past end of generated range" ); return T(); // Suppress spurious "not all control paths return a value" warning in Visual Studio - if you know how to fix this please do so } void add( const IGenerator* generator ) { m_totalSize += generator->size(); m_composed.push_back( generator ); } CompositeGenerator& then( CompositeGenerator& other ) { move( other ); return *this; } CompositeGenerator& then( T value ) { ValuesGenerator* valuesGen = new ValuesGenerator(); valuesGen->add( value ); add( valuesGen ); return *this; } private: void move( CompositeGenerator& other ) { std::copy( other.m_composed.begin(), other.m_composed.end(), std::back_inserter( m_composed ) ); m_totalSize += other.m_totalSize; other.m_composed.clear(); } std::vector*> m_composed; std::string m_fileInfo; size_t m_totalSize; }; namespace Generators { template CompositeGenerator between( T from, T to ) { CompositeGenerator generators; generators.add( new BetweenGenerator( from, to ) ); return generators; } template CompositeGenerator values( T val1, T val2 ) { CompositeGenerator generators; ValuesGenerator* valuesGen = new ValuesGenerator(); valuesGen->add( val1 ); valuesGen->add( val2 ); generators.add( valuesGen ); return generators; } template CompositeGenerator values( T val1, T val2, T val3 ){ CompositeGenerator generators; ValuesGenerator* valuesGen = new ValuesGenerator(); valuesGen->add( val1 ); valuesGen->add( val2 ); valuesGen->add( val3 ); generators.add( valuesGen ); return generators; } template CompositeGenerator values( T val1, T val2, T val3, T val4 ) { CompositeGenerator generators; ValuesGenerator* valuesGen = new ValuesGenerator(); valuesGen->add( val1 ); valuesGen->add( val2 ); valuesGen->add( val3 ); valuesGen->add( val4 ); generators.add( valuesGen ); return generators; } } // end namespace Generators using namespace Generators; } // end namespace Catch #define INTERNAL_CATCH_LINESTR2( line ) #line #define INTERNAL_CATCH_LINESTR( line ) INTERNAL_CATCH_LINESTR2( line ) #define INTERNAL_CATCH_GENERATE( expr ) expr.setFileInfo( __FILE__ "(" INTERNAL_CATCH_LINESTR( __LINE__ ) ")" ) // #included from: internal/catch_interfaces_exception.h #define TWOBLUECUBES_CATCH_INTERFACES_EXCEPTION_H_INCLUDED #include namespace Catch { typedef std::string(*exceptionTranslateFunction)(); struct IExceptionTranslator { virtual ~IExceptionTranslator(); virtual std::string translate() const = 0; }; struct IExceptionTranslatorRegistry { virtual ~IExceptionTranslatorRegistry(); virtual std::string translateActiveException() const = 0; }; class ExceptionTranslatorRegistrar { template class ExceptionTranslator : public IExceptionTranslator { public: ExceptionTranslator( std::string(*translateFunction)( T& ) ) : m_translateFunction( translateFunction ) {} virtual std::string translate() const { try { throw; } catch( T& ex ) { return m_translateFunction( ex ); } } protected: std::string(*m_translateFunction)( T& ); }; public: template ExceptionTranslatorRegistrar( std::string(*translateFunction)( T& ) ) { getMutableRegistryHub().registerTranslator ( new ExceptionTranslator( translateFunction ) ); } }; } /////////////////////////////////////////////////////////////////////////////// #define INTERNAL_CATCH_TRANSLATE_EXCEPTION( signature ) \ static std::string INTERNAL_CATCH_UNIQUE_NAME( catch_internal_ExceptionTranslator )( signature ); \ namespace{ Catch::ExceptionTranslatorRegistrar INTERNAL_CATCH_UNIQUE_NAME( catch_internal_ExceptionRegistrar )( &INTERNAL_CATCH_UNIQUE_NAME( catch_internal_ExceptionTranslator ) ); }\ static std::string INTERNAL_CATCH_UNIQUE_NAME( catch_internal_ExceptionTranslator )( signature ) // #included from: internal/catch_approx.hpp #define TWOBLUECUBES_CATCH_APPROX_HPP_INCLUDED #include #include namespace Catch { namespace Detail { class Approx { public: explicit Approx ( double value ) : m_epsilon( std::numeric_limits::epsilon()*100 ), m_scale( 1.0 ), m_value( value ) {} Approx( Approx const& other ) : m_epsilon( other.m_epsilon ), m_scale( other.m_scale ), m_value( other.m_value ) {} static Approx custom() { return Approx( 0 ); } Approx operator()( double value ) { Approx approx( value ); approx.epsilon( m_epsilon ); approx.scale( m_scale ); return approx; } friend bool operator == ( double lhs, Approx const& rhs ) { // Thanks to Richard Harris for his help refining this formula return fabs( lhs - rhs.m_value ) < rhs.m_epsilon * (rhs.m_scale + (std::max)( fabs(lhs), fabs(rhs.m_value) ) ); } friend bool operator == ( Approx const& lhs, double rhs ) { return operator==( rhs, lhs ); } friend bool operator != ( double lhs, Approx const& rhs ) { return !operator==( lhs, rhs ); } friend bool operator != ( Approx const& lhs, double rhs ) { return !operator==( rhs, lhs ); } Approx& epsilon( double newEpsilon ) { m_epsilon = newEpsilon; return *this; } Approx& scale( double newScale ) { m_scale = newScale; return *this; } std::string toString() const { std::ostringstream oss; oss << "Approx( " << Catch::toString( m_value ) << " )"; return oss.str(); } private: double m_epsilon; double m_scale; double m_value; }; } template<> inline std::string toString( Detail::Approx const& value ) { return value.toString(); } } // end namespace Catch // #included from: internal/catch_matchers.hpp #define TWOBLUECUBES_CATCH_MATCHERS_HPP_INCLUDED namespace Catch { namespace Matchers { namespace Impl { template struct Matcher : SharedImpl { typedef ExpressionT ExpressionType; virtual ~Matcher() {} virtual Ptr clone() const = 0; virtual bool match( ExpressionT const& expr ) const = 0; virtual std::string toString() const = 0; }; template struct MatcherImpl : Matcher { virtual Ptr > clone() const { return Ptr >( new DerivedT( static_cast( *this ) ) ); } }; namespace Generic { template class AllOf : public MatcherImpl, ExpressionT> { public: AllOf() {} AllOf( AllOf const& other ) : m_matchers( other.m_matchers ) {} AllOf& add( Matcher const& matcher ) { m_matchers.push_back( matcher.clone() ); return *this; } virtual bool match( ExpressionT const& expr ) const { for( std::size_t i = 0; i < m_matchers.size(); ++i ) if( !m_matchers[i]->match( expr ) ) return false; return true; } virtual std::string toString() const { std::ostringstream oss; oss << "( "; for( std::size_t i = 0; i < m_matchers.size(); ++i ) { if( i != 0 ) oss << " and "; oss << m_matchers[i]->toString(); } oss << " )"; return oss.str(); } private: std::vector > > m_matchers; }; template class AnyOf : public MatcherImpl, ExpressionT> { public: AnyOf() {} AnyOf( AnyOf const& other ) : m_matchers( other.m_matchers ) {} AnyOf& add( Matcher const& matcher ) { m_matchers.push_back( matcher.clone() ); return *this; } virtual bool match( ExpressionT const& expr ) const { for( std::size_t i = 0; i < m_matchers.size(); ++i ) if( m_matchers[i]->match( expr ) ) return true; return false; } virtual std::string toString() const { std::ostringstream oss; oss << "( "; for( std::size_t i = 0; i < m_matchers.size(); ++i ) { if( i != 0 ) oss << " or "; oss << m_matchers[i]->toString(); } oss << " )"; return oss.str(); } private: std::vector > > m_matchers; }; } namespace StdString { inline std::string makeString( std::string const& str ) { return str; } inline std::string makeString( const char* str ) { return str ? std::string( str ) : std::string(); } struct Equals : MatcherImpl { Equals( std::string const& str ) : m_str( str ){} Equals( Equals const& other ) : m_str( other.m_str ){} virtual ~Equals(); virtual bool match( std::string const& expr ) const { return m_str == expr; } virtual std::string toString() const { return "equals: \"" + m_str + "\""; } std::string m_str; }; struct Contains : MatcherImpl { Contains( std::string const& substr ) : m_substr( substr ){} Contains( Contains const& other ) : m_substr( other.m_substr ){} virtual ~Contains(); virtual bool match( std::string const& expr ) const { return expr.find( m_substr ) != std::string::npos; } virtual std::string toString() const { return "contains: \"" + m_substr + "\""; } std::string m_substr; }; struct StartsWith : MatcherImpl { StartsWith( std::string const& substr ) : m_substr( substr ){} StartsWith( StartsWith const& other ) : m_substr( other.m_substr ){} virtual ~StartsWith(); virtual bool match( std::string const& expr ) const { return expr.find( m_substr ) == 0; } virtual std::string toString() const { return "starts with: \"" + m_substr + "\""; } std::string m_substr; }; struct EndsWith : MatcherImpl { EndsWith( std::string const& substr ) : m_substr( substr ){} EndsWith( EndsWith const& other ) : m_substr( other.m_substr ){} virtual ~EndsWith(); virtual bool match( std::string const& expr ) const { return expr.find( m_substr ) == expr.size() - m_substr.size(); } virtual std::string toString() const { return "ends with: \"" + m_substr + "\""; } std::string m_substr; }; } // namespace StdString } // namespace Impl // The following functions create the actual matcher objects. // This allows the types to be inferred template inline Impl::Generic::AllOf AllOf( Impl::Matcher const& m1, Impl::Matcher const& m2 ) { return Impl::Generic::AllOf().add( m1 ).add( m2 ); } template inline Impl::Generic::AllOf AllOf( Impl::Matcher const& m1, Impl::Matcher const& m2, Impl::Matcher const& m3 ) { return Impl::Generic::AllOf().add( m1 ).add( m2 ).add( m3 ); } template inline Impl::Generic::AnyOf AnyOf( Impl::Matcher const& m1, Impl::Matcher const& m2 ) { return Impl::Generic::AnyOf().add( m1 ).add( m2 ); } template inline Impl::Generic::AnyOf AnyOf( Impl::Matcher const& m1, Impl::Matcher const& m2, Impl::Matcher const& m3 ) { return Impl::Generic::AnyOf().add( m1 ).add( m2 ).add( m3 ); } inline Impl::StdString::Equals Equals( std::string const& str ) { return Impl::StdString::Equals( str ); } inline Impl::StdString::Equals Equals( const char* str ) { return Impl::StdString::Equals( Impl::StdString::makeString( str ) ); } inline Impl::StdString::Contains Contains( std::string const& substr ) { return Impl::StdString::Contains( substr ); } inline Impl::StdString::Contains Contains( const char* substr ) { return Impl::StdString::Contains( Impl::StdString::makeString( substr ) ); } inline Impl::StdString::StartsWith StartsWith( std::string const& substr ) { return Impl::StdString::StartsWith( substr ); } inline Impl::StdString::StartsWith StartsWith( const char* substr ) { return Impl::StdString::StartsWith( Impl::StdString::makeString( substr ) ); } inline Impl::StdString::EndsWith EndsWith( std::string const& substr ) { return Impl::StdString::EndsWith( substr ); } inline Impl::StdString::EndsWith EndsWith( const char* substr ) { return Impl::StdString::EndsWith( Impl::StdString::makeString( substr ) ); } } // namespace Matchers using namespace Matchers; } // namespace Catch // These files are included here so the single_include script doesn't put them // in the conditionally compiled sections // #included from: internal/catch_test_case_info.h #define TWOBLUECUBES_CATCH_TEST_CASE_INFO_H_INCLUDED #include #include #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpadded" #endif namespace Catch { struct ITestCase; struct TestCaseInfo { TestCaseInfo( std::string const& _name, std::string const& _className, std::string const& _description, std::set const& _tags, bool _isHidden, SourceLineInfo const& _lineInfo ); TestCaseInfo( TestCaseInfo const& other ); std::string name; std::string className; std::string description; std::set tags; std::string tagsAsString; SourceLineInfo lineInfo; bool isHidden; bool throws; }; class TestCase : protected TestCaseInfo { public: TestCase( ITestCase* testCase, TestCaseInfo const& info ); TestCase( TestCase const& other ); TestCase withName( std::string const& _newName ) const; void invoke() const; TestCaseInfo const& getTestCaseInfo() const; bool isHidden() const; bool throws() const; bool hasTag( std::string const& tag ) const; bool matchesTags( std::string const& tagPattern ) const; std::set const& getTags() const; void swap( TestCase& other ); bool operator == ( TestCase const& other ) const; bool operator < ( TestCase const& other ) const; TestCase& operator = ( TestCase const& other ); private: Ptr test; }; TestCase makeTestCase( ITestCase* testCase, std::string const& className, std::string const& name, std::string const& description, SourceLineInfo const& lineInfo ); } #ifdef __clang__ #pragma clang diagnostic pop #endif // #included from: internal/catch_interfaces_runner.h #define TWOBLUECUBES_CATCH_INTERFACES_RUNNER_H_INCLUDED namespace Catch { class TestCase; struct IRunner { virtual ~IRunner(); }; } #ifdef __OBJC__ // #included from: internal/catch_objc.hpp #define TWOBLUECUBES_CATCH_OBJC_HPP_INCLUDED #import #include // NB. Any general catch headers included here must be included // in catch.hpp first to make sure they are included by the single // header for non obj-usage /////////////////////////////////////////////////////////////////////////////// // This protocol is really only here for (self) documenting purposes, since // all its methods are optional. @protocol OcFixture @optional -(void) setUp; -(void) tearDown; @end namespace Catch { class OcMethod : public SharedImpl { public: OcMethod( Class cls, SEL sel ) : m_cls( cls ), m_sel( sel ) {} virtual void invoke() const { id obj = [[m_cls alloc] init]; performOptionalSelector( obj, @selector(setUp) ); performOptionalSelector( obj, m_sel ); performOptionalSelector( obj, @selector(tearDown) ); arcSafeRelease( obj ); } private: virtual ~OcMethod() {} Class m_cls; SEL m_sel; }; namespace Detail{ inline std::string getAnnotation( Class cls, std::string const& annotationName, std::string const& testCaseName ) { NSString* selStr = [[NSString alloc] initWithFormat:@"Catch_%s_%s", annotationName.c_str(), testCaseName.c_str()]; SEL sel = NSSelectorFromString( selStr ); arcSafeRelease( selStr ); id value = performOptionalSelector( cls, sel ); if( value ) return [(NSString*)value UTF8String]; return ""; } } inline size_t registerTestMethods() { size_t noTestMethods = 0; int noClasses = objc_getClassList( NULL, 0 ); Class* classes = (CATCH_UNSAFE_UNRETAINED Class *)malloc( sizeof(Class) * noClasses); objc_getClassList( classes, noClasses ); for( int c = 0; c < noClasses; c++ ) { Class cls = classes[c]; { u_int count; Method* methods = class_copyMethodList( cls, &count ); for( u_int m = 0; m < count ; m++ ) { SEL selector = method_getName(methods[m]); std::string methodName = sel_getName(selector); if( startsWith( methodName, "Catch_TestCase_" ) ) { std::string testCaseName = methodName.substr( 15 ); std::string name = Detail::getAnnotation( cls, "Name", testCaseName ); std::string desc = Detail::getAnnotation( cls, "Description", testCaseName ); const char* className = class_getName( cls ); getMutableRegistryHub().registerTest( makeTestCase( new OcMethod( cls, selector ), className, name.c_str(), desc.c_str(), SourceLineInfo() ) ); noTestMethods++; } } free(methods); } } return noTestMethods; } namespace Matchers { namespace Impl { namespace NSStringMatchers { template struct StringHolder : MatcherImpl{ StringHolder( NSString* substr ) : m_substr( [substr copy] ){} StringHolder( StringHolder const& other ) : m_substr( [other.m_substr copy] ){} StringHolder() { arcSafeRelease( m_substr ); } NSString* m_substr; }; struct Equals : StringHolder { Equals( NSString* substr ) : StringHolder( substr ){} virtual bool match( ExpressionType const& str ) const { return (str != nil || m_substr == nil ) && [str isEqualToString:m_substr]; } virtual std::string toString() const { return "equals string: \"" + Catch::toString( m_substr ) + "\""; } }; struct Contains : StringHolder { Contains( NSString* substr ) : StringHolder( substr ){} virtual bool match( ExpressionType const& str ) const { return (str != nil || m_substr == nil ) && [str rangeOfString:m_substr].location != NSNotFound; } virtual std::string toString() const { return "contains string: \"" + Catch::toString( m_substr ) + "\""; } }; struct StartsWith : StringHolder { StartsWith( NSString* substr ) : StringHolder( substr ){} virtual bool match( ExpressionType const& str ) const { return (str != nil || m_substr == nil ) && [str rangeOfString:m_substr].location == 0; } virtual std::string toString() const { return "starts with: \"" + Catch::toString( m_substr ) + "\""; } }; struct EndsWith : StringHolder { EndsWith( NSString* substr ) : StringHolder( substr ){} virtual bool match( ExpressionType const& str ) const { return (str != nil || m_substr == nil ) && [str rangeOfString:m_substr].location == [str length] - [m_substr length]; } virtual std::string toString() const { return "ends with: \"" + Catch::toString( m_substr ) + "\""; } }; } // namespace NSStringMatchers } // namespace Impl inline Impl::NSStringMatchers::Equals Equals( NSString* substr ){ return Impl::NSStringMatchers::Equals( substr ); } inline Impl::NSStringMatchers::Contains Contains( NSString* substr ){ return Impl::NSStringMatchers::Contains( substr ); } inline Impl::NSStringMatchers::StartsWith StartsWith( NSString* substr ){ return Impl::NSStringMatchers::StartsWith( substr ); } inline Impl::NSStringMatchers::EndsWith EndsWith( NSString* substr ){ return Impl::NSStringMatchers::EndsWith( substr ); } } // namespace Matchers using namespace Matchers; } // namespace Catch /////////////////////////////////////////////////////////////////////////////// #define OC_TEST_CASE( name, desc )\ +(NSString*) INTERNAL_CATCH_UNIQUE_NAME( Catch_Name_test ) \ {\ return @ name; \ }\ +(NSString*) INTERNAL_CATCH_UNIQUE_NAME( Catch_Description_test ) \ { \ return @ desc; \ } \ -(void) INTERNAL_CATCH_UNIQUE_NAME( Catch_TestCase_test ) #endif #ifdef CATCH_CONFIG_RUNNER // #included from: internal/catch_impl.hpp #define TWOBLUECUBES_CATCH_IMPL_HPP_INCLUDED // Collect all the implementation files together here // These are the equivalent of what would usually be cpp files #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wweak-vtables" #endif // #included from: catch_runner.hpp #define TWOBLUECUBES_CATCH_RUNNER_HPP_INCLUDED // #included from: internal/catch_commandline.hpp #define TWOBLUECUBES_CATCH_COMMANDLINE_HPP_INCLUDED // #included from: catch_config.hpp #define TWOBLUECUBES_CATCH_CONFIG_HPP_INCLUDED // #included from: catch_test_spec.h #define TWOBLUECUBES_CATCH_TEST_SPEC_H_INCLUDED // #included from: catch_tags.h #define TWOBLUECUBES_CATCH_TAGS_H_INCLUDED #include #include #include #include #ifdef __clang__ #pragma clang diagnostic ignored "-Wpadded" #endif namespace Catch { class TagParser { public: virtual ~TagParser(); void parse( std::string const& str ); protected: virtual void acceptTag( std::string const& tag ) = 0; virtual void acceptChar( char c ) = 0; virtual void endParse() {} private: }; class TagExtracter : public TagParser { public: TagExtracter( std::set& tags ); virtual ~TagExtracter(); void parse( std::string& description ); private: virtual void acceptTag( std::string const& tag ); virtual void acceptChar( char c ); TagExtracter& operator=(TagExtracter const&); std::set& m_tags; std::string m_remainder; }; class Tag { public: Tag(); Tag( std::string const& name, bool isNegated ); std::string getName() const; bool isNegated() const; bool operator ! () const; private: std::string m_name; bool m_isNegated; }; class TagSet { typedef std::map TagMap; public: void add( Tag const& tag ); bool empty() const; bool matches( std::set const& tags ) const; private: TagMap m_tags; }; class TagExpression { public: bool matches( std::set const& tags ) const; private: friend class TagExpressionParser; std::vector m_tagSets; }; class TagExpressionParser : public TagParser { public: TagExpressionParser( TagExpression& exp ); ~TagExpressionParser(); private: virtual void acceptTag( std::string const& tag ); virtual void acceptChar( char c ); virtual void endParse(); TagExpressionParser& operator=(TagExpressionParser const&); bool m_isNegated; TagSet m_currentTagSet; TagExpression& m_exp; }; } // end namespace Catch #include #include namespace Catch { class TestCase; struct IfFilterMatches{ enum DoWhat { AutoDetectBehaviour, IncludeTests, ExcludeTests }; }; class TestCaseFilter { enum WildcardPosition { NoWildcard = 0, WildcardAtStart = 1, WildcardAtEnd = 2, WildcardAtBothEnds = WildcardAtStart | WildcardAtEnd }; public: TestCaseFilter( std::string const& testSpec, IfFilterMatches::DoWhat matchBehaviour = IfFilterMatches::AutoDetectBehaviour ); IfFilterMatches::DoWhat getFilterType() const; bool shouldInclude( TestCase const& testCase ) const; private: bool isMatch( TestCase const& testCase ) const; std::string m_stringToMatch; IfFilterMatches::DoWhat m_filterType; WildcardPosition m_wildcardPosition; }; class TestCaseFilters { public: TestCaseFilters( std::string const& name ); std::string getName() const; void addFilter( TestCaseFilter const& filter ); void addTags( std::string const& tagPattern ); bool shouldInclude( TestCase const& testCase ) const; private: std::vector m_tagExpressions; std::vector m_inclusionFilters; std::vector m_exclusionFilters; std::string m_name; }; } // #included from: catch_stream.h #define TWOBLUECUBES_CATCH_STREAM_H_INCLUDED #include #ifdef __clang__ #pragma clang diagnostic ignored "-Wpadded" #endif namespace Catch { class Stream { public: Stream(); Stream( std::streambuf* _streamBuf, bool _isOwned ); void release(); std::streambuf* streamBuf; private: bool isOwned; }; } #include #include #include #include #ifndef CATCH_CONFIG_CONSOLE_WIDTH #define CATCH_CONFIG_CONSOLE_WIDTH 80 #endif namespace Catch { struct ConfigData { ConfigData() : listTests( false ), listTags( false ), listReporters( false ), listTestNamesOnly( false ), showSuccessfulTests( false ), shouldDebugBreak( false ), noThrow( false ), showHelp( false ), showInvisibles( false ), abortAfter( -1 ), verbosity( Verbosity::Normal ), warnings( WarnAbout::Nothing ), showDurations( ShowDurations::DefaultForReporter ) {} bool listTests; bool listTags; bool listReporters; bool listTestNamesOnly; bool showSuccessfulTests; bool shouldDebugBreak; bool noThrow; bool showHelp; bool showInvisibles; int abortAfter; Verbosity::Level verbosity; WarnAbout::What warnings; ShowDurations::OrNot showDurations; std::string reporterName; std::string outputFilename; std::string name; std::string processName; std::vector testsOrTags; }; class Config : public SharedImpl { private: Config( Config const& other ); Config& operator = ( Config const& other ); virtual void dummy(); public: Config() : m_os( std::cout.rdbuf() ) {} Config( ConfigData const& data ) : m_data( data ), m_os( std::cout.rdbuf() ) { if( !data.testsOrTags.empty() ) { std::string groupName; for( std::size_t i = 0; i < data.testsOrTags.size(); ++i ) { if( i != 0 ) groupName += " "; groupName += data.testsOrTags[i]; } TestCaseFilters filters( groupName ); for( std::size_t i = 0; i < data.testsOrTags.size(); ++i ) { std::string filter = data.testsOrTags[i]; if( startsWith( filter, "[" ) || startsWith( filter, "~[" ) ) filters.addTags( filter ); else filters.addFilter( TestCaseFilter( filter ) ); } m_filterSets.push_back( filters ); } } virtual ~Config() { m_os.rdbuf( std::cout.rdbuf() ); m_stream.release(); } void setFilename( std::string const& filename ) { m_data.outputFilename = filename; } std::string const& getFilename() const { return m_data.outputFilename ; } bool listTests() const { return m_data.listTests; } bool listTestNamesOnly() const { return m_data.listTestNamesOnly; } bool listTags() const { return m_data.listTags; } bool listReporters() const { return m_data.listReporters; } std::string getProcessName() const { return m_data.processName; } bool shouldDebugBreak() const { return m_data.shouldDebugBreak; } void setStreamBuf( std::streambuf* buf ) { m_os.rdbuf( buf ? buf : std::cout.rdbuf() ); } void useStream( std::string const& streamName ) { Stream stream = createStream( streamName ); setStreamBuf( stream.streamBuf ); m_stream.release(); m_stream = stream; } std::string getReporterName() const { return m_data.reporterName; } void addTestSpec( std::string const& testSpec ) { TestCaseFilters filters( testSpec ); filters.addFilter( TestCaseFilter( testSpec ) ); m_filterSets.push_back( filters ); } int abortAfter() const { return m_data.abortAfter; } std::vector const& filters() const { return m_filterSets; } bool showHelp() const { return m_data.showHelp; } bool showInvisibles() const { return m_data.showInvisibles; } // IConfig interface virtual bool allowThrows() const { return !m_data.noThrow; } virtual std::ostream& stream() const { return m_os; } virtual std::string name() const { return m_data.name.empty() ? m_data.processName : m_data.name; } virtual bool includeSuccessfulResults() const { return m_data.showSuccessfulTests; } virtual bool warnAboutMissingAssertions() const { return m_data.warnings & WarnAbout::NoAssertions; } virtual ShowDurations::OrNot showDurations() const { return m_data.showDurations; } private: ConfigData m_data; Stream m_stream; mutable std::ostream m_os; std::vector m_filterSets; }; } // end namespace Catch // #included from: catch_clara.h #define TWOBLUECUBES_CATCH_CLARA_H_INCLUDED // Use Catch's value for console width (store Clara's off to the side, if present) #ifdef CLARA_CONFIG_CONSOLE_WIDTH #define CATCH_TEMP_CLARA_CONFIG_CONSOLE_WIDTH CLARA_CONFIG_CONSOLE_WIDTH #undef CLARA_CONFIG_CONSOLE_WIDTH #endif #define CLARA_CONFIG_CONSOLE_WIDTH CATCH_CONFIG_CONSOLE_WIDTH // Declare Clara inside the Catch namespace #define STITCH_CLARA_OPEN_NAMESPACE namespace Catch { // #included from: ../external/clara.h // Only use header guard if we are not using an outer namespace #if !defined(TWOBLUECUBES_CLARA_H_INCLUDED) || defined(STITCH_CLARA_OPEN_NAMESPACE) #ifndef STITCH_CLARA_OPEN_NAMESPACE #define TWOBLUECUBES_CLARA_H_INCLUDED #define STITCH_CLARA_OPEN_NAMESPACE #define STITCH_CLARA_CLOSE_NAMESPACE #else #define STITCH_CLARA_CLOSE_NAMESPACE } #endif #define STITCH_TBC_TEXT_FORMAT_OPEN_NAMESPACE STITCH_CLARA_OPEN_NAMESPACE // ----------- #included from tbc_text_format.h ----------- // Only use header guard if we are not using an outer namespace #if !defined(TBC_TEXT_FORMAT_H_INCLUDED) || defined(STITCH_TBC_TEXT_FORMAT_OUTER_NAMESPACE) #ifndef STITCH_TBC_TEXT_FORMAT_OUTER_NAMESPACE #define TBC_TEXT_FORMAT_H_INCLUDED #endif #include #include #include // Use optional outer namespace #ifdef STITCH_TBC_TEXT_FORMAT_OUTER_NAMESPACE namespace STITCH_TBC_TEXT_FORMAT_OUTER_NAMESPACE { #endif namespace Tbc { #ifdef TBC_TEXT_FORMAT_CONSOLE_WIDTH const unsigned int consoleWidth = TBC_TEXT_FORMAT_CONSOLE_WIDTH; #else const unsigned int consoleWidth = 80; #endif struct TextAttributes { TextAttributes() : initialIndent( std::string::npos ), indent( 0 ), width( consoleWidth-1 ), tabChar( '\t' ) {} TextAttributes& setInitialIndent( std::size_t _value ) { initialIndent = _value; return *this; } TextAttributes& setIndent( std::size_t _value ) { indent = _value; return *this; } TextAttributes& setWidth( std::size_t _value ) { width = _value; return *this; } TextAttributes& setTabChar( char _value ) { tabChar = _value; return *this; } std::size_t initialIndent; // indent of first line, or npos std::size_t indent; // indent of subsequent lines, or all if initialIndent is npos std::size_t width; // maximum width of text, including indent. Longer text will wrap char tabChar; // If this char is seen the indent is changed to current pos }; class Text { public: Text( std::string const& _str, TextAttributes const& _attr = TextAttributes() ) : attr( _attr ) { std::string wrappableChars = " [({.,/|\\-"; std::size_t indent = _attr.initialIndent != std::string::npos ? _attr.initialIndent : _attr.indent; std::string remainder = _str; while( !remainder.empty() ) { if( lines.size() >= 1000 ) { lines.push_back( "... message truncated due to excessive size" ); return; } std::size_t tabPos = std::string::npos; std::size_t width = (std::min)( remainder.size(), _attr.width - indent ); std::size_t pos = remainder.find_first_of( '\n' ); if( pos <= width ) { width = pos; } pos = remainder.find_last_of( _attr.tabChar, width ); if( pos != std::string::npos ) { tabPos = pos; if( remainder[width] == '\n' ) width--; remainder = remainder.substr( 0, tabPos ) + remainder.substr( tabPos+1 ); } if( width == remainder.size() ) { spliceLine( indent, remainder, width ); } else if( remainder[width] == '\n' ) { spliceLine( indent, remainder, width ); if( width <= 1 || remainder.size() != 1 ) remainder = remainder.substr( 1 ); indent = _attr.indent; } else { pos = remainder.find_last_of( wrappableChars, width ); if( pos != std::string::npos && pos > 0 ) { spliceLine( indent, remainder, pos ); if( remainder[0] == ' ' ) remainder = remainder.substr( 1 ); } else { spliceLine( indent, remainder, width-1 ); lines.back() += "-"; } if( lines.size() == 1 ) indent = _attr.indent; if( tabPos != std::string::npos ) indent += tabPos; } } } void spliceLine( std::size_t _indent, std::string& _remainder, std::size_t _pos ) { lines.push_back( std::string( _indent, ' ' ) + _remainder.substr( 0, _pos ) ); _remainder = _remainder.substr( _pos ); } typedef std::vector::const_iterator const_iterator; const_iterator begin() const { return lines.begin(); } const_iterator end() const { return lines.end(); } std::string const& last() const { return lines.back(); } std::size_t size() const { return lines.size(); } std::string const& operator[]( std::size_t _index ) const { return lines[_index]; } std::string toString() const { std::ostringstream oss; oss << *this; return oss.str(); } inline friend std::ostream& operator << ( std::ostream& _stream, Text const& _text ) { for( Text::const_iterator it = _text.begin(), itEnd = _text.end(); it != itEnd; ++it ) { if( it != _text.begin() ) _stream << "\n"; _stream << *it; } return _stream; } private: std::string str; TextAttributes attr; std::vector lines; }; } // end namespace Tbc #ifdef STITCH_TBC_TEXT_FORMAT_OUTER_NAMESPACE } // end outer namespace #endif #endif // TBC_TEXT_FORMAT_H_INCLUDED // ----------- end of #include from tbc_text_format.h ----------- // ........... back in /Users/philnash/Dev/OSS/Clara/srcs/clara.h #undef STITCH_TBC_TEXT_FORMAT_OPEN_NAMESPACE #include #include #include #include // Use optional outer namespace #ifdef STITCH_CLARA_OPEN_NAMESPACE STITCH_CLARA_OPEN_NAMESPACE #endif namespace Clara { struct UnpositionalTag {}; extern UnpositionalTag _; #ifdef CLARA_CONFIG_MAIN UnpositionalTag _; #endif namespace Detail { #ifdef CLARA_CONSOLE_WIDTH const unsigned int consoleWidth = CLARA_CONFIG_CONSOLE_WIDTH; #else const unsigned int consoleWidth = 80; #endif using namespace Tbc; inline bool startsWith( std::string const& str, std::string const& prefix ) { return str.size() >= prefix.size() && str.substr( 0, prefix.size() ) == prefix; } template struct RemoveConstRef{ typedef T type; }; template struct RemoveConstRef{ typedef T type; }; template struct RemoveConstRef{ typedef T type; }; template struct RemoveConstRef{ typedef T type; }; template struct IsBool { static const bool value = false; }; template<> struct IsBool { static const bool value = true; }; template void convertInto( std::string const& _source, T& _dest ) { std::stringstream ss; ss << _source; ss >> _dest; if( ss.fail() ) throw std::runtime_error( "Unable to convert " + _source + " to destination type" ); } inline void convertInto( std::string const& _source, std::string& _dest ) { _dest = _source; } inline void convertInto( std::string const& _source, bool& _dest ) { std::string sourceLC = _source; std::transform( sourceLC.begin(), sourceLC.end(), sourceLC.begin(), ::tolower ); if( sourceLC == "y" || sourceLC == "1" || sourceLC == "true" || sourceLC == "yes" || sourceLC == "on" ) _dest = true; else if( sourceLC == "n" || sourceLC == "0" || sourceLC == "false" || sourceLC == "no" || sourceLC == "off" ) _dest = false; else throw std::runtime_error( "Expected a boolean value but did not recognise:\n '" + _source + "'" ); } inline void convertInto( bool _source, bool& _dest ) { _dest = _source; } template inline void convertInto( bool, T& ) { throw std::runtime_error( "Invalid conversion" ); } template struct IArgFunction { virtual ~IArgFunction() {} # ifdef CATCH_CPP11_OR_GREATER IArgFunction() = default; IArgFunction( IArgFunction const& ) = default; # endif virtual void set( ConfigT& config, std::string const& value ) const = 0; virtual void setFlag( ConfigT& config ) const = 0; virtual bool takesArg() const = 0; virtual IArgFunction* clone() const = 0; }; template class BoundArgFunction { public: BoundArgFunction() : functionObj( NULL ) {} BoundArgFunction( IArgFunction* _functionObj ) : functionObj( _functionObj ) {} BoundArgFunction( BoundArgFunction const& other ) : functionObj( other.functionObj ? other.functionObj->clone() : NULL ) {} BoundArgFunction& operator = ( BoundArgFunction const& other ) { IArgFunction* newFunctionObj = other.functionObj ? other.functionObj->clone() : NULL; delete functionObj; functionObj = newFunctionObj; return *this; } ~BoundArgFunction() { delete functionObj; } void set( ConfigT& config, std::string const& value ) const { functionObj->set( config, value ); } void setFlag( ConfigT& config ) const { functionObj->setFlag( config ); } bool takesArg() const { return functionObj->takesArg(); } bool isSet() const { return functionObj != NULL; } private: IArgFunction* functionObj; }; template struct NullBinder : IArgFunction{ virtual void set( C&, std::string const& ) const {} virtual void setFlag( C& ) const {} virtual bool takesArg() const { return true; } virtual IArgFunction* clone() const { return new NullBinder( *this ); } }; template struct BoundDataMember : IArgFunction{ BoundDataMember( M C::* _member ) : member( _member ) {} virtual void set( C& p, std::string const& stringValue ) const { convertInto( stringValue, p.*member ); } virtual void setFlag( C& p ) const { convertInto( true, p.*member ); } virtual bool takesArg() const { return !IsBool::value; } virtual IArgFunction* clone() const { return new BoundDataMember( *this ); } M C::* member; }; template struct BoundUnaryMethod : IArgFunction{ BoundUnaryMethod( void (C::*_member)( M ) ) : member( _member ) {} virtual void set( C& p, std::string const& stringValue ) const { typename RemoveConstRef::type value; convertInto( stringValue, value ); (p.*member)( value ); } virtual void setFlag( C& p ) const { typename RemoveConstRef::type value; convertInto( true, value ); (p.*member)( value ); } virtual bool takesArg() const { return !IsBool::value; } virtual IArgFunction* clone() const { return new BoundUnaryMethod( *this ); } void (C::*member)( M ); }; template struct BoundNullaryMethod : IArgFunction{ BoundNullaryMethod( void (C::*_member)() ) : member( _member ) {} virtual void set( C& p, std::string const& stringValue ) const { bool value; convertInto( stringValue, value ); if( value ) (p.*member)(); } virtual void setFlag( C& p ) const { (p.*member)(); } virtual bool takesArg() const { return false; } virtual IArgFunction* clone() const { return new BoundNullaryMethod( *this ); } void (C::*member)(); }; template struct BoundUnaryFunction : IArgFunction{ BoundUnaryFunction( void (*_function)( C& ) ) : function( _function ) {} virtual void set( C& obj, std::string const& stringValue ) const { bool value; convertInto( stringValue, value ); if( value ) function( obj ); } virtual void setFlag( C& p ) const { function( p ); } virtual bool takesArg() const { return false; } virtual IArgFunction* clone() const { return new BoundUnaryFunction( *this ); } void (*function)( C& ); }; template struct BoundBinaryFunction : IArgFunction{ BoundBinaryFunction( void (*_function)( C&, T ) ) : function( _function ) {} virtual void set( C& obj, std::string const& stringValue ) const { typename RemoveConstRef::type value; convertInto( stringValue, value ); function( obj, value ); } virtual void setFlag( C& obj ) const { typename RemoveConstRef::type value; convertInto( true, value ); function( obj, value ); } virtual bool takesArg() const { return !IsBool::value; } virtual IArgFunction* clone() const { return new BoundBinaryFunction( *this ); } void (*function)( C&, T ); }; } // namespace Detail struct Parser { Parser() : separators( " \t=:" ) {} struct Token { enum Type { Positional, ShortOpt, LongOpt }; Token( Type _type, std::string const& _data ) : type( _type ), data( _data ) {} Type type; std::string data; }; void parseIntoTokens( int argc, char const * const * argv, std::vector& tokens ) const { const std::string doubleDash = "--"; for( int i = 1; i < argc && argv[i] != doubleDash; ++i ) parseIntoTokens( argv[i] , tokens); } void parseIntoTokens( std::string arg, std::vector& tokens ) const { while( !arg.empty() ) { Parser::Token token( Parser::Token::Positional, arg ); arg = ""; if( token.data[0] == '-' ) { if( token.data.size() > 1 && token.data[1] == '-' ) { token = Parser::Token( Parser::Token::LongOpt, token.data.substr( 2 ) ); } else { token = Parser::Token( Parser::Token::ShortOpt, token.data.substr( 1 ) ); if( token.data.size() > 1 && separators.find( token.data[1] ) == std::string::npos ) { arg = "-" + token.data.substr( 1 ); token.data = token.data.substr( 0, 1 ); } } } if( token.type != Parser::Token::Positional ) { std::size_t pos = token.data.find_first_of( separators ); if( pos != std::string::npos ) { arg = token.data.substr( pos+1 ); token.data = token.data.substr( 0, pos ); } } tokens.push_back( token ); } } std::string separators; }; template struct CommonArgProperties { CommonArgProperties() {} CommonArgProperties( Detail::BoundArgFunction const& _boundField ) : boundField( _boundField ) {} Detail::BoundArgFunction boundField; std::string description; std::string detail; std::string placeholder; // Only value if boundField takes an arg bool takesArg() const { return !placeholder.empty(); } void validate() const { if( !boundField.isSet() ) throw std::logic_error( "option not bound" ); } }; struct OptionArgProperties { std::vector shortNames; std::string longName; bool hasShortName( std::string const& shortName ) const { return std::find( shortNames.begin(), shortNames.end(), shortName ) != shortNames.end(); } bool hasLongName( std::string const& _longName ) const { return _longName == longName; } }; struct PositionalArgProperties { PositionalArgProperties() : position( -1 ) {} int position; // -1 means non-positional (floating) bool isFixedPositional() const { return position != -1; } }; template class CommandLine { struct Arg : CommonArgProperties, OptionArgProperties, PositionalArgProperties { Arg() {} Arg( Detail::BoundArgFunction const& _boundField ) : CommonArgProperties( _boundField ) {} using CommonArgProperties::placeholder; // !TBD std::string dbgName() const { if( !longName.empty() ) return "--" + longName; if( !shortNames.empty() ) return "-" + shortNames[0]; return "positional args"; } std::string commands() const { std::ostringstream oss; bool first = true; std::vector::const_iterator it = shortNames.begin(), itEnd = shortNames.end(); for(; it != itEnd; ++it ) { if( first ) first = false; else oss << ", "; oss << "-" << *it; } if( !longName.empty() ) { if( !first ) oss << ", "; oss << "--" << longName; } if( !placeholder.empty() ) oss << " <" << placeholder << ">"; return oss.str(); } }; // NOTE: std::auto_ptr is deprecated in c++11/c++0x #if defined(__cplusplus) && __cplusplus > 199711L typedef std::unique_ptr ArgAutoPtr; #else typedef std::auto_ptr ArgAutoPtr; #endif friend void addOptName( Arg& arg, std::string const& optName ) { if( optName.empty() ) return; if( Detail::startsWith( optName, "--" ) ) { if( !arg.longName.empty() ) throw std::logic_error( "Only one long opt may be specified. '" + arg.longName + "' already specified, now attempting to add '" + optName + "'" ); arg.longName = optName.substr( 2 ); } else if( Detail::startsWith( optName, "-" ) ) arg.shortNames.push_back( optName.substr( 1 ) ); else throw std::logic_error( "option must begin with - or --. Option was: '" + optName + "'" ); } friend void setPositionalArg( Arg& arg, int position ) { arg.position = position; } class ArgBuilder { public: ArgBuilder( Arg* arg ) : m_arg( arg ) {} // Bind a non-boolean data member (requires placeholder string) template void bind( M C::* field, std::string const& placeholder ) { m_arg->boundField = new Detail::BoundDataMember( field ); m_arg->placeholder = placeholder; } // Bind a boolean data member (no placeholder required) template void bind( bool C::* field ) { m_arg->boundField = new Detail::BoundDataMember( field ); } // Bind a method taking a single, non-boolean argument (requires a placeholder string) template void bind( void (C::* unaryMethod)( M ), std::string const& placeholder ) { m_arg->boundField = new Detail::BoundUnaryMethod( unaryMethod ); m_arg->placeholder = placeholder; } // Bind a method taking a single, boolean argument (no placeholder string required) template void bind( void (C::* unaryMethod)( bool ) ) { m_arg->boundField = new Detail::BoundUnaryMethod( unaryMethod ); } // Bind a method that takes no arguments (will be called if opt is present) template void bind( void (C::* nullaryMethod)() ) { m_arg->boundField = new Detail::BoundNullaryMethod( nullaryMethod ); } // Bind a free function taking a single argument - the object to operate on (no placeholder string required) template void bind( void (* unaryFunction)( C& ) ) { m_arg->boundField = new Detail::BoundUnaryFunction( unaryFunction ); } // Bind a free function taking a single argument - the object to operate on (requires a placeholder string) template void bind( void (* binaryFunction)( C&, T ), std::string const& placeholder ) { m_arg->boundField = new Detail::BoundBinaryFunction( binaryFunction ); m_arg->placeholder = placeholder; } ArgBuilder& describe( std::string const& description ) { m_arg->description = description; return *this; } ArgBuilder& detail( std::string const& detail ) { m_arg->detail = detail; return *this; } protected: Arg* m_arg; }; class OptBuilder : public ArgBuilder { public: OptBuilder( Arg* arg ) : ArgBuilder( arg ) {} OptBuilder( OptBuilder& other ) : ArgBuilder( other ) {} OptBuilder& operator[]( std::string const& optName ) { addOptName( *ArgBuilder::m_arg, optName ); return *this; } }; public: CommandLine() : m_boundProcessName( new Detail::NullBinder() ), m_highestSpecifiedArgPosition( 0 ), m_throwOnUnrecognisedTokens( false ) {} CommandLine( CommandLine const& other ) : m_boundProcessName( other.m_boundProcessName ), m_options ( other.m_options ), m_positionalArgs( other.m_positionalArgs ), m_highestSpecifiedArgPosition( other.m_highestSpecifiedArgPosition ), m_throwOnUnrecognisedTokens( other.m_throwOnUnrecognisedTokens ) { if( other.m_floatingArg.get() ) m_floatingArg = ArgAutoPtr( new Arg( *other.m_floatingArg ) ); } CommandLine& setThrowOnUnrecognisedTokens( bool shouldThrow = true ) { m_throwOnUnrecognisedTokens = shouldThrow; return *this; } OptBuilder operator[]( std::string const& optName ) { m_options.push_back( Arg() ); addOptName( m_options.back(), optName ); OptBuilder builder( &m_options.back() ); return builder; } ArgBuilder operator[]( int position ) { m_positionalArgs.insert( std::make_pair( position, Arg() ) ); if( position > m_highestSpecifiedArgPosition ) m_highestSpecifiedArgPosition = position; setPositionalArg( m_positionalArgs[position], position ); ArgBuilder builder( &m_positionalArgs[position] ); return builder; } // Invoke this with the _ instance ArgBuilder operator[]( UnpositionalTag ) { if( m_floatingArg.get() ) throw std::logic_error( "Only one unpositional argument can be added" ); m_floatingArg = ArgAutoPtr( new Arg() ); ArgBuilder builder( m_floatingArg.get() ); return builder; } template void bindProcessName( M C::* field ) { m_boundProcessName = new Detail::BoundDataMember( field ); } template void bindProcessName( void (C::*_unaryMethod)( M ) ) { m_boundProcessName = new Detail::BoundUnaryMethod( _unaryMethod ); } void optUsage( std::ostream& os, std::size_t indent = 0, std::size_t width = Detail::consoleWidth ) const { typename std::vector::const_iterator itBegin = m_options.begin(), itEnd = m_options.end(), it; std::size_t maxWidth = 0; for( it = itBegin; it != itEnd; ++it ) maxWidth = (std::max)( maxWidth, it->commands().size() ); for( it = itBegin; it != itEnd; ++it ) { Detail::Text usage( it->commands(), Detail::TextAttributes() .setWidth( maxWidth+indent ) .setIndent( indent ) ); Detail::Text desc( it->description, Detail::TextAttributes() .setWidth( width - maxWidth - 3 ) ); for( std::size_t i = 0; i < (std::max)( usage.size(), desc.size() ); ++i ) { std::string usageCol = i < usage.size() ? usage[i] : ""; os << usageCol; if( i < desc.size() && !desc[i].empty() ) os << std::string( indent + 2 + maxWidth - usageCol.size(), ' ' ) << desc[i]; os << "\n"; } } } std::string optUsage() const { std::ostringstream oss; optUsage( oss ); return oss.str(); } void argSynopsis( std::ostream& os ) const { for( int i = 1; i <= m_highestSpecifiedArgPosition; ++i ) { if( i > 1 ) os << " "; typename std::map::const_iterator it = m_positionalArgs.find( i ); if( it != m_positionalArgs.end() ) os << "<" << it->second.placeholder << ">"; else if( m_floatingArg.get() ) os << "<" << m_floatingArg->placeholder << ">"; else throw std::logic_error( "non consecutive positional arguments with no floating args" ); } // !TBD No indication of mandatory args if( m_floatingArg.get() ) { if( m_highestSpecifiedArgPosition > 1 ) os << " "; os << "[<" << m_floatingArg->placeholder << "> ...]"; } } std::string argSynopsis() const { std::ostringstream oss; argSynopsis( oss ); return oss.str(); } void usage( std::ostream& os, std::string const& procName ) const { validate(); os << "usage:\n " << procName << " "; argSynopsis( os ); if( !m_options.empty() ) { os << " [options]\n\nwhere options are: \n"; optUsage( os, 2 ); } os << "\n"; } std::string usage( std::string const& procName ) const { std::ostringstream oss; usage( oss, procName ); return oss.str(); } ConfigT parse( int argc, char const * const * argv ) const { ConfigT config; parseInto( argc, argv, config ); return config; } std::vector parseInto( int argc, char const * const * argv, ConfigT& config ) const { std::string processName = argv[0]; std::size_t lastSlash = processName.find_last_of( "/\\" ); if( lastSlash != std::string::npos ) processName = processName.substr( lastSlash+1 ); m_boundProcessName.set( config, processName ); std::vector tokens; Parser parser; parser.parseIntoTokens( argc, argv, tokens ); return populate( tokens, config ); } std::vector populate( std::vector const& tokens, ConfigT& config ) const { validate(); std::vector unusedTokens = populateOptions( tokens, config ); unusedTokens = populateFixedArgs( unusedTokens, config ); unusedTokens = populateFloatingArgs( unusedTokens, config ); return unusedTokens; } std::vector populateOptions( std::vector const& tokens, ConfigT& config ) const { std::vector unusedTokens; std::vector errors; for( std::size_t i = 0; i < tokens.size(); ++i ) { Parser::Token const& token = tokens[i]; typename std::vector::const_iterator it = m_options.begin(), itEnd = m_options.end(); for(; it != itEnd; ++it ) { Arg const& arg = *it; try { if( ( token.type == Parser::Token::ShortOpt && arg.hasShortName( token.data ) ) || ( token.type == Parser::Token::LongOpt && arg.hasLongName( token.data ) ) ) { if( arg.takesArg() ) { if( i == tokens.size()-1 || tokens[i+1].type != Parser::Token::Positional ) errors.push_back( "Expected argument to option: " + token.data ); else arg.boundField.set( config, tokens[++i].data ); } else { arg.boundField.setFlag( config ); } break; } } catch( std::exception& ex ) { errors.push_back( std::string( ex.what() ) + "\n- while parsing: (" + arg.commands() + ")" ); } } if( it == itEnd ) { if( token.type == Parser::Token::Positional || !m_throwOnUnrecognisedTokens ) unusedTokens.push_back( token ); else if( m_throwOnUnrecognisedTokens ) errors.push_back( "unrecognised option: " + token.data ); } } if( !errors.empty() ) { std::ostringstream oss; for( std::vector::const_iterator it = errors.begin(), itEnd = errors.end(); it != itEnd; ++it ) { if( it != errors.begin() ) oss << "\n"; oss << *it; } throw std::runtime_error( oss.str() ); } return unusedTokens; } std::vector populateFixedArgs( std::vector const& tokens, ConfigT& config ) const { std::vector unusedTokens; int position = 1; for( std::size_t i = 0; i < tokens.size(); ++i ) { Parser::Token const& token = tokens[i]; typename std::map::const_iterator it = m_positionalArgs.find( position ); if( it != m_positionalArgs.end() ) it->second.boundField.set( config, token.data ); else unusedTokens.push_back( token ); if( token.type == Parser::Token::Positional ) position++; } return unusedTokens; } std::vector populateFloatingArgs( std::vector const& tokens, ConfigT& config ) const { if( !m_floatingArg.get() ) return tokens; std::vector unusedTokens; for( std::size_t i = 0; i < tokens.size(); ++i ) { Parser::Token const& token = tokens[i]; if( token.type == Parser::Token::Positional ) m_floatingArg->boundField.set( config, token.data ); else unusedTokens.push_back( token ); } return unusedTokens; } void validate() const { if( m_options.empty() && m_positionalArgs.empty() && !m_floatingArg.get() ) throw std::logic_error( "No options or arguments specified" ); for( typename std::vector::const_iterator it = m_options.begin(), itEnd = m_options.end(); it != itEnd; ++it ) it->validate(); } private: Detail::BoundArgFunction m_boundProcessName; std::vector m_options; std::map m_positionalArgs; ArgAutoPtr m_floatingArg; int m_highestSpecifiedArgPosition; bool m_throwOnUnrecognisedTokens; }; } // end namespace Clara STITCH_CLARA_CLOSE_NAMESPACE #undef STITCH_CLARA_OPEN_NAMESPACE #undef STITCH_CLARA_CLOSE_NAMESPACE #endif // TWOBLUECUBES_CLARA_H_INCLUDED #undef STITCH_CLARA_OPEN_NAMESPACE // Restore Clara's value for console width, if present #ifdef CATCH_TEMP_CLARA_CONFIG_CONSOLE_WIDTH #define CLARA_CONFIG_CONSOLE_WIDTH CATCH_TEMP_CLARA_CONFIG_CONSOLE_WIDTH #undef CATCH_TEMP_CLARA_CONFIG_CONSOLE_WIDTH #endif #include namespace Catch { inline void abortAfterFirst( ConfigData& config ) { config.abortAfter = 1; } inline void abortAfterX( ConfigData& config, int x ) { if( x < 1 ) throw std::runtime_error( "Value after -x or --abortAfter must be greater than zero" ); config.abortAfter = x; } inline void addTestOrTags( ConfigData& config, std::string const& _testSpec ) { config.testsOrTags.push_back( _testSpec ); } inline void addWarning( ConfigData& config, std::string const& _warning ) { if( _warning == "NoAssertions" ) config.warnings = (WarnAbout::What)( config.warnings | WarnAbout::NoAssertions ); else throw std::runtime_error( "Unrecognised warning: '" + _warning + "'" ); } inline void setVerbosity( ConfigData& config, int level ) { // !TBD: accept strings? config.verbosity = (Verbosity::Level)level; } inline void setShowDurations( ConfigData& config, bool _showDurations ) { config.showDurations = _showDurations ? ShowDurations::Always : ShowDurations::Never; } inline void loadTestNamesFromFile( ConfigData& config, std::string const& _filename ) { std::ifstream f( _filename.c_str() ); if( !f.is_open() ) throw std::domain_error( "Unable to load input file: " + _filename ); std::string line; while( std::getline( f, line ) ) { line = trim(line); if( !line.empty() && !startsWith( line, "#" ) ) addTestOrTags( config, line ); } } inline Clara::CommandLine makeCommandLineParser() { using namespace Clara; CommandLine cli; cli.bindProcessName( &ConfigData::processName ); cli["-?"]["-h"]["--help"] .describe( "display usage information" ) .bind( &ConfigData::showHelp ); cli["-l"]["--list-tests"] .describe( "list all/matching test cases" ) .bind( &ConfigData::listTests ); cli["-t"]["--list-tags"] .describe( "list all/matching tags" ) .bind( &ConfigData::listTags ); cli["-s"]["--success"] .describe( "include successful tests in output" ) .bind( &ConfigData::showSuccessfulTests ); cli["-b"]["--break"] .describe( "break into debugger on failure" ) .bind( &ConfigData::shouldDebugBreak ); cli["-e"]["--nothrow"] .describe( "skip exception tests" ) .bind( &ConfigData::noThrow ); cli["-i"]["--invisibles"] .describe( "show invisibles (tabs, newlines)" ) .bind( &ConfigData::showInvisibles ); cli["-o"]["--out"] .describe( "output filename" ) .bind( &ConfigData::outputFilename, "filename" ); cli["-r"]["--reporter"] // .placeholder( "name[:filename]" ) .describe( "reporter to use (defaults to console)" ) .bind( &ConfigData::reporterName, "name" ); cli["-n"]["--name"] .describe( "suite name" ) .bind( &ConfigData::name, "name" ); cli["-a"]["--abort"] .describe( "abort at first failure" ) .bind( &abortAfterFirst ); cli["-x"]["--abortx"] .describe( "abort after x failures" ) .bind( &abortAfterX, "no. failures" ); cli["-w"]["--warn"] .describe( "enable warnings" ) .bind( &addWarning, "warning name" ); // - needs updating if reinstated // cli.into( &setVerbosity ) // .describe( "level of verbosity (0=no output)" ) // .shortOpt( "v") // .longOpt( "verbosity" ) // .placeholder( "level" ); cli[_] .describe( "which test or tests to use" ) .bind( &addTestOrTags, "test name, pattern or tags" ); cli["-d"]["--durations"] .describe( "show test durations" ) .bind( &setShowDurations, "yes/no" ); cli["-f"]["--input-file"] .describe( "load test names to run from a file" ) .bind( &loadTestNamesFromFile, "filename" ); // Less common commands which don't have a short form cli["--list-test-names-only"] .describe( "list all/matching test cases names only" ) .bind( &ConfigData::listTestNamesOnly ); cli["--list-reporters"] .describe( "list all reporters" ) .bind( &ConfigData::listReporters ); return cli; } } // end namespace Catch // #included from: internal/catch_list.hpp #define TWOBLUECUBES_CATCH_LIST_HPP_INCLUDED // #included from: catch_text.h #define TWOBLUECUBES_CATCH_TEXT_H_INCLUDED #define TBC_TEXT_FORMAT_CONSOLE_WIDTH CATCH_CONFIG_CONSOLE_WIDTH #define CLICHE_TBC_TEXT_FORMAT_OUTER_NAMESPACE Catch // #included from: ../external/tbc_text_format.h // Only use header guard if we are not using an outer namespace #ifndef CLICHE_TBC_TEXT_FORMAT_OUTER_NAMESPACE # ifdef TWOBLUECUBES_TEXT_FORMAT_H_INCLUDED # ifndef TWOBLUECUBES_TEXT_FORMAT_H_ALREADY_INCLUDED # define TWOBLUECUBES_TEXT_FORMAT_H_ALREADY_INCLUDED # endif # else # define TWOBLUECUBES_TEXT_FORMAT_H_INCLUDED # endif #endif #ifndef TWOBLUECUBES_TEXT_FORMAT_H_ALREADY_INCLUDED #include #include #include // Use optional outer namespace #ifdef CLICHE_TBC_TEXT_FORMAT_OUTER_NAMESPACE namespace CLICHE_TBC_TEXT_FORMAT_OUTER_NAMESPACE { #endif namespace Tbc { #ifdef TBC_TEXT_FORMAT_CONSOLE_WIDTH const unsigned int consoleWidth = TBC_TEXT_FORMAT_CONSOLE_WIDTH; #else const unsigned int consoleWidth = 80; #endif struct TextAttributes { TextAttributes() : initialIndent( std::string::npos ), indent( 0 ), width( consoleWidth-1 ), tabChar( '\t' ) {} TextAttributes& setInitialIndent( std::size_t _value ) { initialIndent = _value; return *this; } TextAttributes& setIndent( std::size_t _value ) { indent = _value; return *this; } TextAttributes& setWidth( std::size_t _value ) { width = _value; return *this; } TextAttributes& setTabChar( char _value ) { tabChar = _value; return *this; } std::size_t initialIndent; // indent of first line, or npos std::size_t indent; // indent of subsequent lines, or all if initialIndent is npos std::size_t width; // maximum width of text, including indent. Longer text will wrap char tabChar; // If this char is seen the indent is changed to current pos }; class Text { public: Text( std::string const& _str, TextAttributes const& _attr = TextAttributes() ) : attr( _attr ) { std::string wrappableChars = " [({.,/|\\-"; std::size_t indent = _attr.initialIndent != std::string::npos ? _attr.initialIndent : _attr.indent; std::string remainder = _str; while( !remainder.empty() ) { if( lines.size() >= 1000 ) { lines.push_back( "... message truncated due to excessive size" ); return; } std::size_t tabPos = std::string::npos; std::size_t width = (std::min)( remainder.size(), _attr.width - indent ); std::size_t pos = remainder.find_first_of( '\n' ); if( pos <= width ) { width = pos; } pos = remainder.find_last_of( _attr.tabChar, width ); if( pos != std::string::npos ) { tabPos = pos; if( remainder[width] == '\n' ) width--; remainder = remainder.substr( 0, tabPos ) + remainder.substr( tabPos+1 ); } if( width == remainder.size() ) { spliceLine( indent, remainder, width ); } else if( remainder[width] == '\n' ) { spliceLine( indent, remainder, width ); if( width <= 1 || remainder.size() != 1 ) remainder = remainder.substr( 1 ); indent = _attr.indent; } else { pos = remainder.find_last_of( wrappableChars, width ); if( pos != std::string::npos && pos > 0 ) { spliceLine( indent, remainder, pos ); if( remainder[0] == ' ' ) remainder = remainder.substr( 1 ); } else { spliceLine( indent, remainder, width-1 ); lines.back() += "-"; } if( lines.size() == 1 ) indent = _attr.indent; if( tabPos != std::string::npos ) indent += tabPos; } } } void spliceLine( std::size_t _indent, std::string& _remainder, std::size_t _pos ) { lines.push_back( std::string( _indent, ' ' ) + _remainder.substr( 0, _pos ) ); _remainder = _remainder.substr( _pos ); } typedef std::vector::const_iterator const_iterator; const_iterator begin() const { return lines.begin(); } const_iterator end() const { return lines.end(); } std::string const& last() const { return lines.back(); } std::size_t size() const { return lines.size(); } std::string const& operator[]( std::size_t _index ) const { return lines[_index]; } std::string toString() const { std::ostringstream oss; oss << *this; return oss.str(); } inline friend std::ostream& operator << ( std::ostream& _stream, Text const& _text ) { for( Text::const_iterator it = _text.begin(), itEnd = _text.end(); it != itEnd; ++it ) { if( it != _text.begin() ) _stream << "\n"; _stream << *it; } return _stream; } private: std::string str; TextAttributes attr; std::vector lines; }; } // end namespace Tbc #ifdef CLICHE_TBC_TEXT_FORMAT_OUTER_NAMESPACE } // end outer namespace #endif #endif // TWOBLUECUBES_TEXT_FORMAT_H_ALREADY_INCLUDED #undef CLICHE_TBC_TEXT_FORMAT_OUTER_NAMESPACE namespace Catch { using Tbc::Text; using Tbc::TextAttributes; } // #included from: catch_console_colour.hpp #define TWOBLUECUBES_CATCH_CONSOLE_COLOUR_HPP_INCLUDED namespace Catch { namespace Detail { struct IColourImpl; } struct Colour { enum Code { None = 0, White, Red, Green, Blue, Cyan, Yellow, Grey, Bright = 0x10, BrightRed = Bright | Red, BrightGreen = Bright | Green, LightGrey = Bright | Grey, BrightWhite = Bright | White, // By intention FileName = LightGrey, ResultError = BrightRed, ResultSuccess = BrightGreen, Error = BrightRed, Success = Green, OriginalExpression = Cyan, ReconstructedExpression = Yellow, SecondaryText = LightGrey, Headers = White }; // Use constructed object for RAII guard Colour( Code _colourCode ); ~Colour(); // Use static method for one-shot changes static void use( Code _colourCode ); private: static Detail::IColourImpl* impl(); }; } // end namespace Catch // #included from: catch_interfaces_reporter.h #define TWOBLUECUBES_CATCH_INTERFACES_REPORTER_H_INCLUDED // #included from: catch_option.hpp #define TWOBLUECUBES_CATCH_OPTION_HPP_INCLUDED namespace Catch { // An optional type template class Option { public: Option() : nullableValue( NULL ) {} Option( T const& _value ) : nullableValue( new( storage ) T( _value ) ) {} Option( Option const& _other ) : nullableValue( _other ? new( storage ) T( *_other ) : NULL ) {} ~Option() { reset(); } Option& operator= ( Option const& _other ) { if( &_other != this ) { reset(); if( _other ) nullableValue = new( storage ) T( *_other ); } return *this; } Option& operator = ( T const& _value ) { reset(); nullableValue = new( storage ) T( _value ); return *this; } void reset() { if( nullableValue ) nullableValue->~T(); nullableValue = NULL; } T& operator*() { return *nullableValue; } T const& operator*() const { return *nullableValue; } T* operator->() { return nullableValue; } const T* operator->() const { return nullableValue; } T valueOr( T const& defaultValue ) const { return nullableValue ? *nullableValue : defaultValue; } bool some() const { return nullableValue != NULL; } bool none() const { return nullableValue == NULL; } bool operator !() const { return nullableValue == NULL; } operator SafeBool::type() const { return SafeBool::makeSafe( some() ); } private: T* nullableValue; char storage[sizeof(T)]; }; } // end namespace Catch #include #include #include #include namespace Catch { struct ReporterConfig { explicit ReporterConfig( Ptr const& _fullConfig ) : m_stream( &_fullConfig->stream() ), m_fullConfig( _fullConfig ) {} ReporterConfig( Ptr const& _fullConfig, std::ostream& _stream ) : m_stream( &_stream ), m_fullConfig( _fullConfig ) {} std::ostream& stream() const { return *m_stream; } Ptr fullConfig() const { return m_fullConfig; } private: std::ostream* m_stream; Ptr m_fullConfig; }; struct ReporterPreferences { ReporterPreferences() : shouldRedirectStdOut( false ) {} bool shouldRedirectStdOut; }; template struct LazyStat : Option { LazyStat() : used( false ) {} LazyStat& operator=( T const& _value ) { Option::operator=( _value ); used = false; return *this; } void reset() { Option::reset(); used = false; } bool used; }; struct TestRunInfo { TestRunInfo( std::string const& _name ) : name( _name ) {} std::string name; }; struct GroupInfo { GroupInfo( std::string const& _name, std::size_t _groupIndex, std::size_t _groupsCount ) : name( _name ), groupIndex( _groupIndex ), groupsCounts( _groupsCount ) {} std::string name; std::size_t groupIndex; std::size_t groupsCounts; }; struct AssertionStats { AssertionStats( AssertionResult const& _assertionResult, std::vector const& _infoMessages, Totals const& _totals ) : assertionResult( _assertionResult ), infoMessages( _infoMessages ), totals( _totals ) { if( assertionResult.hasMessage() ) { // Copy message into messages list. // !TBD This should have been done earlier, somewhere MessageBuilder builder( assertionResult.getTestMacroName(), assertionResult.getSourceInfo(), assertionResult.getResultType() ); builder << assertionResult.getMessage(); builder.m_info.message = builder.m_stream.str(); infoMessages.push_back( builder.m_info ); } } virtual ~AssertionStats(); # ifdef CATCH_CPP11_OR_GREATER AssertionStats( AssertionStats const& ) = default; AssertionStats( AssertionStats && ) = default; AssertionStats& operator = ( AssertionStats const& ) = default; AssertionStats& operator = ( AssertionStats && ) = default; # endif AssertionResult assertionResult; std::vector infoMessages; Totals totals; }; struct SectionStats { SectionStats( SectionInfo const& _sectionInfo, Counts const& _assertions, double _durationInSeconds, bool _missingAssertions ) : sectionInfo( _sectionInfo ), assertions( _assertions ), durationInSeconds( _durationInSeconds ), missingAssertions( _missingAssertions ) {} virtual ~SectionStats(); # ifdef CATCH_CPP11_OR_GREATER SectionStats( SectionStats const& ) = default; SectionStats( SectionStats && ) = default; SectionStats& operator = ( SectionStats const& ) = default; SectionStats& operator = ( SectionStats && ) = default; # endif SectionInfo sectionInfo; Counts assertions; double durationInSeconds; bool missingAssertions; }; struct TestCaseStats { TestCaseStats( TestCaseInfo const& _testInfo, Totals const& _totals, std::string const& _stdOut, std::string const& _stdErr, bool _aborting ) : testInfo( _testInfo ), totals( _totals ), stdOut( _stdOut ), stdErr( _stdErr ), aborting( _aborting ) {} virtual ~TestCaseStats(); # ifdef CATCH_CPP11_OR_GREATER TestCaseStats( TestCaseStats const& ) = default; TestCaseStats( TestCaseStats && ) = default; TestCaseStats& operator = ( TestCaseStats const& ) = default; TestCaseStats& operator = ( TestCaseStats && ) = default; # endif TestCaseInfo testInfo; Totals totals; std::string stdOut; std::string stdErr; bool aborting; }; struct TestGroupStats { TestGroupStats( GroupInfo const& _groupInfo, Totals const& _totals, bool _aborting ) : groupInfo( _groupInfo ), totals( _totals ), aborting( _aborting ) {} TestGroupStats( GroupInfo const& _groupInfo ) : groupInfo( _groupInfo ), aborting( false ) {} virtual ~TestGroupStats(); # ifdef CATCH_CPP11_OR_GREATER TestGroupStats( TestGroupStats const& ) = default; TestGroupStats( TestGroupStats && ) = default; TestGroupStats& operator = ( TestGroupStats const& ) = default; TestGroupStats& operator = ( TestGroupStats && ) = default; # endif GroupInfo groupInfo; Totals totals; bool aborting; }; struct TestRunStats { TestRunStats( TestRunInfo const& _runInfo, Totals const& _totals, bool _aborting ) : runInfo( _runInfo ), totals( _totals ), aborting( _aborting ) {} virtual ~TestRunStats(); # ifndef CATCH_CPP11_OR_GREATER TestRunStats( TestRunStats const& _other ) : runInfo( _other.runInfo ), totals( _other.totals ), aborting( _other.aborting ) {} # else TestRunStats( TestRunStats const& ) = default; TestRunStats( TestRunStats && ) = default; TestRunStats& operator = ( TestRunStats const& ) = default; TestRunStats& operator = ( TestRunStats && ) = default; # endif TestRunInfo runInfo; Totals totals; bool aborting; }; struct IStreamingReporter : IShared { virtual ~IStreamingReporter(); // Implementing class must also provide the following static method: // static std::string getDescription(); virtual ReporterPreferences getPreferences() const = 0; virtual void noMatchingTestCases( std::string const& spec ) = 0; virtual void testRunStarting( TestRunInfo const& testRunInfo ) = 0; virtual void testGroupStarting( GroupInfo const& groupInfo ) = 0; virtual void testCaseStarting( TestCaseInfo const& testInfo ) = 0; virtual void sectionStarting( SectionInfo const& sectionInfo ) = 0; virtual void assertionStarting( AssertionInfo const& assertionInfo ) = 0; virtual bool assertionEnded( AssertionStats const& assertionStats ) = 0; virtual void sectionEnded( SectionStats const& sectionStats ) = 0; virtual void testCaseEnded( TestCaseStats const& testCaseStats ) = 0; virtual void testGroupEnded( TestGroupStats const& testGroupStats ) = 0; virtual void testRunEnded( TestRunStats const& testRunStats ) = 0; }; struct IReporterFactory { virtual ~IReporterFactory(); virtual IStreamingReporter* create( ReporterConfig const& config ) const = 0; virtual std::string getDescription() const = 0; }; struct IReporterRegistry { typedef std::map FactoryMap; virtual ~IReporterRegistry(); virtual IStreamingReporter* create( std::string const& name, Ptr const& config ) const = 0; virtual FactoryMap const& getFactories() const = 0; }; } #include #include namespace Catch { inline std::size_t listTests( Config const& config ) { if( config.filters().empty() ) std::cout << "All available test cases:\n"; else std::cout << "Matching test cases:\n"; std::size_t matchedTests = 0; TextAttributes nameAttr, tagsAttr; nameAttr.setInitialIndent( 2 ).setIndent( 4 ); tagsAttr.setIndent( 6 ); std::vector matchedTestCases; getRegistryHub().getTestCaseRegistry().getFilteredTests( config, matchedTestCases ); for( std::vector::const_iterator it = matchedTestCases.begin(), itEnd = matchedTestCases.end(); it != itEnd; ++it ) { matchedTests++; TestCaseInfo const& testCaseInfo = it->getTestCaseInfo(); Colour::Code colour = testCaseInfo.isHidden ? Colour::SecondaryText : Colour::None; Colour colourGuard( colour ); std::cout << Text( testCaseInfo.name, nameAttr ) << std::endl; if( !testCaseInfo.tags.empty() ) std::cout << Text( testCaseInfo.tagsAsString, tagsAttr ) << std::endl; } if( config.filters().empty() ) std::cout << pluralise( matchedTests, "test case" ) << "\n" << std::endl; else std::cout << pluralise( matchedTests, "matching test case" ) << "\n" << std::endl; return matchedTests; } inline std::size_t listTestsNamesOnly( Config const& config ) { std::size_t matchedTests = 0; std::vector matchedTestCases; getRegistryHub().getTestCaseRegistry().getFilteredTests( config, matchedTestCases ); for( std::vector::const_iterator it = matchedTestCases.begin(), itEnd = matchedTestCases.end(); it != itEnd; ++it ) { matchedTests++; TestCaseInfo const& testCaseInfo = it->getTestCaseInfo(); std::cout << testCaseInfo.name << std::endl; } return matchedTests; } inline std::size_t listTags( Config const& config ) { if( config.filters().empty() ) std::cout << "All available tags:\n"; else std::cout << "Matching tags:\n"; std::map tagCounts; std::vector matchedTestCases; getRegistryHub().getTestCaseRegistry().getFilteredTests( config, matchedTestCases ); for( std::vector::const_iterator it = matchedTestCases.begin(), itEnd = matchedTestCases.end(); it != itEnd; ++it ) { for( std::set::const_iterator tagIt = it->getTestCaseInfo().tags.begin(), tagItEnd = it->getTestCaseInfo().tags.end(); tagIt != tagItEnd; ++tagIt ) { std::string tagName = *tagIt; std::map::iterator countIt = tagCounts.find( tagName ); if( countIt == tagCounts.end() ) tagCounts.insert( std::make_pair( tagName, 1 ) ); else countIt->second++; } } for( std::map::const_iterator countIt = tagCounts.begin(), countItEnd = tagCounts.end(); countIt != countItEnd; ++countIt ) { std::ostringstream oss; oss << " " << countIt->second << " "; Text wrapper( "[" + countIt->first + "]", TextAttributes() .setInitialIndent( 0 ) .setIndent( oss.str().size() ) .setWidth( CATCH_CONFIG_CONSOLE_WIDTH-10 ) ); std::cout << oss.str() << wrapper << "\n"; } std::cout << pluralise( tagCounts.size(), "tag" ) << "\n" << std::endl; return tagCounts.size(); } inline std::size_t listReporters( Config const& /*config*/ ) { std::cout << "Available reports:\n"; IReporterRegistry::FactoryMap const& factories = getRegistryHub().getReporterRegistry().getFactories(); IReporterRegistry::FactoryMap::const_iterator itBegin = factories.begin(), itEnd = factories.end(), it; std::size_t maxNameLen = 0; for(it = itBegin; it != itEnd; ++it ) maxNameLen = (std::max)( maxNameLen, it->first.size() ); for(it = itBegin; it != itEnd; ++it ) { Text wrapper( it->second->getDescription(), TextAttributes() .setInitialIndent( 0 ) .setIndent( 7+maxNameLen ) .setWidth( CATCH_CONFIG_CONSOLE_WIDTH - maxNameLen-8 ) ); std::cout << " " << it->first << ":" << std::string( maxNameLen - it->first.size() + 2, ' ' ) << wrapper << "\n"; } std::cout << std::endl; return factories.size(); } inline Option list( Config const& config ) { Option listedCount; if( config.listTests() ) listedCount = listedCount.valueOr(0) + listTests( config ); if( config.listTestNamesOnly() ) listedCount = listedCount.valueOr(0) + listTestsNamesOnly( config ); if( config.listTags() ) listedCount = listedCount.valueOr(0) + listTags( config ); if( config.listReporters() ) listedCount = listedCount.valueOr(0) + listReporters( config ); return listedCount; } } // end namespace Catch // #included from: internal/catch_runner_impl.hpp #define TWOBLUECUBES_CATCH_RUNNER_IMPL_HPP_INCLUDED // #included from: catch_test_case_tracker.hpp #define TWOBLUECUBES_CATCH_TEST_CASE_TRACKER_HPP_INCLUDED #include #include #include namespace Catch { namespace SectionTracking { class TrackedSection { typedef std::map TrackedSections; public: enum RunState { NotStarted, Executing, ExecutingChildren, Completed }; TrackedSection( std::string const& name, TrackedSection* parent ) : m_name( name ), m_runState( NotStarted ), m_parent( parent ) {} RunState runState() const { return m_runState; } TrackedSection* findChild( std::string const& childName ) { TrackedSections::iterator it = m_children.find( childName ); return it != m_children.end() ? &it->second : NULL; } TrackedSection* acquireChild( std::string const& childName ) { if( TrackedSection* child = findChild( childName ) ) return child; m_children.insert( std::make_pair( childName, TrackedSection( childName, this ) ) ); return findChild( childName ); } void enter() { if( m_runState == NotStarted ) m_runState = Executing; } void leave() { for( TrackedSections::const_iterator it = m_children.begin(), itEnd = m_children.end(); it != itEnd; ++it ) if( it->second.runState() != Completed ) { m_runState = ExecutingChildren; return; } m_runState = Completed; } TrackedSection* getParent() { return m_parent; } bool hasChildren() const { return !m_children.empty(); } private: std::string m_name; RunState m_runState; TrackedSections m_children; TrackedSection* m_parent; }; class TestCaseTracker { public: TestCaseTracker( std::string const& testCaseName ) : m_testCase( testCaseName, NULL ), m_currentSection( &m_testCase ), m_completedASectionThisRun( false ) {} bool enterSection( std::string const& name ) { TrackedSection* child = m_currentSection->acquireChild( name ); if( m_completedASectionThisRun || child->runState() == TrackedSection::Completed ) return false; m_currentSection = child; m_currentSection->enter(); return true; } void leaveSection() { m_currentSection->leave(); m_currentSection = m_currentSection->getParent(); assert( m_currentSection != NULL ); m_completedASectionThisRun = true; } bool currentSectionHasChildren() const { return m_currentSection->hasChildren(); } bool isCompleted() const { return m_testCase.runState() == TrackedSection::Completed; } class Guard { public: Guard( TestCaseTracker& tracker ) : m_tracker( tracker ) { m_tracker.enterTestCase(); } ~Guard() { m_tracker.leaveTestCase(); } private: Guard( Guard const& ); void operator = ( Guard const& ); TestCaseTracker& m_tracker; }; private: void enterTestCase() { m_currentSection = &m_testCase; m_completedASectionThisRun = false; m_testCase.enter(); } void leaveTestCase() { m_testCase.leave(); } TrackedSection m_testCase; TrackedSection* m_currentSection; bool m_completedASectionThisRun; }; } // namespace SectionTracking using SectionTracking::TestCaseTracker; } // namespace Catch #include #include namespace Catch { class StreamRedirect { public: StreamRedirect( std::ostream& stream, std::string& targetString ) : m_stream( stream ), m_prevBuf( stream.rdbuf() ), m_targetString( targetString ) { stream.rdbuf( m_oss.rdbuf() ); } ~StreamRedirect() { m_targetString += m_oss.str(); m_stream.rdbuf( m_prevBuf ); } private: std::ostream& m_stream; std::streambuf* m_prevBuf; std::ostringstream m_oss; std::string& m_targetString; }; /////////////////////////////////////////////////////////////////////////// class RunContext : public IResultCapture, public IRunner { RunContext( RunContext const& ); void operator =( RunContext const& ); public: explicit RunContext( Ptr const& config, Ptr const& reporter ) : m_runInfo( config->name() ), m_context( getCurrentMutableContext() ), m_activeTestCase( NULL ), m_config( config ), m_reporter( reporter ), m_prevRunner( &m_context.getRunner() ), m_prevResultCapture( &m_context.getResultCapture() ), m_prevConfig( m_context.getConfig() ) { m_context.setRunner( this ); m_context.setConfig( m_config ); m_context.setResultCapture( this ); m_reporter->testRunStarting( m_runInfo ); } virtual ~RunContext() { m_reporter->testRunEnded( TestRunStats( m_runInfo, m_totals, aborting() ) ); m_context.setRunner( m_prevRunner ); m_context.setConfig( NULL ); m_context.setResultCapture( m_prevResultCapture ); m_context.setConfig( m_prevConfig ); } void testGroupStarting( std::string const& testSpec, std::size_t groupIndex, std::size_t groupsCount ) { m_reporter->testGroupStarting( GroupInfo( testSpec, groupIndex, groupsCount ) ); } void testGroupEnded( std::string const& testSpec, Totals const& totals, std::size_t groupIndex, std::size_t groupsCount ) { m_reporter->testGroupEnded( TestGroupStats( GroupInfo( testSpec, groupIndex, groupsCount ), totals, aborting() ) ); } Totals runTest( TestCase const& testCase ) { Totals prevTotals = m_totals; std::string redirectedCout; std::string redirectedCerr; TestCaseInfo testInfo = testCase.getTestCaseInfo(); m_reporter->testCaseStarting( testInfo ); m_activeTestCase = &testCase; m_testCaseTracker = TestCaseTracker( testInfo.name ); do { do { runCurrentTest( redirectedCout, redirectedCerr ); } while( !m_testCaseTracker->isCompleted() && !aborting() ); } while( getCurrentContext().advanceGeneratorsForCurrentTest() && !aborting() ); Totals deltaTotals = m_totals.delta( prevTotals ); m_totals.testCases += deltaTotals.testCases; m_reporter->testCaseEnded( TestCaseStats( testInfo, deltaTotals, redirectedCout, redirectedCerr, aborting() ) ); m_activeTestCase = NULL; m_testCaseTracker.reset(); return deltaTotals; } Ptr config() const { return m_config; } private: // IResultCapture virtual ResultAction::Value acceptExpression( ExpressionResultBuilder const& assertionResult, AssertionInfo const& assertionInfo ) { m_lastAssertionInfo = assertionInfo; return actOnCurrentResult( assertionResult.buildResult( assertionInfo ) ); } virtual void assertionEnded( AssertionResult const& result ) { if( result.getResultType() == ResultWas::Ok ) { m_totals.assertions.passed++; } else if( !result.isOk() ) { m_totals.assertions.failed++; } if( m_reporter->assertionEnded( AssertionStats( result, m_messages, m_totals ) ) ) m_messages.clear(); // Reset working state m_lastAssertionInfo = AssertionInfo( "", m_lastAssertionInfo.lineInfo, "{Unknown expression after the reported line}" , m_lastAssertionInfo.resultDisposition ); } virtual bool sectionStarted ( SectionInfo const& sectionInfo, Counts& assertions ) { std::ostringstream oss; oss << sectionInfo.name << "@" << sectionInfo.lineInfo; if( !m_testCaseTracker->enterSection( oss.str() ) ) return false; m_lastAssertionInfo.lineInfo = sectionInfo.lineInfo; m_reporter->sectionStarting( sectionInfo ); assertions = m_totals.assertions; return true; } bool testForMissingAssertions( Counts& assertions ) { if( assertions.total() != 0 || !m_config->warnAboutMissingAssertions() || m_testCaseTracker->currentSectionHasChildren() ) return false; m_totals.assertions.failed++; assertions.failed++; return true; } virtual void sectionEnded( SectionInfo const& info, Counts const& prevAssertions, double _durationInSeconds ) { if( std::uncaught_exception() ) { m_unfinishedSections.push_back( UnfinishedSections( info, prevAssertions, _durationInSeconds ) ); return; } Counts assertions = m_totals.assertions - prevAssertions; bool missingAssertions = testForMissingAssertions( assertions ); m_testCaseTracker->leaveSection(); m_reporter->sectionEnded( SectionStats( info, assertions, _durationInSeconds, missingAssertions ) ); m_messages.clear(); } virtual void pushScopedMessage( MessageInfo const& message ) { m_messages.push_back( message ); } virtual void popScopedMessage( MessageInfo const& message ) { m_messages.erase( std::remove( m_messages.begin(), m_messages.end(), message ), m_messages.end() ); } virtual bool shouldDebugBreak() const { return m_config->shouldDebugBreak(); } virtual std::string getCurrentTestName() const { return m_activeTestCase ? m_activeTestCase->getTestCaseInfo().name : ""; } virtual const AssertionResult* getLastResult() const { return &m_lastResult; } public: // !TBD We need to do this another way! bool aborting() const { return m_totals.assertions.failed == static_cast( m_config->abortAfter() ); } private: ResultAction::Value actOnCurrentResult( AssertionResult const& result ) { m_lastResult = result; assertionEnded( m_lastResult ); ResultAction::Value action = ResultAction::None; if( !m_lastResult.isOk() ) { action = ResultAction::Failed; if( shouldDebugBreak() ) action = (ResultAction::Value)( action | ResultAction::Debug ); if( aborting() ) action = (ResultAction::Value)( action | ResultAction::Abort ); } return action; } void runCurrentTest( std::string& redirectedCout, std::string& redirectedCerr ) { TestCaseInfo const& testCaseInfo = m_activeTestCase->getTestCaseInfo(); SectionInfo testCaseSection( testCaseInfo.name, testCaseInfo.description, testCaseInfo.lineInfo ); m_reporter->sectionStarting( testCaseSection ); Counts prevAssertions = m_totals.assertions; double duration = 0; try { m_lastAssertionInfo = AssertionInfo( "TEST_CASE", testCaseInfo.lineInfo, "", ResultDisposition::Normal ); TestCaseTracker::Guard guard( *m_testCaseTracker ); Timer timer; timer.start(); if( m_reporter->getPreferences().shouldRedirectStdOut ) { StreamRedirect coutRedir( std::cout, redirectedCout ); StreamRedirect cerrRedir( std::cerr, redirectedCerr ); m_activeTestCase->invoke(); } else { m_activeTestCase->invoke(); } duration = timer.getElapsedSeconds(); } catch( TestFailureException& ) { // This just means the test was aborted due to failure } catch(...) { ExpressionResultBuilder exResult( ResultWas::ThrewException ); exResult << translateActiveException(); actOnCurrentResult( exResult.buildResult( m_lastAssertionInfo ) ); } // If sections ended prematurely due to an exception we stored their // infos here so we can tear them down outside the unwind process. for( std::vector::const_reverse_iterator it = m_unfinishedSections.rbegin(), itEnd = m_unfinishedSections.rend(); it != itEnd; ++it ) sectionEnded( it->info, it->prevAssertions, it->durationInSeconds ); m_unfinishedSections.clear(); m_messages.clear(); Counts assertions = m_totals.assertions - prevAssertions; bool missingAssertions = testForMissingAssertions( assertions ); SectionStats testCaseSectionStats( testCaseSection, assertions, duration, missingAssertions ); m_reporter->sectionEnded( testCaseSectionStats ); } private: struct UnfinishedSections { UnfinishedSections( SectionInfo const& _info, Counts const& _prevAssertions, double _durationInSeconds ) : info( _info ), prevAssertions( _prevAssertions ), durationInSeconds( _durationInSeconds ) {} SectionInfo info; Counts prevAssertions; double durationInSeconds; }; TestRunInfo m_runInfo; IMutableContext& m_context; TestCase const* m_activeTestCase; Option m_testCaseTracker; AssertionResult m_lastResult; Ptr m_config; Totals m_totals; Ptr m_reporter; std::vector m_messages; IRunner* m_prevRunner; IResultCapture* m_prevResultCapture; Ptr m_prevConfig; AssertionInfo m_lastAssertionInfo; std::vector m_unfinishedSections; }; } // end namespace Catch // #included from: internal/catch_version.h #define TWOBLUECUBES_CATCH_VERSION_H_INCLUDED namespace Catch { // Versioning information struct Version { Version( unsigned int _majorVersion, unsigned int _minorVersion, unsigned int _buildNumber, char const* const _branchName ) : majorVersion( _majorVersion ), minorVersion( _minorVersion ), buildNumber( _buildNumber ), branchName( _branchName ) {} unsigned int const majorVersion; unsigned int const minorVersion; unsigned int const buildNumber; char const* const branchName; private: void operator=( Version const& ); }; extern Version libraryVersion; } #include #include #include namespace Catch { class Runner { public: Runner( Ptr const& config ) : m_config( config ) { openStream(); makeReporter(); } Totals runTests() { std::vector filterGroups = m_config->filters(); if( filterGroups.empty() ) { TestCaseFilters filterGroup( "" ); filterGroups.push_back( filterGroup ); } RunContext context( m_config.get(), m_reporter ); Totals totals; for( std::size_t i=0; i < filterGroups.size() && !context.aborting(); ++i ) { context.testGroupStarting( filterGroups[i].getName(), i, filterGroups.size() ); totals += runTestsForGroup( context, filterGroups[i] ); context.testGroupEnded( filterGroups[i].getName(), totals, i, filterGroups.size() ); } return totals; } Totals runTestsForGroup( RunContext& context, TestCaseFilters const& filterGroup ) { Totals totals; std::vector testCases; getRegistryHub().getTestCaseRegistry().getFilteredTests( filterGroup, *m_config, testCases ); int testsRunForGroup = 0; for( std::vector::const_iterator it = testCases.begin(), itEnd = testCases.end(); it != itEnd; ++it ) { testsRunForGroup++; if( m_testsAlreadyRun.find( *it ) == m_testsAlreadyRun.end() ) { if( context.aborting() ) break; totals += context.runTest( *it ); m_testsAlreadyRun.insert( *it ); } } if( testsRunForGroup == 0 && !filterGroup.getName().empty() ) m_reporter->noMatchingTestCases( filterGroup.getName() ); return totals; } private: void openStream() { // Open output file, if specified if( !m_config->getFilename().empty() ) { m_ofs.open( m_config->getFilename().c_str() ); if( m_ofs.fail() ) { std::ostringstream oss; oss << "Unable to open file: '" << m_config->getFilename() << "'"; throw std::domain_error( oss.str() ); } m_config->setStreamBuf( m_ofs.rdbuf() ); } } void makeReporter() { std::string reporterName = m_config->getReporterName().empty() ? "console" : m_config->getReporterName(); m_reporter = getRegistryHub().getReporterRegistry().create( reporterName, m_config.get() ); if( !m_reporter ) { std::ostringstream oss; oss << "No reporter registered with name: '" << reporterName << "'"; throw std::domain_error( oss.str() ); } } private: Ptr m_config; std::ofstream m_ofs; Ptr m_reporter; std::set m_testsAlreadyRun; }; class Session { static bool alreadyInstantiated; public: struct OnUnusedOptions { enum DoWhat { Ignore, Fail }; }; Session() : m_cli( makeCommandLineParser() ) { if( alreadyInstantiated ) { std::string msg = "Only one instance of Catch::Session can ever be used"; std::cerr << msg << std::endl; throw std::logic_error( msg ); } alreadyInstantiated = true; } ~Session() { Catch::cleanUp(); } void showHelp( std::string const& processName ) { std::cout << "\nCatch v" << libraryVersion.majorVersion << "." << libraryVersion.minorVersion << " build " << libraryVersion.buildNumber; if( libraryVersion.branchName != std::string( "master" ) ) std::cout << " (" << libraryVersion.branchName << " branch)"; std::cout << "\n"; m_cli.usage( std::cout, processName ); std::cout << "For more detail usage please see the project docs\n" << std::endl; } int applyCommandLine( int argc, char* const argv[], OnUnusedOptions::DoWhat unusedOptionBehaviour = OnUnusedOptions::Fail ) { try { m_cli.setThrowOnUnrecognisedTokens( unusedOptionBehaviour == OnUnusedOptions::Fail ); m_unusedTokens = m_cli.parseInto( argc, argv, m_configData ); if( m_configData.showHelp ) showHelp( m_configData.processName ); m_config.reset(); } catch( std::exception& ex ) { { Colour colourGuard( Colour::Red ); std::cerr << "\nError(s) in input:\n" << Text( ex.what(), TextAttributes().setIndent(2) ) << "\n\n"; } m_cli.usage( std::cout, m_configData.processName ); return (std::numeric_limits::max)(); } return 0; } void useConfigData( ConfigData const& _configData ) { m_configData = _configData; m_config.reset(); } int run( int argc, char* const argv[] ) { int returnCode = applyCommandLine( argc, argv ); if( returnCode == 0 ) returnCode = run(); return returnCode; } int run() { if( m_configData.showHelp ) return 0; try { config(); // Force config to be constructed Runner runner( m_config ); // Handle list request if( Option listed = list( config() ) ) return static_cast( *listed ); return static_cast( runner.runTests().assertions.failed ); } catch( std::exception& ex ) { std::cerr << ex.what() << std::endl; return (std::numeric_limits::max)(); } } Clara::CommandLine const& cli() const { return m_cli; } std::vector const& unusedTokens() const { return m_unusedTokens; } ConfigData& configData() { return m_configData; } Config& config() { if( !m_config ) m_config = new Config( m_configData ); return *m_config; } private: Clara::CommandLine m_cli; std::vector m_unusedTokens; ConfigData m_configData; Ptr m_config; }; bool Session::alreadyInstantiated = false; } // end namespace Catch // #included from: catch_registry_hub.hpp #define TWOBLUECUBES_CATCH_REGISTRY_HUB_HPP_INCLUDED // #included from: catch_test_case_registry_impl.hpp #define TWOBLUECUBES_CATCH_TEST_CASE_REGISTRY_IMPL_HPP_INCLUDED #include #include #include #include namespace Catch { class TestRegistry : public ITestCaseRegistry { public: TestRegistry() : m_unnamedCount( 0 ) {} virtual ~TestRegistry(); virtual void registerTest( TestCase const& testCase ) { std::string name = testCase.getTestCaseInfo().name; if( name == "" ) { std::ostringstream oss; oss << "Anonymous test case " << ++m_unnamedCount; return registerTest( testCase.withName( oss.str() ) ); } if( m_functions.find( testCase ) == m_functions.end() ) { m_functions.insert( testCase ); m_functionsInOrder.push_back( testCase ); if( !testCase.isHidden() ) m_nonHiddenFunctions.push_back( testCase ); } else { TestCase const& prev = *m_functions.find( testCase ); { Colour colourGuard( Colour::Red ); std::cerr << "error: TEST_CASE( \"" << name << "\" ) already defined.\n" << "\tFirst seen at " << prev.getTestCaseInfo().lineInfo << "\n" << "\tRedefined at " << testCase.getTestCaseInfo().lineInfo << std::endl; } exit(1); } } virtual std::vector const& getAllTests() const { return m_functionsInOrder; } virtual std::vector const& getAllNonHiddenTests() const { return m_nonHiddenFunctions; } virtual void getFilteredTests( TestCaseFilters const& filters, IConfig const& config, std::vector& matchingTestCases ) const { for( std::vector::const_iterator it = m_functionsInOrder.begin(), itEnd = m_functionsInOrder.end(); it != itEnd; ++it ) { if( filters.shouldInclude( *it ) && ( config.allowThrows() || !it->throws() ) ) matchingTestCases.push_back( *it ); } } virtual void getFilteredTests( IConfig const& config, std::vector& matchingTestCases ) const { if( config.filters().empty() ) return getFilteredTests( TestCaseFilters( "empty" ), config, matchingTestCases ); for( std::vector::const_iterator it = config.filters().begin(), itEnd = config.filters().end(); it != itEnd; ++it ) getFilteredTests( *it, config, matchingTestCases ); } private: std::set m_functions; std::vector m_functionsInOrder; std::vector m_nonHiddenFunctions; size_t m_unnamedCount; }; /////////////////////////////////////////////////////////////////////////// class FreeFunctionTestCase : public SharedImpl { public: FreeFunctionTestCase( TestFunction fun ) : m_fun( fun ) {} virtual void invoke() const { m_fun(); } private: virtual ~FreeFunctionTestCase(); TestFunction m_fun; }; inline std::string extractClassName( std::string const& classOrQualifiedMethodName ) { std::string className = classOrQualifiedMethodName; if( startsWith( className, "&" ) ) { std::size_t lastColons = className.rfind( "::" ); std::size_t penultimateColons = className.rfind( "::", lastColons-1 ); if( penultimateColons == std::string::npos ) penultimateColons = 1; className = className.substr( penultimateColons, lastColons-penultimateColons ); } return className; } /////////////////////////////////////////////////////////////////////////// AutoReg::AutoReg( TestFunction function, SourceLineInfo const& lineInfo, NameAndDesc const& nameAndDesc ) { registerTestCase( new FreeFunctionTestCase( function ), "", nameAndDesc, lineInfo ); } AutoReg::~AutoReg() {} void AutoReg::registerTestCase( ITestCase* testCase, char const* classOrQualifiedMethodName, NameAndDesc const& nameAndDesc, SourceLineInfo const& lineInfo ) { getMutableRegistryHub().registerTest ( makeTestCase( testCase, extractClassName( classOrQualifiedMethodName ), nameAndDesc.name, nameAndDesc.description, lineInfo ) ); } } // end namespace Catch // #included from: catch_reporter_registry.hpp #define TWOBLUECUBES_CATCH_REPORTER_REGISTRY_HPP_INCLUDED #include namespace Catch { class ReporterRegistry : public IReporterRegistry { public: virtual ~ReporterRegistry() { deleteAllValues( m_factories ); } virtual IStreamingReporter* create( std::string const& name, Ptr const& config ) const { FactoryMap::const_iterator it = m_factories.find( name ); if( it == m_factories.end() ) return NULL; return it->second->create( ReporterConfig( config ) ); } void registerReporter( std::string const& name, IReporterFactory* factory ) { m_factories.insert( std::make_pair( name, factory ) ); } FactoryMap const& getFactories() const { return m_factories; } private: FactoryMap m_factories; }; } // #included from: catch_exception_translator_registry.hpp #define TWOBLUECUBES_CATCH_EXCEPTION_TRANSLATOR_REGISTRY_HPP_INCLUDED #ifdef __OBJC__ #import "Foundation/Foundation.h" #endif namespace Catch { class ExceptionTranslatorRegistry : public IExceptionTranslatorRegistry { public: ~ExceptionTranslatorRegistry() { deleteAll( m_translators ); } virtual void registerTranslator( const IExceptionTranslator* translator ) { m_translators.push_back( translator ); } virtual std::string translateActiveException() const { try { #ifdef __OBJC__ // In Objective-C try objective-c exceptions first @try { throw; } @catch (NSException *exception) { return toString( [exception description] ); } #else throw; #endif } catch( std::exception& ex ) { return ex.what(); } catch( std::string& msg ) { return msg; } catch( const char* msg ) { return msg; } catch(...) { return tryTranslators( m_translators.begin() ); } } std::string tryTranslators( std::vector::const_iterator it ) const { if( it == m_translators.end() ) return "Unknown exception"; try { return (*it)->translate(); } catch(...) { return tryTranslators( it+1 ); } } private: std::vector m_translators; }; } namespace Catch { namespace { class RegistryHub : public IRegistryHub, public IMutableRegistryHub { RegistryHub( RegistryHub const& ); void operator=( RegistryHub const& ); public: // IRegistryHub RegistryHub() { } virtual IReporterRegistry const& getReporterRegistry() const { return m_reporterRegistry; } virtual ITestCaseRegistry const& getTestCaseRegistry() const { return m_testCaseRegistry; } virtual IExceptionTranslatorRegistry& getExceptionTranslatorRegistry() { return m_exceptionTranslatorRegistry; } public: // IMutableRegistryHub virtual void registerReporter( std::string const& name, IReporterFactory* factory ) { m_reporterRegistry.registerReporter( name, factory ); } virtual void registerTest( TestCase const& testInfo ) { m_testCaseRegistry.registerTest( testInfo ); } virtual void registerTranslator( const IExceptionTranslator* translator ) { m_exceptionTranslatorRegistry.registerTranslator( translator ); } private: TestRegistry m_testCaseRegistry; ReporterRegistry m_reporterRegistry; ExceptionTranslatorRegistry m_exceptionTranslatorRegistry; }; // Single, global, instance inline RegistryHub*& getTheRegistryHub() { static RegistryHub* theRegistryHub = NULL; if( !theRegistryHub ) theRegistryHub = new RegistryHub(); return theRegistryHub; } } IRegistryHub& getRegistryHub() { return *getTheRegistryHub(); } IMutableRegistryHub& getMutableRegistryHub() { return *getTheRegistryHub(); } void cleanUp() { delete getTheRegistryHub(); getTheRegistryHub() = NULL; cleanUpContext(); } std::string translateActiveException() { return getRegistryHub().getExceptionTranslatorRegistry().translateActiveException(); } } // end namespace Catch // #included from: catch_notimplemented_exception.hpp #define TWOBLUECUBES_CATCH_NOTIMPLEMENTED_EXCEPTION_HPP_INCLUDED #include namespace Catch { NotImplementedException::NotImplementedException( SourceLineInfo const& lineInfo ) : m_lineInfo( lineInfo ) { std::ostringstream oss; oss << lineInfo << ": function "; oss << "not implemented"; m_what = oss.str(); } const char* NotImplementedException::what() const CATCH_NOEXCEPT { return m_what.c_str(); } } // end namespace Catch // #included from: catch_context_impl.hpp #define TWOBLUECUBES_CATCH_CONTEXT_IMPL_HPP_INCLUDED // #included from: catch_stream.hpp #define TWOBLUECUBES_CATCH_STREAM_HPP_INCLUDED // #included from: catch_streambuf.h #define TWOBLUECUBES_CATCH_STREAMBUF_H_INCLUDED #include namespace Catch { class StreamBufBase : public std::streambuf { public: virtual ~StreamBufBase() CATCH_NOEXCEPT; }; } #include #include namespace Catch { template class StreamBufImpl : public StreamBufBase { char data[bufferSize]; WriterF m_writer; public: StreamBufImpl() { setp( data, data + sizeof(data) ); } ~StreamBufImpl() CATCH_NOEXCEPT { sync(); } private: int overflow( int c ) { sync(); if( c != EOF ) { if( pbase() == epptr() ) m_writer( std::string( 1, static_cast( c ) ) ); else sputc( static_cast( c ) ); } return 0; } int sync() { if( pbase() != pptr() ) { m_writer( std::string( pbase(), static_cast( pptr() - pbase() ) ) ); setp( pbase(), epptr() ); } return 0; } }; /////////////////////////////////////////////////////////////////////////// struct OutputDebugWriter { void operator()( std::string const&str ) { writeToDebugConsole( str ); } }; Stream::Stream() : streamBuf( NULL ), isOwned( false ) {} Stream::Stream( std::streambuf* _streamBuf, bool _isOwned ) : streamBuf( _streamBuf ), isOwned( _isOwned ) {} void Stream::release() { if( isOwned ) { delete streamBuf; streamBuf = NULL; isOwned = false; } } } namespace Catch { class Context : public IMutableContext { Context() : m_config( NULL ), m_runner( NULL ), m_resultCapture( NULL ) {} Context( Context const& ); void operator=( Context const& ); public: // IContext virtual IResultCapture& getResultCapture() { return *m_resultCapture; } virtual IRunner& getRunner() { return *m_runner; } virtual size_t getGeneratorIndex( std::string const& fileInfo, size_t totalSize ) { return getGeneratorsForCurrentTest() .getGeneratorInfo( fileInfo, totalSize ) .getCurrentIndex(); } virtual bool advanceGeneratorsForCurrentTest() { IGeneratorsForTest* generators = findGeneratorsForCurrentTest(); return generators && generators->moveNext(); } virtual Ptr getConfig() const { return m_config; } public: // IMutableContext virtual void setResultCapture( IResultCapture* resultCapture ) { m_resultCapture = resultCapture; } virtual void setRunner( IRunner* runner ) { m_runner = runner; } virtual void setConfig( Ptr const& config ) { m_config = config; } friend IMutableContext& getCurrentMutableContext(); private: IGeneratorsForTest* findGeneratorsForCurrentTest() { std::string testName = getResultCapture().getCurrentTestName(); std::map::const_iterator it = m_generatorsByTestName.find( testName ); return it != m_generatorsByTestName.end() ? it->second : NULL; } IGeneratorsForTest& getGeneratorsForCurrentTest() { IGeneratorsForTest* generators = findGeneratorsForCurrentTest(); if( !generators ) { std::string testName = getResultCapture().getCurrentTestName(); generators = createGeneratorsForTest(); m_generatorsByTestName.insert( std::make_pair( testName, generators ) ); } return *generators; } private: Ptr m_config; IRunner* m_runner; IResultCapture* m_resultCapture; std::map m_generatorsByTestName; }; namespace { Context* currentContext = NULL; } IMutableContext& getCurrentMutableContext() { if( !currentContext ) currentContext = new Context(); return *currentContext; } IContext& getCurrentContext() { return getCurrentMutableContext(); } Stream createStream( std::string const& streamName ) { if( streamName == "stdout" ) return Stream( std::cout.rdbuf(), false ); if( streamName == "stderr" ) return Stream( std::cerr.rdbuf(), false ); if( streamName == "debug" ) return Stream( new StreamBufImpl, true ); throw std::domain_error( "Unknown stream: " + streamName ); } void cleanUpContext() { delete currentContext; currentContext = NULL; } } // #included from: catch_console_colour_impl.hpp #define TWOBLUECUBES_CATCH_CONSOLE_COLOUR_IMPL_HPP_INCLUDED namespace Catch { namespace Detail { struct IColourImpl { virtual ~IColourImpl() {} virtual void use( Colour::Code _colourCode ) = 0; }; }} #if defined ( CATCH_PLATFORM_WINDOWS ) ///////////////////////////////////////// #ifndef NOMINMAX #define NOMINMAX #endif #ifdef __AFXDLL #include #else #include #endif namespace Catch { namespace { class Win32ColourImpl : public Detail::IColourImpl { public: Win32ColourImpl() : stdoutHandle( GetStdHandle(STD_OUTPUT_HANDLE) ) { CONSOLE_SCREEN_BUFFER_INFO csbiInfo; GetConsoleScreenBufferInfo( stdoutHandle, &csbiInfo ); originalAttributes = csbiInfo.wAttributes; } virtual void use( Colour::Code _colourCode ) { switch( _colourCode ) { case Colour::None: return setTextAttribute( originalAttributes ); case Colour::White: return setTextAttribute( FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_BLUE ); case Colour::Red: return setTextAttribute( FOREGROUND_RED ); case Colour::Green: return setTextAttribute( FOREGROUND_GREEN ); case Colour::Blue: return setTextAttribute( FOREGROUND_BLUE ); case Colour::Cyan: return setTextAttribute( FOREGROUND_BLUE | FOREGROUND_GREEN ); case Colour::Yellow: return setTextAttribute( FOREGROUND_RED | FOREGROUND_GREEN ); case Colour::Grey: return setTextAttribute( 0 ); case Colour::LightGrey: return setTextAttribute( FOREGROUND_INTENSITY ); case Colour::BrightRed: return setTextAttribute( FOREGROUND_INTENSITY | FOREGROUND_RED ); case Colour::BrightGreen: return setTextAttribute( FOREGROUND_INTENSITY | FOREGROUND_GREEN ); case Colour::BrightWhite: return setTextAttribute( FOREGROUND_INTENSITY | FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_BLUE ); case Colour::Bright: throw std::logic_error( "not a colour" ); } } private: void setTextAttribute( WORD _textAttribute ) { SetConsoleTextAttribute( stdoutHandle, _textAttribute ); } HANDLE stdoutHandle; WORD originalAttributes; }; inline bool shouldUseColourForPlatform() { return true; } static Detail::IColourImpl* platformColourInstance() { static Win32ColourImpl s_instance; return &s_instance; } } // end anon namespace } // end namespace Catch #else // Not Windows - assumed to be POSIX compatible ////////////////////////// #include namespace Catch { namespace { // use POSIX/ ANSI console terminal codes // Thanks to Adam Strzelecki for original contribution // (http://github.com/nanoant) // https://github.com/philsquared/Catch/pull/131 class PosixColourImpl : public Detail::IColourImpl { public: virtual void use( Colour::Code _colourCode ) { switch( _colourCode ) { case Colour::None: case Colour::White: return setColour( "[0m" ); case Colour::Red: return setColour( "[0;31m" ); case Colour::Green: return setColour( "[0;32m" ); case Colour::Blue: return setColour( "[0:34m" ); case Colour::Cyan: return setColour( "[0;36m" ); case Colour::Yellow: return setColour( "[0;33m" ); case Colour::Grey: return setColour( "[1;30m" ); case Colour::LightGrey: return setColour( "[0;37m" ); case Colour::BrightRed: return setColour( "[1;31m" ); case Colour::BrightGreen: return setColour( "[1;32m" ); case Colour::BrightWhite: return setColour( "[1;37m" ); case Colour::Bright: throw std::logic_error( "not a colour" ); } } private: void setColour( const char* _escapeCode ) { std::cout << '\033' << _escapeCode; } }; inline bool shouldUseColourForPlatform() { return isatty(STDOUT_FILENO); } static Detail::IColourImpl* platformColourInstance() { static PosixColourImpl s_instance; return &s_instance; } } // end anon namespace } // end namespace Catch #endif // not Windows namespace Catch { namespace { struct NoColourImpl : Detail::IColourImpl { void use( Colour::Code ) {} static IColourImpl* instance() { static NoColourImpl s_instance; return &s_instance; } }; static bool shouldUseColour() { return shouldUseColourForPlatform() && !isDebuggerActive(); } } Colour::Colour( Code _colourCode ){ use( _colourCode ); } Colour::~Colour(){ use( None ); } void Colour::use( Code _colourCode ) { impl()->use( _colourCode ); } Detail::IColourImpl* Colour::impl() { return shouldUseColour() ? platformColourInstance() : NoColourImpl::instance(); } } // end namespace Catch // #included from: catch_generators_impl.hpp #define TWOBLUECUBES_CATCH_GENERATORS_IMPL_HPP_INCLUDED #include #include #include namespace Catch { struct GeneratorInfo : IGeneratorInfo { GeneratorInfo( std::size_t size ) : m_size( size ), m_currentIndex( 0 ) {} bool moveNext() { if( ++m_currentIndex == m_size ) { m_currentIndex = 0; return false; } return true; } std::size_t getCurrentIndex() const { return m_currentIndex; } std::size_t m_size; std::size_t m_currentIndex; }; /////////////////////////////////////////////////////////////////////////// class GeneratorsForTest : public IGeneratorsForTest { public: ~GeneratorsForTest() { deleteAll( m_generatorsInOrder ); } IGeneratorInfo& getGeneratorInfo( std::string const& fileInfo, std::size_t size ) { std::map::const_iterator it = m_generatorsByName.find( fileInfo ); if( it == m_generatorsByName.end() ) { IGeneratorInfo* info = new GeneratorInfo( size ); m_generatorsByName.insert( std::make_pair( fileInfo, info ) ); m_generatorsInOrder.push_back( info ); return *info; } return *it->second; } bool moveNext() { std::vector::const_iterator it = m_generatorsInOrder.begin(); std::vector::const_iterator itEnd = m_generatorsInOrder.end(); for(; it != itEnd; ++it ) { if( (*it)->moveNext() ) return true; } return false; } private: std::map m_generatorsByName; std::vector m_generatorsInOrder; }; IGeneratorsForTest* createGeneratorsForTest() { return new GeneratorsForTest(); } } // end namespace Catch // #included from: catch_assertionresult.hpp #define TWOBLUECUBES_CATCH_ASSERTIONRESULT_HPP_INCLUDED namespace Catch { AssertionInfo::AssertionInfo( std::string const& _macroName, SourceLineInfo const& _lineInfo, std::string const& _capturedExpression, ResultDisposition::Flags _resultDisposition ) : macroName( _macroName ), lineInfo( _lineInfo ), capturedExpression( _capturedExpression ), resultDisposition( _resultDisposition ) {} AssertionResult::AssertionResult() {} AssertionResult::AssertionResult( AssertionInfo const& info, AssertionResultData const& data ) : m_info( info ), m_resultData( data ) {} AssertionResult::~AssertionResult() {} // Result was a success bool AssertionResult::succeeded() const { return Catch::isOk( m_resultData.resultType ); } // Result was a success, or failure is suppressed bool AssertionResult::isOk() const { return Catch::isOk( m_resultData.resultType ) || shouldSuppressFailure( m_info.resultDisposition ); } ResultWas::OfType AssertionResult::getResultType() const { return m_resultData.resultType; } bool AssertionResult::hasExpression() const { return !m_info.capturedExpression.empty(); } bool AssertionResult::hasMessage() const { return !m_resultData.message.empty(); } std::string AssertionResult::getExpression() const { if( shouldNegate( m_info.resultDisposition ) ) return "!" + m_info.capturedExpression; else return m_info.capturedExpression; } std::string AssertionResult::getExpressionInMacro() const { if( m_info.macroName.empty() ) return m_info.capturedExpression; else return m_info.macroName + "( " + m_info.capturedExpression + " )"; } bool AssertionResult::hasExpandedExpression() const { return hasExpression() && getExpandedExpression() != getExpression(); } std::string AssertionResult::getExpandedExpression() const { return m_resultData.reconstructedExpression; } std::string AssertionResult::getMessage() const { return m_resultData.message; } SourceLineInfo AssertionResult::getSourceInfo() const { return m_info.lineInfo; } std::string AssertionResult::getTestMacroName() const { return m_info.macroName; } } // end namespace Catch // #included from: catch_expressionresult_builder.hpp #define TWOBLUECUBES_CATCH_EXPRESSIONRESULT_BUILDER_HPP_INCLUDED #include namespace Catch { ExpressionResultBuilder::ExpressionResultBuilder( ResultWas::OfType resultType ) { m_data.resultType = resultType; } ExpressionResultBuilder::ExpressionResultBuilder( ExpressionResultBuilder const& other ) : m_data( other.m_data ), m_exprComponents( other.m_exprComponents ) { m_stream << other.m_stream.str(); } ExpressionResultBuilder& ExpressionResultBuilder::operator=(ExpressionResultBuilder const& other ) { m_data = other.m_data; m_exprComponents = other.m_exprComponents; m_stream.str(""); m_stream << other.m_stream.str(); return *this; } ExpressionResultBuilder& ExpressionResultBuilder::setResultType( ResultWas::OfType result ) { m_data.resultType = result; return *this; } ExpressionResultBuilder& ExpressionResultBuilder::setResultType( bool result ) { m_data.resultType = result ? ResultWas::Ok : ResultWas::ExpressionFailed; return *this; } ExpressionResultBuilder& ExpressionResultBuilder::endExpression( ResultDisposition::Flags resultDisposition ) { m_exprComponents.shouldNegate = shouldNegate( resultDisposition ); return *this; } ExpressionResultBuilder& ExpressionResultBuilder::setLhs( std::string const& lhs ) { m_exprComponents.lhs = lhs; return *this; } ExpressionResultBuilder& ExpressionResultBuilder::setRhs( std::string const& rhs ) { m_exprComponents.rhs = rhs; return *this; } ExpressionResultBuilder& ExpressionResultBuilder::setOp( std::string const& op ) { m_exprComponents.op = op; return *this; } AssertionResult ExpressionResultBuilder::buildResult( AssertionInfo const& info ) const { assert( m_data.resultType != ResultWas::Unknown ); AssertionResultData data = m_data; // Flip bool results if shouldNegate is set if( m_exprComponents.shouldNegate && data.resultType == ResultWas::Ok ) data.resultType = ResultWas::ExpressionFailed; else if( m_exprComponents.shouldNegate && data.resultType == ResultWas::ExpressionFailed ) data.resultType = ResultWas::Ok; data.message = m_stream.str(); data.reconstructedExpression = reconstructExpression( info ); if( m_exprComponents.shouldNegate ) { if( m_exprComponents.op == "" ) data.reconstructedExpression = "!" + data.reconstructedExpression; else data.reconstructedExpression = "!(" + data.reconstructedExpression + ")"; } return AssertionResult( info, data ); } std::string ExpressionResultBuilder::reconstructExpression( AssertionInfo const& info ) const { if( m_exprComponents.op == "" ) return m_exprComponents.lhs.empty() ? info.capturedExpression : m_exprComponents.op + m_exprComponents.lhs; else if( m_exprComponents.op == "matches" ) return m_exprComponents.lhs + " " + m_exprComponents.rhs; else if( m_exprComponents.op != "!" ) { if( m_exprComponents.lhs.size() + m_exprComponents.rhs.size() < 40 && m_exprComponents.lhs.find("\n") == std::string::npos && m_exprComponents.rhs.find("\n") == std::string::npos ) return m_exprComponents.lhs + " " + m_exprComponents.op + " " + m_exprComponents.rhs; else return m_exprComponents.lhs + "\n" + m_exprComponents.op + "\n" + m_exprComponents.rhs; } else return "{can't expand - use " + info.macroName + "_FALSE( " + info.capturedExpression.substr(1) + " ) instead of " + info.macroName + "( " + info.capturedExpression + " ) for better diagnostics}"; } } // end namespace Catch // #included from: catch_test_case_info.hpp #define TWOBLUECUBES_CATCH_TEST_CASE_INFO_HPP_INCLUDED namespace Catch { inline bool isSpecialTag( std::string const& tag ) { return tag == "." || tag == "hide" || tag == "!hide" || tag == "!throws"; } inline bool isReservedTag( std::string const& tag ) { return !isSpecialTag( tag ) && tag.size() > 0 && !isalnum( tag[0] ); } TestCase makeTestCase( ITestCase* _testCase, std::string const& _className, std::string const& _name, std::string const& _descOrTags, SourceLineInfo const& _lineInfo ) { std::string desc = _descOrTags; bool isHidden( startsWith( _name, "./" ) ); // Legacy support std::set tags; TagExtracter( tags ).parse( desc ); for( std::set::const_iterator it = tags.begin(), itEnd = tags.end(); it != itEnd; ++it ) if( isReservedTag( *it ) ) { { Colour colourGuard( Colour::Red ); std::cerr << "Tag name [" << *it << "] not allowed.\n" << "Tag names starting with non alpha-numeric characters are reserved\n"; } { Colour colourGuard( Colour::FileName ); std::cerr << _lineInfo << std::endl; } exit(1); } if( tags.find( "hide" ) != tags.end() || tags.find( "." ) != tags.end() ) isHidden = true; if( isHidden ) { tags.insert( "hide" ); tags.insert( "." ); } TestCaseInfo info( _name, _className, desc, tags, isHidden, _lineInfo ); return TestCase( _testCase, info ); } TestCaseInfo::TestCaseInfo( std::string const& _name, std::string const& _className, std::string const& _description, std::set const& _tags, bool _isHidden, SourceLineInfo const& _lineInfo ) : name( _name ), className( _className ), description( _description ), tags( _tags ), lineInfo( _lineInfo ), isHidden( _isHidden ), throws( false ) { std::ostringstream oss; for( std::set::const_iterator it = _tags.begin(), itEnd = _tags.end(); it != itEnd; ++it ) { oss << "[" << *it << "]"; if( *it == "!throws" ) throws = true; } tagsAsString = oss.str(); } TestCaseInfo::TestCaseInfo( TestCaseInfo const& other ) : name( other.name ), className( other.className ), description( other.description ), tags( other.tags ), tagsAsString( other.tagsAsString ), lineInfo( other.lineInfo ), isHidden( other.isHidden ), throws( other.throws ) {} TestCase::TestCase( ITestCase* testCase, TestCaseInfo const& info ) : TestCaseInfo( info ), test( testCase ) {} TestCase::TestCase( TestCase const& other ) : TestCaseInfo( other ), test( other.test ) {} TestCase TestCase::withName( std::string const& _newName ) const { TestCase other( *this ); other.name = _newName; return other; } void TestCase::invoke() const { test->invoke(); } bool TestCase::isHidden() const { return TestCaseInfo::isHidden; } bool TestCase::throws() const { return TestCaseInfo::throws; } bool TestCase::hasTag( std::string const& tag ) const { return tags.find( toLower( tag ) ) != tags.end(); } bool TestCase::matchesTags( std::string const& tagPattern ) const { TagExpression exp; TagExpressionParser( exp ).parse( tagPattern ); return exp.matches( tags ); } std::set const& TestCase::getTags() const { return tags; } void TestCase::swap( TestCase& other ) { test.swap( other.test ); className.swap( other.className ); name.swap( other.name ); description.swap( other.description ); std::swap( lineInfo, other.lineInfo ); } bool TestCase::operator == ( TestCase const& other ) const { return test.get() == other.test.get() && name == other.name && className == other.className; } bool TestCase::operator < ( TestCase const& other ) const { return name < other.name; } TestCase& TestCase::operator = ( TestCase const& other ) { TestCase temp( other ); swap( temp ); return *this; } TestCaseInfo const& TestCase::getTestCaseInfo() const { return *this; } } // end namespace Catch // #included from: catch_tags.hpp #define TWOBLUECUBES_CATCH_TAGS_HPP_INCLUDED namespace Catch { TagParser::~TagParser() {} void TagParser::parse( std::string const& str ) { std::size_t pos = 0; while( pos < str.size() ) { char c = str[pos]; if( c == '[' ) { std::size_t end = str.find_first_of( ']', pos ); if( end != std::string::npos ) { acceptTag( str.substr( pos+1, end-pos-1 ) ); pos = end+1; } else { acceptChar( c ); pos++; } } else { acceptChar( c ); pos++; } } endParse(); } TagExtracter::TagExtracter( std::set& tags ) : m_tags( tags ) {} TagExtracter::~TagExtracter() {} void TagExtracter::parse( std::string& description ) { TagParser::parse( description ); description = m_remainder; } void TagExtracter::acceptTag( std::string const& tag ) { m_tags.insert( toLower( tag ) ); } void TagExtracter::acceptChar( char c ) { m_remainder += c; } Tag::Tag() : m_isNegated( false ) {} Tag::Tag( std::string const& name, bool isNegated ) : m_name( name ), m_isNegated( isNegated ) {} std::string Tag::getName() const { return m_name; } bool Tag::isNegated() const { return m_isNegated; } bool Tag::operator ! () const { return m_name.empty(); } void TagSet::add( Tag const& tag ) { m_tags.insert( std::make_pair( toLower( tag.getName() ), tag ) ); } bool TagSet::empty() const { return m_tags.empty(); } bool TagSet::matches( std::set const& tags ) const { for( TagMap::const_iterator it = m_tags.begin(), itEnd = m_tags.end(); it != itEnd; ++it ) { bool found = tags.find( it->first ) != tags.end(); if( found == it->second.isNegated() ) return false; } return true; } bool TagExpression::matches( std::set const& tags ) const { for( std::vector::const_iterator it = m_tagSets.begin(), itEnd = m_tagSets.end(); it != itEnd; ++it ) if( it->matches( tags ) ) return true; return false; } TagExpressionParser::TagExpressionParser( TagExpression& exp ) : m_isNegated( false ), m_exp( exp ) {} TagExpressionParser::~TagExpressionParser() {} void TagExpressionParser::acceptTag( std::string const& tag ) { m_currentTagSet.add( Tag( tag, m_isNegated ) ); m_isNegated = false; } void TagExpressionParser::acceptChar( char c ) { switch( c ) { case '~': m_isNegated = true; break; case ',': m_exp.m_tagSets.push_back( m_currentTagSet ); m_currentTagSet = TagSet(); break; } } void TagExpressionParser::endParse() { if( !m_currentTagSet.empty() ) m_exp.m_tagSets.push_back( m_currentTagSet ); } } // end namespace Catch // #included from: catch_test_spec.hpp #define TWOBLUECUBES_CATCH_TEST_SPEC_HPP_INCLUDED namespace Catch { TestCaseFilter::TestCaseFilter( std::string const& testSpec, IfFilterMatches::DoWhat matchBehaviour ) : m_stringToMatch( toLower( testSpec ) ), m_filterType( matchBehaviour ), m_wildcardPosition( NoWildcard ) { if( m_filterType == IfFilterMatches::AutoDetectBehaviour ) { if( startsWith( m_stringToMatch, "exclude:" ) ) { m_stringToMatch = m_stringToMatch.substr( 8 ); m_filterType = IfFilterMatches::ExcludeTests; } else if( startsWith( m_stringToMatch, "~" ) ) { m_stringToMatch = m_stringToMatch.substr( 1 ); m_filterType = IfFilterMatches::ExcludeTests; } else { m_filterType = IfFilterMatches::IncludeTests; } } if( startsWith( m_stringToMatch, "*" ) ) { m_stringToMatch = m_stringToMatch.substr( 1 ); m_wildcardPosition = (WildcardPosition)( m_wildcardPosition | WildcardAtStart ); } if( endsWith( m_stringToMatch, "*" ) ) { m_stringToMatch = m_stringToMatch.substr( 0, m_stringToMatch.size()-1 ); m_wildcardPosition = (WildcardPosition)( m_wildcardPosition | WildcardAtEnd ); } } IfFilterMatches::DoWhat TestCaseFilter::getFilterType() const { return m_filterType; } bool TestCaseFilter::shouldInclude( TestCase const& testCase ) const { return isMatch( testCase ) == (m_filterType == IfFilterMatches::IncludeTests); } #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunreachable-code" #endif bool TestCaseFilter::isMatch( TestCase const& testCase ) const { std::string name = testCase.getTestCaseInfo().name; toLowerInPlace( name ); switch( m_wildcardPosition ) { case NoWildcard: return m_stringToMatch == name; case WildcardAtStart: return endsWith( name, m_stringToMatch ); case WildcardAtEnd: return startsWith( name, m_stringToMatch ); case WildcardAtBothEnds: return contains( name, m_stringToMatch ); } throw std::logic_error( "Unhandled wildcard type" ); } #ifdef __clang__ #pragma clang diagnostic pop #endif TestCaseFilters::TestCaseFilters( std::string const& name ) : m_name( name ) {} std::string TestCaseFilters::getName() const { return m_name; } void TestCaseFilters::addFilter( TestCaseFilter const& filter ) { if( filter.getFilterType() == IfFilterMatches::ExcludeTests ) m_exclusionFilters.push_back( filter ); else m_inclusionFilters.push_back( filter ); } void TestCaseFilters::addTags( std::string const& tagPattern ) { TagExpression exp; TagExpressionParser( exp ).parse( tagPattern ); m_tagExpressions.push_back( exp ); } bool TestCaseFilters::shouldInclude( TestCase const& testCase ) const { if( !m_tagExpressions.empty() ) { std::vector::const_iterator it = m_tagExpressions.begin(); std::vector::const_iterator itEnd = m_tagExpressions.end(); for(; it != itEnd; ++it ) if( it->matches( testCase.getTags() ) ) break; if( it == itEnd ) return false; } if( !m_inclusionFilters.empty() ) { std::vector::const_iterator it = m_inclusionFilters.begin(); std::vector::const_iterator itEnd = m_inclusionFilters.end(); for(; it != itEnd; ++it ) if( it->shouldInclude( testCase ) ) break; if( it == itEnd ) return false; } else if( m_exclusionFilters.empty() && m_tagExpressions.empty() ) { return !testCase.isHidden(); } std::vector::const_iterator it = m_exclusionFilters.begin(); std::vector::const_iterator itEnd = m_exclusionFilters.end(); for(; it != itEnd; ++it ) if( !it->shouldInclude( testCase ) ) return false; return true; } } // #included from: catch_version.hpp #define TWOBLUECUBES_CATCH_VERSION_HPP_INCLUDED namespace Catch { // These numbers are maintained by a script Version libraryVersion( 1, 0, 43, "master" ); } // #included from: catch_message.hpp #define TWOBLUECUBES_CATCH_MESSAGE_HPP_INCLUDED namespace Catch { MessageInfo::MessageInfo( std::string const& _macroName, SourceLineInfo const& _lineInfo, ResultWas::OfType _type ) : macroName( _macroName ), lineInfo( _lineInfo ), type( _type ), sequence( ++globalCount ) {} // This may need protecting if threading support is added unsigned int MessageInfo::globalCount = 0; //////////////////////////////////////////////////////////////////////////// ScopedMessage::ScopedMessage( MessageBuilder const& builder ) : m_info( builder.m_info ) { m_info.message = builder.m_stream.str(); getResultCapture().pushScopedMessage( m_info ); } ScopedMessage::~ScopedMessage() { getResultCapture().popScopedMessage( m_info ); } } // end namespace Catch // #included from: catch_legacy_reporter_adapter.hpp #define TWOBLUECUBES_CATCH_LEGACY_REPORTER_ADAPTER_HPP_INCLUDED // #included from: catch_legacy_reporter_adapter.h #define TWOBLUECUBES_CATCH_LEGACY_REPORTER_ADAPTER_H_INCLUDED namespace Catch { // Deprecated struct IReporter : IShared { virtual ~IReporter(); virtual bool shouldRedirectStdout() const = 0; virtual void StartTesting() = 0; virtual void EndTesting( Totals const& totals ) = 0; virtual void StartGroup( std::string const& groupName ) = 0; virtual void EndGroup( std::string const& groupName, Totals const& totals ) = 0; virtual void StartTestCase( TestCaseInfo const& testInfo ) = 0; virtual void EndTestCase( TestCaseInfo const& testInfo, Totals const& totals, std::string const& stdOut, std::string const& stdErr ) = 0; virtual void StartSection( std::string const& sectionName, std::string const& description ) = 0; virtual void EndSection( std::string const& sectionName, Counts const& assertions ) = 0; virtual void NoAssertionsInSection( std::string const& sectionName ) = 0; virtual void NoAssertionsInTestCase( std::string const& testName ) = 0; virtual void Aborted() = 0; virtual void Result( AssertionResult const& result ) = 0; }; class LegacyReporterAdapter : public SharedImpl { public: LegacyReporterAdapter( Ptr const& legacyReporter ); virtual ~LegacyReporterAdapter(); virtual ReporterPreferences getPreferences() const; virtual void noMatchingTestCases( std::string const& ); virtual void testRunStarting( TestRunInfo const& ); virtual void testGroupStarting( GroupInfo const& groupInfo ); virtual void testCaseStarting( TestCaseInfo const& testInfo ); virtual void sectionStarting( SectionInfo const& sectionInfo ); virtual void assertionStarting( AssertionInfo const& ); virtual bool assertionEnded( AssertionStats const& assertionStats ); virtual void sectionEnded( SectionStats const& sectionStats ); virtual void testCaseEnded( TestCaseStats const& testCaseStats ); virtual void testGroupEnded( TestGroupStats const& testGroupStats ); virtual void testRunEnded( TestRunStats const& testRunStats ); private: Ptr m_legacyReporter; }; } namespace Catch { LegacyReporterAdapter::LegacyReporterAdapter( Ptr const& legacyReporter ) : m_legacyReporter( legacyReporter ) {} LegacyReporterAdapter::~LegacyReporterAdapter() {} ReporterPreferences LegacyReporterAdapter::getPreferences() const { ReporterPreferences prefs; prefs.shouldRedirectStdOut = m_legacyReporter->shouldRedirectStdout(); return prefs; } void LegacyReporterAdapter::noMatchingTestCases( std::string const& ) {} void LegacyReporterAdapter::testRunStarting( TestRunInfo const& ) { m_legacyReporter->StartTesting(); } void LegacyReporterAdapter::testGroupStarting( GroupInfo const& groupInfo ) { m_legacyReporter->StartGroup( groupInfo.name ); } void LegacyReporterAdapter::testCaseStarting( TestCaseInfo const& testInfo ) { m_legacyReporter->StartTestCase( testInfo ); } void LegacyReporterAdapter::sectionStarting( SectionInfo const& sectionInfo ) { m_legacyReporter->StartSection( sectionInfo.name, sectionInfo.description ); } void LegacyReporterAdapter::assertionStarting( AssertionInfo const& ) { // Not on legacy interface } bool LegacyReporterAdapter::assertionEnded( AssertionStats const& assertionStats ) { if( assertionStats.assertionResult.getResultType() != ResultWas::Ok ) { for( std::vector::const_iterator it = assertionStats.infoMessages.begin(), itEnd = assertionStats.infoMessages.end(); it != itEnd; ++it ) { if( it->type == ResultWas::Info ) { ExpressionResultBuilder expressionBuilder( it->type ); expressionBuilder << it->message; AssertionInfo info( it->macroName, it->lineInfo, "", ResultDisposition::Normal ); AssertionResult result = expressionBuilder.buildResult( info ); m_legacyReporter->Result( result ); } } } m_legacyReporter->Result( assertionStats.assertionResult ); return true; } void LegacyReporterAdapter::sectionEnded( SectionStats const& sectionStats ) { if( sectionStats.missingAssertions ) m_legacyReporter->NoAssertionsInSection( sectionStats.sectionInfo.name ); m_legacyReporter->EndSection( sectionStats.sectionInfo.name, sectionStats.assertions ); } void LegacyReporterAdapter::testCaseEnded( TestCaseStats const& testCaseStats ) { m_legacyReporter->EndTestCase ( testCaseStats.testInfo, testCaseStats.totals, testCaseStats.stdOut, testCaseStats.stdErr ); } void LegacyReporterAdapter::testGroupEnded( TestGroupStats const& testGroupStats ) { if( testGroupStats.aborting ) m_legacyReporter->Aborted(); m_legacyReporter->EndGroup( testGroupStats.groupInfo.name, testGroupStats.totals ); } void LegacyReporterAdapter::testRunEnded( TestRunStats const& testRunStats ) { m_legacyReporter->EndTesting( testRunStats.totals ); } } // #included from: catch_timer.hpp #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wc++11-long-long" #endif #ifdef CATCH_PLATFORM_WINDOWS #include #else #include #endif namespace Catch { namespace { #ifdef CATCH_PLATFORM_WINDOWS uint64_t getCurrentTicks() { static uint64_t hz=0, hzo=0; if (!hz) { QueryPerformanceFrequency((LARGE_INTEGER*)&hz); QueryPerformanceCounter((LARGE_INTEGER*)&hzo); } uint64_t t; QueryPerformanceCounter((LARGE_INTEGER*)&t); return ((t-hzo)*1000000)/hz; } #else uint64_t getCurrentTicks() { timeval t; gettimeofday(&t,NULL); return (uint64_t)t.tv_sec * 1000000ull + (uint64_t)t.tv_usec; } #endif } void Timer::start() { m_ticks = getCurrentTicks(); } unsigned int Timer::getElapsedNanoseconds() const { return (unsigned int)(getCurrentTicks() - m_ticks); } unsigned int Timer::getElapsedMilliseconds() const { return (unsigned int)((getCurrentTicks() - m_ticks)/1000); } double Timer::getElapsedSeconds() const { return (getCurrentTicks() - m_ticks)/1000000.0; } } // namespace Catch #ifdef __clang__ #pragma clang diagnostic pop #endif // #included from: catch_common.hpp #define TWOBLUECUBES_CATCH_COMMON_HPP_INCLUDED namespace Catch { bool startsWith( std::string const& s, std::string const& prefix ) { return s.size() >= prefix.size() && s.substr( 0, prefix.size() ) == prefix; } bool endsWith( std::string const& s, std::string const& suffix ) { return s.size() >= suffix.size() && s.substr( s.size()-suffix.size(), suffix.size() ) == suffix; } bool contains( std::string const& s, std::string const& infix ) { return s.find( infix ) != std::string::npos; } void toLowerInPlace( std::string& s ) { std::transform( s.begin(), s.end(), s.begin(), ::tolower ); } std::string toLower( std::string const& s ) { std::string lc = s; toLowerInPlace( lc ); return lc; } std::string trim( std::string const& str ) { static char const* whitespaceChars = "\n\r\t "; std::string::size_type start = str.find_first_not_of( whitespaceChars ); std::string::size_type end = str.find_last_not_of( whitespaceChars ); return start != std::string::npos ? str.substr( start, 1+end-start ) : ""; } pluralise::pluralise( std::size_t count, std::string const& label ) : m_count( count ), m_label( label ) {} std::ostream& operator << ( std::ostream& os, pluralise const& pluraliser ) { os << pluraliser.m_count << " " << pluraliser.m_label; if( pluraliser.m_count != 1 ) os << "s"; return os; } SourceLineInfo::SourceLineInfo() : line( 0 ){} SourceLineInfo::SourceLineInfo( char const* _file, std::size_t _line ) : file( _file ), line( _line ) {} SourceLineInfo::SourceLineInfo( SourceLineInfo const& other ) : file( other.file ), line( other.line ) {} bool SourceLineInfo::empty() const { return file.empty(); } bool SourceLineInfo::operator == ( SourceLineInfo const& other ) const { return line == other.line && file == other.file; } std::ostream& operator << ( std::ostream& os, SourceLineInfo const& info ) { #ifndef __GNUG__ os << info.file << "(" << info.line << ")"; #else os << info.file << ":" << info.line; #endif return os; } void throwLogicError( std::string const& message, SourceLineInfo const& locationInfo ) { std::ostringstream oss; oss << locationInfo << ": Internal Catch error: '" << message << "'"; if( isTrue( true )) throw std::logic_error( oss.str() ); } } // #included from: catch_section.hpp #define TWOBLUECUBES_CATCH_SECTION_HPP_INCLUDED namespace Catch { Section::Section( SourceLineInfo const& lineInfo, std::string const& name, std::string const& description ) : m_info( name, description, lineInfo ), m_sectionIncluded( getCurrentContext().getResultCapture().sectionStarted( m_info, m_assertions ) ) { m_timer.start(); } Section::~Section() { if( m_sectionIncluded ) getCurrentContext().getResultCapture().sectionEnded( m_info, m_assertions, m_timer.getElapsedSeconds() ); } // This indicates whether the section should be executed or not Section::operator bool() { return m_sectionIncluded; } } // end namespace Catch // #included from: catch_debugger.hpp #define TWOBLUECUBES_CATCH_DEBUGGER_HPP_INCLUDED #include #ifdef CATCH_PLATFORM_MAC #include #include #include #include #include namespace Catch{ // The following function is taken directly from the following technical note: // http://developer.apple.com/library/mac/#qa/qa2004/qa1361.html // Returns true if the current process is being debugged (either // running under the debugger or has a debugger attached post facto). bool isDebuggerActive(){ int mib[4]; struct kinfo_proc info; size_t size; // Initialize the flags so that, if sysctl fails for some bizarre // reason, we get a predictable result. info.kp_proc.p_flag = 0; // Initialize mib, which tells sysctl the info we want, in this case // we're looking for information about a specific process ID. mib[0] = CTL_KERN; mib[1] = KERN_PROC; mib[2] = KERN_PROC_PID; mib[3] = getpid(); // Call sysctl. size = sizeof(info); if( sysctl(mib, sizeof(mib) / sizeof(*mib), &info, &size, NULL, 0) != 0 ) { std::cerr << "\n** Call to sysctl failed - unable to determine if debugger is active **\n" << std::endl; return false; } // We're being debugged if the P_TRACED flag is set. return ( (info.kp_proc.p_flag & P_TRACED) != 0 ); } } // namespace Catch #elif defined(_MSC_VER) extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent(); namespace Catch { bool isDebuggerActive() { return IsDebuggerPresent() != 0; } } #elif defined(__MINGW32__) extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent(); namespace Catch { bool isDebuggerActive() { return IsDebuggerPresent() != 0; } } #else namespace Catch { inline bool isDebuggerActive() { return false; } } #endif // Platform #ifdef CATCH_PLATFORM_WINDOWS extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA( const char* ); namespace Catch { void writeToDebugConsole( std::string const& text ) { ::OutputDebugStringA( text.c_str() ); } } #else namespace Catch { void writeToDebugConsole( std::string const& text ) { // !TBD: Need a version for Mac/ XCode and other IDEs std::cout << text; } } #endif // Platform // #included from: catch_tostring.hpp #define TWOBLUECUBES_CATCH_TOSTRING_HPP_INCLUDED namespace Catch { std::string toString( std::string const& value ) { std::string s = value; if( getCurrentContext().getConfig()->showInvisibles() ) { for(size_t i = 0; i < s.size(); ++i ) { std::string subs; switch( s[i] ) { case '\n': subs = "\\n"; break; case '\t': subs = "\\t"; break; default: break; } if( !subs.empty() ) { s = s.substr( 0, i ) + subs + s.substr( i+1 ); ++i; } } } return "\"" + s + "\""; } std::string toString( std::wstring const& value ) { std::string s; s.reserve( value.size() ); for(size_t i = 0; i < value.size(); ++i ) s += value[i] <= 0xff ? static_cast( value[i] ) : '?'; return toString( s ); } std::string toString( const char* const value ) { return value ? Catch::toString( std::string( value ) ) : std::string( "{null string}" ); } std::string toString( char* const value ) { return Catch::toString( static_cast( value ) ); } std::string toString( int value ) { std::ostringstream oss; oss << value; return oss.str(); } std::string toString( unsigned long value ) { std::ostringstream oss; if( value > 8192 ) oss << "0x" << std::hex << value; else oss << value; return oss.str(); } std::string toString( unsigned int value ) { return toString( static_cast( value ) ); } std::string toString( const double value ) { std::ostringstream oss; oss << std::setprecision( 10 ) << std::fixed << value; std::string d = oss.str(); std::size_t i = d.find_last_not_of( '0' ); if( i != std::string::npos && i != d.size()-1 ) { if( d[i] == '.' ) i++; d = d.substr( 0, i+1 ); } return d; } std::string toString( bool value ) { return value ? "true" : "false"; } std::string toString( char value ) { return value < ' ' ? toString( static_cast( value ) ) : Detail::makeString( value ); } std::string toString( signed char value ) { return toString( static_cast( value ) ); } std::string toString( unsigned char value ) { return toString( static_cast( value ) ); } #ifdef CATCH_CONFIG_CPP11_NULLPTR std::string toString( std::nullptr_t ) { return "nullptr"; } #endif #ifdef __OBJC__ std::string toString( NSString const * const& nsstring ) { if( !nsstring ) return "nil"; return std::string( "@\"" ) + [nsstring UTF8String] + "\""; } std::string toString( NSString * CATCH_ARC_STRONG const& nsstring ) { if( !nsstring ) return "nil"; return std::string( "@\"" ) + [nsstring UTF8String] + "\""; } std::string toString( NSObject* const& nsObject ) { return toString( [nsObject description] ); } #endif } // end namespace Catch // #included from: ../reporters/catch_reporter_xml.hpp #define TWOBLUECUBES_CATCH_REPORTER_XML_HPP_INCLUDED // #included from: catch_reporter_bases.hpp #define TWOBLUECUBES_CATCH_REPORTER_BASES_HPP_INCLUDED namespace Catch { struct StreamingReporterBase : SharedImpl { StreamingReporterBase( ReporterConfig const& _config ) : m_config( _config.fullConfig() ), stream( _config.stream() ) {} virtual ~StreamingReporterBase(); virtual void noMatchingTestCases( std::string const& ) {} virtual void testRunStarting( TestRunInfo const& _testRunInfo ) { currentTestRunInfo = _testRunInfo; } virtual void testGroupStarting( GroupInfo const& _groupInfo ) { currentGroupInfo = _groupInfo; } virtual void testCaseStarting( TestCaseInfo const& _testInfo ) { currentTestCaseInfo = _testInfo; } virtual void sectionStarting( SectionInfo const& _sectionInfo ) { m_sectionStack.push_back( _sectionInfo ); } virtual void sectionEnded( SectionStats const& /* _sectionStats */ ) { m_sectionStack.pop_back(); } virtual void testCaseEnded( TestCaseStats const& /* _testCaseStats */ ) { currentTestCaseInfo.reset(); assert( m_sectionStack.empty() ); } virtual void testGroupEnded( TestGroupStats const& /* _testGroupStats */ ) { currentGroupInfo.reset(); } virtual void testRunEnded( TestRunStats const& /* _testRunStats */ ) { currentTestCaseInfo.reset(); currentGroupInfo.reset(); currentTestRunInfo.reset(); } Ptr m_config; std::ostream& stream; LazyStat currentTestRunInfo; LazyStat currentGroupInfo; LazyStat currentTestCaseInfo; std::vector m_sectionStack; }; struct CumulativeReporterBase : SharedImpl { template struct Node : SharedImpl<> { explicit Node( T const& _value ) : value( _value ) {} virtual ~Node() {} typedef std::vector > ChildNodes; T value; ChildNodes children; }; struct SectionNode : SharedImpl<> { explicit SectionNode( SectionStats const& _stats ) : stats( _stats ) {} virtual ~SectionNode(); bool operator == ( SectionNode const& other ) const { return stats.sectionInfo.lineInfo == other.stats.sectionInfo.lineInfo; } bool operator == ( Ptr const& other ) const { return operator==( *other ); } SectionStats stats; typedef std::vector > ChildSections; typedef std::vector Assertions; ChildSections childSections; Assertions assertions; std::string stdOut; std::string stdErr; }; struct BySectionInfo { BySectionInfo( SectionInfo const& other ) : m_other( other ) {} bool operator() ( Ptr const& node ) const { return node->stats.sectionInfo.lineInfo == m_other.lineInfo; } private: BySectionInfo& operator=( BySectionInfo const& other ); // = delete; SectionInfo const& m_other; }; typedef Node TestCaseNode; typedef Node TestGroupNode; typedef Node TestRunNode; CumulativeReporterBase( ReporterConfig const& _config ) : m_config( _config.fullConfig() ), stream( _config.stream() ) {} ~CumulativeReporterBase(); virtual void testRunStarting( TestRunInfo const& ) {} virtual void testGroupStarting( GroupInfo const& ) {} virtual void testCaseStarting( TestCaseInfo const& ) {} virtual void sectionStarting( SectionInfo const& sectionInfo ) { SectionStats incompleteStats( sectionInfo, Counts(), 0, false ); Ptr node; if( m_sectionStack.empty() ) { if( !m_rootSection ) m_rootSection = new SectionNode( incompleteStats ); node = m_rootSection; } else { SectionNode& parentNode = *m_sectionStack.back(); SectionNode::ChildSections::const_iterator it = std::find_if( parentNode.childSections.begin(), parentNode.childSections.end(), BySectionInfo( sectionInfo ) ); if( it == parentNode.childSections.end() ) { node = new SectionNode( incompleteStats ); parentNode.childSections.push_back( node ); } else node = *it; } m_sectionStack.push_back( node ); m_deepestSection = node; } virtual void assertionStarting( AssertionInfo const& ) {} virtual bool assertionEnded( AssertionStats const& assertionStats ) { assert( !m_sectionStack.empty() ); SectionNode& sectionNode = *m_sectionStack.back(); sectionNode.assertions.push_back( assertionStats ); return true; } virtual void sectionEnded( SectionStats const& sectionStats ) { assert( !m_sectionStack.empty() ); SectionNode& node = *m_sectionStack.back(); node.stats = sectionStats; m_sectionStack.pop_back(); } virtual void testCaseEnded( TestCaseStats const& testCaseStats ) { Ptr node = new TestCaseNode( testCaseStats ); assert( m_sectionStack.size() == 0 ); node->children.push_back( m_rootSection ); m_testCases.push_back( node ); m_rootSection.reset(); assert( m_deepestSection ); m_deepestSection->stdOut = testCaseStats.stdOut; m_deepestSection->stdErr = testCaseStats.stdErr; } virtual void testGroupEnded( TestGroupStats const& testGroupStats ) { Ptr node = new TestGroupNode( testGroupStats ); node->children.swap( m_testCases ); m_testGroups.push_back( node ); } virtual void testRunEnded( TestRunStats const& testRunStats ) { Ptr node = new TestRunNode( testRunStats ); node->children.swap( m_testGroups ); m_testRuns.push_back( node ); testRunEndedCumulative(); } virtual void testRunEndedCumulative() = 0; Ptr m_config; std::ostream& stream; std::vector m_assertions; std::vector > > m_sections; std::vector > m_testCases; std::vector > m_testGroups; std::vector > m_testRuns; Ptr m_rootSection; Ptr m_deepestSection; std::vector > m_sectionStack; }; } // end namespace Catch // #included from: ../internal/catch_reporter_registrars.hpp #define TWOBLUECUBES_CATCH_REPORTER_REGISTRARS_HPP_INCLUDED namespace Catch { template class LegacyReporterRegistrar { class ReporterFactory : public IReporterFactory { virtual IStreamingReporter* create( ReporterConfig const& config ) const { return new LegacyReporterAdapter( new T( config ) ); } virtual std::string getDescription() const { return T::getDescription(); } }; public: LegacyReporterRegistrar( std::string const& name ) { getMutableRegistryHub().registerReporter( name, new ReporterFactory() ); } }; template class ReporterRegistrar { class ReporterFactory : public IReporterFactory { // *** Please Note ***: // - If you end up here looking at a compiler error because it's trying to register // your custom reporter class be aware that the native reporter interface has changed // to IStreamingReporter. The "legacy" interface, IReporter, is still supported via // an adapter. Just use REGISTER_LEGACY_REPORTER to take advantage of the adapter. // However please consider updating to the new interface as the old one is now // deprecated and will probably be removed quite soon! // Please contact me via github if you have any questions at all about this. // In fact, ideally, please contact me anyway to let me know you've hit this - as I have // no idea who is actually using custom reporters at all (possibly no-one!). // The new interface is designed to minimise exposure to interface changes in the future. virtual IStreamingReporter* create( ReporterConfig const& config ) const { return new T( config ); } virtual std::string getDescription() const { return T::getDescription(); } }; public: ReporterRegistrar( std::string const& name ) { getMutableRegistryHub().registerReporter( name, new ReporterFactory() ); } }; } #define INTERNAL_CATCH_REGISTER_LEGACY_REPORTER( name, reporterType ) \ namespace{ Catch::LegacyReporterRegistrar catch_internal_RegistrarFor##reporterType( name ); } #define INTERNAL_CATCH_REGISTER_REPORTER( name, reporterType ) \ namespace{ Catch::ReporterRegistrar catch_internal_RegistrarFor##reporterType( name ); } // #included from: ../internal/catch_xmlwriter.hpp #define TWOBLUECUBES_CATCH_XMLWRITER_HPP_INCLUDED #include #include #include #include namespace Catch { class XmlWriter { public: class ScopedElement { public: ScopedElement( XmlWriter* writer ) : m_writer( writer ) {} ScopedElement( ScopedElement const& other ) : m_writer( other.m_writer ){ other.m_writer = NULL; } ~ScopedElement() { if( m_writer ) m_writer->endElement(); } ScopedElement& writeText( std::string const& text, bool indent = true ) { m_writer->writeText( text, indent ); return *this; } template ScopedElement& writeAttribute( std::string const& name, T const& attribute ) { m_writer->writeAttribute( name, attribute ); return *this; } private: mutable XmlWriter* m_writer; }; XmlWriter() : m_tagIsOpen( false ), m_needsNewline( false ), m_os( &std::cout ) {} XmlWriter( std::ostream& os ) : m_tagIsOpen( false ), m_needsNewline( false ), m_os( &os ) {} ~XmlWriter() { while( !m_tags.empty() ) endElement(); } # ifndef CATCH_CPP11_OR_GREATER XmlWriter& operator = ( XmlWriter const& other ) { XmlWriter temp( other ); swap( temp ); return *this; } # else XmlWriter( XmlWriter const& ) = default; XmlWriter( XmlWriter && ) = default; XmlWriter& operator = ( XmlWriter const& ) = default; XmlWriter& operator = ( XmlWriter && ) = default; # endif void swap( XmlWriter& other ) { std::swap( m_tagIsOpen, other.m_tagIsOpen ); std::swap( m_needsNewline, other.m_needsNewline ); std::swap( m_tags, other.m_tags ); std::swap( m_indent, other.m_indent ); std::swap( m_os, other.m_os ); } XmlWriter& startElement( std::string const& name ) { ensureTagClosed(); newlineIfNecessary(); stream() << m_indent << "<" << name; m_tags.push_back( name ); m_indent += " "; m_tagIsOpen = true; return *this; } ScopedElement scopedElement( std::string const& name ) { ScopedElement scoped( this ); startElement( name ); return scoped; } XmlWriter& endElement() { newlineIfNecessary(); m_indent = m_indent.substr( 0, m_indent.size()-2 ); if( m_tagIsOpen ) { stream() << "/>\n"; m_tagIsOpen = false; } else { stream() << m_indent << "\n"; } m_tags.pop_back(); return *this; } XmlWriter& writeAttribute( std::string const& name, std::string const& attribute ) { if( !name.empty() && !attribute.empty() ) { stream() << " " << name << "=\""; writeEncodedText( attribute ); stream() << "\""; } return *this; } XmlWriter& writeAttribute( std::string const& name, bool attribute ) { stream() << " " << name << "=\"" << ( attribute ? "true" : "false" ) << "\""; return *this; } template XmlWriter& writeAttribute( std::string const& name, T const& attribute ) { if( !name.empty() ) stream() << " " << name << "=\"" << attribute << "\""; return *this; } XmlWriter& writeText( std::string const& text, bool indent = true ) { if( !text.empty() ){ bool tagWasOpen = m_tagIsOpen; ensureTagClosed(); if( tagWasOpen && indent ) stream() << m_indent; writeEncodedText( text ); m_needsNewline = true; } return *this; } XmlWriter& writeComment( std::string const& text ) { ensureTagClosed(); stream() << m_indent << ""; m_needsNewline = true; return *this; } XmlWriter& writeBlankLine() { ensureTagClosed(); stream() << "\n"; return *this; } private: std::ostream& stream() { return *m_os; } void ensureTagClosed() { if( m_tagIsOpen ) { stream() << ">\n"; m_tagIsOpen = false; } } void newlineIfNecessary() { if( m_needsNewline ) { stream() << "\n"; m_needsNewline = false; } } void writeEncodedText( std::string const& text ) { static const char* charsToEncode = "<&\""; std::string mtext = text; std::string::size_type pos = mtext.find_first_of( charsToEncode ); while( pos != std::string::npos ) { stream() << mtext.substr( 0, pos ); switch( mtext[pos] ) { case '<': stream() << "<"; break; case '&': stream() << "&"; break; case '\"': stream() << """; break; } mtext = mtext.substr( pos+1 ); pos = mtext.find_first_of( charsToEncode ); } stream() << mtext; } bool m_tagIsOpen; bool m_needsNewline; std::vector m_tags; std::string m_indent; std::ostream* m_os; }; } namespace Catch { class XmlReporter : public SharedImpl { public: XmlReporter( ReporterConfig const& config ) : m_config( config ), m_sectionDepth( 0 ) {} static std::string getDescription() { return "Reports test results as an XML document"; } virtual ~XmlReporter(); private: // IReporter virtual bool shouldRedirectStdout() const { return true; } virtual void StartTesting() { m_xml = XmlWriter( m_config.stream() ); m_xml.startElement( "Catch" ); if( !m_config.fullConfig()->name().empty() ) m_xml.writeAttribute( "name", m_config.fullConfig()->name() ); } virtual void EndTesting( const Totals& totals ) { m_xml.scopedElement( "OverallResults" ) .writeAttribute( "successes", totals.assertions.passed ) .writeAttribute( "failures", totals.assertions.failed ); m_xml.endElement(); } virtual void StartGroup( const std::string& groupName ) { m_xml.startElement( "Group" ) .writeAttribute( "name", groupName ); } virtual void EndGroup( const std::string&, const Totals& totals ) { m_xml.scopedElement( "OverallResults" ) .writeAttribute( "successes", totals.assertions.passed ) .writeAttribute( "failures", totals.assertions.failed ); m_xml.endElement(); } virtual void StartSection( const std::string& sectionName, const std::string& description ) { if( m_sectionDepth++ > 0 ) { m_xml.startElement( "Section" ) .writeAttribute( "name", trim( sectionName ) ) .writeAttribute( "description", description ); } } virtual void NoAssertionsInSection( const std::string& ) {} virtual void NoAssertionsInTestCase( const std::string& ) {} virtual void EndSection( const std::string& /*sectionName*/, const Counts& assertions ) { if( --m_sectionDepth > 0 ) { m_xml.scopedElement( "OverallResults" ) .writeAttribute( "successes", assertions.passed ) .writeAttribute( "failures", assertions.failed ); m_xml.endElement(); } } virtual void StartTestCase( const Catch::TestCaseInfo& testInfo ) { m_xml.startElement( "TestCase" ).writeAttribute( "name", trim( testInfo.name ) ); m_currentTestSuccess = true; } virtual void Result( const Catch::AssertionResult& assertionResult ) { if( !m_config.fullConfig()->includeSuccessfulResults() && assertionResult.getResultType() == ResultWas::Ok ) return; if( assertionResult.hasExpression() ) { m_xml.startElement( "Expression" ) .writeAttribute( "success", assertionResult.succeeded() ) .writeAttribute( "filename", assertionResult.getSourceInfo().file ) .writeAttribute( "line", assertionResult.getSourceInfo().line ); m_xml.scopedElement( "Original" ) .writeText( assertionResult.getExpression() ); m_xml.scopedElement( "Expanded" ) .writeText( assertionResult.getExpandedExpression() ); m_currentTestSuccess &= assertionResult.succeeded(); } switch( assertionResult.getResultType() ) { case ResultWas::ThrewException: m_xml.scopedElement( "Exception" ) .writeAttribute( "filename", assertionResult.getSourceInfo().file ) .writeAttribute( "line", assertionResult.getSourceInfo().line ) .writeText( assertionResult.getMessage() ); m_currentTestSuccess = false; break; case ResultWas::Info: m_xml.scopedElement( "Info" ) .writeText( assertionResult.getMessage() ); break; case ResultWas::Warning: m_xml.scopedElement( "Warning" ) .writeText( assertionResult.getMessage() ); break; case ResultWas::ExplicitFailure: m_xml.scopedElement( "Failure" ) .writeText( assertionResult.getMessage() ); m_currentTestSuccess = false; break; case ResultWas::Unknown: case ResultWas::Ok: case ResultWas::FailureBit: case ResultWas::ExpressionFailed: case ResultWas::Exception: case ResultWas::DidntThrowException: break; } if( assertionResult.hasExpression() ) m_xml.endElement(); } virtual void Aborted() { // !TBD } virtual void EndTestCase( const Catch::TestCaseInfo&, const Totals&, const std::string&, const std::string& ) { m_xml.scopedElement( "OverallResult" ).writeAttribute( "success", m_currentTestSuccess ); m_xml.endElement(); } private: ReporterConfig m_config; bool m_currentTestSuccess; XmlWriter m_xml; int m_sectionDepth; }; } // end namespace Catch // #included from: ../reporters/catch_reporter_junit.hpp #define TWOBLUECUBES_CATCH_REPORTER_JUNIT_HPP_INCLUDED #include namespace Catch { class JunitReporter : public CumulativeReporterBase { public: JunitReporter( ReporterConfig const& _config ) : CumulativeReporterBase( _config ), xml( _config.stream() ) {} ~JunitReporter(); static std::string getDescription() { return "Reports test results in an XML format that looks like Ant's junitreport target"; } virtual void noMatchingTestCases( std::string const& /*spec*/ ) {} virtual ReporterPreferences getPreferences() const { ReporterPreferences prefs; prefs.shouldRedirectStdOut = true; return prefs; } virtual void testRunStarting( TestRunInfo const& runInfo ) { CumulativeReporterBase::testRunStarting( runInfo ); xml.startElement( "testsuites" ); } virtual void testGroupStarting( GroupInfo const& groupInfo ) { suiteTimer.start(); stdOutForSuite.str(""); stdErrForSuite.str(""); unexpectedExceptions = 0; CumulativeReporterBase::testGroupStarting( groupInfo ); } virtual bool assertionEnded( AssertionStats const& assertionStats ) { if( assertionStats.assertionResult.getResultType() == ResultWas::ThrewException ) unexpectedExceptions++; return CumulativeReporterBase::assertionEnded( assertionStats ); } virtual void testCaseEnded( TestCaseStats const& testCaseStats ) { stdOutForSuite << testCaseStats.stdOut; stdErrForSuite << testCaseStats.stdErr; CumulativeReporterBase::testCaseEnded( testCaseStats ); } virtual void testGroupEnded( TestGroupStats const& testGroupStats ) { double suiteTime = suiteTimer.getElapsedSeconds(); CumulativeReporterBase::testGroupEnded( testGroupStats ); writeGroup( *m_testGroups.back(), suiteTime ); } virtual void testRunEndedCumulative() { xml.endElement(); } void writeGroup( TestGroupNode const& groupNode, double suiteTime ) { XmlWriter::ScopedElement e = xml.scopedElement( "testsuite" ); TestGroupStats const& stats = groupNode.value; xml.writeAttribute( "name", stats.groupInfo.name ); xml.writeAttribute( "errors", unexpectedExceptions ); xml.writeAttribute( "failures", stats.totals.assertions.failed-unexpectedExceptions ); xml.writeAttribute( "tests", stats.totals.assertions.total() ); xml.writeAttribute( "hostname", "tbd" ); // !TBD if( m_config->showDurations() == ShowDurations::Never ) xml.writeAttribute( "time", "" ); else xml.writeAttribute( "time", suiteTime ); xml.writeAttribute( "timestamp", "tbd" ); // !TBD // Write test cases for( TestGroupNode::ChildNodes::const_iterator it = groupNode.children.begin(), itEnd = groupNode.children.end(); it != itEnd; ++it ) writeTestCase( **it ); xml.scopedElement( "system-out" ).writeText( trim( stdOutForSuite.str() ), false ); xml.scopedElement( "system-err" ).writeText( trim( stdErrForSuite.str() ), false ); } void writeTestCase( TestCaseNode const& testCaseNode ) { TestCaseStats const& stats = testCaseNode.value; // All test cases have exactly one section - which represents the // test case itself. That section may have 0-n nested sections assert( testCaseNode.children.size() == 1 ); SectionNode const& rootSection = *testCaseNode.children.front(); std::string className = stats.testInfo.className; if( className.empty() ) { if( rootSection.childSections.empty() ) className = "global"; } writeSection( className, "", rootSection ); } void writeSection( std::string const& className, std::string const& rootName, SectionNode const& sectionNode ) { std::string name = trim( sectionNode.stats.sectionInfo.name ); if( !rootName.empty() ) name = rootName + "/" + name; if( !sectionNode.assertions.empty() || !sectionNode.stdOut.empty() || !sectionNode.stdErr.empty() ) { XmlWriter::ScopedElement e = xml.scopedElement( "testcase" ); if( className.empty() ) { xml.writeAttribute( "classname", name ); xml.writeAttribute( "name", "root" ); } else { xml.writeAttribute( "classname", className ); xml.writeAttribute( "name", name ); } xml.writeAttribute( "time", toString( sectionNode.stats.durationInSeconds ) ); writeAssertions( sectionNode ); if( !sectionNode.stdOut.empty() ) xml.scopedElement( "system-out" ).writeText( trim( sectionNode.stdOut ), false ); if( !sectionNode.stdErr.empty() ) xml.scopedElement( "system-err" ).writeText( trim( sectionNode.stdErr ), false ); } for( SectionNode::ChildSections::const_iterator it = sectionNode.childSections.begin(), itEnd = sectionNode.childSections.end(); it != itEnd; ++it ) if( className.empty() ) writeSection( name, "", **it ); else writeSection( className, name, **it ); } void writeAssertions( SectionNode const& sectionNode ) { for( SectionNode::Assertions::const_iterator it = sectionNode.assertions.begin(), itEnd = sectionNode.assertions.end(); it != itEnd; ++it ) writeAssertion( *it ); } void writeAssertion( AssertionStats const& stats ) { AssertionResult const& result = stats.assertionResult; if( !result.isOk() ) { std::string elementName; switch( result.getResultType() ) { case ResultWas::ThrewException: elementName = "error"; break; case ResultWas::ExplicitFailure: elementName = "failure"; break; case ResultWas::ExpressionFailed: elementName = "failure"; break; case ResultWas::DidntThrowException: elementName = "failure"; break; // We should never see these here: case ResultWas::Info: case ResultWas::Warning: case ResultWas::Ok: case ResultWas::Unknown: case ResultWas::FailureBit: case ResultWas::Exception: elementName = "internalError"; break; } XmlWriter::ScopedElement e = xml.scopedElement( elementName ); xml.writeAttribute( "message", result.getExpandedExpression() ); xml.writeAttribute( "type", result.getTestMacroName() ); std::ostringstream oss; if( !result.getMessage().empty() ) oss << result.getMessage() << "\n"; for( std::vector::const_iterator it = stats.infoMessages.begin(), itEnd = stats.infoMessages.end(); it != itEnd; ++it ) if( it->type == ResultWas::Info ) oss << it->message << "\n"; oss << "at " << result.getSourceInfo(); xml.writeText( oss.str(), false ); } } XmlWriter xml; Timer suiteTimer; std::ostringstream stdOutForSuite; std::ostringstream stdErrForSuite; unsigned int unexpectedExceptions; }; INTERNAL_CATCH_REGISTER_REPORTER( "junit", JunitReporter ) } // end namespace Catch // #included from: ../reporters/catch_reporter_console.hpp #define TWOBLUECUBES_CATCH_REPORTER_CONSOLE_HPP_INCLUDED #include namespace Catch { struct ConsoleReporter : StreamingReporterBase { ConsoleReporter( ReporterConfig const& _config ) : StreamingReporterBase( _config ), m_headerPrinted( false ), m_atLeastOneTestCasePrinted( false ) {} virtual ~ConsoleReporter(); static std::string getDescription() { return "Reports test results as plain lines of text"; } virtual ReporterPreferences getPreferences() const { ReporterPreferences prefs; prefs.shouldRedirectStdOut = false; return prefs; } virtual void noMatchingTestCases( std::string const& spec ) { stream << "No test cases matched '" << spec << "'" << std::endl; } virtual void assertionStarting( AssertionInfo const& ) { } virtual bool assertionEnded( AssertionStats const& _assertionStats ) { AssertionResult const& result = _assertionStats.assertionResult; bool printInfoMessages = true; // Drop out if result was successful and we're not printing those if( !m_config->includeSuccessfulResults() && result.isOk() ) { if( result.getResultType() != ResultWas::Warning ) return false; printInfoMessages = false; } lazyPrint(); AssertionPrinter printer( stream, _assertionStats, printInfoMessages ); printer.print(); stream << std::endl; return true; } virtual void sectionStarting( SectionInfo const& _sectionInfo ) { m_headerPrinted = false; StreamingReporterBase::sectionStarting( _sectionInfo ); } virtual void sectionEnded( SectionStats const& _sectionStats ) { if( _sectionStats.missingAssertions ) { lazyPrint(); Colour colour( Colour::ResultError ); if( m_sectionStack.size() > 1 ) stream << "\nNo assertions in section"; else stream << "\nNo assertions in test case"; stream << " '" << _sectionStats.sectionInfo.name << "'\n" << std::endl; } if( m_headerPrinted ) { if( m_config->showDurations() == ShowDurations::Always ) stream << "Completed in " << _sectionStats.durationInSeconds << "s" << std::endl; m_headerPrinted = false; } else { if( m_config->showDurations() == ShowDurations::Always ) stream << _sectionStats.sectionInfo.name << " completed in " << _sectionStats.durationInSeconds << "s" << std::endl; } StreamingReporterBase::sectionEnded( _sectionStats ); } virtual void testCaseEnded( TestCaseStats const& _testCaseStats ) { StreamingReporterBase::testCaseEnded( _testCaseStats ); m_headerPrinted = false; } virtual void testGroupEnded( TestGroupStats const& _testGroupStats ) { if( currentGroupInfo.used ) { printSummaryDivider(); stream << "Summary for group '" << _testGroupStats.groupInfo.name << "':\n"; printTotals( _testGroupStats.totals ); stream << "\n" << std::endl; } StreamingReporterBase::testGroupEnded( _testGroupStats ); } virtual void testRunEnded( TestRunStats const& _testRunStats ) { if( m_atLeastOneTestCasePrinted ) printTotalsDivider(); printTotals( _testRunStats.totals ); stream << "\n" << std::endl; StreamingReporterBase::testRunEnded( _testRunStats ); } private: class AssertionPrinter { void operator= ( AssertionPrinter const& ); public: AssertionPrinter( std::ostream& _stream, AssertionStats const& _stats, bool _printInfoMessages ) : stream( _stream ), stats( _stats ), result( _stats.assertionResult ), colour( Colour::None ), message( result.getMessage() ), messages( _stats.infoMessages ), printInfoMessages( _printInfoMessages ) { switch( result.getResultType() ) { case ResultWas::Ok: colour = Colour::Success; passOrFail = "PASSED"; //if( result.hasMessage() ) if( _stats.infoMessages.size() == 1 ) messageLabel = "with message"; if( _stats.infoMessages.size() > 1 ) messageLabel = "with messages"; break; case ResultWas::ExpressionFailed: if( result.isOk() ) { colour = Colour::Success; passOrFail = "FAILED - but was ok"; } else { colour = Colour::Error; passOrFail = "FAILED"; } if( _stats.infoMessages.size() == 1 ) messageLabel = "with message"; if( _stats.infoMessages.size() > 1 ) messageLabel = "with messages"; break; case ResultWas::ThrewException: colour = Colour::Error; passOrFail = "FAILED"; messageLabel = "due to unexpected exception with message"; break; case ResultWas::DidntThrowException: colour = Colour::Error; passOrFail = "FAILED"; messageLabel = "because no exception was thrown where one was expected"; break; case ResultWas::Info: messageLabel = "info"; break; case ResultWas::Warning: messageLabel = "warning"; break; case ResultWas::ExplicitFailure: passOrFail = "FAILED"; colour = Colour::Error; if( _stats.infoMessages.size() == 1 ) messageLabel = "explicitly with message"; if( _stats.infoMessages.size() > 1 ) messageLabel = "explicitly with messages"; break; // These cases are here to prevent compiler warnings case ResultWas::Unknown: case ResultWas::FailureBit: case ResultWas::Exception: passOrFail = "** internal error **"; colour = Colour::Error; break; } } void print() const { printSourceInfo(); if( stats.totals.assertions.total() > 0 ) { if( result.isOk() ) stream << "\n"; printResultType(); printOriginalExpression(); printReconstructedExpression(); } else { stream << "\n"; } printMessage(); } private: void printResultType() const { if( !passOrFail.empty() ) { Colour colourGuard( colour ); stream << passOrFail << ":\n"; } } void printOriginalExpression() const { if( result.hasExpression() ) { Colour colourGuard( Colour::OriginalExpression ); stream << " "; stream << result.getExpressionInMacro(); stream << "\n"; } } void printReconstructedExpression() const { if( result.hasExpandedExpression() ) { stream << "with expansion:\n"; Colour colourGuard( Colour::ReconstructedExpression ); stream << Text( result.getExpandedExpression(), TextAttributes().setIndent(2) ) << "\n"; } } void printMessage() const { if( !messageLabel.empty() ) stream << messageLabel << ":" << "\n"; for( std::vector::const_iterator it = messages.begin(), itEnd = messages.end(); it != itEnd; ++it ) { // If this assertion is a warning ignore any INFO messages if( printInfoMessages || it->type != ResultWas::Info ) stream << Text( it->message, TextAttributes().setIndent(2) ) << "\n"; } } void printSourceInfo() const { Colour colourGuard( Colour::FileName ); stream << result.getSourceInfo() << ": "; } std::ostream& stream; AssertionStats const& stats; AssertionResult const& result; Colour::Code colour; std::string passOrFail; std::string messageLabel; std::string message; std::vector messages; bool printInfoMessages; }; void lazyPrint() { if( !currentTestRunInfo.used ) lazyPrintRunInfo(); if( !currentGroupInfo.used ) lazyPrintGroupInfo(); if( !m_headerPrinted ) { printTestCaseAndSectionHeader(); m_headerPrinted = true; } m_atLeastOneTestCasePrinted = true; } void lazyPrintRunInfo() { stream << "\n" << getLineOfChars<'~'>() << "\n"; Colour colour( Colour::SecondaryText ); stream << currentTestRunInfo->name << " is a Catch v" << libraryVersion.majorVersion << "." << libraryVersion.minorVersion << " b" << libraryVersion.buildNumber; if( libraryVersion.branchName != std::string( "master" ) ) stream << " (" << libraryVersion.branchName << ")"; stream << " host application.\n" << "Run with -? for options\n\n"; currentTestRunInfo.used = true; } void lazyPrintGroupInfo() { if( !currentGroupInfo->name.empty() && currentGroupInfo->groupsCounts > 1 ) { printClosedHeader( "Group: " + currentGroupInfo->name ); currentGroupInfo.used = true; } } void printTestCaseAndSectionHeader() { assert( !m_sectionStack.empty() ); printOpenHeader( currentTestCaseInfo->name ); if( m_sectionStack.size() > 1 ) { Colour colourGuard( Colour::Headers ); std::vector::const_iterator it = m_sectionStack.begin()+1, // Skip first section (test case) itEnd = m_sectionStack.end(); for( ; it != itEnd; ++it ) printHeaderString( it->name, 2 ); } SourceLineInfo lineInfo = m_sectionStack.front().lineInfo; if( !lineInfo.empty() ){ stream << getLineOfChars<'-'>() << "\n"; Colour colourGuard( Colour::FileName ); stream << lineInfo << "\n"; } stream << getLineOfChars<'.'>() << "\n" << std::endl; } void printClosedHeader( std::string const& _name ) { printOpenHeader( _name ); stream << getLineOfChars<'.'>() << "\n"; } void printOpenHeader( std::string const& _name ) { stream << getLineOfChars<'-'>() << "\n"; { Colour colourGuard( Colour::Headers ); printHeaderString( _name ); } } // if string has a : in first line will set indent to follow it on // subsequent lines void printHeaderString( std::string const& _string, std::size_t indent = 0 ) { std::size_t i = _string.find( ": " ); if( i != std::string::npos ) i+=2; else i = 0; stream << Text( _string, TextAttributes() .setIndent( indent+i) .setInitialIndent( indent ) ) << "\n"; } void printTotals( const Totals& totals ) { if( totals.testCases.total() == 0 ) { stream << "No tests ran"; } else if( totals.assertions.total() == 0 ) { Colour colour( Colour::Yellow ); printCounts( "test case", totals.testCases ); stream << " (no assertions)"; } else if( totals.assertions.failed ) { Colour colour( Colour::ResultError ); printCounts( "test case", totals.testCases ); if( totals.testCases.failed > 0 ) { stream << " ("; printCounts( "assertion", totals.assertions ); stream << ")"; } } else { Colour colour( Colour::ResultSuccess ); stream << "All tests passed (" << pluralise( totals.assertions.passed, "assertion" ) << " in " << pluralise( totals.testCases.passed, "test case" ) << ")"; } } void printCounts( std::string const& label, Counts const& counts ) { if( counts.total() == 1 ) { stream << "1 " << label << " - "; if( counts.failed ) stream << "failed"; else stream << "passed"; } else { stream << counts.total() << " " << label << "s "; if( counts.passed ) { if( counts.failed ) stream << "- " << counts.failed << " failed"; else if( counts.passed == 2 ) stream << "- both passed"; else stream << "- all passed"; } else { if( counts.failed == 2 ) stream << "- both failed"; else stream << "- all failed"; } } } void printTotalsDivider() { stream << getLineOfChars<'='>() << "\n"; } void printSummaryDivider() { stream << getLineOfChars<'-'>() << "\n"; } template static char const* getLineOfChars() { static char line[CATCH_CONFIG_CONSOLE_WIDTH] = {0}; if( !*line ) { memset( line, C, CATCH_CONFIG_CONSOLE_WIDTH-1 ); line[CATCH_CONFIG_CONSOLE_WIDTH-1] = 0; } return line; } private: bool m_headerPrinted; bool m_atLeastOneTestCasePrinted; }; INTERNAL_CATCH_REGISTER_REPORTER( "console", ConsoleReporter ) } // end namespace Catch // #included from: ../reporters/catch_reporter_compact.hpp #define TWOBLUECUBES_CATCH_REPORTER_COMPACT_HPP_INCLUDED namespace Catch { struct CompactReporter : StreamingReporterBase { CompactReporter( ReporterConfig const& _config ) : StreamingReporterBase( _config ) {} virtual ~CompactReporter(); static std::string getDescription() { return "Reports test results on a single line, suitable for IDEs"; } virtual ReporterPreferences getPreferences() const { ReporterPreferences prefs; prefs.shouldRedirectStdOut = false; return prefs; } virtual void noMatchingTestCases( std::string const& spec ) { stream << "No test cases matched '" << spec << "'" << std::endl; } virtual void assertionStarting( AssertionInfo const& ) { } virtual bool assertionEnded( AssertionStats const& _assertionStats ) { AssertionResult const& result = _assertionStats.assertionResult; bool printInfoMessages = true; // Drop out if result was successful and we're not printing those if( !m_config->includeSuccessfulResults() && result.isOk() ) { if( result.getResultType() != ResultWas::Warning ) return false; printInfoMessages = false; } AssertionPrinter printer( stream, _assertionStats, printInfoMessages ); printer.print(); stream << std::endl; return true; } virtual void testRunEnded( TestRunStats const& _testRunStats ) { printTotals( _testRunStats.totals ); stream << "\n" << std::endl; StreamingReporterBase::testRunEnded( _testRunStats ); } private: class AssertionPrinter { void operator= ( AssertionPrinter const& ); public: AssertionPrinter( std::ostream& _stream, AssertionStats const& _stats, bool _printInfoMessages ) : stream( _stream ) , stats( _stats ) , result( _stats.assertionResult ) , messages( _stats.infoMessages ) , itMessage( _stats.infoMessages.begin() ) , printInfoMessages( _printInfoMessages ) {} void print() { printSourceInfo(); itMessage = messages.begin(); switch( result.getResultType() ) { case ResultWas::Ok: printResultType( Colour::ResultSuccess, passedString() ); printOriginalExpression(); printReconstructedExpression(); if ( ! result.hasExpression() ) printRemainingMessages( Colour::None ); else printRemainingMessages(); break; case ResultWas::ExpressionFailed: if( result.isOk() ) printResultType( Colour::ResultSuccess, failedString() + std::string( " - but was ok" ) ); else printResultType( Colour::Error, failedString() ); printOriginalExpression(); printReconstructedExpression(); printRemainingMessages(); break; case ResultWas::ThrewException: printResultType( Colour::Error, failedString() ); printIssue( "unexpected exception with message:" ); printMessage(); printExpressionWas(); printRemainingMessages(); break; case ResultWas::DidntThrowException: printResultType( Colour::Error, failedString() ); printIssue( "expected exception, got none" ); printExpressionWas(); printRemainingMessages(); break; case ResultWas::Info: printResultType( Colour::None, "info" ); printMessage(); printRemainingMessages(); break; case ResultWas::Warning: printResultType( Colour::None, "warning" ); printMessage(); printRemainingMessages(); break; case ResultWas::ExplicitFailure: printResultType( Colour::Error, failedString() ); printIssue( "explicitly" ); printRemainingMessages( Colour::None ); break; // These cases are here to prevent compiler warnings case ResultWas::Unknown: case ResultWas::FailureBit: case ResultWas::Exception: printResultType( Colour::Error, "** internal error **" ); break; } } private: // Colour::LightGrey static Colour dimColour() { return Colour::FileName; } #ifdef CATCH_PLATFORM_MAC static const char* failedString() { return "FAILED"; } static const char* passedString() { return "PASSED"; } #else static const char* failedString() { return "failed"; } static const char* passedString() { return "passed"; } #endif void printSourceInfo() const { Colour colourGuard( Colour::FileName ); stream << result.getSourceInfo() << ":"; } void printResultType( Colour colour, std::string passOrFail ) const { if( !passOrFail.empty() ) { { Colour colourGuard( colour ); stream << " " << passOrFail; } stream << ":"; } } void printIssue( std::string issue ) const { stream << " " << issue; } void printExpressionWas() { if( result.hasExpression() ) { stream << ";"; { Colour colour( dimColour() ); stream << " expression was:"; } printOriginalExpression(); } } void printOriginalExpression() const { if( result.hasExpression() ) { stream << " " << result.getExpression(); } } void printReconstructedExpression() const { if( result.hasExpandedExpression() ) { { Colour colour( dimColour() ); stream << " for: "; } stream << result.getExpandedExpression(); } } void printMessage() { if ( itMessage != messages.end() ) { stream << " '" << itMessage->message << "'"; ++itMessage; } } void printRemainingMessages( Colour colour = dimColour() ) { if ( itMessage == messages.end() ) return; // using messages.end() directly yields compilation error: std::vector::const_iterator itEnd = messages.end(); const std::size_t N = static_cast( std::distance( itMessage, itEnd ) ); { Colour colourGuard( colour ); stream << " with " << pluralise( N, "message" ) << ":"; } for(; itMessage != itEnd; ) { // If this assertion is a warning ignore any INFO messages if( printInfoMessages || itMessage->type != ResultWas::Info ) { stream << " '" << itMessage->message << "'"; if ( ++itMessage != itEnd ) { Colour colourGuard( dimColour() ); stream << " and"; } } } } private: std::ostream& stream; AssertionStats const& stats; AssertionResult const& result; std::vector messages; std::vector::const_iterator itMessage; bool printInfoMessages; }; // Colour, message variants: // - white: No tests ran. // - red: Failed [both/all] N test cases, failed [both/all] M assertions. // - white: Passed [both/all] N test cases (no assertions). // - red: Failed N tests cases, failed M assertions. // - green: Passed [both/all] N tests cases with M assertions. std::string bothOrAll( std::size_t count ) const { return count == 1 ? "" : count == 2 ? "both " : "all " ; } void printTotals( const Totals& totals ) const { if( totals.testCases.total() == 0 ) { stream << "No tests ran."; } else if( totals.testCases.failed == totals.testCases.total() ) { Colour colour( Colour::ResultError ); const std::string qualify_assertions_failed = totals.assertions.failed == totals.assertions.total() ? bothOrAll( totals.assertions.failed ) : ""; stream << "Failed " << bothOrAll( totals.testCases.failed ) << pluralise( totals.testCases.failed, "test case" ) << ", " "failed " << qualify_assertions_failed << pluralise( totals.assertions.failed, "assertion" ) << "."; } else if( totals.assertions.total() == 0 ) { stream << "Passed " << bothOrAll( totals.testCases.total() ) << pluralise( totals.testCases.total(), "test case" ) << " (no assertions)."; } else if( totals.assertions.failed ) { Colour colour( Colour::ResultError ); stream << "Failed " << pluralise( totals.testCases.failed, "test case" ) << ", " "failed " << pluralise( totals.assertions.failed, "assertion" ) << "."; } else { Colour colour( Colour::ResultSuccess ); stream << "Passed " << bothOrAll( totals.testCases.passed ) << pluralise( totals.testCases.passed, "test case" ) << " with " << pluralise( totals.assertions.passed, "assertion" ) << "."; } } }; INTERNAL_CATCH_REGISTER_REPORTER( "compact", CompactReporter ) } // end namespace Catch namespace Catch { NonCopyable::~NonCopyable() {} IShared::~IShared() {} StreamBufBase::~StreamBufBase() CATCH_NOEXCEPT {} IContext::~IContext() {} IResultCapture::~IResultCapture() {} ITestCase::~ITestCase() {} ITestCaseRegistry::~ITestCaseRegistry() {} IRegistryHub::~IRegistryHub() {} IMutableRegistryHub::~IMutableRegistryHub() {} IExceptionTranslator::~IExceptionTranslator() {} IExceptionTranslatorRegistry::~IExceptionTranslatorRegistry() {} IReporter::~IReporter() {} IReporterFactory::~IReporterFactory() {} IReporterRegistry::~IReporterRegistry() {} IStreamingReporter::~IStreamingReporter() {} AssertionStats::~AssertionStats() {} SectionStats::~SectionStats() {} TestCaseStats::~TestCaseStats() {} TestGroupStats::~TestGroupStats() {} TestRunStats::~TestRunStats() {} CumulativeReporterBase::SectionNode::~SectionNode() {} CumulativeReporterBase::~CumulativeReporterBase() {} StreamingReporterBase::~StreamingReporterBase() {} ConsoleReporter::~ConsoleReporter() {} CompactReporter::~CompactReporter() {} IRunner::~IRunner() {} IMutableContext::~IMutableContext() {} IConfig::~IConfig() {} XmlReporter::~XmlReporter() {} JunitReporter::~JunitReporter() {} TestRegistry::~TestRegistry() {} FreeFunctionTestCase::~FreeFunctionTestCase() {} IGeneratorInfo::~IGeneratorInfo() {} IGeneratorsForTest::~IGeneratorsForTest() {} Matchers::Impl::StdString::Equals::~Equals() {} Matchers::Impl::StdString::Contains::~Contains() {} Matchers::Impl::StdString::StartsWith::~StartsWith() {} Matchers::Impl::StdString::EndsWith::~EndsWith() {} void Config::dummy() {} INTERNAL_CATCH_REGISTER_LEGACY_REPORTER( "xml", XmlReporter ) } #ifdef __clang__ #pragma clang diagnostic pop #endif #endif #ifdef CATCH_CONFIG_MAIN // #included from: internal/catch_default_main.hpp #define TWOBLUECUBES_CATCH_DEFAULT_MAIN_HPP_INCLUDED #ifndef __OBJC__ // Standard C/C++ main entry point int main (int argc, char * const argv[]) { return Catch::Session().run( argc, argv ); } #else // __OBJC__ // Objective-C entry point int main (int argc, char * const argv[]) { #if !CATCH_ARC_ENABLED NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; #endif Catch::registerTestMethods(); int result = Catch::Session().run( argc, (char* const*)argv ); #if !CATCH_ARC_ENABLED [pool drain]; #endif return result; } #endif // __OBJC__ #endif #ifdef CLARA_CONFIG_MAIN_NOT_DEFINED # undef CLARA_CONFIG_MAIN #endif ////// // If this config identifier is defined then all CATCH macros are prefixed with CATCH_ #ifdef CATCH_CONFIG_PREFIX_ALL #define CATCH_REQUIRE( expr ) INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::Normal, "CATCH_REQUIRE" ) #define CATCH_REQUIRE_FALSE( expr ) INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::Normal | Catch::ResultDisposition::NegateResult, "CATCH_REQUIRE_FALSE" ) #define CATCH_REQUIRE_THROWS( expr ) INTERNAL_CATCH_THROWS( expr, ..., Catch::ResultDisposition::Normal, "CATCH_REQUIRE_THROWS" ) #define CATCH_REQUIRE_THROWS_AS( expr, exceptionType ) INTERNAL_CATCH_THROWS_AS( expr, exceptionType, Catch::ResultDisposition::Normal, "CATCH_REQUIRE_THROWS_AS" ) #define CATCH_REQUIRE_NOTHROW( expr ) INTERNAL_CATCH_NO_THROW( expr, Catch::ResultDisposition::Normal, "CATCH_REQUIRE_NOTHROW" ) #define CATCH_CHECK( expr ) INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::ContinueOnFailure, "CATCH_CHECK" ) #define CATCH_CHECK_FALSE( expr ) INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::ContinueOnFailure | Catch::ResultDisposition::NegateResult, "CATCH_CHECK_FALSE" ) #define CATCH_CHECKED_IF( expr ) INTERNAL_CATCH_IF( expr, Catch::ResultDisposition::ContinueOnFailure, "CATCH_CHECKED_IF" ) #define CATCH_CHECKED_ELSE( expr ) INTERNAL_CATCH_ELSE( expr, Catch::ResultDisposition::ContinueOnFailure, "CATCH_CHECKED_ELSE" ) #define CATCH_CHECK_NOFAIL( expr ) INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::ContinueOnFailure | Catch::ResultDisposition::SuppressFail, "CATCH_CHECK_NOFAIL" ) #define CATCH_CHECK_THROWS( expr ) INTERNAL_CATCH_THROWS( expr, ..., Catch::ResultDisposition::ContinueOnFailure, "CATCH_CHECK_THROWS" ) #define CATCH_CHECK_THROWS_AS( expr, exceptionType ) INTERNAL_CATCH_THROWS_AS( expr, exceptionType, Catch::ResultDisposition::ContinueOnFailure, "CATCH_CHECK_THROWS_AS" ) #define CATCH_CHECK_NOTHROW( expr ) INTERNAL_CATCH_NO_THROW( expr, Catch::ResultDisposition::ContinueOnFailure, "CATCH_CHECK_NOTHROW" ) #define CHECK_THAT( arg, matcher ) INTERNAL_CHECK_THAT( arg, matcher, Catch::ResultDisposition::ContinueOnFailure, "CATCH_CHECK_THAT" ) #define CATCH_REQUIRE_THAT( arg, matcher ) INTERNAL_CHECK_THAT( arg, matcher, Catch::ResultDisposition::Normal, "CATCH_REQUIRE_THAT" ) #define CATCH_INFO( msg ) INTERNAL_CATCH_INFO( msg, "CATCH_INFO" ) #define CATCH_WARN( msg ) INTERNAL_CATCH_MSG( Catch::ResultWas::Warning, Catch::ResultDisposition::ContinueOnFailure, "CATCH_WARN", msg ) #define CATCH_SCOPED_INFO( msg ) INTERNAL_CATCH_INFO( msg, "CATCH_INFO" ) #define CATCH_CAPTURE( msg ) INTERNAL_CATCH_INFO( #msg " := " << msg, "CATCH_CAPTURE" ) #define CATCH_SCOPED_CAPTURE( msg ) INTERNAL_CATCH_INFO( #msg " := " << msg, "CATCH_CAPTURE" ) #ifdef CATCH_CONFIG_VARIADIC_MACROS #define CATCH_TEST_CASE( ... ) INTERNAL_CATCH_TESTCASE( __VA_ARGS__ ) #define CATCH_TEST_CASE_METHOD( className, ... ) INTERNAL_CATCH_TEST_CASE_METHOD( className, __VA_ARGS__ ) #define CATCH_METHOD_AS_TEST_CASE( method, ... ) INTERNAL_CATCH_METHOD_AS_TEST_CASE( method, __VA_ARGS__ ) #define CATCH_SECTION( ... ) INTERNAL_CATCH_SECTION( __VA_ARGS__ ) #define CATCH_FAIL( ... ) INTERNAL_CATCH_MSG( Catch::ResultWas::ExplicitFailure, Catch::ResultDisposition::Normal, "CATCH_FAIL", __VA_ARGS__ ) #define CATCH_SUCCEED( ... ) INTERNAL_CATCH_MSG( Catch::ResultWas::Ok, Catch::ResultDisposition::ContinueOnFailure, "CATCH_SUCCEED", __VA_ARGS__ ) #else #define CATCH_TEST_CASE( name, description ) INTERNAL_CATCH_TESTCASE( name, description ) #define CATCH_TEST_CASE_METHOD( className, name, description ) INTERNAL_CATCH_TEST_CASE_METHOD( className, name, description ) #define CATCH_METHOD_AS_TEST_CASE( method, name, description ) INTERNAL_CATCH_METHOD_AS_TEST_CASE( method, name, description ) #define CATCH_SECTION( name, description ) INTERNAL_CATCH_SECTION( name, description ) #define CATCH_FAIL( msg ) INTERNAL_CATCH_MSG( Catch::ResultWas::ExplicitFailure, Catch::ResultDisposition::Normal, "CATCH_FAIL", msg ) #define CATCH_SUCCEED( msg ) INTERNAL_CATCH_MSG( Catch::ResultWas::Ok, Catch::ResultDisposition::ContinueOnFailure, "CATCH_SUCCEED", msg ) #endif #define CATCH_ANON_TEST_CASE() INTERNAL_CATCH_TESTCASE( "", "" ) #define CATCH_REGISTER_REPORTER( name, reporterType ) INTERNAL_CATCH_REGISTER_REPORTER( name, reporterType ) #define CATCH_REGISTER_LEGACY_REPORTER( name, reporterType ) INTERNAL_CATCH_REGISTER_LEGACY_REPORTER( name, reporterType ) #define CATCH_GENERATE( expr) INTERNAL_CATCH_GENERATE( expr ) // "BDD-style" convenience wrappers #ifdef CATCH_CONFIG_VARIADIC_MACROS #define CATCH_SCENARIO( ... ) CATCH_TEST_CASE( "Scenario: " __VA_ARGS__ ) #else #define CATCH_SCENARIO( name, tags ) CATCH_TEST_CASE( "Scenario: " name, tags ) #endif #define CATCH_GIVEN( desc ) CATCH_SECTION( "Given: " desc, "" ) #define CATCH_WHEN( desc ) CATCH_SECTION( " When: " desc, "" ) #define CATCH_AND_WHEN( desc ) CATCH_SECTION( " And: " desc, "" ) #define CATCH_THEN( desc ) CATCH_SECTION( " Then: " desc, "" ) #define CATCH_AND_THEN( desc ) CATCH_SECTION( " And: " desc, "" ) // If CATCH_CONFIG_PREFIX_ALL is not defined then the CATCH_ prefix is not required #else #define REQUIRE( expr ) INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::Normal, "REQUIRE" ) #define REQUIRE_FALSE( expr ) INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::Normal | Catch::ResultDisposition::NegateResult, "REQUIRE_FALSE" ) #define REQUIRE_THROWS( expr ) INTERNAL_CATCH_THROWS( expr, ..., Catch::ResultDisposition::Normal, "REQUIRE_THROWS" ) #define REQUIRE_THROWS_AS( expr, exceptionType ) INTERNAL_CATCH_THROWS_AS( expr, exceptionType, Catch::ResultDisposition::Normal, "REQUIRE_THROWS_AS" ) #define REQUIRE_NOTHROW( expr ) INTERNAL_CATCH_NO_THROW( expr, Catch::ResultDisposition::Normal, "REQUIRE_NOTHROW" ) #define CHECK( expr ) INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::ContinueOnFailure, "CHECK" ) #define CHECK_FALSE( expr ) INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::ContinueOnFailure | Catch::ResultDisposition::NegateResult, "CHECK_FALSE" ) #define CHECKED_IF( expr ) INTERNAL_CATCH_IF( expr, Catch::ResultDisposition::ContinueOnFailure, "CHECKED_IF" ) #define CHECKED_ELSE( expr ) INTERNAL_CATCH_ELSE( expr, Catch::ResultDisposition::ContinueOnFailure, "CHECKED_ELSE" ) #define CHECK_NOFAIL( expr ) INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::ContinueOnFailure | Catch::ResultDisposition::SuppressFail, "CHECK_NOFAIL" ) #define CHECK_THROWS( expr ) INTERNAL_CATCH_THROWS( expr, ..., Catch::ResultDisposition::ContinueOnFailure, "CHECK_THROWS" ) #define CHECK_THROWS_AS( expr, exceptionType ) INTERNAL_CATCH_THROWS_AS( expr, exceptionType, Catch::ResultDisposition::ContinueOnFailure, "CHECK_THROWS_AS" ) #define CHECK_NOTHROW( expr ) INTERNAL_CATCH_NO_THROW( expr, Catch::ResultDisposition::ContinueOnFailure, "CHECK_NOTHROW" ) #define CHECK_THAT( arg, matcher ) INTERNAL_CHECK_THAT( arg, matcher, Catch::ResultDisposition::ContinueOnFailure, "CHECK_THAT" ) #define REQUIRE_THAT( arg, matcher ) INTERNAL_CHECK_THAT( arg, matcher, Catch::ResultDisposition::Normal, "REQUIRE_THAT" ) #define INFO( msg ) INTERNAL_CATCH_INFO( msg, "INFO" ) #define WARN( msg ) INTERNAL_CATCH_MSG( Catch::ResultWas::Warning, Catch::ResultDisposition::ContinueOnFailure, "WARN", msg ) #define SCOPED_INFO( msg ) INTERNAL_CATCH_INFO( msg, "INFO" ) #define CAPTURE( msg ) INTERNAL_CATCH_INFO( #msg " := " << msg, "CAPTURE" ) #define SCOPED_CAPTURE( msg ) INTERNAL_CATCH_INFO( #msg " := " << msg, "CAPTURE" ) #ifdef CATCH_CONFIG_VARIADIC_MACROS #define TEST_CASE( ... ) INTERNAL_CATCH_TESTCASE( __VA_ARGS__ ) #define TEST_CASE_METHOD( className, ... ) INTERNAL_CATCH_TEST_CASE_METHOD( className, __VA_ARGS__ ) #define METHOD_AS_TEST_CASE( method, ... ) INTERNAL_CATCH_METHOD_AS_TEST_CASE( method, __VA_ARGS__ ) #define SECTION( ... ) INTERNAL_CATCH_SECTION( __VA_ARGS__ ) #define FAIL( ... ) INTERNAL_CATCH_MSG( Catch::ResultWas::ExplicitFailure, Catch::ResultDisposition::Normal, "FAIL", __VA_ARGS__ ) #define SUCCEED( ... ) INTERNAL_CATCH_MSG( Catch::ResultWas::Ok, Catch::ResultDisposition::ContinueOnFailure, "SUCCEED", __VA_ARGS__ ) #else #define TEST_CASE( name, description ) INTERNAL_CATCH_TESTCASE( name, description ) #define TEST_CASE_METHOD( className, name, description ) INTERNAL_CATCH_TEST_CASE_METHOD( className, name, description ) #define METHOD_AS_TEST_CASE( method, name, description ) INTERNAL_CATCH_METHOD_AS_TEST_CASE( method, name, description ) #define SECTION( name, description ) INTERNAL_CATCH_SECTION( name, description ) #define FAIL( msg ) INTERNAL_CATCH_MSG( Catch::ResultWas::ExplicitFailure, Catch::ResultDisposition::Normal, "FAIL", msg ) #define SUCCEED( msg ) INTERNAL_CATCH_MSG( Catch::ResultWas::Ok, Catch::ResultDisposition::ContinueOnFailure, "SUCCEED", msg ) #endif #define ANON_TEST_CASE() INTERNAL_CATCH_TESTCASE( "", "" ) #define REGISTER_REPORTER( name, reporterType ) INTERNAL_CATCH_REGISTER_REPORTER( name, reporterType ) #define REGISTER_LEGACY_REPORTER( name, reporterType ) INTERNAL_CATCH_REGISTER_LEGACY_REPORTER( name, reporterType ) #define GENERATE( expr) INTERNAL_CATCH_GENERATE( expr ) #endif #define CATCH_TRANSLATE_EXCEPTION( signature ) INTERNAL_CATCH_TRANSLATE_EXCEPTION( signature ) // "BDD-style" convenience wrappers #ifdef CATCH_CONFIG_VARIADIC_MACROS #define SCENARIO( ... ) TEST_CASE( "Scenario: " __VA_ARGS__ ) #else #define SCENARIO( name, tags ) TEST_CASE( "Scenario: " name, tags ) #endif #define GIVEN( desc ) SECTION( " Given: " desc, "" ) #define WHEN( desc ) SECTION( " When: " desc, "" ) #define AND_WHEN( desc ) SECTION( "And when: " desc, "" ) #define THEN( desc ) SECTION( " Then: " desc, "" ) #define AND_THEN( desc ) SECTION( " And: " desc, "" ) using Catch::Detail::Approx; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED music-1.1.16/testsuite/unittests/catch/Makefile.in0000644000175000017500000005727613571626612017115 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 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@ testlib_PROGRAMS = test_ag$(EXEEXT) subdir = testsuite/unittests/catch ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.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 CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(testlibdir)" PROGRAMS = $(testlib_PROGRAMS) am_test_ag_OBJECTS = test_ag-test_ag.$(OBJEXT) test_ag_OBJECTS = $(am_test_ag_OBJECTS) test_ag_DEPENDENCIES = $(top_builddir)/src/libmusic.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 = test_ag_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(test_ag_CXXFLAGS) \ $(CXXFLAGS) $(AM_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) depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/test_ag-test_ag.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 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(test_ag_SOURCES) DIST_SOURCES = $(test_ag_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)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = $(top_srcdir)/aclocal.sh AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BINDIR = @BINDIR@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXAMPLESDIR = @EXAMPLESDIR@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ FGREP = @FGREP@ GREP = @GREP@ HAVE_PYTHON = @HAVE_PYTHON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LAUNCHSTYLE = @LAUNCHSTYLE@ 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@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPI_CFLAGS = @MPI_CFLAGS@ MPI_CXXFLAGS = @MPI_CXXFLAGS@ MPI_LDFLAGS = @MPI_LDFLAGS@ MPI_UTILS = @MPI_UTILS@ MUSICCONFIGDIR = @MUSICCONFIGDIR@ MUSIC_ANYSOURCE = @MUSIC_ANYSOURCE@ MUSIC_HAVE_LONG_LONG = @MUSIC_HAVE_LONG_LONG@ MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER = @MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER@ MUSIC_HAVE_SIZE_T = @MUSIC_HAVE_SIZE_T@ MUSIC_ISENDWAITALL = @MUSIC_ISENDWAITALL@ MUSIC_USE_MPI = @MUSIC_USE_MPI@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPTIONAL_UTILS = @OPTIONAL_UTILS@ 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@ PKGDATADIR = @PKGDATADIR@ PKGEXTRABINDIR = @PKGEXTRABINDIR@ PYBUFFER_CPPFLAGS = @PYBUFFER_CPPFLAGS@ PYBUFFER_CXXFLAGS = @PYBUFFER_CXXFLAGS@ PYEXECDIR = @PYEXECDIR@ PYMUSIC_CPPFLAGS = @PYMUSIC_CPPFLAGS@ PYMUSIC_CXXFLAGS = @PYMUSIC_CXXFLAGS@ PYMUSIC_SUBDIR = @PYMUSIC_SUBDIR@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ ROS_SUBDIR = @ROS_SUBDIR@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTDIR = @TESTDIR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ testlibdir = $(libdir)/@PACKAGE@-@PACKAGE_VERSION@ MUSIC_INCLUDE = -I$(top_srcdir)/src -I$(top_builddir)/src test_ag_SOURCES = test_ag.cc catch.hpp test_ag_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ test_ag_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ #test_tng_SOURCES = tc_temporal_negotiator_graph.cc #test_tng_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ #test_tng_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu testsuite/unittests/catch/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu testsuite/unittests/catch/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-testlibPROGRAMS: $(testlib_PROGRAMS) @$(NORMAL_INSTALL) @list='$(testlib_PROGRAMS)'; test -n "$(testlibdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(testlibdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(testlibdir)" || 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)$(testlibdir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(testlibdir)$$dir" || exit $$?; \ } \ ; done uninstall-testlibPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(testlib_PROGRAMS)'; test -n "$(testlibdir)" || 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)$(testlibdir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(testlibdir)" && rm -f $$files clean-testlibPROGRAMS: @list='$(testlib_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 test_ag$(EXEEXT): $(test_ag_OBJECTS) $(test_ag_DEPENDENCIES) $(EXTRA_test_ag_DEPENDENCIES) @rm -f test_ag$(EXEEXT) $(AM_V_CXXLD)$(test_ag_LINK) $(test_ag_OBJECTS) $(test_ag_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_ag-test_ag.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .cc.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 $@ $< .cc.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) '$<'` .cc.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 $@ $< test_ag-test_ag.o: test_ag.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ag_CXXFLAGS) $(CXXFLAGS) -MT test_ag-test_ag.o -MD -MP -MF $(DEPDIR)/test_ag-test_ag.Tpo -c -o test_ag-test_ag.o `test -f 'test_ag.cc' || echo '$(srcdir)/'`test_ag.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ag-test_ag.Tpo $(DEPDIR)/test_ag-test_ag.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test_ag.cc' object='test_ag-test_ag.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ag_CXXFLAGS) $(CXXFLAGS) -c -o test_ag-test_ag.o `test -f 'test_ag.cc' || echo '$(srcdir)/'`test_ag.cc test_ag-test_ag.obj: test_ag.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ag_CXXFLAGS) $(CXXFLAGS) -MT test_ag-test_ag.obj -MD -MP -MF $(DEPDIR)/test_ag-test_ag.Tpo -c -o test_ag-test_ag.obj `if test -f 'test_ag.cc'; then $(CYGPATH_W) 'test_ag.cc'; else $(CYGPATH_W) '$(srcdir)/test_ag.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_ag-test_ag.Tpo $(DEPDIR)/test_ag-test_ag.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='test_ag.cc' object='test_ag-test_ag.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_ag_CXXFLAGS) $(CXXFLAGS) -c -o test_ag-test_ag.obj `if test -f 'test_ag.cc'; then $(CYGPATH_W) 'test_ag.cc'; else $(CYGPATH_W) '$(srcdir)/test_ag.cc'; fi` 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 $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(testlibdir)"; 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-testlibPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/test_ag-test_ag.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-testlibPROGRAMS 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)/test_ag-test_ag.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-testlibPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-testlibPROGRAMS \ 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-strip \ install-testlibPROGRAMS 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-testlibPROGRAMS .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: music-1.1.16/testsuite/Makefile.in0000644000175000017500000004721513571626612013761 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 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@ subdir = testsuite ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.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 CONFIG_CLEAN_FILES = music_tests 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 \ distdir distdir-am 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)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = unittests/catch sanitytests am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/music_tests.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 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" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BINDIR = @BINDIR@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXAMPLESDIR = @EXAMPLESDIR@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ FGREP = @FGREP@ GREP = @GREP@ HAVE_PYTHON = @HAVE_PYTHON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LAUNCHSTYLE = @LAUNCHSTYLE@ 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@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPI_CFLAGS = @MPI_CFLAGS@ MPI_CXXFLAGS = @MPI_CXXFLAGS@ MPI_LDFLAGS = @MPI_LDFLAGS@ MPI_UTILS = @MPI_UTILS@ MUSICCONFIGDIR = @MUSICCONFIGDIR@ MUSIC_ANYSOURCE = @MUSIC_ANYSOURCE@ MUSIC_HAVE_LONG_LONG = @MUSIC_HAVE_LONG_LONG@ MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER = @MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER@ MUSIC_HAVE_SIZE_T = @MUSIC_HAVE_SIZE_T@ MUSIC_ISENDWAITALL = @MUSIC_ISENDWAITALL@ MUSIC_USE_MPI = @MUSIC_USE_MPI@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPTIONAL_UTILS = @OPTIONAL_UTILS@ 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@ PKGDATADIR = @PKGDATADIR@ PKGEXTRABINDIR = @PKGEXTRABINDIR@ PYBUFFER_CPPFLAGS = @PYBUFFER_CPPFLAGS@ PYBUFFER_CXXFLAGS = @PYBUFFER_CXXFLAGS@ PYEXECDIR = @PYEXECDIR@ PYMUSIC_CPPFLAGS = @PYMUSIC_CPPFLAGS@ PYMUSIC_CXXFLAGS = @PYMUSIC_CXXFLAGS@ PYMUSIC_SUBDIR = @PYMUSIC_SUBDIR@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ ROS_SUBDIR = @ROS_SUBDIR@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTDIR = @TESTDIR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ @COND_USE_MPI_TRUE@SUBDIRS = unittests/catch sanitytests #runtestdir = $(bindir) #dist_runtest_DATA = music_tests.sh EXTRA_DIST = test_old all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu testsuite/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu testsuite/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): music_tests: $(top_builddir)/config.status $(srcdir)/music_tests.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # 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" 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 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 @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 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 Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook 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 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-data-am \ install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean 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-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 install-data-hook: @INSTALL_PROGRAM@ music_tests $(DESTDIR)$(bindir) # 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: music-1.1.16/configure0000755000175000017500000225576713571626610011607 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for music 1.1.16. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test -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_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='music' PACKAGE_TARNAME='music' PACKAGE_VERSION='1.1.16' PACKAGE_STRING='music 1.1.16' PACKAGE_BUGREPORT='' PACKAGE_URL='' # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS DARWIN_FALSE DARWIN_TRUE LAUNCHSTYLE_SET_FALSE LAUNCHSTYLE_SET_TRUE LAUNCHSTYLE PKGEXTRABINDIR PKGDATADIR BINDIR EXTRAS EXAMPLESDIR TESTDIR OPTIONAL_UTILS MPI_UTILS MUSIC_ANYSOURCE MUSIC_ISENDWAITALL MUSIC_USE_MPI MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER MUSIC_HAVE_LONG_LONG MUSIC_HAVE_SIZE_T MPI_LDFLAGS MPI_CFLAGS MPI_CXXFLAGS PYBUFFER_CXXFLAGS PYBUFFER_CPPFLAGS PYMUSIC_CXXFLAGS PYMUSIC_CPPFLAGS PYEXECDIR ROS_SUBDIR PYMUSIC_SUBDIR MUSICCONFIGDIR HAVE_PYTHON DEB_PACKAGE_FALSE DEB_PACKAGE_TRUE HAVE_PYTHON_FALSE HAVE_PYTHON_TRUE pkgpyexecdir pyexecdir pkgpythondir pythondir PYTHON_PLATFORM PYTHON_EXEC_PREFIX PYTHON_PREFIX PYTHON_VERSION PYTHON COND_USE_MPI_FALSE COND_USE_MPI_TRUE CXXCPP CPP LT_SYS_LIBRARY_PATH OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR DLLTOOL OBJDUMP LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED host_os host_vendor host_cpu host build_os build_vendor build_cpu build LIBTOOL am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE ac_ct_CC CFLAGS CC am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__include DEPDIR OBJEXT EXEEXT ac_ct_CXX CPPFLAGS LDFLAGS CXXFLAGS CXX MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL am__quote' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_maintainer_mode enable_dependency_tracking enable_shared enable_static with_pic enable_fast_install with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock enable_mpi enable_isend enable_anysource with_python enable_deb with_ros ' ac_precious_vars='build_alias host_alias target_alias CXX CXXFLAGS LDFLAGS LIBS CPPFLAGS CCC CC CFLAGS LT_SYS_LIBRARY_PATH CPP CXXCPP 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 # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures music 1.1.16 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/music] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of music 1.1.16:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --disable-mpi disable mpi support --disable-isend disable isend --disable-anysource disable any source receive --enable-deb use deb package layout for install 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-python ignore the presence of Python and disable PyMUSIC Some influential environment variables: CXX C++ compiler command CXXFLAGS 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 CC C compiler command CFLAGS C compiler flags LT_SYS_LIBRARY_PATH User-defined run-time library search path. CPP C preprocessor CXXCPP C++ preprocessor PYTHON the Python interpreter 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 the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF music configure 1.1.16 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_cxx_try_cpp LINENO # ------------------------ # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_cpp # ac_fn_cxx_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_link # 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { 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 () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_func 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 music $as_me 1.1.16, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.16' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='music' VERSION='1.1.16' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi ac_config_headers="$ac_config_headers config.h" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then : enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 $as_echo "$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE if test "$MPI_CXX" != ""; then CXX="$MPI_CXX" 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 -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in mpiCC mpixlcxx mpixlcxx_r mpicxx CC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in mpiCC mpixlcxx mpixlcxx_r mpicxx CC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 $as_echo_n "checking whether the C++ compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C++ compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 $as_echo_n "checking for C++ compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C++ compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 $as_echo_n "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.* { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 $as_echo "${_am_result}" >&6; } # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CXX" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CXX_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi MPI_CXX="$CXX" { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MPI system we think we are using" >&5 $as_echo_n "checking which MPI system we think we are using... " >&6; } case "$MPI_CXX" in mpiCC) MPI_C=mpicc if $MPI_CXX -compile_info >/dev/null 2>/dev/null; then SYSGUESS=mpich CXX="`$MPI_CXX -compile_info | sed -e 's/^\([^ ]*\).*/\1/'`" else # mpiCC can be a C compiler under OpenMPI if mpicxx -showme >/dev/null 2>/dev/null; then SYSGUESS=openmpi CXX="`mpicxx -showme | sed -e 's/^\([^ ]*\).*/\1/'`" else as_fn_error $? " Confused when trying to determine MPI_CXX, MPI_CXXFLAGS etc. Please set them manually." "$LINENO" 5 fi fi LAUNCHSTYLE=_mpirun TESTDIR=testsuite EXTRAS=extras ;; mpixlcxx_r) MPI_C=mpixlc_r SYSGUESS=bgp CXX="$MPI_CXX" #CC="`echo $MPI_CXX | sed -e 's/xlcxx$/xlc/;s/cxx$/cc/'`" CC="$MPI_C" ;; mpixlcxx) MPI_C=mpixlc SYSGUESS=bgq CXX="$MPI_CXX" #CC="`echo $MPI_CXX | sed -e 's/xlcxx$/xlc/;s/cxx$/cc/'`" CC="$MPI_C" ;; mpicxx) MPI_C=mpicc CC="$MPI_C" CXX="$MPI_CXX" if mpich2version >/dev/null 2>/dev/null; then SYSGUESS=mpich2 $as_echo "#define HAVE_MPICH2 1" >>confdefs.h else SYSGUESS=bgl fi ;; CC) # We should be checking MPI version but for the Cray we do it differently if uname -r | grep -q cray_gem_s; then SYSGUESS=cray_xe6 $as_echo "#define CRAY_XE6 1" >>confdefs.h CC=cc CXX=CC else SYSGUESS=unknown fi ;; xlC) MPI_C=xlc SYSGUESS=bgq_seq CXX="$MPI_CXX" CC="$MPI_C" ;; *) SYSGUESS=unknown ;; esac echo "SYSGUESS=$SYSGUESS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking MPI_CXXFLAGS" >&5 $as_echo_n "checking MPI_CXXFLAGS... " >&6; } if test "$MPI_CXXFLAGS" != ""; then echo "$MPI_CXXFLAGS" else case "$SYSGUESS" in mpich|mpich2) MPI_CXXFLAGS="`$MPI_CXX -compile_info | sed -e 's/^[^ ]* //;s/ -c / /'`" ;; openmpi) MPI_CXXFLAGS="`mpicxx -showme:compile`" ;; bgp) MPI_CXXFLAGS="-qarch=450 -qtune=450 -qhot -qnostrict" enable_shared=no ;; bgq) MPI_CXXFLAGS="-qarch=qp -qtune=qp -qhot -qnostrict" enable_shared=no ;; cray_xe6) MPI_CXXFLAGS="" ;; bgq_seq) MPI_CXXFLAGS="" enable_shared=no ;; *) as_fn_error $? " Could not determine proper value for MPI_CXXFLAGS. Please see README." "$LINENO" 5 ;; esac echo "$MPI_CXXFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking MPI_CFLAGS" >&5 $as_echo_n "checking MPI_CFLAGS... " >&6; } if test "$MPI_CFLAGS" != ""; then echo "$MPI_CFLAGS" else case "$SYSGUESS" in mpich|mpich2) MPI_CFLAGS="`$MPI_C -compile_info | sed -e 's/^[^ ]* //;s/ -c / /'`" ;; openmpi) MPI_CFLAGS="`mpicc -showme:compile`" ;; bgp) MPI_CFLAGS="-qarch=450 -qtune=450 -qhot -qnostrict" enable_shared=no ;; bgq) MPI_CFLAGS="-qarch=qp -qtune=qp -qhot -qnostrict" enable_shared=no ;; cray_xe6) MPI_CFLAGS="" ;; bgq_seq) MPI_CFLAGS="" enable_shared=no ;; *) as_fn_error $? " Could not determine proper value for MPI_CFLAGS. Please see README." "$LINENO" 5 ;; esac echo "$MPI_CFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking MPI_LDFLAGS" >&5 $as_echo_n "checking MPI_LDFLAGS... " >&6; } if test "$MPI_LDFLAGS" != ""; then echo "$MPI_LDFLAGS" else case "$SYSGUESS" in mpich|mpich2) MPI_LDFLAGS="`$MPI_CXX -link_info | sed -e 's/^[^ ]* //;s/ -c / /'`" ;; openmpi) MPI_LDFLAGS="`mpicxx -showme:link`" ;; bgp|bgq|cray_xe6|bgq_seq) MPI_LDFLAGS="" ;; *) as_fn_error $? " Could not determine proper value for MPI_LDFLAGS. Please see README." "$LINENO" 5 ;; esac echo "$MPI_LDFLAGS" fi CXXFLAGS="-g -O3" #if test "$ac_test_CXXFLAGS" != set; then # if test "$CXXFLAGS" = "-O2"; then # CXXFLAGS="-O3" # else # CXXFLAGS="-O2" # CXXFLAGS="-g -O0" if test $CXX = g++; then CXXFLAGS="-pedantic -Wall -Wno-long-long $CXXFLAGS" fi # 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 if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.6' macro_revision='2.4.6' ltmain=$ac_aux_dir/ltmain.sh # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case $ECHO in printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 $as_echo "printf" >&6; } ;; print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 $as_echo "print -r" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 $as_echo "cat" >&6; } ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if ${ac_cv_path_FGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if ${lt_cv_path_NM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else lt_nm_to_check=${ac_tool_prefix}nm if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. tmp_nm=$ac_dir/$lt_tmp_nm if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then # Check to see if the nm accepts a BSD-compat flag. # Adding the 'sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty case $build_os in mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if ${lt_cv_nm_interface+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if ${lt_cv_sys_max_cmd_len+:} false; then : $as_echo_n "(cached) " >&6 else i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n "$lt_cv_sys_max_cmd_len"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } if ${lt_cv_to_host_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 $as_echo "$lt_cv_to_host_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } if ${lt_cv_to_tool_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if ${lt_cv_ld_reload_flag+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test yes != "$GCC"; then reload_cmds=false fi ;; darwin*) if test yes = "$GCC"; then reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if ${lt_cv_deplibs_check_method+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # 'unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} : ${AR_FLAGS=cru} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 $as_echo_n "checking for archiver @FILE support... " >&6; } if ${lt_cv_ar_at_file+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 $as_echo "$lt_cv_ar_at_file" >&6; } if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if ${lt_cv_sys_global_symbol_pipe+:} false; then : $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm $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=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 $as_echo_n "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test "${with_sysroot+set}" = set; then : withval=$with_sysroot; else with_sysroot=no fi lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 $as_echo "$with_sysroot" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 $as_echo "${lt_sysroot:-no}" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 $as_echo_n "checking for a working dd... " >&6; } if ${ac_cv_path_lt_DD+:} false; then : $as_echo_n "(cached) " >&6 else printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} if test -z "$lt_DD"; then ac_path_lt_DD_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in dd; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_lt_DD" || continue if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi $ac_path_lt_DD_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_lt_DD"; then : fi else ac_cv_path_lt_DD=$lt_DD fi rm -f conftest.i conftest2.i conftest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 $as_echo "$ac_cv_path_lt_DD" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 $as_echo_n "checking how to truncate binary pipes... " >&6; } if ${lt_cv_truncate_bin+:} false; then : $as_echo_n "(cached) " >&6 else printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 $as_echo "$lt_cv_truncate_bin" >&6; } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if ${lt_cv_cc_needs_belf+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 $as_echo "$MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if ${lt_cv_path_mainfest_tool+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 $as_echo "$lt_cv_path_mainfest_tool" >&6; } if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if ${lt_cv_apple_cc_single_mod+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&5 # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if ${lt_cv_ld_exported_symbols_list+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 $as_echo_n "checking for -force_load linker flag... " >&6; } if ${lt_cv_ld_force_load+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 $as_echo "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10.[012][,.]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do : ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done func_stripname_cnf () { case $2 in .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; esac } # func_stripname_cnf # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS=$lt_save_ifs ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS=$lt_save_ifs ;; esac else enable_static=yes fi # Check whether --with-pic was given. if test "${with_pic+set}" = set; then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac else pic_mode=default fi # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS=$lt_save_ifs ;; esac else enable_fast_install=yes fi shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[5-9]*,yes) { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } # Check whether --with-aix-soname was given. if test "${with_aix_soname+set}" = set; then : withval=$with_aix_soname; case $withval in aix|svr4|both) ;; *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 ;; esac lt_cv_with_aix_soname=$with_aix_soname else if ${lt_cv_with_aix_soname+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_with_aix_soname=aix fi with_aix_soname=$lt_cv_with_aix_soname fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 $as_echo "$with_aix_soname" >&6; } if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if ${lt_cv_objdir+:} false; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o func_cc_basename $compiler cc_basename=$func_cc_basename_result # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/${ac_tool_prefix}file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC=$CC ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test yes = "$GCC"; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test yes = "$GCC"; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi lt_prog_compiler_pic='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 $as_echo "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if ${lt_cv_prog_compiler_pic_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works"; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test yes = "$lt_cv_prog_compiler_static_works"; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test no = "$hard_links"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) link_all_deplibs=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' export_dynamic_flag_spec='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='$wl--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs=yes ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) export_dynamic_flag_spec='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test no = "$ld_shlibs"; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct=no hardcode_direct_absolute=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' $wl-bernotok' allow_undefined_flag=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test yes = "$GCC"; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 $as_echo_n "checking if $CC understands -b... " >&6; } if ${lt_cv_prog_compiler__b+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 $as_echo "$lt_cv_prog_compiler__b" >&6; } if test yes = "$lt_cv_prog_compiler__b"; then archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test yes = "$lt_cv_irix_exported_symbol"; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi link_all_deplibs=no else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler ld_shlibs=yes archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' else archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='$wl-rpath,$libdir' fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; osf3*) if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test yes = "$GCC"; then wlarc='$wl' archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='$wl-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='$wl-z,text' allow_undefined_flag='$wl-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='$wl-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test no = "$ld_shlibs" && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([A-Za-z]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test yes = "$hardcode_automatic"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && test no != "$hardcode_minus_L"; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test relink = "$hardcode_action" || test yes = "$inherit_rpath"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen=shl_load else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen=dlopen else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi fi fi fi fi fi ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self+:} false; then : $as_echo_n "(cached) " >&6 else if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self_static+:} false; then : $as_echo_n "(cached) " >&6 else if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report what library types will actually be built { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC if test -n "$CXX" && ( test no != "$CXX" && ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || (test g++ != "$CXX"))); then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if ${ac_cv_prog_CXXCPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu else _lt_caught_CXX_error=yes fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= compiler_needs_object_CXX=no export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no inherit_rpath_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds reload_flag_CXX=$reload_flag reload_cmds_CXX=$reload_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_caught_CXX_error"; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC compiler_CXX=$CC func_cc_basename $compiler cc_basename=$func_cc_basename_result if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test yes = "$GXX"; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test yes = "$GXX"; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test yes = "$with_gnu_ld"; then archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='$wl' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes file_list_spec_CXX='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no ;; esac if test yes = "$GXX"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag=$shared_flag' $wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec_CXX='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. always_export_symbols_CXX=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. # The "-G" linker flag allows undefined symbols. no_undefined_flag_CXX='-bernotok' # Determine the default libpath from the value encoded in an empty # executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__CXX+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__CXX+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' $wl-bernotok' allow_undefined_flag_CXX=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' fi archive_cmds_need_lc_CXX=yes archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_CXX=' ' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=yes file_list_spec_CXX='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' enable_shared_with_static_runtimes_CXX=yes # Don't use ranlib old_postinstall_cmds_CXX='chmod 644 $oldlib' postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ func_to_tool_file "$lt_outputfile"~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' export_dynamic_flag_spec_CXX='$wl--export-all-symbols' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec_CXX='' fi link_all_deplibs_CXX=yes allow_undefined_flag_CXX=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" if test yes != "$lt_cv_apple_cc_single_mod"; then archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi else ld_shlibs_CXX=no fi ;; os2*) hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_minus_L_CXX=yes allow_undefined_flag_CXX=unsupported shrext_cmds=.dll archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes_CXX=yes ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; haiku*) archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs_CXX=yes ;; hpux9*) hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='$wl-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) ;; *) export_dynamic_flag_spec_CXX='$wl-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; interix[3-9]*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' hardcode_libdir_separator_CXX=: inherit_rpath_CXX=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [1-5].* | *pgcpp\ [1-5].*) prelink_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' old_archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' hardcode_libdir_flag_spec_CXX='-R$libdir' whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object_CXX=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) ld_shlibs_CXX=yes ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no hardcode_direct_absolute_CXX=yes archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='$wl-E' whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else ld_shlibs_CXX=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) case $host in osf3*) allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' ;; *) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ $RM $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' ;; esac hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes,no = "$GXX,$with_gnu_ld"; then allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' case $host in osf3*) archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; *) archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test yes,no = "$GXX,$with_gnu_ld"; then no_undefined_flag_CXX=' $wl-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' else # g++ 2.7 appears to require '-G' NOT '-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' fi hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='$wl-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_CXX='$wl-z,text' allow_undefined_flag_CXX='$wl-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='$wl-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ '"$old_archive_cmds_CXX" reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ '"$reload_cmds_CXX" ;; *) archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no GCC_CXX=$GXX LD_CXX=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" || test x-R = "$p"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test no = "$pre_test_object_deps_done"; then case $prev in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX=$prev$p else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX=$prev$p else postdeps_CXX="${postdeps_CXX} $prev$p" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test no = "$pre_test_object_deps_done"; then if test -z "$predep_objects_CXX"; then predep_objects_CXX=$p else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX=$p else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken case $host_os in interix[3-9]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac compiler_lib_search_dirs_CXX= if test -n "${compiler_lib_search_path_CXX}"; then compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` fi lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= # C++ specific cases for pic, static, wl, etc. if test yes = "$GXX"; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi lt_prog_compiler_pic_CXX='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic_CXX='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_CXX='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static_CXX='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static_CXX= ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix[4-9]*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='$wl-a ${wl}archive' if test ia64 != "$host_cpu"; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='$wl-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64, which still supported -KPIC. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) # IBM XL 8.0, 9.0 on PPC and BlueGene lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-qpic' lt_prog_compiler_static_CXX='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works_CXX=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works_CXX=yes fi else lt_cv_prog_compiler_static_works_CXX=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then : else lt_prog_compiler_static_CXX= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test no = "$hard_links"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' case $host_os in aix[4-9]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX=$ltdll_cmds ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' ;; esac ;; linux* | k*bsd*-gnu | gnu*) link_all_deplibs_CXX=no ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no with_gnu_ld_CXX=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc_CXX=no else lt_cv_archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec_CXX='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || test -n "$runpath_var_CXX" || test yes = "$hardcode_automatic_CXX"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct_CXX" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && test no != "$hardcode_minus_L_CXX"; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 $as_echo "$hardcode_action_CXX" >&6; } if test relink = "$hardcode_action_CXX" || test yes = "$inherit_rpath_CXX"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test yes != "$_lt_caught_CXX_error" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_commands="$ac_config_commands libtool" # Only expand once: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "#define const /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 $as_echo_n "checking for inline... " >&6; } if ${ac_cv_c_inline+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo () {return 0; } $ac_kw foo_t foo () {return 0; } #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_inline=$ac_kw fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 $as_echo "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac 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 cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" if test "x$ac_cv_type_long_long" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LONG_LONG 1 _ACEOF fi for ac_func in strrchr mallinfo do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done OPTIONAL_UTILS="" ac_fn_c_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default" if test "x$ac_cv_header_GL_glut_h" = xyes; then : OPTIONAL_UTILS+="viewevents " 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 save_CXX="$CXX" save_LIBS="$LIBS" CXX="$CXX $MPI_CXXFLAGS" LIBS="$LIBS $MPI_LDFLAGS" for ac_func in rts_get_personality ompi_comm_free MPI_Comm_create_errhandler do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI::Init_thread method" >&5 $as_echo_n "checking for MPI::Init_thread method... " >&6; } ac_have_cxx_mpi_init_thread=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (int argc, char **argv) { int res = MPI::Init_thread (argc, argv, 0); } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : $as_echo "#define HAVE_CXX_MPI_INIT_THREAD 1" >>confdefs.h ac_have_cxx_mpi_init_thread=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have_cxx_mpi_init_thread" >&5 $as_echo "$ac_have_cxx_mpi_init_thread" >&6; } # Check whether --enable-mpi was given. if test "${enable_mpi+set}" = set; then : enableval=$enable_mpi; MUSIC_USE_MPI="$enableval" else MUSIC_USE_MPI="yes" fi if test $MUSIC_USE_MPI = yes ; then MUSIC_USE_MPI=1 MPI_UTILS="eventsource eventsink eventselect eventgenerator eventcounter eventlogger contsink messagesource" EXAMPLESDIR="examples" else MUSIC_USE_MPI=0 MPI_UTILS="" OPTIONAL_UTILS="" EXAMPLESDIR="" fi if test x$MUSIC_USE_MPI = x1; then COND_USE_MPI_TRUE= COND_USE_MPI_FALSE='#' else COND_USE_MPI_TRUE='#' COND_USE_MPI_FALSE= fi # Check whether --enable-isend was given. if test "${enable_isend+set}" = set; then : enableval=$enable_isend; MUSIC_ISENDWAITALL="$enableval" else MUSIC_ISENDWAITALL="yes" fi if test $MUSIC_ISENDWAITALL = yes ; then MUSIC_ISENDWAITALL=1 else MUSIC_ISENDWAITALL=0 fi # Check whether --enable-anysource was given. if test "${enable_anysource+set}" = set; then : enableval=$enable_anysource; MUSIC_ANYSOURCE="$enableval" else MUSIC_ANYSOURCE="yes" fi if test $MUSIC_ANYSOURCE = yes ; then MUSIC_ANYSOURCE=1 else MUSIC_ANYSOURCE=0 fi LIBS="$save_LIBS" CXX="$save_CXX" 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 $ac_cv_type_size_t = yes; then MUSIC_HAVE_SIZE_T=1 else MUSIC_HAVE_SIZE_T=0 fi if test $ac_cv_type_long_long = yes; then MUSIC_HAVE_LONG_LONG=1 else MUSIC_HAVE_LONG_LONG=0 fi if test $ac_cv_func_MPI_Comm_create_errhandler = yes; then MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER=1 else MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER=0 fi # Pre-evaluating some autoconf variables if test "x$prefix" = xNONE; then PREFIX=$ac_default_prefix prefix=$PREFIX else PREFIX="$prefix" fi if test "x$exec_prefix" = xNONE; then EXEC_PREFIX="$PREFIX" exec_prefix=$EXEC_PREFIX else EXEC_PREFIX="`eval echo $exec_prefix`" fi if test "x$bindir" = 'x${exec_prefix}/bin'; then BINDIR="$EXEC_PREFIX/bin" else BINDIR="`eval echo $bindir`" fi if test "x$libdir" = 'x${exec_prefix}/lib'; then LIBDIR="$EXEC_PREFIX/lib" else LIBDIR="`eval echo $libdir`" fi if test "x$datarootdir" = 'x${prefix}/share'; then DATAROOTDIR="$PREFIX/share" else DATAROOTDIR="`eval echo $datarootdir`" fi if test "x$datadir" = 'x${datarootdir}'; then DATADIR="$DATAROOTDIR" else DATADIR="`eval echo $datadir`" fi PKGDATADIR="$DATADIR/$PACKAGE-$PACKAGE_VERSION" PKGEXTRABINDIR="$LIBDIR/$PACKAGE-$PACKAGE_VERSION" #TEST_SH_LIST=${srcdir}/*.test # Check whether --with-python was given. if test "${with_python+set}" = set; then : withval=$with_python; fi if test "x$with_python" != "xno"; then : if test "x$with_python" != "xyes"; then : PYTHON="$with_python" fi if test -n "$PYTHON"; then # If the user set $PYTHON, use it and don't search something else. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5 $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; } prog="import sys # 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 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] minverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)" if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 ($PYTHON -c "$prog") >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "Python interpreter is too old" "$LINENO" 5 fi am_display_PYTHON=$PYTHON else # Otherwise, try each interpreter until we find one that satisfies # VERSION. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; } if ${am_cv_pathless_PYTHON+:} false; then : $as_echo_n "(cached) " >&6 else for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do test "$am_cv_pathless_PYTHON" = none && break prog="import sys # 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 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] minverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)" if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then : break fi done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 $as_echo "$am_cv_pathless_PYTHON" >&6; } # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. if test "$am_cv_pathless_PYTHON" = none; then PYTHON=: else # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. set dummy $am_cv_pathless_PYTHON; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PYTHON+:} false; then : $as_echo_n "(cached) " >&6 else 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 test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PYTHON=$ac_cv_path_PYTHON if test -n "$PYTHON"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 $as_echo "$PYTHON" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi am_display_PYTHON=$am_cv_pathless_PYTHON fi if test "$PYTHON" = :; then have_python=no else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 $as_echo_n "checking for $am_display_PYTHON version... " >&6; } if ${am_cv_python_version+:} false; then : $as_echo_n "(cached) " >&6 else am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 $as_echo "$am_cv_python_version" >&6; } PYTHON_VERSION=$am_cv_python_version PYTHON_PREFIX='${prefix}' PYTHON_EXEC_PREFIX='${exec_prefix}' { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; } if ${am_cv_python_platform+:} false; then : $as_echo_n "(cached) " >&6 else am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 $as_echo "$am_cv_python_platform" >&6; } PYTHON_PLATFORM=$am_cv_python_platform # Just factor out some code duplication. am_python_setup_sysconfig="\ import sys # Prefer sysconfig over distutils.sysconfig, for better compatibility # with python 3.x. See automake bug#10227. try: import sysconfig except ImportError: can_use_sysconfig = 0 else: can_use_sysconfig = 1 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: # try: from platform import python_implementation if python_implementation() == 'CPython' and sys.version[:3] == '2.7': can_use_sysconfig = 0 except ImportError: pass" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } if ${am_cv_python_pythondir+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$prefix" = xNONE then am_py_prefix=$ac_default_prefix else am_py_prefix=$prefix fi am_cv_python_pythondir=`$PYTHON -c " $am_python_setup_sysconfig if can_use_sysconfig: sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) else: from distutils import sysconfig sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') sys.stdout.write(sitedir)"` case $am_cv_python_pythondir in $am_py_prefix*) am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` ;; *) case $am_py_prefix in /usr|/System*) ;; *) am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages ;; esac ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 $as_echo "$am_cv_python_pythondir" >&6; } pythondir=$am_cv_python_pythondir pkgpythondir=\${pythondir}/$PACKAGE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } if ${am_cv_python_pyexecdir+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$exec_prefix" = xNONE then am_py_exec_prefix=$am_py_prefix else am_py_exec_prefix=$exec_prefix fi am_cv_python_pyexecdir=`$PYTHON -c " $am_python_setup_sysconfig if can_use_sysconfig: sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) else: from distutils import sysconfig sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') sys.stdout.write(sitedir)"` case $am_cv_python_pyexecdir in $am_py_exec_prefix*) am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` ;; *) case $am_py_exec_prefix in /usr|/System*) ;; *) am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages ;; esac ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 $as_echo "$am_cv_python_pyexecdir" >&6; } pyexecdir=$am_cv_python_pyexecdir pkgpyexecdir=\${pyexecdir}/$PACKAGE have_python=yes fi else have_python=no fi if test "x$have_python" = "xyes"; then : PYTHON_INC=`$PYTHON -c 'import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_inc())'` as_ac_File=`$as_echo "ac_cv_file_"${PYTHON_INC}/Python.h"" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"${PYTHON_INC}/Python.h\"" >&5 $as_echo_n "checking for \"${PYTHON_INC}/Python.h\"... " >&6; } if eval \${$as_ac_File+:} false; then : $as_echo_n "(cached) " >&6 else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r ""${PYTHON_INC}/Python.h""; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" fi fi eval ac_res=\$$as_ac_File { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_ac_File"\" = x"yes"; then : PYMUSIC_CPPFLAGS="-I${PYTHON_INC}"; PYBUFFER_CPPFLAGS="-I${PYTHON_INC}" else have_python=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build PyMUSIC" >&5 $as_echo_n "checking whether to build PyMUSIC... " >&6; } if test "x$have_python" = "xyes"; then : else if test "x$with_python" = "xyes"; then : as_fn_error $? "PyMUSIC requested, but Python not found" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_python" >&5 $as_echo "$have_python" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; } if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then : $as_echo_n "(cached) " >&6 else ax_check_save_flags=$CFLAGS CFLAGS="$CFLAGS -fno-strict-aliasing" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ax_cv_check_cflags___fno_strict_aliasing=yes else ax_cv_check_cflags___fno_strict_aliasing=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$ax_check_save_flags fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5 $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; } if test x"$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then : PYMUSIC_CXXFLAGS="-fno-strict-aliasing"; PYBUFFER_CXXFLAGS="-fno-strict-aliasing" else : fi PYMUSIC_SUBDIR="" if test -z "${COND_USE_MPI_TRUE}"; then # FIXME: this means that --without-python make will not recurse into pymusic subdir if test "x$have_python" = "xyes"; then MUSICCONFIGDIR="music-config" PYMUSIC_SUBDIR="pymusic" fi if test "x$have_python" = "xyes"; then HAVE_PYTHON_TRUE= HAVE_PYTHON_FALSE='#' else HAVE_PYTHON_TRUE='#' HAVE_PYTHON_FALSE= fi # Check whether --enable-deb was given. if test "${enable_deb+set}" = set; then : enableval=$enable_deb; case "${enableval}" in yes) deb_package=true ;; no) deb_package=false ;; *) deb_package=true ;; esac else deb_package=false fi if test x$deb_package = xtrue; then DEB_PACKAGE_TRUE= DEB_PACKAGE_FALSE='#' else DEB_PACKAGE_TRUE='#' DEB_PACKAGE_FALSE= fi if test x$deb_package = xtrue; then pythondir="\${exec_prefix}/lib/python3/dist-packages" pyexecdir="\${exec_prefix}/lib/python3/dist-packages" fi # if Python is found, configure and compile PyMUSIC if test "x$have_python" = "xyes" ; then ac_config_files="$ac_config_files pymusic/Makefile" ac_config_files="$ac_config_files pymusic/examples/Makefile" ac_config_files="$ac_config_files pymusic/setup.py" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build ROS Toolchain" >&5 $as_echo_n "checking whether to build ROS Toolchain... " >&6; } # Check whether --with-ros was given. if test "${with_ros+set}" = set; then : withval=$with_ros; fi ROS_SUBDIR="" if test "x$with_ros" = "xyes"; then : ROS_SUBDIR="ros" else with_ros=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ros" >&5 $as_echo "$with_ros" >&6; } # if ROS is to be compiled if test "x$with_ros" = "xyes" ; then ac_config_files="$ac_config_files ros/Makefile" ac_config_files="$ac_config_files ros/adapters/Makefile" ac_config_files="$ac_config_files ros/encoder/Makefile" ac_config_files="$ac_config_files ros/decoder/Makefile" fi PYEXECDIR=${pyexecdir} if test ! -z "$LAUNCHSTYLE"; then LAUNCHSTYLE_SET_TRUE= LAUNCHSTYLE_SET_FALSE='#' else LAUNCHSTYLE_SET_TRUE='#' LAUNCHSTYLE_SET_FALSE= fi #AC_SUBST([TEST_SH_LIST]) if test $(uname) = Darwin; then DARWIN_TRUE= DARWIN_FALSE='#' else DARWIN_TRUE='#' DARWIN_FALSE= fi ac_config_files="$ac_config_files Makefile mpidep/Makefile src/Makefile src/music/music-config.hh src/music/version.hh rudeconfig/Makefile utils/Makefile examples/Makefile testsuite/Makefile testsuite/music_tests testsuite/unittests/catch/Makefile testsuite/sanitytests/Makefile music-config/Makefile music-config/predict_rank.py doc/Makefile extras/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi 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__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 "${COND_USE_MPI_TRUE}" && test -z "${COND_USE_MPI_FALSE}"; then as_fn_error $? "conditional \"COND_USE_MPI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DEB_PACKAGE_TRUE}" && test -z "${DEB_PACKAGE_FALSE}"; then as_fn_error $? "conditional \"DEB_PACKAGE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${LAUNCHSTYLE_SET_TRUE}" && test -z "${LAUNCHSTYLE_SET_FALSE}"; then as_fn_error $? "conditional \"LAUNCHSTYLE_SET\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DARWIN_TRUE}" && test -z "${DARWIN_FALSE}"; then as_fn_error $? "conditional \"DARWIN\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by music $as_me 1.1.16, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ music config.status 1.1.16 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" 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"`' 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"`' 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 \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ DLLTOOL \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_import \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ lt_cv_nm_interface \ nm_file_list_spec \ lt_cv_truncate_bin \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib \ compiler_lib_search_dirs \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ LD_CXX \ reload_flag_CXX \ compiler_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_static_CXX \ lt_cv_prog_compiler_c_o_CXX \ export_dynamic_flag_spec_CXX \ whole_archive_flag_spec_CXX \ compiler_needs_object_CXX \ with_gnu_ld_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_separator_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX \ file_list_spec_CXX \ compiler_lib_search_dirs_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ configure_time_dlsearch_path \ configure_time_lt_sys_library_path \ reload_cmds_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ export_symbols_cmds_CXX \ prelink_cmds_CXX \ postlink_cmds_CXX; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "pymusic/Makefile") CONFIG_FILES="$CONFIG_FILES pymusic/Makefile" ;; "pymusic/examples/Makefile") CONFIG_FILES="$CONFIG_FILES pymusic/examples/Makefile" ;; "pymusic/setup.py") CONFIG_FILES="$CONFIG_FILES pymusic/setup.py" ;; "ros/Makefile") CONFIG_FILES="$CONFIG_FILES ros/Makefile" ;; "ros/adapters/Makefile") CONFIG_FILES="$CONFIG_FILES ros/adapters/Makefile" ;; "ros/encoder/Makefile") CONFIG_FILES="$CONFIG_FILES ros/encoder/Makefile" ;; "ros/decoder/Makefile") CONFIG_FILES="$CONFIG_FILES ros/decoder/Makefile" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "mpidep/Makefile") CONFIG_FILES="$CONFIG_FILES mpidep/Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/music/music-config.hh") CONFIG_FILES="$CONFIG_FILES src/music/music-config.hh" ;; "src/music/version.hh") CONFIG_FILES="$CONFIG_FILES src/music/version.hh" ;; "rudeconfig/Makefile") CONFIG_FILES="$CONFIG_FILES rudeconfig/Makefile" ;; "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; "testsuite/music_tests") CONFIG_FILES="$CONFIG_FILES testsuite/music_tests" ;; "testsuite/unittests/catch/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/unittests/catch/Makefile" ;; "testsuite/sanitytests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/sanitytests/Makefile" ;; "music-config/Makefile") CONFIG_FILES="$CONFIG_FILES music-config/Makefile" ;; "music-config/predict_rank.py") CONFIG_FILES="$CONFIG_FILES music-config/predict_rank.py" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "extras/Makefile") CONFIG_FILES="$CONFIG_FILES extras/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. # 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=`$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" || $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$am_mf" : 'X\(//\)[^/]' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo 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 || $as_echo 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 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. 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 # 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. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm into a list of symbols to manually relocate. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name lister interface. nm_interface=$lt_lt_cv_nm_interface # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and where our libraries should be installed. lt_sysroot=$lt_sysroot # Command to truncate a binary pipe. lt_truncate_bin=$lt_lt_cv_truncate_bin # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Detected run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects postdep_objects=$lt_postdep_objects predeps=$lt_predeps postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain=$ac_aux_dir/ltmain.sh # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: CXX # The linker used to build libraries. LD=$lt_LD_CXX # How to create reloadable object files. reload_flag=$lt_reload_flag_CXX reload_cmds=$lt_reload_cmds_CXX # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_CXX # A language specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU compiler? with_gcc=$GCC_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_CXX # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_CXX # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_CXX # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_CXX # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_CXX # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_CXX # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_CXX # Specify filename containing input files. file_list_spec=$lt_file_list_spec_CXX # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_CXX postdep_objects=$lt_postdep_objects_CXX predeps=$lt_predeps_CXX postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # ### END LIBTOOL TAG CONFIG: CXX _LT_EOF ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi if test "$ac_cv_header_GL_glut_h" = "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: viewevents will not be built since the GL/glut.h header was not found on this system. This is no problem unless you plan to view spiking activity graphically." >&5 $as_echo "$as_me: NOTE: viewevents will not be built since the GL/glut.h header was not found on this system. This is no problem unless you plan to view spiking activity graphically." >&6;} fi music-1.1.16/install-sh0000755000175000017500000003601013571626611011655 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2018-03-11.20; # 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. tab=' ' nl=' ' IFS=" $tab$nl" # Set DOITPROG to "echo" to test this script. doit=${DOITPROG-} doit_exec=${doit:-exec} # 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_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 is_target_a_directory=possibly 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 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) is_target_a_directory=always dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) is_target_a_directory=never;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done # We allow the use of options -d and -T together, by making -d # take the precedence; this is for compatibility with GNU install. if test -n "$dir_arg"; then if test -n "$dst_arg"; then echo "$0: target directory not allowed when installing a directory." >&2 exit 1 fi fi 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 if test $# -gt 1 || test "$is_target_a_directory" = always; then if test ! -d "$dst_arg"; then echo "$0: $dst_arg: Is not a directory." >&2 exit 1 fi fi 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. if test -d "$dst"; then if test "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dstbase=`basename "$src"` case $dst in */) dst=$dst$dstbase;; *) dst=$dst/$dstbase;; esac dstdir_status=0 else dstdir=`dirname "$dst"` test -d "$dstdir" dstdir_status=$? fi fi case $dstdir in */) dstdirslash=$dstdir;; *) dstdirslash=$dstdir/;; esac 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. ;; *) # Note that $RANDOM variable is not portable (e.g. dash); Use it # here however when possible just to lower collision chance. tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 # Because "mkdir -p" follows existing symlinks and we likely work # directly in world-writeable /tmp, make sure that the '$tmpdir' # directory is successfully created first before we actually test # 'mkdir -p' feature. if (umask $mkdir_umask && $mkdirprog $mkdir_mode "$tmpdir" && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/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. test_tmpdir="$tmpdir/a" ls_ld_tmpdir=`ls -ld "$test_tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 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 oIFS=$IFS IFS=/ set -f set fnord $dstdir shift 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=${dstdirslash}_inst.$$_ rmtmp=${dstdirslash}_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` && set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && 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 '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: music-1.1.16/extras/0000755000175000017500000000000013571740114011232 500000000000000music-1.1.16/extras/Makefile.am0000644000175000017500000000026513571617503013216 00000000000000## Process this file with Automake to create Makefile.in EXTRA_DIST = music_mpirun install-data-hook: @INSTALL_PROGRAM@ $(srcdir)/music@LAUNCHSTYLE@ $(DESTDIR)$(bindir)/musicrun music-1.1.16/extras/music_mpirun0000755000175000017500000000055213571617503013621 00000000000000#! /bin/sh if [ $# -ne 2 ]; then echo "Usage: musicrun " exit 1 fi abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")" path="`dirname $abspath`" binary=`mpirun -np $1 $path/music $2` exitcode=$? if [ $exitcode -ne 0 ]; then echo "$binary" exit $exitcode fi echo "$binary" exit $exitcode music-1.1.16/extras/Makefile.in0000644000175000017500000003217213571626611013231 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 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@ subdir = extras ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.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 CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__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) am__DIST_COMMON = $(srcdir)/Makefile.in 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@ BINDIR = @BINDIR@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXAMPLESDIR = @EXAMPLESDIR@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ FGREP = @FGREP@ GREP = @GREP@ HAVE_PYTHON = @HAVE_PYTHON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LAUNCHSTYLE = @LAUNCHSTYLE@ 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@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPI_CFLAGS = @MPI_CFLAGS@ MPI_CXXFLAGS = @MPI_CXXFLAGS@ MPI_LDFLAGS = @MPI_LDFLAGS@ MPI_UTILS = @MPI_UTILS@ MUSICCONFIGDIR = @MUSICCONFIGDIR@ MUSIC_ANYSOURCE = @MUSIC_ANYSOURCE@ MUSIC_HAVE_LONG_LONG = @MUSIC_HAVE_LONG_LONG@ MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER = @MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER@ MUSIC_HAVE_SIZE_T = @MUSIC_HAVE_SIZE_T@ MUSIC_ISENDWAITALL = @MUSIC_ISENDWAITALL@ MUSIC_USE_MPI = @MUSIC_USE_MPI@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPTIONAL_UTILS = @OPTIONAL_UTILS@ 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@ PKGDATADIR = @PKGDATADIR@ PKGEXTRABINDIR = @PKGEXTRABINDIR@ PYBUFFER_CPPFLAGS = @PYBUFFER_CPPFLAGS@ PYBUFFER_CXXFLAGS = @PYBUFFER_CXXFLAGS@ PYEXECDIR = @PYEXECDIR@ PYMUSIC_CPPFLAGS = @PYMUSIC_CPPFLAGS@ PYMUSIC_CXXFLAGS = @PYMUSIC_CXXFLAGS@ PYMUSIC_SUBDIR = @PYMUSIC_SUBDIR@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ ROS_SUBDIR = @ROS_SUBDIR@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTDIR = @TESTDIR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = music_mpirun all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu extras/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu extras/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: 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 installdirs: 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 mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: @$(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 Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-data-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool 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-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am .PRECIOUS: Makefile install-data-hook: @INSTALL_PROGRAM@ $(srcdir)/music@LAUNCHSTYLE@ $(DESTDIR)$(bindir)/musicrun # 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: music-1.1.16/compile0000755000175000017500000001632713571626611011240 00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1999-2018 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ 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: music-1.1.16/rudeconfig/0000755000175000017500000000000013571740113012050 500000000000000music-1.1.16/rudeconfig/AUTHORS0000644000175000017500000000215513571617503013051 00000000000000Authors of RudeConfig C++ Library For correspondence specific to the rudeconfig library, please use the email address RudeConfig was written by Matt Flood RudeConfig is currently maintained by Matt Flood In the US: Matt Flood Unit 114 4820 Thunderbird Circle Boulder, CO 80303 (+1) (720) 284-1208 http://www.rudeserver.com/ Copyright (C) 2005 Matthew Flood This file is part of RudeConfig. RudeConfig 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. RudeConfig 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 RudeConfig; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. music-1.1.16/rudeconfig/COPYING0000644000175000017500000004312213571617503013033 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) 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 this service 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 make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. 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. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute 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 and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), 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 distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the 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 a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, 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. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE 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. 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 convey 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 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision 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, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This 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 Library General Public License instead of this License. music-1.1.16/rudeconfig/Makefile.am0000644000175000017500000000361713571617503014041 00000000000000# Makefile.am # # Copyright (C) 2005 Matthew Flood # See file AUTHORS for contact information # # This file is part of RudeConfig. # # RudeConfig 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. # # RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. #------------------------------------------------------------------------ AUTOMAKE_OPTIONS = gnits dist-bzip2 dist-zip subdir-objects noinst_LTLIBRARIES = librudeconfig.la librudeconfig_la_SOURCES = src/AbstractData.cpp \ src/Comment.cpp \ src/File.cpp \ src/Section.cpp \ src/AbstractOrganiser.cpp \ src/config.cpp \ src/KeyValue.cpp \ src/WhiteSpace.cpp \ src/AbstractParser.cpp \ src/ConfigImpl.cpp \ src/Writer.cpp \ src/SourceDest.cpp \ src/AbstractWriter.cpp \ src/DataLine.cpp \ src/ParserJuly2004.cpp \ src/Base64Encoder.cpp \ src/RealOrganiser.cpp \ src/AbstractData.h \ src/AbstractWriter.h \ src/config.h \ src/Section.h \ src/AbstractOrganiser.h \ src/Base64Encoder.h \ src/ConfigImpl.h \ src/File.h \ src/ParserJuly2004.h \ src/WhiteSpace.h \ src/AbstractParser.h \ src/Comment.h \ src/DataLine.h \ src/KeyValue.h \ src/RealOrganiser.h \ src/Writer.h \ src/SourceDest.h librudeconfig_la_LDFLAGS = -version-info 5:1:2 #pkginclude_HEADERS = src/config.h #pkgincludedir = $(includedir)/rude #man_MANS = man3/rudeconfig.3 EXTRA_DIST = $(man_MANS) music-1.1.16/rudeconfig/THANKS0000644000175000017500000000026613571617503012715 00000000000000RudeConfig THANKS file Special thanks goes out to the following individuals who helped to make RudeConfig a better Library. Michael Schwendt Ralf Corsepius Karen Dolan Ole Hansen music-1.1.16/rudeconfig/ChangeLog0000644000175000017500000001456013571617503013556 000000000000002009-10-24 Mikael Djurfeldt * src/ParserJuly2004.cpp: #include . (ParserJuky2004::parse): Changed type of variable `dotPos' from int to size_t throughout; Use '&&' instead of '&' in conditional expression. 2009-03-08 Mikael Djurfeldt * Makefile.am (man_MANS): Don't install man pages. (pkginclude): Don't install header files. 2009-02-11 Mikael Djurfeldt * Makefile.am: Changed librudeconfig.la to a noinst target. 2008-08-05 Mikael Djurfeldt * src/ConfigImpl.cpp: #include . * src/File.h: #include . 2007-11-07 Mikael Djurfeldt * ParserJuly2004.cpp: Use int instead of char to handle parsed characters, so that we can distinguish between code 255 and EOF. 2007-11-06 Mikael Djurfeldt * INSTALL, Makefile.in, aclocal.m4, config.guess, config.sub, configure.ac, configure, depcomp, install-sh, ltmain.sh, missing: Removed. 2007-11-01 Mikael Djurfeldt * src/config.h, src/config.cpp (Config::load): Added new method for std::istream&. ChangeLog for RudeConfig C++ Library Copyright (C) 2005, 2007, 2008 Matthew Flood See file AUTHORS for contact information This file is part of RudeConfig. RudeConfig 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. RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Thu Feb 01 2007 Matt Flood - 5.0.5-1 - Renamed header include guards in config.h - From INCLUDED_CONFIG_H to INCLUDED_RUDE_CONFIG_H * Thu Feb 01 2007 Matt Flood - 5.0.4-3 - Minor amendments to build-related scripts - Added missing include directory to specfile * Thu Feb 01 2007 Matt Flood - 5.0.4-2 - Minor amendments to build-related scripts - Fixed minor typo in changelog (ChangeLog and rudeconfig.spec) - Added --disable-static to configure directive in rudeconfig.spec * Fri Jan 19 2007 Matt Flood - 5.0.4-1 - Created MAN page (rudeconfig.3) * Mon Jul 31 2006 Matt Flood - 5.0.3-1 - Minor changes to facilitate Windows builds * changed #include's of to * added .c_str() to a string object to correct shorthand if statement ( a ? x : y ) * Thu Apr 10 2006 Matt Flood - 5.0.2-1 - First RPM Release * Fri Sep 2 2005 Matt Flood - 5.0.2-0 - Modified source code for DataLine.cpp - removed 'using namespace std' which Visual Studio is too dumb to ignore. - Fixed ParserJuly2004::chompEOL() - was not returning a value - (TODO: consider making the function void) ------------- -------------------------- --------------------------------------------------- Release Version 3.2 Lib Version 5.0.2 2005-06-02 * Renamed Config.cc to config.cc - interface files will be lower case, all other will remain mixed-cased. * Added Instance Methods: const char *Config::getConfigFile(); const char *ConfigImpl::getConfigFile(); * In order to accommodate windows builds, renamed *.cc to *.cpp ------------- -------------------------- --------------------------------------------------- Release Version 3.1 Lib Version 4.0.1 2005-05-18 * Renamed Config.h config.h 2005-05-17 Matthew Flood * Changed signature of: static int ConfigImpl::stringToBinary(const char *value, char *dataout); to: static char * ConfigImpl::stringToBinary(const char *value, int &outlength); 2005-05-07 Matthew Flood *Added the folowing interface methods const char * Config::getValue(const char *name) const; void Config::setValue(const char *name, const char *value); *getStringValue() and setStringValue() are now deprecated 2005-05-06 Matthew Flood *Added AUTOMAKE_OPTIONS to create more distribution types *Created README, THANKS, NEWS *Added Static Interface methods: static void Config::setDefaultConfigFile(const char *filepath); static const char *Config::getDefaultConfigFile(); static void Config::setDefaultCommentCharacter(char c); static char Config::getDefaultCommentCharacter(); static void Config::setDefaultDelimiter(char c); static char Config::getDefaultDelimiter(); static void Config::setDefaultPreserveDeleted(bool shouldPreserve); static bool Config::getDefaultPreserveDeleted(); *Added Static Implementation Methods (Implementation Additions) static const char *ConfigImpl::getDefaultConfigFile(); static char ConfigImpl::getDefaultCommentCharacter(); static char ConfigImpl::getDefaultDelimiter(); static bool ConfigImpl::getDefaultPreserveDeleted(); *Updated API Documentation ------------- -------------------------- --------------------------------------------------- Release Version 3.0 Lib Version 3.0.0 2005-05-05 Matthew Flood (Created Open Source) * AUTHORS - created * ChangeLog Created * Renamed config.h and config.cc to Config.h and Config.cc ------------- -------------------------- --------------------------------------------------- Release 2.1 1. Added setSection(const char *) method to interface, to replace the commonly used setSection(const char *, bool) 2. Added preserveDeletedData(bool) method to allow deleted data to be discarded 3. Made significant performance optimizations 4. Enhanced documentation 5. Changed name of default configuration file from default.cnf to default.ini ------------- -------------------------- --------------------------------------------------- Release 1.1 1. Fixed integer and double conversion bugs ------------- -------------------------- --------------------------------------------------- Release 1.0 1. Renamed Component from Rude_Config 2. Added Rude namespace 3. Added multi-line value support (backslash-CRLF escape sequence) ------------------------------------------------------------------------------------ --End of Change Log-- music-1.1.16/rudeconfig/src/0000755000175000017500000000000013571740113012637 500000000000000music-1.1.16/rudeconfig/src/AbstractData.cpp0000644000175000017500000000224113571617503015625 00000000000000// AbstractData.cc // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #include "../config.h" #include "AbstractData.h" namespace rude{ namespace config{ AbstractData::AbstractData() { } AbstractData::~AbstractData() { } }} // end namespaces music-1.1.16/rudeconfig/src/SourceDest.cpp0000644000175000017500000000641713571617503015361 00000000000000// // SourceDest.cpp // // Written by Johannes Hjorth, based on original KeyValue.cpp // by Matthew Flood. // #include "../config.h" #include "SourceDest.h" #ifndef INCLUDED_AbstractWriter_H #include "AbstractWriter.h" #endif #ifndef INCLUDED_CSTDIO #include #define INCLUDED_CSTDIO #endif using namespace std; namespace rude{ namespace config{ SourceDest::SourceDest() { d_srcApp = ""; d_srcObj = ""; d_destApp = ""; d_destObj = ""; d_width = ""; d_comment = ""; d_commType = ""; d_procMethod = ""; } SourceDest::SourceDest(const char *srcApp, const char *srcObj, const char *destApp, const char *destObj, const char *width,const char* commType, const char *procMethod, const char *comment) { d_srcApp = srcApp ? srcApp : ""; d_srcObj = srcObj ? srcObj : ""; d_destApp = destApp ? destApp : ""; d_destObj = destObj ? destObj : ""; d_width = width ? width : ""; d_comment = comment ? comment : ""; d_commType = commType ? commType : ""; d_procMethod = procMethod ? procMethod : ""; } void SourceDest::acceptWriter(AbstractWriter& writer) const { std::cout << "writer.visitSourceDest not implemented yet!"; std::cout << "\nsrcApp: \"" << d_srcApp << "\", srcObj: \"" << d_srcObj << "\""; std::cout << "\ndestApp: \"" << d_srcApp << "\", destObj: \"" << d_srcObj << "\""; std::cout << "\nwidth: " << d_width; std::cout << "\ncommType: " << d_commType; std::cout << "\nprocMethod: " << d_procMethod; std::cout << "\ncomment: \"" << d_comment << "\"\n"; //writer.visitKeyValue(*this); } std::string SourceDest::toString() { std::cout << "REMOVE THIS FUNCTION"; return "\nsrcApp: \"" + d_srcApp + "\", srcObj: \"" + d_srcObj + "\"" + "\ndestApp: \"" + d_destApp + "\", destObj: \"" + d_destObj + "\"" + "\nwidth: " + d_width + "\ncommType: " + d_commType + "\nprocMethod: " + d_procMethod + "\ncomment: \"" + d_comment + "\"\n"; } const char *SourceDest::getSrcApp() const { return d_srcApp.c_str(); } const char *SourceDest::getSrcObj() const { return d_srcObj.c_str(); } const char *SourceDest::getDestApp() const { return d_destApp.c_str(); } const char *SourceDest::getDestObj() const { return d_destObj.c_str(); } const char *SourceDest::getWidth() const { return d_width.c_str(); } const char *SourceDest::getCommType() const { return d_commType.c_str(); } const char *SourceDest::getProcMethod() const { return d_procMethod.c_str(); } const char *SourceDest::getComment() const { return d_comment.c_str(); } void SourceDest::setSrcApp(const char *srcApp) { d_srcApp = srcApp ? srcApp : ""; } void SourceDest::setSrcObj(const char *srcObj) { d_srcObj = srcObj ? srcObj : ""; } void SourceDest::setDestApp(const char *destApp) { d_destApp = destApp ? destApp : ""; } void SourceDest::setDestObj(const char *destObj) { d_destObj = destObj ? destObj : ""; } void SourceDest::setWidth(const char *width) { d_width = width ? width : ""; } void SourceDest::setCommType(const char *commType) { d_commType = commType ? commType : ""; } void SourceDest::setProcMethod(const char *procMethod) { d_procMethod = procMethod ? procMethod : ""; } void SourceDest::setComment(const char *comment) { d_comment = comment ? comment : ""; } SourceDest::~SourceDest() { } }} // end namespace rude::config music-1.1.16/rudeconfig/src/Section.cpp0000644000175000017500000002221313571617503014675 00000000000000// Section.cpp // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #include "../config.h" #include "Section.h" #ifndef INCLUDED_RUDE_DataLine_H #include "DataLine.h" #endif #ifndef INCLUDED_KeyValue_H #include "KeyValue.h" #endif #ifndef INCLUDED_SourceDest_H #include "SourceDest.h" #endif #ifndef INCLUDED_WhiteSpace_H #include "WhiteSpace.h" #endif #ifndef INCLUDED_Comment_H #include "Comment.h" #endif #ifndef INCLUDED_AbstractWriter_H #include "AbstractWriter.h" #endif #ifndef INCLUDED_STRING #include #define INCLUDED_STRING #endif using namespace rude::config; namespace rude{ namespace config{ Section::Section(const char *sectionname, const char *sectioncomment) { d_isDeleted = false; d_sectionname = sectionname ? sectionname: ""; d_sectioncomment = sectioncomment ? sectioncomment: ""; } Section::~Section() { std::vector::iterator iter; for(iter = d_allDataVector.begin(); iter != d_allDataVector.end(); iter++) { delete (*iter); } } void Section::acceptWriter(AbstractWriter& writer) const { writer.visitSection(*this); // Send the writer to all the children. // The writer will know what to do. // std::vector::iterator iter; for(iter = d_allDataVector.begin(); iter != d_allDataVector.end(); iter++) { (*iter)->acceptWriter(writer); } } const char *Section::getSectionName() const { return d_sectionname.c_str(); } const char *Section::getSectionComment() const { return d_sectioncomment.c_str(); } void Section::setSectionComment(const char * newcomment) { d_sectioncomment = newcomment ? newcomment : ""; } bool Section::isDeleted() const { return d_isDeleted; } void Section::isDeleted(bool is_it_or_not) { d_isDeleted = is_it_or_not; if(d_isDeleted) { // Delete all data members // std::vector::iterator iter; for(iter = d_allDataVector.begin(); iter != d_allDataVector.end(); iter++) { (*iter)->isDeleted(true); } d_kv_vector.clear(); d_kv_map.clear(); d_sd_vector.clear(); } } int Section::getNumDataMembers() const { return d_kv_vector.size(); } int Section::getNumSourceDestMembers() const { return d_sd_vector.size(); } const char *Section::getDataNameAt(int index) const { KeyValue *kv = d_kv_vector[index]; if(kv) { return kv->getName(); } return ""; } const char *Section::getDestAppAt(int index) const { SourceDest *sd = d_sd_vector[index]; if(sd) { return sd->getDestApp(); } return ""; } const char *Section::getSrcAppAt(int index) const { SourceDest *sd = d_sd_vector[index]; if(sd) { return sd->getSrcApp(); } return ""; } const char *Section::getDestObjAt(int index) const { SourceDest *sd = d_sd_vector[index]; if(sd) { return sd->getDestObj(); } return ""; } const char *Section::getSrcObjAt(int index) const { SourceDest *sd = d_sd_vector[index]; if(sd) { return sd->getSrcObj(); } return ""; } // Returns the concatenation of srcApp.srcObj const char *Section::getWidthAt(int index) const { SourceDest *sd = d_sd_vector[index]; if(sd) { return sd->getWidth(); } return ""; } const char *Section::getCommTypeAt(int index) const { SourceDest *sd = d_sd_vector[index]; if(sd) { return sd->getCommType(); } return ""; } const char *Section::getProcMethodAt(int index) const { SourceDest *sd = d_sd_vector[index]; if(sd) { return sd->getProcMethod(); } return ""; } const char *Section::getDataValueAt(int index) const { KeyValue *kv = d_kv_vector[index]; if(kv) { return kv->getValue(); } return ""; } // MAPPED // bool Section::exists(const char *name) const { if(name) { std::string myname = name; KeyValue *mydata = d_kv_map[myname]; if(mydata) { return true; } } return false; } // MAPPED // const char * Section::getValue(const char *name) const { if(name) { std::string myname=name; KeyValue *mydata = d_kv_map[myname]; if(mydata) { return mydata->getValue(); } } return ""; } // MAPPED // void Section::setValue(const char *name, const char *value) { if(name) { std::string myname=name; KeyValue *mydata = d_kv_map[myname]; if(mydata) { mydata->setValue(value); mydata->isDeleted(false); } else { KeyValue *newdata = new KeyValue(); newdata->setName(name); newdata->setValue(value); d_allDataVector.push_back(newdata); d_kv_vector.push_back(newdata); d_kv_map[myname] = newdata; } } } // MAPPED // const char * Section::getComment(const char *name) const { if(name) { std::string myname=name; KeyValue *mydata = d_kv_map[myname]; if(mydata) { return mydata->getComment(); } } return ""; } // MAPPED // void Section::setComment(const char *name, const char *comment) { if(name) { std::string myname=name; KeyValue *mydata = d_kv_map[myname]; if(mydata) { mydata->setComment(comment); } } } // MAPPED // void Section::setValue(const char *name, const char *value, const char *comment) { if(name) { std::string myname=name; KeyValue *mydata = d_kv_map[myname]; if(mydata) { mydata->setValue(value); mydata->setComment(comment); mydata->isDeleted(false); } else { KeyValue *newdata = new KeyValue(name, value, comment); d_allDataVector.push_back(newdata); d_kv_vector.push_back(newdata); d_kv_map[myname] = newdata; } } } // CREATES // void Section::addSourceDest(const char *srcApp, const char *srcObj, const char *destApp, const char *destObj, const char *width, const char *commType, const char *procMethod, const char *comment) { SourceDest *newsd = new SourceDest(srcApp, srcObj, destApp, destObj, width, commType, procMethod, comment); d_allDataVector.push_back(newsd); d_sd_vector.push_back(newsd); } // MAPPED // void Section::addComment(const char *comment) { Comment *newdata = new Comment(comment); d_allDataVector.push_back(newdata); } // MAPPED // void Section::addWhiteSpace(const char *whitespace) { WhiteSpace *newdata = new WhiteSpace(whitespace); d_allDataVector.push_back(newdata); } // MAPPED // bool Section::deleteData(const char *name) { // Since we are keeping deleted data in the d_allDataVector, // multiple set/deletes will require lots of memory!! // if(name) { std::string myname=name; KeyValue *mydata = d_kv_map[myname]; if(mydata) { // Remain in d_allDataVector, but as deleted // mydata->isDeleted(true); // remove from keyvalue vector and map // std::vector::iterator iter; for(iter = d_kv_vector.begin(); iter != d_kv_vector.end(); iter ++) { if( *iter == mydata ) { d_kv_vector.erase(iter); break; } } d_kv_map.erase(myname); return true; } } return false; } }} // end namespace rude::config music-1.1.16/rudeconfig/src/RealOrganiser.h0000644000175000017500000000373513571617503015503 00000000000000// RealOrganiser.h // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #ifndef INPUT_RealOrganiser_h #define INPUT_RealOrganiser_h #include "AbstractOrganiser.h" #include namespace rude{ namespace config{ class File; class Section; class RealOrganiser: public AbstractOrganiser { File *d_file; Section *d_section; public: RealOrganiser(File*); virtual void foundSection(const char *sectionName, const char *comment); virtual void foundComment(const char *comment); virtual void foundWhiteSpace(const char *whitespace); virtual void foundData(const char *key, const char *value, const char *comment); /* remedius * two more parameters: commType and procMethod were added due to the runtime opportunity * of choosing communication type and pre-/post-processing method. */ virtual void foundSourceDest(const char *srcApp, const char *srcObj, const char *destApp, const char *destObj, const char *width, const char *commType, const char *procMethod, const char *comment); }; }} // end namespaces #endif music-1.1.16/rudeconfig/src/ParserJuly2004.cpp0000644000175000017500000012572313571617503015711 00000000000000// ParserJuly2004.cc // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #include "../config.h" #include "ParserJuly2004.h" #ifndef INCLUDED_AbstractOrganiser_h #include "AbstractOrganiser.h" #endif #ifndef INCLUDED_CCTYPE #include #define INCLUDED_CCTYPE #endif #ifndef INCLUDED_IOSTREAM #include #define INCLUDED_IOSTREAM #endif #include using namespace rude::config; using namespace std; namespace rude{ namespace config{ enum SectionState{ STARTSECTION, SECTIONID, ESCAPEID, ENDSECTIONID, SECTIONCOMMENT, FOUNDIDONLY, FOUNDIDCOMMENT, SECTIONERROR, ENDSECTION }; /* remedius * GETCOMMTYPE, GETPROCMETHOD were added in order to support runtime configuration options for choosing communication type and pre-/post-processing method */ enum KeyValueState{ KEY, KEYESCAPE, STARTVALUE, COMMENT, FINDCOMMENT, KVERROR, ENDKV, VALUE, QUOTEVALUE, NONQUOTEVALUE, QUOTEESCAPE, NONQUOTEESCAPE, ENDKEYVALUE, LEFTARROW, RIGHTARROW, GETSOURCE, GETDEST, GETWIDTH, GETCOMMTYPE, GETPROCMETHOD, SDCOMMENT, ENDSOURCEDEST}; void ParserJuly2004::stripTrailing(std::string& buffer) { int bufferLength = buffer.size(); for (int x = bufferLength - 1; x >= 0; x--) { char c = buffer[x]; if (isspace(c)) { buffer.erase(x); } else { break; } } } bool ParserJuly2004::isEOL(char c) { return (c == '\r' || c == '\f' || c == '\n'); } bool ParserJuly2004::chompEOL(std::istream& inputstream) { char c = inputstream.peek(); if(isEOL(c)) { inputstream.get(); char next_c = inputstream.peek(); if( (c != next_c) && isEOL(next_c) ) { inputstream.get(); } } return true; } bool ParserJuly2004::parse(std::istream& infile, AbstractOrganiser& organiser) { if (d_delimiter == '\\' || isEOL(d_delimiter) || d_delimiter == d_commentchar || d_delimiter == '[') { setError("110", "Illegal delimiter."); return false; } if (d_commentchar == '\\' || d_commentchar == '"' || isspace(d_commentchar)) { setError("111", "Illegal comment character."); return false; } register int c; // eof only gets set when error_flag is set on previous operation // as such, you need to peek() at the end ot the while loop // in order for eof to happen when you want it to!! // one peek() triggers infile.eof(), but it does not reveal it!!!! // you gotta call peek() twice. // while( (c = infile.peek()) != EOF) { // We're looking for: // '[' beggining of section // '#' (d_commentchar) comment character // any non-whitespace character if(isspace(c)) { std::string whitespace = ""; while(c != EOF && isspace(c)) { whitespace += infile.get(); c = infile.peek(); } organiser.foundWhiteSpace(whitespace.c_str()); } else if(c == '[') { // discard '[' character // infile.get(); register SectionState sectionState = STARTSECTION; std::string sectionID = ""; std::string comment = ""; while (sectionState != ENDSECTION) { switch (sectionState) { case STARTSECTION: { c = infile.peek(); if(c == EOF) { setError("102", "End of stream found before section ID."); sectionState = SECTIONERROR; } else if(isEOL(c)) { setError("101", "End of line found before section ID."); sectionState = SECTIONERROR; } else if(c == ' ' || c == '\t') { // discard whitespace // infile.get(); // LOOP } else if(c == ']') { // discard ']' // infile.get(); sectionState = ENDSECTIONID; } else { sectionState = SECTIONID; } break; } case SECTIONID: { c = infile.peek(); if(c == EOF) { setError("104", "End of stream found before end-of-section marker."); sectionState = SECTIONERROR; } else if(isEOL(c)) { setError("103", "End of line found before end-of-section marker."); sectionState = SECTIONERROR; } else if(c == '\\') { // discard backslash // infile.get(); sectionState = ESCAPEID; } else if(c == ']') { // discard ']' // infile.get(); // Strip Trailing Whitespace from ID // stripTrailing(sectionID); sectionState = ENDSECTIONID; } else { sectionID += infile.get(); // LOOP } break; } case ESCAPEID: { c = infile.peek(); if(c == EOF) { setError("107", "End of stream found after un-escaped backslash."); sectionState = SECTIONERROR; } else if(isEOL(c)) { setError("108", "Escaped new-line is not allowed in section ID or key."); sectionState = SECTIONERROR; } else { sectionID += infile.get(); sectionState = SECTIONID; } break; } case ENDSECTIONID: { c = infile.peek(); if(c == EOF || isEOL(c)) { sectionState = FOUNDIDONLY; } else if(d_commentchar != 0 && c == d_commentchar) { // discard '#' // infile.get(); sectionState = SECTIONCOMMENT; } else if(c == ' ' || c == '\t') { // discard whitespace // infile.get(); // LOOP } else { setError("105", "Illegal character found after end-of-section marker."); sectionState = SECTIONERROR; } break; } case SECTIONCOMMENT: { c = infile.peek(); if(c == EOF || isEOL(c)) { sectionState = FOUNDIDCOMMENT; stripTrailing(comment); } else { // append to comment // comment += infile.get(); // LOOP } break; } case SECTIONERROR: case ENDSECTION: // dummy { return false; } case FOUNDIDONLY: { organiser.foundSection(sectionID.c_str(), 0); chompEOL(infile); sectionState = ENDSECTION; break; } case FOUNDIDCOMMENT: { organiser.foundSection(sectionID.c_str(), comment.c_str()); chompEOL(infile); sectionState = ENDSECTION; break; } } } } else if(c == d_commentchar) { // found a comment line // discard the comment character // infile.get(); // put the rest of the line into a string // std::string line=""; while(infile.good()) { c=infile.get(); if( isEOL(c)) { break; } line += c; } chompEOL(infile); // PROCESS THE COMMENT LINE // stripTrailing(line); organiser.foundComment(line.c_str()); } else { register KeyValueState kvState = KEY; std::string key = ""; std::string value = ""; std::string comment = ""; // Added to handle source -> dest std::string srcApp = ""; std::string srcObj = ""; std::string destApp = ""; std::string destObj = ""; std::string width = ""; /* remedius */ std::string commType = ""; /* remedius */ std::string procMethod = ""; while (kvState != ENDKEYVALUE) { switch (kvState) { case KEY: { //std::cout << "KEY\n"; int c = infile.peek(); if(c == EOF || isEOL(c)) { kvState = ENDKV; } else if(d_delimiter && c == d_delimiter) { // discard '=' // infile.get(); kvState = STARTVALUE; } else if(!d_delimiter && (c == ' ' || c == '\t')) { // discard whitespace // infile.get(); kvState = STARTVALUE; } else if(d_commentchar != 0 && c == d_commentchar) { // discard '#' // infile.get(); kvState = COMMENT; } else if(c == '\\') { // discard '\\' // infile.get(); kvState = KEYESCAPE; } else if(c == '-') { // Is it -> ?? infile.get(); c = infile.peek(); if(c == '>') { infile.get(); kvState = RIGHTARROW; // We need to split up the key into srcApp.srcObj and store them size_t dotPos = key.find_first_of('.'); if(dotPos != string::npos) { srcApp = key.substr(0,dotPos); srcObj = key.substr(dotPos+1,key.length()-dotPos-1); //std::cout << "Found srcApp: " << srcApp << " srcObj: " << srcObj << "\n"; } else { srcApp = ""; srcObj = key; } } else { key += '-'; } } else if(c == '<') { // IS it <- ?? infile.get(); c = infile.peek(); if(c == '-') { infile.get(); kvState = LEFTARROW; // We need to split up the key into destApp.destObj and store them size_t dotPos = key.find_first_of('.'); if(dotPos != string::npos) { destApp = key.substr(0,dotPos); destObj = key.substr(dotPos+1,key.length()-dotPos-1); //std::cout << "Found destApp: " << destApp << " destObj: " << destObj << "\n"; } else { destApp = ""; destObj = key; } } else { key += '<'; } } else { // append to key // key += infile.get(); // LOOP } break; } case KEYESCAPE: { //std::cout << "KEYESCAPE\n"; int c = infile.peek(); if(c == EOF) { setError("107", "End of stream found after un-escaped backslash."); kvState = KVERROR; } else if(isEOL(c)) { setError("108", "Escaped new-line is not allowed in key."); kvState = KVERROR; } else { // append to key // key += infile.get(); kvState = KEY; } break; } case STARTVALUE: { //std::cout << "STARTVALUE\n"; int c = infile.peek(); if(c == EOF || isEOL(c)) { kvState = ENDKV; } else if(d_commentchar != 0 && c == d_commentchar) { // discard '#' // infile.get(); kvState = COMMENT; } else if(c == ' ' || c == '\t') { // discard whitespace // infile.get(); // LOOP } else { kvState = VALUE; } break; } case KVERROR: case ENDKEYVALUE: // dummy for compiler { //std::cout << "KVERROR\n"; return false; } case FINDCOMMENT: { //std::cout << "FINDCOMMENT\n"; int c = infile.peek(); if(c == EOF || isEOL(c)) { kvState = ENDKV; } else if(d_commentchar != 0 && c == d_commentchar) { // discard '#' // infile.get(); kvState = COMMENT; } else if(c == ' ' || c == '\t') { // discard whitespace // infile.get(); // LOOP } else { setError("109", "Illegal Character Found after quoted value."); kvState = KVERROR; } break; } case COMMENT: { //std::cout << "COMMENT\n"; int c = infile.peek(); if(c == EOF || isEOL(c)) { stripTrailing(comment); kvState = ENDKV; } else { // Append to comment // comment += infile.get(); // LOOP } break; } case VALUE: { //std::cout << "VALUE\n"; int c = infile.peek(); if(c == '"') { // discard '"' // infile.get(); kvState = QUOTEVALUE; } else { kvState = NONQUOTEVALUE; } break; } case QUOTEVALUE: { //std::cout << "QUOTEVALUE\n"; int c = infile.peek(); if(c == EOF) { setError("106", "End of stream found before final quote (\") in value."); kvState = KVERROR; } else if(c == '"') { // discard '"' // infile.get(); kvState = FINDCOMMENT; } else if(c == '\\') { // discard backslash // infile.get(); kvState = QUOTEESCAPE; } else { // append to value // value += infile.get(); // LOOP } break; } case QUOTEESCAPE: { //std::cout << "QUOTEESCAPE\n"; int c = infile.peek(); if(c == EOF) { setError("107", "End of stream found after un-escaped backslash."); kvState = KVERROR; } else { // append to value // value += infile.get(); kvState = QUOTEVALUE; } break; } case NONQUOTEVALUE: { //std::cout << "NONQUOTEVALUE\n"; int c = infile.peek(); if(c == EOF || isEOL(c)) { stripTrailing(value); kvState = ENDKV; } else if(d_commentchar != 0 && c == d_commentchar) { // discard '#' // infile.get(); stripTrailing(value); kvState = COMMENT; } else if(c == '\\') { // discard backslash // infile.get(); kvState = NONQUOTEESCAPE; } else { // append to value // value += infile.get(); // LOOP } break; } case NONQUOTEESCAPE: { //std::cout << "NONQUOTEESCAPE\n"; int c = infile.peek(); if(c == EOF) { setError("107", "End of stream found after un-escaped backslash."); kvState = KVERROR; } else { // append to value // c = infile.get(); value += c; // SPECIAL CASE FOR ESCAPED CRLFs: // // if c is newline and next character is also newline, // we keep both of them if they are different forms of newline // char next_c = infile.peek(); if(isEOL(c) && isEOL(next_c) && (c != next_c)) { value += infile.get(); } kvState = NONQUOTEVALUE; } break; } case ENDKV: { //std::cout << "ENDKV\n"; chompEOL(infile); stripTrailing(key); organiser.foundData(key.c_str(), value.c_str(), comment.c_str()); kvState = ENDKEYVALUE; break; } case LEFTARROW: { //std::cout << "LEFTARROW\n"; int c = infile.peek(); if(c == EOF || isEOL(c)) { kvState = ENDSOURCEDEST; stripTrailing(value); size_t dotPos = value.find_first_of('.'); if(dotPos != string::npos) { srcApp = value.substr(0,dotPos); srcObj = value.substr(dotPos+1,value.length()-dotPos-1); //std::cout << "srcApp: " << srcApp << " srcObj: " << srcObj << "\n"; } else { //std::cout << "srcObj: " << value << "\n"; srcApp = ""; srcObj = value; } } else if(c == ' ' || c == '\t') { // Discard whitespace infile.get(); } else if(d_commentchar != 0 && c == d_commentchar) { // discard '#' infile.get(); kvState = SDCOMMENT; } else { kvState = GETSOURCE; } break; } case RIGHTARROW: { //std::cout << "RIGHTARROW\n"; int c = infile.peek(); if(c == EOF || isEOL(c)) { kvState = ENDSOURCEDEST; stripTrailing(value); size_t dotPos = value.find_first_of('.'); if(dotPos != string::npos) { destApp = value.substr(0,dotPos); destObj = value.substr(dotPos+1,value.length()-dotPos-1); } else { destApp = ""; destObj = value; } } else if(c == ' ' || c == '\t') { // Discard whitespace infile.get(); } else if(d_commentchar != 0 && c == d_commentchar) { // discard '#' infile.get(); kvState = SDCOMMENT; } else { kvState = GETDEST; } break; } case GETSOURCE: { //std::cout << "GETSOURCE\n"; int c = infile.peek(); if(c == EOF || isEOL(c)) { stripTrailing(value); kvState = ENDSOURCEDEST; size_t dotPos = value.find_first_of('.'); if(dotPos != string::npos) { srcApp = value.substr(0,dotPos); srcObj = value.substr(dotPos+1,value.length()-dotPos-1); //std::cout << "srcApp: " << srcApp << " srcObj: " << srcObj << "\n"; } else { //std::cout << "srcObj: " << value << "\n"; srcApp = ""; srcObj = value; } } else if((d_commentchar != 0 && c == d_commentchar) || c == '[') { // discard '#' or '[' // infile.get(); stripTrailing(value); size_t dotPos = value.find_first_of('.'); if(dotPos != string::npos) { srcApp = value.substr(0,dotPos); srcObj = value.substr(dotPos+1,value.length()-dotPos-1); //std::cout << "srcApp: " << srcApp << " srcObj: " << srcObj << "\n"; } else { //std::cout << "srcObj: " << value << "\n"; srcApp = ""; srcObj = value; } // Which one was it, comment about to start or width info? if(c == '[') kvState = GETWIDTH; else kvState = SDCOMMENT; } else { // append to value (temp storage for // value += infile.get(); // LOOP } break; } case GETDEST: { //std::cout << "GETDEST\n"; int c = infile.peek(); if(c == EOF || isEOL(c)) { stripTrailing(value); kvState = ENDSOURCEDEST; size_t dotPos = value.find_first_of('.'); if(dotPos != string::npos) { destApp = value.substr(0,dotPos); destObj = value.substr(dotPos+1,value.length()-dotPos-1); //std::cout << "Found destApp: " << destApp << " destObj: " << destObj << "\n"; } else { destApp = ""; destObj = value; } } else if((d_commentchar != 0 && c == d_commentchar) || c == '[') { // discard '#' or '[' // infile.get(); stripTrailing(value); size_t dotPos = value.find_first_of('.'); if(dotPos != string::npos) { destApp = value.substr(0,dotPos); destObj = value.substr(dotPos+1,value.length()-dotPos-1); //std::cout << "Found destApp: " << destApp << " destObj: " << destObj << "\n"; } else { destApp = ""; destObj = value; } // Which one was it, comment about to start or width info? if(c == '[') kvState = GETWIDTH; else kvState = SDCOMMENT; } else { // append to value (temp storage for // value += infile.get(); // LOOP } break; } case GETWIDTH: { //std::cout << "GETWIDTH\n"; int c = infile.peek(); if(c == EOF || isEOL(c)) { setError("901", "Partial width found. No terminating ']'."); kvState = KVERROR; } else if(d_commentchar != 0 && c == d_commentchar) { // discard '#' // infile.get(); kvState = SDCOMMENT; } else if(c == ' ' || c == '\t') { // discard whitespace // infile.get(); c = infile.peek(); if('0' <= c && c <= '9' && width.length() > 0) { setError("902", "Two numbers detected in the width declaration."); kvState = KVERROR; } // LOOP } /* remedius * communication type (GETCOMMTYPE) and processing method(GETPROCMETHOD) parameters are optional. */ else if(c == ',') { stripTrailing(width); infile.get(); // Throw away , kvState = GETCOMMTYPE; } else if(c == ']') { stripTrailing(width); infile.get(); // Throw away ] kvState = ENDSOURCEDEST; // Ignoring any comments that might be here... } else if('0' <= c && c <= '9') { width += infile.get(); } else { setError("903", "Non integer number detected."); kvState = KVERROR; } break; } /* remedius */ case GETCOMMTYPE: { int c = infile.peek(); if(c == EOF || isEOL(c)) { setError("901", "Partial communication type is found. No terminating ']'."); kvState = KVERROR; } else if(d_commentchar != 0 && c == d_commentchar) { // discard '#' // infile.get(); kvState = SDCOMMENT; } else if(c == ' ' || c == '\t') { // discard whitespace // infile.get(); // LOOP } else if(c == ']') { stripTrailing(commType); infile.get(); // Throw away ] kvState = ENDSOURCEDEST; // Ignoring any comments that might be here... } else if(c == ',') { stripTrailing(commType); infile.get(); // Throw away , kvState = GETPROCMETHOD; } else { commType += infile.get(); } break; } /* remedius */ case GETPROCMETHOD: { int c = infile.peek(); if(c == EOF || isEOL(c)) { setError("901", "Partial processing mathod is found. No terminating ']'."); kvState = KVERROR; } else if(d_commentchar != 0 && c == d_commentchar) { // discard '#' // infile.get(); kvState = SDCOMMENT; } else if(c == ' ' || c == '\t') { // discard whitespace // infile.get(); // LOOP } else if(c == ']') { stripTrailing(commType); infile.get(); // Throw away ] kvState = ENDSOURCEDEST; // Ignoring any comments that might be here... } else if(c != ',') { procMethod += infile.get(); } else { setError("904", "Unexpected symbol."); kvState = KVERROR; } break; } case SDCOMMENT: { //std::cout << "SDCOMMENT\n"; int c = infile.peek(); if(c == EOF || isEOL(c)) { stripTrailing(comment); kvState = ENDSOURCEDEST; } else { // Append to comment // comment += infile.get(); // LOOP } break; } case ENDSOURCEDEST: { //std::cout << "ENDSOURCEDEST\n"; chompEOL(infile); stripTrailing(srcApp); stripTrailing(srcObj); stripTrailing(destApp); stripTrailing(destObj); stripTrailing(width); /* remedius */ stripTrailing(commType); /* remedius */ stripTrailing(procMethod); /* remedius */ organiser.foundSourceDest(srcApp.c_str(), srcObj.c_str(), destApp.c_str(), destObj.c_str(), width.c_str(), commType.c_str(), procMethod.c_str(), comment.c_str()); kvState = ENDKEYVALUE; break; } } // end switch } // end while } } return true; } }} // end namespaces music-1.1.16/rudeconfig/src/AbstractWriter.cpp0000644000175000017500000000363413571617503016237 00000000000000// AbstractWriter.cc // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #include "../config.h" #include "AbstractWriter.h" #ifndef INCLUDED_IOSTREAM #include #define INCLUDED_IOSTREAM #endif namespace rude{ namespace config{ AbstractWriter::AbstractWriter() { d_commentchar = '#'; d_delimiter = '='; d_preservedeleted = false; d_preservecomments = true; d_preservewhitespace = true; d_outputstream = &std::cout; } AbstractWriter::~AbstractWriter() { } void AbstractWriter::setOutputStream( std::ostream& stream) { d_outputstream = &stream; } void AbstractWriter::setCommentChar(char c) { d_commentchar = c; } void AbstractWriter::setDelimiter(char c) { d_delimiter = c; } void AbstractWriter::preserveDeleted(bool doit) { d_preservedeleted = doit; } void AbstractWriter::preserveComments(bool doit) { d_preservecomments = doit; } void AbstractWriter::preserveWhiteSpace(bool doit) { d_preservewhitespace = doit; } }} // end namespaces music-1.1.16/rudeconfig/src/config.h0000644000175000017500000005057613571617503014220 00000000000000// Config.h // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #ifndef INCLUDED_RUDE_CONFIG_H #define INCLUDED_RUDE_CONFIG_H #include namespace rude{ namespace config{ class ConfigImpl; } //= // rude::Config is the public interface for the config/ini file reader. //= class Config{ // Bridge component // rude::config::ConfigImpl *d_implementation; public: //= // Default constructor // Use to obtain an instance of the rude::Config component // // Example: // // rude::Config myconfig; // // //OR // // rude::Config *myconfig = new rude::Config(); // //= Config(); //= // Returns the version of the component. // // The version is specified by X.Y where: // X is the version of the interface (this class), and // Y is the version of the implementation (the internals). // // Example: // // const char *version = Config::version(); //= static const char *version(); //= // Sets the default filename to be used by all config objects // Initially, this value is "default.ini" // Methods affected include load(void) and save(void) // This method does not affect already existing instances. //= static void setDefaultConfigFile(const char *filepath); //= // Returns the default filename to be used by all config objects //= static const char *getDefaultConfigFile(); //= // Sets the default comment character to be used by all config objects // The comment character affects how config files are parsed, and how they are written. // Initially, the default comment character is set to '#' // This method does not affect already existing instances. //= static void setDefaultCommentCharacter(char c); //= // Returns the default comment character to be used by all config objects //= static char getDefaultCommentCharacter(); //= // Sets the default delimiter character to be used by all config objects // The delimiter affects how config files are parsed, and how they are written. // Initially, the default delimiter is set to '=' // This method does not affect already existing instances. //= static void setDefaultDelimiter(char c); //= // Returns the default delimiter character to be used by all config objects //= static char getDefaultDelimiter(); //= // Sets the default behavior of all config objects in dealing with deleted values. // The default behavior is for config objects to preserve deleted data as comments when // the config object is saved // This method does not affect already existing instances. //= static void setDefaultPreserveDeleted(bool shouldPreserve); //= // Returns the default deletion behavior // true means deleted data will be preserved as comments when the config object is saved // false means that deleted data will be discarded when the config object is saved //= static bool getDefaultPreserveDeleted(); //= // Set's the default filepath to be used by the load() and save() methods // The default filepath is initially set to "./default.ini" // Affects the current instance only //= void setConfigFile(const char *filepath); //= // Returns the default filepath to be used by the load() and save() methods // The default filepath is initially set to "./default.ini" // Affects the current instance only //= const char * getConfigFile(); //= // Sets whether or not deleted data will be preserved as comments. // If set to true, deleted data will be converted into comments when // the save() method is called. If set to false, deleted data // will not be compeltely discarded. Default is false (no preserve). // Affects the current instance only. //= void preserveDeletedData(bool shouldPreserve); //= // Set's the comment character ( initially set to '#' ) // If the comment character is set to NULL (0), // then comments will not be written when save() is called // Affects the current object only //= void setCommentCharacter(char commentchar); //= // Set's the delimiter for new config objects ( initially set to '=' ) // If the delimiter is set to NULL, then it will be assumed that // the key and value are separated by whitespace. // Affects the current object only //= void setDelimiter(char kayvaluedelimiter); //= // // When called before load(), saves the configuration to the default config file. // Initially, the default config file is "./default.ini". // // If load was called with an argument: // load(const char *filename) // then save() will use the same filename. // // The filename used by the instance can be changed by the setConfigFile() method. //= bool save(); //= // Saves the configuration object to the specified file // The default config file path for the instance is not altered... // Use setConfigFile(const char *filename) or load(const char *filename) to set the default filename for the instance //= bool save(const char *filepath); //= // Removes the contents of the configuration file - completely wipes it out. // Does not preserve anything. Afterwards, the current section is set // to the empty section (""), which is the unnamed section // at the beginning of the configuration file. //= void clear(); //= // Loads the default file into the configuration object. // By default, the current file is 'default.conf', // but can be overridden by calling the setConfigFile(const char *filename) method. // This method does not clear the config object before loading. // If you load two or more configuration files that have the same sections, // they are effectively merged. In this case, data members that have the same // name will get the value of the last file loaded. This comes in handy if // you load a global config file first, and you want to override // some custom fields by subsequently loading a "preferences" file tailored to an individual. // Use clear() if the config object already has data that you want to completely discard before loading // a new file, or use another Config object instance. //= bool load(); //= // Adds the file's configuration info to the current object. // Does not delete any existing data in the config object. // The default config file path is not altered... // Use setConfigFile() to permanently set the default config file for load() and save() // This method does not clear the config object before loading. // Use clear() if the config object already has data that you want to discard. //= bool load(const char *filename); bool load(std::istream& file); //= // Returns the most recent error string, if there is one. // If no error exists, it will return the empty string (""). //= const char *getError(); int getNumSourceDestMembers() const; const char *getSrcObjAt(int index) const; const char *getDestObjAt(int index) const; const char *getSrcAppAt(int index) const; const char *getDestAppAt(int index) const; const char *getWidthAt(int index) const; /* remedius */ const char *getCommTypeAt(int index) const; /* remedius */ const char *getProcMethodAt(int index) const; //= // Returns the number of sections in the entire configuration file // This number includes the default section - "" (the empty section at the beginning of the file) // Sections within the configuration file are identifed by [Square Brackets] surrounding the name of the section. // Whitespace surrounding the section name is ignored. So [ This Section ] and [This Section] are identical. // Section names are case sensitive. // The default section is the empty section - the unnamed section at the beginning of the file that // exists before any other [named] sections. This section exists even if the first line of the file // contains a [named section]. The empty section will simply be void of any data. // As such, the return value will always be >= 1. //= int getNumSections() const; //= // Enumeration method to discover sections // Returns the section name at the given index, // or NULL if the index is out of range // If the section has no name, but is a valid index, then it will return the empty string ("") //= const char *getSectionNameAt(int index) const; //= // Sets the current working [section], possibly creating a new section // The default section is "" (the untitled section at the beginning of the configuration file). // If the new section cannot be found, and shouldCreate is true, // then the section will be created and will exist at the end of all other sections. // If the new section cannot be found, and shouldCreate is false, // then the current section remains unchanged, and the method returns false. // Leading and trailing whitespace is not preserved when the file is written, // and as such should be avoided when naming sections //= bool setSection(const char *sectionname, bool shouldCreate); //= // Sets the current working section, creating the section if it does not exist. // See setSection(const char *sectionname, bool shouldCreate) where shouldCreate = true. //= bool setSection(const char *sectionname); //= // Deletes the section identified by sectionname and all data associated with it // Returns false if the section does not exist or has already been deleted. // If the object is saved, the entire section will be commented out. // If, during the lifetime of this object, the section is re-created, then the section will be revived, but all // previous data members remain commented (as if deleted) unless/until recreated (see deleteData()) //= bool deleteSection(const char *sectionname); //= // Returns the number of data elements for the current section // // Example: // // Given the following configuration: // //[Good Movies] // The 5th Element // Resevoir Dogs // Braveheart // // [Bad Movies] // // Freddy Got Fingered // CONfidential // // [Body Parts] // arm=2 // head=1 // legs=2 // neck=1 // ears=2 // eyes=2 // // // // You'll get the following results: // // config->setSection("Body Parts", true); // config->getNumDataMembers(); // returns 6 // // config->setSection("Bad Movies", true); // config->getNumDataMembers(); // returns 2 // // config->setSection("Good Movies", true); // config->getNumDataMembers(); // returns 3 // //= int getNumDataMembers() const; //= // Enumeration method to discover data members within the current section // Returns the name of the data member at // the specified index within the current // section, or NULL if the index is out of range. // // Example: // // Given the following configuration: // //[Contact Info] // name= Mark Twain // email address = mark@twain // phone = 123.456.789 // // // You'll get the following results: // // config->setSection("Contact Info"); // config->getDataNameAt(0); // returns "name" // config->getDataNameAt(2); // returns "phone" // config->getDataNameAt(3); // returns NULL (out of range) // // //= const char *getDataNameAt(int index) const; //= // Returns true if a data member exists with the given //name within the current section // // //  Example: // // Given the following configuration: // // // [Strong Body Parts] // arm=2 // head=1 // legs=2 // neck=1 // // [Weak Body Parts] // eyes=2 // belly=1 // nose=1 // // // You'll get the following results: // // config->setSection("Strong Body Parts"); // // if(config->exists("arm")) // { // // yes, arm exists... // } // // if(config->exists("belly")) // { // // returns false - belly isn't in that section. // } // // config->setSection("Weak Body Parts"); // // if(config->exists("belly")) // { // // yes! belly is in this section.... // } // //= bool exists(const char *name) const; //= // Returns the boolean value of the data identified by name within the current section // This is a helper function that converts the string data stored in the config object to a boolean // Returns true if the current value is "on" or 1, // or if the value starts with the letter 't' or 'y' // ( all of the above are case insensitive ) // returns false otherwise // // As such, it will interpret the following as true: // Yes, yes, On, on, True, true, 1, T, t, Y, y // // Likewise, it will interpret the following as false: // No, no, Off, off, False, false, 0, F, f, N, n // // // Example: // // Given the following configuration: // // // [Things that are and aren't] // Bed Bugs= TRUE // Aliens = 1 // Freud= ON // Water= yes // ducks = false // carpenter = off // floppy = 0 // sand = Nope // // You'll get the following results: // // config->setSection("Things that are and aren't"); // // config->getBoolValue("Aliens"); // returns true // config->getBoolValue("carpenter"); // returns false // // etc... // //= bool getBoolValue(const char *name) const; //= // Returns the integer value of the data identifed by name within the current section // This is a helper function that converts the string value stored in the config object to an int. // Returns 0 if the data does not exist or if an integer value cannot be determined. //= int getIntValue(const char *name) const; //= // Returns the double value, or 0 if a double value cannot be determined // Thie is a helper function that converts the string value stored in the config object to a double //= double getDoubleValue(const char *name) const; //= // Returns the string-character value. // Unless the value is quoted, leading and trailing whitespace is stripped. // If the value is quoted, the quotes are removed, and leading and trailing whitespace // within the quotes are preserved. //= const char * getValue(const char *name) const; //= // Same as const char *getValue(const char *name) // @deprecated //= const char * getStringValue(const char *name) const; //= // Sets the named value within the current section to "true" or "false" // This is a helper function that converts a bool to the string value // that the config object expects. // If the value is already set for the data item, the value is changed. // If the value is not already set, it is created // // Example: // // To create the following configuration entries: // // [On Sale] // Hard Drives = true // Cases = false // Keyboards = false // // // Use this code: // // config->setSection("On Sale"); // config->setBoolValue("Hard Drives", true); // config->setBoolValue("Cases", false); // config->setBoolValue("Keyboards", false); // config->save(); // // // @param name the identifying name of the data member // @param value The integer value of the data member // //= void setBoolValue(const char *name, bool value); //= // Sets the named value within the current section to the specified integer // The config object stores values as strings- this is a helper method // that converts an integer to the expected string value. // If the value is already set for the data item, the value is changed. // If the value is not already set, it is created // // Example: // // To create the following configuration entries: // // [Inventory] // Hard Drives = 35 // Cases = 24 // Keyboards = 103 // // // Use this code: // // config->setSection("Inventory", true); // config->setIntValue("Hard Drives", 35); // config->setIntValue("Cases", 24); // config->setIntValue("Keyboards", 103); // config->save(); // // // @param name the identifying name of the data member // @param value The integer value of the data member // //= void setIntValue(const char *name, int value); //= // Sets the value for a data item within the current section to the specified double // The config object stores values as strings- this is a helper method // that converts an integer to a string value to be stored. // If the value is already set for the data item, the value is changed. // If the value is not already set, it is created // // Example: // // To create the following configuration entries: // // [Prices] // Hard Drives = 59.95 // Cases = 44.00 // Keyboards = 12.25 // // // Use this code: // // config->setSection("Prices", true); // config->setDoubleValue("Hard Drives", 59.95); // config->setDoubleValue("Cases", 44.00); // config->setDoubleValue("Keyboards", 12.25); // config->save(); // // // @param name the identifying name of the data member // @param value The double value of the data member // @author Matt Flood // //= void setDoubleValue(const char *name, double value); //= // Sets the value for a data item within the current section to the specified string // If the value is already set for the data item, the value is changed. // If the value is not already set, it is created. // If leading and/or trailing whitespace exists within the value, it will be preserved in // the config file. The config object will automatically surround the value with quotes. // Likewise, if the value starts with a quote ("), then the value // will necessarily be surrounded by quotes to preserve it. As such, programs do not have to, (and // in fact should not ) perform their own quoting of values. You should provide you own // quotes only when you are modifying the config/ini file using a text editor or some other means // besides the RudeConfig object. // // Note: Leading and traling whitespace of the identifying fieldname (the key for the data item) is not preserved. // // Example: // // To create the following configuration entry: // // [travel]
Travel Agent = Mary Johnson
// // Use this code: // // config->setSection("travel", true); // config->setStringValue("Travel Agent", "Mary Johnson"); // config->save(); // // // @param name the identifying name of the data member // @param value The string value of the data member // @author Matt Flood // //= void setValue(const char *name, const char *value); //= // Same as setValue(const char *name, const char *value); // @deprecated // //= void setStringValue(const char *name, const char *value); //= // Deletes the data member identified by name (if it exists) in the current section. // If the configuration object is saved, // then the data member will be preserved by being commented out. // If a new value is later assigned to this // value (in the lifetime of the instance), // then it becomes undeleted (uncommented). // Values can only be revived this way using the same instance they were deleted with. // Otherwise, they become permanent comments. // See preserveDeletedData(bool shouldPreserve) to alter this behavior. // //= bool deleteData(const char *name); ~Config(); }; } // end namespace rude #endif music-1.1.16/rudeconfig/src/WhiteSpace.h0000644000175000017500000000272413571617503014777 00000000000000// WhiteSpace.h // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #ifndef INCLUDED_WhiteSpace_H #define INCLUDED_WhiteSpace_H #ifndef INCLUDED_DataLine_H #include "DataLine.h" #endif #ifndef INCLUDED_STRING #include #define INCLUDED_STRING #endif namespace rude{ namespace config{ class WhiteSpace: public DataLine{ std::string d_whitespace; public: WhiteSpace(const char *WhiteSpace); void acceptWriter(AbstractWriter& writer) const; const char *getWhiteSpace() const; }; }} // end namespace rude::config #endif music-1.1.16/rudeconfig/src/Comment.cpp0000644000175000017500000000300413571617503014670 00000000000000// Comment.cpp // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #include "../config.h" #include "Comment.h" #ifndef INCLUDED_AbstractWriter_H #include "AbstractWriter.h" #endif #ifndef INCLUDED_CSTDIO #include #define INCLUDED_CSTDIO #endif using namespace std; namespace rude{ namespace config{ Comment::Comment(const char *comment) { d_comment = comment ? comment : ""; } void Comment::acceptWriter(AbstractWriter& writer) const { writer.visitComment(*this); } const char *Comment::getComment() const { return d_comment.c_str(); } }} // end namespace rude::config music-1.1.16/rudeconfig/src/AbstractParser.cpp0000644000175000017500000000341113571617503016210 00000000000000// AbstractParser.cc // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #include "../config.h" #include "AbstractParser.h" using namespace rude::config; using namespace std; namespace rude{ namespace config{ AbstractParser::AbstractParser() { d_error = ""; d_errorcode = ""; d_commentchar = '#'; d_delimiter = '='; } AbstractParser::~AbstractParser() { } void AbstractParser::setCommentCharacter(char c) { d_commentchar = c; } void AbstractParser::setDelimiter(char c) { d_delimiter = c; } const char *AbstractParser::getErrorCode() const { return d_errorcode.c_str(); } const char *AbstractParser::getError() const { return d_error.c_str(); } void AbstractParser::setError(const char *code, const char *message) { d_errorcode = code ? code : ""; d_error = message ? message : ""; } }} // end namespaces music-1.1.16/rudeconfig/src/RealOrganiser.cpp0000644000175000017500000000462413571617503016034 00000000000000// RealOrganiser.cc // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #include "../config.h" #include "RealOrganiser.h" #ifndef INCLUDED_File_H #include "File.h" #endif #ifndef INCLUDED_Section_H #include "Section.h" #endif using namespace std; namespace rude{ namespace config{ RealOrganiser::RealOrganiser(File *file) { d_file = file; d_section = d_file->getSection(""); } void RealOrganiser::foundSection(const char *sectionName, const char *comment) { d_section = d_file->getSection(sectionName); d_section->setSectionComment(comment); } void RealOrganiser::foundComment(const char *comment) { d_section->addComment(comment); } void RealOrganiser::foundWhiteSpace(const char *whitespace) { d_section->addWhiteSpace(whitespace); } void RealOrganiser::foundData(const char *key, const char *value, const char *comment) { d_section->setValue(key, value, comment); } void RealOrganiser::foundSourceDest(const char *srcApp, const char *srcObj, const char *destApp, const char *destObj, const char *width, const char *commType, const char *procMethod, const char *comment) { /* std::cout << "foundSourceDest srcApp " << srcApp << " srcObj " << srcObj << " destApp " << destApp << " destObj " << destObj << " width " << width << " commType " << commType << " procMethod " << procMethod << " comment " << comment << "\n"; */ d_section->addSourceDest(srcApp,srcObj,destApp,destObj,width,commType, procMethod, comment); } }} // end namespaces music-1.1.16/rudeconfig/src/Writer.h0000644000175000017500000000621113571617503014212 00000000000000// Writer.h // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #ifndef INCLUDED_Writer_H #define INCLUDED_Writer_H #include "AbstractWriter.h" #include namespace rude{ namespace config{ class File; class Section; class KeyValue; class Comment; class WhiteSpace; class Writer: public AbstractWriter{ public: Writer(); virtual void visitFile(const File& configfile) const; virtual void visitSection(const Section& configsection) const; virtual void visitKeyValue(const KeyValue& keyvalue) const; virtual void visitComment(const Comment& comment) const; virtual void visitWhiteSpace(const WhiteSpace& whitespace) const; virtual ~Writer(); //= // Writes the data member to an output stream // // For the following specification examples, assume an object with the following properties: // // name = "color" // value="blue" // comment="Color of the background" // //
    //
  • If comment char is null, comments/deleted items will not be written // // Example: object->write(stdout, 0, "=") // Results: // color = blue // //
  • If delimiter is null, name / value will be separated by whitespace // // Example: object->write(stdout, "#", 0) // Results: // color blue # Color of the background // //
  • Undefined results if outputstream is null // // Example: object->write(0, "#", "=") // Results: // ?????????? // //
  • If the data member is a comment, then only the comment data is written - any values // for the name / value are discarded. // // Example: object->write(stdout, "#", "=") // Results: // # Color of the background // //
  • If the data member has been (flagged as) deleted, then the name, value and original comment are preserved, // preceded by a comment character. // // Example: object->write(stdout, "#", "=") // Results: // # color = blue # Color of the background // //
//= }; }} // end namespaces #endif music-1.1.16/rudeconfig/src/File.h0000644000175000017500000000511413571617503013616 00000000000000// File.h // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2008 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #ifndef INCLUDED_File_H #define INCLUDED_File_H #ifndef INCLUDED_AbstractData_H #include "AbstractData.h" #endif #ifndef INCLUDED_VECTOR #include #define INCLUDED_VECTOR #endif #ifndef INCLUDED_MAP #include #define INCLUDED_MAP #endif #include using namespace rude::config; namespace rude{ namespace config{ class Section; class File: public AbstractData{ private: Section *d_currentSection; mutable std::vector d_sections; mutable std::map d_sectionmap; public: File(); ~File(); void acceptWriter(AbstractWriter& writer) const; void clear(); const char * getStringValue(const char *name) const; bool deleteData(const char *name); void setStringValue(const char *name, const char *value); int getNumDataMembers() const; int getNumSourceDestMembers() const; const char *getSrcObjAt(int index) const; const char *getDestObjAt(int index) const; const char *getSrcAppAt(int index) const; const char *getDestAppAt(int index) const; const char *getWidthAt(int index) const; /* remedius */ const char *getCommTypeAt(int index) const; /* remedius */ const char *getProcMethodAt(int index) const; const char *getDataNameAt(int index) const; const char *getDataValueAt(int index) const; bool exists(const char *name) const; int getNumSections() const; const char *getSectionNameAt(int index) const; bool setSection(const char *sectionname, bool shouldCreate); bool deleteSection(const char *sectionname); Section *getSection(const char *sectionname); }; }} // end namespace rude::config #endif music-1.1.16/rudeconfig/src/AbstractData.h0000644000175000017500000000256413571617503015302 00000000000000// AbstractData.h // Acts as the base Element that accepts visitors in the Visitor design pattern // // This file is part of RudeConfig. // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #ifndef INCLUDED_AbstractData_H #define INCLUDED_AbstractData_H namespace rude{ namespace config{ class AbstractWriter; class AbstractData{ protected: AbstractData(); public: virtual ~AbstractData(); virtual void acceptWriter(AbstractWriter& writer) const = 0; }; }} // end namespaces #endif music-1.1.16/rudeconfig/src/ConfigImpl.h0000644000175000017500000001220213571617503014762 00000000000000// ConfigImpl.h // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #ifndef INCLUDED_RUDE_CONFIGIMPL_H #define INCLUDED_RUDE_CONFIGIMPL_H #ifndef INCLUDED_STRING #include #define INCLUDED_STRING #endif #ifndef INCLUDED_IOSTREAM #include #define INCLUDED_IOSTREAM #endif namespace rude{ namespace config{ class Section; class File; class AbstractWriter; class AbstractParser; class AbstractOrganiser; class ConfigImpl{ static std::string s_defaultConfigFile; static char s_defaultCommentChar; static char s_defaultDelimiter; static bool s_defaultPreserveDeleted; static bool s_defaultAllowDuplicate; static bool s_defaultIgnoreCase; static std::string s_returnValue; AbstractWriter *d_writer; AbstractOrganiser *d_organiser; AbstractParser *d_parser; File *d_file; std::string d_error; std::string d_errorcode; std::string d_configfile; char d_commentcharacter; char d_delimiter; bool d_preserveDeleted; bool d_allowDuplicate; bool d_ignoreCase; protected: void setError(const char *errorcode, const char *errorstring); public: ////////////////////////////////////// // STATIC METHODS ////////////////////////////////////// static const char *version(); // DEFAULT BEHAVIOR // static void setDefaultConfigFile(const char *filepath); static const char *getDefaultConfigFile(); static void setDefaultCommentCharacter(char c); static char getDefaultCommentCharacter(); static void setDefaultDelimiter(char c); static char getDefaultDelimiter(); static void setDefaultPreserveDeleted(bool shouldPreserve); static bool getDefaultPreserveDeleted(); // The internals are on the drawing board!! // static void setDefaultIgnoreCase(bool shouldIgnore); static void setDefaultAllowDuplicateKeys(bool shouldAllow); // DATA CONVERSION // static bool stringToBool(const char *string); static const char *boolToString(bool value); static int stringToInt(const char *string); static const char *intToString(int value); static double stringToDouble(const char *string); static const char *doubleToString(double value); static char * stringToBinary(const char *value, int &outlength); static const char *binaryToString(const char *value, int length); ////////////////////////////////////// // INSTANCE METHODS ////////////////////////////////////// // CONSTRUCTOR & DESTRUCTOR // ConfigImpl(); ~ConfigImpl(); // STATUS // const char *getError() const; const char *getErrorCode() const; // INSTANCE BEHAVIOR // void setConfigFile(const char *filepath); const char *getConfigFile(); void setCommentCharacter(char c); void setDelimiter(char c); void preserveDeletedData(bool shouldPreserve); void ignoreCase(bool shouldIgnore); void allowDuplicateKeys(bool shouldAllow); // LOADING & SAVING & CLEARING // bool load(); bool load(const char *filepath); bool load(std::istream&); bool save(); bool save(const char *filepath); bool save(std::ostream&); void clear(); // SECTION METHODS // int getNumSections() const; const char *getSectionNameAt(int index) const; bool setSection(const char *sectionname, bool shouldCreate); bool setSection(const char *sectionname); bool deleteSection(const char *sectionname); // DATA METHODS // int getNumSourceDestMembers() const; const char *getSrcAppAt(int index) const; const char *getDestAppAt(int index) const; const char *getSrcObjAt(int index) const; const char *getDestObjAt(int index) const; const char *getWidthAt(int index) const; /* remedius * */ const char *getCommTypeAt(int index) const; /* remedius * */ const char *getProcMethodAt(int index) const; int getNumDataMembers() const; const char *getDataNameAt(int index) const; const char *getDataValueAt(int index) const; bool exists(const char *name) const; const char * getStringValue(const char *name) const; void setStringValue(const char *name, const char *value); bool deleteData(const char *name); // Working with Duplicate Keys // int getNumDataMembers(const char *key) const; const char * getStringValue(const char *name, int index) const; void addStringValue(const char *name, const char *value); bool deleteData(const char *name, int index); }; }} // end namespace rude::config #endif music-1.1.16/rudeconfig/src/Comment.h0000644000175000017500000000267413571617503014351 00000000000000// Comment.h // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #ifndef INCLUDED_Comment_H #define INCLUDED_Comment_H #ifndef INCLUDED_DataLine_H #include "DataLine.h" #endif #ifndef INCLUDED_STRING #include #define INCLUDED_STRING #endif namespace rude{ namespace config{ class Comment: public DataLine{ std::string d_comment; public: Comment(const char *comment); void acceptWriter(AbstractWriter& writer) const; const char *getComment() const; }; }} // end namespace rude::config #endif music-1.1.16/rudeconfig/src/SourceDest.h0000644000175000017500000000515713571617503015026 00000000000000// SourceDest.h // // Added by Johannes Hjorth, 2008 // // Feel free to use the code, have fun! // // Based on the KeyValue-code #ifndef INCLUDED_SourceDest_H #define INCLUDED_SourceDest_H #ifndef INCLUDED_DataLine_H #include "DataLine.h" #endif #ifndef INCLUDED_STRING #include #define INCLUDED_STRING #endif #ifndef INCLUDED_IOSTREAM #include #define INCLUDED_IOSTREAM #endif namespace rude{ namespace config{ //= // SourceDest represents message passing from Source to Dest // // app1.source -> dest // dest <- app2.source // app2.dest <- source // class SourceDest: public DataLine{ std::string d_srcApp; std::string d_srcObj; std::string d_destApp; std::string d_destObj; std::string d_width; std::string d_comment; /* remedius * or */ std::string d_commType; /* remedius * or */ std::string d_procMethod; public: // default constructor SourceDest(); /* remedius * two more parameters: commType and procMethod were added due to the runtime opportunity * of choosing communication type and pre-/post-processing method. */ SourceDest(const char *srcApp, const char *srcObj, const char *destApp, const char *destObj, const char *width, const char* commType, const char *procMethod, const char *comment); void acceptWriter(AbstractWriter& writer) const; std::string toString(); // const char *getSrcApp() const; const char *getSrcObj() const; const char *getDestApp() const; const char *getDestObj() const; const char *getWidth() const; /* remedius * */ const char *getCommType() const; /* remedius * */ const char *getProcMethod() const; //= // Returns the comment associated with the data member // Will return the comment even if the data member is flagged as being deleted // Always returns at least the empty string, will never return null. //= const char *getComment() const; //= // Sets the name of the data member // Will set the name even if the data member is flagged as being deleted or a comment // Accepts null //= void setSrcApp(const char *name); void setSrcObj(const char *name); void setDestApp(const char *name); void setDestObj(const char *name); void setWidth(const char *name); /* remedius * */ void setCommType(const char *commType); /* remedius * */ void setProcMethod(const char *procMethod); //= // Sets the comment associated with the data member // Will set the comment even if the data member is flagged as being deleted // Accepts null //= void setComment(const char *comment); ~SourceDest(); }; }} // end namespace rude::config #endif music-1.1.16/rudeconfig/src/Writer.cpp0000644000175000017500000002146013571617503014550 00000000000000// Writer.cpp // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #include "../config.h" #include "Writer.h" #ifndef INCLUDED_File_H #include "File.h" #endif #ifndef INCLUDED_Section_H #include "Section.h" #endif #ifndef INCLUDED_KeyValue_H #include "KeyValue.h" #endif #ifndef INCLUDED_Comment_H #include "Comment.h" #endif #ifndef INCLUDED_WhiteSpace_H #include "WhiteSpace.h" #endif #ifndef INCLUDED_CSTDLIB #include #define INCLUDED_CSTDLIB #endif #ifndef INCLUDED_CCTYPE #include #define INCLUDED_CCTYPE #endif #ifndef INCLUDED_IOSTREAM #include #define INCLUDED_IOSTREAM #endif #ifndef INCLUDED_STRING #include #define INCLUDED_STRING #endif using namespace std; namespace rude{ namespace config{ Writer::Writer() { } Writer::~Writer() { } void Writer::visitFile(const File& configfile) const { } void Writer::visitSection(const Section& configsection) const { std::string name = configsection.getSectionName(); // if there is a section name, we print it out [between brackets] // if(name != "") { if( configsection.isDeleted() ) { if ( d_commentchar && d_preservedeleted ) { *d_outputstream << d_commentchar << " "; } else { return; } } int position = 0; size_t location; // escape all backslashes // while( (location = name.find("\\", position)) != string::npos ) { // location points right at the '\' name.insert(location, "\\"); position = (int) location + 2; } // escape all ']''s // while( (location = name.find("]", position)) != string::npos ) { // location points right at the ']' name.insert(location, "\\"); position = (int) location + 2; } *d_outputstream << "[" << name << "]"; // If the section name has a comment, we print it out after the section name // if(configsection.getSectionComment()[0] != 0 && d_commentchar) { *d_outputstream << "\t" << d_commentchar << configsection.getSectionComment(); } // newline ends the section header // *d_outputstream << "\n"; } } void Writer::visitComment(const Comment& comment) const { if(d_preservecomments && d_commentchar && ( !comment.isDeleted() || d_preservedeleted )) { *d_outputstream << d_commentchar << comment.getComment() << "\n"; } } void Writer::visitWhiteSpace(const WhiteSpace& whitespace) const { if(d_preservewhitespace && ( !whitespace.isDeleted() || d_preservedeleted )) { *d_outputstream << whitespace.getWhiteSpace(); } } void Writer::visitKeyValue(const KeyValue& dataline) const { if(dataline.isDeleted() && ( !d_commentchar || !d_preservedeleted)) { // Don't preserve deleted data when comments are null // or we don't want to preserve them return; } else { string key = dataline.getName(); string value = dataline.getValue(); string comment = dataline.getComment(); string commentchar(1,d_commentchar); if(dataline.isDeleted()) { // print the comment character // *d_outputstream << d_commentchar << " "; } if(key != "") { int position = 0; size_t location; // escape all backslashes // while( (location = key.find("\\", position)) != string::npos ) { // location points right at the '\' key.insert(location, "\\"); position = (int) location + 2; } // escape comment characters // unless the comment character is a backslash, which we've already escaped.... // if(d_commentchar && d_commentchar != '\\') { position = 0; while( (location = key.find(commentchar, position)) != string::npos ) { // location points right at the '"' key.insert(location, "\\"); position = (int) location + 2; } } // escape all delimiters, unless the delimiter is a backslash or the same as the comment, god forbid. // // if(d_delimiter != '\\' && d_delimiter != d_commentchar) { if(d_delimiter) { string delimiter(1, d_delimiter); position = 0; while( (location = key.find(delimiter, position)) != string::npos ) { // location points right at the '"' key.insert(location, "\\"); position = (int) location + 2; } } else { position = 0; while( (location = key.find("\t", position)) != string::npos ) { // location points right at the '"' key.insert(location, "\\"); position = (int) location + 2; } position = 0; while( (location = key.find(" ", position)) != string::npos ) { // location points right at the '"' key.insert(location, "\\"); position = (int) location + 2; } } } // print the key // *d_outputstream << key; } if(value != "") { // print out the delimiter // *d_outputstream << " " << ( d_delimiter ? d_delimiter : '\t' ) << " "; int position = 0; size_t location; // escape all backslashes // string backslash(1,'\\'); while( (location = value.find("\\", position)) != string::npos ) { // location points right at the '\' value.insert(location, "\\"); position = (int) location + 2; } // escape all quotes // string quote(1,'"'); position = 0; while( (location = value.find("\"", position)) != string::npos ) { // location points right at the '"' value.insert(location, "\\"); position = (int) location + 2; } // escape comment characters // unless the comment character is a backslash or a quote, which we've already escaped.... // if(d_commentchar && d_commentchar != '\\' && d_commentchar != '"') { position = 0; while( (location = value.find(commentchar, position)) != string::npos ) { // location points right at the '"' value.insert(location, "\\"); position = (int) location + 2; } } // if value starts with whitespace, ends with whitespace or contains the comment character or CRLF's, quote the value, // int size = value.size(); if( isspace(value[0]) || isspace(value[size-1]) || (value.find("\r", 0) != string::npos) || (value.find("\f", 0) != string::npos) || (value.find("\n", 0)!= string::npos) ) { value.insert(0, "\""); value += "\""; } // if data is deleted and there are CRLFS // then each line must start with a comment character. // The safest way is just to follow every newline character with a comment // if( dataline.isDeleted() && ( (value.find("\r", 0) != string::npos) || (value.find("\f", 0) != string::npos) || (value.find("\n", 0)!= string::npos) ) ) { position = 0; while( (location = value.find("\r", position)) != string::npos ) { // location points right at the '"' value.insert(location + 1, commentchar); position = (int) location + 2; } position = 0; while( (location = value.find("\f", position)) != string::npos ) { // location points right at the '"' value.insert(location + 1, commentchar); position = (int) location + 2; } position = 0; while( (location = value.find("\n", position)) != string::npos ) { // location points right at the '"' value.insert(location + 1, commentchar); position = (int) location + 2; } } *d_outputstream << value; } if( comment != "" && d_commentchar && d_preservecomments) { // add value's comment at end if it exists // and there is a comment character // *d_outputstream << "\t " << d_commentchar << comment; } // end the entry with a newline // *d_outputstream << "\n"; } } }} // end namespaces music-1.1.16/rudeconfig/src/ConfigImpl.cpp0000644000175000017500000002646513571617503015335 00000000000000// configimpl.cpp // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2008 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #include "../config.h" #include "ConfigImpl.h" #ifndef INCLUDED_Section_H #include "Section.h" #endif #ifndef INCLUDED_File_H #include "File.h" #endif #ifndef INCLUDED_Writer_H #include "Writer.h" #endif #ifndef INPUT_RealOrganiser_h #include "RealOrganiser.h" #endif #ifndef INPUT_ParserJuly2004_h #include "ParserJuly2004.h" #endif #ifndef INCLUDED_BASE64ENCODER_H #include "Base64Encoder.h" #endif #ifndef INCLUDED_CSTDIO #include #define INCLUDED_CSTDIO #endif #ifndef INCLUDED_CSTDLIB #include #define INCLUDED_CSTDLIB #endif #ifndef INCLUDED_IOSTREAM #include #define INCLUDED_IOSTREAM #endif #ifndef INCLUDED_FSTREAM #include #define INCLUDED_FSTREAM #endif #include using namespace std; namespace rude{ namespace config{ // STATIC DATA // std::string ConfigImpl::s_defaultConfigFile = "default.ini"; char ConfigImpl::s_defaultCommentChar = '#'; char ConfigImpl::s_defaultDelimiter = '='; bool ConfigImpl::s_defaultPreserveDeleted = false; bool ConfigImpl::s_defaultAllowDuplicate = false; bool ConfigImpl::s_defaultIgnoreCase = false; std::string ConfigImpl::s_returnValue=""; ////////////////////////////////////// // STATIC METHODS ////////////////////////////////////// const char *ConfigImpl::version() { return "0"; } void ConfigImpl::setDefaultConfigFile(const char *filepath) { s_defaultConfigFile = filepath ? filepath : "default.ini"; } const char *ConfigImpl::getDefaultConfigFile() { return s_defaultConfigFile.c_str(); } void ConfigImpl::setDefaultCommentCharacter(char c) { s_defaultCommentChar = c; } char ConfigImpl::getDefaultCommentCharacter() { return s_defaultCommentChar; } void ConfigImpl::setDefaultDelimiter(char c) { s_defaultDelimiter = c; } char ConfigImpl::getDefaultDelimiter() { return s_defaultDelimiter; } void ConfigImpl::setDefaultPreserveDeleted(bool shouldPreserve) { s_defaultPreserveDeleted = shouldPreserve; } bool ConfigImpl::getDefaultPreserveDeleted() { return s_defaultPreserveDeleted; } void ConfigImpl::setDefaultIgnoreCase(bool shouldIgnore) { s_defaultIgnoreCase = shouldIgnore; } void ConfigImpl::setDefaultAllowDuplicateKeys(bool shouldAllow) { s_defaultAllowDuplicate = shouldAllow; } // STATIC DATA CONVERSION // bool ConfigImpl::stringToBool(const char *value) { if(value) { // Values that mean true: // yes, on, true, 1 // [yY]*, [oO][nN]*, O*, [Tt]*, 1 // Values that mean false: // no, off, false, 0 switch(value[0]) { case 't': return true; case 'T': return true; case 'y': return true; case 'Y': return true; case '1': return true; case 'o': if(value[1] == 'n' || value[1] == 'N') { // since value[0] was not null, we can rest assured that there is a value[1] - // it is at least the null string terminator! return true; } break; case 'O': if(value[1] == 'n' || value[1] == 'N') { return true; } break; default: return false; } } return false; } const char *ConfigImpl::boolToString(bool value) { return (value ? "true" : "false"); } int ConfigImpl::stringToInt(const char *string) { if(string) { return atoi(string); } return 0; } const char *ConfigImpl::intToString(int value) { char myint[25]; sprintf(myint, "%i", value); s_returnValue = myint; return s_returnValue.c_str(); } double ConfigImpl::stringToDouble(const char *string) { if(string) { return atof(string); } return 0; } const char *ConfigImpl::doubleToString(double value) { char mydouble[25]; sprintf(mydouble, "%g", value); s_returnValue = mydouble; return s_returnValue.c_str(); } char * ConfigImpl::stringToBinary(const char *value, int &outlength) { // Base64Encoder USAGE: // static char * decode(const char *data, int datalength, int &outlength); if(value) { int datalength=strlen(value); return Base64Encoder::decode(value, datalength, outlength); } outlength=0; return 0; } const char *ConfigImpl::binaryToString(const char *value, int length) { // Base64Encoder USAGE: // static char * encode(const char *data, int datalength, int &outlength); if(value) { int outlength; s_returnValue = Base64Encoder::encode(value, length, outlength); } else { s_returnValue = ""; } return s_returnValue.c_str(); } ////////////////////////////////////// // INSTANCE METHODS ////////////////////////////////////// /////////////////////////// // CONSTRUCTOR & DESTRUCTOR /////////////////////////// ConfigImpl::ConfigImpl() { d_file = new File(); // Create the appropriate Objects here, // all other methods interact with // the base class interfaces // d_writer = new Writer(); d_parser = new ParserJuly2004(); d_error=""; d_errorcode=""; d_commentcharacter = s_defaultCommentChar; d_delimiter = s_defaultDelimiter; d_configfile = s_defaultConfigFile; d_preserveDeleted = s_defaultPreserveDeleted; d_allowDuplicate = s_defaultAllowDuplicate; d_ignoreCase = s_defaultIgnoreCase; } ConfigImpl::~ConfigImpl() { delete d_writer; delete d_parser; delete d_file; } //////////// // STATUS //////////// void ConfigImpl::setError(const char *errorcode, const char *errorstring) { d_errorcode = errorcode ? errorcode : ""; d_error = errorstring ? errorstring : ""; } const char *ConfigImpl::getError() const { return d_error.c_str(); } const char *ConfigImpl::getErrorCode() const { return d_errorcode.c_str(); } ////////////////////// // INSTANCE BEHAVIOR ////////////////////// void ConfigImpl::setConfigFile(const char *filepath) { d_configfile = filepath ? filepath : s_defaultConfigFile.c_str(); } const char * ConfigImpl::getConfigFile() { return d_configfile.c_str(); } void ConfigImpl::setCommentCharacter(char c) { d_commentcharacter = c; } void ConfigImpl::setDelimiter(char c) { d_delimiter = c; } void ConfigImpl::preserveDeletedData(bool shouldPreserve) { d_preserveDeleted = shouldPreserve; } void ConfigImpl::ignoreCase(bool shouldIgnore) { d_ignoreCase = shouldIgnore; } void ConfigImpl::allowDuplicateKeys(bool shouldAllow) { d_allowDuplicate = shouldAllow; } ////////////////////////////// // LOADING & SAVING & CLEARING ////////////////////////////// bool ConfigImpl::load() { // forward to load(filepath) // return load(d_configfile.c_str()); } bool ConfigImpl::load(const char *filepath) { if(filepath && filepath[0]) { d_configfile=filepath; std::ifstream infile(filepath); if(infile) { // forward to load(std::istream&) bool retval = load(infile); infile.close(); return retval; } else { setError("2001", "Error opening config file for reading"); return false; } } else { return load(std::cin); } } bool ConfigImpl::load(std::istream& inputstream) { d_parser->setCommentCharacter(d_commentcharacter); d_parser->setDelimiter(d_delimiter); RealOrganiser organiser(d_file); if(d_parser->parse(inputstream, organiser)) { setSection(""); return true; } else { setSection(""); setError(d_parser->getErrorCode(), d_parser->getError()); return false; } } bool ConfigImpl::save() { // forward to save(filepath) // return save(d_configfile.c_str()); } bool ConfigImpl::save(const char *filepath) { if(filepath && filepath[0] != 0) { ofstream outstream(filepath); if(outstream) { // forward to save(std::ostream&) // bool retval = save(outstream); outstream.close(); return retval; } else { setError("2002", "Error opening config file for writing"); return false; } } else { return save(std::cout); } } bool ConfigImpl::save(std::ostream& outstream) { d_writer->setOutputStream(outstream); d_writer->setCommentChar(d_commentcharacter); d_writer->setDelimiter(d_delimiter); d_writer->preserveDeleted(d_preserveDeleted); d_file->acceptWriter(*d_writer); return true; } void ConfigImpl::clear() { d_file->clear(); } ////////////////// // SECTION METHODS ////////////////// int ConfigImpl::getNumSections() const { return d_file->getNumSections(); } const char *ConfigImpl::getSectionNameAt(int index) const { return d_file->getSectionNameAt(index); } bool ConfigImpl::setSection(const char *sectionname, bool shouldCreate) { return d_file->setSection(sectionname, shouldCreate); } bool ConfigImpl::setSection(const char *sectionname) { return d_file->setSection(sectionname, true); } bool ConfigImpl::deleteSection(const char *sectionname) { return d_file->deleteSection(sectionname); } //////////////// // DATA METHODS //////////////// int ConfigImpl::getNumSourceDestMembers() const { return d_file->getNumSourceDestMembers(); } const char *ConfigImpl::getSrcAppAt(int index) const { return d_file->getSrcAppAt(index); } const char *ConfigImpl::getDestAppAt(int index) const { return d_file->getDestAppAt(index); } const char *ConfigImpl::getSrcObjAt(int index) const { return d_file->getSrcObjAt(index); } const char *ConfigImpl::getDestObjAt(int index) const { return d_file->getDestObjAt(index); } const char *ConfigImpl::getWidthAt(int index) const { return d_file->getWidthAt(index); } const char *ConfigImpl::getCommTypeAt(int index) const { return d_file->getCommTypeAt(index); } const char *ConfigImpl::getProcMethodAt(int index) const { return d_file->getProcMethodAt(index); } int ConfigImpl::getNumDataMembers() const { return d_file->getNumDataMembers(); } const char *ConfigImpl::getDataNameAt(int index) const { return d_file->getDataNameAt(index); } const char *ConfigImpl::getDataValueAt(int index) const { return d_file->getDataValueAt(index); } bool ConfigImpl::exists(const char *name) const { return d_file->exists(name); } const char * ConfigImpl::getStringValue(const char *name) const { return d_file->getStringValue(name); } void ConfigImpl::setStringValue(const char *name, const char *value) { d_file->setStringValue(name, value); } bool ConfigImpl::deleteData(const char *name) { return d_file->deleteData(name); } /////////////////////////////// // Working with Duplicate Keys // NOT IMPLEMENTED YET /////////////////////////////// int ConfigImpl::getNumDataMembers(const char *key) const { if(exists(key)) { return 1; } else { return 0; } } const char * ConfigImpl::getStringValue(const char *name, int index) const { return d_file->getStringValue(name); } void ConfigImpl::addStringValue(const char *name, const char *value) { d_file->setStringValue(name, value); } bool ConfigImpl::deleteData(const char *name, int index) { return d_file->deleteData(name); } }}// end namespace rude::config music-1.1.16/rudeconfig/src/Base64Encoder.cpp0000644000175000017500000001535513571617503015626 00000000000000// Base64Encoder.cpp // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #include "../config.h" #include "Base64Encoder.h" #ifndef INCLUDED_CSTRING #include #define INCLUDED_CSTRING #endif namespace rude{ namespace config{ // translates a 6 bit char into a base-64 character // inline char Base64Encoder::c_encode(char uc) { if (uc < 26) { return 'A'+uc; } if (uc < 52) { return 'a'+(uc-26); } if (uc < 62) { return '0'+(uc-52); } if (uc == 62) { return '+'; } return '/'; } // translates one base-64 character into a six-bit pattern // inline unsigned char Base64Encoder::c_decode(char c) { if (c >= 'A' && c <= 'Z') { return c - 'A'; } if (c >= 'a' && c <= 'z') { return c - 'a' + 26; } if (c >= '0' && c <= '9') { return c - '0' + 52; } if (c == '+') { return 62; }; return 63; } char * Base64Encoder::encode(const char *data, int datalength, int &outlength) { int linelength=0; outlength=0; if (data == (char*) 0 || datalength == 0) { return (char*) 0; }; char *retval=new char[datalength * 2]; const char *crlf="\n"; int crlflength=strlen(crlf); int maxlinelength=76; for (int i=0; i>2; by5 = ((by1 & 0x3)<<4)|( by2>>4 ); by6 = ((by2 & 0xf)<<2)|( by3>>6 ); by7 = by3 & 0x3f; retval[outlength++] = c_encode(by4); linelength++; retval[outlength++] = c_encode(by5); linelength++; if (i+1 < datalength) { retval[outlength++]= c_encode(by6); linelength++; } else { retval[outlength++]= '='; linelength++; } if (i+2 0 // if (maxlinelength != 0 && linelength >= maxlinelength) { for(int y=0; y< crlflength; y++) { retval[outlength++]= crlf[y]; } // we just created a line - reset current linelength // linelength=0; } }; retval[outlength]=(char) NULL; return retval; } char * Base64Encoder::decode(const char *data, int datalength, int &outlength) { // Error if incoming data is NULL // Error if nothing to decode // if(data == (char *) 0 || datalength == 0) { return (char*) 0; } outlength=0; // rawlength is the length of the encoded data excluding // any non-base64 characters // int rawlength=0; // create return buffer // char *outbuffer=new char[datalength]; // copy all base64 characters into outbuffer, // in other words, strip away CRLF's and non-b64 characters... // for (int j=0;j < datalength; j++) { if (IsBase64(data[j])) { outbuffer[rawlength++]= data[j]; } } // there's no base64 characters to decode // if (rawlength == 0 || datalength == 0) { delete [] outbuffer; return (char*) NULL; } for (int i=0; i>4) ); outlength++; if (c3 != '=') { outbuffer[outlength]=( ((by2&0xf)<<4)|(by3>>2) ); outlength++; } if (c4 != '=') { outbuffer[outlength]=( ((by3&0x3)<<6)|by4 ); outlength++; }; }; // NULL terminate decoded data // in case caller ignores outlength // for text data // outbuffer[outlength]=(char) 0; return outbuffer; } //The last helper function returns true is a character is a valid //base-64 character and false otherwise. inline bool Base64Encoder::IsBase64(char c) { if (c >= 'A' && c <= 'Z') { return true; } if (c >= 'a' && c <= 'z') { return true; } if (c >= '0' && c <= '9') { return true; } if (c == '+') { return true; }; if (c == '/') { return true; }; if (c == '=') { return true; }; return false; } }} music-1.1.16/rudeconfig/src/AbstractOrganiser.cpp0000644000175000017500000000223113571617503016704 00000000000000// AbstractOrganiser.cc // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #include "../config.h" #include "AbstractOrganiser.h" namespace rude{ namespace config{ AbstractOrganiser::AbstractOrganiser() { } AbstractOrganiser::~AbstractOrganiser() { } }} // end namespaces music-1.1.16/rudeconfig/src/AbstractWriter.h0000644000175000017500000000410013571617503015671 00000000000000// AbstractWriter.h // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #ifndef INCLUDED_AbstractWriter_H #define INCLUDED_AbstractWriter_H #ifndef INCLUDED_STRING #include #define INCLUDED_STRING #endif namespace rude{ namespace config{ class File; class Section; class KeyValue; class Comment; class WhiteSpace; class AbstractWriter{ protected: char d_commentchar; char d_delimiter; bool d_preservedeleted; bool d_preservecomments; bool d_preservewhitespace; std::ostream *d_outputstream; AbstractWriter(); public: virtual void visitFile(const File& configfile) const = 0; virtual void visitSection(const Section& configsection) const = 0; virtual void visitKeyValue(const KeyValue& dataline) const = 0; virtual void visitComment(const Comment& comment) const = 0; virtual void visitWhiteSpace(const WhiteSpace& whitespace) const = 0; void setOutputStream( std::ostream& stream); void setCommentChar(char); void setDelimiter(char); void preserveDeleted(bool doit); void preserveComments(bool doit); void preserveWhiteSpace(bool doit); virtual ~AbstractWriter(); }; }} // end namespaces #endif music-1.1.16/rudeconfig/src/DataLine.cpp0000644000175000017500000000245413571617503014757 00000000000000// DataLine.cpp // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #include "../config.h" #include "DataLine.h" namespace rude{ namespace config{ DataLine::DataLine() { d_isDeleted = false; } bool DataLine::isDeleted() const { return d_isDeleted; } void DataLine::isDeleted(bool isit) { d_isDeleted = isit; } DataLine::~DataLine() { } }} // end namespace rude::config music-1.1.16/rudeconfig/src/config.cpp0000644000175000017500000001634613571617503014550 00000000000000// config.cpp // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #include "../config.h" #include "config.h" #ifndef INCLUDED_RUDE_CONFIGIMPL_H #include "ConfigImpl.h" #endif #ifndef INCLUDED_IOSTREAM #include #define INCLUDED_IOSTREAM #endif #ifndef INCLUDED_STRING #include #define INCLUDED_STRING #endif using namespace rude::config; namespace rude{ ////////////////////////////////////////// // STATIC Methods ////////////////////////////////////////// const char *Config::version() { static std::string ver="3."; ver += ConfigImpl::version(); return ver.c_str(); } void Config::setDefaultConfigFile(const char *filepath) { ConfigImpl::setDefaultConfigFile(filepath); } const char *Config::getDefaultConfigFile() { return ConfigImpl::getDefaultConfigFile(); } void Config::setDefaultCommentCharacter(char c) { ConfigImpl::setDefaultCommentCharacter(c); } char Config::getDefaultCommentCharacter() { return ConfigImpl::getDefaultCommentCharacter(); } void Config::setDefaultDelimiter(char c) { ConfigImpl::setDefaultDelimiter(c); } char Config::getDefaultDelimiter() { return ConfigImpl::getDefaultDelimiter(); } void Config::setDefaultPreserveDeleted(bool shouldPreserve) { ConfigImpl::setDefaultPreserveDeleted(shouldPreserve); } bool Config::getDefaultPreserveDeleted() { return ConfigImpl::getDefaultPreserveDeleted(); } ////////////////////////////////////////// // INSTANCE Methods ////////////////////////////////////////// Config::Config() { d_implementation = new ConfigImpl(); } Config::~Config() { delete d_implementation; d_implementation = 0; } void Config::setConfigFile(const char *filepath) { d_implementation->setConfigFile(filepath); } const char * Config::getConfigFile() { return d_implementation->getConfigFile(); } void Config::setCommentCharacter(char commentchar) { d_implementation->setCommentCharacter(commentchar); } void Config::preserveDeletedData(bool shouldPreserve) { d_implementation->preserveDeletedData(shouldPreserve); } void Config::setDelimiter(char delimiter) { d_implementation->setDelimiter(delimiter); } bool Config::load() { return d_implementation->load(); } bool Config::load(const char *filename) { return d_implementation->load(filename); } bool Config::load(std::istream& file) { return d_implementation->load(file); } bool Config::save() { return d_implementation->save(); } bool Config::save(const char *filepath) { return d_implementation->save(filepath); } void Config::clear() { d_implementation->clear(); } const char *Config::getError() { return d_implementation->getError(); } ////////////////////////////////////////// // Section Methods ////////////////////////////////////////// int Config::getNumSections() const { return d_implementation->getNumSections(); } const char *Config::getSectionNameAt(int index) const { return d_implementation->getSectionNameAt(index); } bool Config::setSection(const char *sectionname, bool shouldCreate) { return d_implementation->setSection(sectionname, shouldCreate); } bool Config::setSection(const char *sectionname) { return d_implementation->setSection(sectionname, true); } bool Config::deleteSection(const char *sectionname) { return d_implementation->deleteSection(sectionname); } ////////////////////////////////////////// // Data Methods ////////////////////////////////////////// int Config::getNumSourceDestMembers() const { return d_implementation->getNumSourceDestMembers(); } const char *Config::getSrcAppAt(int index) const { return d_implementation->getSrcAppAt(index); } const char *Config::getDestAppAt(int index) const { return d_implementation->getDestAppAt(index); } const char *Config::getSrcObjAt(int index) const { return d_implementation->getSrcObjAt(index); } const char *Config::getDestObjAt(int index) const { return d_implementation->getDestObjAt(index); } const char *Config::getWidthAt(int index) const { return d_implementation->getWidthAt(index); } const char *Config::getCommTypeAt(int index) const { return d_implementation->getCommTypeAt(index); } const char *Config::getProcMethodAt(int index) const { return d_implementation->getProcMethodAt(index); } int Config::getNumDataMembers() const { return d_implementation->getNumDataMembers(); } const char *Config::getDataNameAt(int index) const { return d_implementation->getDataNameAt(index); } bool Config::exists(const char *name) const { return d_implementation->exists(name); } void Config::setBoolValue(const char *name, bool value) { d_implementation->setStringValue(name, ConfigImpl::boolToString(value)); // d_implementation->setBoolValue(name, value); } bool Config::getBoolValue(const char *name) const { return ConfigImpl::stringToBool(d_implementation->getStringValue(name)); //return d_implementation->getBoolValue(name); } void Config::setIntValue(const char *name, int value) { d_implementation->setStringValue(name, ConfigImpl::intToString(value)); // d_implementation->setIntValue(name, value); } int Config::getIntValue(const char *name) const { return ConfigImpl::stringToInt(d_implementation->getStringValue(name)); //return d_implementation->getIntValue(name); } void Config::setDoubleValue(const char *name, double value) { d_implementation->setStringValue(name, ConfigImpl::doubleToString(value)); // d_implementation->setDoubleValue(name, value); } double Config::getDoubleValue(const char *name) const { return ConfigImpl::stringToDouble(d_implementation->getStringValue(name)); //return d_implementation->getDoubleValue(name); } void Config::setStringValue(const char *name, const char *value) { d_implementation->setStringValue(name, value); } const char * Config::getStringValue(const char *name) const { return d_implementation->getStringValue(name); } void Config::setValue(const char *name, const char *value) { d_implementation->setStringValue(name, value); } const char * Config::getValue(const char *name) const { return d_implementation->getStringValue(name); } bool Config::deleteData(const char *name) { return d_implementation->deleteData(name); } } // end namespace rude music-1.1.16/rudeconfig/src/WhiteSpace.cpp0000644000175000017500000000305313571617503015326 00000000000000// WhiteSpace.cpp // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #include "../config.h" #include "WhiteSpace.h" #ifndef INCLUDED_AbstractWriter_H #include "AbstractWriter.h" #endif #ifndef INCLUDED_CSTDIO #include #define INCLUDED_CSTDIO #endif using namespace std; namespace rude{ namespace config{ WhiteSpace::WhiteSpace(const char *whitespace) { d_whitespace = whitespace ? whitespace : ""; } void WhiteSpace::acceptWriter(AbstractWriter& writer) const { writer.visitWhiteSpace(*this); } const char *WhiteSpace::getWhiteSpace() const { return d_whitespace.c_str(); } }} // end namespace rude::config music-1.1.16/rudeconfig/src/Base64Encoder.h0000644000175000017500000000402113571617503015257 00000000000000// Base64Encoder.h // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #ifndef INCLUDED_BASE64ENCODER_H #define INCLUDED_BASE64ENCODER_H namespace rude{ namespace config{ class Base64Encoder{ private: static char c_encode(char uc); static unsigned char c_decode(char c); static bool IsBase64(char c); public: // datalength does not need to include the NULL terminator for strings // // a NULL terminator is appended to result to make it string friendly // but outlength does not include the // appended NULL terminator in length calculation // // CALLER RESPONSIBLE FOR DELETING RETURNED char * if it is not NULL. // static char * encode(const char *data, int datalength, int &outlength); // datalength does not need to include the NULL terminator for strings // NULL Terminator is appended to result, but outlength does not include the // appended NULL terminator in length calculation // // CALLER RESPONSIBLE FOR DELETING RETURNED char * if it is not NULL. // static char * decode(const char *data, int datalength, int &outlength); }; }} #endif music-1.1.16/rudeconfig/src/AbstractParser.h0000644000175000017500000000343513571617503015663 00000000000000// AbstractParser.h // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #ifndef INPUT_AbstractParser_h #define INPUT_AbstractParser_h #ifndef INCLUDED_IOSTREAM #include #define INCLUDED_IOSTREAM #endif #ifndef INCLUDED_STRING #include #define INCLUDED_STRING #endif namespace rude{ namespace config{ class ConfigInput; class AbstractOrganiser; class AbstractParser { std::string d_error; std::string d_errorcode; protected: char d_commentchar; char d_delimiter; void setError(const char *code, const char *message); public: AbstractParser(); virtual ~AbstractParser(); void setCommentCharacter(char c); void setDelimiter(char c); const char *getErrorCode() const; const char *getError() const; virtual bool parse(std::istream& inputstream, AbstractOrganiser& organiser) = 0; }; }} // end namespaces #endif music-1.1.16/rudeconfig/src/ParserJuly2004.h0000644000175000017500000000314213571617503015344 00000000000000// ParserJuly2004.h // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #ifndef INPUT_ParserJuly2004_h #define INPUT_ParserJuly2004_h #ifndef INPUT_AbstractParser_h #include "AbstractParser.h" #endif #ifndef INCLUDED_IOSTREAM #include #define INCLUDED_IOSTREAM #endif #ifndef INCLUDED_STRING #include #define INCLUDED_STRING #endif namespace rude{ namespace config{ class ParserJuly2004: public AbstractParser { protected: void stripTrailing(std::string&); inline bool isEOL(char c); inline bool chompEOL(std::istream& inputstream); public: bool parse(std::istream& inputstream, AbstractOrganiser& organiser); }; }} // end namespaces #endif music-1.1.16/rudeconfig/src/File.cpp0000644000175000017500000001516513571617503014160 00000000000000// File.cpp // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #include "../config.h" #include "File.h" #ifndef INCLUDED_Section_H #include "Section.h" #endif #ifndef INCLUDED_AbstractWriter_H #include "AbstractWriter.h" #endif using namespace std; namespace rude{ namespace config{ File::File() { d_currentSection = new Section("", 0); d_sections.push_back(d_currentSection); std::string empty = ""; d_sectionmap[empty] = d_currentSection; } File::~File() { std::vector::iterator iter; for(iter = d_sections.begin(); iter != d_sections.end(); iter++) { delete (*iter); } } void File::acceptWriter(AbstractWriter& writer) const { writer.visitFile(*this); // All the data members are responsible for printing themselves out. // They are also responsible for knowing what to do when they are // marked as deleted and when commentchar / delimiter are 0 // std::vector::iterator iter; for(iter = d_sections.begin(); iter != d_sections.end(); iter++) { (*iter)->acceptWriter(writer); } } void File::clear() { std::vector::iterator iter; for(iter = d_sections.begin(); iter != d_sections.end(); iter++) { delete (*iter); } d_sections.clear(); d_sectionmap.clear(); // We create one to begin with, swo that we always // have a valid d_currentSection to work with. d_currentSection = new Section("", 0); d_sections.push_back(d_currentSection); std::string empty = ""; d_sectionmap[empty] = d_currentSection; } const char * File::getStringValue(const char *name) const { if(d_currentSection) { return d_currentSection->getValue(name); } return 0; } bool File::deleteData(const char *name) { if(d_currentSection) { return d_currentSection->deleteData(name); } return false; } void File::setStringValue(const char *name, const char *value) { if(d_currentSection) { d_currentSection->setValue(name, value); } } int File::getNumDataMembers() const { if(d_currentSection) { return d_currentSection->getNumDataMembers(); } return 0; } const char *File::getDataNameAt(int index) const { if(d_currentSection) { return d_currentSection->getDataNameAt(index); } return 0; } const char *File::getDataValueAt(int index) const { if(d_currentSection) { return d_currentSection->getDataValueAt(index); } return 0; } int File::getNumSourceDestMembers() const { if(d_currentSection) { return d_currentSection->getNumSourceDestMembers(); } return 0; } const char *File::getSrcAppAt(int index) const { if(d_currentSection) { return d_currentSection->getSrcAppAt(index); } return 0; } const char *File::getDestAppAt(int index) const { if(d_currentSection) { return d_currentSection->getDestAppAt(index); } return 0; } const char *File::getSrcObjAt(int index) const { if(d_currentSection) { return d_currentSection->getSrcObjAt(index); } return 0; } const char *File::getDestObjAt(int index) const { if(d_currentSection) { return d_currentSection->getDestObjAt(index); } return 0; } const char *File::getWidthAt(int index) const { if(d_currentSection) { return d_currentSection->getWidthAt(index); } return 0; } const char *File::getCommTypeAt(int index) const { if(d_currentSection) { return d_currentSection->getCommTypeAt(index); } return 0; } const char *File::getProcMethodAt(int index) const { if(d_currentSection) { return d_currentSection->getProcMethodAt(index); } return 0; } bool File::exists(const char *name) const { if(d_currentSection) { return d_currentSection->exists(name); } return 0; } int File::getNumSections() const { int len = d_sections.size(); int count = 0; for(int x=0; x< len; x++) { Section *theSection = d_sections[x]; if(!theSection->isDeleted()) { count++; } } return count; } const char *File::getSectionNameAt(int index) const { int len = d_sections.size(); int position = 0; for(int x=0; x< len; x++) { Section *theSection = d_sections[x]; if(!theSection->isDeleted()) { if(position == index) { return theSection->getSectionName(); } position++; } } return 0; } bool File::setSection(const char *sectionname, bool shouldCreate) { if(sectionname) { std::string name=sectionname; Section *thesection = d_sectionmap[name]; if(thesection) { if(!thesection->isDeleted()) { d_currentSection = thesection; return true; } else { if(shouldCreate) { // revive the deleted section // thesection->isDeleted(false); d_currentSection = thesection; return true; } return false; } } else { // The section could not be found..... // if(shouldCreate) { d_currentSection = new Section(sectionname, 0); std::string stringname = sectionname; d_sections.push_back(d_currentSection); d_sectionmap[stringname] = d_currentSection; return true; } } } return false; } Section *File::getSection(const char *sectionname) { setSection(sectionname, true); return d_currentSection; } bool File::deleteSection(const char *sectionname) { if(sectionname) { std::string name=sectionname; Section *thesection = d_sectionmap[name]; if(thesection) { thesection->isDeleted(true); // Here is the interesting part, // By deleting the current section, we have effectively // deleted all of its data members... // but if we are deleting the current section, // then we need to change the current section to // the default one - the "" section, // and make sure that that section is undeleted.... // because we always need a current section. if(thesection == d_currentSection) { return setSection("", true); } return true; } // The section could not be found..... } return false; } }} // end namespace rude::config music-1.1.16/rudeconfig/src/DataLine.h0000644000175000017500000000305613571617503014423 00000000000000// DataLine.h // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #ifndef INCLUDED_DataLine_H #define INCLUDED_DataLine_H #ifndef INCLUDED_AbstractData_H #include "AbstractData.h" #endif namespace rude{ namespace config{ class DataLine: public AbstractData{ bool d_isDeleted; protected: DataLine(); public: void acceptWriter(AbstractWriter& writer) const = 0; //= // Returns true if the data member has been deleted //= bool isDeleted() const; //= // Sets / unsets the deleted status of the data member //= void isDeleted(bool isit); virtual ~DataLine(); }; }} // end namespace rude::config #endif music-1.1.16/rudeconfig/src/KeyValue.cpp0000644000175000017500000000415613571617503015024 00000000000000// KeyValue.cpp // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #include "../config.h" #include "KeyValue.h" #ifndef INCLUDED_AbstractWriter_H #include "AbstractWriter.h" #endif #ifndef INCLUDED_CSTDIO #include #define INCLUDED_CSTDIO #endif using namespace std; namespace rude{ namespace config{ KeyValue::KeyValue() { d_name = ""; d_value = ""; d_comment = ""; } KeyValue::KeyValue(const char *name, const char *value, const char *comment) { d_name = name ? name : ""; d_value = value ? value : ""; d_comment = comment ? comment : ""; } void KeyValue::acceptWriter(AbstractWriter& writer) const { writer.visitKeyValue(*this); } const char *KeyValue::getName() const { return d_name.c_str(); } const char *KeyValue::getValue() const { return d_value.c_str(); } const char *KeyValue::getComment() const { return d_comment.c_str(); } void KeyValue::setName(const char *name) { d_name = name ? name : ""; } void KeyValue::setValue(const char *value) { d_value = value ? value : ""; } void KeyValue::setComment(const char *comment) { d_comment = comment ? comment : ""; } KeyValue::~KeyValue() { } }} // end namespace rude::config music-1.1.16/rudeconfig/src/Section.h0000644000175000017500000002031013571617503014336 00000000000000// Section.h // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #ifndef INCLUDED_Section_H #define INCLUDED_Section_H #ifndef INCLUDED_STRING #include #define INCLUDED_STRING #endif #ifndef INCLUDED_VECTOR #include #define INCLUDED_VECTOR #endif #ifndef INCLUDED_MAP #include #define INCLUDED_MAP #endif #ifndef INCLUDED_IOSTREAM #include #define INCLUDED_IOSTREAM #endif #ifndef INCLUDED_STRING #include #define INCLUDED_STRING #endif namespace rude{ namespace config{ class DataLine; class KeyValue; class AbstractWriter; class SourceDest; //= // Section represents a single section within a configuration file. // It is identified by its section name, which can include whitespace, // and manages the set of all data and/or comments associated with that section. // // Each piece of data is identified by its name. Currently, only one piece of data // is recognized for any given name. In the case where two or more values exist for the // same name (within a section), only the last value is recognized - any previous values are discarded. //= class Section{ bool d_isDeleted; std::string d_sectionname; std::string d_sectioncomment; // Q: Should these really be mutable??? mutable std::vector d_allDataVector; mutable std::vector d_kv_vector; mutable std::map d_kv_map; // Note that a source can have multiple dest, // but a dest can only have one source. // Therefor we use dest for lookups! mutable std::vector d_sd_vector; public: Section(const char *sectionname, const char *sectioncomment=0); void acceptWriter(AbstractWriter& writer) const; //= // Writes the section and all associated data to the outputstream // // If the section is marked as deleted: // The entire section is commented out. This means that it is still printed out, // but each line is begun with the comment character. If the comment character is // set to null, then the section is not printed out at all - it is essentially discarded. // // In normal circumstances, the '=' is the most appropriate delimiter to use. // If delimiter is null, then whie //= void write(std::ostream& outputstream, char commentchar, char delimiter, bool preserveDeleted); //= // Returns this section's name, identified by [somename] in the config/ini file //= const char *getSectionName() const; //= // Returns the section-comment (found after the section name) // // An example of a section-comment is: // // [Dogs] # this section is about dogs // //= const char *getSectionComment() const; //= // Sets the section comment (found after the section name) //= void setSectionComment(const char *newcomment); //= // Returns whether or not this section is flagged as deleted... //= bool isDeleted() const; //= // (Un)marks this section as deleted // When marked as deleted, all data members are marked as deleted // When undeleted, data members remain marked as deleted.... //= void isDeleted(bool is_it_or_not); //= // Returns the number of (non-deleted) data members // Deleted data, comments and blank lines are not included in the count. //= int getNumDataMembers() const; //= // # SourceDest objects //= int getNumSourceDestMembers() const; //= // Returns the name of the (undeleted) data member at the specified index // Returns NULL if the index is out of range //= const char *getDataNameAt(int index) const; const char *getDestAppAt(int index) const; const char *getSrcAppAt(int index) const; const char *getDestObjAt(int index) const; const char *getSrcObjAt(int index) const; const char *getWidthAt(int index) const; /* remedius * returns , or "" type of communication. */ const char *getCommTypeAt(int index) const; /* remedius * returns ,
or "" processing method. */ const char *getProcMethodAt(int index) const; //= // Returns the name of the (undeleted) data member at the specified index // Returns NULL if the index is out of range //= const char *getDataValueAt(int index) const; //= // Returns true if data name exists (and is not marked as deleted), false otherwise //= bool exists(const char *name) const; //= // Returns the value associated with the data identified by name // Returns NULL if data name does not exist (or is marked as deleted) //= const char *getValue(const char *name) const; //= // Returns the comment associated with the data identified by name // Returns NULL if data name does not exist (or is marked as deleted) //= const char *getComment(const char *name) const; //= // Sets the value for the data member identified by name // If a data member already exists with the given name, then the value is replaced. // Otherwise a new data item is created.. // If the data item already exists, but has been marked as deleted, // it will be revived (unmarked) and its value updated. // Existing comments associated with the data member are not altered. //= void setValue(const char *name, const char *value); //= // Replaces the comment for the data member identified by name // Sets the comment whether or not the data is marked as deleted. // If the data identified by name does not exist, then nothing happens //= void setComment(const char *name, const char *comment); //= // Sets the value and the comment for the data member identified by name // If a data member already exists with the given name, then the value is replaced. // Otherwise a new data item is created.. // If the data item already exists, but has been marked as deleted, // it will be revived (unmarked) and updated. //= void setValue(const char *name, const char *value, const char *comment); /* remedius * two more parameters: commType and procMethod were added due to the runtime opportunity * of choosing communication type and pre-/post-processing method. */ void addSourceDest(const char *srcApp, const char *srcObj, const char *destApp, const char *destObj, const char *width, const char *commType, const char *procMethod, const char *comment); //= // Adds a comment line to the end of the section //= void addComment(const char *comment); //= // Adds whitespace line to the end of the section //= void addWhiteSpace(const char *whitespace); //= // Marks the data identified by name as deleted // Returns false if data does not exist within this // section (or has already been marked as deleted) //= bool deleteData(const char *name); ~Section(); }; }} // end namespace rude::config #endif music-1.1.16/rudeconfig/src/AbstractOrganiser.h0000644000175000017500000000351513571617503016357 00000000000000// AbstractOrganiser.h // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #ifndef INCLUDED_AbstractOrganiser_h #define INCLUDED_AbstractOrganiser_h namespace rude{ namespace config{ class AbstractOrganiser { public: AbstractOrganiser(); virtual ~AbstractOrganiser(); virtual void foundSection(const char *sectionName, const char *comment) = 0; virtual void foundComment(const char *comment) = 0; virtual void foundWhiteSpace(const char *whitespace) = 0; virtual void foundData(const char *key, const char *value, const char *comment) = 0; /* remedius * two more parameters: communication type (commType) and * processing method (procMethod) were added. */ virtual void foundSourceDest(const char *srcApp, const char *srcObj, const char *destApp, const char *destObj, const char *width, const char *commType, const char*procMethod, const char *comment) = 0; }; }} // end namespaces #endif music-1.1.16/rudeconfig/src/KeyValue.h0000644000175000017500000000724713571617503014475 00000000000000// KeyValue.h // // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood // See file AUTHORS for contact information // // This file is part of RudeConfig. // // RudeConfig 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. // // RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. //------------------------------------------------------------------------ #ifndef INCLUDED_KeyValue_H #define INCLUDED_KeyValue_H #ifndef INCLUDED_DataLine_H #include "DataLine.h" #endif #ifndef INCLUDED_STRING #include #define INCLUDED_STRING #endif #ifndef INCLUDED_IOSTREAM #include #define INCLUDED_IOSTREAM #endif namespace rude{ namespace config{ //= // KeyValue represents a single line/entry in a configuration file. // It can represent whitespace, a comment, or key=value data. // // Current Limitations //
    //
  • Data Names: it is assumed that the names for entries are valid. Invalid names are not detected. // A name containing the delimiter or comment character is invalid. // A name containing newline information is invalid. // Future releases should either detect and reject invalid names, or use an escape mechanism such as backslashing // to allow invalid characters to appear within a name. // //
  • Data Values: Same as data names. (see above) //
//= class KeyValue: public DataLine{ std::string d_name; std::string d_value; std::string d_comment; public: // default constructor KeyValue(); KeyValue(const char *name, const char *value, const char *comment); void acceptWriter(AbstractWriter& writer) const; //= // Returns the name of the data member // Will return the name even if the data member is flagged as being deleted or a comment // Always returns at least the empty string, will never return null. //= const char *getName() const; //= // Returns the string value of the data member // Will return the value even if the data member is flagged as being deleted or a comment // Always returns at least the empty string, will never return null. //= const char *getValue() const; //= // Returns the comment associated with the data member // Will return the comment even if the data member is flagged as being deleted // Always returns at least the empty string, will never return null. //= const char *getComment() const; //= // Sets the name of the data member // Will set the name even if the data member is flagged as being deleted or a comment // Accepts null //= void setName(const char *name); //= // Sets the string value of the data member // Will set the value even if the data member is flagged as being deleted or a comment // Accepts null //= void setValue(const char *value); // un-deletes if previously deleted..... //= // Sets the comment associated with the data member // Will set the comment even if the data member is flagged as being deleted // Accepts null //= void setComment(const char *comment); ~KeyValue(); }; }} // end namespace rude::config #endif music-1.1.16/rudeconfig/README0000644000175000017500000000421613571617503012661 00000000000000README for RudeConfig See the end of file for copying conditions This file contains the following sections, please glance through them all before installing RudeConfig. * Introduction * Bug Reporting * Copying *** INTRODUCTION *** RudeConfig is a library that allows applications to (painlessly) read, modify, and create config / .ini files. Documentation, discussions, and new releases are available at http://www.rudeserver.com/ See file `COPYING' for copying conditions. See file `INSTALL' for compilation and installation instructions. See file `NEWS' for a list of major changes in the current release. See file `THANKS' for a list of contributors. See file 'AUTHORS' for contact information *** BUG REPORTING *** Please Send bug reports to . A bug report should contain an adequate description of the problem, your input, what you expected, what you got, and why this is wrong. Where applicable, please submit actual data files with your report. Your feedback will help us to make a better and more portable package. Consider documentation errors as bugs, and report them as such. If you develop anything pertaining to RudeConfig or have suggestions, let us know and share your findings by writing to or by visiting the discussion forum accessable from the RudeServer website at http://www.rudeserver.com/ *** COPYING *** Copyright (C) 2005 Matthew Flood See file AUTHORS for contact information This file is part of RudeConfig. RudeConfig 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. RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. music-1.1.16/rudeconfig/Makefile.in0000644000175000017500000006522013571626612014051 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 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@ subdir = rudeconfig ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.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 CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) librudeconfig_la_LIBADD = am__dirstamp = $(am__leading_dot)dirstamp am_librudeconfig_la_OBJECTS = src/AbstractData.lo src/Comment.lo \ src/File.lo src/Section.lo src/AbstractOrganiser.lo \ src/config.lo src/KeyValue.lo src/WhiteSpace.lo \ src/AbstractParser.lo src/ConfigImpl.lo src/Writer.lo \ src/SourceDest.lo src/AbstractWriter.lo src/DataLine.lo \ src/ParserJuly2004.lo src/Base64Encoder.lo \ src/RealOrganiser.lo librudeconfig_la_OBJECTS = $(am_librudeconfig_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 = librudeconfig_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(AM_CXXFLAGS) $(CXXFLAGS) $(librudeconfig_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) depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = src/$(DEPDIR)/AbstractData.Plo \ src/$(DEPDIR)/AbstractOrganiser.Plo \ src/$(DEPDIR)/AbstractParser.Plo \ src/$(DEPDIR)/AbstractWriter.Plo \ src/$(DEPDIR)/Base64Encoder.Plo src/$(DEPDIR)/Comment.Plo \ src/$(DEPDIR)/ConfigImpl.Plo src/$(DEPDIR)/DataLine.Plo \ src/$(DEPDIR)/File.Plo src/$(DEPDIR)/KeyValue.Plo \ src/$(DEPDIR)/ParserJuly2004.Plo \ src/$(DEPDIR)/RealOrganiser.Plo src/$(DEPDIR)/Section.Plo \ src/$(DEPDIR)/SourceDest.Plo src/$(DEPDIR)/WhiteSpace.Plo \ src/$(DEPDIR)/Writer.Plo src/$(DEPDIR)/config.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 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(librudeconfig_la_SOURCES) DIST_SOURCES = $(librudeconfig_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)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp AUTHORS \ COPYING ChangeLog NEWS README THANKS 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@ BINDIR = @BINDIR@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXAMPLESDIR = @EXAMPLESDIR@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ FGREP = @FGREP@ GREP = @GREP@ HAVE_PYTHON = @HAVE_PYTHON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LAUNCHSTYLE = @LAUNCHSTYLE@ 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@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPI_CFLAGS = @MPI_CFLAGS@ MPI_CXXFLAGS = @MPI_CXXFLAGS@ MPI_LDFLAGS = @MPI_LDFLAGS@ MPI_UTILS = @MPI_UTILS@ MUSICCONFIGDIR = @MUSICCONFIGDIR@ MUSIC_ANYSOURCE = @MUSIC_ANYSOURCE@ MUSIC_HAVE_LONG_LONG = @MUSIC_HAVE_LONG_LONG@ MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER = @MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER@ MUSIC_HAVE_SIZE_T = @MUSIC_HAVE_SIZE_T@ MUSIC_ISENDWAITALL = @MUSIC_ISENDWAITALL@ MUSIC_USE_MPI = @MUSIC_USE_MPI@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPTIONAL_UTILS = @OPTIONAL_UTILS@ 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@ PKGDATADIR = @PKGDATADIR@ PKGEXTRABINDIR = @PKGEXTRABINDIR@ PYBUFFER_CPPFLAGS = @PYBUFFER_CPPFLAGS@ PYBUFFER_CXXFLAGS = @PYBUFFER_CXXFLAGS@ PYEXECDIR = @PYEXECDIR@ PYMUSIC_CPPFLAGS = @PYMUSIC_CPPFLAGS@ PYMUSIC_CXXFLAGS = @PYMUSIC_CXXFLAGS@ PYMUSIC_SUBDIR = @PYMUSIC_SUBDIR@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ ROS_SUBDIR = @ROS_SUBDIR@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTDIR = @TESTDIR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # Makefile.am # # Copyright (C) 2005 Matthew Flood # See file AUTHORS for contact information # # This file is part of RudeConfig. # # RudeConfig 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. # # RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. #------------------------------------------------------------------------ AUTOMAKE_OPTIONS = gnits dist-bzip2 dist-zip subdir-objects noinst_LTLIBRARIES = librudeconfig.la librudeconfig_la_SOURCES = src/AbstractData.cpp \ src/Comment.cpp \ src/File.cpp \ src/Section.cpp \ src/AbstractOrganiser.cpp \ src/config.cpp \ src/KeyValue.cpp \ src/WhiteSpace.cpp \ src/AbstractParser.cpp \ src/ConfigImpl.cpp \ src/Writer.cpp \ src/SourceDest.cpp \ src/AbstractWriter.cpp \ src/DataLine.cpp \ src/ParserJuly2004.cpp \ src/Base64Encoder.cpp \ src/RealOrganiser.cpp \ src/AbstractData.h \ src/AbstractWriter.h \ src/config.h \ src/Section.h \ src/AbstractOrganiser.h \ src/Base64Encoder.h \ src/ConfigImpl.h \ src/File.h \ src/ParserJuly2004.h \ src/WhiteSpace.h \ src/AbstractParser.h \ src/Comment.h \ src/DataLine.h \ src/KeyValue.h \ src/RealOrganiser.h \ src/Writer.h \ src/SourceDest.h librudeconfig_la_LDFLAGS = -version-info 5:1:2 #pkginclude_HEADERS = src/config.h #pkgincludedir = $(includedir)/rude #man_MANS = man3/rudeconfig.3 EXTRA_DIST = $(man_MANS) all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits rudeconfig/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnits rudeconfig/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_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}; \ } src/$(am__dirstamp): @$(MKDIR_P) src @: > src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) src/$(DEPDIR) @: > src/$(DEPDIR)/$(am__dirstamp) src/AbstractData.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) src/Comment.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) src/File.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) src/Section.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) src/AbstractOrganiser.lo: src/$(am__dirstamp) \ src/$(DEPDIR)/$(am__dirstamp) src/config.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) src/KeyValue.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) src/WhiteSpace.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) src/AbstractParser.lo: src/$(am__dirstamp) \ src/$(DEPDIR)/$(am__dirstamp) src/ConfigImpl.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) src/Writer.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) src/SourceDest.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) src/AbstractWriter.lo: src/$(am__dirstamp) \ src/$(DEPDIR)/$(am__dirstamp) src/DataLine.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) src/ParserJuly2004.lo: src/$(am__dirstamp) \ src/$(DEPDIR)/$(am__dirstamp) src/Base64Encoder.lo: src/$(am__dirstamp) \ src/$(DEPDIR)/$(am__dirstamp) src/RealOrganiser.lo: src/$(am__dirstamp) \ src/$(DEPDIR)/$(am__dirstamp) librudeconfig.la: $(librudeconfig_la_OBJECTS) $(librudeconfig_la_DEPENDENCIES) $(EXTRA_librudeconfig_la_DEPENDENCIES) $(AM_V_CXXLD)$(librudeconfig_la_LINK) $(librudeconfig_la_OBJECTS) $(librudeconfig_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) -rm -f src/*.$(OBJEXT) -rm -f src/*.lo distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/AbstractData.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/AbstractOrganiser.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/AbstractParser.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/AbstractWriter.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/Base64Encoder.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/Comment.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/ConfigImpl.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/DataLine.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/File.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/KeyValue.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/ParserJuly2004.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/RealOrganiser.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/Section.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/SourceDest.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/WhiteSpace.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/Writer.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/config.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .cpp.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.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 $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.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) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.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 -rm -rf src/.libs src/_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: 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) -rm -f src/$(DEPDIR)/$(am__dirstamp) -rm -f src/$(am__dirstamp) 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-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -f src/$(DEPDIR)/AbstractData.Plo -rm -f src/$(DEPDIR)/AbstractOrganiser.Plo -rm -f src/$(DEPDIR)/AbstractParser.Plo -rm -f src/$(DEPDIR)/AbstractWriter.Plo -rm -f src/$(DEPDIR)/Base64Encoder.Plo -rm -f src/$(DEPDIR)/Comment.Plo -rm -f src/$(DEPDIR)/ConfigImpl.Plo -rm -f src/$(DEPDIR)/DataLine.Plo -rm -f src/$(DEPDIR)/File.Plo -rm -f src/$(DEPDIR)/KeyValue.Plo -rm -f src/$(DEPDIR)/ParserJuly2004.Plo -rm -f src/$(DEPDIR)/RealOrganiser.Plo -rm -f src/$(DEPDIR)/Section.Plo -rm -f src/$(DEPDIR)/SourceDest.Plo -rm -f src/$(DEPDIR)/WhiteSpace.Plo -rm -f src/$(DEPDIR)/Writer.Plo -rm -f src/$(DEPDIR)/config.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-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 src/$(DEPDIR)/AbstractData.Plo -rm -f src/$(DEPDIR)/AbstractOrganiser.Plo -rm -f src/$(DEPDIR)/AbstractParser.Plo -rm -f src/$(DEPDIR)/AbstractWriter.Plo -rm -f src/$(DEPDIR)/Base64Encoder.Plo -rm -f src/$(DEPDIR)/Comment.Plo -rm -f src/$(DEPDIR)/ConfigImpl.Plo -rm -f src/$(DEPDIR)/DataLine.Plo -rm -f src/$(DEPDIR)/File.Plo -rm -f src/$(DEPDIR)/KeyValue.Plo -rm -f src/$(DEPDIR)/ParserJuly2004.Plo -rm -f src/$(DEPDIR)/RealOrganiser.Plo -rm -f src/$(DEPDIR)/Section.Plo -rm -f src/$(DEPDIR)/SourceDest.Plo -rm -f src/$(DEPDIR)/WhiteSpace.Plo -rm -f src/$(DEPDIR)/Writer.Plo -rm -f src/$(DEPDIR)/config.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: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ 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-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 .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: music-1.1.16/rudeconfig/NEWS0000644000175000017500000001110613571617503012474 00000000000000RudeConfig NEWS - User visible changes. See ChangeLog for more detailed information on internal changes See the end for copying conditions. _______________________________________________________________________________ Release 5.0.5-1 - Matthew Flood 2007-02-01 - Renamed header include guards in config.h from INCLUDED_CONFIG_H to INCLUDED_RUDE_CONFIG_H The new guards are less generic and safer to use overall. _______________________________________________________________________________ Release 5.0.4-3 - Matthew Flood 2007-02-01 - Minor amendments to build-related scripts _______________________________________________________________________________ Release 5.0.4-2 - Matthew Flood 2007-02-01 - Minor amendments to build-related scripts _______________________________________________________________________________ Release 5.0.4-1 - Matthew Flood 2007-01-19 - Created rudeconfig.3 MAN page * To access the rudeconfig manual from your linux command prompt, use the man command: $>man rudeconfig OR $>man 3 rudeconfig _______________________________________________________________________________ Release 5.0.3-1 - Matthew Flood 2006-07-31 - Changed versioning system again. - Minor changes to facilitate Windows builds * changed #include's of to * added .c_str() to a string object to correct shorthand if statement ( a ? x : y ) _______________________________________________________________________________ Release 5.0.2-1 - Matthew Flood 2006-04-08 ** Changed package versioning: now using the LIBRARY_VERSION - RELEASE_VERSION RELEASE_VERSION will be set to 1 for each new LIBRARY_VERSION ** Rolled the package into binary and source RPMs _______________________________________________________________________________ Version 3.2 - Matthew Flood 2005-06-02 ** The following instance method has been added, allowing you to discover the current filepath of the config object. The name 'getConfigFile' was chosen to pair up with the already existing method - setConfigFile(const char *filepath) const char *getConfigFile(); _______________________________________________________________________________ Version 3.1 - Matthew Flood 2005-05-18 ** The following static methods have been added, allowing you to alter the default behavior of config objects before they are created. static void Config::setDefaultConfigFile(const char *filepath); static const char *Config::getDefaultConfigFile(); static void Config::setDefaultCommentCharacter(char c); static char Config::getDefaultCommentCharacter(); static void Config::setDefaultDelimiter(char c); static char Config::getDefaultDelimiter(); static void Config::setDefaultPreserveDeleted(bool shouldPreserve); static bool Config::getDefaultPreserveDeleted(); ** When the method [ void load(const char *filename) ] is invoked, the filename passed in as a parameter is now remembered - it becomes the default filename for the instance. This means that [ bool save(void) ] will always save to the file that was load()'ed. Previously, the only way to alter the default filename for an object was to call [ void setConfigFile( const char* filepath ) ]. ** setStringValue() and getStringValue() are now deprecated. Use getValue() and setValue() instead. _______________________________________________________________________________ Version 3.0 - Matthew Flood 2005-05-05 ** RudeConfig became open source and is distributed under the GNU Public License. Commercial licenses are available for a fee, and allow the holder to use the library in commercial applications. To obtain further details, see the AUTHORS file for contact information. _______________________________________________________________________________ Copyright (C) 2005 Matthew Flood See file AUTHORS for contact information This file is part of RudeConfig. RudeConfig 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. RudeConfig 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 RudeConfig; (see COPYING) if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. music-1.1.16/pymusic/0000755000175000017500000000000013571740114011415 500000000000000music-1.1.16/pymusic/pybuffer.cpp0000644000175000017500000060206313571631526013700 00000000000000/* Generated by Cython 0.29.14 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [ "mpi_compat.h", "music/pymusic_c.h" ], "language": "c++", "name": "pybuffer", "sources": [ "pybuffer.pyx" ] }, "module_name": "pybuffer" } END: Cython Metadata */ #define PY_SSIZE_T_CLEAN #include "Python.h" #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000) #error Cython requires Python 2.6+ or Python 3.3+. #else #define CYTHON_ABI "0_29_14" #define CYTHON_HEX_VERSION 0x001D0EF0 #define CYTHON_FUTURE_DIVISION 0 #include #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) #endif #if !defined(WIN32) && !defined(MS_WINDOWS) #ifndef __stdcall #define __stdcall #endif #ifndef __cdecl #define __cdecl #endif #ifndef __fastcall #define __fastcall #endif #endif #ifndef DL_IMPORT #define DL_IMPORT(t) t #endif #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif #define __PYX_COMMA , #ifndef HAVE_LONG_LONG #if PY_VERSION_HEX >= 0x02070000 #define HAVE_LONG_LONG #endif #endif #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #ifndef Py_HUGE_VAL #define Py_HUGE_VAL HUGE_VAL #endif #ifdef PYPY_VERSION #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #if PY_VERSION_HEX < 0x03050000 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #undef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 1 #undef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 0 #undef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 0 #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #undef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT 0 #undef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 0 #undef CYTHON_USE_DICT_VERSIONS #define CYTHON_USE_DICT_VERSIONS 0 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 #elif defined(PYSTON_VERSION) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 1 #define CYTHON_COMPILING_IN_CPYTHON 0 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #undef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT 0 #undef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 0 #undef CYTHON_USE_DICT_VERSIONS #define CYTHON_USE_DICT_VERSIONS 0 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 1 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #if PY_VERSION_HEX < 0x02070000 #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #elif !defined(CYTHON_USE_PYTYPE_LOOKUP) #define CYTHON_USE_PYTYPE_LOOKUP 1 #endif #if PY_MAJOR_VERSION < 3 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #if PY_VERSION_HEX < 0x02070000 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #elif !defined(CYTHON_USE_PYLONG_INTERNALS) #define CYTHON_USE_PYLONG_INTERNALS 1 #endif #ifndef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 1 #endif #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #if PY_VERSION_HEX < 0x030300F0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #elif !defined(CYTHON_USE_UNICODE_WRITER) #define CYTHON_USE_UNICODE_WRITER 1 #endif #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #ifndef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 1 #endif #ifndef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 1 #endif #ifndef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000) #endif #ifndef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1) #endif #ifndef CYTHON_USE_DICT_VERSIONS #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1) #endif #ifndef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3) #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if CYTHON_USE_PYLONG_INTERNALS #include "longintrepr.h" #undef SHIFT #undef BASE #undef MASK #ifdef SIZEOF_VOID_P enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) }; #endif #endif #ifndef __has_attribute #define __has_attribute(x) 0 #endif #ifndef __has_cpp_attribute #define __has_cpp_attribute(x) 0 #endif #ifndef CYTHON_RESTRICT #if defined(__GNUC__) #define CYTHON_RESTRICT __restrict__ #elif defined(_MSC_VER) && _MSC_VER >= 1400 #define CYTHON_RESTRICT __restrict #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define CYTHON_RESTRICT restrict #else #define CYTHON_RESTRICT #endif #endif #ifndef CYTHON_UNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif #endif #ifndef CYTHON_MAYBE_UNUSED_VAR # if defined(__cplusplus) template void CYTHON_MAYBE_UNUSED_VAR( const T& ) { } # else # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x) # endif #endif #ifndef CYTHON_NCP_UNUSED # if CYTHON_COMPILING_IN_CPYTHON # define CYTHON_NCP_UNUSED # else # define CYTHON_NCP_UNUSED CYTHON_UNUSED # endif #endif #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) #ifdef _MSC_VER #ifndef _MSC_STDINT_H_ #if _MSC_VER < 1300 typedef unsigned char uint8_t; typedef unsigned int uint32_t; #else typedef unsigned __int8 uint8_t; typedef unsigned __int32 uint32_t; #endif #endif #else #include #endif #ifndef CYTHON_FALLTHROUGH #if defined(__cplusplus) && __cplusplus >= 201103L #if __has_cpp_attribute(fallthrough) #define CYTHON_FALLTHROUGH [[fallthrough]] #elif __has_cpp_attribute(clang::fallthrough) #define CYTHON_FALLTHROUGH [[clang::fallthrough]] #elif __has_cpp_attribute(gnu::fallthrough) #define CYTHON_FALLTHROUGH [[gnu::fallthrough]] #endif #endif #ifndef CYTHON_FALLTHROUGH #if __has_attribute(fallthrough) #define CYTHON_FALLTHROUGH __attribute__((fallthrough)) #else #define CYTHON_FALLTHROUGH #endif #endif #if defined(__clang__ ) && defined(__apple_build_version__) #if __apple_build_version__ < 7000000 #undef CYTHON_FALLTHROUGH #define CYTHON_FALLTHROUGH #endif #endif #endif #ifndef __cplusplus #error "Cython files generated with the C++ option must be compiled with a C++ compiler." #endif #ifndef CYTHON_INLINE #if defined(__clang__) #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) #else #define CYTHON_INLINE inline #endif #endif template void __Pyx_call_destructor(T& x) { x.~T(); } template class __Pyx_FakeReference { public: __Pyx_FakeReference() : ptr(NULL) { } __Pyx_FakeReference(const T& ref) : ptr(const_cast(&ref)) { } T *operator->() { return ptr; } T *operator&() { return ptr; } operator T&() { return *ptr; } template bool operator ==(U other) { return *ptr == other; } template bool operator !=(U other) { return *ptr != other; } private: T *ptr; }; #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) #define Py_OptimizeFlag 0 #endif #define __PYX_BUILD_PY_SSIZE_T "n" #define CYTHON_FORMAT_SSIZE_T "z" #if PY_MAJOR_VERSION < 3 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyClass_Type #else #define __Pyx_BUILTIN_MODULE_NAME "builtins" #if PY_VERSION_HEX >= 0x030800A4 && PY_VERSION_HEX < 0x030800B2 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #else #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #endif #define __Pyx_DefaultClassType PyType_Type #endif #ifndef Py_TPFLAGS_CHECKTYPES #define Py_TPFLAGS_CHECKTYPES 0 #endif #ifndef Py_TPFLAGS_HAVE_INDEX #define Py_TPFLAGS_HAVE_INDEX 0 #endif #ifndef Py_TPFLAGS_HAVE_NEWBUFFER #define Py_TPFLAGS_HAVE_NEWBUFFER 0 #endif #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif #ifndef METH_STACKLESS #define METH_STACKLESS 0 #endif #if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL) #ifndef METH_FASTCALL #define METH_FASTCALL 0x80 #endif typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs); typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames); #else #define __Pyx_PyCFunctionFast _PyCFunctionFast #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords #endif #if CYTHON_FAST_PYCCALL #define __Pyx_PyFastCFunction_Check(func)\ ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS))))) #else #define __Pyx_PyFastCFunction_Check(func) 0 #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) #define PyObject_Malloc(s) PyMem_Malloc(s) #define PyObject_Free(p) PyMem_Free(p) #define PyObject_Realloc(p) PyMem_Realloc(p) #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1 #define PyMem_RawMalloc(n) PyMem_Malloc(n) #define PyMem_RawRealloc(p, n) PyMem_Realloc(p, n) #define PyMem_RawFree(p) PyMem_Free(p) #endif #if CYTHON_COMPILING_IN_PYSTON #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) #else #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) #endif #if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000 #define __Pyx_PyThreadState_Current PyThreadState_GET() #elif PY_VERSION_HEX >= 0x03060000 #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet() #elif PY_VERSION_HEX >= 0x03000000 #define __Pyx_PyThreadState_Current PyThreadState_GET() #else #define __Pyx_PyThreadState_Current _PyThreadState_Current #endif #if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT) #include "pythread.h" #define Py_tss_NEEDS_INIT 0 typedef int Py_tss_t; static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) { *key = PyThread_create_key(); return 0; } static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) { Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t)); *key = Py_tss_NEEDS_INIT; return key; } static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) { PyObject_Free(key); } static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) { return *key != Py_tss_NEEDS_INIT; } static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) { PyThread_delete_key(*key); *key = Py_tss_NEEDS_INIT; } static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) { return PyThread_set_key_value(*key, value); } static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) { return PyThread_get_key_value(*key); } #endif #if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized) #define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n)) #else #define __Pyx_PyDict_NewPresized(n) PyDict_New() #endif #if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #else #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y) #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS #define __Pyx_PyDict_GetItemStr(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash) #else #define __Pyx_PyDict_GetItemStr(dict, name) PyDict_GetItem(dict, name) #endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ 0 : _PyUnicode_Ready((PyObject *)(op))) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u) #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) #else #define CYTHON_PEP393_ENABLED 0 #define PyUnicode_1BYTE_KIND 1 #define PyUnicode_2BYTE_KIND 2 #define PyUnicode_4BYTE_KIND 4 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111) #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) #endif #if CYTHON_COMPILING_IN_PYPY #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b) #else #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\ PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains) #define PyUnicode_Contains(u, s) PySequence_Contains(u, s) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check) #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format) #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) #endif #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b) #else #define __Pyx_PyString_Format(a, b) PyString_Format(a, b) #endif #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII) #define PyObject_ASCII(o) PyObject_Repr(o) #endif #if PY_MAJOR_VERSION >= 3 #define PyBaseString_Type PyUnicode_Type #define PyStringObject PyUnicodeObject #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact #define PyObject_Unicode PyObject_Str #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj) #else #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj)) #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj)) #endif #ifndef PySet_CheckExact #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif #if CYTHON_ASSUME_SAFE_MACROS #define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq) #else #define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq) #endif #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type #define PyInt_Check(op) PyLong_Check(op) #define PyInt_CheckExact(op) PyLong_CheckExact(op) #define PyInt_FromString PyLong_FromString #define PyInt_FromUnicode PyLong_FromUnicode #define PyInt_FromLong PyLong_FromLong #define PyInt_FromSize_t PyLong_FromSize_t #define PyInt_FromSsize_t PyLong_FromSsize_t #define PyInt_AsLong PyLong_AsLong #define PyInt_AS_LONG PyLong_AS_LONG #define PyInt_AsSsize_t PyLong_AsSsize_t #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #define PyNumber_Int PyNumber_Long #endif #if PY_MAJOR_VERSION >= 3 #define PyBoolObject PyLongObject #endif #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY #ifndef PyUnicode_InternFromString #define PyUnicode_InternFromString(s) PyUnicode_FromString(s) #endif #endif #if PY_VERSION_HEX < 0x030200A4 typedef long Py_hash_t; #define __Pyx_PyInt_FromHash_t PyInt_FromLong #define __Pyx_PyInt_AsHash_t PyInt_AsLong #else #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : (Py_INCREF(func), func)) #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif #if CYTHON_USE_ASYNC_SLOTS #if PY_VERSION_HEX >= 0x030500B1 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) #else #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) #endif #else #define __Pyx_PyType_AsAsync(obj) NULL #endif #ifndef __Pyx_PyAsyncMethodsStruct typedef struct { unaryfunc am_await; unaryfunc am_aiter; unaryfunc am_anext; } __Pyx_PyAsyncMethodsStruct; #endif #if defined(WIN32) || defined(MS_WINDOWS) #define _USE_MATH_DEFINES #endif #include #ifdef NAN #define __PYX_NAN() ((float) NAN) #else static CYTHON_INLINE float __PYX_NAN() { float value; memset(&value, 0xFF, sizeof(value)); return value; } #endif #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) #define __Pyx_truncl trunc #else #define __Pyx_truncl truncl #endif #define __PYX_ERR(f_index, lineno, Ln_error) \ { \ __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \ } #ifndef __PYX_EXTERN_C #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif #endif #define __PYX_HAVE__pybuffer #define __PYX_HAVE_API__pybuffer /* Early includes */ #include "mpi_compat.h" #include "mpi.h" #include "music/pymusic_c.h" #include #include #include #ifdef _OPENMP #include #endif /* _OPENMP */ #if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS) #define CYTHON_WITHOUT_ASSERTIONS #endif typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8) #define __PYX_DEFAULT_STRING_ENCODING "" #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #define __Pyx_uchar_cast(c) ((unsigned char)c) #define __Pyx_long_cast(x) ((long)x) #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\ (sizeof(type) < sizeof(Py_ssize_t)) ||\ (sizeof(type) > sizeof(Py_ssize_t) &&\ likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX) &&\ (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\ v == (type)PY_SSIZE_T_MIN))) ||\ (sizeof(type) == sizeof(Py_ssize_t) &&\ (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX))) ) static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) { return (size_t) i < (size_t) limit; } #if defined (__cplusplus) && __cplusplus >= 201103L #include #define __Pyx_sst_abs(value) std::abs(value) #elif SIZEOF_INT >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) abs(value) #elif SIZEOF_LONG >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) labs(value) #elif defined (_MSC_VER) #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value)) #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __Pyx_sst_abs(value) llabs(value) #elif defined (__GNUC__) #define __Pyx_sst_abs(value) __builtin_llabs(value) #else #define __Pyx_sst_abs(value) ((value<0) ? -value : value) #endif static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*); static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s)) #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l) #define __Pyx_PyBytes_FromString PyBytes_FromString #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #if PY_MAJOR_VERSION < 3 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #else #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize #endif #define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s)) #define __Pyx_PyObject_AsWritableString(s) ((char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsWritableSString(s) ((signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s) #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s) #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s) #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) { const Py_UNICODE *u_end = u; while (*u_end++) ; return (size_t)(u_end - u - 1); } #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b); static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); #define __Pyx_PySequence_Tuple(obj)\ (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj)) static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); #if CYTHON_ASSUME_SAFE_MACROS #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) #endif #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x)) #else #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x)) #endif #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x)) #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII static int __Pyx_sys_getdefaultencoding_not_ascii; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; PyObject* ascii_chars_u = NULL; PyObject* ascii_chars_b = NULL; const char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; if (strcmp(default_encoding_c, "ascii") == 0) { __Pyx_sys_getdefaultencoding_not_ascii = 0; } else { char ascii_chars[128]; int c; for (c = 0; c < 128; c++) { ascii_chars[c] = c; } __Pyx_sys_getdefaultencoding_not_ascii = 1; ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL); if (!ascii_chars_u) goto bad; ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL); if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) { PyErr_Format( PyExc_ValueError, "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.", default_encoding_c); goto bad; } Py_DECREF(ascii_chars_u); Py_DECREF(ascii_chars_b); } Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); Py_XDECREF(ascii_chars_u); Py_XDECREF(ascii_chars_b); return -1; } #endif #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL) #else #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL) #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT static char* __PYX_DEFAULT_STRING_ENCODING; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1); if (!__PYX_DEFAULT_STRING_ENCODING) goto bad; strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c); Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); return -1; } #endif #endif /* Test for GCC > 2.95 */ #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))) #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else /* !__GNUC__ or GCC < 2.95 */ #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ */ static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; } static PyObject *__pyx_m = NULL; static PyObject *__pyx_d; static PyObject *__pyx_b; static PyObject *__pyx_cython_runtime = NULL; static PyObject *__pyx_empty_tuple; static PyObject *__pyx_empty_bytes; static PyObject *__pyx_empty_unicode; static int __pyx_lineno; static int __pyx_clineno = 0; static const char * __pyx_cfilenm= __FILE__; static const char *__pyx_filename; static const char *__pyx_f[] = { "pybuffer.pyx", "stringsource", "MPI.pxd", "type.pxd", }; /*--- Type declarations ---*/ struct PyMPIStatusObject; struct PyMPIDatatypeObject; struct PyMPIRequestObject; struct PyMPIPrequestObject; struct PyMPIGrequestObject; struct PyMPIMessageObject; struct PyMPIOpObject; struct PyMPIGroupObject; struct PyMPIInfoObject; struct PyMPIErrhandlerObject; struct PyMPICommObject; struct PyMPIIntracommObject; struct PyMPITopocommObject; struct PyMPICartcommObject; struct PyMPIGraphcommObject; struct PyMPIDistgraphcommObject; struct PyMPIIntercommObject; struct PyMPIWinObject; struct PyMPIFileObject; struct __pyx_obj_8pybuffer_Buffer; /* "mpi4py/MPI.pxd":28 * ctypedef MPI_Count Count "MPI_Count" * * ctypedef public api class Status [ # <<<<<<<<<<<<<< * type PyMPIStatus_Type, * object PyMPIStatusObject, */ struct PyMPIStatusObject { PyObject_HEAD MPI_Status ob_mpi; unsigned int flags; }; typedef struct PyMPIStatusObject PyMPIStatusObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIStatus_Type; /* "mpi4py/MPI.pxd":35 * cdef unsigned flags * * ctypedef public api class Datatype [ # <<<<<<<<<<<<<< * type PyMPIDatatype_Type, * object PyMPIDatatypeObject, */ struct PyMPIDatatypeObject { PyObject_HEAD MPI_Datatype ob_mpi; unsigned int flags; }; typedef struct PyMPIDatatypeObject PyMPIDatatypeObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIDatatype_Type; /* "mpi4py/MPI.pxd":42 * cdef unsigned flags * * ctypedef public api class Request [ # <<<<<<<<<<<<<< * type PyMPIRequest_Type, * object PyMPIRequestObject, */ struct PyMPIRequestObject { PyObject_HEAD MPI_Request ob_mpi; unsigned int flags; PyObject *ob_buf; }; typedef struct PyMPIRequestObject PyMPIRequestObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIRequest_Type; /* "mpi4py/MPI.pxd":50 * cdef object ob_buf * * ctypedef public api class Prequest(Request) [ # <<<<<<<<<<<<<< * type PyMPIPrequest_Type, * object PyMPIPrequestObject, */ struct PyMPIPrequestObject { struct PyMPIRequestObject __pyx_base; }; typedef struct PyMPIPrequestObject PyMPIPrequestObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIPrequest_Type; /* "mpi4py/MPI.pxd":56 * pass * * ctypedef public api class Grequest(Request) [ # <<<<<<<<<<<<<< * type PyMPIGrequest_Type, * object PyMPIGrequestObject, */ struct PyMPIGrequestObject { struct PyMPIRequestObject __pyx_base; MPI_Request ob_grequest; }; typedef struct PyMPIGrequestObject PyMPIGrequestObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIGrequest_Type; /* "mpi4py/MPI.pxd":62 * cdef MPI_Request ob_grequest * * ctypedef public api class Message [ # <<<<<<<<<<<<<< * type PyMPIMessage_Type, * object PyMPIMessageObject, */ struct PyMPIMessageObject { PyObject_HEAD MPI_Message ob_mpi; unsigned int flags; PyObject *ob_buf; }; typedef struct PyMPIMessageObject PyMPIMessageObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIMessage_Type; /* "mpi4py/MPI.pxd":70 * cdef object ob_buf * * ctypedef public api class Op [ # <<<<<<<<<<<<<< * type PyMPIOp_Type, * object PyMPIOpObject, */ struct PyMPIOpObject { PyObject_HEAD MPI_Op ob_mpi; unsigned int flags; PyObject *(*ob_func)(PyObject *, PyObject *); int ob_usrid; }; typedef struct PyMPIOpObject PyMPIOpObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIOp_Type; /* "mpi4py/MPI.pxd":79 * cdef int ob_usrid * * ctypedef public api class Group [ # <<<<<<<<<<<<<< * type PyMPIGroup_Type, * object PyMPIGroupObject, */ struct PyMPIGroupObject { PyObject_HEAD MPI_Group ob_mpi; unsigned int flags; }; typedef struct PyMPIGroupObject PyMPIGroupObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIGroup_Type; /* "mpi4py/MPI.pxd":86 * cdef unsigned flags * * ctypedef public api class Info [ # <<<<<<<<<<<<<< * type PyMPIInfo_Type, * object PyMPIInfoObject, */ struct PyMPIInfoObject { PyObject_HEAD MPI_Info ob_mpi; unsigned int flags; }; typedef struct PyMPIInfoObject PyMPIInfoObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIInfo_Type; /* "mpi4py/MPI.pxd":93 * cdef unsigned flags * * ctypedef public api class Errhandler [ # <<<<<<<<<<<<<< * type PyMPIErrhandler_Type, * object PyMPIErrhandlerObject, */ struct PyMPIErrhandlerObject { PyObject_HEAD MPI_Errhandler ob_mpi; unsigned int flags; }; typedef struct PyMPIErrhandlerObject PyMPIErrhandlerObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIErrhandler_Type; /* "mpi4py/MPI.pxd":100 * cdef unsigned flags * * ctypedef public api class Comm [ # <<<<<<<<<<<<<< * type PyMPIComm_Type, * object PyMPICommObject, */ struct PyMPICommObject { PyObject_HEAD MPI_Comm ob_mpi; unsigned int flags; }; typedef struct PyMPICommObject PyMPICommObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIComm_Type; /* "mpi4py/MPI.pxd":107 * cdef unsigned flags * * ctypedef public api class Intracomm(Comm) [ # <<<<<<<<<<<<<< * type PyMPIIntracomm_Type, * object PyMPIIntracommObject, */ struct PyMPIIntracommObject { struct PyMPICommObject __pyx_base; }; typedef struct PyMPIIntracommObject PyMPIIntracommObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIIntracomm_Type; /* "mpi4py/MPI.pxd":113 * pass * * ctypedef public api class Topocomm(Intracomm) [ # <<<<<<<<<<<<<< * type PyMPITopocomm_Type, * object PyMPITopocommObject, */ struct PyMPITopocommObject { struct PyMPIIntracommObject __pyx_base; }; typedef struct PyMPITopocommObject PyMPITopocommObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPITopocomm_Type; /* "mpi4py/MPI.pxd":119 * pass * * ctypedef public api class Cartcomm(Topocomm) [ # <<<<<<<<<<<<<< * type PyMPICartcomm_Type, * object PyMPICartcommObject, */ struct PyMPICartcommObject { struct PyMPITopocommObject __pyx_base; }; typedef struct PyMPICartcommObject PyMPICartcommObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPICartcomm_Type; /* "mpi4py/MPI.pxd":125 * pass * * ctypedef public api class Graphcomm(Topocomm) [ # <<<<<<<<<<<<<< * type PyMPIGraphcomm_Type, * object PyMPIGraphcommObject, */ struct PyMPIGraphcommObject { struct PyMPITopocommObject __pyx_base; }; typedef struct PyMPIGraphcommObject PyMPIGraphcommObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIGraphcomm_Type; /* "mpi4py/MPI.pxd":131 * pass * * ctypedef public api class Distgraphcomm(Topocomm) [ # <<<<<<<<<<<<<< * type PyMPIDistgraphcomm_Type, * object PyMPIDistgraphcommObject, */ struct PyMPIDistgraphcommObject { struct PyMPITopocommObject __pyx_base; }; typedef struct PyMPIDistgraphcommObject PyMPIDistgraphcommObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIDistgraphcomm_Type; /* "mpi4py/MPI.pxd":137 * pass * * ctypedef public api class Intercomm(Comm) [ # <<<<<<<<<<<<<< * type PyMPIIntercomm_Type, * object PyMPIIntercommObject, */ struct PyMPIIntercommObject { struct PyMPICommObject __pyx_base; }; typedef struct PyMPIIntercommObject PyMPIIntercommObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIIntercomm_Type; /* "mpi4py/MPI.pxd":143 * pass * * ctypedef public api class Win [ # <<<<<<<<<<<<<< * type PyMPIWin_Type, * object PyMPIWinObject, */ struct PyMPIWinObject { PyObject_HEAD MPI_Win ob_mpi; unsigned int flags; PyObject *ob_mem; }; typedef struct PyMPIWinObject PyMPIWinObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIWin_Type; /* "mpi4py/MPI.pxd":151 * cdef object ob_mem * * ctypedef public api class File [ # <<<<<<<<<<<<<< * type PyMPIFile_Type, * object PyMPIFileObject, */ struct PyMPIFileObject { PyObject_HEAD MPI_File ob_mpi; unsigned int flags; }; typedef struct PyMPIFileObject PyMPIFileObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIFile_Type; /* "pybuffer.pxd":49 * int PyBuffer_FillInfo(Py_buffer*, object, void*, Py_ssize_t, bint, int) except -1 * * cdef class Buffer(object): # <<<<<<<<<<<<<< * cdef Py_buffer pybuf * cdef MPI.Datatype dtype */ struct __pyx_obj_8pybuffer_Buffer { PyObject_HEAD Py_buffer pybuf; struct PyMPIDatatypeObject *dtype; Py_ssize_t items; }; /* --- Runtime support code (head) --- */ /* Refnanny.proto */ #ifndef CYTHON_REFNANNY #define CYTHON_REFNANNY 0 #endif #if CYTHON_REFNANNY typedef struct { void (*INCREF)(void*, PyObject*, int); void (*DECREF)(void*, PyObject*, int); void (*GOTREF)(void*, PyObject*, int); void (*GIVEREF)(void*, PyObject*, int); void* (*SetupContext)(const char*, int, const char*); void (*FinishContext)(void**); } __Pyx_RefNannyAPIStruct; static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL; static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL; #ifdef WITH_THREAD #define __Pyx_RefNannySetupContext(name, acquire_gil)\ if (acquire_gil) {\ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ PyGILState_Release(__pyx_gilstate_save);\ } else {\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ } #else #define __Pyx_RefNannySetupContext(name, acquire_gil)\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__) #endif #define __Pyx_RefNannyFinishContext()\ __Pyx_RefNanny->FinishContext(&__pyx_refnanny) #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0) #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0) #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0) #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0) #else #define __Pyx_RefNannyDeclarations #define __Pyx_RefNannySetupContext(name, acquire_gil) #define __Pyx_RefNannyFinishContext() #define __Pyx_INCREF(r) Py_INCREF(r) #define __Pyx_DECREF(r) Py_DECREF(r) #define __Pyx_GOTREF(r) #define __Pyx_GIVEREF(r) #define __Pyx_XINCREF(r) Py_XINCREF(r) #define __Pyx_XDECREF(r) Py_XDECREF(r) #define __Pyx_XGOTREF(r) #define __Pyx_XGIVEREF(r) #endif #define __Pyx_XDECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_XDECREF(tmp);\ } while (0) #define __Pyx_DECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_DECREF(tmp);\ } while (0) #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0) #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) /* PyObjectGetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) #endif /* GetBuiltinName.proto */ static PyObject *__Pyx_GetBuiltinName(PyObject *name); /* GetTopmostException.proto */ #if CYTHON_USE_EXC_INFO_STACK static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate); #endif /* PyThreadStateGet.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate; #define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current; #define __Pyx_PyErr_Occurred() __pyx_tstate->curexc_type #else #define __Pyx_PyThreadState_declare #define __Pyx_PyThreadState_assign #define __Pyx_PyErr_Occurred() PyErr_Occurred() #endif /* SaveResetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); #else #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb) #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb) #endif /* PyErrExceptionMatches.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err); #else #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) #endif /* PyErrFetchRestore.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL) #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #if CYTHON_COMPILING_IN_CPYTHON #define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL)) #else #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc) #endif #else #define __Pyx_PyErr_Clear() PyErr_Clear() #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc) #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb) #endif /* RaiseDoubleKeywords.proto */ static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /* ParseKeywords.proto */ static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\ PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\ const char* function_name); /* RaiseArgTupleInvalid.proto */ static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /* PyObjectCall.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); #else #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) #endif /* RaiseException.proto */ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); /* DictGetItem.proto */ #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key); #define __Pyx_PyObject_Dict_GetItem(obj, name)\ (likely(PyDict_CheckExact(obj)) ?\ __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name)) #else #define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key) #define __Pyx_PyObject_Dict_GetItem(obj, name) PyObject_GetItem(obj, name) #endif /* ExtTypeTest.proto */ static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /* None.proto */ static CYTHON_INLINE Py_ssize_t __Pyx_div_Py_ssize_t(Py_ssize_t, Py_ssize_t); /* UnaryNegOverflows.proto */ #define UNARY_NEG_WOULD_OVERFLOW(x)\ (((x) < 0) & ((unsigned long)(x) == 0-(unsigned long)(x))) /* PyObject_GenericGetAttrNoDict.proto */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr #endif /* PyObject_GenericGetAttr.proto */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr #endif /* SetupReduce.proto */ static int __Pyx_setup_reduce(PyObject* type_obj); /* TypeImport.proto */ #ifndef __PYX_HAVE_RT_ImportType_proto #define __PYX_HAVE_RT_ImportType_proto enum __Pyx_ImportType_CheckSize { __Pyx_ImportType_CheckSize_Error = 0, __Pyx_ImportType_CheckSize_Warn = 1, __Pyx_ImportType_CheckSize_Ignore = 2 }; static PyTypeObject *__Pyx_ImportType(PyObject* module, const char *module_name, const char *class_name, size_t size, enum __Pyx_ImportType_CheckSize check_size); #endif /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /* ImportFrom.proto */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); /* PyDictVersioning.proto */ #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS #define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1) #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\ (version_var) = __PYX_GET_DICT_VERSION(dict);\ (cache_var) = (value); #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\ static PY_UINT64_T __pyx_dict_version = 0;\ static PyObject *__pyx_dict_cached_value = NULL;\ if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\ (VAR) = __pyx_dict_cached_value;\ } else {\ (VAR) = __pyx_dict_cached_value = (LOOKUP);\ __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\ }\ } static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj); static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj); static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version); #else #define __PYX_GET_DICT_VERSION(dict) (0) #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var) #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP); #endif /* GetModuleGlobalName.proto */ #if CYTHON_USE_DICT_VERSIONS #define __Pyx_GetModuleGlobalName(var, name) {\ static PY_UINT64_T __pyx_dict_version = 0;\ static PyObject *__pyx_dict_cached_value = NULL;\ (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\ __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\ } #define __Pyx_GetModuleGlobalNameUncached(var, name) {\ PY_UINT64_T __pyx_dict_version;\ PyObject *__pyx_dict_cached_value;\ (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\ } static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value); #else #define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name) #define __Pyx_GetModuleGlobalNameUncached(var, name) (var) = __Pyx__GetModuleGlobalName(name) static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name); #endif /* CLineInTraceback.proto */ #ifdef CYTHON_CLINE_IN_TRACEBACK #define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0) #else static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line); #endif /* CodeObjectCache.proto */ typedef struct { PyCodeObject* code_object; int code_line; } __Pyx_CodeObjectCacheEntry; struct __Pyx_CodeObjectCache { int count; int max_count; __Pyx_CodeObjectCacheEntry* entries; }; static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL}; static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); static PyCodeObject *__pyx_find_code_object(int code_line); static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); /* AddTraceback.proto */ static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); /* CIntFromPy.proto */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); /* FastTypeChecks.proto */ #if CYTHON_COMPILING_IN_CPYTHON #define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type) static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b); static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type); static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2); #else #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type) #define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2)) #endif #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) /* CheckBinaryVersion.proto */ static int __Pyx_check_binary_version(void); /* InitStrings.proto */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /* Module declarations from 'mpi4py.libmpi' */ /* Module declarations from 'mpi4py.MPI' */ static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Status = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Datatype = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Request = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Prequest = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Grequest = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Message = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Op = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Group = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Info = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Errhandler = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Comm = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Intracomm = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Topocomm = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Cartcomm = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Graphcomm = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Distgraphcomm = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Intercomm = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Win = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_File = 0; /* Module declarations from 'libc.string' */ /* Module declarations from 'libc.stdio' */ /* Module declarations from '__builtin__' */ /* Module declarations from 'cpython.type' */ static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0; /* Module declarations from 'cpython' */ /* Module declarations from 'cpython.object' */ /* Module declarations from 'cpython.ref' */ /* Module declarations from 'libc.stdlib' */ /* Module declarations from 'pybuffer' */ static PyTypeObject *__pyx_ptype_8pybuffer_Buffer = 0; static PyObject *__pyx_v_8pybuffer_TypeDict = 0; static int __pyx_v_8pybuffer_bufflags; static PyObject *__pyx_f_8pybuffer_getformat(Py_buffer *); /*proto*/ #define __Pyx_MODULE_NAME "pybuffer" extern int __pyx_module_is_main_pybuffer; int __pyx_module_is_main_pybuffer = 0; /* Implementation of 'pybuffer' */ static PyObject *__pyx_builtin_AttributeError; static PyObject *__pyx_builtin_TypeError; static const char __pyx_k_B[] = "B"; static const char __pyx_k_D[] = "D"; static const char __pyx_k_F[] = "F"; static const char __pyx_k_G[] = "G"; static const char __pyx_k_H[] = "H"; static const char __pyx_k_I[] = "I"; static const char __pyx_k_L[] = "L"; static const char __pyx_k_Q[] = "Q"; static const char __pyx_k_b[] = "b"; static const char __pyx_k_c[] = "c"; static const char __pyx_k_d[] = "d"; static const char __pyx_k_f[] = "f"; static const char __pyx_k_g[] = "g"; static const char __pyx_k_h[] = "h"; static const char __pyx_k_i[] = "i"; static const char __pyx_k_l[] = "l"; static const char __pyx_k_p[] = "p"; static const char __pyx_k_q[] = "q"; static const char __pyx_k_Zd[] = "Zd"; static const char __pyx_k_Zf[] = "Zf"; static const char __pyx_k_Zg[] = "Zg"; static const char __pyx_k__4[] = "?"; static const char __pyx_k_INT[] = "INT"; static const char __pyx_k_MPI[] = "MPI"; static const char __pyx_k_AINT[] = "AINT"; static const char __pyx_k_CHAR[] = "CHAR"; static const char __pyx_k_LONG[] = "LONG"; static const char __pyx_k_char[] = "char"; static const char __pyx_k_data[] = "data"; static const char __pyx_k_main[] = "__main__"; static const char __pyx_k_name[] = "__name__"; static const char __pyx_k_test[] = "__test__"; static const char __pyx_k_FLOAT[] = "FLOAT"; static const char __pyx_k_SHORT[] = "SHORT"; static const char __pyx_k_dtype[] = "dtype"; static const char __pyx_k_Buffer[] = "Buffer"; static const char __pyx_k_C_BOOL[] = "C_BOOL"; static const char __pyx_k_DOUBLE[] = "DOUBLE"; static const char __pyx_k_import[] = "__import__"; static const char __pyx_k_mpi4py[] = "mpi4py"; static const char __pyx_k_reduce[] = "__reduce__"; static const char __pyx_k_UNSIGNED[] = "UNSIGNED"; static const char __pyx_k_getstate[] = "__getstate__"; static const char __pyx_k_setstate[] = "__setstate__"; static const char __pyx_k_typecode[] = "typecode"; static const char __pyx_k_LONG_LONG[] = "LONG_LONG"; static const char __pyx_k_TypeError[] = "TypeError"; static const char __pyx_k_reduce_ex[] = "__reduce_ex__"; static const char __pyx_k_LONG_DOUBLE[] = "LONG_DOUBLE"; static const char __pyx_k_SIGNED_CHAR[] = "SIGNED_CHAR"; static const char __pyx_k_UNSIGNED_CHAR[] = "UNSIGNED_CHAR"; static const char __pyx_k_UNSIGNED_LONG[] = "UNSIGNED_LONG"; static const char __pyx_k_reduce_cython[] = "__reduce_cython__"; static const char __pyx_k_AttributeError[] = "AttributeError"; static const char __pyx_k_UNSIGNED_SHORT[] = "UNSIGNED_SHORT"; static const char __pyx_k_C_FLOAT_COMPLEX[] = "C_FLOAT_COMPLEX"; static const char __pyx_k_setstate_cython[] = "__setstate_cython__"; static const char __pyx_k_C_DOUBLE_COMPLEX[] = "C_DOUBLE_COMPLEX"; static const char __pyx_k_UNSIGNED_LONG_LONG[] = "UNSIGNED_LONG_LONG"; static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback"; static const char __pyx_k_C_LONG_DOUBLE_COMPLEX[] = "C_LONG_DOUBLE_COMPLEX"; static const char __pyx_k_no_default___reduce___due_to_non[] = "no default __reduce__ due to non-trivial __cinit__"; static const char __pyx_k_object_does_not_present_buffer_i[] = "object does not present buffer interface"; static PyObject *__pyx_n_s_AINT; static PyObject *__pyx_n_s_AttributeError; static PyObject *__pyx_n_s_B; static PyObject *__pyx_n_s_Buffer; static PyObject *__pyx_n_s_CHAR; static PyObject *__pyx_n_s_C_BOOL; static PyObject *__pyx_n_s_C_DOUBLE_COMPLEX; static PyObject *__pyx_n_s_C_FLOAT_COMPLEX; static PyObject *__pyx_n_s_C_LONG_DOUBLE_COMPLEX; static PyObject *__pyx_n_s_D; static PyObject *__pyx_n_s_DOUBLE; static PyObject *__pyx_n_s_F; static PyObject *__pyx_n_s_FLOAT; static PyObject *__pyx_n_s_G; static PyObject *__pyx_n_s_H; static PyObject *__pyx_n_s_I; static PyObject *__pyx_n_s_INT; static PyObject *__pyx_n_s_L; static PyObject *__pyx_n_s_LONG; static PyObject *__pyx_n_s_LONG_DOUBLE; static PyObject *__pyx_n_s_LONG_LONG; static PyObject *__pyx_n_s_MPI; static PyObject *__pyx_n_s_Q; static PyObject *__pyx_n_s_SHORT; static PyObject *__pyx_n_s_SIGNED_CHAR; static PyObject *__pyx_n_s_TypeError; static PyObject *__pyx_n_s_UNSIGNED; static PyObject *__pyx_n_s_UNSIGNED_CHAR; static PyObject *__pyx_n_s_UNSIGNED_LONG; static PyObject *__pyx_n_s_UNSIGNED_LONG_LONG; static PyObject *__pyx_n_s_UNSIGNED_SHORT; static PyObject *__pyx_n_s_Zd; static PyObject *__pyx_n_s_Zf; static PyObject *__pyx_n_s_Zg; static PyObject *__pyx_kp_s__4; static PyObject *__pyx_n_s_b; static PyObject *__pyx_n_s_c; static PyObject *__pyx_n_s_char; static PyObject *__pyx_n_s_cline_in_traceback; static PyObject *__pyx_n_s_d; static PyObject *__pyx_n_s_data; static PyObject *__pyx_n_s_dtype; static PyObject *__pyx_n_s_f; static PyObject *__pyx_n_s_g; static PyObject *__pyx_n_s_getstate; static PyObject *__pyx_n_s_h; static PyObject *__pyx_n_s_i; static PyObject *__pyx_n_s_import; static PyObject *__pyx_n_s_l; static PyObject *__pyx_n_s_main; static PyObject *__pyx_n_s_mpi4py; static PyObject *__pyx_n_s_name; static PyObject *__pyx_kp_s_no_default___reduce___due_to_non; static PyObject *__pyx_kp_s_object_does_not_present_buffer_i; static PyObject *__pyx_n_s_p; static PyObject *__pyx_n_s_q; static PyObject *__pyx_n_s_reduce; static PyObject *__pyx_n_s_reduce_cython; static PyObject *__pyx_n_s_reduce_ex; static PyObject *__pyx_n_s_setstate; static PyObject *__pyx_n_s_setstate_cython; static PyObject *__pyx_n_s_test; static PyObject *__pyx_n_s_typecode; static int __pyx_pf_8pybuffer_6Buffer___cinit__(struct __pyx_obj_8pybuffer_Buffer *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ static void __pyx_pf_8pybuffer_6Buffer_2__dealloc__(struct __pyx_obj_8pybuffer_Buffer *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_8pybuffer_6Buffer_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_8pybuffer_Buffer *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_8pybuffer_6Buffer_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_8pybuffer_Buffer *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_tp_new_8pybuffer_Buffer(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tuple_; static PyObject *__pyx_tuple__2; static PyObject *__pyx_tuple__3; /* Late includes */ /* "pybuffer.pyx":39 * } * * cdef object getformat(Py_buffer* pybuf): # <<<<<<<<<<<<<< * cdef object obj = pybuf.obj * */ static PyObject *__pyx_f_8pybuffer_getformat(Py_buffer *__pyx_v_pybuf) { PyObject *__pyx_v_obj = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; int __pyx_t_7; __Pyx_RefNannySetupContext("getformat", 0); /* "pybuffer.pyx":40 * * cdef object getformat(Py_buffer* pybuf): * cdef object obj = pybuf.obj # <<<<<<<<<<<<<< * * # numpy.ndarray */ __pyx_t_1 = ((PyObject *)__pyx_v_pybuf->obj); __Pyx_INCREF(__pyx_t_1); __pyx_v_obj = __pyx_t_1; __pyx_t_1 = 0; /* "pybuffer.pyx":43 * * # numpy.ndarray * try: return obj.dtype.char # <<<<<<<<<<<<<< * except (AttributeError, TypeError): pass * */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4); __Pyx_XGOTREF(__pyx_t_2); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_4); /*try:*/ { __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_obj, __pyx_n_s_dtype); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 43, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_char); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 43, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L7_try_return; } __pyx_L3_error:; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "pybuffer.pyx":44 * # numpy.ndarray * try: return obj.dtype.char * except (AttributeError, TypeError): pass # <<<<<<<<<<<<<< * * # array.array */ __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_AttributeError) || __Pyx_PyErr_ExceptionMatches(__pyx_builtin_TypeError); if (__pyx_t_6) { __Pyx_ErrRestore(0,0,0); goto __pyx_L4_exception_handled; } goto __pyx_L5_except_error; __pyx_L5_except_error:; /* "pybuffer.pyx":43 * * # numpy.ndarray * try: return obj.dtype.char # <<<<<<<<<<<<<< * except (AttributeError, TypeError): pass * */ __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); goto __pyx_L1_error; __pyx_L7_try_return:; __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); goto __pyx_L0; __pyx_L4_exception_handled:; __Pyx_XGIVEREF(__pyx_t_2); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4); } /* "pybuffer.pyx":47 * * # array.array * try: return obj.typecode # <<<<<<<<<<<<<< * except (AttributeError, TypeError): pass * */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_4, &__pyx_t_3, &__pyx_t_2); __Pyx_XGOTREF(__pyx_t_4); __Pyx_XGOTREF(__pyx_t_3); __Pyx_XGOTREF(__pyx_t_2); /*try:*/ { __Pyx_XDECREF(__pyx_r); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_obj, __pyx_n_s_typecode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 47, __pyx_L9_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L13_try_return; } __pyx_L9_error:; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "pybuffer.pyx":48 * # array.array * try: return obj.typecode * except (AttributeError, TypeError): pass # <<<<<<<<<<<<<< * * if pybuf.format is NULL: return "B" */ __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_AttributeError) || __Pyx_PyErr_ExceptionMatches(__pyx_builtin_TypeError); if (__pyx_t_6) { __Pyx_ErrRestore(0,0,0); goto __pyx_L10_exception_handled; } goto __pyx_L11_except_error; __pyx_L11_except_error:; /* "pybuffer.pyx":47 * * # array.array * try: return obj.typecode # <<<<<<<<<<<<<< * except (AttributeError, TypeError): pass * */ __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_3, __pyx_t_2); goto __pyx_L1_error; __pyx_L13_try_return:; __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_3, __pyx_t_2); goto __pyx_L0; __pyx_L10_exception_handled:; __Pyx_XGIVEREF(__pyx_t_4); __Pyx_XGIVEREF(__pyx_t_3); __Pyx_XGIVEREF(__pyx_t_2); __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_3, __pyx_t_2); } /* "pybuffer.pyx":50 * except (AttributeError, TypeError): pass * * if pybuf.format is NULL: return "B" # <<<<<<<<<<<<<< * return PyUnicodeString_FromString(pybuf.format) * */ __pyx_t_7 = ((__pyx_v_pybuf->format == NULL) != 0); if (__pyx_t_7) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_n_s_B); __pyx_r = __pyx_n_s_B; goto __pyx_L0; } /* "pybuffer.pyx":51 * * if pybuf.format is NULL: return "B" * return PyUnicodeString_FromString(pybuf.format) # <<<<<<<<<<<<<< * * cdef int bufflags = PyBUF_ANY_CONTIGUOUS | PyBUF_WRITABLE | PyBUF_FORMAT */ __Pyx_XDECREF(__pyx_r); __pyx_t_5 = PyUnicodeString_FromString(__pyx_v_pybuf->format); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 51, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; /* "pybuffer.pyx":39 * } * * cdef object getformat(Py_buffer* pybuf): # <<<<<<<<<<<<<< * cdef object obj = pybuf.obj * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("pybuffer.getformat", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_obj); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pybuffer.pyx":56 * * cdef class Buffer(object): * def __cinit__(self, object data): # <<<<<<<<<<<<<< * if not PyObject_CheckBuffer(data): * raise TypeError("object does not present buffer interface") */ /* Python wrapper */ static int __pyx_pw_8pybuffer_6Buffer_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_8pybuffer_6Buffer_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_data = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,0}; PyObject* values[1] = {0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 56, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); } __pyx_v_data = values[0]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 56, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pybuffer.Buffer.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_8pybuffer_6Buffer___cinit__(((struct __pyx_obj_8pybuffer_Buffer *)__pyx_v_self), __pyx_v_data); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_8pybuffer_6Buffer___cinit__(struct __pyx_obj_8pybuffer_Buffer *__pyx_v_self, PyObject *__pyx_v_data) { Py_buffer *__pyx_v_pybuf; int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("__cinit__", 0); /* "pybuffer.pyx":57 * cdef class Buffer(object): * def __cinit__(self, object data): * if not PyObject_CheckBuffer(data): # <<<<<<<<<<<<<< * raise TypeError("object does not present buffer interface") * */ __pyx_t_1 = ((!(PyObject_CheckBuffer(__pyx_v_data) != 0)) != 0); if (unlikely(__pyx_t_1)) { /* "pybuffer.pyx":58 * def __cinit__(self, object data): * if not PyObject_CheckBuffer(data): * raise TypeError("object does not present buffer interface") # <<<<<<<<<<<<<< * * cdef Py_buffer* pybuf = &self.pybuf */ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __PYX_ERR(0, 58, __pyx_L1_error) /* "pybuffer.pyx":57 * cdef class Buffer(object): * def __cinit__(self, object data): * if not PyObject_CheckBuffer(data): # <<<<<<<<<<<<<< * raise TypeError("object does not present buffer interface") * */ } /* "pybuffer.pyx":60 * raise TypeError("object does not present buffer interface") * * cdef Py_buffer* pybuf = &self.pybuf # <<<<<<<<<<<<<< * PyObject_GetBuffer(data, pybuf, bufflags) * self.dtype = TypeDict[getformat(pybuf)] */ __pyx_v_pybuf = (&__pyx_v_self->pybuf); /* "pybuffer.pyx":61 * * cdef Py_buffer* pybuf = &self.pybuf * PyObject_GetBuffer(data, pybuf, bufflags) # <<<<<<<<<<<<<< * self.dtype = TypeDict[getformat(pybuf)] * self.items = pybuf.len / pybuf.itemsize */ __pyx_t_3 = PyObject_GetBuffer(__pyx_v_data, __pyx_v_pybuf, __pyx_v_8pybuffer_bufflags); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 61, __pyx_L1_error) /* "pybuffer.pyx":62 * cdef Py_buffer* pybuf = &self.pybuf * PyObject_GetBuffer(data, pybuf, bufflags) * self.dtype = TypeDict[getformat(pybuf)] # <<<<<<<<<<<<<< * self.items = pybuf.len / pybuf.itemsize * */ if (unlikely(__pyx_v_8pybuffer_TypeDict == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 62, __pyx_L1_error) } __pyx_t_2 = __pyx_f_8pybuffer_getformat(__pyx_v_pybuf); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4 = __Pyx_PyDict_GetItem(__pyx_v_8pybuffer_TypeDict, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_6mpi4py_3MPI_Datatype))))) __PYX_ERR(0, 62, __pyx_L1_error) __Pyx_GIVEREF(__pyx_t_4); __Pyx_GOTREF(__pyx_v_self->dtype); __Pyx_DECREF(((PyObject *)__pyx_v_self->dtype)); __pyx_v_self->dtype = ((struct PyMPIDatatypeObject *)__pyx_t_4); __pyx_t_4 = 0; /* "pybuffer.pyx":63 * PyObject_GetBuffer(data, pybuf, bufflags) * self.dtype = TypeDict[getformat(pybuf)] * self.items = pybuf.len / pybuf.itemsize # <<<<<<<<<<<<<< * * def __dealloc__(self): */ if (unlikely(__pyx_v_pybuf->itemsize == 0)) { PyErr_SetString(PyExc_ZeroDivisionError, "integer division or modulo by zero"); __PYX_ERR(0, 63, __pyx_L1_error) } else if (sizeof(Py_ssize_t) == sizeof(long) && (!(((Py_ssize_t)-1) > 0)) && unlikely(__pyx_v_pybuf->itemsize == (Py_ssize_t)-1) && unlikely(UNARY_NEG_WOULD_OVERFLOW(__pyx_v_pybuf->len))) { PyErr_SetString(PyExc_OverflowError, "value too large to perform division"); __PYX_ERR(0, 63, __pyx_L1_error) } __pyx_v_self->items = __Pyx_div_Py_ssize_t(__pyx_v_pybuf->len, __pyx_v_pybuf->itemsize); /* "pybuffer.pyx":56 * * cdef class Buffer(object): * def __cinit__(self, object data): # <<<<<<<<<<<<<< * if not PyObject_CheckBuffer(data): * raise TypeError("object does not present buffer interface") */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("pybuffer.Buffer.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pybuffer.pyx":65 * self.items = pybuf.len / pybuf.itemsize * * def __dealloc__(self): # <<<<<<<<<<<<<< * PyBuffer_Release(&self.pybuf) */ /* Python wrapper */ static void __pyx_pw_8pybuffer_6Buffer_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_8pybuffer_6Buffer_3__dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); __pyx_pf_8pybuffer_6Buffer_2__dealloc__(((struct __pyx_obj_8pybuffer_Buffer *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_8pybuffer_6Buffer_2__dealloc__(struct __pyx_obj_8pybuffer_Buffer *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__", 0); /* "pybuffer.pyx":66 * * def __dealloc__(self): * PyBuffer_Release(&self.pybuf) # <<<<<<<<<<<<<< */ PyBuffer_Release((&__pyx_v_self->pybuf)); /* "pybuffer.pyx":65 * self.items = pybuf.len / pybuf.itemsize * * def __dealloc__(self): # <<<<<<<<<<<<<< * PyBuffer_Release(&self.pybuf) */ /* function exit code */ __Pyx_RefNannyFinishContext(); } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_8pybuffer_6Buffer_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_8pybuffer_6Buffer_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_8pybuffer_6Buffer_4__reduce_cython__(((struct __pyx_obj_8pybuffer_Buffer *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_8pybuffer_6Buffer_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_8pybuffer_Buffer *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pybuffer.Buffer.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_8pybuffer_6Buffer_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw_8pybuffer_6Buffer_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_8pybuffer_6Buffer_6__setstate_cython__(((struct __pyx_obj_8pybuffer_Buffer *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_8pybuffer_6Buffer_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_8pybuffer_Buffer *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pybuffer.Buffer.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_tp_new_8pybuffer_Buffer(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_8pybuffer_Buffer *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_8pybuffer_Buffer *)o); p->dtype = ((struct PyMPIDatatypeObject *)Py_None); Py_INCREF(Py_None); p->pybuf.obj = NULL; if (unlikely(__pyx_pw_8pybuffer_6Buffer_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_8pybuffer_Buffer(PyObject *o) { struct __pyx_obj_8pybuffer_Buffer *p = (struct __pyx_obj_8pybuffer_Buffer *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); ++Py_REFCNT(o); __pyx_pw_8pybuffer_6Buffer_3__dealloc__(o); --Py_REFCNT(o); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->dtype); (*Py_TYPE(o)->tp_free)(o); } static int __pyx_tp_traverse_8pybuffer_Buffer(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_8pybuffer_Buffer *p = (struct __pyx_obj_8pybuffer_Buffer *)o; if (p->dtype) { e = (*v)(((PyObject *)p->dtype), a); if (e) return e; } if (p->pybuf.obj) { e = (*v)(p->pybuf.obj, a); if (e) return e; } return 0; } static int __pyx_tp_clear_8pybuffer_Buffer(PyObject *o) { PyObject* tmp; struct __pyx_obj_8pybuffer_Buffer *p = (struct __pyx_obj_8pybuffer_Buffer *)o; tmp = ((PyObject*)p->dtype); p->dtype = ((struct PyMPIDatatypeObject *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); Py_CLEAR(p->pybuf.obj); return 0; } static PyMethodDef __pyx_methods_8pybuffer_Buffer[] = { {"__reduce_cython__", (PyCFunction)__pyx_pw_8pybuffer_6Buffer_5__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_8pybuffer_6Buffer_7__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_8pybuffer_Buffer = { PyVarObject_HEAD_INIT(0, 0) "pybuffer.Buffer", /*tp_name*/ sizeof(struct __pyx_obj_8pybuffer_Buffer), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_8pybuffer_Buffer, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_8pybuffer_Buffer, /*tp_traverse*/ __pyx_tp_clear_8pybuffer_Buffer, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_8pybuffer_Buffer, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_8pybuffer_Buffer, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif }; static PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; #if PY_MAJOR_VERSION >= 3 #if CYTHON_PEP489_MULTI_PHASE_INIT static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/ static int __pyx_pymod_exec_pybuffer(PyObject* module); /*proto*/ static PyModuleDef_Slot __pyx_moduledef_slots[] = { {Py_mod_create, (void*)__pyx_pymod_create}, {Py_mod_exec, (void*)__pyx_pymod_exec_pybuffer}, {0, NULL} }; #endif static struct PyModuleDef __pyx_moduledef = { PyModuleDef_HEAD_INIT, "pybuffer", 0, /* m_doc */ #if CYTHON_PEP489_MULTI_PHASE_INIT 0, /* m_size */ #else -1, /* m_size */ #endif __pyx_methods /* m_methods */, #if CYTHON_PEP489_MULTI_PHASE_INIT __pyx_moduledef_slots, /* m_slots */ #else NULL, /* m_reload */ #endif NULL, /* m_traverse */ NULL, /* m_clear */ NULL /* m_free */ }; #endif #ifndef CYTHON_SMALL_CODE #if defined(__clang__) #define CYTHON_SMALL_CODE #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) #define CYTHON_SMALL_CODE __attribute__((cold)) #else #define CYTHON_SMALL_CODE #endif #endif static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_AINT, __pyx_k_AINT, sizeof(__pyx_k_AINT), 0, 0, 1, 1}, {&__pyx_n_s_AttributeError, __pyx_k_AttributeError, sizeof(__pyx_k_AttributeError), 0, 0, 1, 1}, {&__pyx_n_s_B, __pyx_k_B, sizeof(__pyx_k_B), 0, 0, 1, 1}, {&__pyx_n_s_Buffer, __pyx_k_Buffer, sizeof(__pyx_k_Buffer), 0, 0, 1, 1}, {&__pyx_n_s_CHAR, __pyx_k_CHAR, sizeof(__pyx_k_CHAR), 0, 0, 1, 1}, {&__pyx_n_s_C_BOOL, __pyx_k_C_BOOL, sizeof(__pyx_k_C_BOOL), 0, 0, 1, 1}, {&__pyx_n_s_C_DOUBLE_COMPLEX, __pyx_k_C_DOUBLE_COMPLEX, sizeof(__pyx_k_C_DOUBLE_COMPLEX), 0, 0, 1, 1}, {&__pyx_n_s_C_FLOAT_COMPLEX, __pyx_k_C_FLOAT_COMPLEX, sizeof(__pyx_k_C_FLOAT_COMPLEX), 0, 0, 1, 1}, {&__pyx_n_s_C_LONG_DOUBLE_COMPLEX, __pyx_k_C_LONG_DOUBLE_COMPLEX, sizeof(__pyx_k_C_LONG_DOUBLE_COMPLEX), 0, 0, 1, 1}, {&__pyx_n_s_D, __pyx_k_D, sizeof(__pyx_k_D), 0, 0, 1, 1}, {&__pyx_n_s_DOUBLE, __pyx_k_DOUBLE, sizeof(__pyx_k_DOUBLE), 0, 0, 1, 1}, {&__pyx_n_s_F, __pyx_k_F, sizeof(__pyx_k_F), 0, 0, 1, 1}, {&__pyx_n_s_FLOAT, __pyx_k_FLOAT, sizeof(__pyx_k_FLOAT), 0, 0, 1, 1}, {&__pyx_n_s_G, __pyx_k_G, sizeof(__pyx_k_G), 0, 0, 1, 1}, {&__pyx_n_s_H, __pyx_k_H, sizeof(__pyx_k_H), 0, 0, 1, 1}, {&__pyx_n_s_I, __pyx_k_I, sizeof(__pyx_k_I), 0, 0, 1, 1}, {&__pyx_n_s_INT, __pyx_k_INT, sizeof(__pyx_k_INT), 0, 0, 1, 1}, {&__pyx_n_s_L, __pyx_k_L, sizeof(__pyx_k_L), 0, 0, 1, 1}, {&__pyx_n_s_LONG, __pyx_k_LONG, sizeof(__pyx_k_LONG), 0, 0, 1, 1}, {&__pyx_n_s_LONG_DOUBLE, __pyx_k_LONG_DOUBLE, sizeof(__pyx_k_LONG_DOUBLE), 0, 0, 1, 1}, {&__pyx_n_s_LONG_LONG, __pyx_k_LONG_LONG, sizeof(__pyx_k_LONG_LONG), 0, 0, 1, 1}, {&__pyx_n_s_MPI, __pyx_k_MPI, sizeof(__pyx_k_MPI), 0, 0, 1, 1}, {&__pyx_n_s_Q, __pyx_k_Q, sizeof(__pyx_k_Q), 0, 0, 1, 1}, {&__pyx_n_s_SHORT, __pyx_k_SHORT, sizeof(__pyx_k_SHORT), 0, 0, 1, 1}, {&__pyx_n_s_SIGNED_CHAR, __pyx_k_SIGNED_CHAR, sizeof(__pyx_k_SIGNED_CHAR), 0, 0, 1, 1}, {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1}, {&__pyx_n_s_UNSIGNED, __pyx_k_UNSIGNED, sizeof(__pyx_k_UNSIGNED), 0, 0, 1, 1}, {&__pyx_n_s_UNSIGNED_CHAR, __pyx_k_UNSIGNED_CHAR, sizeof(__pyx_k_UNSIGNED_CHAR), 0, 0, 1, 1}, {&__pyx_n_s_UNSIGNED_LONG, __pyx_k_UNSIGNED_LONG, sizeof(__pyx_k_UNSIGNED_LONG), 0, 0, 1, 1}, {&__pyx_n_s_UNSIGNED_LONG_LONG, __pyx_k_UNSIGNED_LONG_LONG, sizeof(__pyx_k_UNSIGNED_LONG_LONG), 0, 0, 1, 1}, {&__pyx_n_s_UNSIGNED_SHORT, __pyx_k_UNSIGNED_SHORT, sizeof(__pyx_k_UNSIGNED_SHORT), 0, 0, 1, 1}, {&__pyx_n_s_Zd, __pyx_k_Zd, sizeof(__pyx_k_Zd), 0, 0, 1, 1}, {&__pyx_n_s_Zf, __pyx_k_Zf, sizeof(__pyx_k_Zf), 0, 0, 1, 1}, {&__pyx_n_s_Zg, __pyx_k_Zg, sizeof(__pyx_k_Zg), 0, 0, 1, 1}, {&__pyx_kp_s__4, __pyx_k__4, sizeof(__pyx_k__4), 0, 0, 1, 0}, {&__pyx_n_s_b, __pyx_k_b, sizeof(__pyx_k_b), 0, 0, 1, 1}, {&__pyx_n_s_c, __pyx_k_c, sizeof(__pyx_k_c), 0, 0, 1, 1}, {&__pyx_n_s_char, __pyx_k_char, sizeof(__pyx_k_char), 0, 0, 1, 1}, {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1}, {&__pyx_n_s_d, __pyx_k_d, sizeof(__pyx_k_d), 0, 0, 1, 1}, {&__pyx_n_s_data, __pyx_k_data, sizeof(__pyx_k_data), 0, 0, 1, 1}, {&__pyx_n_s_dtype, __pyx_k_dtype, sizeof(__pyx_k_dtype), 0, 0, 1, 1}, {&__pyx_n_s_f, __pyx_k_f, sizeof(__pyx_k_f), 0, 0, 1, 1}, {&__pyx_n_s_g, __pyx_k_g, sizeof(__pyx_k_g), 0, 0, 1, 1}, {&__pyx_n_s_getstate, __pyx_k_getstate, sizeof(__pyx_k_getstate), 0, 0, 1, 1}, {&__pyx_n_s_h, __pyx_k_h, sizeof(__pyx_k_h), 0, 0, 1, 1}, {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, {&__pyx_n_s_l, __pyx_k_l, sizeof(__pyx_k_l), 0, 0, 1, 1}, {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, {&__pyx_n_s_mpi4py, __pyx_k_mpi4py, sizeof(__pyx_k_mpi4py), 0, 0, 1, 1}, {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1}, {&__pyx_kp_s_no_default___reduce___due_to_non, __pyx_k_no_default___reduce___due_to_non, sizeof(__pyx_k_no_default___reduce___due_to_non), 0, 0, 1, 0}, {&__pyx_kp_s_object_does_not_present_buffer_i, __pyx_k_object_does_not_present_buffer_i, sizeof(__pyx_k_object_does_not_present_buffer_i), 0, 0, 1, 0}, {&__pyx_n_s_p, __pyx_k_p, sizeof(__pyx_k_p), 0, 0, 1, 1}, {&__pyx_n_s_q, __pyx_k_q, sizeof(__pyx_k_q), 0, 0, 1, 1}, {&__pyx_n_s_reduce, __pyx_k_reduce, sizeof(__pyx_k_reduce), 0, 0, 1, 1}, {&__pyx_n_s_reduce_cython, __pyx_k_reduce_cython, sizeof(__pyx_k_reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_reduce_ex, __pyx_k_reduce_ex, sizeof(__pyx_k_reduce_ex), 0, 0, 1, 1}, {&__pyx_n_s_setstate, __pyx_k_setstate, sizeof(__pyx_k_setstate), 0, 0, 1, 1}, {&__pyx_n_s_setstate_cython, __pyx_k_setstate_cython, sizeof(__pyx_k_setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, {&__pyx_n_s_typecode, __pyx_k_typecode, sizeof(__pyx_k_typecode), 0, 0, 1, 1}, {0, 0, 0, 0, 0, 0, 0} }; static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_AttributeError = __Pyx_GetBuiltinName(__pyx_n_s_AttributeError); if (!__pyx_builtin_AttributeError) __PYX_ERR(0, 44, __pyx_L1_error) __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(0, 44, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); /* "pybuffer.pyx":58 * def __cinit__(self, object data): * if not PyObject_CheckBuffer(data): * raise TypeError("object does not present buffer interface") # <<<<<<<<<<<<<< * * cdef Py_buffer* pybuf = &self.pybuf */ __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_object_does_not_present_buffer_i); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple_); __Pyx_GIVEREF(__pyx_tuple_); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__2); __Pyx_GIVEREF(__pyx_tuple__2); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__3); __Pyx_GIVEREF(__pyx_tuple__3); __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) { if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error); return 0; __pyx_L1_error:; return -1; } static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/ static int __Pyx_modinit_global_init_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0); /*--- Global init code ---*/ __pyx_v_8pybuffer_TypeDict = ((PyObject*)Py_None); Py_INCREF(Py_None); __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_variable_export_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0); /*--- Variable export code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_function_export_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0); /*--- Function export code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_type_init_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0); /*--- Type init code ---*/ if (PyType_Ready(&__pyx_type_8pybuffer_Buffer) < 0) __PYX_ERR(0, 55, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_8pybuffer_Buffer.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_8pybuffer_Buffer.tp_dictoffset && __pyx_type_8pybuffer_Buffer.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_8pybuffer_Buffer.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Buffer, (PyObject *)&__pyx_type_8pybuffer_Buffer) < 0) __PYX_ERR(0, 55, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_8pybuffer_Buffer) < 0) __PYX_ERR(0, 55, __pyx_L1_error) __pyx_ptype_8pybuffer_Buffer = &__pyx_type_8pybuffer_Buffer; __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_modinit_type_import_code(void) { __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0); /*--- Type import code ---*/ __pyx_t_1 = PyImport_ImportModule("mpi4py.MPI"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_6mpi4py_3MPI_Status = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Status", sizeof(struct PyMPIStatusObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Status) __PYX_ERR(2, 28, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Datatype = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Datatype", sizeof(struct PyMPIDatatypeObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Datatype) __PYX_ERR(2, 35, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Request = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Request", sizeof(struct PyMPIRequestObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Request) __PYX_ERR(2, 42, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Prequest = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Prequest", sizeof(struct PyMPIPrequestObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Prequest) __PYX_ERR(2, 50, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Grequest = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Grequest", sizeof(struct PyMPIGrequestObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Grequest) __PYX_ERR(2, 56, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Message = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Message", sizeof(struct PyMPIMessageObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Message) __PYX_ERR(2, 62, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Op = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Op", sizeof(struct PyMPIOpObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Op) __PYX_ERR(2, 70, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Group = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Group", sizeof(struct PyMPIGroupObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Group) __PYX_ERR(2, 79, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Info = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Info", sizeof(struct PyMPIInfoObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Info) __PYX_ERR(2, 86, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Errhandler = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Errhandler", sizeof(struct PyMPIErrhandlerObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Errhandler) __PYX_ERR(2, 93, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Comm = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Comm", sizeof(struct PyMPICommObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Comm) __PYX_ERR(2, 100, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Intracomm = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Intracomm", sizeof(struct PyMPIIntracommObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Intracomm) __PYX_ERR(2, 107, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Topocomm = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Topocomm", sizeof(struct PyMPITopocommObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Topocomm) __PYX_ERR(2, 113, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Cartcomm = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Cartcomm", sizeof(struct PyMPICartcommObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Cartcomm) __PYX_ERR(2, 119, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Graphcomm = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Graphcomm", sizeof(struct PyMPIGraphcommObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Graphcomm) __PYX_ERR(2, 125, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Distgraphcomm = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Distgraphcomm", sizeof(struct PyMPIDistgraphcommObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Distgraphcomm) __PYX_ERR(2, 131, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Intercomm = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Intercomm", sizeof(struct PyMPIIntercommObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Intercomm) __PYX_ERR(2, 137, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Win = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Win", sizeof(struct PyMPIWinObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Win) __PYX_ERR(2, 143, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_File = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "File", sizeof(struct PyMPIFileObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_File) __PYX_ERR(2, 151, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type", #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000 sizeof(PyTypeObject), #else sizeof(PyHeapTypeObject), #endif __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(3, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_modinit_variable_import_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0); /*--- Variable import code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_function_import_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0); /*--- Function import code ---*/ __Pyx_RefNannyFinishContext(); return 0; } #if PY_MAJOR_VERSION < 3 #ifdef CYTHON_NO_PYINIT_EXPORT #define __Pyx_PyMODINIT_FUNC void #else #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC #endif #else #ifdef CYTHON_NO_PYINIT_EXPORT #define __Pyx_PyMODINIT_FUNC PyObject * #else #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC #endif #endif #if PY_MAJOR_VERSION < 3 __Pyx_PyMODINIT_FUNC initpybuffer(void) CYTHON_SMALL_CODE; /*proto*/ __Pyx_PyMODINIT_FUNC initpybuffer(void) #else __Pyx_PyMODINIT_FUNC PyInit_pybuffer(void) CYTHON_SMALL_CODE; /*proto*/ __Pyx_PyMODINIT_FUNC PyInit_pybuffer(void) #if CYTHON_PEP489_MULTI_PHASE_INIT { return PyModuleDef_Init(&__pyx_moduledef); } static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) { #if PY_VERSION_HEX >= 0x030700A1 static PY_INT64_T main_interpreter_id = -1; PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp); if (main_interpreter_id == -1) { main_interpreter_id = current_id; return (unlikely(current_id == -1)) ? -1 : 0; } else if (unlikely(main_interpreter_id != current_id)) #else static PyInterpreterState *main_interpreter = NULL; PyInterpreterState *current_interpreter = PyThreadState_Get()->interp; if (!main_interpreter) { main_interpreter = current_interpreter; } else if (unlikely(main_interpreter != current_interpreter)) #endif { PyErr_SetString( PyExc_ImportError, "Interpreter change detected - this module can only be loaded into one interpreter per process."); return -1; } return 0; } static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none) { PyObject *value = PyObject_GetAttrString(spec, from_name); int result = 0; if (likely(value)) { if (allow_none || value != Py_None) { result = PyDict_SetItemString(moddict, to_name, value); } Py_DECREF(value); } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Clear(); } else { result = -1; } return result; } static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) { PyObject *module = NULL, *moddict, *modname; if (__Pyx_check_single_interpreter()) return NULL; if (__pyx_m) return __Pyx_NewRef(__pyx_m); modname = PyObject_GetAttrString(spec, "name"); if (unlikely(!modname)) goto bad; module = PyModule_NewObject(modname); Py_DECREF(modname); if (unlikely(!module)) goto bad; moddict = PyModule_GetDict(module); if (unlikely(!moddict)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad; return module; bad: Py_XDECREF(module); return NULL; } static CYTHON_SMALL_CODE int __pyx_pymod_exec_pybuffer(PyObject *__pyx_pyinit_module) #endif #endif { PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; __Pyx_RefNannyDeclarations #if CYTHON_PEP489_MULTI_PHASE_INIT if (__pyx_m) { if (__pyx_m == __pyx_pyinit_module) return 0; PyErr_SetString(PyExc_RuntimeError, "Module 'pybuffer' has already been imported. Re-initialisation is not supported."); return -1; } #elif PY_MAJOR_VERSION >= 3 if (__pyx_m) return __Pyx_NewRef(__pyx_m); #endif #if CYTHON_REFNANNY __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); if (!__Pyx_RefNanny) { PyErr_Clear(); __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); if (!__Pyx_RefNanny) Py_FatalError("failed to import 'refnanny' module"); } #endif __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit_pybuffer(void)", 0); if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pxy_PyFrame_Initialize_Offsets __Pxy_PyFrame_Initialize_Offsets(); #endif __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pyx_CyFunction_USED if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_FusedFunction_USED if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Coroutine_USED if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Generator_USED if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_AsyncGen_USED if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_StopAsyncIteration_USED if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /*--- Library function declarations ---*/ /*--- Threads initialization code ---*/ #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS #ifdef WITH_THREAD /* Python build with threading support? */ PyEval_InitThreads(); #endif #endif /*--- Module creation code ---*/ #if CYTHON_PEP489_MULTI_PHASE_INIT __pyx_m = __pyx_pyinit_module; Py_INCREF(__pyx_m); #else #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("pybuffer", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); #else __pyx_m = PyModule_Create(&__pyx_moduledef); #endif if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error) #endif __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_d); __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_b); __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_cython_runtime); if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error); /*--- Initialize various global constants etc. ---*/ if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif if (__pyx_module_is_main_pybuffer) { if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error) } #if PY_MAJOR_VERSION >= 3 { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error) if (!PyDict_GetItemString(modules, "pybuffer")) { if (unlikely(PyDict_SetItemString(modules, "pybuffer", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error) } } #endif /*--- Builtin init code ---*/ if (__Pyx_InitCachedBuiltins() < 0) goto __pyx_L1_error; /*--- Constants init code ---*/ if (__Pyx_InitCachedConstants() < 0) goto __pyx_L1_error; /*--- Global type/function init code ---*/ (void)__Pyx_modinit_global_init_code(); (void)__Pyx_modinit_variable_export_code(); (void)__Pyx_modinit_function_export_code(); if (unlikely(__Pyx_modinit_type_init_code() != 0)) goto __pyx_L1_error; if (unlikely(__Pyx_modinit_type_import_code() != 0)) goto __pyx_L1_error; (void)__Pyx_modinit_variable_import_code(); (void)__Pyx_modinit_function_import_code(); /*--- Execution code ---*/ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /* "pybuffer.pyx":10 * from libc.stdlib cimport malloc, free * * from mpi4py import MPI # <<<<<<<<<<<<<< * * ########################################################### */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_MPI); __Pyx_GIVEREF(__pyx_n_s_MPI); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_MPI); __pyx_t_2 = __Pyx_Import(__pyx_n_s_mpi4py, __pyx_t_1, -1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_MPI); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MPI, __pyx_t_1) < 0) __PYX_ERR(0, 10, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "pybuffer.pyx":15 * * cdef dict TypeDict = { * "?" : MPI.C_BOOL, # <<<<<<<<<<<<<< * "c" : MPI.CHAR, * "b" : MPI.SIGNED_CHAR, */ __pyx_t_2 = __Pyx_PyDict_NewPresized(22); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MPI); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_C_BOOL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_kp_s__4, __pyx_t_3) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "pybuffer.pyx":16 * cdef dict TypeDict = { * "?" : MPI.C_BOOL, * "c" : MPI.CHAR, # <<<<<<<<<<<<<< * "b" : MPI.SIGNED_CHAR, * "h" : MPI.SHORT, */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_MPI); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_CHAR); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_c, __pyx_t_1) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pybuffer.pyx":17 * "?" : MPI.C_BOOL, * "c" : MPI.CHAR, * "b" : MPI.SIGNED_CHAR, # <<<<<<<<<<<<<< * "h" : MPI.SHORT, * "i" : MPI.INT, */ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MPI); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_SIGNED_CHAR); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_b, __pyx_t_3) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "pybuffer.pyx":18 * "c" : MPI.CHAR, * "b" : MPI.SIGNED_CHAR, * "h" : MPI.SHORT, # <<<<<<<<<<<<<< * "i" : MPI.INT, * "l" : MPI.LONG, */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_MPI); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_SHORT); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_h, __pyx_t_1) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pybuffer.pyx":19 * "b" : MPI.SIGNED_CHAR, * "h" : MPI.SHORT, * "i" : MPI.INT, # <<<<<<<<<<<<<< * "l" : MPI.LONG, * "q" : MPI.LONG_LONG, */ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MPI); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_INT); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_i, __pyx_t_3) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "pybuffer.pyx":20 * "h" : MPI.SHORT, * "i" : MPI.INT, * "l" : MPI.LONG, # <<<<<<<<<<<<<< * "q" : MPI.LONG_LONG, * "p" : MPI.AINT, */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_MPI); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_LONG); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_l, __pyx_t_1) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pybuffer.pyx":21 * "i" : MPI.INT, * "l" : MPI.LONG, * "q" : MPI.LONG_LONG, # <<<<<<<<<<<<<< * "p" : MPI.AINT, * "B" : MPI.UNSIGNED_CHAR, */ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MPI); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_LONG_LONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_q, __pyx_t_3) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "pybuffer.pyx":22 * "l" : MPI.LONG, * "q" : MPI.LONG_LONG, * "p" : MPI.AINT, # <<<<<<<<<<<<<< * "B" : MPI.UNSIGNED_CHAR, * "H" : MPI.UNSIGNED_SHORT, */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_MPI); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_AINT); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_p, __pyx_t_1) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pybuffer.pyx":23 * "q" : MPI.LONG_LONG, * "p" : MPI.AINT, * "B" : MPI.UNSIGNED_CHAR, # <<<<<<<<<<<<<< * "H" : MPI.UNSIGNED_SHORT, * "I" : MPI.UNSIGNED, */ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MPI); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_UNSIGNED_CHAR); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_B, __pyx_t_3) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "pybuffer.pyx":24 * "p" : MPI.AINT, * "B" : MPI.UNSIGNED_CHAR, * "H" : MPI.UNSIGNED_SHORT, # <<<<<<<<<<<<<< * "I" : MPI.UNSIGNED, * "L" : MPI.UNSIGNED_LONG, */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_MPI); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_UNSIGNED_SHORT); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_H, __pyx_t_1) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pybuffer.pyx":25 * "B" : MPI.UNSIGNED_CHAR, * "H" : MPI.UNSIGNED_SHORT, * "I" : MPI.UNSIGNED, # <<<<<<<<<<<<<< * "L" : MPI.UNSIGNED_LONG, * "Q" : MPI.UNSIGNED_LONG_LONG, */ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MPI); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_UNSIGNED); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_I, __pyx_t_3) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "pybuffer.pyx":26 * "H" : MPI.UNSIGNED_SHORT, * "I" : MPI.UNSIGNED, * "L" : MPI.UNSIGNED_LONG, # <<<<<<<<<<<<<< * "Q" : MPI.UNSIGNED_LONG_LONG, * "f" : MPI.FLOAT, */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_MPI); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_UNSIGNED_LONG); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_L, __pyx_t_1) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pybuffer.pyx":27 * "I" : MPI.UNSIGNED, * "L" : MPI.UNSIGNED_LONG, * "Q" : MPI.UNSIGNED_LONG_LONG, # <<<<<<<<<<<<<< * "f" : MPI.FLOAT, * "d" : MPI.DOUBLE, */ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MPI); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_UNSIGNED_LONG_LONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_Q, __pyx_t_3) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "pybuffer.pyx":28 * "L" : MPI.UNSIGNED_LONG, * "Q" : MPI.UNSIGNED_LONG_LONG, * "f" : MPI.FLOAT, # <<<<<<<<<<<<<< * "d" : MPI.DOUBLE, * "g" : MPI.LONG_DOUBLE, */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_MPI); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_FLOAT); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_f, __pyx_t_1) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pybuffer.pyx":29 * "Q" : MPI.UNSIGNED_LONG_LONG, * "f" : MPI.FLOAT, * "d" : MPI.DOUBLE, # <<<<<<<<<<<<<< * "g" : MPI.LONG_DOUBLE, * "Zf": MPI.C_FLOAT_COMPLEX, */ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MPI); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_DOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_d, __pyx_t_3) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "pybuffer.pyx":30 * "f" : MPI.FLOAT, * "d" : MPI.DOUBLE, * "g" : MPI.LONG_DOUBLE, # <<<<<<<<<<<<<< * "Zf": MPI.C_FLOAT_COMPLEX, * "Zd": MPI.C_DOUBLE_COMPLEX, */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_MPI); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_LONG_DOUBLE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_g, __pyx_t_1) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pybuffer.pyx":31 * "d" : MPI.DOUBLE, * "g" : MPI.LONG_DOUBLE, * "Zf": MPI.C_FLOAT_COMPLEX, # <<<<<<<<<<<<<< * "Zd": MPI.C_DOUBLE_COMPLEX, * "Zg": MPI.C_LONG_DOUBLE_COMPLEX, */ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MPI); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_C_FLOAT_COMPLEX); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_Zf, __pyx_t_3) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "pybuffer.pyx":32 * "g" : MPI.LONG_DOUBLE, * "Zf": MPI.C_FLOAT_COMPLEX, * "Zd": MPI.C_DOUBLE_COMPLEX, # <<<<<<<<<<<<<< * "Zg": MPI.C_LONG_DOUBLE_COMPLEX, * "F" : MPI.C_FLOAT_COMPLEX, */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_MPI); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_C_DOUBLE_COMPLEX); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_Zd, __pyx_t_1) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pybuffer.pyx":33 * "Zf": MPI.C_FLOAT_COMPLEX, * "Zd": MPI.C_DOUBLE_COMPLEX, * "Zg": MPI.C_LONG_DOUBLE_COMPLEX, # <<<<<<<<<<<<<< * "F" : MPI.C_FLOAT_COMPLEX, * "D" : MPI.C_DOUBLE_COMPLEX, */ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MPI); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_C_LONG_DOUBLE_COMPLEX); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_Zg, __pyx_t_3) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "pybuffer.pyx":34 * "Zd": MPI.C_DOUBLE_COMPLEX, * "Zg": MPI.C_LONG_DOUBLE_COMPLEX, * "F" : MPI.C_FLOAT_COMPLEX, # <<<<<<<<<<<<<< * "D" : MPI.C_DOUBLE_COMPLEX, * "G" : MPI.C_LONG_DOUBLE_COMPLEX, */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_MPI); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_C_FLOAT_COMPLEX); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_F, __pyx_t_1) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pybuffer.pyx":35 * "Zg": MPI.C_LONG_DOUBLE_COMPLEX, * "F" : MPI.C_FLOAT_COMPLEX, * "D" : MPI.C_DOUBLE_COMPLEX, # <<<<<<<<<<<<<< * "G" : MPI.C_LONG_DOUBLE_COMPLEX, * } */ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MPI); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_C_DOUBLE_COMPLEX); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_D, __pyx_t_3) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; /* "pybuffer.pyx":36 * "F" : MPI.C_FLOAT_COMPLEX, * "D" : MPI.C_DOUBLE_COMPLEX, * "G" : MPI.C_LONG_DOUBLE_COMPLEX, # <<<<<<<<<<<<<< * } * */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_MPI); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_C_LONG_DOUBLE_COMPLEX); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_G, __pyx_t_1) < 0) __PYX_ERR(0, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XGOTREF(__pyx_v_8pybuffer_TypeDict); __Pyx_DECREF_SET(__pyx_v_8pybuffer_TypeDict, ((PyObject*)__pyx_t_2)); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; /* "pybuffer.pyx":53 * return PyUnicodeString_FromString(pybuf.format) * * cdef int bufflags = PyBUF_ANY_CONTIGUOUS | PyBUF_WRITABLE | PyBUF_FORMAT # <<<<<<<<<<<<<< * * cdef class Buffer(object): */ __pyx_v_8pybuffer_bufflags = ((PyBUF_ANY_CONTIGUOUS | PyBUF_WRITABLE) | PyBUF_FORMAT); /* "pybuffer.pyx":1 * # # <<<<<<<<<<<<<< * # distutils: language = c++ * # */ __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /*--- Wrapped vars code ---*/ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); if (__pyx_m) { if (__pyx_d) { __Pyx_AddTraceback("init pybuffer", __pyx_clineno, __pyx_lineno, __pyx_filename); } Py_CLEAR(__pyx_m); } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_ImportError, "init pybuffer"); } __pyx_L0:; __Pyx_RefNannyFinishContext(); #if CYTHON_PEP489_MULTI_PHASE_INIT return (__pyx_m != NULL) ? 0 : -1; #elif PY_MAJOR_VERSION >= 3 return __pyx_m; #else return; #endif } /* --- Runtime support code --- */ /* Refnanny */ #if CYTHON_REFNANNY static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { PyObject *m = NULL, *p = NULL; void *r = NULL; m = PyImport_ImportModule(modname); if (!m) goto end; p = PyObject_GetAttrString(m, "RefNannyAPI"); if (!p) goto end; r = PyLong_AsVoidPtr(p); end: Py_XDECREF(p); Py_XDECREF(m); return (__Pyx_RefNannyAPIStruct *)r; } #endif /* PyObjectGetAttrStr */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro)) return tp->tp_getattro(obj, attr_name); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_getattr)) return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); #endif return PyObject_GetAttr(obj, attr_name); } #endif /* GetBuiltinName */ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name); if (unlikely(!result)) { PyErr_Format(PyExc_NameError, #if PY_MAJOR_VERSION >= 3 "name '%U' is not defined", name); #else "name '%.200s' is not defined", PyString_AS_STRING(name)); #endif } return result; } /* GetTopmostException */ #if CYTHON_USE_EXC_INFO_STACK static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate) { _PyErr_StackItem *exc_info = tstate->exc_info; while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) && exc_info->previous_item != NULL) { exc_info = exc_info->previous_item; } return exc_info; } #endif /* SaveResetException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { #if CYTHON_USE_EXC_INFO_STACK _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate); *type = exc_info->exc_type; *value = exc_info->exc_value; *tb = exc_info->exc_traceback; #else *type = tstate->exc_type; *value = tstate->exc_value; *tb = tstate->exc_traceback; #endif Py_XINCREF(*type); Py_XINCREF(*value); Py_XINCREF(*tb); } static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; #if CYTHON_USE_EXC_INFO_STACK _PyErr_StackItem *exc_info = tstate->exc_info; tmp_type = exc_info->exc_type; tmp_value = exc_info->exc_value; tmp_tb = exc_info->exc_traceback; exc_info->exc_type = type; exc_info->exc_value = value; exc_info->exc_traceback = tb; #else tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = type; tstate->exc_value = value; tstate->exc_traceback = tb; #endif Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } #endif /* PyErrExceptionMatches */ #if CYTHON_FAST_THREAD_STATE static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) { Py_ssize_t i, n; n = PyTuple_GET_SIZE(tuple); #if PY_MAJOR_VERSION >= 3 for (i=0; icurexc_type; if (exc_type == err) return 1; if (unlikely(!exc_type)) return 0; if (unlikely(PyTuple_Check(err))) return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err); return __Pyx_PyErr_GivenExceptionMatches(exc_type, err); } #endif /* PyErrFetchRestore */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->curexc_type; tmp_value = tstate->curexc_value; tmp_tb = tstate->curexc_traceback; tstate->curexc_type = type; tstate->curexc_value = value; tstate->curexc_traceback = tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { *type = tstate->curexc_type; *value = tstate->curexc_value; *tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; } #endif /* RaiseDoubleKeywords */ static void __Pyx_RaiseDoubleKeywordsError( const char* func_name, PyObject* kw_name) { PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION >= 3 "%s() got multiple values for keyword argument '%U'", func_name, kw_name); #else "%s() got multiple values for keyword argument '%s'", func_name, PyString_AsString(kw_name)); #endif } /* ParseKeywords */ static int __Pyx_ParseOptionalKeywords( PyObject *kwds, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name) { PyObject *key = 0, *value = 0; Py_ssize_t pos = 0; PyObject*** name; PyObject*** first_kw_arg = argnames + num_pos_args; while (PyDict_Next(kwds, &pos, &key, &value)) { name = first_kw_arg; while (*name && (**name != key)) name++; if (*name) { values[name-argnames] = value; continue; } name = first_kw_arg; #if PY_MAJOR_VERSION < 3 if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) { while (*name) { if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key)) && _PyString_Eq(**name, key)) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { if ((**argname == key) || ( (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key)) && _PyString_Eq(**argname, key))) { goto arg_passed_twice; } argname++; } } } else #endif if (likely(PyUnicode_Check(key))) { while (*name) { int cmp = (**name == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**name, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { int cmp = (**argname == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**argname, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) goto arg_passed_twice; argname++; } } } else goto invalid_keyword_type; if (kwds2) { if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad; } else { goto invalid_keyword; } } return 0; arg_passed_twice: __Pyx_RaiseDoubleKeywordsError(function_name, key); goto bad; invalid_keyword_type: PyErr_Format(PyExc_TypeError, "%.200s() keywords must be strings", function_name); goto bad; invalid_keyword: PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION < 3 "%.200s() got an unexpected keyword argument '%.200s'", function_name, PyString_AsString(key)); #else "%s() got an unexpected keyword argument '%U'", function_name, key); #endif bad: return -1; } /* RaiseArgTupleInvalid */ static void __Pyx_RaiseArgtupleInvalid( const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found) { Py_ssize_t num_expected; const char *more_or_less; if (num_found < num_min) { num_expected = num_min; more_or_less = "at least"; } else { num_expected = num_max; more_or_less = "at most"; } if (exact) { more_or_less = "exactly"; } PyErr_Format(PyExc_TypeError, "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)", func_name, more_or_less, num_expected, (num_expected == 1) ? "" : "s", num_found); } /* PyObjectCall */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { PyObject *result; ternaryfunc call = func->ob_type->tp_call; if (unlikely(!call)) return PyObject_Call(func, arg, kw); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = (*call)(func, arg, kw); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* RaiseException */ #if PY_MAJOR_VERSION < 3 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, CYTHON_UNUSED PyObject *cause) { __Pyx_PyThreadState_declare Py_XINCREF(type); if (!value || value == Py_None) value = NULL; else Py_INCREF(value); if (!tb || tb == Py_None) tb = NULL; else { Py_INCREF(tb); if (!PyTraceBack_Check(tb)) { PyErr_SetString(PyExc_TypeError, "raise: arg 3 must be a traceback or None"); goto raise_error; } } if (PyType_Check(type)) { #if CYTHON_COMPILING_IN_PYPY if (!value) { Py_INCREF(Py_None); value = Py_None; } #endif PyErr_NormalizeException(&type, &value, &tb); } else { if (value) { PyErr_SetString(PyExc_TypeError, "instance exception may not have a separate value"); goto raise_error; } value = type; type = (PyObject*) Py_TYPE(type); Py_INCREF(type); if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) { PyErr_SetString(PyExc_TypeError, "raise: exception class must be a subclass of BaseException"); goto raise_error; } } __Pyx_PyThreadState_assign __Pyx_ErrRestore(type, value, tb); return; raise_error: Py_XDECREF(value); Py_XDECREF(type); Py_XDECREF(tb); return; } #else static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) { PyObject* owned_instance = NULL; if (tb == Py_None) { tb = 0; } else if (tb && !PyTraceBack_Check(tb)) { PyErr_SetString(PyExc_TypeError, "raise: arg 3 must be a traceback or None"); goto bad; } if (value == Py_None) value = 0; if (PyExceptionInstance_Check(type)) { if (value) { PyErr_SetString(PyExc_TypeError, "instance exception may not have a separate value"); goto bad; } value = type; type = (PyObject*) Py_TYPE(value); } else if (PyExceptionClass_Check(type)) { PyObject *instance_class = NULL; if (value && PyExceptionInstance_Check(value)) { instance_class = (PyObject*) Py_TYPE(value); if (instance_class != type) { int is_subclass = PyObject_IsSubclass(instance_class, type); if (!is_subclass) { instance_class = NULL; } else if (unlikely(is_subclass == -1)) { goto bad; } else { type = instance_class; } } } if (!instance_class) { PyObject *args; if (!value) args = PyTuple_New(0); else if (PyTuple_Check(value)) { Py_INCREF(value); args = value; } else args = PyTuple_Pack(1, value); if (!args) goto bad; owned_instance = PyObject_Call(type, args, NULL); Py_DECREF(args); if (!owned_instance) goto bad; value = owned_instance; if (!PyExceptionInstance_Check(value)) { PyErr_Format(PyExc_TypeError, "calling %R should have returned an instance of " "BaseException, not %R", type, Py_TYPE(value)); goto bad; } } } else { PyErr_SetString(PyExc_TypeError, "raise: exception class must be a subclass of BaseException"); goto bad; } if (cause) { PyObject *fixed_cause; if (cause == Py_None) { fixed_cause = NULL; } else if (PyExceptionClass_Check(cause)) { fixed_cause = PyObject_CallObject(cause, NULL); if (fixed_cause == NULL) goto bad; } else if (PyExceptionInstance_Check(cause)) { fixed_cause = cause; Py_INCREF(fixed_cause); } else { PyErr_SetString(PyExc_TypeError, "exception causes must derive from " "BaseException"); goto bad; } PyException_SetCause(value, fixed_cause); } PyErr_SetObject(type, value); if (tb) { #if CYTHON_COMPILING_IN_PYPY PyObject *tmp_type, *tmp_value, *tmp_tb; PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb); Py_INCREF(tb); PyErr_Restore(tmp_type, tmp_value, tb); Py_XDECREF(tmp_tb); #else PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject* tmp_tb = tstate->curexc_traceback; if (tb != tmp_tb) { Py_INCREF(tb); tstate->curexc_traceback = tb; Py_XDECREF(tmp_tb); } #endif } bad: Py_XDECREF(owned_instance); return; } #endif /* DictGetItem */ #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) { PyObject *value; value = PyDict_GetItemWithError(d, key); if (unlikely(!value)) { if (!PyErr_Occurred()) { if (unlikely(PyTuple_Check(key))) { PyObject* args = PyTuple_Pack(1, key); if (likely(args)) { PyErr_SetObject(PyExc_KeyError, args); Py_DECREF(args); } } else { PyErr_SetObject(PyExc_KeyError, key); } } return NULL; } Py_INCREF(value); return value; } #endif /* ExtTypeTest */ static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) { if (unlikely(!type)) { PyErr_SetString(PyExc_SystemError, "Missing type object"); return 0; } if (likely(__Pyx_TypeCheck(obj, type))) return 1; PyErr_Format(PyExc_TypeError, "Cannot convert %.200s to %.200s", Py_TYPE(obj)->tp_name, type->tp_name); return 0; } /* None */ static CYTHON_INLINE Py_ssize_t __Pyx_div_Py_ssize_t(Py_ssize_t a, Py_ssize_t b) { Py_ssize_t q = a / b; Py_ssize_t r = a - q*b; q -= ((r != 0) & ((r ^ b) < 0)); return q; } /* PyObject_GenericGetAttrNoDict */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static PyObject *__Pyx_RaiseGenericGetAttributeError(PyTypeObject *tp, PyObject *attr_name) { PyErr_Format(PyExc_AttributeError, #if PY_MAJOR_VERSION >= 3 "'%.50s' object has no attribute '%U'", tp->tp_name, attr_name); #else "'%.50s' object has no attribute '%.400s'", tp->tp_name, PyString_AS_STRING(attr_name)); #endif return NULL; } static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name) { PyObject *descr; PyTypeObject *tp = Py_TYPE(obj); if (unlikely(!PyString_Check(attr_name))) { return PyObject_GenericGetAttr(obj, attr_name); } assert(!tp->tp_dictoffset); descr = _PyType_Lookup(tp, attr_name); if (unlikely(!descr)) { return __Pyx_RaiseGenericGetAttributeError(tp, attr_name); } Py_INCREF(descr); #if PY_MAJOR_VERSION < 3 if (likely(PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS))) #endif { descrgetfunc f = Py_TYPE(descr)->tp_descr_get; if (unlikely(f)) { PyObject *res = f(descr, obj, (PyObject *)tp); Py_DECREF(descr); return res; } } return descr; } #endif /* PyObject_GenericGetAttr */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) { if (unlikely(Py_TYPE(obj)->tp_dictoffset)) { return PyObject_GenericGetAttr(obj, attr_name); } return __Pyx_PyObject_GenericGetAttrNoDict(obj, attr_name); } #endif /* SetupReduce */ static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) { int ret; PyObject *name_attr; name_attr = __Pyx_PyObject_GetAttrStr(meth, __pyx_n_s_name); if (likely(name_attr)) { ret = PyObject_RichCompareBool(name_attr, name, Py_EQ); } else { ret = -1; } if (unlikely(ret < 0)) { PyErr_Clear(); ret = 0; } Py_XDECREF(name_attr); return ret; } static int __Pyx_setup_reduce(PyObject* type_obj) { int ret = 0; PyObject *object_reduce = NULL; PyObject *object_reduce_ex = NULL; PyObject *reduce = NULL; PyObject *reduce_ex = NULL; PyObject *reduce_cython = NULL; PyObject *setstate = NULL; PyObject *setstate_cython = NULL; #if CYTHON_USE_PYTYPE_LOOKUP if (_PyType_Lookup((PyTypeObject*)type_obj, __pyx_n_s_getstate)) goto GOOD; #else if (PyObject_HasAttr(type_obj, __pyx_n_s_getstate)) goto GOOD; #endif #if CYTHON_USE_PYTYPE_LOOKUP object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto BAD; #else object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto BAD; #endif reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_ex); if (unlikely(!reduce_ex)) goto BAD; if (reduce_ex == object_reduce_ex) { #if CYTHON_USE_PYTYPE_LOOKUP object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto BAD; #else object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto BAD; #endif reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce); if (unlikely(!reduce)) goto BAD; if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_n_s_reduce_cython)) { reduce_cython = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_cython); if (unlikely(!reduce_cython)) goto BAD; ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce, reduce_cython); if (unlikely(ret < 0)) goto BAD; ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce_cython); if (unlikely(ret < 0)) goto BAD; setstate = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_setstate); if (!setstate) PyErr_Clear(); if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) { setstate_cython = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_setstate_cython); if (unlikely(!setstate_cython)) goto BAD; ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate, setstate_cython); if (unlikely(ret < 0)) goto BAD; ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate_cython); if (unlikely(ret < 0)) goto BAD; } PyType_Modified((PyTypeObject*)type_obj); } } goto GOOD; BAD: if (!PyErr_Occurred()) PyErr_Format(PyExc_RuntimeError, "Unable to initialize pickling for %s", ((PyTypeObject*)type_obj)->tp_name); ret = -1; GOOD: #if !CYTHON_USE_PYTYPE_LOOKUP Py_XDECREF(object_reduce); Py_XDECREF(object_reduce_ex); #endif Py_XDECREF(reduce); Py_XDECREF(reduce_ex); Py_XDECREF(reduce_cython); Py_XDECREF(setstate); Py_XDECREF(setstate_cython); return ret; } /* TypeImport */ #ifndef __PYX_HAVE_RT_ImportType #define __PYX_HAVE_RT_ImportType static PyTypeObject *__Pyx_ImportType(PyObject *module, const char *module_name, const char *class_name, size_t size, enum __Pyx_ImportType_CheckSize check_size) { PyObject *result = 0; char warning[200]; Py_ssize_t basicsize; #ifdef Py_LIMITED_API PyObject *py_basicsize; #endif result = PyObject_GetAttrString(module, class_name); if (!result) goto bad; if (!PyType_Check(result)) { PyErr_Format(PyExc_TypeError, "%.200s.%.200s is not a type object", module_name, class_name); goto bad; } #ifndef Py_LIMITED_API basicsize = ((PyTypeObject *)result)->tp_basicsize; #else py_basicsize = PyObject_GetAttrString(result, "__basicsize__"); if (!py_basicsize) goto bad; basicsize = PyLong_AsSsize_t(py_basicsize); Py_DECREF(py_basicsize); py_basicsize = 0; if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred()) goto bad; #endif if ((size_t)basicsize < size) { PyErr_Format(PyExc_ValueError, "%.200s.%.200s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", module_name, class_name, size, basicsize); goto bad; } if (check_size == __Pyx_ImportType_CheckSize_Error && (size_t)basicsize != size) { PyErr_Format(PyExc_ValueError, "%.200s.%.200s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", module_name, class_name, size, basicsize); goto bad; } else if (check_size == __Pyx_ImportType_CheckSize_Warn && (size_t)basicsize > size) { PyOS_snprintf(warning, sizeof(warning), "%s.%s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", module_name, class_name, size, basicsize); if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad; } return (PyTypeObject *)result; bad: Py_XDECREF(result); return NULL; } #endif /* Import */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { PyObject *empty_list = 0; PyObject *module = 0; PyObject *global_dict = 0; PyObject *empty_dict = 0; PyObject *list; #if PY_MAJOR_VERSION < 3 PyObject *py_import; py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); if (!py_import) goto bad; #endif if (from_list) list = from_list; else { empty_list = PyList_New(0); if (!empty_list) goto bad; list = empty_list; } global_dict = PyModule_GetDict(__pyx_m); if (!global_dict) goto bad; empty_dict = PyDict_New(); if (!empty_dict) goto bad; { #if PY_MAJOR_VERSION >= 3 if (level == -1) { if (strchr(__Pyx_MODULE_NAME, '.')) { module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, 1); if (!module) { if (!PyErr_ExceptionMatches(PyExc_ImportError)) goto bad; PyErr_Clear(); } } level = 0; } #endif if (!module) { #if PY_MAJOR_VERSION < 3 PyObject *py_level = PyInt_FromLong(level); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, (PyObject *)NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, level); #endif } } bad: #if PY_MAJOR_VERSION < 3 Py_XDECREF(py_import); #endif Py_XDECREF(empty_list); Py_XDECREF(empty_dict); return module; } /* ImportFrom */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Format(PyExc_ImportError, #if PY_MAJOR_VERSION < 3 "cannot import name %.230s", PyString_AS_STRING(name)); #else "cannot import name %S", name); #endif } return value; } /* PyDictVersioning */ #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) { PyObject *dict = Py_TYPE(obj)->tp_dict; return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0; } static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) { PyObject **dictptr = NULL; Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset; if (offset) { #if CYTHON_COMPILING_IN_CPYTHON dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj); #else dictptr = _PyObject_GetDictPtr(obj); #endif } return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0; } static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) { PyObject *dict = Py_TYPE(obj)->tp_dict; if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict))) return 0; return obj_dict_version == __Pyx_get_object_dict_version(obj); } #endif /* GetModuleGlobalName */ #if CYTHON_USE_DICT_VERSIONS static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value) #else static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name) #endif { PyObject *result; #if !CYTHON_AVOID_BORROWED_REFS #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash); __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) if (likely(result)) { return __Pyx_NewRef(result); } else if (unlikely(PyErr_Occurred())) { return NULL; } #else result = PyDict_GetItem(__pyx_d, name); __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) if (likely(result)) { return __Pyx_NewRef(result); } #endif #else result = PyObject_GetItem(__pyx_d, name); __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) if (likely(result)) { return __Pyx_NewRef(result); } PyErr_Clear(); #endif return __Pyx_GetBuiltinName(name); } /* CLineInTraceback */ #ifndef CYTHON_CLINE_IN_TRACEBACK static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) { PyObject *use_cline; PyObject *ptype, *pvalue, *ptraceback; #if CYTHON_COMPILING_IN_CPYTHON PyObject **cython_runtime_dict; #endif if (unlikely(!__pyx_cython_runtime)) { return c_line; } __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback); #if CYTHON_COMPILING_IN_CPYTHON cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime); if (likely(cython_runtime_dict)) { __PYX_PY_DICT_LOOKUP_IF_MODIFIED( use_cline, *cython_runtime_dict, __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback)) } else #endif { PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback); if (use_cline_obj) { use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True; Py_DECREF(use_cline_obj); } else { PyErr_Clear(); use_cline = NULL; } } if (!use_cline) { c_line = 0; PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False); } else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) { c_line = 0; } __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback); return c_line; } #endif /* CodeObjectCache */ static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { int start = 0, mid = 0, end = count - 1; if (end >= 0 && code_line > entries[end].code_line) { return count; } while (start < end) { mid = start + (end - start) / 2; if (code_line < entries[mid].code_line) { end = mid; } else if (code_line > entries[mid].code_line) { start = mid + 1; } else { return mid; } } if (code_line <= entries[mid].code_line) { return mid; } else { return mid + 1; } } static PyCodeObject *__pyx_find_code_object(int code_line) { PyCodeObject* code_object; int pos; if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) { return NULL; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) { return NULL; } code_object = __pyx_code_cache.entries[pos].code_object; Py_INCREF(code_object); return code_object; } static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { int pos, i; __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; if (unlikely(!code_line)) { return; } if (unlikely(!entries)) { entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); if (likely(entries)) { __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = 64; __pyx_code_cache.count = 1; entries[0].code_line = code_line; entries[0].code_object = code_object; Py_INCREF(code_object); } return; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) { PyCodeObject* tmp = entries[pos].code_object; entries[pos].code_object = code_object; Py_DECREF(tmp); return; } if (__pyx_code_cache.count == __pyx_code_cache.max_count) { int new_max = __pyx_code_cache.max_count + 64; entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry)); if (unlikely(!entries)) { return; } __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = new_max; } for (i=__pyx_code_cache.count; i>pos; i--) { entries[i] = entries[i-1]; } entries[pos].code_line = code_line; entries[pos].code_object = code_object; __pyx_code_cache.count++; Py_INCREF(code_object); } /* AddTraceback */ #include "compile.h" #include "frameobject.h" #include "traceback.h" static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyObject *py_srcfile = 0; PyObject *py_funcname = 0; #if PY_MAJOR_VERSION < 3 py_srcfile = PyString_FromString(filename); #else py_srcfile = PyUnicode_FromString(filename); #endif if (!py_srcfile) goto bad; if (c_line) { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #else py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #endif } else { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromString(funcname); #else py_funcname = PyUnicode_FromString(funcname); #endif } if (!py_funcname) goto bad; py_code = __Pyx_PyCode_New( 0, 0, 0, 0, 0, __pyx_empty_bytes, /*PyObject *code,*/ __pyx_empty_tuple, /*PyObject *consts,*/ __pyx_empty_tuple, /*PyObject *names,*/ __pyx_empty_tuple, /*PyObject *varnames,*/ __pyx_empty_tuple, /*PyObject *freevars,*/ __pyx_empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ py_line, __pyx_empty_bytes /*PyObject *lnotab*/ ); Py_DECREF(py_srcfile); Py_DECREF(py_funcname); return py_code; bad: Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); return NULL; } static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; PyThreadState *tstate = __Pyx_PyThreadState_Current; if (c_line) { c_line = __Pyx_CLineForTraceback(tstate, c_line); } py_code = __pyx_find_code_object(c_line ? -c_line : py_line); if (!py_code) { py_code = __Pyx_CreateCodeObjectForTraceback( funcname, c_line, py_line, filename); if (!py_code) goto bad; __pyx_insert_code_object(c_line ? -c_line : py_line, py_code); } py_frame = PyFrame_New( tstate, /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ __pyx_d, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; __Pyx_PyFrame_SetLineNumber(py_frame, py_line); PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_code); Py_XDECREF(py_frame); } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { const long neg_one = (long) ((long) 0 - (long) 1), const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(long) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(long) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(long), little, !is_unsigned); } } /* CIntFromPyVerify */ #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\ {\ func_type value = func_value;\ if (sizeof(target_type) < sizeof(func_type)) {\ if (unlikely(value != (func_type) (target_type) value)) {\ func_type zero = 0;\ if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\ return (target_type) -1;\ if (is_unsigned && unlikely(value < zero))\ goto raise_neg_overflow;\ else\ goto raise_overflow;\ }\ }\ return (target_type) value;\ } /* CIntFromPy */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { const long neg_one = (long) ((long) 0 - (long) 1), const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(long) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (long) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case 1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0]) case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) { return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) { return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) { return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (long) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(long) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(long, digit, +digits[0]) case -2: if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -3: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -4: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; } #endif if (sizeof(long) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else long val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (long) -1; } } else { long val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (long) -1; val = __Pyx_PyInt_As_long(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to long"); return (long) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to long"); return (long) -1; } /* CIntFromPy */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { const int neg_one = (int) ((int) 0 - (int) 1), const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(int) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (int) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case 1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0]) case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) { return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) { return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) { return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (int) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(int) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(int, digit, +digits[0]) case -2: if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -3: if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -4: if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; } #endif if (sizeof(int) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else int val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (int) -1; } } else { int val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (int) -1; val = __Pyx_PyInt_As_int(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to int"); return (int) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to int"); return (int) -1; } /* FastTypeChecks */ #if CYTHON_COMPILING_IN_CPYTHON static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) { while (a) { a = a->tp_base; if (a == b) return 1; } return b == &PyBaseObject_Type; } static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) { PyObject *mro; if (a == b) return 1; mro = a->tp_mro; if (likely(mro)) { Py_ssize_t i, n; n = PyTuple_GET_SIZE(mro); for (i = 0; i < n; i++) { if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b) return 1; } return 0; } return __Pyx_InBases(a, b); } #if PY_MAJOR_VERSION == 2 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) { PyObject *exception, *value, *tb; int res; __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ErrFetch(&exception, &value, &tb); res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0; if (unlikely(res == -1)) { PyErr_WriteUnraisable(err); res = 0; } if (!res) { res = PyObject_IsSubclass(err, exc_type2); if (unlikely(res == -1)) { PyErr_WriteUnraisable(err); res = 0; } } __Pyx_ErrRestore(exception, value, tb); return res; } #else static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) { int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0; if (!res) { res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2); } return res; } #endif static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) { Py_ssize_t i, n; assert(PyExceptionClass_Check(exc_type)); n = PyTuple_GET_SIZE(tuple); #if PY_MAJOR_VERSION >= 3 for (i=0; ip) { #if PY_MAJOR_VERSION < 3 if (t->is_unicode) { *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL); } else if (t->intern) { *t->p = PyString_InternFromString(t->s); } else { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); } #else if (t->is_unicode | t->is_str) { if (t->intern) { *t->p = PyUnicode_InternFromString(t->s); } else if (t->encoding) { *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL); } else { *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1); } } else { *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1); } #endif if (!*t->p) return -1; if (PyObject_Hash(*t->p) == -1) return -1; ++t; } return 0; } static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str)); } static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) { Py_ssize_t ignore; return __Pyx_PyObject_AsStringAndSize(o, &ignore); } #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT #if !CYTHON_PEP393_ENABLED static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { char* defenc_c; PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); if (!defenc) return NULL; defenc_c = PyBytes_AS_STRING(defenc); #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII { char* end = defenc_c + PyBytes_GET_SIZE(defenc); char* c; for (c = defenc_c; c < end; c++) { if ((unsigned char) (*c) >= 128) { PyUnicode_AsASCIIString(o); return NULL; } } } #endif *length = PyBytes_GET_SIZE(defenc); return defenc_c; } #else static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL; #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII if (likely(PyUnicode_IS_ASCII(o))) { *length = PyUnicode_GET_LENGTH(o); return PyUnicode_AsUTF8(o); } else { PyUnicode_AsASCIIString(o); return NULL; } #else return PyUnicode_AsUTF8AndSize(o, length); #endif } #endif #endif static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT if ( #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII __Pyx_sys_getdefaultencoding_not_ascii && #endif PyUnicode_Check(o)) { return __Pyx_PyUnicode_AsStringAndSize(o, length); } else #endif #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) if (PyByteArray_Check(o)) { *length = PyByteArray_GET_SIZE(o); return PyByteArray_AS_STRING(o); } else #endif { char* result; int r = PyBytes_AsStringAndSize(o, &result, length); if (unlikely(r < 0)) { return NULL; } else { return result; } } } static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { int is_true = x == Py_True; if (is_true | (x == Py_False) | (x == Py_None)) return is_true; else return PyObject_IsTrue(x); } static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) { int retval; if (unlikely(!x)) return -1; retval = __Pyx_PyObject_IsTrue(x); Py_DECREF(x); return retval; } static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) { #if PY_MAJOR_VERSION >= 3 if (PyLong_Check(result)) { if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1, "__int__ returned non-int (type %.200s). " "The ability to return an instance of a strict subclass of int " "is deprecated, and may be removed in a future version of Python.", Py_TYPE(result)->tp_name)) { Py_DECREF(result); return NULL; } return result; } #endif PyErr_Format(PyExc_TypeError, "__%.4s__ returned non-%.4s (type %.200s)", type_name, type_name, Py_TYPE(result)->tp_name); Py_DECREF(result); return NULL; } static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; #endif const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x) || PyLong_Check(x))) #else if (likely(PyLong_Check(x))) #endif return __Pyx_NewRef(x); #if CYTHON_USE_TYPE_SLOTS m = Py_TYPE(x)->tp_as_number; #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; res = m->nb_int(x); } else if (m && m->nb_long) { name = "long"; res = m->nb_long(x); } #else if (likely(m && m->nb_int)) { name = "int"; res = m->nb_int(x); } #endif #else if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) { res = PyNumber_Int(x); } #endif if (likely(res)) { #if PY_MAJOR_VERSION < 3 if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) { #else if (unlikely(!PyLong_CheckExact(res))) { #endif return __Pyx_PyNumber_IntOrLongWrongResultType(res, name); } } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_TypeError, "an integer is required"); } return res; } static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_ssize_t ival; PyObject *x; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(b))) { if (sizeof(Py_ssize_t) >= sizeof(long)) return PyInt_AS_LONG(b); else return PyInt_AsSsize_t(b); } #endif if (likely(PyLong_CheckExact(b))) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)b)->ob_digit; const Py_ssize_t size = Py_SIZE(b); if (likely(__Pyx_sst_abs(size) <= 1)) { ival = likely(size) ? digits[0] : 0; if (size == -1) ival = -ival; return ival; } else { switch (size) { case 2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; } } #endif return PyLong_AsSsize_t(b); } x = PyNumber_Index(b); if (!x) return -1; ival = PyInt_AsSsize_t(x); Py_DECREF(x); return ival; } static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) { return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False); } static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { return PyInt_FromSize_t(ival); } #endif /* Py_PYTHON_H */ music-1.1.16/pymusic/Makefile.am0000644000175000017500000000371013571617503013377 00000000000000## Process this file with Automake to create Makefile.in SUBDIRS = examples EXTRA_DIST = setup.py.in tests.py pymusic.pyx pymusic.pxd pybuffer.pyx pybuffer.pxd \ music/__init__.py music/music_c.h music/pybuffer.pxd music/pymusic.pxd \ music/pymusic_c.h mpi_compat.h BUILT_SOURCES = pymusic.cpp pybuffer.cpp pyconfig.pxi: tests.py cd $(top_srcdir)/pymusic; $(PYTHON) tests.py pybuffer.cpp: pyconfig.pxi pybuffer.pyx pybuffer.pxd cd $(top_srcdir)/pymusic; $(PYTHON) -c \ "from Cython.Build import cythonize; \ cythonize('pybuffer.pyx', verbose=1)" pymusic.cpp: pyconfig.pxi pymusic.pyx pymusic.pxd cd $(top_srcdir)/pymusic; $(PYTHON) -c \ "from Cython.Build import cythonize; \ cythonize('pymusic.pyx', verbose=1)" pkgpyexec_LTLIBRARIES = pymusic.la pybuffer.la pymusic_la_SOURCES= pymusic.cpp # main sources to link to pymusic_la_LDFLAGS = -shared -module -avoid-version -export-dynamic $(MPI_LDFLAGS) pybuffer_la_SOURCES= pybuffer.cpp # main sources to link to pybuffer_la_LDFLAGS = -shared -module -avoid-version -export-dynamic $(MPI_LDFLAGS) pymusic_la_CPPFLAGS = \ $(MPI_CPPFLAGS) \ $(PYMUSIC_CPPFLAGS) \ -I$(top_srcdir)/src -I$(top_builddir)/src pymusic_la_CXXFLAGS = \ $(PYMUSIC_CXXFLAGS) \ $(MPI_CXXFLAGS) pymusic_la_LIBADD = \ $(top_builddir)/src/libmusic.la \ $(top_builddir)/src/libmusic-c.la pybuffer_la_CPPFLAGS = \ $(MPI_CPPFLAGS) \ $(PYBUFFER_CPPFLAGS) \ -I$(top_srcdir)/src pybuffer_la_CXXFLAGS = \ $(PYBUFFER_CXXFLAGS) \ $(MPI_CXXFLAGS) if DEB_PACKAGE install-exec-hook: $(PYTHON) setup.py build \ --build-base=$(abs_builddir)/build install \ --install-layout=deb \ --prefix=$(DESTDIR)$(prefix) else install-exec-hook: $(PYTHON) setup.py build \ --build-base=$(abs_builddir)/build install \ --prefix=$(DESTDIR)$(prefix) --install-lib=$(DESTDIR)$(pyexecdir) \ --install-scripts=$(DESTDIR)$(bindir) \ --install-data=$(DESTDIR)$(pkgdatadir) endif clean-local: -rm -rf $(abs_builddir)/build music-1.1.16/pymusic/pymusic.pxd0000644000175000017500000001711413571617503013554 00000000000000# The following include is needed to define a missing type MPI_Message # which is lacking for a certain combination of MPI and mpi4py versions cdef extern from "mpi_compat.h": pass include "pyconfig.pxi" cimport mpi4py.MPI as MPI IF MPI4V2: from mpi4py.libmpi cimport * ELSE: from mpi4py.mpi_c cimport * from libcpp cimport bool as cbool from libcpp.string cimport string from cpython.ref cimport PyObject ########################################################### cdef extern from "music/predict_rank.hh" namespace "MUSIC": cdef int CPredictRank "MUSIC::predictRank" (int, char**) cdef extern from "music/message.hh" namespace "MUSIC": cdef cppclass CMessageHandler "MUSIC::MessageHandler": pass cdef extern from "music/music_c.h" namespace "MUSIC": cdef cppclass CEventHandler "MUSIC::EventHandler": pass cdef cppclass CEHLocal "MUSIC::EHLocal"(CEventHandler): CEHLocal(PyObject*) cdef cppclass CEHGlobal "MUSIC::EHGlobal"(CEventHandler): CEHGlobal(PyObject*) cdef cppclass CMHandler "MUSIC::MHandler"(CMessageHandler): CMHandler(PyObject*, cbool) cdef extern from "music/event.hh" namespace "MUSIC": cdef cppclass CEventHandlerGlobalIndex "MUSIC::EventHandlerGlobalIndex": pass cdef cppclass CEventHandlerLocalIndex "MUSIC::EventHandlerLocalIndex": pass cdef cppclass CEventHandlerPtr "MUSIC::EventHandlerPtr": pass cdef extern from "music/data_map.hh" namespace "MUSIC": cdef cppclass CDataMap "MUSIC::DataMap": pass cdef extern from "music/index_map.hh" namespace "MUSIC": cdef cppclass CIndex "MUSIC::Index": int WILDCARD_MAX ctypedef enum IndexType "MUSIC::Index::Type": IndexGLOBAL "MUSIC::Index::GLOBAL", IndexLOCAL "MUSIC::Index::LOCAL" cdef cppclass GlobalIndex(CIndex): GlobalIndex(int) cdef cppclass LocalIndex(CIndex): LocalIndex(int) cdef cppclass CIndexMap "MUSIC::IndexMap": pass cdef extern from "music/permutation_index.hh" namespace "MUSIC": cdef cppclass PermutationIndex(CIndexMap): PermutationIndex(GlobalIndex*, int) cdef extern from "music/linear_index.hh" namespace "MUSIC": cdef cppclass LinearIndex(CIndexMap): LinearIndex(GlobalIndex, int) cdef extern from "music/array_data.hh" namespace "MUSIC": cdef cppclass CArrayData "MUSIC::ArrayData"(CDataMap): CArrayData(void*, MPI_Datatype, int, int) CArrayData(void*, MPI_Datatype, CIndexMap*) cdef extern from "music/port.hh" namespace "MUSIC": cdef cppclass CPort "MUSIC::Port": cbool isConnected() cbool hasWidth() int width() cdef cppclass CContInputPort "MUSIC::ContInputPort"(CPort): pass cdef cppclass CContOutputPort "MUSIC::ContOutputPort"(CPort): pass cdef cppclass CEventInputPort "MUSIC::EventInputPort"(CPort): pass cdef cppclass CEventOutputPort "MUSIC::EventOutputPort"(CPort): pass cdef cppclass CMessageInputPort "MUSIC::MessageInputPort"(CPort): pass cdef cppclass CMessageOutputPort "MUSIC::MessageOutputPort"(CPort): void insertMessage(double, void*, size_t) # This is necessary for the virtual downcast cdef extern from *: CContInputPort* dc_CContInputPort \ "dynamic_cast" (CPort*) CContOutputPort* dc_CContOutputPort \ "dynamic_cast"(CPort*) CEventInputPort* dc_CEventInputPort \ "dynamic_cast" (CPort*) CEventOutputPort* dc_CEventOutputPort \ "dynamic_cast"(CPort*) CMessageInputPort* dc_CMessageInputPort \ "dynamic_cast" (CPort*) CMessageOutputPort* dc_CMessageOutputPort \ "dynamic_cast"(CPort*) cdef extern from "music/setup.hh" namespace "MUSIC": cdef cppclass CSetup "MUSIC::Setup": CSetup(int&, char**&) except + CSetup(int&, char**&, int, int*) except + cbool config(string, string*) CContInputPort* publishContInput(string) CContOutputPort* publishContOutput(string) CEventInputPort* publishEventInput(string) CEventOutputPort* publishEventOutput(string) CMessageInputPort* publishMessageInput(string) CMessageOutputPort* publishMessageOutput(string) cdef extern from "music/runtime.hh" namespace "MUSIC": cdef cppclass CRuntime "MUSIC::Runtime": CRuntime(CSetup*, double) except + void finalize() double time() void tick() cdef extern void cython_callback(PyObject*, double, IndexType, int) cdef extern from "music/music_c.h" namespace "MUSIC": cdef inline MPI_Comm communicator(CSetup*) cdef inline MPI_Comm communicator(CRuntime*) cdef inline int toint(GlobalIndex) cdef inline int toint(LocalIndex) cdef inline cbool tick(CRuntime*) except False cdef inline CEventHandlerPtr getEventHandlerPtr(IndexType, CEventHandler*) cdef inline void mapImpl "MUSIC::Implementer::mapImpl" ( CContInputPort*, CDataMap*, double, int, cbool) cdef inline void mapImpl "MUSIC::Implementer::mapImpl" ( CContOutputPort*, CDataMap*, int) cdef inline void mapImpl "MUSIC::Implementer::mapImpl" ( CEventInputPort*, CIndexMap*, IndexType, CEventHandlerPtr, double, int) cdef inline void mapImpl "MUSIC::Implementer::mapImpl" ( CEventOutputPort*, CIndexMap*, IndexType, int) cdef inline void insertEventImpl "MUSIC::Implementer::insertEventImpl" ( CEventOutputPort*, double, int) cdef inline void mapImpl "MUSIC::Implementer::mapImpl" ( CMessageInputPort*, CMessageHandler*, double, int) cdef inline void mapImpl "MUSIC::Implementer::mapImpl" ( CMessageOutputPort*, int) cdef inline void insertMessage "MUSIC::Implementer::insertMessage" ( CMessageOutputPort*, double t, void*, size) cdef cbool pythonError cdef PyObject* etype cdef PyObject* evalue cdef PyObject* etraceback ########################################################### cdef class Setup(object): cdef CSetup* ptr cdef list argv cdef int provided cdef readonly MPI.Intracomm comm cdef set ports cdef null(self) cpdef MPI.Intracomm getcomm(self) ########################################################### cdef class Runtime(object): cdef CRuntime* ptr cdef readonly MPI.Intracomm comm cdef set ports ########################################################### cdef class Port(object): cdef CPort* ptr cpdef object null(self) ## Some day, virtual multiple inheritance will be ## a capital crime ^^^^ cdef class ContInputPort(Port): pass cdef class ContOutputPort(Port): pass cdef class EventInputPort(Port): cdef set events cpdef object null(self) cdef class EventOutputPort(Port): pass cdef class MessageInputPort(Port): cdef set events cpdef object null(self) cdef class MessageOutputPort(Port): cdef bint pickled ########################################################## from music.pybuffer cimport Buffer cdef class DataMap(object): cdef CDataMap* ptr cdef Buffer buf cdef class IndexMap(object): cdef CIndexMap* ptr cdef Buffer buf cdef class EventHandler: cdef CEventHandler* ptr cdef object func cdef class MessageHandler: cdef CMessageHandler* ptr cdef object func cdef cbool EventCallback "MUSIC::EventCallback" ( \ PyObject*, double, IndexType, int) except False cdef cbool MessageCallback "MUSIC::MessageCallback" ( \ PyObject*, double, void*, size_t, cbool) except False music-1.1.16/pymusic/pymusic.pyx0000644000175000017500000005765313571617503013615 00000000000000# # distutils: language = c++ # cython: c_string_encoding = default from libc.stdlib cimport malloc, free import mpi4py.MPI as MPI from six.moves import cPickle as pickle ########################################################### class MUSICError(Exception): """ All exceptions in pymusic are MUSICError's """ pass class NoWidth(MUSICError): """ Thrown if Port.width() is called, and port doesn't have a width defined. """ def __init__(self): MUSICError.__init__(self, "No width defined") class UndefinedConfig(MUSICError): """ Thrown if a configuration value is requested via Setup.config(varname) for a variable name that has not been defined within the configuration. """ def __init__(self, var): MUSICError.__init__( self, "Config variable {} is not defined". format(var) ) ########################################################### # """ # Just pass args as a named tuple for C functions that # take the command line parameters: # int argc # char** argv # argv = [exec, op[1], ..., op[argc-1], NULL] # """ ctypedef struct Args: int argc char** argv cdef Args argv_toc(list argv): """ Convert an argv python list to a correct C argv & argc values with null termination, returned as an Args tuple """ cdef Args r r.argc = len(argv) if r.argc <= 0: raise MUSICError("argv can't be empty") r.argv = malloc((r.argc+1) * sizeof(char*)) if r.argv is NULL: raise MUSICError("couldn't allocate argv") cdef string try: r.argv[r.argc] = NULL for i in range(0, r.argc): s = argv[i].encode() r.argv[i] = s return r except: free(r.argv) raise ########################################################### def predictRank(list argv=None): """ Map into mpidep/predict_rank for config methods. AP: What is this really used for? """ cdef Args r = argv_toc(argv if argv is not None else sys.argv) return CPredictRank(r.argc, r.argv) ########################################################### cdef class Port(object): """ Base Port class. The underlying pointer is not deallocated here, since in MUSIC the port is owned by Setup/Runtime. This does null the value when we believe the underlying object may be deallocated by the container. """ def __cinit__(self): """ When a Port object is created, it needs to have an underlying C++ class assigned to ptr from a Setup.publish* method. """ self.ptr = NULL def __hash__(self): """ Hash function: pointer value % to an int. """ return self.ptr cpdef null(self): """ When Setup or Runtime no longer needs ports and so may deallocate them, we first must clear the references to them here. This may be overridden to give up references to other members by the descendants """ self.ptr = NULL def isConnected(self): """ return True iff the port is actually connected via the config file. """ return self.ptr.isConnected() def width(self): """ Returns the width set in the MUSIC config file which defines the number of indices transferred along this port. If no width is defined, raise a NoWidth exception. """ if not self.ptr.hasWidth(): raise NoWidth() return self.ptr.width() cdef class ContInputPort(Port): """ ContInputPort maps data indices between sources and sinks. This is the sink side; source is ContOutputPort. Created by Setup.publishContInputPort(portname). """ def map(self, object data, int base=0, object perm=None, double delay=0, cbool interpolate=True, int maxBuffered=-1): """ map data as source for this port. (Can you do a multiple mapping?) object data: object to be shared that has a buffer interface. That interface needs to be contiguous formed of simple items that can be mapped to simple MPI data types. int base (=0), object perm (=None): used to construct an IndexMap (with number of items in data). See that class for more information. Defines mapping for data between this input source and the output sinks. double delay (=0): this is the delay of measurement relative to "something" which I haven't been able to figure out yet --- needs to be explained. interpolate (=True): whether to do a linear interpolation of the values that are being delayed. Once again, needs to be better explained. maxBuffered (=-1): buffer up to maxBuffered ticks. If -1, use a "reasonable value" (???). What does this mean on the input side? """ cdef Buffer buf = Buffer(data) cdef IndexMap imap = IndexMap(perm, base, buf.items) cdef DataMap d = DataMap(buf, imap) cdef CContInputPort* ptr = dc_CContInputPort(self.ptr) mapImpl(ptr, d.ptr, delay, maxBuffered, interpolate) cdef class ContOutputPort(Port): """ ContOutputPort maps data indices between sources and sinks. This is the source side; ContInputPort is the sink. Created by Setup.publishContOutputPort(portname). """ def map(self, object data, int base=0, object perm=None, int maxBuffered=-1): """ map data as sink for this port. (Can you do a multiple mapping?) object data: object to be shared that has a buffer interface. That interface needs to be contiguous formed of simple items that can be mapped to simple MPI data types. int base (=0), object perm (=None): used to construct an IndexMap (with number of items in data). See that class for more information. Defines mapping for data between this input source and the output sinks. maxBuffered (=-1): buffer up to maxBuffered ticks. If -1, use a "reasonable value" (???). """ cdef Buffer buf = Buffer(data) cdef IndexMap imap = IndexMap(perm, base, buf.items) cdef DataMap d = DataMap(buf, imap) cdef CContOutputPort* ptr = dc_CContOutputPort(self.ptr) mapImpl(ptr, d.ptr, maxBuffered) cdef class EventInputPort(Port): """ Event sink. Maps 'events' to handlers. Events are spike-like events at a defined time associated with an id, either/or global/local in some (unclear to me) way. Since these 'events' must be protected from deallocation as long as the port exists (until finalization), we keep a set of them here and drop the reference when this object is null'd (events member). """ def __cinit__(self): """ Store a set of references to the event handlers """ self.events = set() cpdef null(self): """ Not just null pointer, but give up the associated event handlers. """ Port.null(self) self.events = None def map(self, func, IndexType t, double accLatency=0, int maxBuffered=-1, object perm=None, int base=-1, int size=-1): """ Map events to this sink. func is: void func(double value, IndexType GLOBAL|LOCAL, int index) IndexType is (?) the index type to map the incoming sources passed to the func (why, if we already know this?) accLatency is the delivery delay relative to calculation time (? is it ? What formula are we using here?) maxBuffered is ticks to buffer perm, base & size are passed to IndexMap """ cdef IndexMap imap = IndexMap(perm, base, size) cdef EventHandler eh = EventHandler(func, t) cdef CEventInputPort* ptr = dc_CEventInputPort(self.ptr) cdef CEventHandlerPtr hndl = getEventHandlerPtr(t, eh.ptr) mapImpl(ptr, imap.ptr, t, hndl, accLatency, maxBuffered) self.events.add(eh) cdef class EventOutputPort(Port): """ Map events from this sink. See EventInputPort for description of events. """ def map(self, IndexType t, int maxBuffered=-1, object perm=None, int base=-1, int size=-1): """ IndexType: LOCAL/GLOBAL maxBuffered: tick to buffer (why on both sides?) perm, base, size: define IndexMap (see that class) """ cdef IndexMap m = IndexMap(perm, base, size) cdef CEventOutputPort* ptr = dc_CEventOutputPort(self.ptr) mapImpl(ptr, m.ptr, t, maxBuffered) def insertEvent(self, double time, int index, IndexType t): """ double time: time of event (must be during current tick) int index: local or global index of event IndexType t: LOCAL|GLOBAL """ cdef CEventOutputPort* ptr = dc_CEventOutputPort(self.ptr) insertEventImpl(ptr, time, index) cdef class MessageInputPort(Port): """ Maps 'events' to handlers. Since these 'events' must be protected from deallocation as long as the port exists (until finalization), we keep a set of them here and drop the reference when this object is null'd. """ def __cinit__(self): self.events = set() cpdef null(self): """ Remember to remove the references to events... """ Port.null(self) self.events = None def map(self, func, double accLatency=0, int maxBuffered=-1, bint pickled=True): """ The message handling function. func: callable object as follows void func(double time, object msg): time: the set insertion time of the message msg: an object which may have been pickled and fed through music accLatency(0): "acceptable latency" (???) maxBuffered(-1): ticks that can be buffered (-1 means unknown amount (???)) pickled(True): pickle objects on both ends; else, the object should be a buffer object and we'll receive a bytearray """ cdef MessageHandler eh = MessageHandler(func, pickled) cdef CMessageInputPort* ptr = dc_CMessageInputPort(self.ptr) mapImpl(ptr, eh.ptr, accLatency, maxBuffered) self.events.add(eh) cdef class MessageOutputPort(Port): """ The source of "messages". A message is a python object that is pickled and fed to the other end, associated with a time. """ def map(self, int maxBuffered=-1, bint pickled=True): """ map only sets the buffering ticks. maxBuffered (-1): ticks to buffer (-1 means "reasonable" ???) pickled (True): whether messages objects inserted her are automatically pickled, else the object should be a buffer-type and the other end will get a bytearray. """ self.pickled = pickled cdef CMessageOutputPort* ptr = dc_CMessageOutputPort(self.ptr) mapImpl(ptr, maxBuffered) def insertMessage(self, double time, object msg): """ insert a python object as a message at a time during the current tick. time: ms times (??) msg: a python object that can be cPickled if self.pickled == True else something that has a buffer interface. """ cdef CMessageOutputPort* ptr = dc_CMessageOutputPort(self.ptr) cdef bytearray pmsg = \ pickle.dumps(msg, pickle.HIGHEST_PROTOCOL) \ if self.pickled \ else msg ptr.insertMessage(time, pmsg, len(pmsg)) ########################################################### import sys cdef class Setup(object): """ API to setup the music interface. Becomes invalid after a Runtime object is created. It gives access to config variables (*.music file), and creates sinks and sources which can then be configured with the respective map method of each. """ def __cinit__(self, list argv=None, required=None): """ Takes the command line arguments and the required threading level. string[] argv (None): comand line args; if None, use sys.argv int required (None): the MPI threading level for MPI-2. If None, don't set at all, but provided level in object set to MPI_THREAD_SINGLE. Also stores command line arguments. Calls CSetup object and connects with communicator. """ cdef int argc cdef char** argv_c cdef int provided cdef Args r = argv_toc(argv if argv is not None else sys.argv) try: if required is None: self.ptr = new CSetup(r.argc, r.argv) self.provided = MPI_THREAD_SINGLE else: self.ptr = new CSetup(r.argc, r.argv, required, &provided) self.provided = provided self.argv = [r.argv[i] for i in xrange(r.argc)] finally: free(r.argv) cdef MPI.Intracomm comm = MPI.Intracomm() comm.ob_mpi = communicator(self.ptr) self.comm = comm self.ports = set() def __dealloc__(self): """ If runtime has been made and setup is invalid, do nothing. Otherwise, deallocate or remove references to all objects. """ if self.ptr is NULL: return del self.ptr for p in self.ports: del p.ptr p.null() self.null() cpdef MPI.Intracomm getcomm(self): """ Get an MPI communicator between the processes on this current side of music """ return self.comm cdef null(self): """ Invalidate this object --- called when runtime is created. Music & runtime is now responsible for deallocating C objects and clearing references to them. """ self.ptr = NULL self.comm = MPI.COMM_NULL self.ports = None #### def config(self, string var): """ Get the value for var in config file. string var: configuration variable for current group of processes, including default and inherited settings. The value is returned as an int if it matches the patter, otherwise a float, otherwise a string. Throws UndefinedConfig error if no such variable is defined. """ cdef string vs if not self.ptr.config(var, &vs): raise UndefinedConfig(var) try: return int(vs) except ValueError: pass try: return float(vs) except ValueError: pass return vs #### def publishContInput(self, string s): """ Continuous Floating point value sink string s: port name for music config """ cdef ContInputPort p = ContInputPort() p.ptr = self.ptr.publishContInput(s) # can't pass pointers directly to init self.ports.add(p) return p def publishContOutput(self, string s): """ Continuous Floating point value source string s: port name for music config """ cdef ContOutputPort p = ContOutputPort() p.ptr = self.ptr.publishContOutput(s) self.ports.add(p) return p def publishEventOutput(self, string s): """ Discrete boolean source string s: port name for music config """ cdef EventOutputPort p = EventOutputPort() p.ptr = self.ptr.publishEventOutput(s) self.ports.add(p) return p def publishEventInput(self, string s): """ Discrete boolean sink string s: port name for music config """ cdef EventInputPort p = EventInputPort() p.ptr = self.ptr.publishEventInput(s) self.ports.add(p) return p def publishMessageOutput(self, string s): """ Discrete python object source string s: port name for music config """ cdef MessageOutputPort p = MessageOutputPort() p.ptr = self.ptr.publishMessageOutput(s) self.ports.add(p) return p def publishMessageInput(self, string s): """ Discrete python object sink string s: port name for music config """ cdef MessageInputPort p = MessageInputPort() p.ptr = self.ptr.publishMessageInput(s) self.ports.add(p) return p def runtime(self, double timestep): """ Create a runtime. After return, this Setup object is invalid double timestep: size of timestep (?? units) """ return Runtime(self, timestep) ########################################################### cdef class Runtime(object): def __cinit__(self, Setup setup, double h): self.ptr = new CRuntime(setup.ptr, h) self.ports = setup.ports setup.null() cdef MPI.Intracomm comm = MPI.Intracomm() comm.ob_mpi = communicator(self.ptr) self.comm = comm def __dealloc__(self): self.ptr.finalize() for p in self.ports: p.null() del self.ptr def time(self): return self.ptr.time() def tick(self): tick(self.ptr) def __iter__(self): cdef CRuntime* ptr = self.ptr while True: yield ptr.time() tick(ptr) ########################################################### from music.pybuffer import Buffer from cpython cimport array from array import array cdef class IndexMap: """ Internal: Contains a C++ LinearIndex or PermutationIndex. These map between "local" index i to "global" index j LinearIndex: g = l + base, for l < size PermutationIndex: g = perm[l], where perm is an array """ def __cinit__(self, object perm=None, int base=0, int size=-1): """ Created internally Either perm is None, or we have a base, size pair perm is buffer of integers mapping local to global (local[i] -> global[perm[i]]) otherwise base is the first global index for size elements (local[0] -> global[base]) """ cdef array.array arr if perm is None: self.buf = None self.ptr = new LinearIndex(GlobalIndex(base), size) else: self.buf = Buffer(perm) if self.buf.dtype.size() != sizeof(int): arr = array('i', perm) self.buf = Buffer(arr) self.ptr = new PermutationIndex( self.buf.pybuf.buf, self.buf.items) def __dealloc__(self): del self.ptr cdef class DataMap(object): """ Internal: An ArrayData object. Takes a data object as a Buffer and possibly an IndexMap to construct a mapping for the Cont*Port transfers. """ def __cinit__(self, Buffer buf, IndexMap index_map=None, int index=0): """ Maps the Buffer of a data object between local and global indices. Buffer buf: some simple array type that will be pushed through mpi IndexMap index_map (None): an option index mapping from local to global index (0): if index_map is None, this is the base offset for constructing a linear index """ self.buf = buf self.ptr = new CArrayData(buf.pybuf.buf, buf.dtype.ob_mpi, index, buf.items) \ if index_map is None else \ new CArrayData(buf.pybuf.buf, buf.dtype.ob_mpi, index_map.ptr) def __dealloc__(self): del self.ptr cdef class EventHandler: """ Internal: An EventHandler is the python wrapper around a global or local EventHandler object for EventInputPort """ def __cinit__(self, object func, IndexType t): """ func: a callable of the form func(double d, IndexType t, int i) where double d: the event time IndexType t: local or global index enum int i: the index value IndexType t: the IndexType to receive in func (??? Why is this so complex?? Do we need to generalize func like this??) """ self.ptr = \ new CEHGlobal(func) \ if t == IndexGLOBAL else \ \ new CEHLocal(func) self.func = func def __dealloc__(self): del self.ptr cdef class _Index: """ Internal: the type of the variable Index that encapsulates the enum mapping GLOBAL and LOCAL are the ints of the C enums backmap maps from the enum to a string for output purposes """ cdef readonly int GLOBAL cdef readonly int LOCAL cdef readonly dict backmap def __cinit__(self): """ SINGLETON """ self.GLOBAL = IndexGLOBAL self.LOCAL = IndexLOCAL self.backmap = { IndexGLOBAL: "GLOBAL", IndexLOCAL: "LOCAL" }; def tostr(self, int index): """" tostring(Index.{GLOBAL,LOCAL}) --> "{GLOBAL,LOCAL}" """ return self.backmap[index] # And here is the singleton def Index = _Index() cdef cbool EventCallback(PyObject* func, double d, IndexType t, int i) \ except False: """ Internal: C code can map back into python through this callback func: callable object of func(d, t, i) double d: time of event IndexType t: LOCAL/GLOBAL int int i: index of event """ (func)(d, t, i) return True cdef class MessageHandler: """ MessageHandler wraps up Message*Port communications between C & python, wrapping n particular the C++ MessageHandler object bound with a function. It may (or may not) depickle messages """ def __cinit__(self, object func, bint pickled): """ func: The function to be called on a message, of the form func(double t, object msg) where: double t: the message time msg: Either a bytearray, or an arbitrary unpickled python object pickled: if true, the msg needs to be depickled """ self.ptr = new CMHandler(func, pickled) self.func = func def __dealloc__(self): del self.ptr cdef cbool MessageCallback(PyObject* func, double t, void* msg, size_t s, cbool pickled) \ except False: """ The function to return a Message from C to Python. func: callable of the form func(double t, object/bytearray obj) where: t: is the time of the message obj: is either the unpickled object if the port unpickles or simply a bytearray of data (you figure out the source) """ #cdef str pobj = (msg)[:s] cdef bytearray pobj = (msg)[:s] cdef object obj = pickle.loads(pobj) if pickled else pobj (func)(t, obj) return True ############################################################################# # # And for handling errors at the C/Python interface # # pythonError: true if a python error is being stored until we get out of C # etype, evalue, etraceback: three bits of data to recreate the exception # so that it can be thrown # pythonError = False etype = NULL evalue = NULL etraceback = NULL music-1.1.16/pymusic/pybuffer.pyx0000644000175000017500000000326113571617503013730 00000000000000# # distutils: language = c++ # # Compatible with Python >= 2.6, Cython # Not PYPY apparently from libc.stdlib cimport malloc, free from mpi4py import MPI ########################################################### cdef dict TypeDict = { "?" : MPI.C_BOOL, "c" : MPI.CHAR, "b" : MPI.SIGNED_CHAR, "h" : MPI.SHORT, "i" : MPI.INT, "l" : MPI.LONG, "q" : MPI.LONG_LONG, "p" : MPI.AINT, "B" : MPI.UNSIGNED_CHAR, "H" : MPI.UNSIGNED_SHORT, "I" : MPI.UNSIGNED, "L" : MPI.UNSIGNED_LONG, "Q" : MPI.UNSIGNED_LONG_LONG, "f" : MPI.FLOAT, "d" : MPI.DOUBLE, "g" : MPI.LONG_DOUBLE, "Zf": MPI.C_FLOAT_COMPLEX, "Zd": MPI.C_DOUBLE_COMPLEX, "Zg": MPI.C_LONG_DOUBLE_COMPLEX, "F" : MPI.C_FLOAT_COMPLEX, "D" : MPI.C_DOUBLE_COMPLEX, "G" : MPI.C_LONG_DOUBLE_COMPLEX, } cdef object getformat(Py_buffer* pybuf): cdef object obj = pybuf.obj # numpy.ndarray try: return obj.dtype.char except (AttributeError, TypeError): pass # array.array try: return obj.typecode except (AttributeError, TypeError): pass if pybuf.format is NULL: return "B" return PyUnicodeString_FromString(pybuf.format) cdef int bufflags = PyBUF_ANY_CONTIGUOUS | PyBUF_WRITABLE | PyBUF_FORMAT cdef class Buffer(object): def __cinit__(self, object data): if not PyObject_CheckBuffer(data): raise TypeError("object does not present buffer interface") cdef Py_buffer* pybuf = &self.pybuf PyObject_GetBuffer(data, pybuf, bufflags) self.dtype = TypeDict[getformat(pybuf)] self.items = pybuf.len / pybuf.itemsize def __dealloc__(self): PyBuffer_Release(&self.pybuf) music-1.1.16/pymusic/examples/0000755000175000017500000000000013571740114013233 500000000000000music-1.1.16/pymusic/examples/Makefile.am0000644000175000017500000000067613571617503015225 00000000000000## Process this file with Automake to create Makefile.in exdatadir = $(datadir)/@PACKAGE@-@PACKAGE_VERSION@/examples/python dist_exdata_DATA = eventlogger.py \ event.music \ eventsource.py \ helloworld.music \ messagelogger.py \ message.music \ message.py \ messagesource.py \ receivers.py \ senders.py \ test.music \ testsink.py \ testsource.py music-1.1.16/pymusic/examples/message.py0000644000175000017500000000075213571617503015162 00000000000000###################################################################### class Msg(object): def __init__(self, rank, step, time, when): self.rank = rank self.step = step self.time = time self.when = when def __str__(self): return "{}, {}, {}, {}". \ format(self.rank, self.step, self.time, self.when) ###################################################################### music-1.1.16/pymusic/examples/message.music0000644000175000017500000000024213571617503015644 00000000000000np=2 stoptime=5.0 timestep=0.5 pickled=1 buffer=1 events=50 errorAt=-1 [from] binary=./messagesource.py [to] binary=./messagelogger.py from.out -> to.in music-1.1.16/pymusic/examples/receivers.py0000755000175000017500000000125413571617503015526 00000000000000#! /usr/bin/env python3 import music import sys import numpy from itertools import takewhile, dropwhile setup = music.Setup() stoptime = setup.config("stoptime") timestep = setup.config("timestep") comm = setup.comm rank = comm.Get_rank() pin = setup.publishContInput("in") data = numpy.array([-2], dtype=numpy.int) pin.map(data, base=rank) runtime = setup.runtime(timestep) mintime = timestep maxtime = stoptime+timestep start = dropwhile(lambda t: t < mintime, runtime) times = takewhile(lambda t: t < maxtime, start) for time in times: srank = data[0] sys.stdout.write( "t={}\treceiver {}: received Hello from sender {}\n". format(time, rank, srank)) music-1.1.16/pymusic/examples/senders.py0000755000175000017500000000102213571617503015173 00000000000000#! /usr/bin/env python3 import music import sys import numpy from itertools import takewhile setup = music.Setup() stoptime = setup.config("stoptime") timestep = setup.config("timestep") comm = setup.comm rank = comm.Get_rank() out = setup.publishContOutput("out") data = numpy.array([-1], dtype=numpy.int) out.map(data, base=rank) runtime = setup.runtime(timestep) times = takewhile(lambda t: t < stoptime, runtime) for time in times: data[0] = rank sys.stdout.write("t={}\tsender {}: Hello!\n".format(time, rank)) music-1.1.16/pymusic/examples/eventlogger.py0000755000175000017500000000201413571617503016053 00000000000000#!/usr/bin/env python3 import music import sys from itertools import takewhile setup = music.Setup() stoptime = setup.config("stoptime") timestep = setup.config("timestep") buf = setup.config("buffer") errorAt = setup.config("errorAt") if errorAt < 0: errorAt = None comm = setup.comm rank = comm.Get_rank() size = comm.Get_size() inp = setup.publishEventInput("in") width = inp.width() local = width // size rest = width % size firstId = rank * local # distribute the rest: firstId += min(rank, rest) if rank < rest: local += 1 def eventerr(d): if errorAt is None: return if d >= errorAt: raise RuntimeError("Hey") time = None def eventfunc(d, t, i): eventerr(d) sys.stderr.write("Receive rank {}: Event ({}, {}) at {}\n". format(rank, i, d, time)) inp.map(eventfunc, music.Index.GLOBAL, base=firstId, size=local, maxBuffered=buf) runtime = music.Runtime(setup, timestep) times = takewhile(lambda t: t <= stoptime, runtime) for time in times: pass music-1.1.16/pymusic/examples/helloworld.music0000644000175000017500000000015513571617503016376 00000000000000np=2 stoptime=5.0 timestep=0.5 [from] binary=./senders.py [to] binary=./receivers.py from.out -> to.in music-1.1.16/pymusic/examples/messagesource.py0000755000175000017500000000175613571617503016413 00000000000000#!/usr/bin/env python3 import music from itertools import groupby, takewhile from message import Msg setup = music.Setup() stoptime = setup.config("stoptime") timestep = setup.config("timestep") buf = setup.config("buffer") events = setup.config("events") pickled = setup.config("pickled") != 0 comm = setup.comm rank = comm.Get_rank() size = comm.Get_size() out = setup.publishMessageOutput("out") out.map(maxBuffered=buf, pickled=pickled) eventgen = (i * stoptime / events for i in range(events) if i % size == rank) steps = groupby(eventgen, lambda t: int(t/timestep)) def step(): return next(steps, (None, None)) runtime = setup.runtime(timestep) times = takewhile(lambda t: t < stoptime, runtime) nextStep, nextEvents = step() for t in times: if int(t/timestep) != nextStep: continue for when in nextEvents: msg = Msg(rank, nextStep, t, when) if not pickled: msg = str(msg) out.insertMessage(when, msg) nextStep, nextEvents = step() music-1.1.16/pymusic/examples/testsource.py0000755000175000017500000000252613571617503015742 00000000000000#!/usr/bin/env python3 import music from itertools import groupby, takewhile import sys setup = music.Setup() stoptime = setup.config("stoptime") timestep = setup.config("timestep") buf = setup.config("buffer") events = setup.config("events") comm = setup.comm rank = comm.Get_rank() size = comm.Get_size() out = setup.publishEventOutput("out") width = out.width() local = width // size rest = width % size firstId = rank * local # distribute the rest: firstId += min(rank, rest) if rank < rest: local += 1 index = music.Index.LOCAL if index == music.Index.LOCAL: def mapout(i): return i else: def mapout(i): return i + firstId out.map(index, base=firstId, size=local, maxBuffered=buf) eventgen = ((mapout(i % local), i * stoptime / events) for i in range(events)) # index, time steps = groupby(eventgen, lambda i_t: int(i_t[1]/timestep)) def step(): return next(steps, (None, None)) runtime = setup.runtime(timestep) times = takewhile(lambda t: t < stoptime, runtime) nextStep, nextEvents = step() for t in times: if int(t/timestep) != nextStep: continue for i, when in nextEvents: sys.stderr.write("Insert rank {}: val={}, type={}, ind={}\n". format(rank, when, i, music.Index.tostr(index))) out.insertEvent(when, i, index) nextStep, nextEvents = step() music-1.1.16/pymusic/examples/test.music0000644000175000017500000000023013571617503015174 00000000000000np = 2 stoptime = 5.0 timestep = 0.5 buffer = 1 events = 20 [from] binary = ./testsource.py [to] binary = ./testsink.py from.out -> to.in [10] music-1.1.16/pymusic/examples/testsink.py0000755000175000017500000000171113571617503015401 00000000000000#!/usr/bin/env python3 import music import sys from itertools import takewhile setup = music.Setup() stoptime = setup.config("stoptime") timestep = setup.config("timestep") buf = setup.config("buffer") comm = setup.comm rank = comm.Get_rank() size = comm.Get_size() inp = setup.publishEventInput("in") width = inp.width() local = width // size rest = width % size firstId = rank * local # distribute the rest: firstId += min(rank, rest) if rank < rest: local += 1 def eventerr(d): if errorAt is None: return if d >= errorAt: raise RuntimeError("Hey") time = None def eventfunc(d, t, i): sys.stderr.write( "Receive rank {}: val={}, ind={}, type={}\n". format(rank, d, i, music.Index.tostr(t))) inp.map(eventfunc, music.Index.GLOBAL, base=firstId, size=local, maxBuffered=buf) runtime = music.Runtime(setup, timestep) times = takewhile(lambda t: t <= stoptime, runtime) for time in times: pass music-1.1.16/pymusic/examples/messagelogger.py0000755000175000017500000000150013571617503016355 00000000000000#!/usr/bin/env python3 import music import sys from itertools import takewhile setup = music.Setup() stoptime = setup.config("stoptime") timestep = setup.config("timestep") buf = setup.config("buffer") pickled = setup.config("pickled") != 0 errorAt = setup.config("errorAt") if errorAt < 0: errorAt = None comm = setup.comm rank = comm.Get_rank() size = comm.Get_size() def eventerr(d): if errorAt is None: return if d >= errorAt: raise RuntimeError("Hey") time = None def msgfunc(d, msg): eventerr(d) sys.stderr.write( "Receive rank {}: {} ({}) at {}\n". format(rank, type(msg), msg, d)) inp = setup.publishMessageInput("in") inp.map(msgfunc, maxBuffered=buf, pickled=pickled) runtime = setup.runtime(timestep) times = takewhile(lambda t: t <= stoptime, runtime) for time in times: pass music-1.1.16/pymusic/examples/eventsource.py0000755000175000017500000000234113571617503016077 00000000000000#!/usr/bin/env python3 import music from itertools import groupby, takewhile import sys setup = music.Setup() stoptime = setup.config("stoptime") timestep = setup.config("timestep") buf = setup.config("buffer") events = setup.config("events") comm = setup.comm rank = comm.Get_rank() size = comm.Get_size() out = setup.publishEventOutput("out") width = out.width() local = width // size rest = width % size firstId = rank * local # distribute the rest: firstId += min(rank, rest) if rank < rest: local += 1 out.map(music.Index.GLOBAL, base=firstId, size=local, maxBuffered=buf) eventgen = ((firstId + i % local, i * stoptime / events) for i in range(events)) # index, time steps = groupby(eventgen, lambda i_t: int(i_t[0]/timestep)) def step(): return next(steps, (None, None)) runtime = setup.runtime(timestep) times = takewhile(lambda t: t < stoptime, runtime) nextStep, nextEvents = step() for t in times: if int(t/timestep) != nextStep: continue for index, when in nextEvents: sys.stderr.write("Insert rank {}: Event ({}, {}) at {}\n". format(rank, index, when, t)) out.insertEvent(when, index, music.Index.GLOBAL) nextStep, nextEvents = step() music-1.1.16/pymusic/examples/event.music0000644000175000017500000000023113571617503015337 00000000000000np=2 stoptime=5.0 timestep=0.5 errorAt=-1 buffer=1 events=50 [from] binary=./eventsource.py [to] binary=./eventlogger.py from.out -> to.in [10] music-1.1.16/pymusic/examples/Makefile.in0000644000175000017500000003706713571626611015242 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 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@ subdir = pymusic/examples ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(dist_exdata_DATA) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(exdatadir)" DATA = $(dist_exdata_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in 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@ BINDIR = @BINDIR@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXAMPLESDIR = @EXAMPLESDIR@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ FGREP = @FGREP@ GREP = @GREP@ HAVE_PYTHON = @HAVE_PYTHON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LAUNCHSTYLE = @LAUNCHSTYLE@ 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@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPI_CFLAGS = @MPI_CFLAGS@ MPI_CXXFLAGS = @MPI_CXXFLAGS@ MPI_LDFLAGS = @MPI_LDFLAGS@ MPI_UTILS = @MPI_UTILS@ MUSICCONFIGDIR = @MUSICCONFIGDIR@ MUSIC_ANYSOURCE = @MUSIC_ANYSOURCE@ MUSIC_HAVE_LONG_LONG = @MUSIC_HAVE_LONG_LONG@ MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER = @MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER@ MUSIC_HAVE_SIZE_T = @MUSIC_HAVE_SIZE_T@ MUSIC_ISENDWAITALL = @MUSIC_ISENDWAITALL@ MUSIC_USE_MPI = @MUSIC_USE_MPI@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPTIONAL_UTILS = @OPTIONAL_UTILS@ 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@ PKGDATADIR = @PKGDATADIR@ PKGEXTRABINDIR = @PKGEXTRABINDIR@ PYBUFFER_CPPFLAGS = @PYBUFFER_CPPFLAGS@ PYBUFFER_CXXFLAGS = @PYBUFFER_CXXFLAGS@ PYEXECDIR = @PYEXECDIR@ PYMUSIC_CPPFLAGS = @PYMUSIC_CPPFLAGS@ PYMUSIC_CXXFLAGS = @PYMUSIC_CXXFLAGS@ PYMUSIC_SUBDIR = @PYMUSIC_SUBDIR@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ ROS_SUBDIR = @ROS_SUBDIR@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTDIR = @TESTDIR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ exdatadir = $(datadir)/@PACKAGE@-@PACKAGE_VERSION@/examples/python dist_exdata_DATA = eventlogger.py \ event.music \ eventsource.py \ helloworld.music \ messagelogger.py \ message.music \ message.py \ messagesource.py \ receivers.py \ senders.py \ test.music \ testsink.py \ testsource.py all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pymusic/examples/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu pymusic/examples/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dist_exdataDATA: $(dist_exdata_DATA) @$(NORMAL_INSTALL) @list='$(dist_exdata_DATA)'; test -n "$(exdatadir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(exdatadir)'"; \ $(MKDIR_P) "$(DESTDIR)$(exdatadir)" || 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)$(exdatadir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(exdatadir)" || exit $$?; \ done uninstall-dist_exdataDATA: @$(NORMAL_UNINSTALL) @list='$(dist_exdata_DATA)'; test -n "$(exdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(exdatadir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: 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 $(DATA) installdirs: for dir in "$(DESTDIR)$(exdatadir)"; 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 mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_exdataDATA 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 Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_exdataDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-dist_exdataDATA install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-dist_exdataDATA .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: music-1.1.16/pymusic/pymusic.cpp0000644000175000017500000277547013571631526013566 00000000000000/* Generated by Cython 0.29.14 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [ "mpi_compat.h", "music/music_c.h", "music/pymusic_c.h" ], "language": "c++", "name": "pymusic", "sources": [ "pymusic.pyx" ] }, "module_name": "pymusic" } END: Cython Metadata */ #define PY_SSIZE_T_CLEAN #include "Python.h" #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000) #error Cython requires Python 2.6+ or Python 3.3+. #else #define CYTHON_ABI "0_29_14" #define CYTHON_HEX_VERSION 0x001D0EF0 #define CYTHON_FUTURE_DIVISION 0 #include #ifndef offsetof #define offsetof(type, member) ( (size_t) & ((type*)0) -> member ) #endif #if !defined(WIN32) && !defined(MS_WINDOWS) #ifndef __stdcall #define __stdcall #endif #ifndef __cdecl #define __cdecl #endif #ifndef __fastcall #define __fastcall #endif #endif #ifndef DL_IMPORT #define DL_IMPORT(t) t #endif #ifndef DL_EXPORT #define DL_EXPORT(t) t #endif #define __PYX_COMMA , #ifndef HAVE_LONG_LONG #if PY_VERSION_HEX >= 0x02070000 #define HAVE_LONG_LONG #endif #endif #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #ifndef Py_HUGE_VAL #define Py_HUGE_VAL HUGE_VAL #endif #ifdef PYPY_VERSION #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 0 #undef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 0 #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #if PY_VERSION_HEX < 0x03050000 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #undef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #undef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 1 #undef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 0 #undef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 0 #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #undef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT 0 #undef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 0 #undef CYTHON_USE_DICT_VERSIONS #define CYTHON_USE_DICT_VERSIONS 0 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 #elif defined(PYSTON_VERSION) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 1 #define CYTHON_COMPILING_IN_CPYTHON 0 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 #undef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT 0 #undef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 0 #undef CYTHON_USE_DICT_VERSIONS #define CYTHON_USE_DICT_VERSIONS 0 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_PYSTON 0 #define CYTHON_COMPILING_IN_CPYTHON 1 #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif #if PY_VERSION_HEX < 0x02070000 #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #elif !defined(CYTHON_USE_PYTYPE_LOOKUP) #define CYTHON_USE_PYTYPE_LOOKUP 1 #endif #if PY_MAJOR_VERSION < 3 #undef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 0 #elif !defined(CYTHON_USE_ASYNC_SLOTS) #define CYTHON_USE_ASYNC_SLOTS 1 #endif #if PY_VERSION_HEX < 0x02070000 #undef CYTHON_USE_PYLONG_INTERNALS #define CYTHON_USE_PYLONG_INTERNALS 0 #elif !defined(CYTHON_USE_PYLONG_INTERNALS) #define CYTHON_USE_PYLONG_INTERNALS 1 #endif #ifndef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 1 #endif #ifndef CYTHON_USE_UNICODE_INTERNALS #define CYTHON_USE_UNICODE_INTERNALS 1 #endif #if PY_VERSION_HEX < 0x030300F0 #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 #elif !defined(CYTHON_USE_UNICODE_WRITER) #define CYTHON_USE_UNICODE_WRITER 1 #endif #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif #ifndef CYTHON_ASSUME_SAFE_MACROS #define CYTHON_ASSUME_SAFE_MACROS 1 #endif #ifndef CYTHON_UNPACK_METHODS #define CYTHON_UNPACK_METHODS 1 #endif #ifndef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 1 #endif #ifndef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 1 #endif #ifndef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000) #endif #ifndef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1) #endif #ifndef CYTHON_USE_DICT_VERSIONS #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1) #endif #ifndef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3) #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) #endif #if CYTHON_USE_PYLONG_INTERNALS #include "longintrepr.h" #undef SHIFT #undef BASE #undef MASK #ifdef SIZEOF_VOID_P enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) }; #endif #endif #ifndef __has_attribute #define __has_attribute(x) 0 #endif #ifndef __has_cpp_attribute #define __has_cpp_attribute(x) 0 #endif #ifndef CYTHON_RESTRICT #if defined(__GNUC__) #define CYTHON_RESTRICT __restrict__ #elif defined(_MSC_VER) && _MSC_VER >= 1400 #define CYTHON_RESTRICT __restrict #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define CYTHON_RESTRICT restrict #else #define CYTHON_RESTRICT #endif #endif #ifndef CYTHON_UNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) # define CYTHON_UNUSED __attribute__ ((__unused__)) # else # define CYTHON_UNUSED # endif #endif #ifndef CYTHON_MAYBE_UNUSED_VAR # if defined(__cplusplus) template void CYTHON_MAYBE_UNUSED_VAR( const T& ) { } # else # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x) # endif #endif #ifndef CYTHON_NCP_UNUSED # if CYTHON_COMPILING_IN_CPYTHON # define CYTHON_NCP_UNUSED # else # define CYTHON_NCP_UNUSED CYTHON_UNUSED # endif #endif #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None) #ifdef _MSC_VER #ifndef _MSC_STDINT_H_ #if _MSC_VER < 1300 typedef unsigned char uint8_t; typedef unsigned int uint32_t; #else typedef unsigned __int8 uint8_t; typedef unsigned __int32 uint32_t; #endif #endif #else #include #endif #ifndef CYTHON_FALLTHROUGH #if defined(__cplusplus) && __cplusplus >= 201103L #if __has_cpp_attribute(fallthrough) #define CYTHON_FALLTHROUGH [[fallthrough]] #elif __has_cpp_attribute(clang::fallthrough) #define CYTHON_FALLTHROUGH [[clang::fallthrough]] #elif __has_cpp_attribute(gnu::fallthrough) #define CYTHON_FALLTHROUGH [[gnu::fallthrough]] #endif #endif #ifndef CYTHON_FALLTHROUGH #if __has_attribute(fallthrough) #define CYTHON_FALLTHROUGH __attribute__((fallthrough)) #else #define CYTHON_FALLTHROUGH #endif #endif #if defined(__clang__ ) && defined(__apple_build_version__) #if __apple_build_version__ < 7000000 #undef CYTHON_FALLTHROUGH #define CYTHON_FALLTHROUGH #endif #endif #endif #ifndef __cplusplus #error "Cython files generated with the C++ option must be compiled with a C++ compiler." #endif #ifndef CYTHON_INLINE #if defined(__clang__) #define CYTHON_INLINE __inline__ __attribute__ ((__unused__)) #else #define CYTHON_INLINE inline #endif #endif template void __Pyx_call_destructor(T& x) { x.~T(); } template class __Pyx_FakeReference { public: __Pyx_FakeReference() : ptr(NULL) { } __Pyx_FakeReference(const T& ref) : ptr(const_cast(&ref)) { } T *operator->() { return ptr; } T *operator&() { return ptr; } operator T&() { return *ptr; } template bool operator ==(U other) { return *ptr == other; } template bool operator !=(U other) { return *ptr != other; } private: T *ptr; }; #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag) #define Py_OptimizeFlag 0 #endif #define __PYX_BUILD_PY_SSIZE_T "n" #define CYTHON_FORMAT_SSIZE_T "z" #if PY_MAJOR_VERSION < 3 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__" #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #define __Pyx_DefaultClassType PyClass_Type #else #define __Pyx_BUILTIN_MODULE_NAME "builtins" #if PY_VERSION_HEX >= 0x030800A4 && PY_VERSION_HEX < 0x030800B2 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #else #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\ PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) #endif #define __Pyx_DefaultClassType PyType_Type #endif #ifndef Py_TPFLAGS_CHECKTYPES #define Py_TPFLAGS_CHECKTYPES 0 #endif #ifndef Py_TPFLAGS_HAVE_INDEX #define Py_TPFLAGS_HAVE_INDEX 0 #endif #ifndef Py_TPFLAGS_HAVE_NEWBUFFER #define Py_TPFLAGS_HAVE_NEWBUFFER 0 #endif #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif #ifndef METH_STACKLESS #define METH_STACKLESS 0 #endif #if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL) #ifndef METH_FASTCALL #define METH_FASTCALL 0x80 #endif typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs); typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames); #else #define __Pyx_PyCFunctionFast _PyCFunctionFast #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords #endif #if CYTHON_FAST_PYCCALL #define __Pyx_PyFastCFunction_Check(func)\ ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS))))) #else #define __Pyx_PyFastCFunction_Check(func) 0 #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc) #define PyObject_Malloc(s) PyMem_Malloc(s) #define PyObject_Free(p) PyMem_Free(p) #define PyObject_Realloc(p) PyMem_Realloc(p) #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1 #define PyMem_RawMalloc(n) PyMem_Malloc(n) #define PyMem_RawRealloc(p, n) PyMem_Realloc(p, n) #define PyMem_RawFree(p) PyMem_Free(p) #endif #if CYTHON_COMPILING_IN_PYSTON #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno) #else #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0) #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno) #endif #if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000 #define __Pyx_PyThreadState_Current PyThreadState_GET() #elif PY_VERSION_HEX >= 0x03060000 #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet() #elif PY_VERSION_HEX >= 0x03000000 #define __Pyx_PyThreadState_Current PyThreadState_GET() #else #define __Pyx_PyThreadState_Current _PyThreadState_Current #endif #if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT) #include "pythread.h" #define Py_tss_NEEDS_INIT 0 typedef int Py_tss_t; static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) { *key = PyThread_create_key(); return 0; } static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) { Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t)); *key = Py_tss_NEEDS_INIT; return key; } static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) { PyObject_Free(key); } static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) { return *key != Py_tss_NEEDS_INIT; } static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) { PyThread_delete_key(*key); *key = Py_tss_NEEDS_INIT; } static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) { return PyThread_set_key_value(*key, value); } static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) { return PyThread_get_key_value(*key); } #endif #if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized) #define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n)) #else #define __Pyx_PyDict_NewPresized(n) PyDict_New() #endif #if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) #else #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y) #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y) #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS #define __Pyx_PyDict_GetItemStr(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash) #else #define __Pyx_PyDict_GetItemStr(dict, name) PyDict_GetItem(dict, name) #endif #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) #define CYTHON_PEP393_ENABLED 1 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\ 0 : _PyUnicode_Ready((PyObject *)(op))) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u) #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u) #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u) #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u))) #else #define CYTHON_PEP393_ENABLED 0 #define PyUnicode_1BYTE_KIND 1 #define PyUnicode_2BYTE_KIND 2 #define PyUnicode_4BYTE_KIND 4 #define __Pyx_PyUnicode_READY(op) (0) #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u) #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i])) #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111) #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE)) #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u)) #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch) #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u)) #endif #if CYTHON_COMPILING_IN_PYPY #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b) #else #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b) #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\ PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains) #define PyUnicode_Contains(u, s) PySequence_Contains(u, s) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check) #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type) #endif #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format) #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt) #endif #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b) #else #define __Pyx_PyString_Format(a, b) PyString_Format(a, b) #endif #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII) #define PyObject_ASCII(o) PyObject_Repr(o) #endif #if PY_MAJOR_VERSION >= 3 #define PyBaseString_Type PyUnicode_Type #define PyStringObject PyUnicodeObject #define PyString_Type PyUnicode_Type #define PyString_Check PyUnicode_Check #define PyString_CheckExact PyUnicode_CheckExact #define PyObject_Unicode PyObject_Str #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj) #else #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj)) #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj)) #endif #ifndef PySet_CheckExact #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type) #endif #if CYTHON_ASSUME_SAFE_MACROS #define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq) #else #define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq) #endif #if PY_MAJOR_VERSION >= 3 #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type #define PyInt_Check(op) PyLong_Check(op) #define PyInt_CheckExact(op) PyLong_CheckExact(op) #define PyInt_FromString PyLong_FromString #define PyInt_FromUnicode PyLong_FromUnicode #define PyInt_FromLong PyLong_FromLong #define PyInt_FromSize_t PyLong_FromSize_t #define PyInt_FromSsize_t PyLong_FromSsize_t #define PyInt_AsLong PyLong_AsLong #define PyInt_AS_LONG PyLong_AS_LONG #define PyInt_AsSsize_t PyLong_AsSsize_t #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask #define PyNumber_Int PyNumber_Long #endif #if PY_MAJOR_VERSION >= 3 #define PyBoolObject PyLongObject #endif #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY #ifndef PyUnicode_InternFromString #define PyUnicode_InternFromString(s) PyUnicode_FromString(s) #endif #endif #if PY_VERSION_HEX < 0x030200A4 typedef long Py_hash_t; #define __Pyx_PyInt_FromHash_t PyInt_FromLong #define __Pyx_PyInt_AsHash_t PyInt_AsLong #else #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t #endif #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : (Py_INCREF(func), func)) #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif #if CYTHON_USE_ASYNC_SLOTS #if PY_VERSION_HEX >= 0x030500B1 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async) #else #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved)) #endif #else #define __Pyx_PyType_AsAsync(obj) NULL #endif #ifndef __Pyx_PyAsyncMethodsStruct typedef struct { unaryfunc am_await; unaryfunc am_aiter; unaryfunc am_anext; } __Pyx_PyAsyncMethodsStruct; #endif #if defined(WIN32) || defined(MS_WINDOWS) #define _USE_MATH_DEFINES #endif #include #ifdef NAN #define __PYX_NAN() ((float) NAN) #else static CYTHON_INLINE float __PYX_NAN() { float value; memset(&value, 0xFF, sizeof(value)); return value; } #endif #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL) #define __Pyx_truncl trunc #else #define __Pyx_truncl truncl #endif #define __PYX_ERR(f_index, lineno, Ln_error) \ { \ __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \ } #ifndef __PYX_EXTERN_C #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif #endif #define __PYX_HAVE__pymusic #define __PYX_HAVE_API__pymusic /* Early includes */ #include "mpi_compat.h" #include "mpi.h" #include #include "ios" #include "new" #include "stdexcept" #include "typeinfo" #include #include #include "music/predict_rank.hh" #include "music/message.hh" #include "music/music_c.h" #include "music/event.hh" #include "music/data_map.hh" #include "music/index_map.hh" #include "music/permutation_index.hh" #include "music/linear_index.hh" #include "music/array_data.hh" #include "music/port.hh" #include "music/setup.hh" #include "music/runtime.hh" #include "music/pymusic_c.h" #include #include "pythread.h" #ifdef _OPENMP #include #endif /* _OPENMP */ #if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS) #define CYTHON_WITHOUT_ASSERTIONS #endif typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 1 #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #define __Pyx_uchar_cast(c) ((unsigned char)c) #define __Pyx_long_cast(x) ((long)x) #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\ (sizeof(type) < sizeof(Py_ssize_t)) ||\ (sizeof(type) > sizeof(Py_ssize_t) &&\ likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX) &&\ (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\ v == (type)PY_SSIZE_T_MIN))) ||\ (sizeof(type) == sizeof(Py_ssize_t) &&\ (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\ v == (type)PY_SSIZE_T_MAX))) ) static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) { return (size_t) i < (size_t) limit; } #if defined (__cplusplus) && __cplusplus >= 201103L #include #define __Pyx_sst_abs(value) std::abs(value) #elif SIZEOF_INT >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) abs(value) #elif SIZEOF_LONG >= SIZEOF_SIZE_T #define __Pyx_sst_abs(value) labs(value) #elif defined (_MSC_VER) #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value)) #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __Pyx_sst_abs(value) llabs(value) #elif defined (__GNUC__) #define __Pyx_sst_abs(value) __builtin_llabs(value) #else #define __Pyx_sst_abs(value) ((value<0) ? -value : value) #endif static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*); static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s)) #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l) #define __Pyx_PyBytes_FromString PyBytes_FromString #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #if PY_MAJOR_VERSION < 3 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize #else #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize #endif #define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s)) #define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s)) #define __Pyx_PyObject_AsWritableString(s) ((char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsWritableSString(s) ((signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(s)) #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s) #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s) #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s) #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) { const Py_UNICODE *u_end = u; while (*u_end++) ; return (size_t)(u_end - u - 1); } #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b); static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*); static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*); static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x); #define __Pyx_PySequence_Tuple(obj)\ (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj)) static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t); #if CYTHON_ASSUME_SAFE_MACROS #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x)) #else #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x) #endif #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x)) #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x)) #else #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x)) #endif #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x)) #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII static int __Pyx_sys_getdefaultencoding_not_ascii; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; PyObject* ascii_chars_u = NULL; PyObject* ascii_chars_b = NULL; const char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; if (strcmp(default_encoding_c, "ascii") == 0) { __Pyx_sys_getdefaultencoding_not_ascii = 0; } else { char ascii_chars[128]; int c; for (c = 0; c < 128; c++) { ascii_chars[c] = c; } __Pyx_sys_getdefaultencoding_not_ascii = 1; ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL); if (!ascii_chars_u) goto bad; ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL); if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) { PyErr_Format( PyExc_ValueError, "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.", default_encoding_c); goto bad; } Py_DECREF(ascii_chars_u); Py_DECREF(ascii_chars_b); } Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); Py_XDECREF(ascii_chars_u); Py_XDECREF(ascii_chars_b); return -1; } #endif #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL) #else #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL) #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT static char* __PYX_DEFAULT_STRING_ENCODING; static int __Pyx_init_sys_getdefaultencoding_params(void) { PyObject* sys; PyObject* default_encoding = NULL; char* default_encoding_c; sys = PyImport_ImportModule("sys"); if (!sys) goto bad; default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL); Py_DECREF(sys); if (!default_encoding) goto bad; default_encoding_c = PyBytes_AsString(default_encoding); if (!default_encoding_c) goto bad; __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1); if (!__PYX_DEFAULT_STRING_ENCODING) goto bad; strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c); Py_DECREF(default_encoding); return 0; bad: Py_XDECREF(default_encoding); return -1; } #endif #endif /* Test for GCC > 2.95 */ #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))) #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else /* !__GNUC__ or GCC < 2.95 */ #define likely(x) (x) #define unlikely(x) (x) #endif /* __GNUC__ */ static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; } static PyObject *__pyx_m = NULL; static PyObject *__pyx_d; static PyObject *__pyx_b; static PyObject *__pyx_cython_runtime = NULL; static PyObject *__pyx_empty_tuple; static PyObject *__pyx_empty_bytes; static PyObject *__pyx_empty_unicode; static int __pyx_lineno; static int __pyx_clineno = 0; static const char * __pyx_cfilenm= __FILE__; static const char *__pyx_filename; static const char *__pyx_f[] = { "pymusic.pyx", "stringsource", "array.pxd", "MPI.pxd", "type.pxd", "bool.pxd", "complex.pxd", "music/pybuffer.pxd", }; /*--- Type declarations ---*/ #ifndef _ARRAYARRAY_H struct arrayobject; typedef struct arrayobject arrayobject; #endif struct PyMPIStatusObject; struct PyMPIDatatypeObject; struct PyMPIRequestObject; struct PyMPIPrequestObject; struct PyMPIGrequestObject; struct PyMPIMessageObject; struct PyMPIOpObject; struct PyMPIGroupObject; struct PyMPIInfoObject; struct PyMPIErrhandlerObject; struct PyMPICommObject; struct PyMPIIntracommObject; struct PyMPITopocommObject; struct PyMPICartcommObject; struct PyMPIGraphcommObject; struct PyMPIDistgraphcommObject; struct PyMPIIntercommObject; struct PyMPIWinObject; struct PyMPIFileObject; struct __pyx_obj_5music_8pybuffer_Buffer; struct __pyx_obj_7pymusic_Setup; struct __pyx_obj_7pymusic_Runtime; struct __pyx_obj_7pymusic_Port; struct __pyx_obj_7pymusic_ContInputPort; struct __pyx_obj_7pymusic_ContOutputPort; struct __pyx_obj_7pymusic_EventInputPort; struct __pyx_obj_7pymusic_EventOutputPort; struct __pyx_obj_7pymusic_MessageInputPort; struct __pyx_obj_7pymusic_MessageOutputPort; struct __pyx_obj_7pymusic_DataMap; struct __pyx_obj_7pymusic_IndexMap; struct __pyx_obj_7pymusic_EventHandler; struct __pyx_obj_7pymusic_MessageHandler; struct __pyx_obj_7pymusic__Index; struct __pyx_obj_7pymusic___pyx_scope_struct____iter__; struct __pyx_t_7pymusic_Args; typedef struct __pyx_t_7pymusic_Args __pyx_t_7pymusic_Args; /* "pymusic.pyx":48 * # argv = [exec, op[1], ..., op[argc-1], NULL] * # """ * ctypedef struct Args: # <<<<<<<<<<<<<< * int argc * char** argv */ struct __pyx_t_7pymusic_Args { int argc; char **argv; }; /* "mpi4py/MPI.pxd":28 * ctypedef MPI_Count Count "MPI_Count" * * ctypedef public api class Status [ # <<<<<<<<<<<<<< * type PyMPIStatus_Type, * object PyMPIStatusObject, */ struct PyMPIStatusObject { PyObject_HEAD MPI_Status ob_mpi; unsigned int flags; }; typedef struct PyMPIStatusObject PyMPIStatusObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIStatus_Type; /* "mpi4py/MPI.pxd":35 * cdef unsigned flags * * ctypedef public api class Datatype [ # <<<<<<<<<<<<<< * type PyMPIDatatype_Type, * object PyMPIDatatypeObject, */ struct PyMPIDatatypeObject { PyObject_HEAD MPI_Datatype ob_mpi; unsigned int flags; }; typedef struct PyMPIDatatypeObject PyMPIDatatypeObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIDatatype_Type; /* "mpi4py/MPI.pxd":42 * cdef unsigned flags * * ctypedef public api class Request [ # <<<<<<<<<<<<<< * type PyMPIRequest_Type, * object PyMPIRequestObject, */ struct PyMPIRequestObject { PyObject_HEAD MPI_Request ob_mpi; unsigned int flags; PyObject *ob_buf; }; typedef struct PyMPIRequestObject PyMPIRequestObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIRequest_Type; /* "mpi4py/MPI.pxd":50 * cdef object ob_buf * * ctypedef public api class Prequest(Request) [ # <<<<<<<<<<<<<< * type PyMPIPrequest_Type, * object PyMPIPrequestObject, */ struct PyMPIPrequestObject { struct PyMPIRequestObject __pyx_base; }; typedef struct PyMPIPrequestObject PyMPIPrequestObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIPrequest_Type; /* "mpi4py/MPI.pxd":56 * pass * * ctypedef public api class Grequest(Request) [ # <<<<<<<<<<<<<< * type PyMPIGrequest_Type, * object PyMPIGrequestObject, */ struct PyMPIGrequestObject { struct PyMPIRequestObject __pyx_base; MPI_Request ob_grequest; }; typedef struct PyMPIGrequestObject PyMPIGrequestObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIGrequest_Type; /* "mpi4py/MPI.pxd":62 * cdef MPI_Request ob_grequest * * ctypedef public api class Message [ # <<<<<<<<<<<<<< * type PyMPIMessage_Type, * object PyMPIMessageObject, */ struct PyMPIMessageObject { PyObject_HEAD MPI_Message ob_mpi; unsigned int flags; PyObject *ob_buf; }; typedef struct PyMPIMessageObject PyMPIMessageObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIMessage_Type; /* "mpi4py/MPI.pxd":70 * cdef object ob_buf * * ctypedef public api class Op [ # <<<<<<<<<<<<<< * type PyMPIOp_Type, * object PyMPIOpObject, */ struct PyMPIOpObject { PyObject_HEAD MPI_Op ob_mpi; unsigned int flags; PyObject *(*ob_func)(PyObject *, PyObject *); int ob_usrid; }; typedef struct PyMPIOpObject PyMPIOpObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIOp_Type; /* "mpi4py/MPI.pxd":79 * cdef int ob_usrid * * ctypedef public api class Group [ # <<<<<<<<<<<<<< * type PyMPIGroup_Type, * object PyMPIGroupObject, */ struct PyMPIGroupObject { PyObject_HEAD MPI_Group ob_mpi; unsigned int flags; }; typedef struct PyMPIGroupObject PyMPIGroupObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIGroup_Type; /* "mpi4py/MPI.pxd":86 * cdef unsigned flags * * ctypedef public api class Info [ # <<<<<<<<<<<<<< * type PyMPIInfo_Type, * object PyMPIInfoObject, */ struct PyMPIInfoObject { PyObject_HEAD MPI_Info ob_mpi; unsigned int flags; }; typedef struct PyMPIInfoObject PyMPIInfoObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIInfo_Type; /* "mpi4py/MPI.pxd":93 * cdef unsigned flags * * ctypedef public api class Errhandler [ # <<<<<<<<<<<<<< * type PyMPIErrhandler_Type, * object PyMPIErrhandlerObject, */ struct PyMPIErrhandlerObject { PyObject_HEAD MPI_Errhandler ob_mpi; unsigned int flags; }; typedef struct PyMPIErrhandlerObject PyMPIErrhandlerObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIErrhandler_Type; /* "mpi4py/MPI.pxd":100 * cdef unsigned flags * * ctypedef public api class Comm [ # <<<<<<<<<<<<<< * type PyMPIComm_Type, * object PyMPICommObject, */ struct PyMPICommObject { PyObject_HEAD MPI_Comm ob_mpi; unsigned int flags; }; typedef struct PyMPICommObject PyMPICommObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIComm_Type; /* "mpi4py/MPI.pxd":107 * cdef unsigned flags * * ctypedef public api class Intracomm(Comm) [ # <<<<<<<<<<<<<< * type PyMPIIntracomm_Type, * object PyMPIIntracommObject, */ struct PyMPIIntracommObject { struct PyMPICommObject __pyx_base; }; typedef struct PyMPIIntracommObject PyMPIIntracommObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIIntracomm_Type; /* "mpi4py/MPI.pxd":113 * pass * * ctypedef public api class Topocomm(Intracomm) [ # <<<<<<<<<<<<<< * type PyMPITopocomm_Type, * object PyMPITopocommObject, */ struct PyMPITopocommObject { struct PyMPIIntracommObject __pyx_base; }; typedef struct PyMPITopocommObject PyMPITopocommObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPITopocomm_Type; /* "mpi4py/MPI.pxd":119 * pass * * ctypedef public api class Cartcomm(Topocomm) [ # <<<<<<<<<<<<<< * type PyMPICartcomm_Type, * object PyMPICartcommObject, */ struct PyMPICartcommObject { struct PyMPITopocommObject __pyx_base; }; typedef struct PyMPICartcommObject PyMPICartcommObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPICartcomm_Type; /* "mpi4py/MPI.pxd":125 * pass * * ctypedef public api class Graphcomm(Topocomm) [ # <<<<<<<<<<<<<< * type PyMPIGraphcomm_Type, * object PyMPIGraphcommObject, */ struct PyMPIGraphcommObject { struct PyMPITopocommObject __pyx_base; }; typedef struct PyMPIGraphcommObject PyMPIGraphcommObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIGraphcomm_Type; /* "mpi4py/MPI.pxd":131 * pass * * ctypedef public api class Distgraphcomm(Topocomm) [ # <<<<<<<<<<<<<< * type PyMPIDistgraphcomm_Type, * object PyMPIDistgraphcommObject, */ struct PyMPIDistgraphcommObject { struct PyMPITopocommObject __pyx_base; }; typedef struct PyMPIDistgraphcommObject PyMPIDistgraphcommObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIDistgraphcomm_Type; /* "mpi4py/MPI.pxd":137 * pass * * ctypedef public api class Intercomm(Comm) [ # <<<<<<<<<<<<<< * type PyMPIIntercomm_Type, * object PyMPIIntercommObject, */ struct PyMPIIntercommObject { struct PyMPICommObject __pyx_base; }; typedef struct PyMPIIntercommObject PyMPIIntercommObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIIntercomm_Type; /* "mpi4py/MPI.pxd":143 * pass * * ctypedef public api class Win [ # <<<<<<<<<<<<<< * type PyMPIWin_Type, * object PyMPIWinObject, */ struct PyMPIWinObject { PyObject_HEAD MPI_Win ob_mpi; unsigned int flags; PyObject *ob_mem; }; typedef struct PyMPIWinObject PyMPIWinObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIWin_Type; /* "mpi4py/MPI.pxd":151 * cdef object ob_mem * * ctypedef public api class File [ # <<<<<<<<<<<<<< * type PyMPIFile_Type, * object PyMPIFileObject, */ struct PyMPIFileObject { PyObject_HEAD MPI_File ob_mpi; unsigned int flags; }; typedef struct PyMPIFileObject PyMPIFileObject; __PYX_EXTERN_C DL_EXPORT(PyTypeObject) PyMPIFile_Type; /* "music/pybuffer.pxd":49 * int PyBuffer_FillInfo(Py_buffer*, object, void*, Py_ssize_t, bint, int) except -1 * * cdef class Buffer(object): # <<<<<<<<<<<<<< * cdef Py_buffer pybuf * cdef MPI.Datatype dtype */ struct __pyx_obj_5music_8pybuffer_Buffer { PyObject_HEAD Py_buffer pybuf; struct PyMPIDatatypeObject *dtype; Py_ssize_t items; }; /* "pymusic.pxd":173 * ########################################################### * * cdef class Setup(object): # <<<<<<<<<<<<<< * cdef CSetup* ptr * cdef list argv */ struct __pyx_obj_7pymusic_Setup { PyObject_HEAD struct __pyx_vtabstruct_7pymusic_Setup *__pyx_vtab; MUSIC::Setup *ptr; PyObject *argv; int provided; struct PyMPIIntracommObject *comm; PyObject *ports; }; /* "pymusic.pxd":185 * ########################################################### * * cdef class Runtime(object): # <<<<<<<<<<<<<< * cdef CRuntime* ptr * cdef readonly MPI.Intracomm comm */ struct __pyx_obj_7pymusic_Runtime { PyObject_HEAD MUSIC::Runtime *ptr; struct PyMPIIntracommObject *comm; PyObject *ports; }; /* "pymusic.pxd":192 * ########################################################### * * cdef class Port(object): # <<<<<<<<<<<<<< * cdef CPort* ptr * cpdef object null(self) */ struct __pyx_obj_7pymusic_Port { PyObject_HEAD struct __pyx_vtabstruct_7pymusic_Port *__pyx_vtab; MUSIC::Port *ptr; }; /* "pymusic.pxd":199 * ## a capital crime ^^^^ * * cdef class ContInputPort(Port): # <<<<<<<<<<<<<< * pass * */ struct __pyx_obj_7pymusic_ContInputPort { struct __pyx_obj_7pymusic_Port __pyx_base; }; /* "pymusic.pxd":202 * pass * * cdef class ContOutputPort(Port): # <<<<<<<<<<<<<< * pass * */ struct __pyx_obj_7pymusic_ContOutputPort { struct __pyx_obj_7pymusic_Port __pyx_base; }; /* "pymusic.pxd":205 * pass * * cdef class EventInputPort(Port): # <<<<<<<<<<<<<< * cdef set events * cpdef object null(self) */ struct __pyx_obj_7pymusic_EventInputPort { struct __pyx_obj_7pymusic_Port __pyx_base; PyObject *events; }; /* "pymusic.pxd":209 * cpdef object null(self) * * cdef class EventOutputPort(Port): # <<<<<<<<<<<<<< * pass * */ struct __pyx_obj_7pymusic_EventOutputPort { struct __pyx_obj_7pymusic_Port __pyx_base; }; /* "pymusic.pxd":212 * pass * * cdef class MessageInputPort(Port): # <<<<<<<<<<<<<< * cdef set events * cpdef object null(self) */ struct __pyx_obj_7pymusic_MessageInputPort { struct __pyx_obj_7pymusic_Port __pyx_base; PyObject *events; }; /* "pymusic.pxd":216 * cpdef object null(self) * * cdef class MessageOutputPort(Port): # <<<<<<<<<<<<<< * cdef bint pickled * */ struct __pyx_obj_7pymusic_MessageOutputPort { struct __pyx_obj_7pymusic_Port __pyx_base; int pickled; }; /* "pymusic.pxd":223 * from music.pybuffer cimport Buffer * * cdef class DataMap(object): # <<<<<<<<<<<<<< * cdef CDataMap* ptr * cdef Buffer buf */ struct __pyx_obj_7pymusic_DataMap { PyObject_HEAD MUSIC::DataMap *ptr; struct __pyx_obj_5music_8pybuffer_Buffer *buf; }; /* "pymusic.pxd":227 * cdef Buffer buf * * cdef class IndexMap(object): # <<<<<<<<<<<<<< * cdef CIndexMap* ptr * cdef Buffer buf */ struct __pyx_obj_7pymusic_IndexMap { PyObject_HEAD MUSIC::IndexMap *ptr; struct __pyx_obj_5music_8pybuffer_Buffer *buf; }; /* "pymusic.pxd":231 * cdef Buffer buf * * cdef class EventHandler: # <<<<<<<<<<<<<< * cdef CEventHandler* ptr * cdef object func */ struct __pyx_obj_7pymusic_EventHandler { PyObject_HEAD MUSIC::EventHandler *ptr; PyObject *func; }; /* "pymusic.pxd":235 * cdef object func * * cdef class MessageHandler: # <<<<<<<<<<<<<< * cdef CMessageHandler* ptr * cdef object func */ struct __pyx_obj_7pymusic_MessageHandler { PyObject_HEAD MUSIC::MessageHandler *ptr; PyObject *func; }; /* "pymusic.pyx":636 * def __dealloc__(self): del self.ptr * * cdef class _Index: # <<<<<<<<<<<<<< * """ * Internal: the type of the variable Index */ struct __pyx_obj_7pymusic__Index { PyObject_HEAD int GLOBAL; int LOCAL; PyObject *backmap; }; /* "pymusic.pyx":538 * def tick(self): tick(self.ptr) * * def __iter__(self): # <<<<<<<<<<<<<< * cdef CRuntime* ptr = self.ptr * while True: */ struct __pyx_obj_7pymusic___pyx_scope_struct____iter__ { PyObject_HEAD MUSIC::Runtime *__pyx_v_ptr; struct __pyx_obj_7pymusic_Runtime *__pyx_v_self; }; /* "pymusic.pyx":348 * * import sys * cdef class Setup(object): # <<<<<<<<<<<<<< * """ * API to setup the music interface. */ struct __pyx_vtabstruct_7pymusic_Setup { PyObject *(*null)(struct __pyx_obj_7pymusic_Setup *); struct PyMPIIntracommObject *(*getcomm)(struct __pyx_obj_7pymusic_Setup *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_7pymusic_Setup *__pyx_vtabptr_7pymusic_Setup; /* "pymusic.pyx":90 * ########################################################### * * cdef class Port(object): # <<<<<<<<<<<<<< * """ * Base Port class. */ struct __pyx_vtabstruct_7pymusic_Port { PyObject *(*null)(struct __pyx_obj_7pymusic_Port *, int __pyx_skip_dispatch); }; static struct __pyx_vtabstruct_7pymusic_Port *__pyx_vtabptr_7pymusic_Port; /* "pymusic.pyx":138 * return self.ptr.width() * * cdef class ContInputPort(Port): # <<<<<<<<<<<<<< * """ * ContInputPort maps data indices between sources and sinks. This is */ struct __pyx_vtabstruct_7pymusic_ContInputPort { struct __pyx_vtabstruct_7pymusic_Port __pyx_base; }; static struct __pyx_vtabstruct_7pymusic_ContInputPort *__pyx_vtabptr_7pymusic_ContInputPort; /* "pymusic.pyx":178 * mapImpl(ptr, d.ptr, delay, maxBuffered, interpolate) * * cdef class ContOutputPort(Port): # <<<<<<<<<<<<<< * """ * ContOutputPort maps data indices between sources and sinks. This */ struct __pyx_vtabstruct_7pymusic_ContOutputPort { struct __pyx_vtabstruct_7pymusic_Port __pyx_base; }; static struct __pyx_vtabstruct_7pymusic_ContOutputPort *__pyx_vtabptr_7pymusic_ContOutputPort; /* "pymusic.pyx":207 * mapImpl(ptr, d.ptr, maxBuffered) * * cdef class EventInputPort(Port): # <<<<<<<<<<<<<< * """ * Event sink. Maps 'events' to handlers. Events are spike-like */ struct __pyx_vtabstruct_7pymusic_EventInputPort { struct __pyx_vtabstruct_7pymusic_Port __pyx_base; }; static struct __pyx_vtabstruct_7pymusic_EventInputPort *__pyx_vtabptr_7pymusic_EventInputPort; /* "pymusic.pyx":252 * self.events.add(eh) * * cdef class EventOutputPort(Port): # <<<<<<<<<<<<<< * """ * Map events from this sink. See EventInputPort for description of */ struct __pyx_vtabstruct_7pymusic_EventOutputPort { struct __pyx_vtabstruct_7pymusic_Port __pyx_base; }; static struct __pyx_vtabstruct_7pymusic_EventOutputPort *__pyx_vtabptr_7pymusic_EventOutputPort; /* "pymusic.pyx":277 * insertEventImpl(ptr, time, index) * * cdef class MessageInputPort(Port): # <<<<<<<<<<<<<< * """ * Maps 'events' to handlers. */ struct __pyx_vtabstruct_7pymusic_MessageInputPort { struct __pyx_vtabstruct_7pymusic_Port __pyx_base; }; static struct __pyx_vtabstruct_7pymusic_MessageInputPort *__pyx_vtabptr_7pymusic_MessageInputPort; /* "pymusic.pyx":313 * self.events.add(eh) * * cdef class MessageOutputPort(Port): # <<<<<<<<<<<<<< * """ * The source of "messages". A message is a python object that is */ struct __pyx_vtabstruct_7pymusic_MessageOutputPort { struct __pyx_vtabstruct_7pymusic_Port __pyx_base; }; static struct __pyx_vtabstruct_7pymusic_MessageOutputPort *__pyx_vtabptr_7pymusic_MessageOutputPort; /* --- Runtime support code (head) --- */ /* Refnanny.proto */ #ifndef CYTHON_REFNANNY #define CYTHON_REFNANNY 0 #endif #if CYTHON_REFNANNY typedef struct { void (*INCREF)(void*, PyObject*, int); void (*DECREF)(void*, PyObject*, int); void (*GOTREF)(void*, PyObject*, int); void (*GIVEREF)(void*, PyObject*, int); void* (*SetupContext)(const char*, int, const char*); void (*FinishContext)(void**); } __Pyx_RefNannyAPIStruct; static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL; static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL; #ifdef WITH_THREAD #define __Pyx_RefNannySetupContext(name, acquire_gil)\ if (acquire_gil) {\ PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ PyGILState_Release(__pyx_gilstate_save);\ } else {\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\ } #else #define __Pyx_RefNannySetupContext(name, acquire_gil)\ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__) #endif #define __Pyx_RefNannyFinishContext()\ __Pyx_RefNanny->FinishContext(&__pyx_refnanny) #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__) #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0) #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0) #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0) #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0) #else #define __Pyx_RefNannyDeclarations #define __Pyx_RefNannySetupContext(name, acquire_gil) #define __Pyx_RefNannyFinishContext() #define __Pyx_INCREF(r) Py_INCREF(r) #define __Pyx_DECREF(r) Py_DECREF(r) #define __Pyx_GOTREF(r) #define __Pyx_GIVEREF(r) #define __Pyx_XINCREF(r) Py_XINCREF(r) #define __Pyx_XDECREF(r) Py_XDECREF(r) #define __Pyx_XGOTREF(r) #define __Pyx_XGIVEREF(r) #endif #define __Pyx_XDECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_XDECREF(tmp);\ } while (0) #define __Pyx_DECREF_SET(r, v) do {\ PyObject *tmp = (PyObject *) r;\ r = v; __Pyx_DECREF(tmp);\ } while (0) #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0) #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0) /* PyObjectGetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) #endif /* GetBuiltinName.proto */ static PyObject *__Pyx_GetBuiltinName(PyObject *name); /* PyDictVersioning.proto */ #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS #define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1) #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag) #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\ (version_var) = __PYX_GET_DICT_VERSION(dict);\ (cache_var) = (value); #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\ static PY_UINT64_T __pyx_dict_version = 0;\ static PyObject *__pyx_dict_cached_value = NULL;\ if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\ (VAR) = __pyx_dict_cached_value;\ } else {\ (VAR) = __pyx_dict_cached_value = (LOOKUP);\ __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\ }\ } static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj); static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj); static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version); #else #define __PYX_GET_DICT_VERSION(dict) (0) #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var) #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP); #endif /* GetModuleGlobalName.proto */ #if CYTHON_USE_DICT_VERSIONS #define __Pyx_GetModuleGlobalName(var, name) {\ static PY_UINT64_T __pyx_dict_version = 0;\ static PyObject *__pyx_dict_cached_value = NULL;\ (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\ (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\ __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\ } #define __Pyx_GetModuleGlobalNameUncached(var, name) {\ PY_UINT64_T __pyx_dict_version;\ PyObject *__pyx_dict_cached_value;\ (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\ } static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value); #else #define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name) #define __Pyx_GetModuleGlobalNameUncached(var, name) (var) = __Pyx__GetModuleGlobalName(name) static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name); #endif /* PyFunctionFastCall.proto */ #if CYTHON_FAST_PYCALL #define __Pyx_PyFunction_FastCall(func, args, nargs)\ __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL) #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs); #else #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs) #endif #define __Pyx_BUILD_ASSERT_EXPR(cond)\ (sizeof(char [1 - 2*!(cond)]) - 1) #ifndef Py_MEMBER_SIZE #define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member) #endif static size_t __pyx_pyframe_localsplus_offset = 0; #include "frameobject.h" #define __Pxy_PyFrame_Initialize_Offsets()\ ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\ (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus))) #define __Pyx_PyFrame_GetLocalsplus(frame)\ (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset)) #endif /* PyCFunctionFastCall.proto */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs); #else #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL) #endif /* PyObjectCall.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); #else #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) #endif /* RaiseArgTupleInvalid.proto */ static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /* RaiseDoubleKeywords.proto */ static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /* ParseKeywords.proto */ static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\ PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\ const char* function_name); /* PyObjectCall2Args.proto */ static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2); /* PyObjectCallMethO.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); #endif /* PyObjectCallOneArg.proto */ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); /* PyThreadStateGet.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate; #define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current; #define __Pyx_PyErr_Occurred() __pyx_tstate->curexc_type #else #define __Pyx_PyThreadState_declare #define __Pyx_PyThreadState_assign #define __Pyx_PyErr_Occurred() PyErr_Occurred() #endif /* PyErrFetchRestore.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL) #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb) #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb) #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #if CYTHON_COMPILING_IN_CPYTHON #define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL)) #else #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc) #endif #else #define __Pyx_PyErr_Clear() PyErr_Clear() #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc) #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb) #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb) #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb) #endif /* RaiseException.proto */ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); /* GetItemInt.proto */ #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\ (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\ __Pyx_GetItemInt_Generic(o, to_py_func(i)))) #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL)) static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, int wraparound, int boundscheck); static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j); static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, int wraparound, int boundscheck); /* PyObjectCallNoArg.proto */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); #else #define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL) #endif /* GetTopmostException.proto */ #if CYTHON_USE_EXC_INFO_STACK static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate); #endif /* SaveResetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); #else #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb) #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb) #endif /* GetException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb) static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); #endif /* WriteUnraisableException.proto */ static void __Pyx_WriteUnraisable(const char *name, int clineno, int lineno, const char *filename, int full_traceback, int nogil); /* ArgTypeTest.proto */ #define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\ ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\ __Pyx__ArgTypeTest(obj, type, name, exact)) static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact); /* KeywordStringCheck.proto */ static int __Pyx_CheckKeywordStrings(PyObject *kwdict, const char* function_name, int kw_allowed); /* ListCompAppend.proto */ #if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) { PyListObject* L = (PyListObject*) list; Py_ssize_t len = Py_SIZE(list); if (likely(L->allocated > len)) { Py_INCREF(x); PyList_SET_ITEM(list, len, x); Py_SIZE(list) = len+1; return 0; } return PyList_Append(list, x); } #else #define __Pyx_ListComp_Append(L,x) PyList_Append(L,x) #endif /* SwapException.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb) static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); #else static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb); #endif /* IterFinish.proto */ static CYTHON_INLINE int __Pyx_IterFinish(void); /* set_iter.proto */ static CYTHON_INLINE PyObject* __Pyx_set_iterator(PyObject* iterable, int is_set, Py_ssize_t* p_orig_length, int* p_source_is_set); static CYTHON_INLINE int __Pyx_set_iter_next( PyObject* iter_obj, Py_ssize_t orig_length, Py_ssize_t* ppos, PyObject **value, int source_is_set); /* PyObjectSetAttrStr.proto */ #if CYTHON_USE_TYPE_SLOTS #define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o, n, NULL) static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value); #else #define __Pyx_PyObject_DelAttrStr(o,n) PyObject_DelAttr(o,n) #define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v) #endif /* ExtTypeTest.proto */ static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /* PyErrExceptionMatches.proto */ #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err); #else #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) #endif /* DictGetItem.proto */ #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key); #define __Pyx_PyObject_Dict_GetItem(obj, name)\ (likely(PyDict_CheckExact(obj)) ?\ __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name)) #else #define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key) #define __Pyx_PyObject_Dict_GetItem(obj, name) PyObject_GetItem(obj, name) #endif /* CallNextTpTraverse.proto */ static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, traverseproc current_tp_traverse); /* CallNextTpClear.proto */ static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_dealloc); /* IncludeStringH.proto */ #include /* PyObject_GenericGetAttrNoDict.proto */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr #endif /* PyObject_GenericGetAttr.proto */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name); #else #define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr #endif /* SetVTable.proto */ static int __Pyx_SetVtable(PyObject *dict, void *vtable); /* SetupReduce.proto */ static int __Pyx_setup_reduce(PyObject* type_obj); /* TypeImport.proto */ #ifndef __PYX_HAVE_RT_ImportType_proto #define __PYX_HAVE_RT_ImportType_proto enum __Pyx_ImportType_CheckSize { __Pyx_ImportType_CheckSize_Error = 0, __Pyx_ImportType_CheckSize_Warn = 1, __Pyx_ImportType_CheckSize_Ignore = 2 }; static PyTypeObject *__Pyx_ImportType(PyObject* module, const char *module_name, const char *class_name, size_t size, enum __Pyx_ImportType_CheckSize check_size); #endif /* Import.proto */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /* ImportFrom.proto */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); /* CalculateMetaclass.proto */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases); /* Py3ClassCreate.proto */ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc); static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass); /* FetchCommonType.proto */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); /* CythonFunction.proto */ #define __Pyx_CyFunction_USED 1 #define __Pyx_CYFUNCTION_STATICMETHOD 0x01 #define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 #define __Pyx_CYFUNCTION_CCLASS 0x04 #define __Pyx_CyFunction_GetClosure(f)\ (((__pyx_CyFunctionObject *) (f))->func_closure) #define __Pyx_CyFunction_GetClassObj(f)\ (((__pyx_CyFunctionObject *) (f))->func_classobj) #define __Pyx_CyFunction_Defaults(type, f)\ ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) #define __Pyx_CyFunction_SetDefaultsGetter(f, g)\ ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) typedef struct { PyCFunctionObject func; #if PY_VERSION_HEX < 0x030500A0 PyObject *func_weakreflist; #endif PyObject *func_dict; PyObject *func_name; PyObject *func_qualname; PyObject *func_doc; PyObject *func_globals; PyObject *func_code; PyObject *func_closure; PyObject *func_classobj; void *defaults; int defaults_pyobjects; int flags; PyObject *defaults_tuple; PyObject *defaults_kwdict; PyObject *(*defaults_getter)(PyObject *); PyObject *func_annotations; } __pyx_CyFunctionObject; static PyTypeObject *__pyx_CyFunctionType = 0; #define __Pyx_CyFunction_Check(obj) (__Pyx_TypeCheck(obj, __pyx_CyFunctionType)) #define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)\ __Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code) static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *self, PyObject *module, PyObject *globals, PyObject* code); static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m, size_t size, int pyobjects); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, PyObject *tuple); static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, PyObject *dict); static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, PyObject *dict); static int __pyx_CyFunction_init(void); /* SetNameInClass.proto */ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 #define __Pyx_SetNameInClass(ns, name, value)\ (likely(PyDict_CheckExact(ns)) ? _PyDict_SetItem_KnownHash(ns, name, value, ((PyASCIIObject *) name)->hash) : PyObject_SetItem(ns, name, value)) #elif CYTHON_COMPILING_IN_CPYTHON #define __Pyx_SetNameInClass(ns, name, value)\ (likely(PyDict_CheckExact(ns)) ? PyDict_SetItem(ns, name, value) : PyObject_SetItem(ns, name, value)) #else #define __Pyx_SetNameInClass(ns, name, value) PyObject_SetItem(ns, name, value) #endif /* CLineInTraceback.proto */ #ifdef CYTHON_CLINE_IN_TRACEBACK #define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0) #else static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line); #endif /* CodeObjectCache.proto */ typedef struct { PyCodeObject* code_object; int code_line; } __Pyx_CodeObjectCacheEntry; struct __Pyx_CodeObjectCache { int count; int max_count; __Pyx_CodeObjectCacheEntry* entries; }; static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL}; static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); static PyCodeObject *__pyx_find_code_object(int code_line); static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); /* AddTraceback.proto */ static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename); /* ArrayAPI.proto */ #ifndef _ARRAYARRAY_H #define _ARRAYARRAY_H typedef struct arraydescr { int typecode; int itemsize; PyObject * (*getitem)(struct arrayobject *, Py_ssize_t); int (*setitem)(struct arrayobject *, Py_ssize_t, PyObject *); #if PY_MAJOR_VERSION >= 3 char *formats; #endif } arraydescr; struct arrayobject { PyObject_HEAD Py_ssize_t ob_size; union { char *ob_item; float *as_floats; double *as_doubles; int *as_ints; unsigned int *as_uints; unsigned char *as_uchars; signed char *as_schars; char *as_chars; unsigned long *as_ulongs; long *as_longs; #if PY_MAJOR_VERSION >= 3 unsigned long long *as_ulonglongs; long long *as_longlongs; #endif short *as_shorts; unsigned short *as_ushorts; Py_UNICODE *as_pyunicodes; void *as_voidptr; } data; Py_ssize_t allocated; struct arraydescr *ob_descr; PyObject *weakreflist; #if PY_MAJOR_VERSION >= 3 int ob_exports; #endif }; #ifndef NO_NEWARRAY_INLINE static CYTHON_INLINE PyObject * newarrayobject(PyTypeObject *type, Py_ssize_t size, struct arraydescr *descr) { arrayobject *op; size_t nbytes; if (size < 0) { PyErr_BadInternalCall(); return NULL; } nbytes = size * descr->itemsize; if (nbytes / descr->itemsize != (size_t)size) { return PyErr_NoMemory(); } op = (arrayobject *) type->tp_alloc(type, 0); if (op == NULL) { return NULL; } op->ob_descr = descr; op->allocated = size; op->weakreflist = NULL; op->ob_size = size; if (size <= 0) { op->data.ob_item = NULL; } else { op->data.ob_item = PyMem_NEW(char, nbytes); if (op->data.ob_item == NULL) { Py_DECREF(op); return PyErr_NoMemory(); } } return (PyObject *) op; } #else PyObject* newarrayobject(PyTypeObject *type, Py_ssize_t size, struct arraydescr *descr); #endif static CYTHON_INLINE int resize(arrayobject *self, Py_ssize_t n) { void *items = (void*) self->data.ob_item; PyMem_Resize(items, char, (size_t)(n * self->ob_descr->itemsize)); if (items == NULL) { PyErr_NoMemory(); return -1; } self->data.ob_item = (char*) items; self->ob_size = n; self->allocated = n; return 0; } static CYTHON_INLINE int resize_smart(arrayobject *self, Py_ssize_t n) { void *items = (void*) self->data.ob_item; Py_ssize_t newsize; if (n < self->allocated && n*4 > self->allocated) { self->ob_size = n; return 0; } newsize = n + (n / 2) + 1; if (newsize <= n) { PyErr_NoMemory(); return -1; } PyMem_Resize(items, char, (size_t)(newsize * self->ob_descr->itemsize)); if (items == NULL) { PyErr_NoMemory(); return -1; } self->data.ob_item = (char*) items; self->ob_size = n; self->allocated = newsize; return 0; } #endif /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); /* CIntToPy.proto */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_MUSIC_3a__3a_Index_3a__3a_Type(MUSIC::Index::Type value); /* CppExceptionConversion.proto */ #ifndef __Pyx_CppExn2PyErr #include #include #include #include static void __Pyx_CppExn2PyErr() { try { if (PyErr_Occurred()) ; // let the latest Python exn pass through and ignore the current one else throw; } catch (const std::bad_alloc& exn) { PyErr_SetString(PyExc_MemoryError, exn.what()); } catch (const std::bad_cast& exn) { PyErr_SetString(PyExc_TypeError, exn.what()); } catch (const std::bad_typeid& exn) { PyErr_SetString(PyExc_TypeError, exn.what()); } catch (const std::domain_error& exn) { PyErr_SetString(PyExc_ValueError, exn.what()); } catch (const std::invalid_argument& exn) { PyErr_SetString(PyExc_ValueError, exn.what()); } catch (const std::ios_base::failure& exn) { PyErr_SetString(PyExc_IOError, exn.what()); } catch (const std::out_of_range& exn) { PyErr_SetString(PyExc_IndexError, exn.what()); } catch (const std::overflow_error& exn) { PyErr_SetString(PyExc_OverflowError, exn.what()); } catch (const std::range_error& exn) { PyErr_SetString(PyExc_ArithmeticError, exn.what()); } catch (const std::underflow_error& exn) { PyErr_SetString(PyExc_ArithmeticError, exn.what()); } catch (const std::exception& exn) { PyErr_SetString(PyExc_RuntimeError, exn.what()); } catch (...) { PyErr_SetString(PyExc_RuntimeError, "Unknown exception"); } } #endif /* CIntFromPy.proto */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE MUSIC::Index::Type __Pyx_PyInt_As_MUSIC_3a__3a_Index_3a__3a_Type(PyObject *); /* CIntFromPy.proto */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); /* FastTypeChecks.proto */ #if CYTHON_COMPILING_IN_CPYTHON #define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type) static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b); static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type); static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2); #else #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type) #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type) #define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2)) #endif #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception) /* PyObjectGetMethod.proto */ static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method); /* PyObjectCallMethod1.proto */ static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg); /* CoroutineBase.proto */ typedef PyObject *(*__pyx_coroutine_body_t)(PyObject *, PyThreadState *, PyObject *); #if CYTHON_USE_EXC_INFO_STACK #define __Pyx_ExcInfoStruct _PyErr_StackItem #else typedef struct { PyObject *exc_type; PyObject *exc_value; PyObject *exc_traceback; } __Pyx_ExcInfoStruct; #endif typedef struct { PyObject_HEAD __pyx_coroutine_body_t body; PyObject *closure; __Pyx_ExcInfoStruct gi_exc_state; PyObject *gi_weakreflist; PyObject *classobj; PyObject *yieldfrom; PyObject *gi_name; PyObject *gi_qualname; PyObject *gi_modulename; PyObject *gi_code; int resume_label; char is_running; } __pyx_CoroutineObject; static __pyx_CoroutineObject *__Pyx__Coroutine_New( PyTypeObject *type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure, PyObject *name, PyObject *qualname, PyObject *module_name); static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit( __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure, PyObject *name, PyObject *qualname, PyObject *module_name); static CYTHON_INLINE void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *self); static int __Pyx_Coroutine_clear(PyObject *self); static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value); static PyObject *__Pyx_Coroutine_Close(PyObject *self); static PyObject *__Pyx_Coroutine_Throw(PyObject *gen, PyObject *args); #if CYTHON_USE_EXC_INFO_STACK #define __Pyx_Coroutine_SwapException(self) #define __Pyx_Coroutine_ResetAndClearException(self) __Pyx_Coroutine_ExceptionClear(&(self)->gi_exc_state) #else #define __Pyx_Coroutine_SwapException(self) {\ __Pyx_ExceptionSwap(&(self)->gi_exc_state.exc_type, &(self)->gi_exc_state.exc_value, &(self)->gi_exc_state.exc_traceback);\ __Pyx_Coroutine_ResetFrameBackpointer(&(self)->gi_exc_state);\ } #define __Pyx_Coroutine_ResetAndClearException(self) {\ __Pyx_ExceptionReset((self)->gi_exc_state.exc_type, (self)->gi_exc_state.exc_value, (self)->gi_exc_state.exc_traceback);\ (self)->gi_exc_state.exc_type = (self)->gi_exc_state.exc_value = (self)->gi_exc_state.exc_traceback = NULL;\ } #endif #if CYTHON_FAST_THREAD_STATE #define __Pyx_PyGen_FetchStopIterationValue(pvalue)\ __Pyx_PyGen__FetchStopIterationValue(__pyx_tstate, pvalue) #else #define __Pyx_PyGen_FetchStopIterationValue(pvalue)\ __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, pvalue) #endif static int __Pyx_PyGen__FetchStopIterationValue(PyThreadState *tstate, PyObject **pvalue); static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state); /* PatchModuleWithCoroutine.proto */ static PyObject* __Pyx_Coroutine_patch_module(PyObject* module, const char* py_code); /* PatchGeneratorABC.proto */ static int __Pyx_patch_abc(void); /* Generator.proto */ #define __Pyx_Generator_USED static PyTypeObject *__pyx_GeneratorType = 0; #define __Pyx_Generator_CheckExact(obj) (Py_TYPE(obj) == __pyx_GeneratorType) #define __Pyx_Generator_New(body, code, closure, name, qualname, module_name)\ __Pyx__Coroutine_New(__pyx_GeneratorType, body, code, closure, name, qualname, module_name) static PyObject *__Pyx_Generator_Next(PyObject *self); static int __pyx_Generator_init(void); /* CheckBinaryVersion.proto */ static int __Pyx_check_binary_version(void); /* FunctionExport.proto */ static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig); /* InitStrings.proto */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); static PyObject *__pyx_f_7pymusic_4Port_null(struct __pyx_obj_7pymusic_Port *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_7pymusic_14EventInputPort_null(struct __pyx_obj_7pymusic_EventInputPort *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_7pymusic_16MessageInputPort_null(struct __pyx_obj_7pymusic_MessageInputPort *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/ static struct PyMPIIntracommObject *__pyx_f_7pymusic_5Setup_getcomm(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/ static PyObject *__pyx_f_7pymusic_5Setup_null(struct __pyx_obj_7pymusic_Setup *__pyx_v_self); /* proto*/ /* Module declarations from 'mpi4py.libmpi' */ /* Module declarations from 'mpi4py.MPI' */ static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Status = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Datatype = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Request = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Prequest = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Grequest = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Message = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Op = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Group = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Info = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Errhandler = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Comm = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Intracomm = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Topocomm = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Cartcomm = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Graphcomm = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Distgraphcomm = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Intercomm = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_Win = 0; static PyTypeObject *__pyx_ptype_6mpi4py_3MPI_File = 0; /* Module declarations from 'libcpp' */ /* Module declarations from 'libc.string' */ /* Module declarations from 'libcpp.string' */ /* Module declarations from 'libc.stdio' */ /* Module declarations from '__builtin__' */ /* Module declarations from 'cpython.type' */ static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0; /* Module declarations from 'cpython.version' */ /* Module declarations from 'cpython.exc' */ /* Module declarations from 'cpython.module' */ /* Module declarations from 'cpython.mem' */ /* Module declarations from 'cpython.tuple' */ /* Module declarations from 'cpython.list' */ /* Module declarations from 'cpython.sequence' */ /* Module declarations from 'cpython.mapping' */ /* Module declarations from 'cpython.iterator' */ /* Module declarations from 'cpython.number' */ /* Module declarations from 'cpython.int' */ /* Module declarations from '__builtin__' */ /* Module declarations from 'cpython.bool' */ static PyTypeObject *__pyx_ptype_7cpython_4bool_bool = 0; /* Module declarations from 'cpython.long' */ /* Module declarations from 'cpython.float' */ /* Module declarations from '__builtin__' */ /* Module declarations from 'cpython.complex' */ static PyTypeObject *__pyx_ptype_7cpython_7complex_complex = 0; /* Module declarations from 'cpython.string' */ /* Module declarations from 'cpython.unicode' */ /* Module declarations from 'cpython.dict' */ /* Module declarations from 'cpython.instance' */ /* Module declarations from 'cpython.function' */ /* Module declarations from 'cpython.method' */ /* Module declarations from 'cpython.weakref' */ /* Module declarations from 'cpython.getargs' */ /* Module declarations from 'cpython.pythread' */ /* Module declarations from 'cpython.pystate' */ /* Module declarations from 'cpython.cobject' */ /* Module declarations from 'cpython.oldbuffer' */ /* Module declarations from 'cpython.set' */ /* Module declarations from 'cpython.buffer' */ /* Module declarations from 'cpython.bytes' */ /* Module declarations from 'cpython.pycapsule' */ /* Module declarations from 'cpython' */ /* Module declarations from 'cpython.object' */ /* Module declarations from 'cpython.ref' */ /* Module declarations from 'music.pybuffer' */ static PyTypeObject *__pyx_ptype_5music_8pybuffer_Buffer = 0; /* Module declarations from 'libc.stdlib' */ /* Module declarations from 'array' */ /* Module declarations from 'cpython.array' */ static PyTypeObject *__pyx_ptype_7cpython_5array_array = 0; static CYTHON_INLINE int __pyx_f_7cpython_5array_extend_buffer(arrayobject *, char *, Py_ssize_t); /*proto*/ /* Module declarations from 'pymusic' */ static PyTypeObject *__pyx_ptype_7pymusic_Setup = 0; static PyTypeObject *__pyx_ptype_7pymusic_Runtime = 0; static PyTypeObject *__pyx_ptype_7pymusic_Port = 0; static PyTypeObject *__pyx_ptype_7pymusic_ContInputPort = 0; static PyTypeObject *__pyx_ptype_7pymusic_ContOutputPort = 0; static PyTypeObject *__pyx_ptype_7pymusic_EventInputPort = 0; static PyTypeObject *__pyx_ptype_7pymusic_EventOutputPort = 0; static PyTypeObject *__pyx_ptype_7pymusic_MessageInputPort = 0; static PyTypeObject *__pyx_ptype_7pymusic_MessageOutputPort = 0; static PyTypeObject *__pyx_ptype_7pymusic_DataMap = 0; static PyTypeObject *__pyx_ptype_7pymusic_IndexMap = 0; static PyTypeObject *__pyx_ptype_7pymusic_EventHandler = 0; static PyTypeObject *__pyx_ptype_7pymusic_MessageHandler = 0; static PyTypeObject *__pyx_ptype_7pymusic__Index = 0; static PyTypeObject *__pyx_ptype_7pymusic___pyx_scope_struct____iter__ = 0; static __pyx_t_7pymusic_Args __pyx_f_7pymusic_argv_toc(PyObject *); /*proto*/ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *); /*proto*/ static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_string(std::string const &); /*proto*/ static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_string(std::string const &); /*proto*/ static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(std::string const &); /*proto*/ static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string(std::string const &); /*proto*/ static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_string(std::string const &); /*proto*/ #define __Pyx_MODULE_NAME "pymusic" extern int __pyx_module_is_main_pymusic; int __pyx_module_is_main_pymusic = 0; /* Implementation of 'pymusic' */ static PyObject *__pyx_builtin_range; static PyObject *__pyx_builtin_TypeError; static PyObject *__pyx_builtin_xrange; static PyObject *__pyx_builtin_ValueError; static PyObject *__pyx_builtin_MemoryError; static const char __pyx_k_h[] = "h"; static const char __pyx_k_i[] = "i"; static const char __pyx_k_r[] = "r"; static const char __pyx_k_t[] = "t"; static const char __pyx_k_MPI[] = "MPI"; static const char __pyx_k__29[] = "*"; static const char __pyx_k_buf[] = "buf"; static const char __pyx_k_doc[] = "__doc__"; static const char __pyx_k_msg[] = "msg"; static const char __pyx_k_ptr[] = "ptr"; static const char __pyx_k_sys[] = "sys"; static const char __pyx_k_var[] = "var"; static const char __pyx_k_Port[] = "Port"; static const char __pyx_k_args[] = "args"; static const char __pyx_k_argv[] = "argv"; static const char __pyx_k_base[] = "base"; static const char __pyx_k_data[] = "data"; static const char __pyx_k_func[] = "func"; static const char __pyx_k_init[] = "__init__"; static const char __pyx_k_iter[] = "__iter__"; static const char __pyx_k_main[] = "__main__"; static const char __pyx_k_name[] = "__name__"; static const char __pyx_k_null[] = "null"; static const char __pyx_k_perm[] = "perm"; static const char __pyx_k_self[] = "self"; static const char __pyx_k_send[] = "send"; static const char __pyx_k_size[] = "size"; static const char __pyx_k_test[] = "__test__"; static const char __pyx_k_time[] = "time"; static const char __pyx_k_Index[] = "_Index"; static const char __pyx_k_LOCAL[] = "LOCAL"; static const char __pyx_k_Setup[] = "Setup"; static const char __pyx_k_array[] = "array"; static const char __pyx_k_close[] = "close"; static const char __pyx_k_delay[] = "delay"; static const char __pyx_k_dumps[] = "dumps"; static const char __pyx_k_index[] = "index"; static const char __pyx_k_loads[] = "loads"; static const char __pyx_k_range[] = "range"; static const char __pyx_k_setup[] = "setup"; static const char __pyx_k_throw[] = "throw"; static const char __pyx_k_Buffer[] = "Buffer"; static const char __pyx_k_GLOBAL[] = "GLOBAL"; static const char __pyx_k_encode[] = "encode"; static const char __pyx_k_format[] = "format"; static const char __pyx_k_import[] = "__import__"; static const char __pyx_k_module[] = "__module__"; static const char __pyx_k_pickle[] = "pickle"; static const char __pyx_k_reduce[] = "__reduce__"; static const char __pyx_k_xrange[] = "xrange"; static const char __pyx_k_DataMap[] = "DataMap"; static const char __pyx_k_Index_2[] = "Index"; static const char __pyx_k_NoWidth[] = "NoWidth"; static const char __pyx_k_Runtime[] = "Runtime"; static const char __pyx_k_cPickle[] = "cPickle"; static const char __pyx_k_getcomm[] = "getcomm"; static const char __pyx_k_pickled[] = "pickled"; static const char __pyx_k_prepare[] = "__prepare__"; static const char __pyx_k_pymusic[] = "pymusic"; static const char __pyx_k_IndexMap[] = "IndexMap"; static const char __pyx_k_getstate[] = "__getstate__"; static const char __pyx_k_qualname[] = "__qualname__"; static const char __pyx_k_required[] = "required"; static const char __pyx_k_setstate[] = "__setstate__"; static const char __pyx_k_COMM_NULL[] = "COMM_NULL"; static const char __pyx_k_TypeError[] = "TypeError"; static const char __pyx_k_index_map[] = "index_map"; static const char __pyx_k_metaclass[] = "__metaclass__"; static const char __pyx_k_reduce_ex[] = "__reduce_ex__"; static const char __pyx_k_six_moves[] = "six.moves"; static const char __pyx_k_MUSICError[] = "MUSICError"; static const char __pyx_k_ValueError[] = "ValueError"; static const char __pyx_k_accLatency[] = "accLatency"; static const char __pyx_k_mpi4py_MPI[] = "mpi4py.MPI"; static const char __pyx_k_pyx_vtable[] = "__pyx_vtable__"; static const char __pyx_k_MemoryError[] = "MemoryError"; static const char __pyx_k_interpolate[] = "interpolate"; static const char __pyx_k_maxBuffered[] = "maxBuffered"; static const char __pyx_k_predictRank[] = "predictRank"; static const char __pyx_k_pymusic_pyx[] = "pymusic.pyx"; static const char __pyx_k_EventHandler[] = "EventHandler"; static const char __pyx_k_ContInputPort[] = "ContInputPort"; static const char __pyx_k_reduce_cython[] = "__reduce_cython__"; static const char __pyx_k_ContOutputPort[] = "ContOutputPort"; static const char __pyx_k_EventInputPort[] = "EventInputPort"; static const char __pyx_k_MessageHandler[] = "MessageHandler"; static const char __pyx_k_NoWidth___init[] = "NoWidth.__init__"; static const char __pyx_k_Runtime___iter[] = "Runtime.__iter__"; static const char __pyx_k_music_pybuffer[] = "music.pybuffer"; static const char __pyx_k_EventOutputPort[] = "EventOutputPort"; static const char __pyx_k_UndefinedConfig[] = "UndefinedConfig"; static const char __pyx_k_setstate_cython[] = "__setstate_cython__"; static const char __pyx_k_HIGHEST_PROTOCOL[] = "HIGHEST_PROTOCOL"; static const char __pyx_k_MessageInputPort[] = "MessageInputPort"; static const char __pyx_k_No_width_defined[] = "No width defined"; static const char __pyx_k_MessageOutputPort[] = "MessageOutputPort"; static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback"; static const char __pyx_k_argv_can_t_be_empty[] = "argv can't be empty"; static const char __pyx_k_UndefinedConfig___init[] = "UndefinedConfig.__init__"; static const char __pyx_k_couldn_t_allocate_argv[] = "couldn't allocate argv"; static const char __pyx_k_Config_variable_is_not_defined[] = "Config variable {} is not defined"; static const char __pyx_k_Thrown_if_Port_width_is_called[] = "\n Thrown if Port.width() is called, and port doesn't\n have a width defined.\n "; static const char __pyx_k_All_exceptions_in_pymusic_are_M[] = "\n All exceptions in pymusic are MUSICError's\n "; static const char __pyx_k_Thrown_if_a_configuration_value[] = "\n Thrown if a configuration value is requested\n via Setup.config(varname) for a variable name\n that has not been defined within the configuration.\n "; static const char __pyx_k_no_default___reduce___due_to_non[] = "no default __reduce__ due to non-trivial __cinit__"; static PyObject *__pyx_kp_s_All_exceptions_in_pymusic_are_M; static PyObject *__pyx_n_s_Buffer; static PyObject *__pyx_n_s_COMM_NULL; static PyObject *__pyx_kp_s_Config_variable_is_not_defined; static PyObject *__pyx_n_s_ContInputPort; static PyObject *__pyx_n_s_ContOutputPort; static PyObject *__pyx_n_s_DataMap; static PyObject *__pyx_n_s_EventHandler; static PyObject *__pyx_n_s_EventInputPort; static PyObject *__pyx_n_s_EventOutputPort; static PyObject *__pyx_n_s_GLOBAL; static PyObject *__pyx_n_s_HIGHEST_PROTOCOL; static PyObject *__pyx_n_s_Index; static PyObject *__pyx_n_s_IndexMap; static PyObject *__pyx_n_s_Index_2; static PyObject *__pyx_n_s_LOCAL; static PyObject *__pyx_n_s_MPI; static PyObject *__pyx_n_s_MUSICError; static PyObject *__pyx_n_s_MemoryError; static PyObject *__pyx_n_s_MessageHandler; static PyObject *__pyx_n_s_MessageInputPort; static PyObject *__pyx_n_s_MessageOutputPort; static PyObject *__pyx_n_s_NoWidth; static PyObject *__pyx_n_s_NoWidth___init; static PyObject *__pyx_kp_s_No_width_defined; static PyObject *__pyx_n_s_Port; static PyObject *__pyx_n_s_Runtime; static PyObject *__pyx_n_s_Runtime___iter; static PyObject *__pyx_n_s_Setup; static PyObject *__pyx_kp_s_Thrown_if_Port_width_is_called; static PyObject *__pyx_kp_s_Thrown_if_a_configuration_value; static PyObject *__pyx_n_s_TypeError; static PyObject *__pyx_n_s_UndefinedConfig; static PyObject *__pyx_n_s_UndefinedConfig___init; static PyObject *__pyx_n_s_ValueError; static PyObject *__pyx_n_s__29; static PyObject *__pyx_n_s_accLatency; static PyObject *__pyx_n_s_args; static PyObject *__pyx_n_s_argv; static PyObject *__pyx_kp_s_argv_can_t_be_empty; static PyObject *__pyx_n_s_array; static PyObject *__pyx_n_s_base; static PyObject *__pyx_n_s_buf; static PyObject *__pyx_n_s_cPickle; static PyObject *__pyx_n_s_cline_in_traceback; static PyObject *__pyx_n_s_close; static PyObject *__pyx_kp_s_couldn_t_allocate_argv; static PyObject *__pyx_n_s_data; static PyObject *__pyx_n_s_delay; static PyObject *__pyx_n_s_doc; static PyObject *__pyx_n_s_dumps; static PyObject *__pyx_n_s_encode; static PyObject *__pyx_n_s_format; static PyObject *__pyx_n_s_func; static PyObject *__pyx_n_s_getcomm; static PyObject *__pyx_n_s_getstate; static PyObject *__pyx_n_s_h; static PyObject *__pyx_n_s_i; static PyObject *__pyx_n_s_import; static PyObject *__pyx_n_s_index; static PyObject *__pyx_n_s_index_map; static PyObject *__pyx_n_s_init; static PyObject *__pyx_n_s_interpolate; static PyObject *__pyx_n_s_iter; static PyObject *__pyx_n_s_loads; static PyObject *__pyx_n_s_main; static PyObject *__pyx_n_s_maxBuffered; static PyObject *__pyx_n_s_metaclass; static PyObject *__pyx_n_s_module; static PyObject *__pyx_n_s_mpi4py_MPI; static PyObject *__pyx_n_s_msg; static PyObject *__pyx_n_s_music_pybuffer; static PyObject *__pyx_n_s_name; static PyObject *__pyx_kp_s_no_default___reduce___due_to_non; static PyObject *__pyx_n_s_null; static PyObject *__pyx_n_s_perm; static PyObject *__pyx_n_s_pickle; static PyObject *__pyx_n_s_pickled; static PyObject *__pyx_n_s_predictRank; static PyObject *__pyx_n_s_prepare; static PyObject *__pyx_n_s_ptr; static PyObject *__pyx_n_s_pymusic; static PyObject *__pyx_kp_s_pymusic_pyx; static PyObject *__pyx_n_s_pyx_vtable; static PyObject *__pyx_n_s_qualname; static PyObject *__pyx_n_s_r; static PyObject *__pyx_n_s_range; static PyObject *__pyx_n_s_reduce; static PyObject *__pyx_n_s_reduce_cython; static PyObject *__pyx_n_s_reduce_ex; static PyObject *__pyx_n_s_required; static PyObject *__pyx_n_s_self; static PyObject *__pyx_n_s_send; static PyObject *__pyx_n_s_setstate; static PyObject *__pyx_n_s_setstate_cython; static PyObject *__pyx_n_s_setup; static PyObject *__pyx_n_s_six_moves; static PyObject *__pyx_n_s_size; static PyObject *__pyx_n_s_sys; static PyObject *__pyx_n_s_t; static PyObject *__pyx_n_s_test; static PyObject *__pyx_n_s_throw; static PyObject *__pyx_n_s_time; static PyObject *__pyx_n_s_var; static PyObject *__pyx_n_s_xrange; static PyObject *__pyx_pf_7pymusic_7NoWidth___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_15UndefinedConfig___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_var); /* proto */ static PyObject *__pyx_pf_7pymusic_predictRank(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_argv); /* proto */ static int __pyx_pf_7pymusic_4Port___cinit__(struct __pyx_obj_7pymusic_Port *__pyx_v_self); /* proto */ static Py_hash_t __pyx_pf_7pymusic_4Port_2__hash__(struct __pyx_obj_7pymusic_Port *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_4Port_4null(struct __pyx_obj_7pymusic_Port *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_4Port_6isConnected(struct __pyx_obj_7pymusic_Port *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_4Port_8width(struct __pyx_obj_7pymusic_Port *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_4Port_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_Port *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_4Port_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_Port *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_7pymusic_13ContInputPort_map(struct __pyx_obj_7pymusic_ContInputPort *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_v_base, PyObject *__pyx_v_perm, double __pyx_v_delay, bool __pyx_v_interpolate, int __pyx_v_maxBuffered); /* proto */ static PyObject *__pyx_pf_7pymusic_13ContInputPort_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_ContInputPort *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_13ContInputPort_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_ContInputPort *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_7pymusic_14ContOutputPort_map(struct __pyx_obj_7pymusic_ContOutputPort *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_v_base, PyObject *__pyx_v_perm, int __pyx_v_maxBuffered); /* proto */ static PyObject *__pyx_pf_7pymusic_14ContOutputPort_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_ContOutputPort *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_14ContOutputPort_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_ContOutputPort *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_7pymusic_14EventInputPort___cinit__(struct __pyx_obj_7pymusic_EventInputPort *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_14EventInputPort_2null(struct __pyx_obj_7pymusic_EventInputPort *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_14EventInputPort_4map(struct __pyx_obj_7pymusic_EventInputPort *__pyx_v_self, PyObject *__pyx_v_func, MUSIC::Index::Type __pyx_v_t, double __pyx_v_accLatency, int __pyx_v_maxBuffered, PyObject *__pyx_v_perm, int __pyx_v_base, int __pyx_v_size); /* proto */ static PyObject *__pyx_pf_7pymusic_14EventInputPort_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_EventInputPort *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_14EventInputPort_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_EventInputPort *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_7pymusic_15EventOutputPort_map(struct __pyx_obj_7pymusic_EventOutputPort *__pyx_v_self, MUSIC::Index::Type __pyx_v_t, int __pyx_v_maxBuffered, PyObject *__pyx_v_perm, int __pyx_v_base, int __pyx_v_size); /* proto */ static PyObject *__pyx_pf_7pymusic_15EventOutputPort_2insertEvent(struct __pyx_obj_7pymusic_EventOutputPort *__pyx_v_self, double __pyx_v_time, int __pyx_v_index, CYTHON_UNUSED MUSIC::Index::Type __pyx_v_t); /* proto */ static PyObject *__pyx_pf_7pymusic_15EventOutputPort_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_EventOutputPort *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_15EventOutputPort_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_EventOutputPort *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_7pymusic_16MessageInputPort___cinit__(struct __pyx_obj_7pymusic_MessageInputPort *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_16MessageInputPort_2null(struct __pyx_obj_7pymusic_MessageInputPort *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_16MessageInputPort_4map(struct __pyx_obj_7pymusic_MessageInputPort *__pyx_v_self, PyObject *__pyx_v_func, double __pyx_v_accLatency, int __pyx_v_maxBuffered, int __pyx_v_pickled); /* proto */ static PyObject *__pyx_pf_7pymusic_16MessageInputPort_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_MessageInputPort *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_16MessageInputPort_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_MessageInputPort *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static PyObject *__pyx_pf_7pymusic_17MessageOutputPort_map(struct __pyx_obj_7pymusic_MessageOutputPort *__pyx_v_self, int __pyx_v_maxBuffered, int __pyx_v_pickled); /* proto */ static PyObject *__pyx_pf_7pymusic_17MessageOutputPort_2insertMessage(struct __pyx_obj_7pymusic_MessageOutputPort *__pyx_v_self, double __pyx_v_time, PyObject *__pyx_v_msg); /* proto */ static PyObject *__pyx_pf_7pymusic_17MessageOutputPort_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_MessageOutputPort *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_17MessageOutputPort_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_MessageOutputPort *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_7pymusic_5Setup___cinit__(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, PyObject *__pyx_v_argv, PyObject *__pyx_v_required); /* proto */ static void __pyx_pf_7pymusic_5Setup_2__dealloc__(struct __pyx_obj_7pymusic_Setup *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_5Setup_4getcomm(struct __pyx_obj_7pymusic_Setup *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_5Setup_6config(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, std::string __pyx_v_var); /* proto */ static PyObject *__pyx_pf_7pymusic_5Setup_8publishContInput(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, std::string __pyx_v_s); /* proto */ static PyObject *__pyx_pf_7pymusic_5Setup_10publishContOutput(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, std::string __pyx_v_s); /* proto */ static PyObject *__pyx_pf_7pymusic_5Setup_12publishEventOutput(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, std::string __pyx_v_s); /* proto */ static PyObject *__pyx_pf_7pymusic_5Setup_14publishEventInput(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, std::string __pyx_v_s); /* proto */ static PyObject *__pyx_pf_7pymusic_5Setup_16publishMessageOutput(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, std::string __pyx_v_s); /* proto */ static PyObject *__pyx_pf_7pymusic_5Setup_18publishMessageInput(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, std::string __pyx_v_s); /* proto */ static PyObject *__pyx_pf_7pymusic_5Setup_20runtime(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, double __pyx_v_timestep); /* proto */ static PyObject *__pyx_pf_7pymusic_5Setup_4comm___get__(struct __pyx_obj_7pymusic_Setup *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_5Setup_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_Setup *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_5Setup_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_Setup *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_7pymusic_7Runtime___cinit__(struct __pyx_obj_7pymusic_Runtime *__pyx_v_self, struct __pyx_obj_7pymusic_Setup *__pyx_v_setup, double __pyx_v_h); /* proto */ static void __pyx_pf_7pymusic_7Runtime_2__dealloc__(struct __pyx_obj_7pymusic_Runtime *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_7Runtime_4time(struct __pyx_obj_7pymusic_Runtime *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_7Runtime_6tick(struct __pyx_obj_7pymusic_Runtime *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_7Runtime_8__iter__(struct __pyx_obj_7pymusic_Runtime *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_7Runtime_4comm___get__(struct __pyx_obj_7pymusic_Runtime *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_7Runtime_11__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_Runtime *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_7Runtime_13__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_Runtime *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_7pymusic_8IndexMap___cinit__(struct __pyx_obj_7pymusic_IndexMap *__pyx_v_self, PyObject *__pyx_v_perm, int __pyx_v_base, int __pyx_v_size); /* proto */ static void __pyx_pf_7pymusic_8IndexMap_2__dealloc__(struct __pyx_obj_7pymusic_IndexMap *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_8IndexMap_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_IndexMap *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_8IndexMap_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_IndexMap *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_7pymusic_7DataMap___cinit__(struct __pyx_obj_7pymusic_DataMap *__pyx_v_self, struct __pyx_obj_5music_8pybuffer_Buffer *__pyx_v_buf, struct __pyx_obj_7pymusic_IndexMap *__pyx_v_index_map, int __pyx_v_index); /* proto */ static void __pyx_pf_7pymusic_7DataMap_2__dealloc__(struct __pyx_obj_7pymusic_DataMap *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_7DataMap_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_DataMap *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_7DataMap_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_DataMap *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_7pymusic_12EventHandler___cinit__(struct __pyx_obj_7pymusic_EventHandler *__pyx_v_self, PyObject *__pyx_v_func, MUSIC::Index::Type __pyx_v_t); /* proto */ static void __pyx_pf_7pymusic_12EventHandler_2__dealloc__(struct __pyx_obj_7pymusic_EventHandler *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_12EventHandler_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_EventHandler *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_12EventHandler_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_EventHandler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_7pymusic_6_Index___cinit__(struct __pyx_obj_7pymusic__Index *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_6_Index_2tostr(struct __pyx_obj_7pymusic__Index *__pyx_v_self, int __pyx_v_index); /* proto */ static PyObject *__pyx_pf_7pymusic_6_Index_6GLOBAL___get__(struct __pyx_obj_7pymusic__Index *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_6_Index_5LOCAL___get__(struct __pyx_obj_7pymusic__Index *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_6_Index_7backmap___get__(struct __pyx_obj_7pymusic__Index *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_6_Index_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic__Index *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_6_Index_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic__Index *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_7pymusic_14MessageHandler___cinit__(struct __pyx_obj_7pymusic_MessageHandler *__pyx_v_self, PyObject *__pyx_v_func, int __pyx_v_pickled); /* proto */ static void __pyx_pf_7pymusic_14MessageHandler_2__dealloc__(struct __pyx_obj_7pymusic_MessageHandler *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_14MessageHandler_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_MessageHandler *__pyx_v_self); /* proto */ static PyObject *__pyx_pf_7pymusic_14MessageHandler_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_MessageHandler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */ static int __pyx_pf_7cpython_5array_5array___getbuffer__(arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info, CYTHON_UNUSED int __pyx_v_flags); /* proto */ static void __pyx_pf_7cpython_5array_5array_2__releasebuffer__(CYTHON_UNUSED arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info); /* proto */ static PyObject *__pyx_tp_new_7pymusic_Setup(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_7pymusic_Runtime(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_7pymusic_Port(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_7pymusic_ContInputPort(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_7pymusic_ContOutputPort(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_7pymusic_EventInputPort(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_7pymusic_EventOutputPort(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_7pymusic_MessageInputPort(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_7pymusic_MessageOutputPort(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_7pymusic_DataMap(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_7pymusic_IndexMap(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_7pymusic_EventHandler(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_7pymusic_MessageHandler(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_7pymusic__Index(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tp_new_7pymusic___pyx_scope_struct____iter__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static PyObject *__pyx_tuple_; static PyObject *__pyx_tuple__2; static PyObject *__pyx_tuple__3; static PyObject *__pyx_tuple__4; static PyObject *__pyx_tuple__5; static PyObject *__pyx_tuple__6; static PyObject *__pyx_tuple__7; static PyObject *__pyx_tuple__8; static PyObject *__pyx_tuple__9; static PyObject *__pyx_tuple__10; static PyObject *__pyx_tuple__11; static PyObject *__pyx_tuple__12; static PyObject *__pyx_tuple__13; static PyObject *__pyx_tuple__14; static PyObject *__pyx_tuple__15; static PyObject *__pyx_tuple__16; static PyObject *__pyx_tuple__17; static PyObject *__pyx_tuple__18; static PyObject *__pyx_tuple__19; static PyObject *__pyx_tuple__20; static PyObject *__pyx_tuple__21; static PyObject *__pyx_tuple__22; static PyObject *__pyx_tuple__23; static PyObject *__pyx_tuple__24; static PyObject *__pyx_tuple__25; static PyObject *__pyx_tuple__26; static PyObject *__pyx_tuple__27; static PyObject *__pyx_tuple__28; static PyObject *__pyx_tuple__30; static PyObject *__pyx_tuple__32; static PyObject *__pyx_tuple__34; static PyObject *__pyx_codeobj__31; static PyObject *__pyx_codeobj__33; static PyObject *__pyx_codeobj__35; /* Late includes */ /* "pymusic.pyx":23 * have a width defined. * """ * def __init__(self): # <<<<<<<<<<<<<< * MUSICError.__init__(self, "No width defined") * */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_7NoWidth_1__init__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ static PyMethodDef __pyx_mdef_7pymusic_7NoWidth_1__init__ = {"__init__", (PyCFunction)__pyx_pw_7pymusic_7NoWidth_1__init__, METH_O, 0}; static PyObject *__pyx_pw_7pymusic_7NoWidth_1__init__(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_7NoWidth___init__(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_7NoWidth___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; __Pyx_RefNannySetupContext("__init__", 0); /* "pymusic.pyx":24 * """ * def __init__(self): * MUSICError.__init__(self, "No width defined") # <<<<<<<<<<<<<< * * class UndefinedConfig(MUSICError): */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_MUSICError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; __pyx_t_4 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_2)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_2); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_4 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_self, __pyx_kp_s_No_width_defined}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_self, __pyx_kp_s_No_width_defined}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_2) { __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL; } __Pyx_INCREF(__pyx_v_self); __Pyx_GIVEREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_self); __Pyx_INCREF(__pyx_kp_s_No_width_defined); __Pyx_GIVEREF(__pyx_kp_s_No_width_defined); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_kp_s_No_width_defined); __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":23 * have a width defined. * """ * def __init__(self): # <<<<<<<<<<<<<< * MUSICError.__init__(self, "No width defined") * */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("pymusic.NoWidth.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":32 * that has not been defined within the configuration. * """ * def __init__(self, var): # <<<<<<<<<<<<<< * MUSICError.__init__( * self, */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_15UndefinedConfig_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyMethodDef __pyx_mdef_7pymusic_15UndefinedConfig_1__init__ = {"__init__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_7pymusic_15UndefinedConfig_1__init__, METH_VARARGS|METH_KEYWORDS, 0}; static PyObject *__pyx_pw_7pymusic_15UndefinedConfig_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_var = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_var,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_var)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 32, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 32, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_self = values[0]; __pyx_v_var = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 32, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pymusic.UndefinedConfig.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_15UndefinedConfig___init__(__pyx_self, __pyx_v_self, __pyx_v_var); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_15UndefinedConfig___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_var) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; __Pyx_RefNannySetupContext("__init__", 0); /* "pymusic.pyx":33 * """ * def __init__(self, var): * MUSICError.__init__( # <<<<<<<<<<<<<< * self, * "Config variable {} is not defined". */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_MUSICError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "pymusic.pyx":35 * MUSICError.__init__( * self, * "Config variable {} is not defined". # <<<<<<<<<<<<<< * format(var) * ) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_Config_variable_is_not_defined, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 35, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); /* "pymusic.pyx":36 * self, * "Config variable {} is not defined". * format(var) # <<<<<<<<<<<<<< * ) * */ __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_var) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_var); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 36, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_self, __pyx_t_2}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) { PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_self, __pyx_t_2}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_5 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (__pyx_t_4) { __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; } __Pyx_INCREF(__pyx_v_self); __Pyx_GIVEREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_6, __pyx_v_self); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_6, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":32 * that has not been defined within the configuration. * """ * def __init__(self, var): # <<<<<<<<<<<<<< * MUSICError.__init__( * self, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("pymusic.UndefinedConfig.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":52 * char** argv * * cdef Args argv_toc(list argv): # <<<<<<<<<<<<<< * """ * Convert an argv python list to a correct C argv & argc */ static __pyx_t_7pymusic_Args __pyx_f_7pymusic_argv_toc(PyObject *__pyx_v_argv) { __pyx_t_7pymusic_Args __pyx_v_r; long __pyx_v_i; PyObject *__pyx_v_s = NULL; __pyx_t_7pymusic_Args __pyx_r; __Pyx_RefNannyDeclarations Py_ssize_t __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_t_9; int __pyx_t_10; long __pyx_t_11; char *__pyx_t_12; __Pyx_RefNannySetupContext("argv_toc", 0); /* "pymusic.pyx":58 * """ * cdef Args r * r.argc = len(argv) # <<<<<<<<<<<<<< * if r.argc <= 0: * raise MUSICError("argv can't be empty") */ if (unlikely(__pyx_v_argv == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 58, __pyx_L1_error) } __pyx_t_1 = PyList_GET_SIZE(__pyx_v_argv); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 58, __pyx_L1_error) __pyx_v_r.argc = __pyx_t_1; /* "pymusic.pyx":59 * cdef Args r * r.argc = len(argv) * if r.argc <= 0: # <<<<<<<<<<<<<< * raise MUSICError("argv can't be empty") * */ __pyx_t_2 = ((__pyx_v_r.argc <= 0) != 0); if (unlikely(__pyx_t_2)) { /* "pymusic.pyx":60 * r.argc = len(argv) * if r.argc <= 0: * raise MUSICError("argv can't be empty") # <<<<<<<<<<<<<< * * r.argv = malloc((r.argc+1) * sizeof(char*)) */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_MUSICError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_s_argv_can_t_be_empty) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_s_argv_can_t_be_empty); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 60, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 60, __pyx_L1_error) /* "pymusic.pyx":59 * cdef Args r * r.argc = len(argv) * if r.argc <= 0: # <<<<<<<<<<<<<< * raise MUSICError("argv can't be empty") * */ } /* "pymusic.pyx":62 * raise MUSICError("argv can't be empty") * * r.argv = malloc((r.argc+1) * sizeof(char*)) # <<<<<<<<<<<<<< * if r.argv is NULL: * raise MUSICError("couldn't allocate argv") */ __pyx_v_r.argv = ((char **)malloc(((__pyx_v_r.argc + 1) * (sizeof(char *))))); /* "pymusic.pyx":63 * * r.argv = malloc((r.argc+1) * sizeof(char*)) * if r.argv is NULL: # <<<<<<<<<<<<<< * raise MUSICError("couldn't allocate argv") * */ __pyx_t_2 = ((__pyx_v_r.argv == NULL) != 0); if (unlikely(__pyx_t_2)) { /* "pymusic.pyx":64 * r.argv = malloc((r.argc+1) * sizeof(char*)) * if r.argv is NULL: * raise MUSICError("couldn't allocate argv") # <<<<<<<<<<<<<< * * cdef string */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_MUSICError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_s_couldn_t_allocate_argv) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_s_couldn_t_allocate_argv); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __PYX_ERR(0, 64, __pyx_L1_error) /* "pymusic.pyx":63 * * r.argv = malloc((r.argc+1) * sizeof(char*)) * if r.argv is NULL: # <<<<<<<<<<<<<< * raise MUSICError("couldn't allocate argv") * */ } /* "pymusic.pyx":67 * * cdef string * try: # <<<<<<<<<<<<<< * r.argv[r.argc] = NULL * for i in range(0, r.argc): */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_8); /*try:*/ { /* "pymusic.pyx":68 * cdef string * try: * r.argv[r.argc] = NULL # <<<<<<<<<<<<<< * for i in range(0, r.argc): * s = argv[i].encode() */ (__pyx_v_r.argv[__pyx_v_r.argc]) = NULL; /* "pymusic.pyx":69 * try: * r.argv[r.argc] = NULL * for i in range(0, r.argc): # <<<<<<<<<<<<<< * s = argv[i].encode() * r.argv[i] = s */ __pyx_t_9 = __pyx_v_r.argc; __pyx_t_10 = __pyx_t_9; for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) { __pyx_v_i = __pyx_t_11; /* "pymusic.pyx":70 * r.argv[r.argc] = NULL * for i in range(0, r.argc): * s = argv[i].encode() # <<<<<<<<<<<<<< * r.argv[i] = s * return r */ if (unlikely(__pyx_v_argv == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 70, __pyx_L5_error) } __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_argv, __pyx_v_i, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 70, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_encode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 70, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); } } __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 70, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF_SET(__pyx_v_s, __pyx_t_3); __pyx_t_3 = 0; /* "pymusic.pyx":71 * for i in range(0, r.argc): * s = argv[i].encode() * r.argv[i] = s # <<<<<<<<<<<<<< * return r * except: */ __pyx_t_12 = __Pyx_PyObject_AsWritableString(__pyx_v_s); if (unlikely((!__pyx_t_12) && PyErr_Occurred())) __PYX_ERR(0, 71, __pyx_L5_error) (__pyx_v_r.argv[__pyx_v_i]) = __pyx_t_12; } /* "pymusic.pyx":72 * s = argv[i].encode() * r.argv[i] = s * return r # <<<<<<<<<<<<<< * except: * free(r.argv) */ __pyx_r = __pyx_v_r; goto __pyx_L9_try_return; /* "pymusic.pyx":67 * * cdef string * try: # <<<<<<<<<<<<<< * r.argv[r.argc] = NULL * for i in range(0, r.argc): */ } __pyx_L5_error:; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "pymusic.pyx":73 * r.argv[i] = s * return r * except: # <<<<<<<<<<<<<< * free(r.argv) * raise */ /*except:*/ { __Pyx_AddTraceback("pymusic.argv_toc", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_5, &__pyx_t_4) < 0) __PYX_ERR(0, 73, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_4); /* "pymusic.pyx":74 * return r * except: * free(r.argv) # <<<<<<<<<<<<<< * raise * */ free(__pyx_v_r.argv); /* "pymusic.pyx":75 * except: * free(r.argv) * raise # <<<<<<<<<<<<<< * * ########################################################### */ __Pyx_GIVEREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_5); __Pyx_XGIVEREF(__pyx_t_4); __Pyx_ErrRestoreWithState(__pyx_t_3, __pyx_t_5, __pyx_t_4); __pyx_t_3 = 0; __pyx_t_5 = 0; __pyx_t_4 = 0; __PYX_ERR(0, 75, __pyx_L7_except_error) } __pyx_L7_except_error:; /* "pymusic.pyx":67 * * cdef string * try: # <<<<<<<<<<<<<< * r.argv[r.argc] = NULL * for i in range(0, r.argc): */ __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8); goto __pyx_L1_error; __pyx_L9_try_return:; __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8); goto __pyx_L0; } /* "pymusic.pyx":52 * char** argv * * cdef Args argv_toc(list argv): # <<<<<<<<<<<<<< * """ * Convert an argv python list to a correct C argv & argc */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_WriteUnraisable("pymusic.argv_toc", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __Pyx_pretend_to_initialize(&__pyx_r); __pyx_L0:; __Pyx_XDECREF(__pyx_v_s); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":79 * ########################################################### * * def predictRank(list argv=None): # <<<<<<<<<<<<<< * """ * Map into mpidep/predict_rank for config methods. */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_1predictRank(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_7pymusic_predictRank[] = "\n Map into mpidep/predict_rank for config methods.\n AP: What is this really used for?\n "; static PyMethodDef __pyx_mdef_7pymusic_1predictRank = {"predictRank", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_7pymusic_1predictRank, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7pymusic_predictRank}; static PyObject *__pyx_pw_7pymusic_1predictRank(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_argv = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("predictRank (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_argv,0}; PyObject* values[1] = {0}; values[0] = ((PyObject*)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_argv); if (value) { values[0] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "predictRank") < 0)) __PYX_ERR(0, 79, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_argv = ((PyObject*)values[0]); } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("predictRank", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 79, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pymusic.predictRank", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_argv), (&PyList_Type), 1, "argv", 1))) __PYX_ERR(0, 79, __pyx_L1_error) __pyx_r = __pyx_pf_7pymusic_predictRank(__pyx_self, __pyx_v_argv); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = NULL; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_predictRank(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_argv) { __pyx_t_7pymusic_Args __pyx_v_r; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("predictRank", 0); /* "pymusic.pyx":84 * AP: What is this really used for? * """ * cdef Args r = argv_toc(argv if argv is not None else # <<<<<<<<<<<<<< * sys.argv) * return CPredictRank(r.argc, r.argv) */ __pyx_t_2 = (__pyx_v_argv != ((PyObject*)Py_None)); if ((__pyx_t_2 != 0)) { __Pyx_INCREF(__pyx_v_argv); __pyx_t_1 = __pyx_v_argv; } else { /* "pymusic.pyx":85 * """ * cdef Args r = argv_toc(argv if argv is not None else * sys.argv) # <<<<<<<<<<<<<< * return CPredictRank(r.argc, r.argv) * */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_sys); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_argv); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 85, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (!(likely(PyList_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(0, 85, __pyx_L1_error) __pyx_t_1 = __pyx_t_4; __pyx_t_4 = 0; } /* "pymusic.pyx":84 * AP: What is this really used for? * """ * cdef Args r = argv_toc(argv if argv is not None else # <<<<<<<<<<<<<< * sys.argv) * return CPredictRank(r.argc, r.argv) */ __pyx_v_r = __pyx_f_7pymusic_argv_toc(((PyObject*)__pyx_t_1)); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":86 * cdef Args r = argv_toc(argv if argv is not None else * sys.argv) * return CPredictRank(r.argc, r.argv) # <<<<<<<<<<<<<< * * ########################################################### */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(MUSIC::predictRank(__pyx_v_r.argc, __pyx_v_r.argv)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 86, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "pymusic.pyx":79 * ########################################################### * * def predictRank(list argv=None): # <<<<<<<<<<<<<< * """ * Map into mpidep/predict_rank for config methods. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("pymusic.predictRank", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":99 * container. * """ * def __cinit__(self): # <<<<<<<<<<<<<< * """ * When a Port object is created, it needs to have an underlying */ /* Python wrapper */ static int __pyx_pw_7pymusic_4Port_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_7pymusic_4Port_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1; __pyx_r = __pyx_pf_7pymusic_4Port___cinit__(((struct __pyx_obj_7pymusic_Port *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_7pymusic_4Port___cinit__(struct __pyx_obj_7pymusic_Port *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "pymusic.pyx":104 * C++ class assigned to ptr from a Setup.publish* method. * """ * self.ptr = NULL # <<<<<<<<<<<<<< * * def __hash__(self): */ __pyx_v_self->ptr = NULL; /* "pymusic.pyx":99 * container. * """ * def __cinit__(self): # <<<<<<<<<<<<<< * """ * When a Port object is created, it needs to have an underlying */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":106 * self.ptr = NULL * * def __hash__(self): # <<<<<<<<<<<<<< * """ * Hash function: pointer value % to an int. */ /* Python wrapper */ static Py_hash_t __pyx_pw_7pymusic_4Port_3__hash__(PyObject *__pyx_v_self); /*proto*/ static char __pyx_doc_7pymusic_4Port_2__hash__[] = "\n Hash function: pointer value % to an int.\n "; #if CYTHON_COMPILING_IN_CPYTHON struct wrapperbase __pyx_wrapperbase_7pymusic_4Port_2__hash__; #endif static Py_hash_t __pyx_pw_7pymusic_4Port_3__hash__(PyObject *__pyx_v_self) { Py_hash_t __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_4Port_2__hash__(((struct __pyx_obj_7pymusic_Port *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static Py_hash_t __pyx_pf_7pymusic_4Port_2__hash__(struct __pyx_obj_7pymusic_Port *__pyx_v_self) { Py_hash_t __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__hash__", 0); /* "pymusic.pyx":110 * Hash function: pointer value % to an int. * """ * return self.ptr # <<<<<<<<<<<<<< * * cpdef null(self): */ __pyx_r = ((int)((size_t)__pyx_v_self->ptr)); goto __pyx_L0; /* "pymusic.pyx":106 * self.ptr = NULL * * def __hash__(self): # <<<<<<<<<<<<<< * """ * Hash function: pointer value % to an int. */ /* function exit code */ __pyx_L0:; if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":112 * return self.ptr * * cpdef null(self): # <<<<<<<<<<<<<< * """ * When Setup or Runtime no longer needs ports and so may deallocate */ static PyObject *__pyx_pw_7pymusic_4Port_5null(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_f_7pymusic_4Port_null(struct __pyx_obj_7pymusic_Port *__pyx_v_self, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("null", 0); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_null); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_7pymusic_4Port_5null)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "pymusic.pyx":119 * the descendants * """ * self.ptr = NULL # <<<<<<<<<<<<<< * * def isConnected(self): */ __pyx_v_self->ptr = NULL; /* "pymusic.pyx":112 * return self.ptr * * cpdef null(self): # <<<<<<<<<<<<<< * """ * When Setup or Runtime no longer needs ports and so may deallocate */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("pymusic.Port.null", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_4Port_5null(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_7pymusic_4Port_4null[] = "\n When Setup or Runtime no longer needs ports and so may deallocate\n them, we first must clear the references to them here. This\n may be overridden to give up references to other members by\n the descendants\n "; static PyObject *__pyx_pw_7pymusic_4Port_5null(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("null (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_4Port_4null(((struct __pyx_obj_7pymusic_Port *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_4Port_4null(struct __pyx_obj_7pymusic_Port *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("null", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_7pymusic_4Port_null(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.Port.null", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":121 * self.ptr = NULL * * def isConnected(self): # <<<<<<<<<<<<<< * """ * return True iff the port is actually connected via the config */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_4Port_7isConnected(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_7pymusic_4Port_6isConnected[] = "\n return True iff the port is actually connected via the config\n file.\n "; static PyObject *__pyx_pw_7pymusic_4Port_7isConnected(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("isConnected (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_4Port_6isConnected(((struct __pyx_obj_7pymusic_Port *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_4Port_6isConnected(struct __pyx_obj_7pymusic_Port *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("isConnected", 0); /* "pymusic.pyx":126 * file. * """ * return self.ptr.isConnected() # <<<<<<<<<<<<<< * * def width(self): */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->ptr->isConnected()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 126, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "pymusic.pyx":121 * self.ptr = NULL * * def isConnected(self): # <<<<<<<<<<<<<< * """ * return True iff the port is actually connected via the config */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.Port.isConnected", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":128 * return self.ptr.isConnected() * * def width(self): # <<<<<<<<<<<<<< * """ * Returns the width set in the MUSIC config file */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_4Port_9width(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_7pymusic_4Port_8width[] = "\n Returns the width set in the MUSIC config file\n which defines the number of indices transferred\n along this port. If no width is defined, raise a NoWidth\n exception.\n "; static PyObject *__pyx_pw_7pymusic_4Port_9width(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("width (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_4Port_8width(((struct __pyx_obj_7pymusic_Port *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_4Port_8width(struct __pyx_obj_7pymusic_Port *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("width", 0); /* "pymusic.pyx":135 * exception. * """ * if not self.ptr.hasWidth(): raise NoWidth() # <<<<<<<<<<<<<< * return self.ptr.width() * */ __pyx_t_1 = ((!(__pyx_v_self->ptr->hasWidth() != 0)) != 0); if (unlikely(__pyx_t_1)) { __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_NoWidth); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __PYX_ERR(0, 135, __pyx_L1_error) } /* "pymusic.pyx":136 * """ * if not self.ptr.hasWidth(): raise NoWidth() * return self.ptr.width() # <<<<<<<<<<<<<< * * cdef class ContInputPort(Port): */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->ptr->width()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "pymusic.pyx":128 * return self.ptr.isConnected() * * def width(self): # <<<<<<<<<<<<<< * """ * Returns the width set in the MUSIC config file */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("pymusic.Port.width", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_4Port_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_7pymusic_4Port_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_4Port_10__reduce_cython__(((struct __pyx_obj_7pymusic_Port *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_4Port_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_Port *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.Port.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_4Port_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw_7pymusic_4Port_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_4Port_12__setstate_cython__(((struct __pyx_obj_7pymusic_Port *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_4Port_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_Port *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.Port.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":144 * Setup.publishContInputPort(portname). * """ * def map(self, # <<<<<<<<<<<<<< * object data, * int base=0, */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_13ContInputPort_1map(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_7pymusic_13ContInputPort_map[] = "\n map data as source for this port. (Can you do a multiple mapping?)\n\n object data: object to be shared that has a buffer interface.\n That interface needs to be contiguous formed of\n simple items that can be mapped to simple MPI\n data types.\n int base (=0), object perm (=None): used to construct an\n IndexMap (with number of items in data). See that\n class for more information. Defines mapping for data\n between this input source and the output sinks.\n double delay (=0): this is the delay of measurement relative\n to \"something\" which I haven't been able to\n figure out yet --- needs to be explained.\n interpolate (=True): whether to do a linear interpolation of\n the values that are being delayed. Once\n again, needs to be better explained.\n maxBuffered (=-1): buffer up to maxBuffered ticks. If -1, use\n a \"reasonable value\" (\077\077?). What does this\n mean on the input side?\n "; static PyObject *__pyx_pw_7pymusic_13ContInputPort_1map(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_data = 0; int __pyx_v_base; PyObject *__pyx_v_perm = 0; double __pyx_v_delay; bool __pyx_v_interpolate; int __pyx_v_maxBuffered; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("map (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,&__pyx_n_s_base,&__pyx_n_s_perm,&__pyx_n_s_delay,&__pyx_n_s_interpolate,&__pyx_n_s_maxBuffered,0}; PyObject* values[6] = {0,0,0,0,0,0}; /* "pymusic.pyx":147 * object data, * int base=0, * object perm=None, # <<<<<<<<<<<<<< * double delay=0, * cbool interpolate=True, */ values[2] = ((PyObject *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_base); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_perm); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_delay); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_interpolate); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_maxBuffered); if (value) { values[5] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "map") < 0)) __PYX_ERR(0, 144, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_data = values[0]; if (values[1]) { __pyx_v_base = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_base == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 146, __pyx_L3_error) } else { __pyx_v_base = ((int)0); } __pyx_v_perm = values[2]; if (values[3]) { __pyx_v_delay = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_delay == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 148, __pyx_L3_error) } else { __pyx_v_delay = ((double)0.0); } if (values[4]) { __pyx_v_interpolate = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_interpolate == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 149, __pyx_L3_error) } else { /* "pymusic.pyx":149 * object perm=None, * double delay=0, * cbool interpolate=True, # <<<<<<<<<<<<<< * int maxBuffered=-1): * """ */ __pyx_v_interpolate = ((bool)1); } if (values[5]) { __pyx_v_maxBuffered = __Pyx_PyInt_As_int(values[5]); if (unlikely((__pyx_v_maxBuffered == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 150, __pyx_L3_error) } else { __pyx_v_maxBuffered = ((int)-1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("map", 0, 1, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 144, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pymusic.ContInputPort.map", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_13ContInputPort_map(((struct __pyx_obj_7pymusic_ContInputPort *)__pyx_v_self), __pyx_v_data, __pyx_v_base, __pyx_v_perm, __pyx_v_delay, __pyx_v_interpolate, __pyx_v_maxBuffered); /* "pymusic.pyx":144 * Setup.publishContInputPort(portname). * """ * def map(self, # <<<<<<<<<<<<<< * object data, * int base=0, */ /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_13ContInputPort_map(struct __pyx_obj_7pymusic_ContInputPort *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_v_base, PyObject *__pyx_v_perm, double __pyx_v_delay, bool __pyx_v_interpolate, int __pyx_v_maxBuffered) { struct __pyx_obj_5music_8pybuffer_Buffer *__pyx_v_buf = 0; struct __pyx_obj_7pymusic_IndexMap *__pyx_v_imap = 0; struct __pyx_obj_7pymusic_DataMap *__pyx_v_d = 0; MUSIC::ContInputPort *__pyx_v_ptr; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; __Pyx_RefNannySetupContext("map", 0); /* "pymusic.pyx":172 * mean on the input side? * """ * cdef Buffer buf = Buffer(data) # <<<<<<<<<<<<<< * cdef IndexMap imap = IndexMap(perm, base, buf.items) * cdef DataMap d = DataMap(buf, imap) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5music_8pybuffer_Buffer), __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_buf = ((struct __pyx_obj_5music_8pybuffer_Buffer *)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":173 * """ * cdef Buffer buf = Buffer(data) * cdef IndexMap imap = IndexMap(perm, base, buf.items) # <<<<<<<<<<<<<< * cdef DataMap d = DataMap(buf, imap) * cdef CContInputPort* ptr = dc_CContInputPort(self.ptr) */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_base); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_buf->items); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_perm); __Pyx_GIVEREF(__pyx_v_perm); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_perm); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7pymusic_IndexMap), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_imap = ((struct __pyx_obj_7pymusic_IndexMap *)__pyx_t_2); __pyx_t_2 = 0; /* "pymusic.pyx":174 * cdef Buffer buf = Buffer(data) * cdef IndexMap imap = IndexMap(perm, base, buf.items) * cdef DataMap d = DataMap(buf, imap) # <<<<<<<<<<<<<< * cdef CContInputPort* ptr = dc_CContInputPort(self.ptr) * mapImpl(ptr, d.ptr, delay, maxBuffered, interpolate) */ __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(((PyObject *)__pyx_v_buf)); __Pyx_GIVEREF(((PyObject *)__pyx_v_buf)); PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_buf)); __Pyx_INCREF(((PyObject *)__pyx_v_imap)); __Pyx_GIVEREF(((PyObject *)__pyx_v_imap)); PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_imap)); __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7pymusic_DataMap), __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_d = ((struct __pyx_obj_7pymusic_DataMap *)__pyx_t_3); __pyx_t_3 = 0; /* "pymusic.pyx":175 * cdef IndexMap imap = IndexMap(perm, base, buf.items) * cdef DataMap d = DataMap(buf, imap) * cdef CContInputPort* ptr = dc_CContInputPort(self.ptr) # <<<<<<<<<<<<<< * mapImpl(ptr, d.ptr, delay, maxBuffered, interpolate) * */ __pyx_v_ptr = dynamic_cast(__pyx_v_self->__pyx_base.ptr); /* "pymusic.pyx":176 * cdef DataMap d = DataMap(buf, imap) * cdef CContInputPort* ptr = dc_CContInputPort(self.ptr) * mapImpl(ptr, d.ptr, delay, maxBuffered, interpolate) # <<<<<<<<<<<<<< * * cdef class ContOutputPort(Port): */ MUSIC::Implementer::mapImpl(__pyx_v_ptr, __pyx_v_d->ptr, __pyx_v_delay, __pyx_v_maxBuffered, __pyx_v_interpolate); /* "pymusic.pyx":144 * Setup.publishContInputPort(portname). * """ * def map(self, # <<<<<<<<<<<<<< * object data, * int base=0, */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("pymusic.ContInputPort.map", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_buf); __Pyx_XDECREF((PyObject *)__pyx_v_imap); __Pyx_XDECREF((PyObject *)__pyx_v_d); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_13ContInputPort_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_7pymusic_13ContInputPort_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_13ContInputPort_2__reduce_cython__(((struct __pyx_obj_7pymusic_ContInputPort *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_13ContInputPort_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_ContInputPort *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.ContInputPort.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_13ContInputPort_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw_7pymusic_13ContInputPort_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_13ContInputPort_4__setstate_cython__(((struct __pyx_obj_7pymusic_ContInputPort *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_13ContInputPort_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_ContInputPort *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.ContInputPort.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":184 * Setup.publishContOutputPort(portname). * """ * def map(self, object data, # <<<<<<<<<<<<<< * int base=0, object perm=None, * int maxBuffered=-1): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_14ContOutputPort_1map(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_7pymusic_14ContOutputPort_map[] = "\n map data as sink for this port. (Can you do a multiple mapping?)\n\n object data: object to be shared that has a buffer interface.\n That interface needs to be contiguous formed of\n simple items that can be mapped to simple MPI\n data types.\n int base (=0), object perm (=None): used to construct an\n IndexMap (with number of items in data). See that\n class for more information. Defines mapping for data\n between this input source and the output sinks.\n maxBuffered (=-1): buffer up to maxBuffered ticks. If -1, use\n a \"reasonable value\" (\077\077?).\n "; static PyObject *__pyx_pw_7pymusic_14ContOutputPort_1map(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_data = 0; int __pyx_v_base; PyObject *__pyx_v_perm = 0; int __pyx_v_maxBuffered; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("map (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_data,&__pyx_n_s_base,&__pyx_n_s_perm,&__pyx_n_s_maxBuffered,0}; PyObject* values[4] = {0,0,0,0}; /* "pymusic.pyx":185 * """ * def map(self, object data, * int base=0, object perm=None, # <<<<<<<<<<<<<< * int maxBuffered=-1): * """ */ values[2] = ((PyObject *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_base); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_perm); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_maxBuffered); if (value) { values[3] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "map") < 0)) __PYX_ERR(0, 184, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_data = values[0]; if (values[1]) { __pyx_v_base = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_base == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 185, __pyx_L3_error) } else { __pyx_v_base = ((int)0); } __pyx_v_perm = values[2]; if (values[3]) { __pyx_v_maxBuffered = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_maxBuffered == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 186, __pyx_L3_error) } else { __pyx_v_maxBuffered = ((int)-1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("map", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 184, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pymusic.ContOutputPort.map", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_14ContOutputPort_map(((struct __pyx_obj_7pymusic_ContOutputPort *)__pyx_v_self), __pyx_v_data, __pyx_v_base, __pyx_v_perm, __pyx_v_maxBuffered); /* "pymusic.pyx":184 * Setup.publishContOutputPort(portname). * """ * def map(self, object data, # <<<<<<<<<<<<<< * int base=0, object perm=None, * int maxBuffered=-1): */ /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_14ContOutputPort_map(struct __pyx_obj_7pymusic_ContOutputPort *__pyx_v_self, PyObject *__pyx_v_data, int __pyx_v_base, PyObject *__pyx_v_perm, int __pyx_v_maxBuffered) { struct __pyx_obj_5music_8pybuffer_Buffer *__pyx_v_buf = 0; struct __pyx_obj_7pymusic_IndexMap *__pyx_v_imap = 0; struct __pyx_obj_7pymusic_DataMap *__pyx_v_d = 0; MUSIC::ContOutputPort *__pyx_v_ptr; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; __Pyx_RefNannySetupContext("map", 0); /* "pymusic.pyx":201 * a "reasonable value" (???). * """ * cdef Buffer buf = Buffer(data) # <<<<<<<<<<<<<< * cdef IndexMap imap = IndexMap(perm, base, buf.items) * cdef DataMap d = DataMap(buf, imap) */ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5music_8pybuffer_Buffer), __pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_buf = ((struct __pyx_obj_5music_8pybuffer_Buffer *)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":202 * """ * cdef Buffer buf = Buffer(data) * cdef IndexMap imap = IndexMap(perm, base, buf.items) # <<<<<<<<<<<<<< * cdef DataMap d = DataMap(buf, imap) * cdef CContOutputPort* ptr = dc_CContOutputPort(self.ptr) */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_base); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_buf->items); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_perm); __Pyx_GIVEREF(__pyx_v_perm); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_perm); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7pymusic_IndexMap), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 202, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_imap = ((struct __pyx_obj_7pymusic_IndexMap *)__pyx_t_2); __pyx_t_2 = 0; /* "pymusic.pyx":203 * cdef Buffer buf = Buffer(data) * cdef IndexMap imap = IndexMap(perm, base, buf.items) * cdef DataMap d = DataMap(buf, imap) # <<<<<<<<<<<<<< * cdef CContOutputPort* ptr = dc_CContOutputPort(self.ptr) * mapImpl(ptr, d.ptr, maxBuffered) */ __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(((PyObject *)__pyx_v_buf)); __Pyx_GIVEREF(((PyObject *)__pyx_v_buf)); PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_buf)); __Pyx_INCREF(((PyObject *)__pyx_v_imap)); __Pyx_GIVEREF(((PyObject *)__pyx_v_imap)); PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_imap)); __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7pymusic_DataMap), __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 203, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_d = ((struct __pyx_obj_7pymusic_DataMap *)__pyx_t_3); __pyx_t_3 = 0; /* "pymusic.pyx":204 * cdef IndexMap imap = IndexMap(perm, base, buf.items) * cdef DataMap d = DataMap(buf, imap) * cdef CContOutputPort* ptr = dc_CContOutputPort(self.ptr) # <<<<<<<<<<<<<< * mapImpl(ptr, d.ptr, maxBuffered) * */ __pyx_v_ptr = dynamic_cast(__pyx_v_self->__pyx_base.ptr); /* "pymusic.pyx":205 * cdef DataMap d = DataMap(buf, imap) * cdef CContOutputPort* ptr = dc_CContOutputPort(self.ptr) * mapImpl(ptr, d.ptr, maxBuffered) # <<<<<<<<<<<<<< * * cdef class EventInputPort(Port): */ MUSIC::Implementer::mapImpl(__pyx_v_ptr, __pyx_v_d->ptr, __pyx_v_maxBuffered); /* "pymusic.pyx":184 * Setup.publishContOutputPort(portname). * """ * def map(self, object data, # <<<<<<<<<<<<<< * int base=0, object perm=None, * int maxBuffered=-1): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("pymusic.ContOutputPort.map", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_buf); __Pyx_XDECREF((PyObject *)__pyx_v_imap); __Pyx_XDECREF((PyObject *)__pyx_v_d); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_14ContOutputPort_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_7pymusic_14ContOutputPort_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_14ContOutputPort_2__reduce_cython__(((struct __pyx_obj_7pymusic_ContOutputPort *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_14ContOutputPort_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_ContOutputPort *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.ContOutputPort.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_14ContOutputPort_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw_7pymusic_14ContOutputPort_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_14ContOutputPort_4__setstate_cython__(((struct __pyx_obj_7pymusic_ContOutputPort *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_14ContOutputPort_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_ContOutputPort *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.ContOutputPort.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":217 * here and drop the reference when this object is null'd (events member). * """ * def __cinit__(self): # <<<<<<<<<<<<<< * """ * Store a set of references to the event handlers */ /* Python wrapper */ static int __pyx_pw_7pymusic_14EventInputPort_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_7pymusic_14EventInputPort_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1; __pyx_r = __pyx_pf_7pymusic_14EventInputPort___cinit__(((struct __pyx_obj_7pymusic_EventInputPort *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_7pymusic_14EventInputPort___cinit__(struct __pyx_obj_7pymusic_EventInputPort *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__cinit__", 0); /* "pymusic.pyx":221 * Store a set of references to the event handlers * """ * self.events = set() # <<<<<<<<<<<<<< * * cpdef null(self): */ __pyx_t_1 = PySet_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 221, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->events); __Pyx_DECREF(__pyx_v_self->events); __pyx_v_self->events = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":217 * here and drop the reference when this object is null'd (events member). * """ * def __cinit__(self): # <<<<<<<<<<<<<< * """ * Store a set of references to the event handlers */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.EventInputPort.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":223 * self.events = set() * * cpdef null(self): # <<<<<<<<<<<<<< * """ * Not just null pointer, but give up the associated event */ static PyObject *__pyx_pw_7pymusic_14EventInputPort_3null(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_f_7pymusic_14EventInputPort_null(struct __pyx_obj_7pymusic_EventInputPort *__pyx_v_self, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("null", 0); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_null); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_7pymusic_14EventInputPort_3null)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "pymusic.pyx":228 * handlers. * """ * Port.null(self) # <<<<<<<<<<<<<< * self.events = None * */ __pyx_t_1 = __pyx_f_7pymusic_4Port_null(((struct __pyx_obj_7pymusic_Port *)__pyx_v_self), 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":229 * """ * Port.null(self) * self.events = None # <<<<<<<<<<<<<< * * def map(self, func, IndexType t, */ __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_self->events); __Pyx_DECREF(__pyx_v_self->events); __pyx_v_self->events = ((PyObject*)Py_None); /* "pymusic.pyx":223 * self.events = set() * * cpdef null(self): # <<<<<<<<<<<<<< * """ * Not just null pointer, but give up the associated event */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("pymusic.EventInputPort.null", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_14EventInputPort_3null(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_7pymusic_14EventInputPort_2null[] = "\n Not just null pointer, but give up the associated event\n handlers.\n "; static PyObject *__pyx_pw_7pymusic_14EventInputPort_3null(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("null (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_14EventInputPort_2null(((struct __pyx_obj_7pymusic_EventInputPort *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_14EventInputPort_2null(struct __pyx_obj_7pymusic_EventInputPort *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("null", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_7pymusic_14EventInputPort_null(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 223, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.EventInputPort.null", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":231 * self.events = None * * def map(self, func, IndexType t, # <<<<<<<<<<<<<< * double accLatency=0, int maxBuffered=-1, * object perm=None, int base=-1, int size=-1): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_14EventInputPort_5map(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_7pymusic_14EventInputPort_4map[] = "\n Map events to this sink.\n func is:\n void func(double value, IndexType GLOBAL|LOCAL, int index)\n IndexType is (?) the index type to map the incoming sources\n passed to the func (why, if we already know this?)\n accLatency is the delivery delay relative to calculation time\n (? is it ? What formula are we using here?)\n maxBuffered is ticks to buffer\n perm, base & size are passed to IndexMap\n "; static PyObject *__pyx_pw_7pymusic_14EventInputPort_5map(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_func = 0; MUSIC::Index::Type __pyx_v_t; double __pyx_v_accLatency; int __pyx_v_maxBuffered; PyObject *__pyx_v_perm = 0; int __pyx_v_base; int __pyx_v_size; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("map (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_func,&__pyx_n_s_t,&__pyx_n_s_accLatency,&__pyx_n_s_maxBuffered,&__pyx_n_s_perm,&__pyx_n_s_base,&__pyx_n_s_size,0}; PyObject* values[7] = {0,0,0,0,0,0,0}; /* "pymusic.pyx":233 * def map(self, func, IndexType t, * double accLatency=0, int maxBuffered=-1, * object perm=None, int base=-1, int size=-1): # <<<<<<<<<<<<<< * """ * Map events to this sink. */ values[4] = ((PyObject *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("map", 0, 2, 7, 1); __PYX_ERR(0, 231, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_accLatency); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_maxBuffered); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_perm); if (value) { values[4] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 5: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_base); if (value) { values[5] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 6: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_size); if (value) { values[6] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "map") < 0)) __PYX_ERR(0, 231, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6); CYTHON_FALLTHROUGH; case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5); CYTHON_FALLTHROUGH; case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_func = values[0]; __pyx_v_t = ((MUSIC::Index::Type)__Pyx_PyInt_As_MUSIC_3a__3a_Index_3a__3a_Type(values[1])); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 231, __pyx_L3_error) if (values[2]) { __pyx_v_accLatency = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_accLatency == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 232, __pyx_L3_error) } else { __pyx_v_accLatency = ((double)0.0); } if (values[3]) { __pyx_v_maxBuffered = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_maxBuffered == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 232, __pyx_L3_error) } else { __pyx_v_maxBuffered = ((int)-1); } __pyx_v_perm = values[4]; if (values[5]) { __pyx_v_base = __Pyx_PyInt_As_int(values[5]); if (unlikely((__pyx_v_base == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 233, __pyx_L3_error) } else { __pyx_v_base = ((int)-1); } if (values[6]) { __pyx_v_size = __Pyx_PyInt_As_int(values[6]); if (unlikely((__pyx_v_size == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 233, __pyx_L3_error) } else { __pyx_v_size = ((int)-1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("map", 0, 2, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 231, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pymusic.EventInputPort.map", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_14EventInputPort_4map(((struct __pyx_obj_7pymusic_EventInputPort *)__pyx_v_self), __pyx_v_func, __pyx_v_t, __pyx_v_accLatency, __pyx_v_maxBuffered, __pyx_v_perm, __pyx_v_base, __pyx_v_size); /* "pymusic.pyx":231 * self.events = None * * def map(self, func, IndexType t, # <<<<<<<<<<<<<< * double accLatency=0, int maxBuffered=-1, * object perm=None, int base=-1, int size=-1): */ /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_14EventInputPort_4map(struct __pyx_obj_7pymusic_EventInputPort *__pyx_v_self, PyObject *__pyx_v_func, MUSIC::Index::Type __pyx_v_t, double __pyx_v_accLatency, int __pyx_v_maxBuffered, PyObject *__pyx_v_perm, int __pyx_v_base, int __pyx_v_size) { struct __pyx_obj_7pymusic_IndexMap *__pyx_v_imap = 0; struct __pyx_obj_7pymusic_EventHandler *__pyx_v_eh = 0; MUSIC::EventInputPort *__pyx_v_ptr; MUSIC::EventHandlerPtr __pyx_v_hndl; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; int __pyx_t_4; __Pyx_RefNannySetupContext("map", 0); /* "pymusic.pyx":245 * perm, base & size are passed to IndexMap * """ * cdef IndexMap imap = IndexMap(perm, base, size) # <<<<<<<<<<<<<< * cdef EventHandler eh = EventHandler(func, t) * cdef CEventInputPort* ptr = dc_CEventInputPort(self.ptr) */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_base); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_size); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_perm); __Pyx_GIVEREF(__pyx_v_perm); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_perm); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7pymusic_IndexMap), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_imap = ((struct __pyx_obj_7pymusic_IndexMap *)__pyx_t_2); __pyx_t_2 = 0; /* "pymusic.pyx":246 * """ * cdef IndexMap imap = IndexMap(perm, base, size) * cdef EventHandler eh = EventHandler(func, t) # <<<<<<<<<<<<<< * cdef CEventInputPort* ptr = dc_CEventInputPort(self.ptr) * cdef CEventHandlerPtr hndl = getEventHandlerPtr(t, eh.ptr) */ __pyx_t_2 = __Pyx_PyInt_From_MUSIC_3a__3a_Index_3a__3a_Type(__pyx_v_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_func); __Pyx_GIVEREF(__pyx_v_func); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_func); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7pymusic_EventHandler), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_eh = ((struct __pyx_obj_7pymusic_EventHandler *)__pyx_t_2); __pyx_t_2 = 0; /* "pymusic.pyx":247 * cdef IndexMap imap = IndexMap(perm, base, size) * cdef EventHandler eh = EventHandler(func, t) * cdef CEventInputPort* ptr = dc_CEventInputPort(self.ptr) # <<<<<<<<<<<<<< * cdef CEventHandlerPtr hndl = getEventHandlerPtr(t, eh.ptr) * mapImpl(ptr, imap.ptr, t, hndl, accLatency, maxBuffered) */ __pyx_v_ptr = dynamic_cast(__pyx_v_self->__pyx_base.ptr); /* "pymusic.pyx":248 * cdef EventHandler eh = EventHandler(func, t) * cdef CEventInputPort* ptr = dc_CEventInputPort(self.ptr) * cdef CEventHandlerPtr hndl = getEventHandlerPtr(t, eh.ptr) # <<<<<<<<<<<<<< * mapImpl(ptr, imap.ptr, t, hndl, accLatency, maxBuffered) * self.events.add(eh) */ __pyx_v_hndl = MUSIC::getEventHandlerPtr(__pyx_v_t, __pyx_v_eh->ptr); /* "pymusic.pyx":249 * cdef CEventInputPort* ptr = dc_CEventInputPort(self.ptr) * cdef CEventHandlerPtr hndl = getEventHandlerPtr(t, eh.ptr) * mapImpl(ptr, imap.ptr, t, hndl, accLatency, maxBuffered) # <<<<<<<<<<<<<< * self.events.add(eh) * */ MUSIC::Implementer::mapImpl(__pyx_v_ptr, __pyx_v_imap->ptr, __pyx_v_t, __pyx_v_hndl, __pyx_v_accLatency, __pyx_v_maxBuffered); /* "pymusic.pyx":250 * cdef CEventHandlerPtr hndl = getEventHandlerPtr(t, eh.ptr) * mapImpl(ptr, imap.ptr, t, hndl, accLatency, maxBuffered) * self.events.add(eh) # <<<<<<<<<<<<<< * * cdef class EventOutputPort(Port): */ if (unlikely(__pyx_v_self->events == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add"); __PYX_ERR(0, 250, __pyx_L1_error) } __pyx_t_4 = PySet_Add(__pyx_v_self->events, ((PyObject *)__pyx_v_eh)); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 250, __pyx_L1_error) /* "pymusic.pyx":231 * self.events = None * * def map(self, func, IndexType t, # <<<<<<<<<<<<<< * double accLatency=0, int maxBuffered=-1, * object perm=None, int base=-1, int size=-1): */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("pymusic.EventInputPort.map", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_imap); __Pyx_XDECREF((PyObject *)__pyx_v_eh); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_14EventInputPort_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_7pymusic_14EventInputPort_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_14EventInputPort_6__reduce_cython__(((struct __pyx_obj_7pymusic_EventInputPort *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_14EventInputPort_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_EventInputPort *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.EventInputPort.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_14EventInputPort_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw_7pymusic_14EventInputPort_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_14EventInputPort_8__setstate_cython__(((struct __pyx_obj_7pymusic_EventInputPort *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_14EventInputPort_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_EventInputPort *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.EventInputPort.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":257 * events. * """ * def map(self, IndexType t, int maxBuffered=-1, # <<<<<<<<<<<<<< * object perm=None, int base=-1, int size=-1): * """ */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_15EventOutputPort_1map(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_7pymusic_15EventOutputPort_map[] = "\n IndexType: LOCAL/GLOBAL\n maxBuffered: tick to buffer (why on both sides?)\n perm, base, size: define IndexMap (see that class)\n "; static PyObject *__pyx_pw_7pymusic_15EventOutputPort_1map(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { MUSIC::Index::Type __pyx_v_t; int __pyx_v_maxBuffered; PyObject *__pyx_v_perm = 0; int __pyx_v_base; int __pyx_v_size; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("map (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_t,&__pyx_n_s_maxBuffered,&__pyx_n_s_perm,&__pyx_n_s_base,&__pyx_n_s_size,0}; PyObject* values[5] = {0,0,0,0,0}; /* "pymusic.pyx":258 * """ * def map(self, IndexType t, int maxBuffered=-1, * object perm=None, int base=-1, int size=-1): # <<<<<<<<<<<<<< * """ * IndexType: LOCAL/GLOBAL */ values[2] = ((PyObject *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_maxBuffered); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_perm); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_base); if (value) { values[3] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 4: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_size); if (value) { values[4] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "map") < 0)) __PYX_ERR(0, 257, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4); CYTHON_FALLTHROUGH; case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_t = ((MUSIC::Index::Type)__Pyx_PyInt_As_MUSIC_3a__3a_Index_3a__3a_Type(values[0])); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 257, __pyx_L3_error) if (values[1]) { __pyx_v_maxBuffered = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_maxBuffered == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 257, __pyx_L3_error) } else { __pyx_v_maxBuffered = ((int)-1); } __pyx_v_perm = values[2]; if (values[3]) { __pyx_v_base = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_base == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 258, __pyx_L3_error) } else { __pyx_v_base = ((int)-1); } if (values[4]) { __pyx_v_size = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_size == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 258, __pyx_L3_error) } else { __pyx_v_size = ((int)-1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("map", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 257, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pymusic.EventOutputPort.map", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_15EventOutputPort_map(((struct __pyx_obj_7pymusic_EventOutputPort *)__pyx_v_self), __pyx_v_t, __pyx_v_maxBuffered, __pyx_v_perm, __pyx_v_base, __pyx_v_size); /* "pymusic.pyx":257 * events. * """ * def map(self, IndexType t, int maxBuffered=-1, # <<<<<<<<<<<<<< * object perm=None, int base=-1, int size=-1): * """ */ /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_15EventOutputPort_map(struct __pyx_obj_7pymusic_EventOutputPort *__pyx_v_self, MUSIC::Index::Type __pyx_v_t, int __pyx_v_maxBuffered, PyObject *__pyx_v_perm, int __pyx_v_base, int __pyx_v_size) { struct __pyx_obj_7pymusic_IndexMap *__pyx_v_m = 0; MUSIC::EventOutputPort *__pyx_v_ptr; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; __Pyx_RefNannySetupContext("map", 0); /* "pymusic.pyx":264 * perm, base, size: define IndexMap (see that class) * """ * cdef IndexMap m = IndexMap(perm, base, size) # <<<<<<<<<<<<<< * cdef CEventOutputPort* ptr = dc_CEventOutputPort(self.ptr) * mapImpl(ptr, m.ptr, t, maxBuffered) */ __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_base); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_size); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_perm); __Pyx_GIVEREF(__pyx_v_perm); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_perm); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2); __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7pymusic_IndexMap), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 264, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_m = ((struct __pyx_obj_7pymusic_IndexMap *)__pyx_t_2); __pyx_t_2 = 0; /* "pymusic.pyx":265 * """ * cdef IndexMap m = IndexMap(perm, base, size) * cdef CEventOutputPort* ptr = dc_CEventOutputPort(self.ptr) # <<<<<<<<<<<<<< * mapImpl(ptr, m.ptr, t, maxBuffered) * */ __pyx_v_ptr = dynamic_cast(__pyx_v_self->__pyx_base.ptr); /* "pymusic.pyx":266 * cdef IndexMap m = IndexMap(perm, base, size) * cdef CEventOutputPort* ptr = dc_CEventOutputPort(self.ptr) * mapImpl(ptr, m.ptr, t, maxBuffered) # <<<<<<<<<<<<<< * * def insertEvent(self, double time, int index, IndexType t): */ MUSIC::Implementer::mapImpl(__pyx_v_ptr, __pyx_v_m->ptr, __pyx_v_t, __pyx_v_maxBuffered); /* "pymusic.pyx":257 * events. * """ * def map(self, IndexType t, int maxBuffered=-1, # <<<<<<<<<<<<<< * object perm=None, int base=-1, int size=-1): * """ */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_AddTraceback("pymusic.EventOutputPort.map", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_m); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":268 * mapImpl(ptr, m.ptr, t, maxBuffered) * * def insertEvent(self, double time, int index, IndexType t): # <<<<<<<<<<<<<< * """ * double time: time of event (must be during current tick) */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_15EventOutputPort_3insertEvent(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_7pymusic_15EventOutputPort_2insertEvent[] = "\n double time: time of event (must be during current tick)\n int index: local or global index of event\n IndexType t: LOCAL|GLOBAL\n "; static PyObject *__pyx_pw_7pymusic_15EventOutputPort_3insertEvent(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { double __pyx_v_time; int __pyx_v_index; CYTHON_UNUSED MUSIC::Index::Type __pyx_v_t; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("insertEvent (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_time,&__pyx_n_s_index,&__pyx_n_s_t,0}; PyObject* values[3] = {0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_time)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_index)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("insertEvent", 1, 3, 3, 1); __PYX_ERR(0, 268, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("insertEvent", 1, 3, 3, 2); __PYX_ERR(0, 268, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "insertEvent") < 0)) __PYX_ERR(0, 268, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[2] = PyTuple_GET_ITEM(__pyx_args, 2); } __pyx_v_time = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_time == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 268, __pyx_L3_error) __pyx_v_index = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 268, __pyx_L3_error) __pyx_v_t = ((MUSIC::Index::Type)__Pyx_PyInt_As_MUSIC_3a__3a_Index_3a__3a_Type(values[2])); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 268, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("insertEvent", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 268, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pymusic.EventOutputPort.insertEvent", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_15EventOutputPort_2insertEvent(((struct __pyx_obj_7pymusic_EventOutputPort *)__pyx_v_self), __pyx_v_time, __pyx_v_index, __pyx_v_t); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_15EventOutputPort_2insertEvent(struct __pyx_obj_7pymusic_EventOutputPort *__pyx_v_self, double __pyx_v_time, int __pyx_v_index, CYTHON_UNUSED MUSIC::Index::Type __pyx_v_t) { MUSIC::EventOutputPort *__pyx_v_ptr; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("insertEvent", 0); /* "pymusic.pyx":274 * IndexType t: LOCAL|GLOBAL * """ * cdef CEventOutputPort* ptr = dc_CEventOutputPort(self.ptr) # <<<<<<<<<<<<<< * insertEventImpl(ptr, time, index) * */ __pyx_v_ptr = dynamic_cast(__pyx_v_self->__pyx_base.ptr); /* "pymusic.pyx":275 * """ * cdef CEventOutputPort* ptr = dc_CEventOutputPort(self.ptr) * insertEventImpl(ptr, time, index) # <<<<<<<<<<<<<< * * cdef class MessageInputPort(Port): */ MUSIC::Implementer::insertEventImpl(__pyx_v_ptr, __pyx_v_time, __pyx_v_index); /* "pymusic.pyx":268 * mapImpl(ptr, m.ptr, t, maxBuffered) * * def insertEvent(self, double time, int index, IndexType t): # <<<<<<<<<<<<<< * """ * double time: time of event (must be during current tick) */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_15EventOutputPort_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_7pymusic_15EventOutputPort_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_15EventOutputPort_4__reduce_cython__(((struct __pyx_obj_7pymusic_EventOutputPort *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_15EventOutputPort_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_EventOutputPort *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.EventOutputPort.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_15EventOutputPort_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw_7pymusic_15EventOutputPort_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_15EventOutputPort_6__setstate_cython__(((struct __pyx_obj_7pymusic_EventOutputPort *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_15EventOutputPort_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_EventOutputPort *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.EventOutputPort.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":285 * here and drop the reference when this object is null'd. * """ * def __cinit__(self): # <<<<<<<<<<<<<< * self.events = set() * */ /* Python wrapper */ static int __pyx_pw_7pymusic_16MessageInputPort_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_7pymusic_16MessageInputPort_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1; __pyx_r = __pyx_pf_7pymusic_16MessageInputPort___cinit__(((struct __pyx_obj_7pymusic_MessageInputPort *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_7pymusic_16MessageInputPort___cinit__(struct __pyx_obj_7pymusic_MessageInputPort *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__cinit__", 0); /* "pymusic.pyx":286 * """ * def __cinit__(self): * self.events = set() # <<<<<<<<<<<<<< * * cpdef null(self): */ __pyx_t_1 = PySet_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 286, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->events); __Pyx_DECREF(__pyx_v_self->events); __pyx_v_self->events = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":285 * here and drop the reference when this object is null'd. * """ * def __cinit__(self): # <<<<<<<<<<<<<< * self.events = set() * */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.MessageInputPort.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":288 * self.events = set() * * cpdef null(self): # <<<<<<<<<<<<<< * """ * Remember to remove the references to events... */ static PyObject *__pyx_pw_7pymusic_16MessageInputPort_3null(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_f_7pymusic_16MessageInputPort_null(struct __pyx_obj_7pymusic_MessageInputPort *__pyx_v_self, int __pyx_skip_dispatch) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("null", 0); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_null); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_7pymusic_16MessageInputPort_3null)) { __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "pymusic.pyx":292 * Remember to remove the references to events... * """ * Port.null(self) # <<<<<<<<<<<<<< * self.events = None * */ __pyx_t_1 = __pyx_f_7pymusic_4Port_null(((struct __pyx_obj_7pymusic_Port *)__pyx_v_self), 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":293 * """ * Port.null(self) * self.events = None # <<<<<<<<<<<<<< * * def map(self, func, double accLatency=0, int maxBuffered=-1, bint pickled=True): */ __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_self->events); __Pyx_DECREF(__pyx_v_self->events); __pyx_v_self->events = ((PyObject*)Py_None); /* "pymusic.pyx":288 * self.events = set() * * cpdef null(self): # <<<<<<<<<<<<<< * """ * Remember to remove the references to events... */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("pymusic.MessageInputPort.null", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_16MessageInputPort_3null(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_7pymusic_16MessageInputPort_2null[] = "\n Remember to remove the references to events...\n "; static PyObject *__pyx_pw_7pymusic_16MessageInputPort_3null(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("null (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_16MessageInputPort_2null(((struct __pyx_obj_7pymusic_MessageInputPort *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_16MessageInputPort_2null(struct __pyx_obj_7pymusic_MessageInputPort *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("null", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_7pymusic_16MessageInputPort_null(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.MessageInputPort.null", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":295 * self.events = None * * def map(self, func, double accLatency=0, int maxBuffered=-1, bint pickled=True): # <<<<<<<<<<<<<< * """ * The message handling function. */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_16MessageInputPort_5map(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_7pymusic_16MessageInputPort_4map[] = "\n The message handling function.\n func: callable object as follows\n void func(double time, object msg):\n time: the set insertion time of the message\n msg: an object which may have been pickled and fed through music\n accLatency(0): \"acceptable latency\" (\077\077?)\n maxBuffered(-1): ticks that can be buffered (-1 means unknown\n amount (\077\077?))\n pickled(True): pickle objects on both ends; else, the object should be\n a buffer object and we'll receive a bytearray\n "; static PyObject *__pyx_pw_7pymusic_16MessageInputPort_5map(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_func = 0; double __pyx_v_accLatency; int __pyx_v_maxBuffered; int __pyx_v_pickled; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("map (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_func,&__pyx_n_s_accLatency,&__pyx_n_s_maxBuffered,&__pyx_n_s_pickled,0}; PyObject* values[4] = {0,0,0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_accLatency); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_maxBuffered); if (value) { values[2] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 3: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pickled); if (value) { values[3] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "map") < 0)) __PYX_ERR(0, 295, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3); CYTHON_FALLTHROUGH; case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_func = values[0]; if (values[1]) { __pyx_v_accLatency = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_accLatency == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 295, __pyx_L3_error) } else { __pyx_v_accLatency = ((double)0.0); } if (values[2]) { __pyx_v_maxBuffered = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_maxBuffered == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 295, __pyx_L3_error) } else { __pyx_v_maxBuffered = ((int)-1); } if (values[3]) { __pyx_v_pickled = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_pickled == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 295, __pyx_L3_error) } else { __pyx_v_pickled = ((int)1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("map", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 295, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pymusic.MessageInputPort.map", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_16MessageInputPort_4map(((struct __pyx_obj_7pymusic_MessageInputPort *)__pyx_v_self), __pyx_v_func, __pyx_v_accLatency, __pyx_v_maxBuffered, __pyx_v_pickled); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_16MessageInputPort_4map(struct __pyx_obj_7pymusic_MessageInputPort *__pyx_v_self, PyObject *__pyx_v_func, double __pyx_v_accLatency, int __pyx_v_maxBuffered, int __pyx_v_pickled) { struct __pyx_obj_7pymusic_MessageHandler *__pyx_v_eh = 0; MUSIC::MessageInputPort *__pyx_v_ptr; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; int __pyx_t_3; __Pyx_RefNannySetupContext("map", 0); /* "pymusic.pyx":308 * a buffer object and we'll receive a bytearray * """ * cdef MessageHandler eh = MessageHandler(func, pickled) # <<<<<<<<<<<<<< * cdef CMessageInputPort* ptr = dc_CMessageInputPort(self.ptr) * mapImpl(ptr, eh.ptr, accLatency, maxBuffered) */ __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_pickled); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 308, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 308, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_v_func); __Pyx_GIVEREF(__pyx_v_func); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_func); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7pymusic_MessageHandler), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 308, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_eh = ((struct __pyx_obj_7pymusic_MessageHandler *)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":309 * """ * cdef MessageHandler eh = MessageHandler(func, pickled) * cdef CMessageInputPort* ptr = dc_CMessageInputPort(self.ptr) # <<<<<<<<<<<<<< * mapImpl(ptr, eh.ptr, accLatency, maxBuffered) * self.events.add(eh) */ __pyx_v_ptr = dynamic_cast(__pyx_v_self->__pyx_base.ptr); /* "pymusic.pyx":310 * cdef MessageHandler eh = MessageHandler(func, pickled) * cdef CMessageInputPort* ptr = dc_CMessageInputPort(self.ptr) * mapImpl(ptr, eh.ptr, accLatency, maxBuffered) # <<<<<<<<<<<<<< * self.events.add(eh) * */ MUSIC::Implementer::mapImpl(__pyx_v_ptr, __pyx_v_eh->ptr, __pyx_v_accLatency, __pyx_v_maxBuffered); /* "pymusic.pyx":311 * cdef CMessageInputPort* ptr = dc_CMessageInputPort(self.ptr) * mapImpl(ptr, eh.ptr, accLatency, maxBuffered) * self.events.add(eh) # <<<<<<<<<<<<<< * * cdef class MessageOutputPort(Port): */ if (unlikely(__pyx_v_self->events == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add"); __PYX_ERR(0, 311, __pyx_L1_error) } __pyx_t_3 = PySet_Add(__pyx_v_self->events, ((PyObject *)__pyx_v_eh)); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 311, __pyx_L1_error) /* "pymusic.pyx":295 * self.events = None * * def map(self, func, double accLatency=0, int maxBuffered=-1, bint pickled=True): # <<<<<<<<<<<<<< * """ * The message handling function. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("pymusic.MessageInputPort.map", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_eh); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_16MessageInputPort_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_7pymusic_16MessageInputPort_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_16MessageInputPort_6__reduce_cython__(((struct __pyx_obj_7pymusic_MessageInputPort *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_16MessageInputPort_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_MessageInputPort *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.MessageInputPort.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_16MessageInputPort_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw_7pymusic_16MessageInputPort_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_16MessageInputPort_8__setstate_cython__(((struct __pyx_obj_7pymusic_MessageInputPort *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_16MessageInputPort_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_MessageInputPort *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.MessageInputPort.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":318 * pickled and fed to the other end, associated with a time. * """ * def map(self, int maxBuffered=-1, bint pickled=True): # <<<<<<<<<<<<<< * """ * map only sets the buffering ticks. */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_17MessageOutputPort_1map(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_7pymusic_17MessageOutputPort_map[] = "\n map only sets the buffering ticks.\n maxBuffered (-1): ticks to buffer (-1 means \"reasonable\" \077\077?)\n pickled (True): whether messages objects inserted her are automatically\n pickled, else the object should be a buffer-type and\n the other end will get a bytearray.\n "; static PyObject *__pyx_pw_7pymusic_17MessageOutputPort_1map(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_v_maxBuffered; int __pyx_v_pickled; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("map (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_maxBuffered,&__pyx_n_s_pickled,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_maxBuffered); if (value) { values[0] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pickled); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "map") < 0)) __PYX_ERR(0, 318, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } if (values[0]) { __pyx_v_maxBuffered = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_maxBuffered == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 318, __pyx_L3_error) } else { __pyx_v_maxBuffered = ((int)-1); } if (values[1]) { __pyx_v_pickled = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_pickled == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 318, __pyx_L3_error) } else { __pyx_v_pickled = ((int)1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("map", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 318, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pymusic.MessageOutputPort.map", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_17MessageOutputPort_map(((struct __pyx_obj_7pymusic_MessageOutputPort *)__pyx_v_self), __pyx_v_maxBuffered, __pyx_v_pickled); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_17MessageOutputPort_map(struct __pyx_obj_7pymusic_MessageOutputPort *__pyx_v_self, int __pyx_v_maxBuffered, int __pyx_v_pickled) { MUSIC::MessageOutputPort *__pyx_v_ptr; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("map", 0); /* "pymusic.pyx":326 * the other end will get a bytearray. * """ * self.pickled = pickled # <<<<<<<<<<<<<< * cdef CMessageOutputPort* ptr = dc_CMessageOutputPort(self.ptr) * mapImpl(ptr, maxBuffered) */ __pyx_v_self->pickled = __pyx_v_pickled; /* "pymusic.pyx":327 * """ * self.pickled = pickled * cdef CMessageOutputPort* ptr = dc_CMessageOutputPort(self.ptr) # <<<<<<<<<<<<<< * mapImpl(ptr, maxBuffered) * */ __pyx_v_ptr = dynamic_cast(__pyx_v_self->__pyx_base.ptr); /* "pymusic.pyx":328 * self.pickled = pickled * cdef CMessageOutputPort* ptr = dc_CMessageOutputPort(self.ptr) * mapImpl(ptr, maxBuffered) # <<<<<<<<<<<<<< * * def insertMessage(self, double time, object msg): */ MUSIC::Implementer::mapImpl(__pyx_v_ptr, __pyx_v_maxBuffered); /* "pymusic.pyx":318 * pickled and fed to the other end, associated with a time. * """ * def map(self, int maxBuffered=-1, bint pickled=True): # <<<<<<<<<<<<<< * """ * map only sets the buffering ticks. */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":330 * mapImpl(ptr, maxBuffered) * * def insertMessage(self, double time, object msg): # <<<<<<<<<<<<<< * """ * insert a python object as a message at a time during the */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_17MessageOutputPort_3insertMessage(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_7pymusic_17MessageOutputPort_2insertMessage[] = "\n insert a python object as a message at a time during the\n current tick.\n time: ms times (\077\077)\n msg: a python object that can be cPickled if self.pickled == True\n else something that has a buffer interface.\n "; static PyObject *__pyx_pw_7pymusic_17MessageOutputPort_3insertMessage(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { double __pyx_v_time; PyObject *__pyx_v_msg = 0; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("insertMessage (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_time,&__pyx_n_s_msg,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_time)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_msg)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("insertMessage", 1, 2, 2, 1); __PYX_ERR(0, 330, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "insertMessage") < 0)) __PYX_ERR(0, 330, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_time = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_time == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 330, __pyx_L3_error) __pyx_v_msg = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("insertMessage", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 330, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pymusic.MessageOutputPort.insertMessage", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_17MessageOutputPort_2insertMessage(((struct __pyx_obj_7pymusic_MessageOutputPort *)__pyx_v_self), __pyx_v_time, __pyx_v_msg); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_17MessageOutputPort_2insertMessage(struct __pyx_obj_7pymusic_MessageOutputPort *__pyx_v_self, double __pyx_v_time, PyObject *__pyx_v_msg) { MUSIC::MessageOutputPort *__pyx_v_ptr; PyObject *__pyx_v_pmsg = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; char *__pyx_t_8; Py_ssize_t __pyx_t_9; __Pyx_RefNannySetupContext("insertMessage", 0); /* "pymusic.pyx":338 * else something that has a buffer interface. * """ * cdef CMessageOutputPort* ptr = dc_CMessageOutputPort(self.ptr) # <<<<<<<<<<<<<< * cdef bytearray pmsg = \ * pickle.dumps(msg, pickle.HIGHEST_PROTOCOL) \ */ __pyx_v_ptr = dynamic_cast(__pyx_v_self->__pyx_base.ptr); /* "pymusic.pyx":341 * cdef bytearray pmsg = \ * pickle.dumps(msg, pickle.HIGHEST_PROTOCOL) \ * if self.pickled \ # <<<<<<<<<<<<<< * else msg * ptr.insertMessage(time, pmsg, len(pmsg)) */ if ((__pyx_v_self->pickled != 0)) { /* "pymusic.pyx":340 * cdef CMessageOutputPort* ptr = dc_CMessageOutputPort(self.ptr) * cdef bytearray pmsg = \ * pickle.dumps(msg, pickle.HIGHEST_PROTOCOL) \ # <<<<<<<<<<<<<< * if self.pickled \ * else msg */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pickle); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_dumps); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pickle); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_HIGHEST_PROTOCOL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_msg, __pyx_t_5}; __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_msg, __pyx_t_5}; __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_INCREF(__pyx_v_msg); __Pyx_GIVEREF(__pyx_v_msg); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_msg); __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_5); __pyx_t_5 = 0; __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_INCREF(((PyObject*)__pyx_t_2)); __pyx_t_1 = __pyx_t_2; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { /* "pymusic.pyx":342 * pickle.dumps(msg, pickle.HIGHEST_PROTOCOL) \ * if self.pickled \ * else msg # <<<<<<<<<<<<<< * ptr.insertMessage(time, pmsg, len(pmsg)) * */ __Pyx_INCREF(((PyObject*)__pyx_v_msg)); __pyx_t_1 = __pyx_v_msg; } __pyx_v_pmsg = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":343 * if self.pickled \ * else msg * ptr.insertMessage(time, pmsg, len(pmsg)) # <<<<<<<<<<<<<< * * ########################################################### */ __pyx_t_8 = __Pyx_PyObject_AsWritableString(__pyx_v_pmsg); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) __PYX_ERR(0, 343, __pyx_L1_error) if (unlikely(__pyx_v_pmsg == Py_None)) { PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); __PYX_ERR(0, 343, __pyx_L1_error) } __pyx_t_9 = PyByteArray_GET_SIZE(__pyx_v_pmsg); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 343, __pyx_L1_error) __pyx_v_ptr->insertMessage(__pyx_v_time, ((char *)__pyx_t_8), __pyx_t_9); /* "pymusic.pyx":330 * mapImpl(ptr, maxBuffered) * * def insertMessage(self, double time, object msg): # <<<<<<<<<<<<<< * """ * insert a python object as a message at a time during the */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("pymusic.MessageOutputPort.insertMessage", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pmsg); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_17MessageOutputPort_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_7pymusic_17MessageOutputPort_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_17MessageOutputPort_4__reduce_cython__(((struct __pyx_obj_7pymusic_MessageOutputPort *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_17MessageOutputPort_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_MessageOutputPort *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__13, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.MessageOutputPort.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_17MessageOutputPort_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw_7pymusic_17MessageOutputPort_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_17MessageOutputPort_6__setstate_cython__(((struct __pyx_obj_7pymusic_MessageOutputPort *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_17MessageOutputPort_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_MessageOutputPort *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.MessageOutputPort.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":357 * """ * * def __cinit__(self, list argv=None, required=None): # <<<<<<<<<<<<<< * """ * Takes the command line arguments and the required threading */ /* Python wrapper */ static int __pyx_pw_7pymusic_5Setup_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_7pymusic_5Setup_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_argv = 0; PyObject *__pyx_v_required = 0; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_argv,&__pyx_n_s_required,0}; PyObject* values[2] = {0,0}; values[0] = ((PyObject*)Py_None); values[1] = ((PyObject *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_argv); if (value) { values[0] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_required); if (value) { values[1] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 357, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_argv = ((PyObject*)values[0]); __pyx_v_required = values[1]; } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 357, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pymusic.Setup.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_argv), (&PyList_Type), 1, "argv", 1))) __PYX_ERR(0, 357, __pyx_L1_error) __pyx_r = __pyx_pf_7pymusic_5Setup___cinit__(((struct __pyx_obj_7pymusic_Setup *)__pyx_v_self), __pyx_v_argv, __pyx_v_required); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_7pymusic_5Setup___cinit__(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, PyObject *__pyx_v_argv, PyObject *__pyx_v_required) { int __pyx_v_provided; __pyx_t_7pymusic_Args __pyx_v_r; struct PyMPIIntracommObject *__pyx_v_comm = 0; int __pyx_v_i; int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_t_5; MUSIC::Setup *__pyx_t_6; int __pyx_t_7; int __pyx_t_8; int __pyx_t_9; char const *__pyx_t_10; PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_13 = NULL; PyObject *__pyx_t_14 = NULL; PyObject *__pyx_t_15 = NULL; PyObject *__pyx_t_16 = NULL; __Pyx_RefNannySetupContext("__cinit__", 0); /* "pymusic.pyx":372 * cdef int provided * * cdef Args r = argv_toc(argv if argv is not None # <<<<<<<<<<<<<< * else sys.argv) * try: */ __pyx_t_2 = (__pyx_v_argv != ((PyObject*)Py_None)); if ((__pyx_t_2 != 0)) { __Pyx_INCREF(__pyx_v_argv); __pyx_t_1 = __pyx_v_argv; } else { /* "pymusic.pyx":373 * * cdef Args r = argv_toc(argv if argv is not None * else sys.argv) # <<<<<<<<<<<<<< * try: * if required is None: */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_sys); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_argv); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (!(likely(PyList_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(0, 373, __pyx_L1_error) __pyx_t_1 = __pyx_t_4; __pyx_t_4 = 0; } /* "pymusic.pyx":372 * cdef int provided * * cdef Args r = argv_toc(argv if argv is not None # <<<<<<<<<<<<<< * else sys.argv) * try: */ __pyx_v_r = __pyx_f_7pymusic_argv_toc(((PyObject*)__pyx_t_1)); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":374 * cdef Args r = argv_toc(argv if argv is not None * else sys.argv) * try: # <<<<<<<<<<<<<< * if required is None: * self.ptr = new CSetup(r.argc, r.argv) */ /*try:*/ { /* "pymusic.pyx":375 * else sys.argv) * try: * if required is None: # <<<<<<<<<<<<<< * self.ptr = new CSetup(r.argc, r.argv) * self.provided = MPI_THREAD_SINGLE */ __pyx_t_2 = (__pyx_v_required == Py_None); __pyx_t_5 = (__pyx_t_2 != 0); if (__pyx_t_5) { /* "pymusic.pyx":376 * try: * if required is None: * self.ptr = new CSetup(r.argc, r.argv) # <<<<<<<<<<<<<< * self.provided = MPI_THREAD_SINGLE * else: */ try { __pyx_t_6 = new MUSIC::Setup(__pyx_v_r.argc, __pyx_v_r.argv); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 376, __pyx_L4_error) } __pyx_v_self->ptr = __pyx_t_6; /* "pymusic.pyx":377 * if required is None: * self.ptr = new CSetup(r.argc, r.argv) * self.provided = MPI_THREAD_SINGLE # <<<<<<<<<<<<<< * else: * self.ptr = new CSetup(r.argc, r.argv, required, &provided) */ __pyx_v_self->provided = MPI_THREAD_SINGLE; /* "pymusic.pyx":375 * else sys.argv) * try: * if required is None: # <<<<<<<<<<<<<< * self.ptr = new CSetup(r.argc, r.argv) * self.provided = MPI_THREAD_SINGLE */ goto __pyx_L6; } /* "pymusic.pyx":379 * self.provided = MPI_THREAD_SINGLE * else: * self.ptr = new CSetup(r.argc, r.argv, required, &provided) # <<<<<<<<<<<<<< * self.provided = provided * self.argv = [r.argv[i] for i in xrange(r.argc)] */ /*else*/ { __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_required); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 379, __pyx_L4_error) try { __pyx_t_6 = new MUSIC::Setup(__pyx_v_r.argc, __pyx_v_r.argv, __pyx_t_7, (&__pyx_v_provided)); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 379, __pyx_L4_error) } __pyx_v_self->ptr = __pyx_t_6; /* "pymusic.pyx":380 * else: * self.ptr = new CSetup(r.argc, r.argv, required, &provided) * self.provided = provided # <<<<<<<<<<<<<< * self.argv = [r.argv[i] for i in xrange(r.argc)] * finally: */ __pyx_v_self->provided = __pyx_v_provided; } __pyx_L6:; /* "pymusic.pyx":381 * self.ptr = new CSetup(r.argc, r.argv, required, &provided) * self.provided = provided * self.argv = [r.argv[i] for i in xrange(r.argc)] # <<<<<<<<<<<<<< * finally: * free(r.argv) */ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 381, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7 = __pyx_v_r.argc; __pyx_t_8 = __pyx_t_7; for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) { __pyx_v_i = __pyx_t_9; __pyx_t_4 = __Pyx_PyBytes_FromString((__pyx_v_r.argv[__pyx_v_i])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 381, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_4))) __PYX_ERR(0, 381, __pyx_L4_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->argv); __Pyx_DECREF(__pyx_v_self->argv); __pyx_v_self->argv = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; } /* "pymusic.pyx":383 * self.argv = [r.argv[i] for i in xrange(r.argc)] * finally: * free(r.argv) # <<<<<<<<<<<<<< * * cdef MPI.Intracomm comm = MPI.Intracomm() */ /*finally:*/ { /*normal exit:*/{ free(__pyx_v_r.argv); goto __pyx_L5; } __pyx_L4_error:; /*exception exit:*/{ __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16); if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13) < 0)) __Pyx_ErrFetch(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13); __Pyx_XGOTREF(__pyx_t_11); __Pyx_XGOTREF(__pyx_t_12); __Pyx_XGOTREF(__pyx_t_13); __Pyx_XGOTREF(__pyx_t_14); __Pyx_XGOTREF(__pyx_t_15); __Pyx_XGOTREF(__pyx_t_16); __pyx_t_7 = __pyx_lineno; __pyx_t_8 = __pyx_clineno; __pyx_t_10 = __pyx_filename; { free(__pyx_v_r.argv); } if (PY_MAJOR_VERSION >= 3) { __Pyx_XGIVEREF(__pyx_t_14); __Pyx_XGIVEREF(__pyx_t_15); __Pyx_XGIVEREF(__pyx_t_16); __Pyx_ExceptionReset(__pyx_t_14, __pyx_t_15, __pyx_t_16); } __Pyx_XGIVEREF(__pyx_t_11); __Pyx_XGIVEREF(__pyx_t_12); __Pyx_XGIVEREF(__pyx_t_13); __Pyx_ErrRestore(__pyx_t_11, __pyx_t_12, __pyx_t_13); __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_lineno = __pyx_t_7; __pyx_clineno = __pyx_t_8; __pyx_filename = __pyx_t_10; goto __pyx_L1_error; } __pyx_L5:; } /* "pymusic.pyx":385 * free(r.argv) * * cdef MPI.Intracomm comm = MPI.Intracomm() # <<<<<<<<<<<<<< * comm.ob_mpi = communicator(self.ptr) * self.comm = comm */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6mpi4py_3MPI_Intracomm)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 385, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_comm = ((struct PyMPIIntracommObject *)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":386 * * cdef MPI.Intracomm comm = MPI.Intracomm() * comm.ob_mpi = communicator(self.ptr) # <<<<<<<<<<<<<< * self.comm = comm * */ __pyx_v_comm->__pyx_base.ob_mpi = MUSIC::communicator(__pyx_v_self->ptr); /* "pymusic.pyx":387 * cdef MPI.Intracomm comm = MPI.Intracomm() * comm.ob_mpi = communicator(self.ptr) * self.comm = comm # <<<<<<<<<<<<<< * * self.ports = set() */ __Pyx_INCREF(((PyObject *)__pyx_v_comm)); __Pyx_GIVEREF(((PyObject *)__pyx_v_comm)); __Pyx_GOTREF(__pyx_v_self->comm); __Pyx_DECREF(((PyObject *)__pyx_v_self->comm)); __pyx_v_self->comm = __pyx_v_comm; /* "pymusic.pyx":389 * self.comm = comm * * self.ports = set() # <<<<<<<<<<<<<< * * def __dealloc__(self): */ __pyx_t_1 = PySet_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 389, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->ports); __Pyx_DECREF(__pyx_v_self->ports); __pyx_v_self->ports = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":357 * """ * * def __cinit__(self, list argv=None, required=None): # <<<<<<<<<<<<<< * """ * Takes the command line arguments and the required threading */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("pymusic.Setup.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_comm); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":391 * self.ports = set() * * def __dealloc__(self): # <<<<<<<<<<<<<< * """ * If runtime has been made and setup is invalid, do nothing. */ /* Python wrapper */ static void __pyx_pw_7pymusic_5Setup_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_7pymusic_5Setup_3__dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); __pyx_pf_7pymusic_5Setup_2__dealloc__(((struct __pyx_obj_7pymusic_Setup *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_7pymusic_5Setup_2__dealloc__(struct __pyx_obj_7pymusic_Setup *__pyx_v_self) { PyObject *__pyx_v_p = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; Py_ssize_t __pyx_t_3; Py_ssize_t __pyx_t_4; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; int __pyx_t_7; PyObject *__pyx_t_8 = NULL; PyObject *__pyx_t_9 = NULL; __Pyx_RefNannySetupContext("__dealloc__", 0); /* "pymusic.pyx":397 * """ * * if self.ptr is NULL: # <<<<<<<<<<<<<< * return * */ __pyx_t_1 = ((__pyx_v_self->ptr == NULL) != 0); if (__pyx_t_1) { /* "pymusic.pyx":398 * * if self.ptr is NULL: * return # <<<<<<<<<<<<<< * * del self.ptr */ goto __pyx_L0; /* "pymusic.pyx":397 * """ * * if self.ptr is NULL: # <<<<<<<<<<<<<< * return * */ } /* "pymusic.pyx":400 * return * * del self.ptr # <<<<<<<<<<<<<< * for p in self.ports: * del p.ptr */ delete __pyx_v_self->ptr; /* "pymusic.pyx":401 * * del self.ptr * for p in self.ports: # <<<<<<<<<<<<<< * del p.ptr * p.null() */ __pyx_t_3 = 0; __pyx_t_6 = __Pyx_set_iterator(__pyx_v_self->ports, 1, (&__pyx_t_4), (&__pyx_t_5)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = __pyx_t_6; __pyx_t_6 = 0; while (1) { __pyx_t_7 = __Pyx_set_iter_next(__pyx_t_2, __pyx_t_4, &__pyx_t_3, &__pyx_t_6, __pyx_t_5); if (unlikely(__pyx_t_7 == 0)) break; if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 401, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_XDECREF_SET(__pyx_v_p, __pyx_t_6); __pyx_t_6 = 0; /* "pymusic.pyx":402 * del self.ptr * for p in self.ports: * del p.ptr # <<<<<<<<<<<<<< * p.null() * self.null() */ if (__Pyx_PyObject_DelAttrStr(__pyx_v_p, __pyx_n_s_ptr) < 0) __PYX_ERR(0, 402, __pyx_L1_error) /* "pymusic.pyx":403 * for p in self.ports: * del p.ptr * p.null() # <<<<<<<<<<<<<< * self.null() * */ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_p, __pyx_n_s_null); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) { __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8); if (likely(__pyx_t_9)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_8, function); } } __pyx_t_6 = (__pyx_t_9) ? __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_9) : __Pyx_PyObject_CallNoArg(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 403, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "pymusic.pyx":404 * del p.ptr * p.null() * self.null() # <<<<<<<<<<<<<< * * cpdef MPI.Intracomm getcomm(self): */ __pyx_t_2 = ((struct __pyx_vtabstruct_7pymusic_Setup *)__pyx_v_self->__pyx_vtab)->null(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 404, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "pymusic.pyx":391 * self.ports = set() * * def __dealloc__(self): # <<<<<<<<<<<<<< * """ * If runtime has been made and setup is invalid, do nothing. */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_WriteUnraisable("pymusic.Setup.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_XDECREF(__pyx_v_p); __Pyx_RefNannyFinishContext(); } /* "pymusic.pyx":406 * self.null() * * cpdef MPI.Intracomm getcomm(self): # <<<<<<<<<<<<<< * """ * Get an MPI communicator between the processes on this current */ static PyObject *__pyx_pw_7pymusic_5Setup_5getcomm(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static struct PyMPIIntracommObject *__pyx_f_7pymusic_5Setup_getcomm(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, int __pyx_skip_dispatch) { struct PyMPIIntracommObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; __Pyx_RefNannySetupContext("getcomm", 0); /* Check if called by wrapper */ if (unlikely(__pyx_skip_dispatch)) ; /* Check if overridden in Python */ else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || (Py_TYPE(((PyObject *)__pyx_v_self))->tp_flags & (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) { #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) { PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); #endif __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getcomm); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_7pymusic_5Setup_5getcomm)) { __Pyx_XDECREF(((PyObject *)__pyx_r)); __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_4)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_6mpi4py_3MPI_Intracomm))))) __PYX_ERR(0, 406, __pyx_L1_error) __pyx_r = ((struct PyMPIIntracommObject *)__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; goto __pyx_L0; } #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self)); __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) { __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT; } #endif __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS } #endif } /* "pymusic.pyx":411 * side of music * """ * return self.comm # <<<<<<<<<<<<<< * * cdef null(self): */ __Pyx_XDECREF(((PyObject *)__pyx_r)); __Pyx_INCREF(((PyObject *)__pyx_v_self->comm)); __pyx_r = __pyx_v_self->comm; goto __pyx_L0; /* "pymusic.pyx":406 * self.null() * * cpdef MPI.Intracomm getcomm(self): # <<<<<<<<<<<<<< * """ * Get an MPI communicator between the processes on this current */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("pymusic.Setup.getcomm", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF((PyObject *)__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_5Setup_5getcomm(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static char __pyx_doc_7pymusic_5Setup_4getcomm[] = "\n Get an MPI communicator between the processes on this current\n side of music\n "; static PyObject *__pyx_pw_7pymusic_5Setup_5getcomm(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getcomm (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_5Setup_4getcomm(((struct __pyx_obj_7pymusic_Setup *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_5Setup_4getcomm(struct __pyx_obj_7pymusic_Setup *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("getcomm", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = ((PyObject *)__pyx_f_7pymusic_5Setup_getcomm(__pyx_v_self, 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.Setup.getcomm", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":413 * return self.comm * * cdef null(self): # <<<<<<<<<<<<<< * """ * Invalidate this object --- called when runtime is */ static PyObject *__pyx_f_7pymusic_5Setup_null(struct __pyx_obj_7pymusic_Setup *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("null", 0); /* "pymusic.pyx":419 * objects and clearing references to them. * """ * self.ptr = NULL # <<<<<<<<<<<<<< * self.comm = MPI.COMM_NULL * self.ports = None */ __pyx_v_self->ptr = NULL; /* "pymusic.pyx":420 * """ * self.ptr = NULL * self.comm = MPI.COMM_NULL # <<<<<<<<<<<<<< * self.ports = None * */ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MPI); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_COMM_NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 420, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->comm); __Pyx_DECREF(((PyObject *)__pyx_v_self->comm)); __pyx_v_self->comm = ((struct PyMPIIntracommObject *)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":421 * self.ptr = NULL * self.comm = MPI.COMM_NULL * self.ports = None # <<<<<<<<<<<<<< * * #### */ __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_self->ports); __Pyx_DECREF(__pyx_v_self->ports); __pyx_v_self->ports = ((PyObject*)Py_None); /* "pymusic.pyx":413 * return self.comm * * cdef null(self): # <<<<<<<<<<<<<< * """ * Invalidate this object --- called when runtime is */ /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("pymusic.Setup.null", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":424 * * #### * def config(self, string var): # <<<<<<<<<<<<<< * """ * Get the value for var in config file. */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_5Setup_7config(PyObject *__pyx_v_self, PyObject *__pyx_arg_var); /*proto*/ static char __pyx_doc_7pymusic_5Setup_6config[] = "\n Get the value for var in config file.\n string var: configuration variable for current group of\n processes, including default and inherited settings.\n The value is returned as an int if it matches the patter,\n otherwise a float, otherwise a string.\n Throws UndefinedConfig error if no such variable is defined.\n "; static PyObject *__pyx_pw_7pymusic_5Setup_7config(PyObject *__pyx_v_self, PyObject *__pyx_arg_var) { std::string __pyx_v_var; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("config (wrapper)", 0); assert(__pyx_arg_var); { __pyx_v_var = __pyx_convert_string_from_py_std__in_string(__pyx_arg_var); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 424, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("pymusic.Setup.config", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_5Setup_6config(((struct __pyx_obj_7pymusic_Setup *)__pyx_v_self), ((std::string)__pyx_v_var)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_5Setup_6config(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, std::string __pyx_v_var) { std::string __pyx_v_vs; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; int __pyx_t_9; __Pyx_RefNannySetupContext("config", 0); /* "pymusic.pyx":435 * cdef string vs * * if not self.ptr.config(var, &vs): # <<<<<<<<<<<<<< * raise UndefinedConfig(var) * */ __pyx_t_1 = ((!(__pyx_v_self->ptr->config(__pyx_v_var, (&__pyx_v_vs)) != 0)) != 0); if (unlikely(__pyx_t_1)) { /* "pymusic.pyx":436 * * if not self.ptr.config(var, &vs): * raise UndefinedConfig(var) # <<<<<<<<<<<<<< * * try: return int(vs) */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_UndefinedConfig); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_var); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_3, function); } } __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __PYX_ERR(0, 436, __pyx_L1_error) /* "pymusic.pyx":435 * cdef string vs * * if not self.ptr.config(var, &vs): # <<<<<<<<<<<<<< * raise UndefinedConfig(var) * */ } /* "pymusic.pyx":438 * raise UndefinedConfig(var) * * try: return int(vs) # <<<<<<<<<<<<<< * except ValueError: pass * */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8); __Pyx_XGOTREF(__pyx_t_6); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_8); /*try:*/ { __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_vs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 438, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyInt_Type)), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 438, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L8_try_return; } __pyx_L4_error:; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "pymusic.pyx":439 * * try: return int(vs) * except ValueError: pass # <<<<<<<<<<<<<< * * try: return float(vs) */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_ErrRestore(0,0,0); goto __pyx_L5_exception_handled; } goto __pyx_L6_except_error; __pyx_L6_except_error:; /* "pymusic.pyx":438 * raise UndefinedConfig(var) * * try: return int(vs) # <<<<<<<<<<<<<< * except ValueError: pass * */ __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8); goto __pyx_L1_error; __pyx_L8_try_return:; __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8); goto __pyx_L0; __pyx_L5_exception_handled:; __Pyx_XGIVEREF(__pyx_t_6); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_8); __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8); } /* "pymusic.pyx":441 * except ValueError: pass * * try: return float(vs) # <<<<<<<<<<<<<< * except ValueError: pass * */ { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_7, &__pyx_t_6); __Pyx_XGOTREF(__pyx_t_8); __Pyx_XGOTREF(__pyx_t_7); __Pyx_XGOTREF(__pyx_t_6); /*try:*/ { __Pyx_XDECREF(__pyx_r); __pyx_t_3 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_vs); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 441, __pyx_L10_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = __Pyx_PyNumber_Float(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 441, __pyx_L10_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L14_try_return; } __pyx_L10_error:; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; /* "pymusic.pyx":442 * * try: return float(vs) * except ValueError: pass # <<<<<<<<<<<<<< * * return vs */ __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_9) { __Pyx_ErrRestore(0,0,0); goto __pyx_L11_exception_handled; } goto __pyx_L12_except_error; __pyx_L12_except_error:; /* "pymusic.pyx":441 * except ValueError: pass * * try: return float(vs) # <<<<<<<<<<<<<< * except ValueError: pass * */ __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_6); __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_7, __pyx_t_6); goto __pyx_L1_error; __pyx_L14_try_return:; __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_6); __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_7, __pyx_t_6); goto __pyx_L0; __pyx_L11_exception_handled:; __Pyx_XGIVEREF(__pyx_t_8); __Pyx_XGIVEREF(__pyx_t_7); __Pyx_XGIVEREF(__pyx_t_6); __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_7, __pyx_t_6); } /* "pymusic.pyx":444 * except ValueError: pass * * return vs # <<<<<<<<<<<<<< * #### * */ __Pyx_XDECREF(__pyx_r); __pyx_t_2 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v_vs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 444, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "pymusic.pyx":424 * * #### * def config(self, string var): # <<<<<<<<<<<<<< * """ * Get the value for var in config file. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("pymusic.Setup.config", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":447 * #### * * def publishContInput(self, string s): # <<<<<<<<<<<<<< * """ * Continuous Floating point value sink */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_5Setup_9publishContInput(PyObject *__pyx_v_self, PyObject *__pyx_arg_s); /*proto*/ static char __pyx_doc_7pymusic_5Setup_8publishContInput[] = "\n Continuous Floating point value sink\n string s: port name for music config\n "; static PyObject *__pyx_pw_7pymusic_5Setup_9publishContInput(PyObject *__pyx_v_self, PyObject *__pyx_arg_s) { std::string __pyx_v_s; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("publishContInput (wrapper)", 0); assert(__pyx_arg_s); { __pyx_v_s = __pyx_convert_string_from_py_std__in_string(__pyx_arg_s); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 447, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("pymusic.Setup.publishContInput", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_5Setup_8publishContInput(((struct __pyx_obj_7pymusic_Setup *)__pyx_v_self), ((std::string)__pyx_v_s)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_5Setup_8publishContInput(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, std::string __pyx_v_s) { struct __pyx_obj_7pymusic_ContInputPort *__pyx_v_p = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; __Pyx_RefNannySetupContext("publishContInput", 0); /* "pymusic.pyx":452 * string s: port name for music config * """ * cdef ContInputPort p = ContInputPort() # <<<<<<<<<<<<<< * p.ptr = self.ptr.publishContInput(s) # can't pass pointers directly to init * self.ports.add(p) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7pymusic_ContInputPort)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_p = ((struct __pyx_obj_7pymusic_ContInputPort *)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":453 * """ * cdef ContInputPort p = ContInputPort() * p.ptr = self.ptr.publishContInput(s) # can't pass pointers directly to init # <<<<<<<<<<<<<< * self.ports.add(p) * return p */ __pyx_v_p->__pyx_base.ptr = __pyx_v_self->ptr->publishContInput(__pyx_v_s); /* "pymusic.pyx":454 * cdef ContInputPort p = ContInputPort() * p.ptr = self.ptr.publishContInput(s) # can't pass pointers directly to init * self.ports.add(p) # <<<<<<<<<<<<<< * return p * */ if (unlikely(__pyx_v_self->ports == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add"); __PYX_ERR(0, 454, __pyx_L1_error) } __pyx_t_2 = PySet_Add(__pyx_v_self->ports, ((PyObject *)__pyx_v_p)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 454, __pyx_L1_error) /* "pymusic.pyx":455 * p.ptr = self.ptr.publishContInput(s) # can't pass pointers directly to init * self.ports.add(p) * return p # <<<<<<<<<<<<<< * * def publishContOutput(self, string s): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_p)); __pyx_r = ((PyObject *)__pyx_v_p); goto __pyx_L0; /* "pymusic.pyx":447 * #### * * def publishContInput(self, string s): # <<<<<<<<<<<<<< * """ * Continuous Floating point value sink */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.Setup.publishContInput", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_p); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":457 * return p * * def publishContOutput(self, string s): # <<<<<<<<<<<<<< * """ * Continuous Floating point value source */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_5Setup_11publishContOutput(PyObject *__pyx_v_self, PyObject *__pyx_arg_s); /*proto*/ static char __pyx_doc_7pymusic_5Setup_10publishContOutput[] = "\n Continuous Floating point value source\n string s: port name for music config\n "; static PyObject *__pyx_pw_7pymusic_5Setup_11publishContOutput(PyObject *__pyx_v_self, PyObject *__pyx_arg_s) { std::string __pyx_v_s; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("publishContOutput (wrapper)", 0); assert(__pyx_arg_s); { __pyx_v_s = __pyx_convert_string_from_py_std__in_string(__pyx_arg_s); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 457, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("pymusic.Setup.publishContOutput", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_5Setup_10publishContOutput(((struct __pyx_obj_7pymusic_Setup *)__pyx_v_self), ((std::string)__pyx_v_s)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_5Setup_10publishContOutput(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, std::string __pyx_v_s) { struct __pyx_obj_7pymusic_ContOutputPort *__pyx_v_p = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; __Pyx_RefNannySetupContext("publishContOutput", 0); /* "pymusic.pyx":462 * string s: port name for music config * """ * cdef ContOutputPort p = ContOutputPort() # <<<<<<<<<<<<<< * p.ptr = self.ptr.publishContOutput(s) * self.ports.add(p) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7pymusic_ContOutputPort)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 462, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_p = ((struct __pyx_obj_7pymusic_ContOutputPort *)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":463 * """ * cdef ContOutputPort p = ContOutputPort() * p.ptr = self.ptr.publishContOutput(s) # <<<<<<<<<<<<<< * self.ports.add(p) * return p */ __pyx_v_p->__pyx_base.ptr = __pyx_v_self->ptr->publishContOutput(__pyx_v_s); /* "pymusic.pyx":464 * cdef ContOutputPort p = ContOutputPort() * p.ptr = self.ptr.publishContOutput(s) * self.ports.add(p) # <<<<<<<<<<<<<< * return p * */ if (unlikely(__pyx_v_self->ports == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add"); __PYX_ERR(0, 464, __pyx_L1_error) } __pyx_t_2 = PySet_Add(__pyx_v_self->ports, ((PyObject *)__pyx_v_p)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 464, __pyx_L1_error) /* "pymusic.pyx":465 * p.ptr = self.ptr.publishContOutput(s) * self.ports.add(p) * return p # <<<<<<<<<<<<<< * * def publishEventOutput(self, string s): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_p)); __pyx_r = ((PyObject *)__pyx_v_p); goto __pyx_L0; /* "pymusic.pyx":457 * return p * * def publishContOutput(self, string s): # <<<<<<<<<<<<<< * """ * Continuous Floating point value source */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.Setup.publishContOutput", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_p); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":467 * return p * * def publishEventOutput(self, string s): # <<<<<<<<<<<<<< * """ * Discrete boolean source */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_5Setup_13publishEventOutput(PyObject *__pyx_v_self, PyObject *__pyx_arg_s); /*proto*/ static char __pyx_doc_7pymusic_5Setup_12publishEventOutput[] = "\n Discrete boolean source\n string s: port name for music config\n "; static PyObject *__pyx_pw_7pymusic_5Setup_13publishEventOutput(PyObject *__pyx_v_self, PyObject *__pyx_arg_s) { std::string __pyx_v_s; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("publishEventOutput (wrapper)", 0); assert(__pyx_arg_s); { __pyx_v_s = __pyx_convert_string_from_py_std__in_string(__pyx_arg_s); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 467, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("pymusic.Setup.publishEventOutput", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_5Setup_12publishEventOutput(((struct __pyx_obj_7pymusic_Setup *)__pyx_v_self), ((std::string)__pyx_v_s)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_5Setup_12publishEventOutput(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, std::string __pyx_v_s) { struct __pyx_obj_7pymusic_EventOutputPort *__pyx_v_p = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; __Pyx_RefNannySetupContext("publishEventOutput", 0); /* "pymusic.pyx":472 * string s: port name for music config * """ * cdef EventOutputPort p = EventOutputPort() # <<<<<<<<<<<<<< * p.ptr = self.ptr.publishEventOutput(s) * self.ports.add(p) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7pymusic_EventOutputPort)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 472, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_p = ((struct __pyx_obj_7pymusic_EventOutputPort *)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":473 * """ * cdef EventOutputPort p = EventOutputPort() * p.ptr = self.ptr.publishEventOutput(s) # <<<<<<<<<<<<<< * self.ports.add(p) * return p */ __pyx_v_p->__pyx_base.ptr = __pyx_v_self->ptr->publishEventOutput(__pyx_v_s); /* "pymusic.pyx":474 * cdef EventOutputPort p = EventOutputPort() * p.ptr = self.ptr.publishEventOutput(s) * self.ports.add(p) # <<<<<<<<<<<<<< * return p * */ if (unlikely(__pyx_v_self->ports == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add"); __PYX_ERR(0, 474, __pyx_L1_error) } __pyx_t_2 = PySet_Add(__pyx_v_self->ports, ((PyObject *)__pyx_v_p)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 474, __pyx_L1_error) /* "pymusic.pyx":475 * p.ptr = self.ptr.publishEventOutput(s) * self.ports.add(p) * return p # <<<<<<<<<<<<<< * * def publishEventInput(self, string s): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_p)); __pyx_r = ((PyObject *)__pyx_v_p); goto __pyx_L0; /* "pymusic.pyx":467 * return p * * def publishEventOutput(self, string s): # <<<<<<<<<<<<<< * """ * Discrete boolean source */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.Setup.publishEventOutput", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_p); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":477 * return p * * def publishEventInput(self, string s): # <<<<<<<<<<<<<< * """ * Discrete boolean sink */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_5Setup_15publishEventInput(PyObject *__pyx_v_self, PyObject *__pyx_arg_s); /*proto*/ static char __pyx_doc_7pymusic_5Setup_14publishEventInput[] = "\n Discrete boolean sink\n string s: port name for music config\n "; static PyObject *__pyx_pw_7pymusic_5Setup_15publishEventInput(PyObject *__pyx_v_self, PyObject *__pyx_arg_s) { std::string __pyx_v_s; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("publishEventInput (wrapper)", 0); assert(__pyx_arg_s); { __pyx_v_s = __pyx_convert_string_from_py_std__in_string(__pyx_arg_s); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 477, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("pymusic.Setup.publishEventInput", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_5Setup_14publishEventInput(((struct __pyx_obj_7pymusic_Setup *)__pyx_v_self), ((std::string)__pyx_v_s)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_5Setup_14publishEventInput(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, std::string __pyx_v_s) { struct __pyx_obj_7pymusic_EventInputPort *__pyx_v_p = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; __Pyx_RefNannySetupContext("publishEventInput", 0); /* "pymusic.pyx":482 * string s: port name for music config * """ * cdef EventInputPort p = EventInputPort() # <<<<<<<<<<<<<< * p.ptr = self.ptr.publishEventInput(s) * self.ports.add(p) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7pymusic_EventInputPort)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 482, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_p = ((struct __pyx_obj_7pymusic_EventInputPort *)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":483 * """ * cdef EventInputPort p = EventInputPort() * p.ptr = self.ptr.publishEventInput(s) # <<<<<<<<<<<<<< * self.ports.add(p) * return p */ __pyx_v_p->__pyx_base.ptr = __pyx_v_self->ptr->publishEventInput(__pyx_v_s); /* "pymusic.pyx":484 * cdef EventInputPort p = EventInputPort() * p.ptr = self.ptr.publishEventInput(s) * self.ports.add(p) # <<<<<<<<<<<<<< * return p * */ if (unlikely(__pyx_v_self->ports == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add"); __PYX_ERR(0, 484, __pyx_L1_error) } __pyx_t_2 = PySet_Add(__pyx_v_self->ports, ((PyObject *)__pyx_v_p)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 484, __pyx_L1_error) /* "pymusic.pyx":485 * p.ptr = self.ptr.publishEventInput(s) * self.ports.add(p) * return p # <<<<<<<<<<<<<< * * def publishMessageOutput(self, string s): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_p)); __pyx_r = ((PyObject *)__pyx_v_p); goto __pyx_L0; /* "pymusic.pyx":477 * return p * * def publishEventInput(self, string s): # <<<<<<<<<<<<<< * """ * Discrete boolean sink */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.Setup.publishEventInput", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_p); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":487 * return p * * def publishMessageOutput(self, string s): # <<<<<<<<<<<<<< * """ * Discrete python object source */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_5Setup_17publishMessageOutput(PyObject *__pyx_v_self, PyObject *__pyx_arg_s); /*proto*/ static char __pyx_doc_7pymusic_5Setup_16publishMessageOutput[] = "\n Discrete python object source\n string s: port name for music config\n "; static PyObject *__pyx_pw_7pymusic_5Setup_17publishMessageOutput(PyObject *__pyx_v_self, PyObject *__pyx_arg_s) { std::string __pyx_v_s; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("publishMessageOutput (wrapper)", 0); assert(__pyx_arg_s); { __pyx_v_s = __pyx_convert_string_from_py_std__in_string(__pyx_arg_s); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 487, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("pymusic.Setup.publishMessageOutput", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_5Setup_16publishMessageOutput(((struct __pyx_obj_7pymusic_Setup *)__pyx_v_self), ((std::string)__pyx_v_s)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_5Setup_16publishMessageOutput(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, std::string __pyx_v_s) { struct __pyx_obj_7pymusic_MessageOutputPort *__pyx_v_p = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; __Pyx_RefNannySetupContext("publishMessageOutput", 0); /* "pymusic.pyx":492 * string s: port name for music config * """ * cdef MessageOutputPort p = MessageOutputPort() # <<<<<<<<<<<<<< * p.ptr = self.ptr.publishMessageOutput(s) * self.ports.add(p) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7pymusic_MessageOutputPort)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 492, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_p = ((struct __pyx_obj_7pymusic_MessageOutputPort *)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":493 * """ * cdef MessageOutputPort p = MessageOutputPort() * p.ptr = self.ptr.publishMessageOutput(s) # <<<<<<<<<<<<<< * self.ports.add(p) * return p */ __pyx_v_p->__pyx_base.ptr = __pyx_v_self->ptr->publishMessageOutput(__pyx_v_s); /* "pymusic.pyx":494 * cdef MessageOutputPort p = MessageOutputPort() * p.ptr = self.ptr.publishMessageOutput(s) * self.ports.add(p) # <<<<<<<<<<<<<< * return p * */ if (unlikely(__pyx_v_self->ports == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add"); __PYX_ERR(0, 494, __pyx_L1_error) } __pyx_t_2 = PySet_Add(__pyx_v_self->ports, ((PyObject *)__pyx_v_p)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 494, __pyx_L1_error) /* "pymusic.pyx":495 * p.ptr = self.ptr.publishMessageOutput(s) * self.ports.add(p) * return p # <<<<<<<<<<<<<< * * def publishMessageInput(self, string s): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_p)); __pyx_r = ((PyObject *)__pyx_v_p); goto __pyx_L0; /* "pymusic.pyx":487 * return p * * def publishMessageOutput(self, string s): # <<<<<<<<<<<<<< * """ * Discrete python object source */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.Setup.publishMessageOutput", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_p); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":497 * return p * * def publishMessageInput(self, string s): # <<<<<<<<<<<<<< * """ * Discrete python object sink */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_5Setup_19publishMessageInput(PyObject *__pyx_v_self, PyObject *__pyx_arg_s); /*proto*/ static char __pyx_doc_7pymusic_5Setup_18publishMessageInput[] = "\n Discrete python object sink\n string s: port name for music config\n "; static PyObject *__pyx_pw_7pymusic_5Setup_19publishMessageInput(PyObject *__pyx_v_self, PyObject *__pyx_arg_s) { std::string __pyx_v_s; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("publishMessageInput (wrapper)", 0); assert(__pyx_arg_s); { __pyx_v_s = __pyx_convert_string_from_py_std__in_string(__pyx_arg_s); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 497, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("pymusic.Setup.publishMessageInput", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_5Setup_18publishMessageInput(((struct __pyx_obj_7pymusic_Setup *)__pyx_v_self), ((std::string)__pyx_v_s)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_5Setup_18publishMessageInput(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, std::string __pyx_v_s) { struct __pyx_obj_7pymusic_MessageInputPort *__pyx_v_p = 0; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; __Pyx_RefNannySetupContext("publishMessageInput", 0); /* "pymusic.pyx":502 * string s: port name for music config * """ * cdef MessageInputPort p = MessageInputPort() # <<<<<<<<<<<<<< * p.ptr = self.ptr.publishMessageInput(s) * self.ports.add(p) */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7pymusic_MessageInputPort)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 502, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_p = ((struct __pyx_obj_7pymusic_MessageInputPort *)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":503 * """ * cdef MessageInputPort p = MessageInputPort() * p.ptr = self.ptr.publishMessageInput(s) # <<<<<<<<<<<<<< * self.ports.add(p) * return p */ __pyx_v_p->__pyx_base.ptr = __pyx_v_self->ptr->publishMessageInput(__pyx_v_s); /* "pymusic.pyx":504 * cdef MessageInputPort p = MessageInputPort() * p.ptr = self.ptr.publishMessageInput(s) * self.ports.add(p) # <<<<<<<<<<<<<< * return p * */ if (unlikely(__pyx_v_self->ports == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add"); __PYX_ERR(0, 504, __pyx_L1_error) } __pyx_t_2 = PySet_Add(__pyx_v_self->ports, ((PyObject *)__pyx_v_p)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 504, __pyx_L1_error) /* "pymusic.pyx":505 * p.ptr = self.ptr.publishMessageInput(s) * self.ports.add(p) * return p # <<<<<<<<<<<<<< * * def runtime(self, double timestep): */ __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_p)); __pyx_r = ((PyObject *)__pyx_v_p); goto __pyx_L0; /* "pymusic.pyx":497 * return p * * def publishMessageInput(self, string s): # <<<<<<<<<<<<<< * """ * Discrete python object sink */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.Setup.publishMessageInput", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_p); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":507 * return p * * def runtime(self, double timestep): # <<<<<<<<<<<<<< * """ * Create a runtime. */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_5Setup_21runtime(PyObject *__pyx_v_self, PyObject *__pyx_arg_timestep); /*proto*/ static char __pyx_doc_7pymusic_5Setup_20runtime[] = "\n Create a runtime.\n After return, this Setup object is invalid\n double timestep: size of timestep (\077\077 units)\n "; static PyObject *__pyx_pw_7pymusic_5Setup_21runtime(PyObject *__pyx_v_self, PyObject *__pyx_arg_timestep) { double __pyx_v_timestep; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("runtime (wrapper)", 0); assert(__pyx_arg_timestep); { __pyx_v_timestep = __pyx_PyFloat_AsDouble(__pyx_arg_timestep); if (unlikely((__pyx_v_timestep == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 507, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("pymusic.Setup.runtime", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_5Setup_20runtime(((struct __pyx_obj_7pymusic_Setup *)__pyx_v_self), ((double)__pyx_v_timestep)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_5Setup_20runtime(struct __pyx_obj_7pymusic_Setup *__pyx_v_self, double __pyx_v_timestep) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("runtime", 0); /* "pymusic.pyx":513 * double timestep: size of timestep (?? units) * """ * return Runtime(self, timestep) # <<<<<<<<<<<<<< * * ########################################################### */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_timestep); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(((PyObject *)__pyx_v_self)); __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_self)); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_7pymusic_Runtime), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "pymusic.pyx":507 * return p * * def runtime(self, double timestep): # <<<<<<<<<<<<<< * """ * Create a runtime. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("pymusic.Setup.runtime", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pxd":177 * cdef list argv * cdef int provided * cdef readonly MPI.Intracomm comm # <<<<<<<<<<<<<< * cdef set ports * */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_5Setup_4comm_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_7pymusic_5Setup_4comm_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_5Setup_4comm___get__(((struct __pyx_obj_7pymusic_Setup *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_5Setup_4comm___get__(struct __pyx_obj_7pymusic_Setup *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self->comm)); __pyx_r = ((PyObject *)__pyx_v_self->comm); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_5Setup_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_7pymusic_5Setup_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_5Setup_22__reduce_cython__(((struct __pyx_obj_7pymusic_Setup *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_5Setup_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_Setup *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.Setup.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_5Setup_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw_7pymusic_5Setup_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_5Setup_24__setstate_cython__(((struct __pyx_obj_7pymusic_Setup *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_5Setup_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_Setup *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__16, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.Setup.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":518 * * cdef class Runtime(object): * def __cinit__(self, Setup setup, double h): # <<<<<<<<<<<<<< * self.ptr = new CRuntime(setup.ptr, h) * self.ports = setup.ports */ /* Python wrapper */ static int __pyx_pw_7pymusic_7Runtime_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_7pymusic_7Runtime_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_obj_7pymusic_Setup *__pyx_v_setup = 0; double __pyx_v_h; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_setup,&__pyx_n_s_h,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_setup)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_h)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, 1); __PYX_ERR(0, 518, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 518, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_setup = ((struct __pyx_obj_7pymusic_Setup *)values[0]); __pyx_v_h = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_h == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 518, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 518, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pymusic.Runtime.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_setup), __pyx_ptype_7pymusic_Setup, 1, "setup", 0))) __PYX_ERR(0, 518, __pyx_L1_error) __pyx_r = __pyx_pf_7pymusic_7Runtime___cinit__(((struct __pyx_obj_7pymusic_Runtime *)__pyx_v_self), __pyx_v_setup, __pyx_v_h); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_7pymusic_7Runtime___cinit__(struct __pyx_obj_7pymusic_Runtime *__pyx_v_self, struct __pyx_obj_7pymusic_Setup *__pyx_v_setup, double __pyx_v_h) { struct PyMPIIntracommObject *__pyx_v_comm = 0; int __pyx_r; __Pyx_RefNannyDeclarations MUSIC::Runtime *__pyx_t_1; PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("__cinit__", 0); /* "pymusic.pyx":519 * cdef class Runtime(object): * def __cinit__(self, Setup setup, double h): * self.ptr = new CRuntime(setup.ptr, h) # <<<<<<<<<<<<<< * self.ports = setup.ports * setup.null() */ try { __pyx_t_1 = new MUSIC::Runtime(__pyx_v_setup->ptr, __pyx_v_h); } catch(...) { __Pyx_CppExn2PyErr(); __PYX_ERR(0, 519, __pyx_L1_error) } __pyx_v_self->ptr = __pyx_t_1; /* "pymusic.pyx":520 * def __cinit__(self, Setup setup, double h): * self.ptr = new CRuntime(setup.ptr, h) * self.ports = setup.ports # <<<<<<<<<<<<<< * setup.null() * */ __pyx_t_2 = __pyx_v_setup->ports; __Pyx_INCREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __Pyx_GOTREF(__pyx_v_self->ports); __Pyx_DECREF(__pyx_v_self->ports); __pyx_v_self->ports = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; /* "pymusic.pyx":521 * self.ptr = new CRuntime(setup.ptr, h) * self.ports = setup.ports * setup.null() # <<<<<<<<<<<<<< * * cdef MPI.Intracomm comm = MPI.Intracomm() */ __pyx_t_2 = ((struct __pyx_vtabstruct_7pymusic_Setup *)__pyx_v_setup->__pyx_vtab)->null(__pyx_v_setup); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 521, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "pymusic.pyx":523 * setup.null() * * cdef MPI.Intracomm comm = MPI.Intracomm() # <<<<<<<<<<<<<< * comm.ob_mpi = communicator(self.ptr) * self.comm = comm */ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6mpi4py_3MPI_Intracomm)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 523, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_comm = ((struct PyMPIIntracommObject *)__pyx_t_2); __pyx_t_2 = 0; /* "pymusic.pyx":524 * * cdef MPI.Intracomm comm = MPI.Intracomm() * comm.ob_mpi = communicator(self.ptr) # <<<<<<<<<<<<<< * self.comm = comm * */ __pyx_v_comm->__pyx_base.ob_mpi = MUSIC::communicator(__pyx_v_self->ptr); /* "pymusic.pyx":525 * cdef MPI.Intracomm comm = MPI.Intracomm() * comm.ob_mpi = communicator(self.ptr) * self.comm = comm # <<<<<<<<<<<<<< * * def __dealloc__(self): */ __Pyx_INCREF(((PyObject *)__pyx_v_comm)); __Pyx_GIVEREF(((PyObject *)__pyx_v_comm)); __Pyx_GOTREF(__pyx_v_self->comm); __Pyx_DECREF(((PyObject *)__pyx_v_self->comm)); __pyx_v_self->comm = __pyx_v_comm; /* "pymusic.pyx":518 * * cdef class Runtime(object): * def __cinit__(self, Setup setup, double h): # <<<<<<<<<<<<<< * self.ptr = new CRuntime(setup.ptr, h) * self.ports = setup.ports */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("pymusic.Runtime.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_comm); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":527 * self.comm = comm * * def __dealloc__(self): # <<<<<<<<<<<<<< * self.ptr.finalize() * */ /* Python wrapper */ static void __pyx_pw_7pymusic_7Runtime_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_7pymusic_7Runtime_3__dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); __pyx_pf_7pymusic_7Runtime_2__dealloc__(((struct __pyx_obj_7pymusic_Runtime *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_7pymusic_7Runtime_2__dealloc__(struct __pyx_obj_7pymusic_Runtime *__pyx_v_self) { PyObject *__pyx_v_p = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; Py_ssize_t __pyx_t_2; Py_ssize_t __pyx_t_3; int __pyx_t_4; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; PyObject *__pyx_t_8 = NULL; __Pyx_RefNannySetupContext("__dealloc__", 0); /* "pymusic.pyx":528 * * def __dealloc__(self): * self.ptr.finalize() # <<<<<<<<<<<<<< * * for p in self.ports: */ __pyx_v_self->ptr->finalize(); /* "pymusic.pyx":530 * self.ptr.finalize() * * for p in self.ports: # <<<<<<<<<<<<<< * p.null() * */ __pyx_t_2 = 0; __pyx_t_5 = __Pyx_set_iterator(__pyx_v_self->ports, 1, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 530, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = __pyx_t_5; __pyx_t_5 = 0; while (1) { __pyx_t_6 = __Pyx_set_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, __pyx_t_4); if (unlikely(__pyx_t_6 == 0)) break; if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 530, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_p, __pyx_t_5); __pyx_t_5 = 0; /* "pymusic.pyx":531 * * for p in self.ports: * p.null() # <<<<<<<<<<<<<< * * del self.ptr */ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_p, __pyx_n_s_null); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) { __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); if (likely(__pyx_t_8)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_7, function); } } __pyx_t_5 = (__pyx_t_8) ? __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_8) : __Pyx_PyObject_CallNoArg(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":533 * p.null() * * del self.ptr # <<<<<<<<<<<<<< * * def time(self): return self.ptr.time() */ delete __pyx_v_self->ptr; /* "pymusic.pyx":527 * self.comm = comm * * def __dealloc__(self): # <<<<<<<<<<<<<< * self.ptr.finalize() * */ /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_WriteUnraisable("pymusic.Runtime.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0); __pyx_L0:; __Pyx_XDECREF(__pyx_v_p); __Pyx_RefNannyFinishContext(); } /* "pymusic.pyx":535 * del self.ptr * * def time(self): return self.ptr.time() # <<<<<<<<<<<<<< * def tick(self): tick(self.ptr) * */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_7Runtime_5time(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_7pymusic_7Runtime_5time(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("time (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_7Runtime_4time(((struct __pyx_obj_7pymusic_Runtime *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_7Runtime_4time(struct __pyx_obj_7pymusic_Runtime *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("time", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->ptr->time()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.Runtime.time", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":536 * * def time(self): return self.ptr.time() * def tick(self): tick(self.ptr) # <<<<<<<<<<<<<< * * def __iter__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_7Runtime_7tick(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_7pymusic_7Runtime_7tick(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("tick (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_7Runtime_6tick(((struct __pyx_obj_7pymusic_Runtime *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_7Runtime_6tick(struct __pyx_obj_7pymusic_Runtime *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations bool __pyx_t_1; __Pyx_RefNannySetupContext("tick", 0); __pyx_t_1 = MUSIC::tick(__pyx_v_self->ptr); if (unlikely(__pyx_t_1 == ((bool)0))) __PYX_ERR(0, 536, __pyx_L1_error) /* function exit code */ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_AddTraceback("pymusic.Runtime.tick", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_7pymusic_7Runtime_10generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */ /* "pymusic.pyx":538 * def tick(self): tick(self.ptr) * * def __iter__(self): # <<<<<<<<<<<<<< * cdef CRuntime* ptr = self.ptr * while True: */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_7Runtime_9__iter__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_7pymusic_7Runtime_9__iter__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_7Runtime_8__iter__(((struct __pyx_obj_7pymusic_Runtime *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_7Runtime_8__iter__(struct __pyx_obj_7pymusic_Runtime *__pyx_v_self) { struct __pyx_obj_7pymusic___pyx_scope_struct____iter__ *__pyx_cur_scope; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__iter__", 0); __pyx_cur_scope = (struct __pyx_obj_7pymusic___pyx_scope_struct____iter__ *)__pyx_tp_new_7pymusic___pyx_scope_struct____iter__(__pyx_ptype_7pymusic___pyx_scope_struct____iter__, __pyx_empty_tuple, NULL); if (unlikely(!__pyx_cur_scope)) { __pyx_cur_scope = ((struct __pyx_obj_7pymusic___pyx_scope_struct____iter__ *)Py_None); __Pyx_INCREF(Py_None); __PYX_ERR(0, 538, __pyx_L1_error) } else { __Pyx_GOTREF(__pyx_cur_scope); } __pyx_cur_scope->__pyx_v_self = __pyx_v_self; __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_v_self); __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_v_self); { __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_7pymusic_7Runtime_10generator, NULL, (PyObject *) __pyx_cur_scope, __pyx_n_s_iter, __pyx_n_s_Runtime___iter, __pyx_n_s_pymusic); if (unlikely(!gen)) __PYX_ERR(0, 538, __pyx_L1_error) __Pyx_DECREF(__pyx_cur_scope); __Pyx_RefNannyFinishContext(); return (PyObject *) gen; } /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("pymusic.Runtime.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_DECREF(((PyObject *)__pyx_cur_scope)); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_gb_7pymusic_7Runtime_10generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */ { struct __pyx_obj_7pymusic___pyx_scope_struct____iter__ *__pyx_cur_scope = ((struct __pyx_obj_7pymusic___pyx_scope_struct____iter__ *)__pyx_generator->closure); PyObject *__pyx_r = NULL; MUSIC::Runtime *__pyx_t_1; PyObject *__pyx_t_2 = NULL; bool __pyx_t_3; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__iter__", 0); switch (__pyx_generator->resume_label) { case 0: goto __pyx_L3_first_run; case 1: goto __pyx_L6_resume_from_yield; default: /* CPython raises the right error here */ __Pyx_RefNannyFinishContext(); return NULL; } __pyx_L3_first_run:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 538, __pyx_L1_error) /* "pymusic.pyx":539 * * def __iter__(self): * cdef CRuntime* ptr = self.ptr # <<<<<<<<<<<<<< * while True: * yield ptr.time() */ __pyx_t_1 = __pyx_cur_scope->__pyx_v_self->ptr; __pyx_cur_scope->__pyx_v_ptr = __pyx_t_1; /* "pymusic.pyx":540 * def __iter__(self): * cdef CRuntime* ptr = self.ptr * while True: # <<<<<<<<<<<<<< * yield ptr.time() * tick(ptr) */ while (1) { /* "pymusic.pyx":541 * cdef CRuntime* ptr = self.ptr * while True: * yield ptr.time() # <<<<<<<<<<<<<< * tick(ptr) * */ __pyx_t_2 = PyFloat_FromDouble(__pyx_cur_scope->__pyx_v_ptr->time()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 541, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); __Pyx_Coroutine_ResetAndClearException(__pyx_generator); /* return from generator, yielding value */ __pyx_generator->resume_label = 1; return __pyx_r; __pyx_L6_resume_from_yield:; if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 541, __pyx_L1_error) /* "pymusic.pyx":542 * while True: * yield ptr.time() * tick(ptr) # <<<<<<<<<<<<<< * * ########################################################### */ __pyx_t_3 = MUSIC::tick(__pyx_cur_scope->__pyx_v_ptr); if (unlikely(__pyx_t_3 == ((bool)0))) __PYX_ERR(0, 542, __pyx_L1_error) } CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope); /* "pymusic.pyx":538 * def tick(self): tick(self.ptr) * * def __iter__(self): # <<<<<<<<<<<<<< * cdef CRuntime* ptr = self.ptr * while True: */ /* function exit code */ PyErr_SetNone(PyExc_StopIteration); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_L0:; __Pyx_XDECREF(__pyx_r); __pyx_r = 0; #if !CYTHON_USE_EXC_INFO_STACK __Pyx_Coroutine_ResetAndClearException(__pyx_generator); #endif __pyx_generator->resume_label = -1; __Pyx_Coroutine_clear((PyObject*)__pyx_generator); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pxd":187 * cdef class Runtime(object): * cdef CRuntime* ptr * cdef readonly MPI.Intracomm comm # <<<<<<<<<<<<<< * cdef set ports * */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_7Runtime_4comm_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_7pymusic_7Runtime_4comm_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_7Runtime_4comm___get__(((struct __pyx_obj_7pymusic_Runtime *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_7Runtime_4comm___get__(struct __pyx_obj_7pymusic_Runtime *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(((PyObject *)__pyx_v_self->comm)); __pyx_r = ((PyObject *)__pyx_v_self->comm); goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_7Runtime_12__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_7pymusic_7Runtime_12__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_7Runtime_11__reduce_cython__(((struct __pyx_obj_7pymusic_Runtime *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_7Runtime_11__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_Runtime *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.Runtime.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_7Runtime_14__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw_7pymusic_7Runtime_14__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_7Runtime_13__setstate_cython__(((struct __pyx_obj_7pymusic_Runtime *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_7Runtime_13__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_Runtime *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.Runtime.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":559 * PermutationIndex: g = perm[l], where perm is an array * """ * def __cinit__(self, object perm=None, int base=0, int size=-1): # <<<<<<<<<<<<<< * """ * Created internally */ /* Python wrapper */ static int __pyx_pw_7pymusic_8IndexMap_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_7pymusic_8IndexMap_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_perm = 0; int __pyx_v_base; int __pyx_v_size; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_perm,&__pyx_n_s_base,&__pyx_n_s_size,0}; PyObject* values[3] = {0,0,0}; values[0] = ((PyObject *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_perm); if (value) { values[0] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_base); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_size); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 559, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_perm = values[0]; if (values[1]) { __pyx_v_base = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_base == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 559, __pyx_L3_error) } else { __pyx_v_base = ((int)0); } if (values[2]) { __pyx_v_size = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_size == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 559, __pyx_L3_error) } else { __pyx_v_size = ((int)-1); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 559, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pymusic.IndexMap.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_8IndexMap___cinit__(((struct __pyx_obj_7pymusic_IndexMap *)__pyx_v_self), __pyx_v_perm, __pyx_v_base, __pyx_v_size); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_7pymusic_8IndexMap___cinit__(struct __pyx_obj_7pymusic_IndexMap *__pyx_v_self, PyObject *__pyx_v_perm, int __pyx_v_base, int __pyx_v_size) { arrayobject *__pyx_v_arr = 0; int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; int __pyx_t_6; PyObject *__pyx_t_7 = NULL; __Pyx_RefNannySetupContext("__cinit__", 0); /* "pymusic.pyx":570 * cdef array.array arr * * if perm is None: # <<<<<<<<<<<<<< * self.buf = None * self.ptr = new LinearIndex(GlobalIndex(base), size) */ __pyx_t_1 = (__pyx_v_perm == Py_None); __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { /* "pymusic.pyx":571 * * if perm is None: * self.buf = None # <<<<<<<<<<<<<< * self.ptr = new LinearIndex(GlobalIndex(base), size) * else: */ __Pyx_INCREF(Py_None); __Pyx_GIVEREF(Py_None); __Pyx_GOTREF(__pyx_v_self->buf); __Pyx_DECREF(((PyObject *)__pyx_v_self->buf)); __pyx_v_self->buf = ((struct __pyx_obj_5music_8pybuffer_Buffer *)Py_None); /* "pymusic.pyx":572 * if perm is None: * self.buf = None * self.ptr = new LinearIndex(GlobalIndex(base), size) # <<<<<<<<<<<<<< * else: * self.buf = Buffer(perm) */ __pyx_v_self->ptr = new MUSIC::LinearIndex(MUSIC::GlobalIndex(__pyx_v_base), __pyx_v_size); /* "pymusic.pyx":570 * cdef array.array arr * * if perm is None: # <<<<<<<<<<<<<< * self.buf = None * self.ptr = new LinearIndex(GlobalIndex(base), size) */ goto __pyx_L3; } /* "pymusic.pyx":574 * self.ptr = new LinearIndex(GlobalIndex(base), size) * else: * self.buf = Buffer(perm) # <<<<<<<<<<<<<< * if self.buf.dtype.size() != sizeof(int): * arr = array('i', perm) */ /*else*/ { __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5music_8pybuffer_Buffer), __pyx_v_perm); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 574, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_3); __Pyx_GOTREF(__pyx_v_self->buf); __Pyx_DECREF(((PyObject *)__pyx_v_self->buf)); __pyx_v_self->buf = ((struct __pyx_obj_5music_8pybuffer_Buffer *)__pyx_t_3); __pyx_t_3 = 0; /* "pymusic.pyx":575 * else: * self.buf = Buffer(perm) * if self.buf.dtype.size() != sizeof(int): # <<<<<<<<<<<<<< * arr = array('i', perm) * self.buf = Buffer(arr) */ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->buf->dtype), __pyx_n_s_size); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 575, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_5)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_5); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 575, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_4 = __Pyx_PyInt_FromSize_t((sizeof(int))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 575, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 575, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 575, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_2) { /* "pymusic.pyx":576 * self.buf = Buffer(perm) * if self.buf.dtype.size() != sizeof(int): * arr = array('i', perm) # <<<<<<<<<<<<<< * self.buf = Buffer(arr) * self.ptr = new PermutationIndex( */ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_array); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_3 = NULL; __pyx_t_6 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_6 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_n_s_i, __pyx_v_perm}; __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_n_s_i, __pyx_v_perm}; __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_5); } else #endif { __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_INCREF(__pyx_n_s_i); __Pyx_GIVEREF(__pyx_n_s_i); PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_n_s_i); __Pyx_INCREF(__pyx_v_perm); __Pyx_GIVEREF(__pyx_v_perm); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_perm); __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 576, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_7cpython_5array_array))))) __PYX_ERR(0, 576, __pyx_L1_error) __pyx_v_arr = ((arrayobject *)__pyx_t_5); __pyx_t_5 = 0; /* "pymusic.pyx":577 * if self.buf.dtype.size() != sizeof(int): * arr = array('i', perm) * self.buf = Buffer(arr) # <<<<<<<<<<<<<< * self.ptr = new PermutationIndex( * self.buf.pybuf.buf, */ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_5music_8pybuffer_Buffer), ((PyObject *)__pyx_v_arr)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 577, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_5); __Pyx_GOTREF(__pyx_v_self->buf); __Pyx_DECREF(((PyObject *)__pyx_v_self->buf)); __pyx_v_self->buf = ((struct __pyx_obj_5music_8pybuffer_Buffer *)__pyx_t_5); __pyx_t_5 = 0; /* "pymusic.pyx":575 * else: * self.buf = Buffer(perm) * if self.buf.dtype.size() != sizeof(int): # <<<<<<<<<<<<<< * arr = array('i', perm) * self.buf = Buffer(arr) */ } /* "pymusic.pyx":578 * arr = array('i', perm) * self.buf = Buffer(arr) * self.ptr = new PermutationIndex( # <<<<<<<<<<<<<< * self.buf.pybuf.buf, * self.buf.items) */ __pyx_v_self->ptr = new MUSIC::PermutationIndex(((MUSIC::GlobalIndex *)__pyx_v_self->buf->pybuf.buf), __pyx_v_self->buf->items); } __pyx_L3:; /* "pymusic.pyx":559 * PermutationIndex: g = perm[l], where perm is an array * """ * def __cinit__(self, object perm=None, int base=0, int size=-1): # <<<<<<<<<<<<<< * """ * Created internally */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __Pyx_AddTraceback("pymusic.IndexMap.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_arr); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":582 * self.buf.items) * * def __dealloc__(self): # <<<<<<<<<<<<<< * del self.ptr * */ /* Python wrapper */ static void __pyx_pw_7pymusic_8IndexMap_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_7pymusic_8IndexMap_3__dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); __pyx_pf_7pymusic_8IndexMap_2__dealloc__(((struct __pyx_obj_7pymusic_IndexMap *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_7pymusic_8IndexMap_2__dealloc__(struct __pyx_obj_7pymusic_IndexMap *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__", 0); /* "pymusic.pyx":583 * * def __dealloc__(self): * del self.ptr # <<<<<<<<<<<<<< * * cdef class DataMap(object): */ delete __pyx_v_self->ptr; /* "pymusic.pyx":582 * self.buf.items) * * def __dealloc__(self): # <<<<<<<<<<<<<< * del self.ptr * */ /* function exit code */ __Pyx_RefNannyFinishContext(); } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_8IndexMap_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_7pymusic_8IndexMap_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_8IndexMap_4__reduce_cython__(((struct __pyx_obj_7pymusic_IndexMap *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_8IndexMap_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_IndexMap *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.IndexMap.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_8IndexMap_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw_7pymusic_8IndexMap_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_8IndexMap_6__setstate_cython__(((struct __pyx_obj_7pymusic_IndexMap *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_8IndexMap_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_IndexMap *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.IndexMap.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":591 * IndexMap to construct a mapping for the Cont*Port transfers. * """ * def __cinit__(self, Buffer buf, IndexMap index_map=None, int index=0): # <<<<<<<<<<<<<< * """ * Maps the Buffer of a data object between local and global indices. */ /* Python wrapper */ static int __pyx_pw_7pymusic_7DataMap_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_7pymusic_7DataMap_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_obj_5music_8pybuffer_Buffer *__pyx_v_buf = 0; struct __pyx_obj_7pymusic_IndexMap *__pyx_v_index_map = 0; int __pyx_v_index; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_buf,&__pyx_n_s_index_map,&__pyx_n_s_index,0}; PyObject* values[3] = {0,0,0}; values[1] = (PyObject *)((struct __pyx_obj_7pymusic_IndexMap *)Py_None); if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_buf)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_index_map); if (value) { values[1] = value; kw_args--; } } CYTHON_FALLTHROUGH; case 2: if (kw_args > 0) { PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_index); if (value) { values[2] = value; kw_args--; } } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 591, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); CYTHON_FALLTHROUGH; case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); break; default: goto __pyx_L5_argtuple_error; } } __pyx_v_buf = ((struct __pyx_obj_5music_8pybuffer_Buffer *)values[0]); __pyx_v_index_map = ((struct __pyx_obj_7pymusic_IndexMap *)values[1]); if (values[2]) { __pyx_v_index = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 591, __pyx_L3_error) } else { __pyx_v_index = ((int)0); } } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 591, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pymusic.DataMap.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_buf), __pyx_ptype_5music_8pybuffer_Buffer, 1, "buf", 0))) __PYX_ERR(0, 591, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_index_map), __pyx_ptype_7pymusic_IndexMap, 1, "index_map", 0))) __PYX_ERR(0, 591, __pyx_L1_error) __pyx_r = __pyx_pf_7pymusic_7DataMap___cinit__(((struct __pyx_obj_7pymusic_DataMap *)__pyx_v_self), __pyx_v_buf, __pyx_v_index_map, __pyx_v_index); /* function exit code */ goto __pyx_L0; __pyx_L1_error:; __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_7pymusic_7DataMap___cinit__(struct __pyx_obj_7pymusic_DataMap *__pyx_v_self, struct __pyx_obj_5music_8pybuffer_Buffer *__pyx_v_buf, struct __pyx_obj_7pymusic_IndexMap *__pyx_v_index_map, int __pyx_v_index) { int __pyx_r; __Pyx_RefNannyDeclarations MUSIC::ArrayData *__pyx_t_1; int __pyx_t_2; __Pyx_RefNannySetupContext("__cinit__", 0); /* "pymusic.pyx":599 * a linear index * """ * self.buf = buf # <<<<<<<<<<<<<< * self.ptr = new CArrayData(buf.pybuf.buf, * buf.dtype.ob_mpi, */ __Pyx_INCREF(((PyObject *)__pyx_v_buf)); __Pyx_GIVEREF(((PyObject *)__pyx_v_buf)); __Pyx_GOTREF(__pyx_v_self->buf); __Pyx_DECREF(((PyObject *)__pyx_v_self->buf)); __pyx_v_self->buf = __pyx_v_buf; /* "pymusic.pyx":603 * buf.dtype.ob_mpi, * index, buf.items) \ * if index_map is None else \ # <<<<<<<<<<<<<< * new CArrayData(buf.pybuf.buf, * buf.dtype.ob_mpi, */ __pyx_t_2 = (((PyObject *)__pyx_v_index_map) == Py_None); if ((__pyx_t_2 != 0)) { /* "pymusic.pyx":600 * """ * self.buf = buf * self.ptr = new CArrayData(buf.pybuf.buf, # <<<<<<<<<<<<<< * buf.dtype.ob_mpi, * index, buf.items) \ */ __pyx_t_1 = new MUSIC::ArrayData(__pyx_v_buf->pybuf.buf, __pyx_v_buf->dtype->ob_mpi, __pyx_v_index, __pyx_v_buf->items); } else { /* "pymusic.pyx":604 * index, buf.items) \ * if index_map is None else \ * new CArrayData(buf.pybuf.buf, # <<<<<<<<<<<<<< * buf.dtype.ob_mpi, * index_map.ptr) */ __pyx_t_1 = new MUSIC::ArrayData(__pyx_v_buf->pybuf.buf, __pyx_v_buf->dtype->ob_mpi, __pyx_v_index_map->ptr); } /* "pymusic.pyx":600 * """ * self.buf = buf * self.ptr = new CArrayData(buf.pybuf.buf, # <<<<<<<<<<<<<< * buf.dtype.ob_mpi, * index, buf.items) \ */ __pyx_v_self->ptr = __pyx_t_1; /* "pymusic.pyx":591 * IndexMap to construct a mapping for the Cont*Port transfers. * """ * def __cinit__(self, Buffer buf, IndexMap index_map=None, int index=0): # <<<<<<<<<<<<<< * """ * Maps the Buffer of a data object between local and global indices. */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":608 * index_map.ptr) * * def __dealloc__(self): del self.ptr # <<<<<<<<<<<<<< * * cdef class EventHandler: */ /* Python wrapper */ static void __pyx_pw_7pymusic_7DataMap_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_7pymusic_7DataMap_3__dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); __pyx_pf_7pymusic_7DataMap_2__dealloc__(((struct __pyx_obj_7pymusic_DataMap *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_7pymusic_7DataMap_2__dealloc__(struct __pyx_obj_7pymusic_DataMap *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__", 0); delete __pyx_v_self->ptr; /* function exit code */ __Pyx_RefNannyFinishContext(); } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_7DataMap_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_7pymusic_7DataMap_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_7DataMap_4__reduce_cython__(((struct __pyx_obj_7pymusic_DataMap *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_7DataMap_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_DataMap *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.DataMap.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_7DataMap_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw_7pymusic_7DataMap_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_7DataMap_6__setstate_cython__(((struct __pyx_obj_7pymusic_DataMap *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_7DataMap_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_DataMap *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.DataMap.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":616 * or local EventHandler object for EventInputPort * """ * def __cinit__(self, object func, IndexType t): # <<<<<<<<<<<<<< * """ * func: a callable of the form */ /* Python wrapper */ static int __pyx_pw_7pymusic_12EventHandler_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_7pymusic_12EventHandler_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_func = 0; MUSIC::Index::Type __pyx_v_t; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_func,&__pyx_n_s_t,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, 1); __PYX_ERR(0, 616, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 616, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_func = values[0]; __pyx_v_t = ((MUSIC::Index::Type)__Pyx_PyInt_As_MUSIC_3a__3a_Index_3a__3a_Type(values[1])); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 616, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 616, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pymusic.EventHandler.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_12EventHandler___cinit__(((struct __pyx_obj_7pymusic_EventHandler *)__pyx_v_self), __pyx_v_func, __pyx_v_t); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_7pymusic_12EventHandler___cinit__(struct __pyx_obj_7pymusic_EventHandler *__pyx_v_self, PyObject *__pyx_v_func, MUSIC::Index::Type __pyx_v_t) { int __pyx_r; __Pyx_RefNannyDeclarations MUSIC::EventHandler *__pyx_t_1; __Pyx_RefNannySetupContext("__cinit__", 0); /* "pymusic.pyx":629 * self.ptr = \ * new CEHGlobal(func) \ * if t == IndexGLOBAL else \ # <<<<<<<<<<<<<< * \ * new CEHLocal(func) */ if (((__pyx_v_t == MUSIC::Index::GLOBAL) != 0)) { /* "pymusic.pyx":627 * to generalize func like this??) * """ * self.ptr = \ # <<<<<<<<<<<<<< * new CEHGlobal(func) \ * if t == IndexGLOBAL else \ */ __pyx_t_1 = ((MUSIC::EventHandler *)new MUSIC::EHGlobal(((PyObject *)__pyx_v_func))); } else { /* "pymusic.pyx":630 * new CEHGlobal(func) \ * if t == IndexGLOBAL else \ * \ # <<<<<<<<<<<<<< * new CEHLocal(func) * self.func = func */ __pyx_t_1 = ((MUSIC::EventHandler *)new MUSIC::EHLocal(((PyObject *)__pyx_v_func))); } /* "pymusic.pyx":627 * to generalize func like this??) * """ * self.ptr = \ # <<<<<<<<<<<<<< * new CEHGlobal(func) \ * if t == IndexGLOBAL else \ */ __pyx_v_self->ptr = __pyx_t_1; /* "pymusic.pyx":632 * \ * new CEHLocal(func) * self.func = func # <<<<<<<<<<<<<< * * def __dealloc__(self): del self.ptr */ __Pyx_INCREF(__pyx_v_func); __Pyx_GIVEREF(__pyx_v_func); __Pyx_GOTREF(__pyx_v_self->func); __Pyx_DECREF(__pyx_v_self->func); __pyx_v_self->func = __pyx_v_func; /* "pymusic.pyx":616 * or local EventHandler object for EventInputPort * """ * def __cinit__(self, object func, IndexType t): # <<<<<<<<<<<<<< * """ * func: a callable of the form */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":634 * self.func = func * * def __dealloc__(self): del self.ptr # <<<<<<<<<<<<<< * * cdef class _Index: */ /* Python wrapper */ static void __pyx_pw_7pymusic_12EventHandler_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_7pymusic_12EventHandler_3__dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); __pyx_pf_7pymusic_12EventHandler_2__dealloc__(((struct __pyx_obj_7pymusic_EventHandler *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_7pymusic_12EventHandler_2__dealloc__(struct __pyx_obj_7pymusic_EventHandler *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__", 0); delete __pyx_v_self->ptr; /* function exit code */ __Pyx_RefNannyFinishContext(); } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_12EventHandler_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_7pymusic_12EventHandler_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_12EventHandler_4__reduce_cython__(((struct __pyx_obj_7pymusic_EventHandler *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_12EventHandler_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_EventHandler *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.EventHandler.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_12EventHandler_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw_7pymusic_12EventHandler_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_12EventHandler_6__setstate_cython__(((struct __pyx_obj_7pymusic_EventHandler *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_12EventHandler_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_EventHandler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.EventHandler.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":648 * cdef readonly dict backmap * * def __cinit__(self): # <<<<<<<<<<<<<< * """ SINGLETON """ * self.GLOBAL = IndexGLOBAL */ /* Python wrapper */ static int __pyx_pw_7pymusic_6_Index_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_7pymusic_6_Index_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;} if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1; __pyx_r = __pyx_pf_7pymusic_6_Index___cinit__(((struct __pyx_obj_7pymusic__Index *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_7pymusic_6_Index___cinit__(struct __pyx_obj_7pymusic__Index *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("__cinit__", 0); /* "pymusic.pyx":650 * def __cinit__(self): * """ SINGLETON """ * self.GLOBAL = IndexGLOBAL # <<<<<<<<<<<<<< * self.LOCAL = IndexLOCAL * self.backmap = { */ __pyx_v_self->GLOBAL = MUSIC::Index::GLOBAL; /* "pymusic.pyx":651 * """ SINGLETON """ * self.GLOBAL = IndexGLOBAL * self.LOCAL = IndexLOCAL # <<<<<<<<<<<<<< * self.backmap = { * IndexGLOBAL: "GLOBAL", */ __pyx_v_self->LOCAL = MUSIC::Index::LOCAL; /* "pymusic.pyx":653 * self.LOCAL = IndexLOCAL * self.backmap = { * IndexGLOBAL: "GLOBAL", # <<<<<<<<<<<<<< * IndexLOCAL: "LOCAL" * }; */ __pyx_t_1 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyInt_From_MUSIC_3a__3a_Index_3a__3a_Type(MUSIC::Index::GLOBAL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_n_s_GLOBAL) < 0) __PYX_ERR(0, 653, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "pymusic.pyx":654 * self.backmap = { * IndexGLOBAL: "GLOBAL", * IndexLOCAL: "LOCAL" # <<<<<<<<<<<<<< * }; * */ __pyx_t_2 = __Pyx_PyInt_From_MUSIC_3a__3a_Index_3a__3a_Type(MUSIC::Index::LOCAL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 654, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_n_s_LOCAL) < 0) __PYX_ERR(0, 653, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "pymusic.pyx":652 * self.GLOBAL = IndexGLOBAL * self.LOCAL = IndexLOCAL * self.backmap = { # <<<<<<<<<<<<<< * IndexGLOBAL: "GLOBAL", * IndexLOCAL: "LOCAL" */ __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->backmap); __Pyx_DECREF(__pyx_v_self->backmap); __pyx_v_self->backmap = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":648 * cdef readonly dict backmap * * def __cinit__(self): # <<<<<<<<<<<<<< * """ SINGLETON """ * self.GLOBAL = IndexGLOBAL */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("pymusic._Index.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":657 * }; * * def tostr(self, int index): # <<<<<<<<<<<<<< * """" tostring(Index.{GLOBAL,LOCAL}) --> "{GLOBAL,LOCAL}" """ * return self.backmap[index] */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_6_Index_3tostr(PyObject *__pyx_v_self, PyObject *__pyx_arg_index); /*proto*/ static char __pyx_doc_7pymusic_6_Index_2tostr[] = "\" tostring(Index.{GLOBAL,LOCAL}) --> \"{GLOBAL,LOCAL}\" "; static PyObject *__pyx_pw_7pymusic_6_Index_3tostr(PyObject *__pyx_v_self, PyObject *__pyx_arg_index) { int __pyx_v_index; PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("tostr (wrapper)", 0); assert(__pyx_arg_index); { __pyx_v_index = __Pyx_PyInt_As_int(__pyx_arg_index); if (unlikely((__pyx_v_index == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 657, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("pymusic._Index.tostr", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_6_Index_2tostr(((struct __pyx_obj_7pymusic__Index *)__pyx_v_self), ((int)__pyx_v_index)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_6_Index_2tostr(struct __pyx_obj_7pymusic__Index *__pyx_v_self, int __pyx_v_index) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; __Pyx_RefNannySetupContext("tostr", 0); /* "pymusic.pyx":659 * def tostr(self, int index): * """" tostring(Index.{GLOBAL,LOCAL}) --> "{GLOBAL,LOCAL}" """ * return self.backmap[index] # <<<<<<<<<<<<<< * * # And here is the singleton def */ __Pyx_XDECREF(__pyx_r); if (unlikely(__pyx_v_self->backmap == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); __PYX_ERR(0, 659, __pyx_L1_error) } __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 659, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = __Pyx_PyDict_GetItem(__pyx_v_self->backmap, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 659, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; /* "pymusic.pyx":657 * }; * * def tostr(self, int index): # <<<<<<<<<<<<<< * """" tostring(Index.{GLOBAL,LOCAL}) --> "{GLOBAL,LOCAL}" """ * return self.backmap[index] */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("pymusic._Index.tostr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":644 * purposes * """ * cdef readonly int GLOBAL # <<<<<<<<<<<<<< * cdef readonly int LOCAL * cdef readonly dict backmap */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_6_Index_6GLOBAL_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_7pymusic_6_Index_6GLOBAL_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_6_Index_6GLOBAL___get__(((struct __pyx_obj_7pymusic__Index *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_6_Index_6GLOBAL___get__(struct __pyx_obj_7pymusic__Index *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->GLOBAL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 644, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic._Index.GLOBAL.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":645 * """ * cdef readonly int GLOBAL * cdef readonly int LOCAL # <<<<<<<<<<<<<< * cdef readonly dict backmap * */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_6_Index_5LOCAL_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_7pymusic_6_Index_5LOCAL_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_6_Index_5LOCAL___get__(((struct __pyx_obj_7pymusic__Index *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_6_Index_5LOCAL___get__(struct __pyx_obj_7pymusic__Index *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->LOCAL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 645, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic._Index.LOCAL.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":646 * cdef readonly int GLOBAL * cdef readonly int LOCAL * cdef readonly dict backmap # <<<<<<<<<<<<<< * * def __cinit__(self): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_6_Index_7backmap_1__get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_pw_7pymusic_6_Index_7backmap_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_6_Index_7backmap___get__(((struct __pyx_obj_7pymusic__Index *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_6_Index_7backmap___get__(struct __pyx_obj_7pymusic__Index *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); __Pyx_INCREF(__pyx_v_self->backmap); __pyx_r = __pyx_v_self->backmap; goto __pyx_L0; /* function exit code */ __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_6_Index_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_7pymusic_6_Index_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_6_Index_4__reduce_cython__(((struct __pyx_obj_7pymusic__Index *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_6_Index_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic__Index *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__25, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic._Index.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_6_Index_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw_7pymusic_6_Index_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_6_Index_6__setstate_cython__(((struct __pyx_obj_7pymusic__Index *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_6_Index_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic__Index *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic._Index.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":664 * Index = _Index() * * cdef cbool EventCallback(PyObject* func, # <<<<<<<<<<<<<< * double d, * IndexType t, */ bool MUSIC::EventCallback(PyObject *__pyx_v_func, double __pyx_v_d, MUSIC::Index::Type __pyx_v_t, int __pyx_v_i) { bool __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_5 = NULL; PyObject *__pyx_t_6 = NULL; int __pyx_t_7; PyObject *__pyx_t_8 = NULL; __Pyx_RefNannySetupContext("EventCallback", 0); /* "pymusic.pyx":676 * int i: index of event * """ * (func)(d, t, i) # <<<<<<<<<<<<<< * return True * */ __pyx_t_2 = PyFloat_FromDouble(__pyx_v_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyInt_From_MUSIC_3a__3a_Index_3a__3a_Type(__pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_i); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_INCREF(((PyObject *)__pyx_v_func)); __pyx_t_5 = ((PyObject *)__pyx_v_func); __pyx_t_6 = NULL; __pyx_t_7 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5); if (likely(__pyx_t_6)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); __Pyx_INCREF(__pyx_t_6); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_5, function); __pyx_t_7 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_t_2, __pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 676, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_t_2, __pyx_t_3, __pyx_t_4}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 676, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { __pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; } __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_3); __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_7, __pyx_t_4); __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_4 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":677 * """ * (func)(d, t, i) * return True # <<<<<<<<<<<<<< * * cdef class MessageHandler: */ __pyx_r = 1; goto __pyx_L0; /* "pymusic.pyx":664 * Index = _Index() * * cdef cbool EventCallback(PyObject* func, # <<<<<<<<<<<<<< * double d, * IndexType t, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("pymusic.EventCallback", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":685 * It may (or may not) depickle messages * """ * def __cinit__(self, object func, bint pickled): # <<<<<<<<<<<<<< * """ * func: The function to be called on a message, of the form */ /* Python wrapper */ static int __pyx_pw_7pymusic_14MessageHandler_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_7pymusic_14MessageHandler_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_func = 0; int __pyx_v_pickled; int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_func,&__pyx_n_s_pickled,0}; PyObject* values[2] = {0,0}; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); switch (pos_args) { case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); CYTHON_FALLTHROUGH; case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); CYTHON_FALLTHROUGH; case 0: break; default: goto __pyx_L5_argtuple_error; } kw_args = PyDict_Size(__pyx_kwds); switch (pos_args) { case 0: if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_func)) != 0)) kw_args--; else goto __pyx_L5_argtuple_error; CYTHON_FALLTHROUGH; case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pickled)) != 0)) kw_args--; else { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, 1); __PYX_ERR(0, 685, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 685, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; } else { values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[1] = PyTuple_GET_ITEM(__pyx_args, 1); } __pyx_v_func = values[0]; __pyx_v_pickled = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_pickled == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 685, __pyx_L3_error) } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 685, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pymusic.MessageHandler.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_7pymusic_14MessageHandler___cinit__(((struct __pyx_obj_7pymusic_MessageHandler *)__pyx_v_self), __pyx_v_func, __pyx_v_pickled); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_7pymusic_14MessageHandler___cinit__(struct __pyx_obj_7pymusic_MessageHandler *__pyx_v_self, PyObject *__pyx_v_func, int __pyx_v_pickled) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__cinit__", 0); /* "pymusic.pyx":693 * pickled: if true, the msg needs to be depickled * """ * self.ptr = new CMHandler(func, pickled) # <<<<<<<<<<<<<< * self.func = func * */ __pyx_v_self->ptr = new MUSIC::MHandler(((PyObject *)__pyx_v_func), __pyx_v_pickled); /* "pymusic.pyx":694 * """ * self.ptr = new CMHandler(func, pickled) * self.func = func # <<<<<<<<<<<<<< * * def __dealloc__(self): del self.ptr */ __Pyx_INCREF(__pyx_v_func); __Pyx_GIVEREF(__pyx_v_func); __Pyx_GOTREF(__pyx_v_self->func); __Pyx_DECREF(__pyx_v_self->func); __pyx_v_self->func = __pyx_v_func; /* "pymusic.pyx":685 * It may (or may not) depickle messages * """ * def __cinit__(self, object func, bint pickled): # <<<<<<<<<<<<<< * """ * func: The function to be called on a message, of the form */ /* function exit code */ __pyx_r = 0; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":696 * self.func = func * * def __dealloc__(self): del self.ptr # <<<<<<<<<<<<<< * * cdef cbool MessageCallback(PyObject* func, */ /* Python wrapper */ static void __pyx_pw_7pymusic_14MessageHandler_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_pw_7pymusic_14MessageHandler_3__dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); __pyx_pf_7pymusic_14MessageHandler_2__dealloc__(((struct __pyx_obj_7pymusic_MessageHandler *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_7pymusic_14MessageHandler_2__dealloc__(struct __pyx_obj_7pymusic_MessageHandler *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__", 0); delete __pyx_v_self->ptr; /* function exit code */ __Pyx_RefNannyFinishContext(); } /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_14MessageHandler_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_7pymusic_14MessageHandler_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_14MessageHandler_4__reduce_cython__(((struct __pyx_obj_7pymusic_MessageHandler *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_14MessageHandler_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_MessageHandler *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__reduce_cython__", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__27, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 2, __pyx_L1_error) /* "(tree fragment)":1 * def __reduce_cython__(self): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.MessageHandler.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* Python wrapper */ static PyObject *__pyx_pw_7pymusic_14MessageHandler_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/ static PyObject *__pyx_pw_7pymusic_14MessageHandler_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0); __pyx_r = __pyx_pf_7pymusic_14MessageHandler_6__setstate_cython__(((struct __pyx_obj_7pymusic_MessageHandler *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static PyObject *__pyx_pf_7pymusic_14MessageHandler_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7pymusic_MessageHandler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__setstate_cython__", 0); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__28, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __PYX_ERR(1, 4, __pyx_L1_error) /* "(tree fragment)":3 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<< * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("pymusic.MessageHandler.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "pymusic.pyx":698 * def __dealloc__(self): del self.ptr * * cdef cbool MessageCallback(PyObject* func, # <<<<<<<<<<<<<< * double t, * void* msg, */ bool MUSIC::MessageCallback(PyObject *__pyx_v_func, double __pyx_v_t, void *__pyx_v_msg, size_t __pyx_v_s, bool __pyx_v_pickled) { PyObject *__pyx_v_pobj = 0; PyObject *__pyx_v_obj = 0; bool __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; int __pyx_t_5; PyObject *__pyx_t_6 = NULL; __Pyx_RefNannySetupContext("MessageCallback", 0); /* "pymusic.pyx":713 * """ * #cdef str pobj = (msg)[:s] * cdef bytearray pobj = (msg)[:s] # <<<<<<<<<<<<<< * cdef object obj = pickle.loads(pobj) if pickled else pobj * (func)(t, obj) */ __pyx_t_1 = __Pyx_PyByteArray_FromStringAndSize(((char *)__pyx_v_msg) + 0, __pyx_v_s - 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 713, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_pobj = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":714 * #cdef str pobj = (msg)[:s] * cdef bytearray pobj = (msg)[:s] * cdef object obj = pickle.loads(pobj) if pickled else pobj # <<<<<<<<<<<<<< * (func)(t, obj) * return True */ if ((__pyx_v_pickled != 0)) { __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pickle); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 714, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_loads); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 714, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); } } __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_3, __pyx_v_pobj) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_pobj); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 714, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = __pyx_t_2; __pyx_t_2 = 0; } else { __Pyx_INCREF(__pyx_v_pobj); __pyx_t_1 = __pyx_v_pobj; } __pyx_v_obj = __pyx_t_1; __pyx_t_1 = 0; /* "pymusic.pyx":715 * cdef bytearray pobj = (msg)[:s] * cdef object obj = pickle.loads(pobj) if pickled else pobj * (func)(t, obj) # <<<<<<<<<<<<<< * return True * */ __pyx_t_2 = PyFloat_FromDouble(__pyx_v_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(((PyObject *)__pyx_v_func)); __pyx_t_4 = ((PyObject *)__pyx_v_func); __pyx_t_3 = NULL; __pyx_t_5 = 0; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4); if (likely(__pyx_t_3)) { PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(function); __Pyx_DECREF_SET(__pyx_t_4, function); __pyx_t_5 = 1; } } #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_2, __pyx_v_obj}; __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 715, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_2, __pyx_v_obj}; __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 715, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else #endif { __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); if (__pyx_t_3) { __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __pyx_t_3 = NULL; } __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_t_2); __Pyx_INCREF(__pyx_v_obj); __Pyx_GIVEREF(__pyx_v_obj); PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_v_obj); __pyx_t_2 = 0; __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":716 * cdef object obj = pickle.loads(pobj) if pickled else pobj * (func)(t, obj) * return True # <<<<<<<<<<<<<< * * ############################################################################# */ __pyx_r = 1; goto __pyx_L0; /* "pymusic.pyx":698 * def __dealloc__(self): del self.ptr * * cdef cbool MessageCallback(PyObject* func, # <<<<<<<<<<<<<< * double t, * void* msg, */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_AddTraceback("pymusic.MessageCallback", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_pobj); __Pyx_XDECREF(__pyx_v_obj); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "array.pxd":93 * __data_union data * * def __getbuffer__(self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< * # This implementation of getbuffer is geared towards Cython * # requirements, and does not yet fulfill the PEP. */ /* Python wrapper */ static CYTHON_UNUSED int __pyx_pw_7cpython_5array_5array_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/ static CYTHON_UNUSED int __pyx_pw_7cpython_5array_5array_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0); __pyx_r = __pyx_pf_7cpython_5array_5array___getbuffer__(((arrayobject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } static int __pyx_pf_7cpython_5array_5array___getbuffer__(arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info, CYTHON_UNUSED int __pyx_v_flags) { PyObject *__pyx_v_item_count = NULL; int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; char *__pyx_t_2; int __pyx_t_3; PyObject *__pyx_t_4 = NULL; Py_ssize_t __pyx_t_5; int __pyx_t_6; char __pyx_t_7; if (__pyx_v_info == NULL) { PyErr_SetString(PyExc_BufferError, "PyObject_GetBuffer: view==NULL argument is obsolete"); return -1; } __Pyx_RefNannySetupContext("__getbuffer__", 0); __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None); __Pyx_GIVEREF(__pyx_v_info->obj); /* "array.pxd":98 * # In particular strided access is always provided regardless * # of flags * item_count = Py_SIZE(self) # <<<<<<<<<<<<<< * * info.suboffsets = NULL */ __pyx_t_1 = PyInt_FromSsize_t(Py_SIZE(((PyObject *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_item_count = __pyx_t_1; __pyx_t_1 = 0; /* "array.pxd":100 * item_count = Py_SIZE(self) * * info.suboffsets = NULL # <<<<<<<<<<<<<< * info.buf = self.data.as_chars * info.readonly = 0 */ __pyx_v_info->suboffsets = NULL; /* "array.pxd":101 * * info.suboffsets = NULL * info.buf = self.data.as_chars # <<<<<<<<<<<<<< * info.readonly = 0 * info.ndim = 1 */ __pyx_t_2 = __pyx_v_self->data.as_chars; __pyx_v_info->buf = __pyx_t_2; /* "array.pxd":102 * info.suboffsets = NULL * info.buf = self.data.as_chars * info.readonly = 0 # <<<<<<<<<<<<<< * info.ndim = 1 * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) */ __pyx_v_info->readonly = 0; /* "array.pxd":103 * info.buf = self.data.as_chars * info.readonly = 0 * info.ndim = 1 # <<<<<<<<<<<<<< * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) * info.len = info.itemsize * item_count */ __pyx_v_info->ndim = 1; /* "array.pxd":104 * info.readonly = 0 * info.ndim = 1 * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) # <<<<<<<<<<<<<< * info.len = info.itemsize * item_count * */ __pyx_t_3 = __pyx_v_self->ob_descr->itemsize; __pyx_v_info->itemsize = __pyx_t_3; /* "array.pxd":105 * info.ndim = 1 * info.itemsize = self.ob_descr.itemsize # e.g. sizeof(float) * info.len = info.itemsize * item_count # <<<<<<<<<<<<<< * * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) */ __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_info->itemsize); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = PyNumber_Multiply(__pyx_t_1, __pyx_v_item_count); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 105, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_t_4); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 105, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_info->len = __pyx_t_5; /* "array.pxd":107 * info.len = info.itemsize * item_count * * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) # <<<<<<<<<<<<<< * if not info.shape: * raise MemoryError() */ __pyx_v_info->shape = ((Py_ssize_t *)PyObject_Malloc(((sizeof(Py_ssize_t)) + 2))); /* "array.pxd":108 * * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) * if not info.shape: # <<<<<<<<<<<<<< * raise MemoryError() * info.shape[0] = item_count # constant regardless of resizing */ __pyx_t_6 = ((!(__pyx_v_info->shape != 0)) != 0); if (unlikely(__pyx_t_6)) { /* "array.pxd":109 * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) * if not info.shape: * raise MemoryError() # <<<<<<<<<<<<<< * info.shape[0] = item_count # constant regardless of resizing * info.strides = &info.itemsize */ PyErr_NoMemory(); __PYX_ERR(2, 109, __pyx_L1_error) /* "array.pxd":108 * * info.shape = PyObject_Malloc(sizeof(Py_ssize_t) + 2) * if not info.shape: # <<<<<<<<<<<<<< * raise MemoryError() * info.shape[0] = item_count # constant regardless of resizing */ } /* "array.pxd":110 * if not info.shape: * raise MemoryError() * info.shape[0] = item_count # constant regardless of resizing # <<<<<<<<<<<<<< * info.strides = &info.itemsize * */ __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_item_count); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 110, __pyx_L1_error) (__pyx_v_info->shape[0]) = __pyx_t_5; /* "array.pxd":111 * raise MemoryError() * info.shape[0] = item_count # constant regardless of resizing * info.strides = &info.itemsize # <<<<<<<<<<<<<< * * info.format = (info.shape + 1) */ __pyx_v_info->strides = (&__pyx_v_info->itemsize); /* "array.pxd":113 * info.strides = &info.itemsize * * info.format = (info.shape + 1) # <<<<<<<<<<<<<< * info.format[0] = self.ob_descr.typecode * info.format[1] = 0 */ __pyx_v_info->format = ((char *)(__pyx_v_info->shape + 1)); /* "array.pxd":114 * * info.format = (info.shape + 1) * info.format[0] = self.ob_descr.typecode # <<<<<<<<<<<<<< * info.format[1] = 0 * info.obj = self */ __pyx_t_7 = __pyx_v_self->ob_descr->typecode; (__pyx_v_info->format[0]) = __pyx_t_7; /* "array.pxd":115 * info.format = (info.shape + 1) * info.format[0] = self.ob_descr.typecode * info.format[1] = 0 # <<<<<<<<<<<<<< * info.obj = self * */ (__pyx_v_info->format[1]) = 0; /* "array.pxd":116 * info.format[0] = self.ob_descr.typecode * info.format[1] = 0 * info.obj = self # <<<<<<<<<<<<<< * * def __releasebuffer__(self, Py_buffer* info): */ __Pyx_INCREF(((PyObject *)__pyx_v_self)); __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); __Pyx_GOTREF(__pyx_v_info->obj); __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = ((PyObject *)__pyx_v_self); /* "array.pxd":93 * __data_union data * * def __getbuffer__(self, Py_buffer* info, int flags): # <<<<<<<<<<<<<< * # This implementation of getbuffer is geared towards Cython * # requirements, and does not yet fulfill the PEP. */ /* function exit code */ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_AddTraceback("cpython.array.array.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; if (__pyx_v_info->obj != NULL) { __Pyx_GOTREF(__pyx_v_info->obj); __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0; } goto __pyx_L2; __pyx_L0:; if (__pyx_v_info->obj == Py_None) { __Pyx_GOTREF(__pyx_v_info->obj); __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0; } __pyx_L2:; __Pyx_XDECREF(__pyx_v_item_count); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "array.pxd":118 * info.obj = self * * def __releasebuffer__(self, Py_buffer* info): # <<<<<<<<<<<<<< * PyObject_Free(info.shape) * */ /* Python wrapper */ static CYTHON_UNUSED void __pyx_pw_7cpython_5array_5array_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/ static CYTHON_UNUSED void __pyx_pw_7cpython_5array_5array_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0); __pyx_pf_7cpython_5array_5array_2__releasebuffer__(((arrayobject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info)); /* function exit code */ __Pyx_RefNannyFinishContext(); } static void __pyx_pf_7cpython_5array_5array_2__releasebuffer__(CYTHON_UNUSED arrayobject *__pyx_v_self, Py_buffer *__pyx_v_info) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__releasebuffer__", 0); /* "array.pxd":119 * * def __releasebuffer__(self, Py_buffer* info): * PyObject_Free(info.shape) # <<<<<<<<<<<<<< * * array newarrayobject(PyTypeObject* type, Py_ssize_t size, arraydescr *descr) */ PyObject_Free(__pyx_v_info->shape); /* "array.pxd":118 * info.obj = self * * def __releasebuffer__(self, Py_buffer* info): # <<<<<<<<<<<<<< * PyObject_Free(info.shape) * */ /* function exit code */ __Pyx_RefNannyFinishContext(); } /* "array.pxd":130 * * * cdef inline array clone(array template, Py_ssize_t length, bint zero): # <<<<<<<<<<<<<< * """ fast creation of a new array, given a template array. * type will be same as template. */ static CYTHON_INLINE arrayobject *__pyx_f_7cpython_5array_clone(arrayobject *__pyx_v_template, Py_ssize_t __pyx_v_length, int __pyx_v_zero) { arrayobject *__pyx_v_op = NULL; arrayobject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_t_2; int __pyx_t_3; int __pyx_t_4; __Pyx_RefNannySetupContext("clone", 0); /* "array.pxd":134 * type will be same as template. * if zero is true, new array will be initialized with zeroes.""" * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) # <<<<<<<<<<<<<< * if zero and op is not None: * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) */ __pyx_t_1 = ((PyObject *)newarrayobject(Py_TYPE(((PyObject *)__pyx_v_template)), __pyx_v_length, __pyx_v_template->ob_descr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 134, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_op = ((arrayobject *)__pyx_t_1); __pyx_t_1 = 0; /* "array.pxd":135 * if zero is true, new array will be initialized with zeroes.""" * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) * if zero and op is not None: # <<<<<<<<<<<<<< * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) * return op */ __pyx_t_3 = (__pyx_v_zero != 0); if (__pyx_t_3) { } else { __pyx_t_2 = __pyx_t_3; goto __pyx_L4_bool_binop_done; } __pyx_t_3 = (((PyObject *)__pyx_v_op) != Py_None); __pyx_t_4 = (__pyx_t_3 != 0); __pyx_t_2 = __pyx_t_4; __pyx_L4_bool_binop_done:; if (__pyx_t_2) { /* "array.pxd":136 * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) * if zero and op is not None: * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) # <<<<<<<<<<<<<< * return op * */ (void)(memset(__pyx_v_op->data.as_chars, 0, (__pyx_v_length * __pyx_v_op->ob_descr->itemsize))); /* "array.pxd":135 * if zero is true, new array will be initialized with zeroes.""" * op = newarrayobject(Py_TYPE(template), length, template.ob_descr) * if zero and op is not None: # <<<<<<<<<<<<<< * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) * return op */ } /* "array.pxd":137 * if zero and op is not None: * memset(op.data.as_chars, 0, length * op.ob_descr.itemsize) * return op # <<<<<<<<<<<<<< * * cdef inline array copy(array self): */ __Pyx_XDECREF(((PyObject *)__pyx_r)); __Pyx_INCREF(((PyObject *)__pyx_v_op)); __pyx_r = __pyx_v_op; goto __pyx_L0; /* "array.pxd":130 * * * cdef inline array clone(array template, Py_ssize_t length, bint zero): # <<<<<<<<<<<<<< * """ fast creation of a new array, given a template array. * type will be same as template. */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cpython.array.clone", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_op); __Pyx_XGIVEREF((PyObject *)__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "array.pxd":139 * return op * * cdef inline array copy(array self): # <<<<<<<<<<<<<< * """ make a copy of an array. """ * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) */ static CYTHON_INLINE arrayobject *__pyx_f_7cpython_5array_copy(arrayobject *__pyx_v_self) { arrayobject *__pyx_v_op = NULL; arrayobject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("copy", 0); /* "array.pxd":141 * cdef inline array copy(array self): * """ make a copy of an array. """ * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) # <<<<<<<<<<<<<< * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) * return op */ __pyx_t_1 = ((PyObject *)newarrayobject(Py_TYPE(((PyObject *)__pyx_v_self)), Py_SIZE(((PyObject *)__pyx_v_self)), __pyx_v_self->ob_descr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_op = ((arrayobject *)__pyx_t_1); __pyx_t_1 = 0; /* "array.pxd":142 * """ make a copy of an array. """ * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) # <<<<<<<<<<<<<< * return op * */ (void)(memcpy(__pyx_v_op->data.as_chars, __pyx_v_self->data.as_chars, (Py_SIZE(((PyObject *)__pyx_v_op)) * __pyx_v_op->ob_descr->itemsize))); /* "array.pxd":143 * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) * memcpy(op.data.as_chars, self.data.as_chars, Py_SIZE(op) * op.ob_descr.itemsize) * return op # <<<<<<<<<<<<<< * * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: */ __Pyx_XDECREF(((PyObject *)__pyx_r)); __Pyx_INCREF(((PyObject *)__pyx_v_op)); __pyx_r = __pyx_v_op; goto __pyx_L0; /* "array.pxd":139 * return op * * cdef inline array copy(array self): # <<<<<<<<<<<<<< * """ make a copy of an array. """ * op = newarrayobject(Py_TYPE(self), Py_SIZE(self), self.ob_descr) */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("cpython.array.copy", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_op); __Pyx_XGIVEREF((PyObject *)__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "array.pxd":145 * return op * * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: # <<<<<<<<<<<<<< * """ efficient appending of new stuff of same type * (e.g. of same array type) */ static CYTHON_INLINE int __pyx_f_7cpython_5array_extend_buffer(arrayobject *__pyx_v_self, char *__pyx_v_stuff, Py_ssize_t __pyx_v_n) { Py_ssize_t __pyx_v_itemsize; Py_ssize_t __pyx_v_origsize; int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; __Pyx_RefNannySetupContext("extend_buffer", 0); /* "array.pxd":149 * (e.g. of same array type) * n: number of elements (not number of bytes!) """ * cdef Py_ssize_t itemsize = self.ob_descr.itemsize # <<<<<<<<<<<<<< * cdef Py_ssize_t origsize = Py_SIZE(self) * resize_smart(self, origsize + n) */ __pyx_t_1 = __pyx_v_self->ob_descr->itemsize; __pyx_v_itemsize = __pyx_t_1; /* "array.pxd":150 * n: number of elements (not number of bytes!) """ * cdef Py_ssize_t itemsize = self.ob_descr.itemsize * cdef Py_ssize_t origsize = Py_SIZE(self) # <<<<<<<<<<<<<< * resize_smart(self, origsize + n) * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) */ __pyx_v_origsize = Py_SIZE(((PyObject *)__pyx_v_self)); /* "array.pxd":151 * cdef Py_ssize_t itemsize = self.ob_descr.itemsize * cdef Py_ssize_t origsize = Py_SIZE(self) * resize_smart(self, origsize + n) # <<<<<<<<<<<<<< * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) * return 0 */ __pyx_t_1 = resize_smart(__pyx_v_self, (__pyx_v_origsize + __pyx_v_n)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(2, 151, __pyx_L1_error) /* "array.pxd":152 * cdef Py_ssize_t origsize = Py_SIZE(self) * resize_smart(self, origsize + n) * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) # <<<<<<<<<<<<<< * return 0 * */ (void)(memcpy((__pyx_v_self->data.as_chars + (__pyx_v_origsize * __pyx_v_itemsize)), __pyx_v_stuff, (__pyx_v_n * __pyx_v_itemsize))); /* "array.pxd":153 * resize_smart(self, origsize + n) * memcpy(self.data.as_chars + origsize * itemsize, stuff, n * itemsize) * return 0 # <<<<<<<<<<<<<< * * cdef inline int extend(array self, array other) except -1: */ __pyx_r = 0; goto __pyx_L0; /* "array.pxd":145 * return op * * cdef inline int extend_buffer(array self, char* stuff, Py_ssize_t n) except -1: # <<<<<<<<<<<<<< * """ efficient appending of new stuff of same type * (e.g. of same array type) */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cpython.array.extend_buffer", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "array.pxd":155 * return 0 * * cdef inline int extend(array self, array other) except -1: # <<<<<<<<<<<<<< * """ extend array with data from another array; types must match. """ * if self.ob_descr.typecode != other.ob_descr.typecode: */ static CYTHON_INLINE int __pyx_f_7cpython_5array_extend(arrayobject *__pyx_v_self, arrayobject *__pyx_v_other) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; int __pyx_t_2; __Pyx_RefNannySetupContext("extend", 0); /* "array.pxd":157 * cdef inline int extend(array self, array other) except -1: * """ extend array with data from another array; types must match. """ * if self.ob_descr.typecode != other.ob_descr.typecode: # <<<<<<<<<<<<<< * PyErr_BadArgument() * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) */ __pyx_t_1 = ((__pyx_v_self->ob_descr->typecode != __pyx_v_other->ob_descr->typecode) != 0); if (__pyx_t_1) { /* "array.pxd":158 * """ extend array with data from another array; types must match. """ * if self.ob_descr.typecode != other.ob_descr.typecode: * PyErr_BadArgument() # <<<<<<<<<<<<<< * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) * */ __pyx_t_2 = PyErr_BadArgument(); if (unlikely(__pyx_t_2 == ((int)0))) __PYX_ERR(2, 158, __pyx_L1_error) /* "array.pxd":157 * cdef inline int extend(array self, array other) except -1: * """ extend array with data from another array; types must match. """ * if self.ob_descr.typecode != other.ob_descr.typecode: # <<<<<<<<<<<<<< * PyErr_BadArgument() * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) */ } /* "array.pxd":159 * if self.ob_descr.typecode != other.ob_descr.typecode: * PyErr_BadArgument() * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) # <<<<<<<<<<<<<< * * cdef inline void zero(array self): */ __pyx_t_2 = __pyx_f_7cpython_5array_extend_buffer(__pyx_v_self, __pyx_v_other->data.as_chars, Py_SIZE(((PyObject *)__pyx_v_other))); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(2, 159, __pyx_L1_error) __pyx_r = __pyx_t_2; goto __pyx_L0; /* "array.pxd":155 * return 0 * * cdef inline int extend(array self, array other) except -1: # <<<<<<<<<<<<<< * """ extend array with data from another array; types must match. """ * if self.ob_descr.typecode != other.ob_descr.typecode: */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("cpython.array.extend", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "array.pxd":161 * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) * * cdef inline void zero(array self): # <<<<<<<<<<<<<< * """ set all elements of array to zero. """ * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) */ static CYTHON_INLINE void __pyx_f_7cpython_5array_zero(arrayobject *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("zero", 0); /* "array.pxd":163 * cdef inline void zero(array self): * """ set all elements of array to zero. """ * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) # <<<<<<<<<<<<<< */ (void)(memset(__pyx_v_self->data.as_chars, 0, (Py_SIZE(((PyObject *)__pyx_v_self)) * __pyx_v_self->ob_descr->itemsize))); /* "array.pxd":161 * return extend_buffer(self, other.data.as_chars, Py_SIZE(other)) * * cdef inline void zero(array self): # <<<<<<<<<<<<<< * """ set all elements of array to zero. """ * memset(self.data.as_chars, 0, Py_SIZE(self) * self.ob_descr.itemsize) */ /* function exit code */ __Pyx_RefNannyFinishContext(); } /* "string.from_py":13 * * @cname("__pyx_convert_string_from_py_std__in_string") * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: # <<<<<<<<<<<<<< * cdef Py_ssize_t length = 0 * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) */ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v_o) { Py_ssize_t __pyx_v_length; char const *__pyx_v_data; std::string __pyx_r; __Pyx_RefNannyDeclarations char const *__pyx_t_1; __Pyx_RefNannySetupContext("__pyx_convert_string_from_py_std__in_string", 0); /* "string.from_py":14 * @cname("__pyx_convert_string_from_py_std__in_string") * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: * cdef Py_ssize_t length = 0 # <<<<<<<<<<<<<< * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) * return string(data, length) */ __pyx_v_length = 0; /* "string.from_py":15 * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: * cdef Py_ssize_t length = 0 * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) # <<<<<<<<<<<<<< * return string(data, length) * */ __pyx_t_1 = __Pyx_PyObject_AsStringAndSize(__pyx_v_o, (&__pyx_v_length)); if (unlikely(__pyx_t_1 == ((char const *)NULL))) __PYX_ERR(1, 15, __pyx_L1_error) __pyx_v_data = __pyx_t_1; /* "string.from_py":16 * cdef Py_ssize_t length = 0 * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) * return string(data, length) # <<<<<<<<<<<<<< * * */ __pyx_r = std::string(__pyx_v_data, __pyx_v_length); goto __pyx_L0; /* "string.from_py":13 * * @cname("__pyx_convert_string_from_py_std__in_string") * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: # <<<<<<<<<<<<<< * cdef Py_ssize_t length = 0 * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) */ /* function exit code */ __pyx_L1_error:; __Pyx_AddTraceback("string.from_py.__pyx_convert_string_from_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_pretend_to_initialize(&__pyx_r); __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "string.to_py":31 * * @cname("__pyx_convert_PyObject_string_to_py_std__in_string") * cdef inline object __pyx_convert_PyObject_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyObject_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__pyx_convert_PyObject_string_to_py_std__in_string", 0); /* "string.to_py":32 * @cname("__pyx_convert_PyObject_string_to_py_std__in_string") * cdef inline object __pyx_convert_PyObject_string_to_py_std__in_string(const string& s): * return __Pyx_PyObject_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: * cdef object __Pyx_PyUnicode_FromStringAndSize(const char*, size_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyObject_FromStringAndSize(__pyx_v_s.data(), __pyx_v_s.size()); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "string.to_py":31 * * @cname("__pyx_convert_PyObject_string_to_py_std__in_string") * cdef inline object __pyx_convert_PyObject_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyObject_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("string.to_py.__pyx_convert_PyObject_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "string.to_py":37 * * @cname("__pyx_convert_PyUnicode_string_to_py_std__in_string") * cdef inline object __pyx_convert_PyUnicode_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyUnicode_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__pyx_convert_PyUnicode_string_to_py_std__in_string", 0); /* "string.to_py":38 * @cname("__pyx_convert_PyUnicode_string_to_py_std__in_string") * cdef inline object __pyx_convert_PyUnicode_string_to_py_std__in_string(const string& s): * return __Pyx_PyUnicode_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: * cdef object __Pyx_PyStr_FromStringAndSize(const char*, size_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyUnicode_FromStringAndSize(__pyx_v_s.data(), __pyx_v_s.size()); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 38, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "string.to_py":37 * * @cname("__pyx_convert_PyUnicode_string_to_py_std__in_string") * cdef inline object __pyx_convert_PyUnicode_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyUnicode_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("string.to_py.__pyx_convert_PyUnicode_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "string.to_py":43 * * @cname("__pyx_convert_PyStr_string_to_py_std__in_string") * cdef inline object __pyx_convert_PyStr_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyStr_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__pyx_convert_PyStr_string_to_py_std__in_string", 0); /* "string.to_py":44 * @cname("__pyx_convert_PyStr_string_to_py_std__in_string") * cdef inline object __pyx_convert_PyStr_string_to_py_std__in_string(const string& s): * return __Pyx_PyStr_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: * cdef object __Pyx_PyBytes_FromStringAndSize(const char*, size_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyStr_FromStringAndSize(__pyx_v_s.data(), __pyx_v_s.size()); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 44, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "string.to_py":43 * * @cname("__pyx_convert_PyStr_string_to_py_std__in_string") * cdef inline object __pyx_convert_PyStr_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyStr_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("string.to_py.__pyx_convert_PyStr_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "string.to_py":49 * * @cname("__pyx_convert_PyBytes_string_to_py_std__in_string") * cdef inline object __pyx_convert_PyBytes_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyBytes_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__pyx_convert_PyBytes_string_to_py_std__in_string", 0); /* "string.to_py":50 * @cname("__pyx_convert_PyBytes_string_to_py_std__in_string") * cdef inline object __pyx_convert_PyBytes_string_to_py_std__in_string(const string& s): * return __Pyx_PyBytes_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: * cdef object __Pyx_PyByteArray_FromStringAndSize(const char*, size_t) */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_s.data(), __pyx_v_s.size()); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 50, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "string.to_py":49 * * @cname("__pyx_convert_PyBytes_string_to_py_std__in_string") * cdef inline object __pyx_convert_PyBytes_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyBytes_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("string.to_py.__pyx_convert_PyBytes_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } /* "string.to_py":55 * * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string") * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size()) * */ static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__pyx_convert_PyByteArray_string_to_py_std__in_string", 0); /* "string.to_py":56 * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string") * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s): * return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * */ __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __Pyx_PyByteArray_FromStringAndSize(__pyx_v_s.data(), __pyx_v_s.size()); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 56, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; /* "string.to_py":55 * * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string") * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size()) * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("string.to_py.__pyx_convert_PyByteArray_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } static struct __pyx_vtabstruct_7pymusic_Setup __pyx_vtable_7pymusic_Setup; static PyObject *__pyx_tp_new_7pymusic_Setup(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_7pymusic_Setup *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_7pymusic_Setup *)o); p->__pyx_vtab = __pyx_vtabptr_7pymusic_Setup; p->argv = ((PyObject*)Py_None); Py_INCREF(Py_None); p->comm = ((struct PyMPIIntracommObject *)Py_None); Py_INCREF(Py_None); p->ports = ((PyObject*)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_7pymusic_5Setup_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_7pymusic_Setup(PyObject *o) { struct __pyx_obj_7pymusic_Setup *p = (struct __pyx_obj_7pymusic_Setup *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); ++Py_REFCNT(o); __pyx_pw_7pymusic_5Setup_3__dealloc__(o); --Py_REFCNT(o); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->argv); Py_CLEAR(p->comm); Py_CLEAR(p->ports); (*Py_TYPE(o)->tp_free)(o); } static int __pyx_tp_traverse_7pymusic_Setup(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_7pymusic_Setup *p = (struct __pyx_obj_7pymusic_Setup *)o; if (p->argv) { e = (*v)(p->argv, a); if (e) return e; } if (p->comm) { e = (*v)(((PyObject *)p->comm), a); if (e) return e; } if (p->ports) { e = (*v)(p->ports, a); if (e) return e; } return 0; } static int __pyx_tp_clear_7pymusic_Setup(PyObject *o) { PyObject* tmp; struct __pyx_obj_7pymusic_Setup *p = (struct __pyx_obj_7pymusic_Setup *)o; tmp = ((PyObject*)p->argv); p->argv = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->comm); p->comm = ((struct PyMPIIntracommObject *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->ports); p->ports = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_7pymusic_5Setup_comm(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_7pymusic_5Setup_4comm_1__get__(o); } static PyMethodDef __pyx_methods_7pymusic_Setup[] = { {"getcomm", (PyCFunction)__pyx_pw_7pymusic_5Setup_5getcomm, METH_NOARGS, __pyx_doc_7pymusic_5Setup_4getcomm}, {"config", (PyCFunction)__pyx_pw_7pymusic_5Setup_7config, METH_O, __pyx_doc_7pymusic_5Setup_6config}, {"publishContInput", (PyCFunction)__pyx_pw_7pymusic_5Setup_9publishContInput, METH_O, __pyx_doc_7pymusic_5Setup_8publishContInput}, {"publishContOutput", (PyCFunction)__pyx_pw_7pymusic_5Setup_11publishContOutput, METH_O, __pyx_doc_7pymusic_5Setup_10publishContOutput}, {"publishEventOutput", (PyCFunction)__pyx_pw_7pymusic_5Setup_13publishEventOutput, METH_O, __pyx_doc_7pymusic_5Setup_12publishEventOutput}, {"publishEventInput", (PyCFunction)__pyx_pw_7pymusic_5Setup_15publishEventInput, METH_O, __pyx_doc_7pymusic_5Setup_14publishEventInput}, {"publishMessageOutput", (PyCFunction)__pyx_pw_7pymusic_5Setup_17publishMessageOutput, METH_O, __pyx_doc_7pymusic_5Setup_16publishMessageOutput}, {"publishMessageInput", (PyCFunction)__pyx_pw_7pymusic_5Setup_19publishMessageInput, METH_O, __pyx_doc_7pymusic_5Setup_18publishMessageInput}, {"runtime", (PyCFunction)__pyx_pw_7pymusic_5Setup_21runtime, METH_O, __pyx_doc_7pymusic_5Setup_20runtime}, {"__reduce_cython__", (PyCFunction)__pyx_pw_7pymusic_5Setup_23__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_7pymusic_5Setup_25__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_7pymusic_Setup[] = { {(char *)"comm", __pyx_getprop_7pymusic_5Setup_comm, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_type_7pymusic_Setup = { PyVarObject_HEAD_INIT(0, 0) "pymusic.Setup", /*tp_name*/ sizeof(struct __pyx_obj_7pymusic_Setup), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7pymusic_Setup, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "\n API to setup the music interface.\n Becomes invalid after a Runtime object is created.\n It gives access to config variables (*.music file),\n and creates sinks and sources which can then be configured with\n the respective map method of each.\n ", /*tp_doc*/ __pyx_tp_traverse_7pymusic_Setup, /*tp_traverse*/ __pyx_tp_clear_7pymusic_Setup, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_7pymusic_Setup, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_7pymusic_Setup, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_7pymusic_Setup, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif }; static PyObject *__pyx_tp_new_7pymusic_Runtime(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_7pymusic_Runtime *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_7pymusic_Runtime *)o); p->comm = ((struct PyMPIIntracommObject *)Py_None); Py_INCREF(Py_None); p->ports = ((PyObject*)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_7pymusic_7Runtime_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_7pymusic_Runtime(PyObject *o) { struct __pyx_obj_7pymusic_Runtime *p = (struct __pyx_obj_7pymusic_Runtime *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); ++Py_REFCNT(o); __pyx_pw_7pymusic_7Runtime_3__dealloc__(o); --Py_REFCNT(o); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->comm); Py_CLEAR(p->ports); (*Py_TYPE(o)->tp_free)(o); } static int __pyx_tp_traverse_7pymusic_Runtime(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_7pymusic_Runtime *p = (struct __pyx_obj_7pymusic_Runtime *)o; if (p->comm) { e = (*v)(((PyObject *)p->comm), a); if (e) return e; } if (p->ports) { e = (*v)(p->ports, a); if (e) return e; } return 0; } static int __pyx_tp_clear_7pymusic_Runtime(PyObject *o) { PyObject* tmp; struct __pyx_obj_7pymusic_Runtime *p = (struct __pyx_obj_7pymusic_Runtime *)o; tmp = ((PyObject*)p->comm); p->comm = ((struct PyMPIIntracommObject *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); tmp = ((PyObject*)p->ports); p->ports = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_7pymusic_7Runtime_comm(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_7pymusic_7Runtime_4comm_1__get__(o); } static PyMethodDef __pyx_methods_7pymusic_Runtime[] = { {"time", (PyCFunction)__pyx_pw_7pymusic_7Runtime_5time, METH_NOARGS, 0}, {"tick", (PyCFunction)__pyx_pw_7pymusic_7Runtime_7tick, METH_NOARGS, 0}, {"__reduce_cython__", (PyCFunction)__pyx_pw_7pymusic_7Runtime_12__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_7pymusic_7Runtime_14__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_7pymusic_Runtime[] = { {(char *)"comm", __pyx_getprop_7pymusic_7Runtime_comm, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_type_7pymusic_Runtime = { PyVarObject_HEAD_INIT(0, 0) "pymusic.Runtime", /*tp_name*/ sizeof(struct __pyx_obj_7pymusic_Runtime), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7pymusic_Runtime, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_7pymusic_Runtime, /*tp_traverse*/ __pyx_tp_clear_7pymusic_Runtime, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ __pyx_pw_7pymusic_7Runtime_9__iter__, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_7pymusic_Runtime, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_7pymusic_Runtime, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_7pymusic_Runtime, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif }; static struct __pyx_vtabstruct_7pymusic_Port __pyx_vtable_7pymusic_Port; static PyObject *__pyx_tp_new_7pymusic_Port(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_7pymusic_Port *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_7pymusic_Port *)o); p->__pyx_vtab = __pyx_vtabptr_7pymusic_Port; if (unlikely(__pyx_pw_7pymusic_4Port_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_7pymusic_Port(PyObject *o) { #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif (*Py_TYPE(o)->tp_free)(o); } static PyMethodDef __pyx_methods_7pymusic_Port[] = { {"null", (PyCFunction)__pyx_pw_7pymusic_4Port_5null, METH_NOARGS, __pyx_doc_7pymusic_4Port_4null}, {"isConnected", (PyCFunction)__pyx_pw_7pymusic_4Port_7isConnected, METH_NOARGS, __pyx_doc_7pymusic_4Port_6isConnected}, {"width", (PyCFunction)__pyx_pw_7pymusic_4Port_9width, METH_NOARGS, __pyx_doc_7pymusic_4Port_8width}, {"__reduce_cython__", (PyCFunction)__pyx_pw_7pymusic_4Port_11__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_7pymusic_4Port_13__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_7pymusic_Port = { PyVarObject_HEAD_INIT(0, 0) "pymusic.Port", /*tp_name*/ sizeof(struct __pyx_obj_7pymusic_Port), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7pymusic_Port, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ __pyx_pw_7pymusic_4Port_3__hash__, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Base Port class.\n\n The underlying pointer is not deallocated here, since in MUSIC the\n port is owned by Setup/Runtime. This does null the value when we\n believe the underlying object may be deallocated by the\n container.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_7pymusic_Port, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_7pymusic_Port, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif }; static struct __pyx_vtabstruct_7pymusic_ContInputPort __pyx_vtable_7pymusic_ContInputPort; static PyObject *__pyx_tp_new_7pymusic_ContInputPort(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_7pymusic_ContInputPort *p; PyObject *o = __pyx_tp_new_7pymusic_Port(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_7pymusic_ContInputPort *)o); p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_7pymusic_Port*)__pyx_vtabptr_7pymusic_ContInputPort; return o; } static PyMethodDef __pyx_methods_7pymusic_ContInputPort[] = { {"map", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_7pymusic_13ContInputPort_1map, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7pymusic_13ContInputPort_map}, {"__reduce_cython__", (PyCFunction)__pyx_pw_7pymusic_13ContInputPort_3__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_7pymusic_13ContInputPort_5__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_7pymusic_ContInputPort = { PyVarObject_HEAD_INIT(0, 0) "pymusic.ContInputPort", /*tp_name*/ sizeof(struct __pyx_obj_7pymusic_ContInputPort), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7pymusic_Port, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n ContInputPort maps data indices between sources and sinks. This is\n the sink side; source is ContOutputPort. Created by\n Setup.publishContInputPort(portname).\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_7pymusic_ContInputPort, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_7pymusic_ContInputPort, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif }; static struct __pyx_vtabstruct_7pymusic_ContOutputPort __pyx_vtable_7pymusic_ContOutputPort; static PyObject *__pyx_tp_new_7pymusic_ContOutputPort(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_7pymusic_ContOutputPort *p; PyObject *o = __pyx_tp_new_7pymusic_Port(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_7pymusic_ContOutputPort *)o); p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_7pymusic_Port*)__pyx_vtabptr_7pymusic_ContOutputPort; return o; } static PyMethodDef __pyx_methods_7pymusic_ContOutputPort[] = { {"map", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_7pymusic_14ContOutputPort_1map, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7pymusic_14ContOutputPort_map}, {"__reduce_cython__", (PyCFunction)__pyx_pw_7pymusic_14ContOutputPort_3__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_7pymusic_14ContOutputPort_5__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_7pymusic_ContOutputPort = { PyVarObject_HEAD_INIT(0, 0) "pymusic.ContOutputPort", /*tp_name*/ sizeof(struct __pyx_obj_7pymusic_ContOutputPort), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7pymusic_Port, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n ContOutputPort maps data indices between sources and sinks. This\n is the source side; ContInputPort is the sink. Created by\n Setup.publishContOutputPort(portname).\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_7pymusic_ContOutputPort, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_7pymusic_ContOutputPort, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif }; static struct __pyx_vtabstruct_7pymusic_EventInputPort __pyx_vtable_7pymusic_EventInputPort; static PyObject *__pyx_tp_new_7pymusic_EventInputPort(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_7pymusic_EventInputPort *p; PyObject *o = __pyx_tp_new_7pymusic_Port(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_7pymusic_EventInputPort *)o); p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_7pymusic_Port*)__pyx_vtabptr_7pymusic_EventInputPort; p->events = ((PyObject*)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_7pymusic_14EventInputPort_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_7pymusic_EventInputPort(PyObject *o) { struct __pyx_obj_7pymusic_EventInputPort *p = (struct __pyx_obj_7pymusic_EventInputPort *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->events); #if CYTHON_USE_TYPE_SLOTS if (PyType_IS_GC(Py_TYPE(o)->tp_base)) #endif PyObject_GC_Track(o); __pyx_tp_dealloc_7pymusic_Port(o); } static int __pyx_tp_traverse_7pymusic_EventInputPort(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_7pymusic_EventInputPort *p = (struct __pyx_obj_7pymusic_EventInputPort *)o; e = ((likely(__pyx_ptype_7pymusic_Port)) ? ((__pyx_ptype_7pymusic_Port->tp_traverse) ? __pyx_ptype_7pymusic_Port->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_7pymusic_EventInputPort)); if (e) return e; if (p->events) { e = (*v)(p->events, a); if (e) return e; } return 0; } static int __pyx_tp_clear_7pymusic_EventInputPort(PyObject *o) { PyObject* tmp; struct __pyx_obj_7pymusic_EventInputPort *p = (struct __pyx_obj_7pymusic_EventInputPort *)o; if (likely(__pyx_ptype_7pymusic_Port)) { if (__pyx_ptype_7pymusic_Port->tp_clear) __pyx_ptype_7pymusic_Port->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_7pymusic_EventInputPort); tmp = ((PyObject*)p->events); p->events = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyMethodDef __pyx_methods_7pymusic_EventInputPort[] = { {"null", (PyCFunction)__pyx_pw_7pymusic_14EventInputPort_3null, METH_NOARGS, __pyx_doc_7pymusic_14EventInputPort_2null}, {"map", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_7pymusic_14EventInputPort_5map, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7pymusic_14EventInputPort_4map}, {"__reduce_cython__", (PyCFunction)__pyx_pw_7pymusic_14EventInputPort_7__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_7pymusic_14EventInputPort_9__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_7pymusic_EventInputPort = { PyVarObject_HEAD_INIT(0, 0) "pymusic.EventInputPort", /*tp_name*/ sizeof(struct __pyx_obj_7pymusic_EventInputPort), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7pymusic_EventInputPort, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "\n Event sink. Maps 'events' to handlers. Events are spike-like\n events at a defined time associated with an id, either/or\n global/local in some (unclear to me) way.\n\n Since these 'events' must be protected from deallocation as long\n as the port exists (until finalization), we keep a set of them\n here and drop the reference when this object is null'd (events member).\n ", /*tp_doc*/ __pyx_tp_traverse_7pymusic_EventInputPort, /*tp_traverse*/ __pyx_tp_clear_7pymusic_EventInputPort, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_7pymusic_EventInputPort, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_7pymusic_EventInputPort, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif }; static struct __pyx_vtabstruct_7pymusic_EventOutputPort __pyx_vtable_7pymusic_EventOutputPort; static PyObject *__pyx_tp_new_7pymusic_EventOutputPort(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_7pymusic_EventOutputPort *p; PyObject *o = __pyx_tp_new_7pymusic_Port(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_7pymusic_EventOutputPort *)o); p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_7pymusic_Port*)__pyx_vtabptr_7pymusic_EventOutputPort; return o; } static PyMethodDef __pyx_methods_7pymusic_EventOutputPort[] = { {"map", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_7pymusic_15EventOutputPort_1map, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7pymusic_15EventOutputPort_map}, {"insertEvent", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_7pymusic_15EventOutputPort_3insertEvent, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7pymusic_15EventOutputPort_2insertEvent}, {"__reduce_cython__", (PyCFunction)__pyx_pw_7pymusic_15EventOutputPort_5__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_7pymusic_15EventOutputPort_7__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_7pymusic_EventOutputPort = { PyVarObject_HEAD_INIT(0, 0) "pymusic.EventOutputPort", /*tp_name*/ sizeof(struct __pyx_obj_7pymusic_EventOutputPort), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7pymusic_Port, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n Map events from this sink. See EventInputPort for description of\n events.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_7pymusic_EventOutputPort, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_7pymusic_EventOutputPort, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif }; static struct __pyx_vtabstruct_7pymusic_MessageInputPort __pyx_vtable_7pymusic_MessageInputPort; static PyObject *__pyx_tp_new_7pymusic_MessageInputPort(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_7pymusic_MessageInputPort *p; PyObject *o = __pyx_tp_new_7pymusic_Port(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_7pymusic_MessageInputPort *)o); p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_7pymusic_Port*)__pyx_vtabptr_7pymusic_MessageInputPort; p->events = ((PyObject*)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_7pymusic_16MessageInputPort_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_7pymusic_MessageInputPort(PyObject *o) { struct __pyx_obj_7pymusic_MessageInputPort *p = (struct __pyx_obj_7pymusic_MessageInputPort *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->events); #if CYTHON_USE_TYPE_SLOTS if (PyType_IS_GC(Py_TYPE(o)->tp_base)) #endif PyObject_GC_Track(o); __pyx_tp_dealloc_7pymusic_Port(o); } static int __pyx_tp_traverse_7pymusic_MessageInputPort(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_7pymusic_MessageInputPort *p = (struct __pyx_obj_7pymusic_MessageInputPort *)o; e = ((likely(__pyx_ptype_7pymusic_Port)) ? ((__pyx_ptype_7pymusic_Port->tp_traverse) ? __pyx_ptype_7pymusic_Port->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_7pymusic_MessageInputPort)); if (e) return e; if (p->events) { e = (*v)(p->events, a); if (e) return e; } return 0; } static int __pyx_tp_clear_7pymusic_MessageInputPort(PyObject *o) { PyObject* tmp; struct __pyx_obj_7pymusic_MessageInputPort *p = (struct __pyx_obj_7pymusic_MessageInputPort *)o; if (likely(__pyx_ptype_7pymusic_Port)) { if (__pyx_ptype_7pymusic_Port->tp_clear) __pyx_ptype_7pymusic_Port->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_7pymusic_MessageInputPort); tmp = ((PyObject*)p->events); p->events = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyMethodDef __pyx_methods_7pymusic_MessageInputPort[] = { {"null", (PyCFunction)__pyx_pw_7pymusic_16MessageInputPort_3null, METH_NOARGS, __pyx_doc_7pymusic_16MessageInputPort_2null}, {"map", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_7pymusic_16MessageInputPort_5map, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7pymusic_16MessageInputPort_4map}, {"__reduce_cython__", (PyCFunction)__pyx_pw_7pymusic_16MessageInputPort_7__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_7pymusic_16MessageInputPort_9__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_7pymusic_MessageInputPort = { PyVarObject_HEAD_INIT(0, 0) "pymusic.MessageInputPort", /*tp_name*/ sizeof(struct __pyx_obj_7pymusic_MessageInputPort), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7pymusic_MessageInputPort, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "\n Maps 'events' to handlers.\n\n Since these 'events' must be protected from deallocation as long\n as the port exists (until finalization), we keep a set of them\n here and drop the reference when this object is null'd.\n ", /*tp_doc*/ __pyx_tp_traverse_7pymusic_MessageInputPort, /*tp_traverse*/ __pyx_tp_clear_7pymusic_MessageInputPort, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_7pymusic_MessageInputPort, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_7pymusic_MessageInputPort, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif }; static struct __pyx_vtabstruct_7pymusic_MessageOutputPort __pyx_vtable_7pymusic_MessageOutputPort; static PyObject *__pyx_tp_new_7pymusic_MessageOutputPort(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_7pymusic_MessageOutputPort *p; PyObject *o = __pyx_tp_new_7pymusic_Port(t, a, k); if (unlikely(!o)) return 0; p = ((struct __pyx_obj_7pymusic_MessageOutputPort *)o); p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_7pymusic_Port*)__pyx_vtabptr_7pymusic_MessageOutputPort; return o; } static PyMethodDef __pyx_methods_7pymusic_MessageOutputPort[] = { {"map", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_7pymusic_17MessageOutputPort_1map, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7pymusic_17MessageOutputPort_map}, {"insertMessage", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_7pymusic_17MessageOutputPort_3insertMessage, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7pymusic_17MessageOutputPort_2insertMessage}, {"__reduce_cython__", (PyCFunction)__pyx_pw_7pymusic_17MessageOutputPort_5__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_7pymusic_17MessageOutputPort_7__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_7pymusic_MessageOutputPort = { PyVarObject_HEAD_INIT(0, 0) "pymusic.MessageOutputPort", /*tp_name*/ sizeof(struct __pyx_obj_7pymusic_MessageOutputPort), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7pymusic_Port, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ "\n The source of \"messages\". A message is a python object that is\n pickled and fed to the other end, associated with a time.\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_7pymusic_MessageOutputPort, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_7pymusic_MessageOutputPort, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif }; static PyObject *__pyx_tp_new_7pymusic_DataMap(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_7pymusic_DataMap *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_7pymusic_DataMap *)o); p->buf = ((struct __pyx_obj_5music_8pybuffer_Buffer *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_7pymusic_7DataMap_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_7pymusic_DataMap(PyObject *o) { struct __pyx_obj_7pymusic_DataMap *p = (struct __pyx_obj_7pymusic_DataMap *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); ++Py_REFCNT(o); __pyx_pw_7pymusic_7DataMap_3__dealloc__(o); --Py_REFCNT(o); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->buf); (*Py_TYPE(o)->tp_free)(o); } static int __pyx_tp_traverse_7pymusic_DataMap(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_7pymusic_DataMap *p = (struct __pyx_obj_7pymusic_DataMap *)o; if (p->buf) { e = (*v)(((PyObject *)p->buf), a); if (e) return e; } return 0; } static int __pyx_tp_clear_7pymusic_DataMap(PyObject *o) { PyObject* tmp; struct __pyx_obj_7pymusic_DataMap *p = (struct __pyx_obj_7pymusic_DataMap *)o; tmp = ((PyObject*)p->buf); p->buf = ((struct __pyx_obj_5music_8pybuffer_Buffer *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyMethodDef __pyx_methods_7pymusic_DataMap[] = { {"__reduce_cython__", (PyCFunction)__pyx_pw_7pymusic_7DataMap_5__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_7pymusic_7DataMap_7__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_7pymusic_DataMap = { PyVarObject_HEAD_INIT(0, 0) "pymusic.DataMap", /*tp_name*/ sizeof(struct __pyx_obj_7pymusic_DataMap), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7pymusic_DataMap, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "\n Internal:\n An ArrayData object. Takes a data object as a Buffer and possibly an\n IndexMap to construct a mapping for the Cont*Port transfers.\n ", /*tp_doc*/ __pyx_tp_traverse_7pymusic_DataMap, /*tp_traverse*/ __pyx_tp_clear_7pymusic_DataMap, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_7pymusic_DataMap, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_7pymusic_DataMap, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif }; static PyObject *__pyx_tp_new_7pymusic_IndexMap(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_7pymusic_IndexMap *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_7pymusic_IndexMap *)o); p->buf = ((struct __pyx_obj_5music_8pybuffer_Buffer *)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_7pymusic_8IndexMap_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_7pymusic_IndexMap(PyObject *o) { struct __pyx_obj_7pymusic_IndexMap *p = (struct __pyx_obj_7pymusic_IndexMap *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); ++Py_REFCNT(o); __pyx_pw_7pymusic_8IndexMap_3__dealloc__(o); --Py_REFCNT(o); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->buf); (*Py_TYPE(o)->tp_free)(o); } static int __pyx_tp_traverse_7pymusic_IndexMap(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_7pymusic_IndexMap *p = (struct __pyx_obj_7pymusic_IndexMap *)o; if (p->buf) { e = (*v)(((PyObject *)p->buf), a); if (e) return e; } return 0; } static int __pyx_tp_clear_7pymusic_IndexMap(PyObject *o) { PyObject* tmp; struct __pyx_obj_7pymusic_IndexMap *p = (struct __pyx_obj_7pymusic_IndexMap *)o; tmp = ((PyObject*)p->buf); p->buf = ((struct __pyx_obj_5music_8pybuffer_Buffer *)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyMethodDef __pyx_methods_7pymusic_IndexMap[] = { {"__reduce_cython__", (PyCFunction)__pyx_pw_7pymusic_8IndexMap_5__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_7pymusic_8IndexMap_7__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_7pymusic_IndexMap = { PyVarObject_HEAD_INIT(0, 0) "pymusic.IndexMap", /*tp_name*/ sizeof(struct __pyx_obj_7pymusic_IndexMap), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7pymusic_IndexMap, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "\n Internal:\n Contains a C++ LinearIndex or PermutationIndex.\n These map between \"local\" index i to \"global\" index j\n LinearIndex: g = l + base, for l < size\n PermutationIndex: g = perm[l], where perm is an array\n ", /*tp_doc*/ __pyx_tp_traverse_7pymusic_IndexMap, /*tp_traverse*/ __pyx_tp_clear_7pymusic_IndexMap, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_7pymusic_IndexMap, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_7pymusic_IndexMap, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif }; static PyObject *__pyx_tp_new_7pymusic_EventHandler(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_7pymusic_EventHandler *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_7pymusic_EventHandler *)o); p->func = Py_None; Py_INCREF(Py_None); if (unlikely(__pyx_pw_7pymusic_12EventHandler_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_7pymusic_EventHandler(PyObject *o) { struct __pyx_obj_7pymusic_EventHandler *p = (struct __pyx_obj_7pymusic_EventHandler *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); ++Py_REFCNT(o); __pyx_pw_7pymusic_12EventHandler_3__dealloc__(o); --Py_REFCNT(o); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->func); (*Py_TYPE(o)->tp_free)(o); } static int __pyx_tp_traverse_7pymusic_EventHandler(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_7pymusic_EventHandler *p = (struct __pyx_obj_7pymusic_EventHandler *)o; if (p->func) { e = (*v)(p->func, a); if (e) return e; } return 0; } static int __pyx_tp_clear_7pymusic_EventHandler(PyObject *o) { PyObject* tmp; struct __pyx_obj_7pymusic_EventHandler *p = (struct __pyx_obj_7pymusic_EventHandler *)o; tmp = ((PyObject*)p->func); p->func = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyMethodDef __pyx_methods_7pymusic_EventHandler[] = { {"__reduce_cython__", (PyCFunction)__pyx_pw_7pymusic_12EventHandler_5__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_7pymusic_12EventHandler_7__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_7pymusic_EventHandler = { PyVarObject_HEAD_INIT(0, 0) "pymusic.EventHandler", /*tp_name*/ sizeof(struct __pyx_obj_7pymusic_EventHandler), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7pymusic_EventHandler, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "\n Internal:\n An EventHandler is the python wrapper around a global\n or local EventHandler object for EventInputPort\n ", /*tp_doc*/ __pyx_tp_traverse_7pymusic_EventHandler, /*tp_traverse*/ __pyx_tp_clear_7pymusic_EventHandler, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_7pymusic_EventHandler, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_7pymusic_EventHandler, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif }; static PyObject *__pyx_tp_new_7pymusic_MessageHandler(PyTypeObject *t, PyObject *a, PyObject *k) { struct __pyx_obj_7pymusic_MessageHandler *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_7pymusic_MessageHandler *)o); p->func = Py_None; Py_INCREF(Py_None); if (unlikely(__pyx_pw_7pymusic_14MessageHandler_1__cinit__(o, a, k) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_7pymusic_MessageHandler(PyObject *o) { struct __pyx_obj_7pymusic_MessageHandler *p = (struct __pyx_obj_7pymusic_MessageHandler *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); ++Py_REFCNT(o); __pyx_pw_7pymusic_14MessageHandler_3__dealloc__(o); --Py_REFCNT(o); PyErr_Restore(etype, eval, etb); } Py_CLEAR(p->func); (*Py_TYPE(o)->tp_free)(o); } static int __pyx_tp_traverse_7pymusic_MessageHandler(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_7pymusic_MessageHandler *p = (struct __pyx_obj_7pymusic_MessageHandler *)o; if (p->func) { e = (*v)(p->func, a); if (e) return e; } return 0; } static int __pyx_tp_clear_7pymusic_MessageHandler(PyObject *o) { PyObject* tmp; struct __pyx_obj_7pymusic_MessageHandler *p = (struct __pyx_obj_7pymusic_MessageHandler *)o; tmp = ((PyObject*)p->func); p->func = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyMethodDef __pyx_methods_7pymusic_MessageHandler[] = { {"__reduce_cython__", (PyCFunction)__pyx_pw_7pymusic_14MessageHandler_5__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_7pymusic_14MessageHandler_7__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static PyTypeObject __pyx_type_7pymusic_MessageHandler = { PyVarObject_HEAD_INIT(0, 0) "pymusic.MessageHandler", /*tp_name*/ sizeof(struct __pyx_obj_7pymusic_MessageHandler), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7pymusic_MessageHandler, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "\n MessageHandler wraps up Message*Port communications between C & python,\n wrapping n particular the C++ MessageHandler object bound with a function.\n It may (or may not) depickle messages\n ", /*tp_doc*/ __pyx_tp_traverse_7pymusic_MessageHandler, /*tp_traverse*/ __pyx_tp_clear_7pymusic_MessageHandler, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_7pymusic_MessageHandler, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_7pymusic_MessageHandler, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif }; static PyObject *__pyx_tp_new_7pymusic__Index(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { struct __pyx_obj_7pymusic__Index *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); } else { o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; p = ((struct __pyx_obj_7pymusic__Index *)o); p->backmap = ((PyObject*)Py_None); Py_INCREF(Py_None); if (unlikely(__pyx_pw_7pymusic_6_Index_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad; return o; bad: Py_DECREF(o); o = 0; return NULL; } static void __pyx_tp_dealloc_7pymusic__Index(PyObject *o) { struct __pyx_obj_7pymusic__Index *p = (struct __pyx_obj_7pymusic__Index *)o; #if CYTHON_USE_TP_FINALIZE if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; } #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->backmap); (*Py_TYPE(o)->tp_free)(o); } static int __pyx_tp_traverse_7pymusic__Index(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_7pymusic__Index *p = (struct __pyx_obj_7pymusic__Index *)o; if (p->backmap) { e = (*v)(p->backmap, a); if (e) return e; } return 0; } static int __pyx_tp_clear_7pymusic__Index(PyObject *o) { PyObject* tmp; struct __pyx_obj_7pymusic__Index *p = (struct __pyx_obj_7pymusic__Index *)o; tmp = ((PyObject*)p->backmap); p->backmap = ((PyObject*)Py_None); Py_INCREF(Py_None); Py_XDECREF(tmp); return 0; } static PyObject *__pyx_getprop_7pymusic_6_Index_GLOBAL(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_7pymusic_6_Index_6GLOBAL_1__get__(o); } static PyObject *__pyx_getprop_7pymusic_6_Index_LOCAL(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_7pymusic_6_Index_5LOCAL_1__get__(o); } static PyObject *__pyx_getprop_7pymusic_6_Index_backmap(PyObject *o, CYTHON_UNUSED void *x) { return __pyx_pw_7pymusic_6_Index_7backmap_1__get__(o); } static PyMethodDef __pyx_methods_7pymusic__Index[] = { {"tostr", (PyCFunction)__pyx_pw_7pymusic_6_Index_3tostr, METH_O, __pyx_doc_7pymusic_6_Index_2tostr}, {"__reduce_cython__", (PyCFunction)__pyx_pw_7pymusic_6_Index_5__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_7pymusic_6_Index_7__setstate_cython__, METH_O, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_7pymusic__Index[] = { {(char *)"GLOBAL", __pyx_getprop_7pymusic_6_Index_GLOBAL, 0, (char *)0, 0}, {(char *)"LOCAL", __pyx_getprop_7pymusic_6_Index_LOCAL, 0, (char *)0, 0}, {(char *)"backmap", __pyx_getprop_7pymusic_6_Index_backmap, 0, (char *)0, 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_type_7pymusic__Index = { PyVarObject_HEAD_INIT(0, 0) "pymusic._Index", /*tp_name*/ sizeof(struct __pyx_obj_7pymusic__Index), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7pymusic__Index, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "\n Internal: the type of the variable Index\n that encapsulates the enum mapping\n GLOBAL and LOCAL are the ints of the C enums\n backmap maps from the enum to a string for output\n purposes\n ", /*tp_doc*/ __pyx_tp_traverse_7pymusic__Index, /*tp_traverse*/ __pyx_tp_clear_7pymusic__Index, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_7pymusic__Index, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_7pymusic__Index, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_7pymusic__Index, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif }; static struct __pyx_obj_7pymusic___pyx_scope_struct____iter__ *__pyx_freelist_7pymusic___pyx_scope_struct____iter__[8]; static int __pyx_freecount_7pymusic___pyx_scope_struct____iter__ = 0; static PyObject *__pyx_tp_new_7pymusic___pyx_scope_struct____iter__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; if (CYTHON_COMPILING_IN_CPYTHON && likely((__pyx_freecount_7pymusic___pyx_scope_struct____iter__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_7pymusic___pyx_scope_struct____iter__)))) { o = (PyObject*)__pyx_freelist_7pymusic___pyx_scope_struct____iter__[--__pyx_freecount_7pymusic___pyx_scope_struct____iter__]; memset(o, 0, sizeof(struct __pyx_obj_7pymusic___pyx_scope_struct____iter__)); (void) PyObject_INIT(o, t); PyObject_GC_Track(o); } else { o = (*t->tp_alloc)(t, 0); if (unlikely(!o)) return 0; } return o; } static void __pyx_tp_dealloc_7pymusic___pyx_scope_struct____iter__(PyObject *o) { struct __pyx_obj_7pymusic___pyx_scope_struct____iter__ *p = (struct __pyx_obj_7pymusic___pyx_scope_struct____iter__ *)o; PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_self); if (CYTHON_COMPILING_IN_CPYTHON && ((__pyx_freecount_7pymusic___pyx_scope_struct____iter__ < 8) & (Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_7pymusic___pyx_scope_struct____iter__)))) { __pyx_freelist_7pymusic___pyx_scope_struct____iter__[__pyx_freecount_7pymusic___pyx_scope_struct____iter__++] = ((struct __pyx_obj_7pymusic___pyx_scope_struct____iter__ *)o); } else { (*Py_TYPE(o)->tp_free)(o); } } static int __pyx_tp_traverse_7pymusic___pyx_scope_struct____iter__(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_7pymusic___pyx_scope_struct____iter__ *p = (struct __pyx_obj_7pymusic___pyx_scope_struct____iter__ *)o; if (p->__pyx_v_self) { e = (*v)(((PyObject *)p->__pyx_v_self), a); if (e) return e; } return 0; } static PyTypeObject __pyx_type_7pymusic___pyx_scope_struct____iter__ = { PyVarObject_HEAD_INIT(0, 0) "pymusic.__pyx_scope_struct____iter__", /*tp_name*/ sizeof(struct __pyx_obj_7pymusic___pyx_scope_struct____iter__), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_7pymusic___pyx_scope_struct____iter__, /*tp_dealloc*/ #if PY_VERSION_HEX < 0x030800b4 0, /*tp_print*/ #endif #if PY_VERSION_HEX >= 0x030800b4 0, /*tp_vectorcall_offset*/ #endif 0, /*tp_getattr*/ 0, /*tp_setattr*/ #if PY_MAJOR_VERSION < 3 0, /*tp_compare*/ #endif #if PY_MAJOR_VERSION >= 3 0, /*tp_as_async*/ #endif 0, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_7pymusic___pyx_scope_struct____iter__, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ 0, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ 0, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_7pymusic___pyx_scope_struct____iter__, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ 0, /*tp_mro*/ 0, /*tp_cache*/ 0, /*tp_subclasses*/ 0, /*tp_weaklist*/ 0, /*tp_del*/ 0, /*tp_version_tag*/ #if PY_VERSION_HEX >= 0x030400a1 0, /*tp_finalize*/ #endif #if PY_VERSION_HEX >= 0x030800b1 0, /*tp_vectorcall*/ #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, /*tp_print*/ #endif }; static PyMethodDef __pyx_methods[] = { {0, 0, 0, 0} }; #if PY_MAJOR_VERSION >= 3 #if CYTHON_PEP489_MULTI_PHASE_INIT static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/ static int __pyx_pymod_exec_pymusic(PyObject* module); /*proto*/ static PyModuleDef_Slot __pyx_moduledef_slots[] = { {Py_mod_create, (void*)__pyx_pymod_create}, {Py_mod_exec, (void*)__pyx_pymod_exec_pymusic}, {0, NULL} }; #endif static struct PyModuleDef __pyx_moduledef = { PyModuleDef_HEAD_INIT, "pymusic", 0, /* m_doc */ #if CYTHON_PEP489_MULTI_PHASE_INIT 0, /* m_size */ #else -1, /* m_size */ #endif __pyx_methods /* m_methods */, #if CYTHON_PEP489_MULTI_PHASE_INIT __pyx_moduledef_slots, /* m_slots */ #else NULL, /* m_reload */ #endif NULL, /* m_traverse */ NULL, /* m_clear */ NULL /* m_free */ }; #endif #ifndef CYTHON_SMALL_CODE #if defined(__clang__) #define CYTHON_SMALL_CODE #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) #define CYTHON_SMALL_CODE __attribute__((cold)) #else #define CYTHON_SMALL_CODE #endif #endif static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_s_All_exceptions_in_pymusic_are_M, __pyx_k_All_exceptions_in_pymusic_are_M, sizeof(__pyx_k_All_exceptions_in_pymusic_are_M), 0, 0, 1, 0}, {&__pyx_n_s_Buffer, __pyx_k_Buffer, sizeof(__pyx_k_Buffer), 0, 0, 1, 1}, {&__pyx_n_s_COMM_NULL, __pyx_k_COMM_NULL, sizeof(__pyx_k_COMM_NULL), 0, 0, 1, 1}, {&__pyx_kp_s_Config_variable_is_not_defined, __pyx_k_Config_variable_is_not_defined, sizeof(__pyx_k_Config_variable_is_not_defined), 0, 0, 1, 0}, {&__pyx_n_s_ContInputPort, __pyx_k_ContInputPort, sizeof(__pyx_k_ContInputPort), 0, 0, 1, 1}, {&__pyx_n_s_ContOutputPort, __pyx_k_ContOutputPort, sizeof(__pyx_k_ContOutputPort), 0, 0, 1, 1}, {&__pyx_n_s_DataMap, __pyx_k_DataMap, sizeof(__pyx_k_DataMap), 0, 0, 1, 1}, {&__pyx_n_s_EventHandler, __pyx_k_EventHandler, sizeof(__pyx_k_EventHandler), 0, 0, 1, 1}, {&__pyx_n_s_EventInputPort, __pyx_k_EventInputPort, sizeof(__pyx_k_EventInputPort), 0, 0, 1, 1}, {&__pyx_n_s_EventOutputPort, __pyx_k_EventOutputPort, sizeof(__pyx_k_EventOutputPort), 0, 0, 1, 1}, {&__pyx_n_s_GLOBAL, __pyx_k_GLOBAL, sizeof(__pyx_k_GLOBAL), 0, 0, 1, 1}, {&__pyx_n_s_HIGHEST_PROTOCOL, __pyx_k_HIGHEST_PROTOCOL, sizeof(__pyx_k_HIGHEST_PROTOCOL), 0, 0, 1, 1}, {&__pyx_n_s_Index, __pyx_k_Index, sizeof(__pyx_k_Index), 0, 0, 1, 1}, {&__pyx_n_s_IndexMap, __pyx_k_IndexMap, sizeof(__pyx_k_IndexMap), 0, 0, 1, 1}, {&__pyx_n_s_Index_2, __pyx_k_Index_2, sizeof(__pyx_k_Index_2), 0, 0, 1, 1}, {&__pyx_n_s_LOCAL, __pyx_k_LOCAL, sizeof(__pyx_k_LOCAL), 0, 0, 1, 1}, {&__pyx_n_s_MPI, __pyx_k_MPI, sizeof(__pyx_k_MPI), 0, 0, 1, 1}, {&__pyx_n_s_MUSICError, __pyx_k_MUSICError, sizeof(__pyx_k_MUSICError), 0, 0, 1, 1}, {&__pyx_n_s_MemoryError, __pyx_k_MemoryError, sizeof(__pyx_k_MemoryError), 0, 0, 1, 1}, {&__pyx_n_s_MessageHandler, __pyx_k_MessageHandler, sizeof(__pyx_k_MessageHandler), 0, 0, 1, 1}, {&__pyx_n_s_MessageInputPort, __pyx_k_MessageInputPort, sizeof(__pyx_k_MessageInputPort), 0, 0, 1, 1}, {&__pyx_n_s_MessageOutputPort, __pyx_k_MessageOutputPort, sizeof(__pyx_k_MessageOutputPort), 0, 0, 1, 1}, {&__pyx_n_s_NoWidth, __pyx_k_NoWidth, sizeof(__pyx_k_NoWidth), 0, 0, 1, 1}, {&__pyx_n_s_NoWidth___init, __pyx_k_NoWidth___init, sizeof(__pyx_k_NoWidth___init), 0, 0, 1, 1}, {&__pyx_kp_s_No_width_defined, __pyx_k_No_width_defined, sizeof(__pyx_k_No_width_defined), 0, 0, 1, 0}, {&__pyx_n_s_Port, __pyx_k_Port, sizeof(__pyx_k_Port), 0, 0, 1, 1}, {&__pyx_n_s_Runtime, __pyx_k_Runtime, sizeof(__pyx_k_Runtime), 0, 0, 1, 1}, {&__pyx_n_s_Runtime___iter, __pyx_k_Runtime___iter, sizeof(__pyx_k_Runtime___iter), 0, 0, 1, 1}, {&__pyx_n_s_Setup, __pyx_k_Setup, sizeof(__pyx_k_Setup), 0, 0, 1, 1}, {&__pyx_kp_s_Thrown_if_Port_width_is_called, __pyx_k_Thrown_if_Port_width_is_called, sizeof(__pyx_k_Thrown_if_Port_width_is_called), 0, 0, 1, 0}, {&__pyx_kp_s_Thrown_if_a_configuration_value, __pyx_k_Thrown_if_a_configuration_value, sizeof(__pyx_k_Thrown_if_a_configuration_value), 0, 0, 1, 0}, {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1}, {&__pyx_n_s_UndefinedConfig, __pyx_k_UndefinedConfig, sizeof(__pyx_k_UndefinedConfig), 0, 0, 1, 1}, {&__pyx_n_s_UndefinedConfig___init, __pyx_k_UndefinedConfig___init, sizeof(__pyx_k_UndefinedConfig___init), 0, 0, 1, 1}, {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1}, {&__pyx_n_s__29, __pyx_k__29, sizeof(__pyx_k__29), 0, 0, 1, 1}, {&__pyx_n_s_accLatency, __pyx_k_accLatency, sizeof(__pyx_k_accLatency), 0, 0, 1, 1}, {&__pyx_n_s_args, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1}, {&__pyx_n_s_argv, __pyx_k_argv, sizeof(__pyx_k_argv), 0, 0, 1, 1}, {&__pyx_kp_s_argv_can_t_be_empty, __pyx_k_argv_can_t_be_empty, sizeof(__pyx_k_argv_can_t_be_empty), 0, 0, 1, 0}, {&__pyx_n_s_array, __pyx_k_array, sizeof(__pyx_k_array), 0, 0, 1, 1}, {&__pyx_n_s_base, __pyx_k_base, sizeof(__pyx_k_base), 0, 0, 1, 1}, {&__pyx_n_s_buf, __pyx_k_buf, sizeof(__pyx_k_buf), 0, 0, 1, 1}, {&__pyx_n_s_cPickle, __pyx_k_cPickle, sizeof(__pyx_k_cPickle), 0, 0, 1, 1}, {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1}, {&__pyx_n_s_close, __pyx_k_close, sizeof(__pyx_k_close), 0, 0, 1, 1}, {&__pyx_kp_s_couldn_t_allocate_argv, __pyx_k_couldn_t_allocate_argv, sizeof(__pyx_k_couldn_t_allocate_argv), 0, 0, 1, 0}, {&__pyx_n_s_data, __pyx_k_data, sizeof(__pyx_k_data), 0, 0, 1, 1}, {&__pyx_n_s_delay, __pyx_k_delay, sizeof(__pyx_k_delay), 0, 0, 1, 1}, {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1}, {&__pyx_n_s_dumps, __pyx_k_dumps, sizeof(__pyx_k_dumps), 0, 0, 1, 1}, {&__pyx_n_s_encode, __pyx_k_encode, sizeof(__pyx_k_encode), 0, 0, 1, 1}, {&__pyx_n_s_format, __pyx_k_format, sizeof(__pyx_k_format), 0, 0, 1, 1}, {&__pyx_n_s_func, __pyx_k_func, sizeof(__pyx_k_func), 0, 0, 1, 1}, {&__pyx_n_s_getcomm, __pyx_k_getcomm, sizeof(__pyx_k_getcomm), 0, 0, 1, 1}, {&__pyx_n_s_getstate, __pyx_k_getstate, sizeof(__pyx_k_getstate), 0, 0, 1, 1}, {&__pyx_n_s_h, __pyx_k_h, sizeof(__pyx_k_h), 0, 0, 1, 1}, {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, {&__pyx_n_s_index, __pyx_k_index, sizeof(__pyx_k_index), 0, 0, 1, 1}, {&__pyx_n_s_index_map, __pyx_k_index_map, sizeof(__pyx_k_index_map), 0, 0, 1, 1}, {&__pyx_n_s_init, __pyx_k_init, sizeof(__pyx_k_init), 0, 0, 1, 1}, {&__pyx_n_s_interpolate, __pyx_k_interpolate, sizeof(__pyx_k_interpolate), 0, 0, 1, 1}, {&__pyx_n_s_iter, __pyx_k_iter, sizeof(__pyx_k_iter), 0, 0, 1, 1}, {&__pyx_n_s_loads, __pyx_k_loads, sizeof(__pyx_k_loads), 0, 0, 1, 1}, {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, {&__pyx_n_s_maxBuffered, __pyx_k_maxBuffered, sizeof(__pyx_k_maxBuffered), 0, 0, 1, 1}, {&__pyx_n_s_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1}, {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1}, {&__pyx_n_s_mpi4py_MPI, __pyx_k_mpi4py_MPI, sizeof(__pyx_k_mpi4py_MPI), 0, 0, 1, 1}, {&__pyx_n_s_msg, __pyx_k_msg, sizeof(__pyx_k_msg), 0, 0, 1, 1}, {&__pyx_n_s_music_pybuffer, __pyx_k_music_pybuffer, sizeof(__pyx_k_music_pybuffer), 0, 0, 1, 1}, {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1}, {&__pyx_kp_s_no_default___reduce___due_to_non, __pyx_k_no_default___reduce___due_to_non, sizeof(__pyx_k_no_default___reduce___due_to_non), 0, 0, 1, 0}, {&__pyx_n_s_null, __pyx_k_null, sizeof(__pyx_k_null), 0, 0, 1, 1}, {&__pyx_n_s_perm, __pyx_k_perm, sizeof(__pyx_k_perm), 0, 0, 1, 1}, {&__pyx_n_s_pickle, __pyx_k_pickle, sizeof(__pyx_k_pickle), 0, 0, 1, 1}, {&__pyx_n_s_pickled, __pyx_k_pickled, sizeof(__pyx_k_pickled), 0, 0, 1, 1}, {&__pyx_n_s_predictRank, __pyx_k_predictRank, sizeof(__pyx_k_predictRank), 0, 0, 1, 1}, {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1}, {&__pyx_n_s_ptr, __pyx_k_ptr, sizeof(__pyx_k_ptr), 0, 0, 1, 1}, {&__pyx_n_s_pymusic, __pyx_k_pymusic, sizeof(__pyx_k_pymusic), 0, 0, 1, 1}, {&__pyx_kp_s_pymusic_pyx, __pyx_k_pymusic_pyx, sizeof(__pyx_k_pymusic_pyx), 0, 0, 1, 0}, {&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable, sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1}, {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1}, {&__pyx_n_s_r, __pyx_k_r, sizeof(__pyx_k_r), 0, 0, 1, 1}, {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1}, {&__pyx_n_s_reduce, __pyx_k_reduce, sizeof(__pyx_k_reduce), 0, 0, 1, 1}, {&__pyx_n_s_reduce_cython, __pyx_k_reduce_cython, sizeof(__pyx_k_reduce_cython), 0, 0, 1, 1}, {&__pyx_n_s_reduce_ex, __pyx_k_reduce_ex, sizeof(__pyx_k_reduce_ex), 0, 0, 1, 1}, {&__pyx_n_s_required, __pyx_k_required, sizeof(__pyx_k_required), 0, 0, 1, 1}, {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1}, {&__pyx_n_s_send, __pyx_k_send, sizeof(__pyx_k_send), 0, 0, 1, 1}, {&__pyx_n_s_setstate, __pyx_k_setstate, sizeof(__pyx_k_setstate), 0, 0, 1, 1}, {&__pyx_n_s_setstate_cython, __pyx_k_setstate_cython, sizeof(__pyx_k_setstate_cython), 0, 0, 1, 1}, {&__pyx_n_s_setup, __pyx_k_setup, sizeof(__pyx_k_setup), 0, 0, 1, 1}, {&__pyx_n_s_six_moves, __pyx_k_six_moves, sizeof(__pyx_k_six_moves), 0, 0, 1, 1}, {&__pyx_n_s_size, __pyx_k_size, sizeof(__pyx_k_size), 0, 0, 1, 1}, {&__pyx_n_s_sys, __pyx_k_sys, sizeof(__pyx_k_sys), 0, 0, 1, 1}, {&__pyx_n_s_t, __pyx_k_t, sizeof(__pyx_k_t), 0, 0, 1, 1}, {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, {&__pyx_n_s_throw, __pyx_k_throw, sizeof(__pyx_k_throw), 0, 0, 1, 1}, {&__pyx_n_s_time, __pyx_k_time, sizeof(__pyx_k_time), 0, 0, 1, 1}, {&__pyx_n_s_var, __pyx_k_var, sizeof(__pyx_k_var), 0, 0, 1, 1}, {&__pyx_n_s_xrange, __pyx_k_xrange, sizeof(__pyx_k_xrange), 0, 0, 1, 1}, {0, 0, 0, 0, 0, 0, 0} }; static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) { __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 69, __pyx_L1_error) __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(1, 2, __pyx_L1_error) #if PY_MAJOR_VERSION >= 3 __pyx_builtin_xrange = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_xrange) __PYX_ERR(0, 381, __pyx_L1_error) #else __pyx_builtin_xrange = __Pyx_GetBuiltinName(__pyx_n_s_xrange); if (!__pyx_builtin_xrange) __PYX_ERR(0, 381, __pyx_L1_error) #endif __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(0, 439, __pyx_L1_error) __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(2, 109, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; } static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple_)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple_); __Pyx_GIVEREF(__pyx_tuple_); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__2); __Pyx_GIVEREF(__pyx_tuple__2); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__3); __Pyx_GIVEREF(__pyx_tuple__3); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__4); __Pyx_GIVEREF(__pyx_tuple__4); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__5); __Pyx_GIVEREF(__pyx_tuple__5); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__6); __Pyx_GIVEREF(__pyx_tuple__6); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__7 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__7); __Pyx_GIVEREF(__pyx_tuple__7); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__8 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__8); __Pyx_GIVEREF(__pyx_tuple__8); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__9); __Pyx_GIVEREF(__pyx_tuple__9); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__10); __Pyx_GIVEREF(__pyx_tuple__10); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__11); __Pyx_GIVEREF(__pyx_tuple__11); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__12); __Pyx_GIVEREF(__pyx_tuple__12); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__13 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__13); __Pyx_GIVEREF(__pyx_tuple__13); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__14 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__14); __Pyx_GIVEREF(__pyx_tuple__14); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__15); __Pyx_GIVEREF(__pyx_tuple__15); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__16 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__16); __Pyx_GIVEREF(__pyx_tuple__16); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__17 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__17); __Pyx_GIVEREF(__pyx_tuple__17); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__18 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__18); __Pyx_GIVEREF(__pyx_tuple__18); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__19 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__19); __Pyx_GIVEREF(__pyx_tuple__19); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__20 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__20); __Pyx_GIVEREF(__pyx_tuple__20); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__21 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__21); __Pyx_GIVEREF(__pyx_tuple__21); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__22 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__22); __Pyx_GIVEREF(__pyx_tuple__22); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__23 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__23); __Pyx_GIVEREF(__pyx_tuple__23); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__24 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__24); __Pyx_GIVEREF(__pyx_tuple__24); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__25 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__25); __Pyx_GIVEREF(__pyx_tuple__25); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__26 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__26); __Pyx_GIVEREF(__pyx_tuple__26); /* "(tree fragment)":2 * def __reduce_cython__(self): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ __pyx_tuple__27 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(1, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__27); __Pyx_GIVEREF(__pyx_tuple__27); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ __pyx_tuple__28 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(1, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__28); __Pyx_GIVEREF(__pyx_tuple__28); /* "pymusic.pyx":23 * have a width defined. * """ * def __init__(self): # <<<<<<<<<<<<<< * MUSICError.__init__(self, "No width defined") * */ __pyx_tuple__30 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__30); __Pyx_GIVEREF(__pyx_tuple__30); __pyx_codeobj__31 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__30, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pymusic_pyx, __pyx_n_s_init, 23, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__31)) __PYX_ERR(0, 23, __pyx_L1_error) /* "pymusic.pyx":32 * that has not been defined within the configuration. * """ * def __init__(self, var): # <<<<<<<<<<<<<< * MUSICError.__init__( * self, */ __pyx_tuple__32 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_var); if (unlikely(!__pyx_tuple__32)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__32); __Pyx_GIVEREF(__pyx_tuple__32); __pyx_codeobj__33 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__32, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pymusic_pyx, __pyx_n_s_init, 32, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__33)) __PYX_ERR(0, 32, __pyx_L1_error) /* "pymusic.pyx":79 * ########################################################### * * def predictRank(list argv=None): # <<<<<<<<<<<<<< * """ * Map into mpidep/predict_rank for config methods. */ __pyx_tuple__34 = PyTuple_Pack(2, __pyx_n_s_argv, __pyx_n_s_r); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__34); __Pyx_GIVEREF(__pyx_tuple__34); __pyx_codeobj__35 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__34, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pymusic_pyx, __pyx_n_s_predictRank, 79, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__35)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) { if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error); return 0; __pyx_L1_error:; return -1; } static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/ static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/ static int __Pyx_modinit_global_init_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0); /*--- Global init code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_variable_export_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0); /*--- Variable export code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_function_export_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0); /*--- Function export code ---*/ if (__Pyx_ExportFunction("EventCallback", (void (*)(void))MUSIC::EventCallback, "bool (PyObject *, double, MUSIC::Index::Type, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) if (__Pyx_ExportFunction("MessageCallback", (void (*)(void))MUSIC::MessageCallback, "bool (PyObject *, double, void *, size_t, bool)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_modinit_type_init_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0); /*--- Type init code ---*/ __pyx_vtabptr_7pymusic_Setup = &__pyx_vtable_7pymusic_Setup; __pyx_vtable_7pymusic_Setup.null = (PyObject *(*)(struct __pyx_obj_7pymusic_Setup *))__pyx_f_7pymusic_5Setup_null; __pyx_vtable_7pymusic_Setup.getcomm = (struct PyMPIIntracommObject *(*)(struct __pyx_obj_7pymusic_Setup *, int __pyx_skip_dispatch))__pyx_f_7pymusic_5Setup_getcomm; if (PyType_Ready(&__pyx_type_7pymusic_Setup) < 0) __PYX_ERR(0, 348, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_7pymusic_Setup.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_7pymusic_Setup.tp_dictoffset && __pyx_type_7pymusic_Setup.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_7pymusic_Setup.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_7pymusic_Setup.tp_dict, __pyx_vtabptr_7pymusic_Setup) < 0) __PYX_ERR(0, 348, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Setup, (PyObject *)&__pyx_type_7pymusic_Setup) < 0) __PYX_ERR(0, 348, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_7pymusic_Setup) < 0) __PYX_ERR(0, 348, __pyx_L1_error) __pyx_ptype_7pymusic_Setup = &__pyx_type_7pymusic_Setup; if (PyType_Ready(&__pyx_type_7pymusic_Runtime) < 0) __PYX_ERR(0, 517, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_7pymusic_Runtime.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_7pymusic_Runtime.tp_dictoffset && __pyx_type_7pymusic_Runtime.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_7pymusic_Runtime.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Runtime, (PyObject *)&__pyx_type_7pymusic_Runtime) < 0) __PYX_ERR(0, 517, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_7pymusic_Runtime) < 0) __PYX_ERR(0, 517, __pyx_L1_error) __pyx_ptype_7pymusic_Runtime = &__pyx_type_7pymusic_Runtime; __pyx_vtabptr_7pymusic_Port = &__pyx_vtable_7pymusic_Port; __pyx_vtable_7pymusic_Port.null = (PyObject *(*)(struct __pyx_obj_7pymusic_Port *, int __pyx_skip_dispatch))__pyx_f_7pymusic_4Port_null; if (PyType_Ready(&__pyx_type_7pymusic_Port) < 0) __PYX_ERR(0, 90, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_7pymusic_Port.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_7pymusic_Port.tp_dictoffset && __pyx_type_7pymusic_Port.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_7pymusic_Port.tp_getattro = __Pyx_PyObject_GenericGetAttr; } #if CYTHON_COMPILING_IN_CPYTHON { PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_7pymusic_Port, "__hash__"); if (unlikely(!wrapper)) __PYX_ERR(0, 90, __pyx_L1_error) if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) { __pyx_wrapperbase_7pymusic_4Port_2__hash__ = *((PyWrapperDescrObject *)wrapper)->d_base; __pyx_wrapperbase_7pymusic_4Port_2__hash__.doc = __pyx_doc_7pymusic_4Port_2__hash__; ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_7pymusic_4Port_2__hash__; } } #endif if (__Pyx_SetVtable(__pyx_type_7pymusic_Port.tp_dict, __pyx_vtabptr_7pymusic_Port) < 0) __PYX_ERR(0, 90, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Port, (PyObject *)&__pyx_type_7pymusic_Port) < 0) __PYX_ERR(0, 90, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_7pymusic_Port) < 0) __PYX_ERR(0, 90, __pyx_L1_error) __pyx_ptype_7pymusic_Port = &__pyx_type_7pymusic_Port; __pyx_vtabptr_7pymusic_ContInputPort = &__pyx_vtable_7pymusic_ContInputPort; __pyx_vtable_7pymusic_ContInputPort.__pyx_base = *__pyx_vtabptr_7pymusic_Port; __pyx_type_7pymusic_ContInputPort.tp_base = __pyx_ptype_7pymusic_Port; if (PyType_Ready(&__pyx_type_7pymusic_ContInputPort) < 0) __PYX_ERR(0, 138, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_7pymusic_ContInputPort.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_7pymusic_ContInputPort.tp_dictoffset && __pyx_type_7pymusic_ContInputPort.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_7pymusic_ContInputPort.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_7pymusic_ContInputPort.tp_dict, __pyx_vtabptr_7pymusic_ContInputPort) < 0) __PYX_ERR(0, 138, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ContInputPort, (PyObject *)&__pyx_type_7pymusic_ContInputPort) < 0) __PYX_ERR(0, 138, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_7pymusic_ContInputPort) < 0) __PYX_ERR(0, 138, __pyx_L1_error) __pyx_ptype_7pymusic_ContInputPort = &__pyx_type_7pymusic_ContInputPort; __pyx_vtabptr_7pymusic_ContOutputPort = &__pyx_vtable_7pymusic_ContOutputPort; __pyx_vtable_7pymusic_ContOutputPort.__pyx_base = *__pyx_vtabptr_7pymusic_Port; __pyx_type_7pymusic_ContOutputPort.tp_base = __pyx_ptype_7pymusic_Port; if (PyType_Ready(&__pyx_type_7pymusic_ContOutputPort) < 0) __PYX_ERR(0, 178, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_7pymusic_ContOutputPort.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_7pymusic_ContOutputPort.tp_dictoffset && __pyx_type_7pymusic_ContOutputPort.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_7pymusic_ContOutputPort.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_7pymusic_ContOutputPort.tp_dict, __pyx_vtabptr_7pymusic_ContOutputPort) < 0) __PYX_ERR(0, 178, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ContOutputPort, (PyObject *)&__pyx_type_7pymusic_ContOutputPort) < 0) __PYX_ERR(0, 178, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_7pymusic_ContOutputPort) < 0) __PYX_ERR(0, 178, __pyx_L1_error) __pyx_ptype_7pymusic_ContOutputPort = &__pyx_type_7pymusic_ContOutputPort; __pyx_vtabptr_7pymusic_EventInputPort = &__pyx_vtable_7pymusic_EventInputPort; __pyx_vtable_7pymusic_EventInputPort.__pyx_base = *__pyx_vtabptr_7pymusic_Port; __pyx_vtable_7pymusic_EventInputPort.__pyx_base.null = (PyObject *(*)(struct __pyx_obj_7pymusic_Port *, int __pyx_skip_dispatch))__pyx_f_7pymusic_14EventInputPort_null; __pyx_type_7pymusic_EventInputPort.tp_base = __pyx_ptype_7pymusic_Port; if (PyType_Ready(&__pyx_type_7pymusic_EventInputPort) < 0) __PYX_ERR(0, 207, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_7pymusic_EventInputPort.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_7pymusic_EventInputPort.tp_dictoffset && __pyx_type_7pymusic_EventInputPort.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_7pymusic_EventInputPort.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_7pymusic_EventInputPort.tp_dict, __pyx_vtabptr_7pymusic_EventInputPort) < 0) __PYX_ERR(0, 207, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_EventInputPort, (PyObject *)&__pyx_type_7pymusic_EventInputPort) < 0) __PYX_ERR(0, 207, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_7pymusic_EventInputPort) < 0) __PYX_ERR(0, 207, __pyx_L1_error) __pyx_ptype_7pymusic_EventInputPort = &__pyx_type_7pymusic_EventInputPort; __pyx_vtabptr_7pymusic_EventOutputPort = &__pyx_vtable_7pymusic_EventOutputPort; __pyx_vtable_7pymusic_EventOutputPort.__pyx_base = *__pyx_vtabptr_7pymusic_Port; __pyx_type_7pymusic_EventOutputPort.tp_base = __pyx_ptype_7pymusic_Port; if (PyType_Ready(&__pyx_type_7pymusic_EventOutputPort) < 0) __PYX_ERR(0, 252, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_7pymusic_EventOutputPort.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_7pymusic_EventOutputPort.tp_dictoffset && __pyx_type_7pymusic_EventOutputPort.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_7pymusic_EventOutputPort.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_7pymusic_EventOutputPort.tp_dict, __pyx_vtabptr_7pymusic_EventOutputPort) < 0) __PYX_ERR(0, 252, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_EventOutputPort, (PyObject *)&__pyx_type_7pymusic_EventOutputPort) < 0) __PYX_ERR(0, 252, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_7pymusic_EventOutputPort) < 0) __PYX_ERR(0, 252, __pyx_L1_error) __pyx_ptype_7pymusic_EventOutputPort = &__pyx_type_7pymusic_EventOutputPort; __pyx_vtabptr_7pymusic_MessageInputPort = &__pyx_vtable_7pymusic_MessageInputPort; __pyx_vtable_7pymusic_MessageInputPort.__pyx_base = *__pyx_vtabptr_7pymusic_Port; __pyx_vtable_7pymusic_MessageInputPort.__pyx_base.null = (PyObject *(*)(struct __pyx_obj_7pymusic_Port *, int __pyx_skip_dispatch))__pyx_f_7pymusic_16MessageInputPort_null; __pyx_type_7pymusic_MessageInputPort.tp_base = __pyx_ptype_7pymusic_Port; if (PyType_Ready(&__pyx_type_7pymusic_MessageInputPort) < 0) __PYX_ERR(0, 277, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_7pymusic_MessageInputPort.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_7pymusic_MessageInputPort.tp_dictoffset && __pyx_type_7pymusic_MessageInputPort.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_7pymusic_MessageInputPort.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_7pymusic_MessageInputPort.tp_dict, __pyx_vtabptr_7pymusic_MessageInputPort) < 0) __PYX_ERR(0, 277, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_MessageInputPort, (PyObject *)&__pyx_type_7pymusic_MessageInputPort) < 0) __PYX_ERR(0, 277, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_7pymusic_MessageInputPort) < 0) __PYX_ERR(0, 277, __pyx_L1_error) __pyx_ptype_7pymusic_MessageInputPort = &__pyx_type_7pymusic_MessageInputPort; __pyx_vtabptr_7pymusic_MessageOutputPort = &__pyx_vtable_7pymusic_MessageOutputPort; __pyx_vtable_7pymusic_MessageOutputPort.__pyx_base = *__pyx_vtabptr_7pymusic_Port; __pyx_type_7pymusic_MessageOutputPort.tp_base = __pyx_ptype_7pymusic_Port; if (PyType_Ready(&__pyx_type_7pymusic_MessageOutputPort) < 0) __PYX_ERR(0, 313, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_7pymusic_MessageOutputPort.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_7pymusic_MessageOutputPort.tp_dictoffset && __pyx_type_7pymusic_MessageOutputPort.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_7pymusic_MessageOutputPort.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (__Pyx_SetVtable(__pyx_type_7pymusic_MessageOutputPort.tp_dict, __pyx_vtabptr_7pymusic_MessageOutputPort) < 0) __PYX_ERR(0, 313, __pyx_L1_error) if (PyObject_SetAttr(__pyx_m, __pyx_n_s_MessageOutputPort, (PyObject *)&__pyx_type_7pymusic_MessageOutputPort) < 0) __PYX_ERR(0, 313, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_7pymusic_MessageOutputPort) < 0) __PYX_ERR(0, 313, __pyx_L1_error) __pyx_ptype_7pymusic_MessageOutputPort = &__pyx_type_7pymusic_MessageOutputPort; if (PyType_Ready(&__pyx_type_7pymusic_DataMap) < 0) __PYX_ERR(0, 585, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_7pymusic_DataMap.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_7pymusic_DataMap.tp_dictoffset && __pyx_type_7pymusic_DataMap.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_7pymusic_DataMap.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_DataMap, (PyObject *)&__pyx_type_7pymusic_DataMap) < 0) __PYX_ERR(0, 585, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_7pymusic_DataMap) < 0) __PYX_ERR(0, 585, __pyx_L1_error) __pyx_ptype_7pymusic_DataMap = &__pyx_type_7pymusic_DataMap; if (PyType_Ready(&__pyx_type_7pymusic_IndexMap) < 0) __PYX_ERR(0, 551, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_7pymusic_IndexMap.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_7pymusic_IndexMap.tp_dictoffset && __pyx_type_7pymusic_IndexMap.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_7pymusic_IndexMap.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_IndexMap, (PyObject *)&__pyx_type_7pymusic_IndexMap) < 0) __PYX_ERR(0, 551, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_7pymusic_IndexMap) < 0) __PYX_ERR(0, 551, __pyx_L1_error) __pyx_ptype_7pymusic_IndexMap = &__pyx_type_7pymusic_IndexMap; if (PyType_Ready(&__pyx_type_7pymusic_EventHandler) < 0) __PYX_ERR(0, 610, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_7pymusic_EventHandler.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_7pymusic_EventHandler.tp_dictoffset && __pyx_type_7pymusic_EventHandler.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_7pymusic_EventHandler.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_EventHandler, (PyObject *)&__pyx_type_7pymusic_EventHandler) < 0) __PYX_ERR(0, 610, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_7pymusic_EventHandler) < 0) __PYX_ERR(0, 610, __pyx_L1_error) __pyx_ptype_7pymusic_EventHandler = &__pyx_type_7pymusic_EventHandler; if (PyType_Ready(&__pyx_type_7pymusic_MessageHandler) < 0) __PYX_ERR(0, 679, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_7pymusic_MessageHandler.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_7pymusic_MessageHandler.tp_dictoffset && __pyx_type_7pymusic_MessageHandler.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_7pymusic_MessageHandler.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_MessageHandler, (PyObject *)&__pyx_type_7pymusic_MessageHandler) < 0) __PYX_ERR(0, 679, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_7pymusic_MessageHandler) < 0) __PYX_ERR(0, 679, __pyx_L1_error) __pyx_ptype_7pymusic_MessageHandler = &__pyx_type_7pymusic_MessageHandler; if (PyType_Ready(&__pyx_type_7pymusic__Index) < 0) __PYX_ERR(0, 636, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_7pymusic__Index.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_7pymusic__Index.tp_dictoffset && __pyx_type_7pymusic__Index.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_7pymusic__Index.tp_getattro = __Pyx_PyObject_GenericGetAttr; } if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Index, (PyObject *)&__pyx_type_7pymusic__Index) < 0) __PYX_ERR(0, 636, __pyx_L1_error) if (__Pyx_setup_reduce((PyObject*)&__pyx_type_7pymusic__Index) < 0) __PYX_ERR(0, 636, __pyx_L1_error) __pyx_ptype_7pymusic__Index = &__pyx_type_7pymusic__Index; if (PyType_Ready(&__pyx_type_7pymusic___pyx_scope_struct____iter__) < 0) __PYX_ERR(0, 538, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_7pymusic___pyx_scope_struct____iter__.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_7pymusic___pyx_scope_struct____iter__.tp_dictoffset && __pyx_type_7pymusic___pyx_scope_struct____iter__.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_7pymusic___pyx_scope_struct____iter__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; } __pyx_ptype_7pymusic___pyx_scope_struct____iter__ = &__pyx_type_7pymusic___pyx_scope_struct____iter__; __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_modinit_type_import_code(void) { __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0); /*--- Type import code ---*/ __pyx_t_1 = PyImport_ImportModule("mpi4py.MPI"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 28, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_6mpi4py_3MPI_Status = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Status", sizeof(struct PyMPIStatusObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Status) __PYX_ERR(3, 28, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Datatype = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Datatype", sizeof(struct PyMPIDatatypeObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Datatype) __PYX_ERR(3, 35, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Request = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Request", sizeof(struct PyMPIRequestObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Request) __PYX_ERR(3, 42, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Prequest = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Prequest", sizeof(struct PyMPIPrequestObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Prequest) __PYX_ERR(3, 50, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Grequest = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Grequest", sizeof(struct PyMPIGrequestObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Grequest) __PYX_ERR(3, 56, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Message = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Message", sizeof(struct PyMPIMessageObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Message) __PYX_ERR(3, 62, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Op = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Op", sizeof(struct PyMPIOpObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Op) __PYX_ERR(3, 70, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Group = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Group", sizeof(struct PyMPIGroupObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Group) __PYX_ERR(3, 79, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Info = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Info", sizeof(struct PyMPIInfoObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Info) __PYX_ERR(3, 86, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Errhandler = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Errhandler", sizeof(struct PyMPIErrhandlerObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Errhandler) __PYX_ERR(3, 93, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Comm = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Comm", sizeof(struct PyMPICommObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Comm) __PYX_ERR(3, 100, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Intracomm = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Intracomm", sizeof(struct PyMPIIntracommObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Intracomm) __PYX_ERR(3, 107, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Topocomm = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Topocomm", sizeof(struct PyMPITopocommObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Topocomm) __PYX_ERR(3, 113, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Cartcomm = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Cartcomm", sizeof(struct PyMPICartcommObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Cartcomm) __PYX_ERR(3, 119, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Graphcomm = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Graphcomm", sizeof(struct PyMPIGraphcommObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Graphcomm) __PYX_ERR(3, 125, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Distgraphcomm = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Distgraphcomm", sizeof(struct PyMPIDistgraphcommObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Distgraphcomm) __PYX_ERR(3, 131, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Intercomm = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Intercomm", sizeof(struct PyMPIIntercommObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Intercomm) __PYX_ERR(3, 137, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_Win = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "Win", sizeof(struct PyMPIWinObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_Win) __PYX_ERR(3, 143, __pyx_L1_error) __pyx_ptype_6mpi4py_3MPI_File = __Pyx_ImportType(__pyx_t_1, "mpi4py.MPI", "File", sizeof(struct PyMPIFileObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_6mpi4py_3MPI_File) __PYX_ERR(3, 151, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 9, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type", #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000 sizeof(PyTypeObject), #else sizeof(PyHeapTypeObject), #endif __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(4, 9, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_7cpython_4bool_bool = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "bool", sizeof(PyBoolObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_7cpython_4bool_bool) __PYX_ERR(5, 8, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 15, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_7cpython_7complex_complex = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "complex", sizeof(PyComplexObject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_7cpython_7complex_complex) __PYX_ERR(6, 15, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyImport_ImportModule("music.pybuffer"); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 49, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_5music_8pybuffer_Buffer = __Pyx_ImportType(__pyx_t_1, "music.pybuffer", "Buffer", sizeof(struct __pyx_obj_5music_8pybuffer_Buffer), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_5music_8pybuffer_Buffer) __PYX_ERR(7, 49, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = PyImport_ImportModule("array"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 58, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_ptype_7cpython_5array_array = __Pyx_ImportType(__pyx_t_1, "array", "array", sizeof(arrayobject), __Pyx_ImportType_CheckSize_Warn); if (!__pyx_ptype_7cpython_5array_array) __PYX_ERR(2, 58, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_RefNannyFinishContext(); return -1; } static int __Pyx_modinit_variable_import_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0); /*--- Variable import code ---*/ __Pyx_RefNannyFinishContext(); return 0; } static int __Pyx_modinit_function_import_code(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0); /*--- Function import code ---*/ __Pyx_RefNannyFinishContext(); return 0; } #if PY_MAJOR_VERSION < 3 #ifdef CYTHON_NO_PYINIT_EXPORT #define __Pyx_PyMODINIT_FUNC void #else #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC #endif #else #ifdef CYTHON_NO_PYINIT_EXPORT #define __Pyx_PyMODINIT_FUNC PyObject * #else #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC #endif #endif #if PY_MAJOR_VERSION < 3 __Pyx_PyMODINIT_FUNC initpymusic(void) CYTHON_SMALL_CODE; /*proto*/ __Pyx_PyMODINIT_FUNC initpymusic(void) #else __Pyx_PyMODINIT_FUNC PyInit_pymusic(void) CYTHON_SMALL_CODE; /*proto*/ __Pyx_PyMODINIT_FUNC PyInit_pymusic(void) #if CYTHON_PEP489_MULTI_PHASE_INIT { return PyModuleDef_Init(&__pyx_moduledef); } static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) { #if PY_VERSION_HEX >= 0x030700A1 static PY_INT64_T main_interpreter_id = -1; PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp); if (main_interpreter_id == -1) { main_interpreter_id = current_id; return (unlikely(current_id == -1)) ? -1 : 0; } else if (unlikely(main_interpreter_id != current_id)) #else static PyInterpreterState *main_interpreter = NULL; PyInterpreterState *current_interpreter = PyThreadState_Get()->interp; if (!main_interpreter) { main_interpreter = current_interpreter; } else if (unlikely(main_interpreter != current_interpreter)) #endif { PyErr_SetString( PyExc_ImportError, "Interpreter change detected - this module can only be loaded into one interpreter per process."); return -1; } return 0; } static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none) { PyObject *value = PyObject_GetAttrString(spec, from_name); int result = 0; if (likely(value)) { if (allow_none || value != Py_None) { result = PyDict_SetItemString(moddict, to_name, value); } Py_DECREF(value); } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Clear(); } else { result = -1; } return result; } static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) { PyObject *module = NULL, *moddict, *modname; if (__Pyx_check_single_interpreter()) return NULL; if (__pyx_m) return __Pyx_NewRef(__pyx_m); modname = PyObject_GetAttrString(spec, "name"); if (unlikely(!modname)) goto bad; module = PyModule_NewObject(modname); Py_DECREF(modname); if (unlikely(!module)) goto bad; moddict = PyModule_GetDict(module); if (unlikely(!moddict)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad; if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad; return module; bad: Py_XDECREF(module); return NULL; } static CYTHON_SMALL_CODE int __pyx_pymod_exec_pymusic(PyObject *__pyx_pyinit_module) #endif #endif { PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_4 = NULL; __Pyx_RefNannyDeclarations #if CYTHON_PEP489_MULTI_PHASE_INIT if (__pyx_m) { if (__pyx_m == __pyx_pyinit_module) return 0; PyErr_SetString(PyExc_RuntimeError, "Module 'pymusic' has already been imported. Re-initialisation is not supported."); return -1; } #elif PY_MAJOR_VERSION >= 3 if (__pyx_m) return __Pyx_NewRef(__pyx_m); #endif #if CYTHON_REFNANNY __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); if (!__Pyx_RefNanny) { PyErr_Clear(); __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); if (!__Pyx_RefNanny) Py_FatalError("failed to import 'refnanny' module"); } #endif __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit_pymusic(void)", 0); if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pxy_PyFrame_Initialize_Offsets __Pxy_PyFrame_Initialize_Offsets(); #endif __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error) #ifdef __Pyx_CyFunction_USED if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_FusedFunction_USED if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Coroutine_USED if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_Generator_USED if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_AsyncGen_USED if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif #ifdef __Pyx_StopAsyncIteration_USED if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /*--- Library function declarations ---*/ /*--- Threads initialization code ---*/ #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS #ifdef WITH_THREAD /* Python build with threading support? */ PyEval_InitThreads(); #endif #endif /*--- Module creation code ---*/ #if CYTHON_PEP489_MULTI_PHASE_INIT __pyx_m = __pyx_pyinit_module; Py_INCREF(__pyx_m); #else #if PY_MAJOR_VERSION < 3 __pyx_m = Py_InitModule4("pymusic", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); #else __pyx_m = PyModule_Create(&__pyx_moduledef); #endif if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error) #endif __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_d); __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_b); __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error) Py_INCREF(__pyx_cython_runtime); if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error); /*--- Initialize various global constants etc. ---*/ if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif if (__pyx_module_is_main_pymusic) { if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error) } #if PY_MAJOR_VERSION >= 3 { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error) if (!PyDict_GetItemString(modules, "pymusic")) { if (unlikely(PyDict_SetItemString(modules, "pymusic", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error) } } #endif /*--- Builtin init code ---*/ if (__Pyx_InitCachedBuiltins() < 0) goto __pyx_L1_error; /*--- Constants init code ---*/ if (__Pyx_InitCachedConstants() < 0) goto __pyx_L1_error; /*--- Global type/function init code ---*/ (void)__Pyx_modinit_global_init_code(); (void)__Pyx_modinit_variable_export_code(); if (unlikely(__Pyx_modinit_function_export_code() != 0)) goto __pyx_L1_error; if (unlikely(__Pyx_modinit_type_init_code() != 0)) goto __pyx_L1_error; if (unlikely(__Pyx_modinit_type_import_code() != 0)) goto __pyx_L1_error; (void)__Pyx_modinit_variable_import_code(); (void)__Pyx_modinit_function_import_code(); /*--- Execution code ---*/ #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error) #endif /* "pymusic.pyx":7 * from libc.stdlib cimport malloc, free * * import mpi4py.MPI as MPI # <<<<<<<<<<<<<< * from six.moves import cPickle as pickle * */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s__29); __Pyx_GIVEREF(__pyx_n_s__29); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s__29); __pyx_t_2 = __Pyx_Import(__pyx_n_s_mpi4py_MPI, __pyx_t_1, -1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (PyDict_SetItem(__pyx_d, __pyx_n_s_MPI, __pyx_t_2) < 0) __PYX_ERR(0, 7, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "pymusic.pyx":8 * * import mpi4py.MPI as MPI * from six.moves import cPickle as pickle # <<<<<<<<<<<<<< * * ########################################################### */ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_cPickle); __Pyx_GIVEREF(__pyx_n_s_cPickle); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_cPickle); __pyx_t_1 = __Pyx_Import(__pyx_n_s_six_moves, __pyx_t_2, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_cPickle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_pickle, __pyx_t_2) < 0) __PYX_ERR(0, 8, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":12 * ########################################################### * * class MUSICError(Exception): # <<<<<<<<<<<<<< * """ * All exceptions in pymusic are MUSICError's */ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); __Pyx_GIVEREF(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_MUSICError, __pyx_n_s_MUSICError, (PyObject *) NULL, __pyx_n_s_pymusic, __pyx_kp_s_All_exceptions_in_pymusic_are_M); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_MUSICError, __pyx_t_1, __pyx_t_3, NULL, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_MUSICError, __pyx_t_4) < 0) __PYX_ERR(0, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":18 * pass * * class NoWidth(MUSICError): # <<<<<<<<<<<<<< * """ * Thrown if Port.width() is called, and port doesn't */ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MUSICError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_NoWidth, __pyx_n_s_NoWidth, (PyObject *) NULL, __pyx_n_s_pymusic, __pyx_kp_s_Thrown_if_Port_width_is_called); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); /* "pymusic.pyx":23 * have a width defined. * """ * def __init__(self): # <<<<<<<<<<<<<< * MUSICError.__init__(self, "No width defined") * */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7pymusic_7NoWidth_1__init__, 0, __pyx_n_s_NoWidth___init, NULL, __pyx_n_s_pymusic, __pyx_d, ((PyObject *)__pyx_codeobj__31)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) __PYX_ERR(0, 23, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "pymusic.pyx":18 * pass * * class NoWidth(MUSICError): # <<<<<<<<<<<<<< * """ * Thrown if Port.width() is called, and port doesn't */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_NoWidth, __pyx_t_2, __pyx_t_3, NULL, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_NoWidth, __pyx_t_4) < 0) __PYX_ERR(0, 18, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "pymusic.pyx":26 * MUSICError.__init__(self, "No width defined") * * class UndefinedConfig(MUSICError): # <<<<<<<<<<<<<< * """ * Thrown if a configuration value is requested */ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_MUSICError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_UndefinedConfig, __pyx_n_s_UndefinedConfig, (PyObject *) NULL, __pyx_n_s_pymusic, __pyx_kp_s_Thrown_if_a_configuration_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); /* "pymusic.pyx":32 * that has not been defined within the configuration. * """ * def __init__(self, var): # <<<<<<<<<<<<<< * MUSICError.__init__( * self, */ __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7pymusic_15UndefinedConfig_1__init__, 0, __pyx_n_s_UndefinedConfig___init, NULL, __pyx_n_s_pymusic, __pyx_d, ((PyObject *)__pyx_codeobj__33)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) __PYX_ERR(0, 32, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; /* "pymusic.pyx":26 * MUSICError.__init__(self, "No width defined") * * class UndefinedConfig(MUSICError): # <<<<<<<<<<<<<< * """ * Thrown if a configuration value is requested */ __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_UndefinedConfig, __pyx_t_1, __pyx_t_3, NULL, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (PyDict_SetItem(__pyx_d, __pyx_n_s_UndefinedConfig, __pyx_t_4) < 0) __PYX_ERR(0, 26, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":79 * ########################################################### * * def predictRank(list argv=None): # <<<<<<<<<<<<<< * """ * Map into mpidep/predict_rank for config methods. */ __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_7pymusic_1predictRank, NULL, __pyx_n_s_pymusic); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_predictRank, __pyx_t_1) < 0) __PYX_ERR(0, 79, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":347 * ########################################################### * * import sys # <<<<<<<<<<<<<< * cdef class Setup(object): * """ */ __pyx_t_1 = __Pyx_Import(__pyx_n_s_sys, 0, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 347, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_sys, __pyx_t_1) < 0) __PYX_ERR(0, 347, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":546 * ########################################################### * * from music.pybuffer import Buffer # <<<<<<<<<<<<<< * * from cpython cimport array */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_n_s_Buffer); __Pyx_GIVEREF(__pyx_n_s_Buffer); PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_Buffer); __pyx_t_2 = __Pyx_Import(__pyx_n_s_music_pybuffer, __pyx_t_1, -1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 546, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "pymusic.pyx":549 * * from cpython cimport array * from array import array # <<<<<<<<<<<<<< * * cdef class IndexMap: */ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 549, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(__pyx_n_s_array); __Pyx_GIVEREF(__pyx_n_s_array); PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_array); __pyx_t_1 = __Pyx_Import(__pyx_n_s_array, __pyx_t_2, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 549, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 549, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_array, __pyx_t_2) < 0) __PYX_ERR(0, 549, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":662 * * # And here is the singleton def * Index = _Index() # <<<<<<<<<<<<<< * * cdef cbool EventCallback(PyObject* func, */ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_7pymusic__Index)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 662, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_Index_2, __pyx_t_1) < 0) __PYX_ERR(0, 662, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "pymusic.pyx":726 * # so that it can be thrown * # * pythonError = False # <<<<<<<<<<<<<< * etype = NULL * evalue = NULL */ MUSIC::pythonError = 0; /* "pymusic.pyx":727 * # * pythonError = False * etype = NULL # <<<<<<<<<<<<<< * evalue = NULL * etraceback = NULL */ MUSIC::etype = NULL; /* "pymusic.pyx":728 * pythonError = False * etype = NULL * evalue = NULL # <<<<<<<<<<<<<< * etraceback = NULL */ MUSIC::evalue = NULL; /* "pymusic.pyx":729 * etype = NULL * evalue = NULL * etraceback = NULL # <<<<<<<<<<<<<< */ MUSIC::etraceback = NULL; /* "pymusic.pyx":1 * # # <<<<<<<<<<<<<< * # distutils: language = c++ * # cython: c_string_encoding = default */ __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "string.to_py":55 * * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string") * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size()) * */ /*--- Wrapped vars code ---*/ goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); if (__pyx_m) { if (__pyx_d) { __Pyx_AddTraceback("init pymusic", __pyx_clineno, __pyx_lineno, __pyx_filename); } Py_CLEAR(__pyx_m); } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_ImportError, "init pymusic"); } __pyx_L0:; __Pyx_RefNannyFinishContext(); #if CYTHON_PEP489_MULTI_PHASE_INIT return (__pyx_m != NULL) ? 0 : -1; #elif PY_MAJOR_VERSION >= 3 return __pyx_m; #else return; #endif } /* --- Runtime support code --- */ /* Refnanny */ #if CYTHON_REFNANNY static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { PyObject *m = NULL, *p = NULL; void *r = NULL; m = PyImport_ImportModule(modname); if (!m) goto end; p = PyObject_GetAttrString(m, "RefNannyAPI"); if (!p) goto end; r = PyLong_AsVoidPtr(p); end: Py_XDECREF(p); Py_XDECREF(m); return (__Pyx_RefNannyAPIStruct *)r; } #endif /* PyObjectGetAttrStr */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_getattro)) return tp->tp_getattro(obj, attr_name); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_getattr)) return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); #endif return PyObject_GetAttr(obj, attr_name); } #endif /* GetBuiltinName */ static PyObject *__Pyx_GetBuiltinName(PyObject *name) { PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name); if (unlikely(!result)) { PyErr_Format(PyExc_NameError, #if PY_MAJOR_VERSION >= 3 "name '%U' is not defined", name); #else "name '%.200s' is not defined", PyString_AS_STRING(name)); #endif } return result; } /* PyDictVersioning */ #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) { PyObject *dict = Py_TYPE(obj)->tp_dict; return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0; } static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) { PyObject **dictptr = NULL; Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset; if (offset) { #if CYTHON_COMPILING_IN_CPYTHON dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj); #else dictptr = _PyObject_GetDictPtr(obj); #endif } return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0; } static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) { PyObject *dict = Py_TYPE(obj)->tp_dict; if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict))) return 0; return obj_dict_version == __Pyx_get_object_dict_version(obj); } #endif /* GetModuleGlobalName */ #if CYTHON_USE_DICT_VERSIONS static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value) #else static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name) #endif { PyObject *result; #if !CYTHON_AVOID_BORROWED_REFS #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash); __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) if (likely(result)) { return __Pyx_NewRef(result); } else if (unlikely(PyErr_Occurred())) { return NULL; } #else result = PyDict_GetItem(__pyx_d, name); __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) if (likely(result)) { return __Pyx_NewRef(result); } #endif #else result = PyObject_GetItem(__pyx_d, name); __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version) if (likely(result)) { return __Pyx_NewRef(result); } PyErr_Clear(); #endif return __Pyx_GetBuiltinName(name); } /* PyFunctionFastCall */ #if CYTHON_FAST_PYCALL static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na, PyObject *globals) { PyFrameObject *f; PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject **fastlocals; Py_ssize_t i; PyObject *result; assert(globals != NULL); /* XXX Perhaps we should create a specialized PyFrame_New() that doesn't take locals, but does take builtins without sanity checking them. */ assert(tstate != NULL); f = PyFrame_New(tstate, co, globals, NULL); if (f == NULL) { return NULL; } fastlocals = __Pyx_PyFrame_GetLocalsplus(f); for (i = 0; i < na; i++) { Py_INCREF(*args); fastlocals[i] = *args++; } result = PyEval_EvalFrameEx(f,0); ++tstate->recursion_depth; Py_DECREF(f); --tstate->recursion_depth; return result; } #if 1 || PY_VERSION_HEX < 0x030600B1 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) { PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func); PyObject *globals = PyFunction_GET_GLOBALS(func); PyObject *argdefs = PyFunction_GET_DEFAULTS(func); PyObject *closure; #if PY_MAJOR_VERSION >= 3 PyObject *kwdefs; #endif PyObject *kwtuple, **k; PyObject **d; Py_ssize_t nd; Py_ssize_t nk; PyObject *result; assert(kwargs == NULL || PyDict_Check(kwargs)); nk = kwargs ? PyDict_Size(kwargs) : 0; if (Py_EnterRecursiveCall((char*)" while calling a Python object")) { return NULL; } if ( #if PY_MAJOR_VERSION >= 3 co->co_kwonlyargcount == 0 && #endif likely(kwargs == NULL || nk == 0) && co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) { if (argdefs == NULL && co->co_argcount == nargs) { result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals); goto done; } else if (nargs == 0 && argdefs != NULL && co->co_argcount == Py_SIZE(argdefs)) { /* function called with no arguments, but all parameters have a default value: use default values as arguments .*/ args = &PyTuple_GET_ITEM(argdefs, 0); result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals); goto done; } } if (kwargs != NULL) { Py_ssize_t pos, i; kwtuple = PyTuple_New(2 * nk); if (kwtuple == NULL) { result = NULL; goto done; } k = &PyTuple_GET_ITEM(kwtuple, 0); pos = i = 0; while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) { Py_INCREF(k[i]); Py_INCREF(k[i+1]); i += 2; } nk = i / 2; } else { kwtuple = NULL; k = NULL; } closure = PyFunction_GET_CLOSURE(func); #if PY_MAJOR_VERSION >= 3 kwdefs = PyFunction_GET_KW_DEFAULTS(func); #endif if (argdefs != NULL) { d = &PyTuple_GET_ITEM(argdefs, 0); nd = Py_SIZE(argdefs); } else { d = NULL; nd = 0; } #if PY_MAJOR_VERSION >= 3 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL, args, (int)nargs, k, (int)nk, d, (int)nd, kwdefs, closure); #else result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL, args, (int)nargs, k, (int)nk, d, (int)nd, closure); #endif Py_XDECREF(kwtuple); done: Py_LeaveRecursiveCall(); return result; } #endif #endif /* PyCFunctionFastCall */ #if CYTHON_FAST_PYCCALL static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) { PyCFunctionObject *func = (PyCFunctionObject*)func_obj; PyCFunction meth = PyCFunction_GET_FUNCTION(func); PyObject *self = PyCFunction_GET_SELF(func); int flags = PyCFunction_GET_FLAGS(func); assert(PyCFunction_Check(func)); assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS))); assert(nargs >= 0); assert(nargs == 0 || args != NULL); /* _PyCFunction_FastCallDict() must not be called with an exception set, because it may clear it (directly or indirectly) and so the caller loses its exception */ assert(!PyErr_Occurred()); if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) { return (*((__Pyx_PyCFunctionFastWithKeywords)(void*)meth)) (self, args, nargs, NULL); } else { return (*((__Pyx_PyCFunctionFast)(void*)meth)) (self, args, nargs); } } #endif /* PyObjectCall */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { PyObject *result; ternaryfunc call = func->ob_type->tp_call; if (unlikely(!call)) return PyObject_Call(func, arg, kw); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = (*call)(func, arg, kw); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* RaiseArgTupleInvalid */ static void __Pyx_RaiseArgtupleInvalid( const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found) { Py_ssize_t num_expected; const char *more_or_less; if (num_found < num_min) { num_expected = num_min; more_or_less = "at least"; } else { num_expected = num_max; more_or_less = "at most"; } if (exact) { more_or_less = "exactly"; } PyErr_Format(PyExc_TypeError, "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)", func_name, more_or_less, num_expected, (num_expected == 1) ? "" : "s", num_found); } /* RaiseDoubleKeywords */ static void __Pyx_RaiseDoubleKeywordsError( const char* func_name, PyObject* kw_name) { PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION >= 3 "%s() got multiple values for keyword argument '%U'", func_name, kw_name); #else "%s() got multiple values for keyword argument '%s'", func_name, PyString_AsString(kw_name)); #endif } /* ParseKeywords */ static int __Pyx_ParseOptionalKeywords( PyObject *kwds, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name) { PyObject *key = 0, *value = 0; Py_ssize_t pos = 0; PyObject*** name; PyObject*** first_kw_arg = argnames + num_pos_args; while (PyDict_Next(kwds, &pos, &key, &value)) { name = first_kw_arg; while (*name && (**name != key)) name++; if (*name) { values[name-argnames] = value; continue; } name = first_kw_arg; #if PY_MAJOR_VERSION < 3 if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) { while (*name) { if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key)) && _PyString_Eq(**name, key)) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { if ((**argname == key) || ( (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key)) && _PyString_Eq(**argname, key))) { goto arg_passed_twice; } argname++; } } } else #endif if (likely(PyUnicode_Check(key))) { while (*name) { int cmp = (**name == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**name, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) { values[name-argnames] = value; break; } name++; } if (*name) continue; else { PyObject*** argname = argnames; while (argname != first_kw_arg) { int cmp = (**argname == key) ? 0 : #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3 (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : #endif PyUnicode_Compare(**argname, key); if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad; if (cmp == 0) goto arg_passed_twice; argname++; } } } else goto invalid_keyword_type; if (kwds2) { if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad; } else { goto invalid_keyword; } } return 0; arg_passed_twice: __Pyx_RaiseDoubleKeywordsError(function_name, key); goto bad; invalid_keyword_type: PyErr_Format(PyExc_TypeError, "%.200s() keywords must be strings", function_name); goto bad; invalid_keyword: PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION < 3 "%.200s() got an unexpected keyword argument '%.200s'", function_name, PyString_AsString(key)); #else "%s() got an unexpected keyword argument '%U'", function_name, key); #endif bad: return -1; } /* PyObjectCall2Args */ static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) { PyObject *args, *result = NULL; #if CYTHON_FAST_PYCALL if (PyFunction_Check(function)) { PyObject *args[2] = {arg1, arg2}; return __Pyx_PyFunction_FastCall(function, args, 2); } #endif #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(function)) { PyObject *args[2] = {arg1, arg2}; return __Pyx_PyCFunction_FastCall(function, args, 2); } #endif args = PyTuple_New(2); if (unlikely(!args)) goto done; Py_INCREF(arg1); PyTuple_SET_ITEM(args, 0, arg1); Py_INCREF(arg2); PyTuple_SET_ITEM(args, 1, arg2); Py_INCREF(function); result = __Pyx_PyObject_Call(function, args, NULL); Py_DECREF(args); Py_DECREF(function); done: return result; } /* PyObjectCallMethO */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { PyObject *self, *result; PyCFunction cfunc; cfunc = PyCFunction_GET_FUNCTION(func); self = PyCFunction_GET_SELF(func); if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) return NULL; result = cfunc(self, arg); Py_LeaveRecursiveCall(); if (unlikely(!result) && unlikely(!PyErr_Occurred())) { PyErr_SetString( PyExc_SystemError, "NULL result without error in PyObject_Call"); } return result; } #endif /* PyObjectCallOneArg */ #if CYTHON_COMPILING_IN_CPYTHON static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_New(1); if (unlikely(!args)) return NULL; Py_INCREF(arg); PyTuple_SET_ITEM(args, 0, arg); result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, &arg, 1); } #endif if (likely(PyCFunction_Check(func))) { if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { return __Pyx_PyObject_CallMethO(func, arg); #if CYTHON_FAST_PYCCALL } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) { return __Pyx_PyCFunction_FastCall(func, &arg, 1); #endif } } return __Pyx__PyObject_CallOneArg(func, arg); } #else static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { PyObject *result; PyObject *args = PyTuple_Pack(1, arg); if (unlikely(!args)) return NULL; result = __Pyx_PyObject_Call(func, args, NULL); Py_DECREF(args); return result; } #endif /* PyErrFetchRestore */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->curexc_type; tmp_value = tstate->curexc_value; tmp_tb = tstate->curexc_traceback; tstate->curexc_type = type; tstate->curexc_value = value; tstate->curexc_traceback = tb; Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { *type = tstate->curexc_type; *value = tstate->curexc_value; *tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; } #endif /* RaiseException */ #if PY_MAJOR_VERSION < 3 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, CYTHON_UNUSED PyObject *cause) { __Pyx_PyThreadState_declare Py_XINCREF(type); if (!value || value == Py_None) value = NULL; else Py_INCREF(value); if (!tb || tb == Py_None) tb = NULL; else { Py_INCREF(tb); if (!PyTraceBack_Check(tb)) { PyErr_SetString(PyExc_TypeError, "raise: arg 3 must be a traceback or None"); goto raise_error; } } if (PyType_Check(type)) { #if CYTHON_COMPILING_IN_PYPY if (!value) { Py_INCREF(Py_None); value = Py_None; } #endif PyErr_NormalizeException(&type, &value, &tb); } else { if (value) { PyErr_SetString(PyExc_TypeError, "instance exception may not have a separate value"); goto raise_error; } value = type; type = (PyObject*) Py_TYPE(type); Py_INCREF(type); if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) { PyErr_SetString(PyExc_TypeError, "raise: exception class must be a subclass of BaseException"); goto raise_error; } } __Pyx_PyThreadState_assign __Pyx_ErrRestore(type, value, tb); return; raise_error: Py_XDECREF(value); Py_XDECREF(type); Py_XDECREF(tb); return; } #else static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) { PyObject* owned_instance = NULL; if (tb == Py_None) { tb = 0; } else if (tb && !PyTraceBack_Check(tb)) { PyErr_SetString(PyExc_TypeError, "raise: arg 3 must be a traceback or None"); goto bad; } if (value == Py_None) value = 0; if (PyExceptionInstance_Check(type)) { if (value) { PyErr_SetString(PyExc_TypeError, "instance exception may not have a separate value"); goto bad; } value = type; type = (PyObject*) Py_TYPE(value); } else if (PyExceptionClass_Check(type)) { PyObject *instance_class = NULL; if (value && PyExceptionInstance_Check(value)) { instance_class = (PyObject*) Py_TYPE(value); if (instance_class != type) { int is_subclass = PyObject_IsSubclass(instance_class, type); if (!is_subclass) { instance_class = NULL; } else if (unlikely(is_subclass == -1)) { goto bad; } else { type = instance_class; } } } if (!instance_class) { PyObject *args; if (!value) args = PyTuple_New(0); else if (PyTuple_Check(value)) { Py_INCREF(value); args = value; } else args = PyTuple_Pack(1, value); if (!args) goto bad; owned_instance = PyObject_Call(type, args, NULL); Py_DECREF(args); if (!owned_instance) goto bad; value = owned_instance; if (!PyExceptionInstance_Check(value)) { PyErr_Format(PyExc_TypeError, "calling %R should have returned an instance of " "BaseException, not %R", type, Py_TYPE(value)); goto bad; } } } else { PyErr_SetString(PyExc_TypeError, "raise: exception class must be a subclass of BaseException"); goto bad; } if (cause) { PyObject *fixed_cause; if (cause == Py_None) { fixed_cause = NULL; } else if (PyExceptionClass_Check(cause)) { fixed_cause = PyObject_CallObject(cause, NULL); if (fixed_cause == NULL) goto bad; } else if (PyExceptionInstance_Check(cause)) { fixed_cause = cause; Py_INCREF(fixed_cause); } else { PyErr_SetString(PyExc_TypeError, "exception causes must derive from " "BaseException"); goto bad; } PyException_SetCause(value, fixed_cause); } PyErr_SetObject(type, value); if (tb) { #if CYTHON_COMPILING_IN_PYPY PyObject *tmp_type, *tmp_value, *tmp_tb; PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb); Py_INCREF(tb); PyErr_Restore(tmp_type, tmp_value, tb); Py_XDECREF(tmp_tb); #else PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject* tmp_tb = tstate->curexc_traceback; if (tb != tmp_tb) { Py_INCREF(tb); tstate->curexc_traceback = tb; Py_XDECREF(tmp_tb); } #endif } bad: Py_XDECREF(owned_instance); return; } #endif /* GetItemInt */ static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) { PyObject *r; if (!j) return NULL; r = PyObject_GetItem(o, j); Py_DECREF(j); return r; } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS Py_ssize_t wrapped_i = i; if (wraparound & unlikely(i < 0)) { wrapped_i += PyList_GET_SIZE(o); } if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) { PyObject *r = PyList_GET_ITEM(o, wrapped_i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS Py_ssize_t wrapped_i = i; if (wraparound & unlikely(i < 0)) { wrapped_i += PyTuple_GET_SIZE(o); } if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, wrapped_i); Py_INCREF(r); return r; } return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); #else return PySequence_GetItem(o, i); #endif } static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS if (is_list || PyList_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o); if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) { PyObject *r = PyList_GET_ITEM(o, n); Py_INCREF(r); return r; } } else if (PyTuple_CheckExact(o)) { Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o); if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))) { PyObject *r = PyTuple_GET_ITEM(o, n); Py_INCREF(r); return r; } } else { PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; if (likely(m && m->sq_item)) { if (wraparound && unlikely(i < 0) && likely(m->sq_length)) { Py_ssize_t l = m->sq_length(o); if (likely(l >= 0)) { i += l; } else { if (!PyErr_ExceptionMatches(PyExc_OverflowError)) return NULL; PyErr_Clear(); } } return m->sq_item(o, i); } } #else if (is_list || PySequence_Check(o)) { return PySequence_GetItem(o, i); } #endif return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); } /* PyObjectCallNoArg */ #if CYTHON_COMPILING_IN_CPYTHON static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { #if CYTHON_FAST_PYCALL if (PyFunction_Check(func)) { return __Pyx_PyFunction_FastCall(func, NULL, 0); } #endif #ifdef __Pyx_CyFunction_USED if (likely(PyCFunction_Check(func) || __Pyx_CyFunction_Check(func))) #else if (likely(PyCFunction_Check(func))) #endif { if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) { return __Pyx_PyObject_CallMethO(func, NULL); } } return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL); } #endif /* GetTopmostException */ #if CYTHON_USE_EXC_INFO_STACK static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate) { _PyErr_StackItem *exc_info = tstate->exc_info; while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) && exc_info->previous_item != NULL) { exc_info = exc_info->previous_item; } return exc_info; } #endif /* SaveResetException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { #if CYTHON_USE_EXC_INFO_STACK _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate); *type = exc_info->exc_type; *value = exc_info->exc_value; *tb = exc_info->exc_traceback; #else *type = tstate->exc_type; *value = tstate->exc_value; *tb = tstate->exc_traceback; #endif Py_XINCREF(*type); Py_XINCREF(*value); Py_XINCREF(*tb); } static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; #if CYTHON_USE_EXC_INFO_STACK _PyErr_StackItem *exc_info = tstate->exc_info; tmp_type = exc_info->exc_type; tmp_value = exc_info->exc_value; tmp_tb = exc_info->exc_traceback; exc_info->exc_type = type; exc_info->exc_value = value; exc_info->exc_traceback = tb; #else tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = type; tstate->exc_value = value; tstate->exc_traceback = tb; #endif Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); } #endif /* GetException */ #if CYTHON_FAST_THREAD_STATE static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) #else static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) #endif { PyObject *local_type, *local_value, *local_tb; #if CYTHON_FAST_THREAD_STATE PyObject *tmp_type, *tmp_value, *tmp_tb; local_type = tstate->curexc_type; local_value = tstate->curexc_value; local_tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; #else PyErr_Fetch(&local_type, &local_value, &local_tb); #endif PyErr_NormalizeException(&local_type, &local_value, &local_tb); #if CYTHON_FAST_THREAD_STATE if (unlikely(tstate->curexc_type)) #else if (unlikely(PyErr_Occurred())) #endif goto bad; #if PY_MAJOR_VERSION >= 3 if (local_tb) { if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0)) goto bad; } #endif Py_XINCREF(local_tb); Py_XINCREF(local_type); Py_XINCREF(local_value); *type = local_type; *value = local_value; *tb = local_tb; #if CYTHON_FAST_THREAD_STATE #if CYTHON_USE_EXC_INFO_STACK { _PyErr_StackItem *exc_info = tstate->exc_info; tmp_type = exc_info->exc_type; tmp_value = exc_info->exc_value; tmp_tb = exc_info->exc_traceback; exc_info->exc_type = local_type; exc_info->exc_value = local_value; exc_info->exc_traceback = local_tb; } #else tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = local_type; tstate->exc_value = local_value; tstate->exc_traceback = local_tb; #endif Py_XDECREF(tmp_type); Py_XDECREF(tmp_value); Py_XDECREF(tmp_tb); #else PyErr_SetExcInfo(local_type, local_value, local_tb); #endif return 0; bad: *type = 0; *value = 0; *tb = 0; Py_XDECREF(local_type); Py_XDECREF(local_value); Py_XDECREF(local_tb); return -1; } /* WriteUnraisableException */ static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno, CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename, int full_traceback, CYTHON_UNUSED int nogil) { PyObject *old_exc, *old_val, *old_tb; PyObject *ctx; __Pyx_PyThreadState_declare #ifdef WITH_THREAD PyGILState_STATE state; if (nogil) state = PyGILState_Ensure(); #ifdef _MSC_VER else state = (PyGILState_STATE)-1; #endif #endif __Pyx_PyThreadState_assign __Pyx_ErrFetch(&old_exc, &old_val, &old_tb); if (full_traceback) { Py_XINCREF(old_exc); Py_XINCREF(old_val); Py_XINCREF(old_tb); __Pyx_ErrRestore(old_exc, old_val, old_tb); PyErr_PrintEx(1); } #if PY_MAJOR_VERSION < 3 ctx = PyString_FromString(name); #else ctx = PyUnicode_FromString(name); #endif __Pyx_ErrRestore(old_exc, old_val, old_tb); if (!ctx) { PyErr_WriteUnraisable(Py_None); } else { PyErr_WriteUnraisable(ctx); Py_DECREF(ctx); } #ifdef WITH_THREAD if (nogil) PyGILState_Release(state); #endif } /* ArgTypeTest */ static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact) { if (unlikely(!type)) { PyErr_SetString(PyExc_SystemError, "Missing type object"); return 0; } else if (exact) { #if PY_MAJOR_VERSION == 2 if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1; #endif } else { if (likely(__Pyx_TypeCheck(obj, type))) return 1; } PyErr_Format(PyExc_TypeError, "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)", name, type->tp_name, Py_TYPE(obj)->tp_name); return 0; } /* KeywordStringCheck */ static int __Pyx_CheckKeywordStrings( PyObject *kwdict, const char* function_name, int kw_allowed) { PyObject* key = 0; Py_ssize_t pos = 0; #if CYTHON_COMPILING_IN_PYPY if (!kw_allowed && PyDict_Next(kwdict, &pos, &key, 0)) goto invalid_keyword; return 1; #else while (PyDict_Next(kwdict, &pos, &key, 0)) { #if PY_MAJOR_VERSION < 3 if (unlikely(!PyString_Check(key))) #endif if (unlikely(!PyUnicode_Check(key))) goto invalid_keyword_type; } if ((!kw_allowed) && unlikely(key)) goto invalid_keyword; return 1; invalid_keyword_type: PyErr_Format(PyExc_TypeError, "%.200s() keywords must be strings", function_name); return 0; #endif invalid_keyword: PyErr_Format(PyExc_TypeError, #if PY_MAJOR_VERSION < 3 "%.200s() got an unexpected keyword argument '%.200s'", function_name, PyString_AsString(key)); #else "%s() got an unexpected keyword argument '%U'", function_name, key); #endif return 0; } /* SwapException */ #if CYTHON_FAST_THREAD_STATE static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; #if CYTHON_USE_EXC_INFO_STACK _PyErr_StackItem *exc_info = tstate->exc_info; tmp_type = exc_info->exc_type; tmp_value = exc_info->exc_value; tmp_tb = exc_info->exc_traceback; exc_info->exc_type = *type; exc_info->exc_value = *value; exc_info->exc_traceback = *tb; #else tmp_type = tstate->exc_type; tmp_value = tstate->exc_value; tmp_tb = tstate->exc_traceback; tstate->exc_type = *type; tstate->exc_value = *value; tstate->exc_traceback = *tb; #endif *type = tmp_type; *value = tmp_value; *tb = tmp_tb; } #else static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb); PyErr_SetExcInfo(*type, *value, *tb); *type = tmp_type; *value = tmp_value; *tb = tmp_tb; } #endif /* IterFinish */ static CYTHON_INLINE int __Pyx_IterFinish(void) { #if CYTHON_FAST_THREAD_STATE PyThreadState *tstate = __Pyx_PyThreadState_Current; PyObject* exc_type = tstate->curexc_type; if (unlikely(exc_type)) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) { PyObject *exc_value, *exc_tb; exc_value = tstate->curexc_value; exc_tb = tstate->curexc_traceback; tstate->curexc_type = 0; tstate->curexc_value = 0; tstate->curexc_traceback = 0; Py_DECREF(exc_type); Py_XDECREF(exc_value); Py_XDECREF(exc_tb); return 0; } else { return -1; } } return 0; #else if (unlikely(PyErr_Occurred())) { if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) { PyErr_Clear(); return 0; } else { return -1; } } return 0; #endif } /* set_iter */ static CYTHON_INLINE PyObject* __Pyx_set_iterator(PyObject* iterable, int is_set, Py_ssize_t* p_orig_length, int* p_source_is_set) { #if CYTHON_COMPILING_IN_CPYTHON is_set = is_set || likely(PySet_CheckExact(iterable) || PyFrozenSet_CheckExact(iterable)); *p_source_is_set = is_set; if (likely(is_set)) { *p_orig_length = PySet_Size(iterable); Py_INCREF(iterable); return iterable; } #else (void)is_set; *p_source_is_set = 0; #endif *p_orig_length = 0; return PyObject_GetIter(iterable); } static CYTHON_INLINE int __Pyx_set_iter_next( PyObject* iter_obj, Py_ssize_t orig_length, Py_ssize_t* ppos, PyObject **value, int source_is_set) { if (!CYTHON_COMPILING_IN_CPYTHON || unlikely(!source_is_set)) { *value = PyIter_Next(iter_obj); if (unlikely(!*value)) { return __Pyx_IterFinish(); } (void)orig_length; (void)ppos; return 1; } #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(PySet_GET_SIZE(iter_obj) != orig_length)) { PyErr_SetString( PyExc_RuntimeError, "set changed size during iteration"); return -1; } { Py_hash_t hash; int ret = _PySet_NextEntry(iter_obj, ppos, value, &hash); assert (ret != -1); if (likely(ret)) { Py_INCREF(*value); return 1; } } #endif return 0; } /* PyObjectSetAttrStr */ #if CYTHON_USE_TYPE_SLOTS static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) { PyTypeObject* tp = Py_TYPE(obj); if (likely(tp->tp_setattro)) return tp->tp_setattro(obj, attr_name, value); #if PY_MAJOR_VERSION < 3 if (likely(tp->tp_setattr)) return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value); #endif return PyObject_SetAttr(obj, attr_name, value); } #endif /* ExtTypeTest */ static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) { if (unlikely(!type)) { PyErr_SetString(PyExc_SystemError, "Missing type object"); return 0; } if (likely(__Pyx_TypeCheck(obj, type))) return 1; PyErr_Format(PyExc_TypeError, "Cannot convert %.200s to %.200s", Py_TYPE(obj)->tp_name, type->tp_name); return 0; } /* PyErrExceptionMatches */ #if CYTHON_FAST_THREAD_STATE static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) { Py_ssize_t i, n; n = PyTuple_GET_SIZE(tuple); #if PY_MAJOR_VERSION >= 3 for (i=0; icurexc_type; if (exc_type == err) return 1; if (unlikely(!exc_type)) return 0; if (unlikely(PyTuple_Check(err))) return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err); return __Pyx_PyErr_GivenExceptionMatches(exc_type, err); } #endif /* DictGetItem */ #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) { PyObject *value; value = PyDict_GetItemWithError(d, key); if (unlikely(!value)) { if (!PyErr_Occurred()) { if (unlikely(PyTuple_Check(key))) { PyObject* args = PyTuple_Pack(1, key); if (likely(args)) { PyErr_SetObject(PyExc_KeyError, args); Py_DECREF(args); } } else { PyErr_SetObject(PyExc_KeyError, key); } } return NULL; } Py_INCREF(value); return value; } #endif /* CallNextTpTraverse */ static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, traverseproc current_tp_traverse) { PyTypeObject* type = Py_TYPE(obj); while (type && type->tp_traverse != current_tp_traverse) type = type->tp_base; while (type && type->tp_traverse == current_tp_traverse) type = type->tp_base; if (type && type->tp_traverse) return type->tp_traverse(obj, v, a); return 0; } /* CallNextTpClear */ static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear) { PyTypeObject* type = Py_TYPE(obj); while (type && type->tp_clear != current_tp_clear) type = type->tp_base; while (type && type->tp_clear == current_tp_clear) type = type->tp_base; if (type && type->tp_clear) type->tp_clear(obj); } /* PyObject_GenericGetAttrNoDict */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static PyObject *__Pyx_RaiseGenericGetAttributeError(PyTypeObject *tp, PyObject *attr_name) { PyErr_Format(PyExc_AttributeError, #if PY_MAJOR_VERSION >= 3 "'%.50s' object has no attribute '%U'", tp->tp_name, attr_name); #else "'%.50s' object has no attribute '%.400s'", tp->tp_name, PyString_AS_STRING(attr_name)); #endif return NULL; } static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name) { PyObject *descr; PyTypeObject *tp = Py_TYPE(obj); if (unlikely(!PyString_Check(attr_name))) { return PyObject_GenericGetAttr(obj, attr_name); } assert(!tp->tp_dictoffset); descr = _PyType_Lookup(tp, attr_name); if (unlikely(!descr)) { return __Pyx_RaiseGenericGetAttributeError(tp, attr_name); } Py_INCREF(descr); #if PY_MAJOR_VERSION < 3 if (likely(PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS))) #endif { descrgetfunc f = Py_TYPE(descr)->tp_descr_get; if (unlikely(f)) { PyObject *res = f(descr, obj, (PyObject *)tp); Py_DECREF(descr); return res; } } return descr; } #endif /* PyObject_GenericGetAttr */ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000 static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) { if (unlikely(Py_TYPE(obj)->tp_dictoffset)) { return PyObject_GenericGetAttr(obj, attr_name); } return __Pyx_PyObject_GenericGetAttrNoDict(obj, attr_name); } #endif /* SetVTable */ static int __Pyx_SetVtable(PyObject *dict, void *vtable) { #if PY_VERSION_HEX >= 0x02070000 PyObject *ob = PyCapsule_New(vtable, 0, 0); #else PyObject *ob = PyCObject_FromVoidPtr(vtable, 0); #endif if (!ob) goto bad; if (PyDict_SetItem(dict, __pyx_n_s_pyx_vtable, ob) < 0) goto bad; Py_DECREF(ob); return 0; bad: Py_XDECREF(ob); return -1; } /* SetupReduce */ static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) { int ret; PyObject *name_attr; name_attr = __Pyx_PyObject_GetAttrStr(meth, __pyx_n_s_name); if (likely(name_attr)) { ret = PyObject_RichCompareBool(name_attr, name, Py_EQ); } else { ret = -1; } if (unlikely(ret < 0)) { PyErr_Clear(); ret = 0; } Py_XDECREF(name_attr); return ret; } static int __Pyx_setup_reduce(PyObject* type_obj) { int ret = 0; PyObject *object_reduce = NULL; PyObject *object_reduce_ex = NULL; PyObject *reduce = NULL; PyObject *reduce_ex = NULL; PyObject *reduce_cython = NULL; PyObject *setstate = NULL; PyObject *setstate_cython = NULL; #if CYTHON_USE_PYTYPE_LOOKUP if (_PyType_Lookup((PyTypeObject*)type_obj, __pyx_n_s_getstate)) goto GOOD; #else if (PyObject_HasAttr(type_obj, __pyx_n_s_getstate)) goto GOOD; #endif #if CYTHON_USE_PYTYPE_LOOKUP object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto BAD; #else object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto BAD; #endif reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_ex); if (unlikely(!reduce_ex)) goto BAD; if (reduce_ex == object_reduce_ex) { #if CYTHON_USE_PYTYPE_LOOKUP object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto BAD; #else object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto BAD; #endif reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce); if (unlikely(!reduce)) goto BAD; if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_n_s_reduce_cython)) { reduce_cython = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_cython); if (unlikely(!reduce_cython)) goto BAD; ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce, reduce_cython); if (unlikely(ret < 0)) goto BAD; ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce_cython); if (unlikely(ret < 0)) goto BAD; setstate = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_setstate); if (!setstate) PyErr_Clear(); if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) { setstate_cython = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_setstate_cython); if (unlikely(!setstate_cython)) goto BAD; ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate, setstate_cython); if (unlikely(ret < 0)) goto BAD; ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate_cython); if (unlikely(ret < 0)) goto BAD; } PyType_Modified((PyTypeObject*)type_obj); } } goto GOOD; BAD: if (!PyErr_Occurred()) PyErr_Format(PyExc_RuntimeError, "Unable to initialize pickling for %s", ((PyTypeObject*)type_obj)->tp_name); ret = -1; GOOD: #if !CYTHON_USE_PYTYPE_LOOKUP Py_XDECREF(object_reduce); Py_XDECREF(object_reduce_ex); #endif Py_XDECREF(reduce); Py_XDECREF(reduce_ex); Py_XDECREF(reduce_cython); Py_XDECREF(setstate); Py_XDECREF(setstate_cython); return ret; } /* TypeImport */ #ifndef __PYX_HAVE_RT_ImportType #define __PYX_HAVE_RT_ImportType static PyTypeObject *__Pyx_ImportType(PyObject *module, const char *module_name, const char *class_name, size_t size, enum __Pyx_ImportType_CheckSize check_size) { PyObject *result = 0; char warning[200]; Py_ssize_t basicsize; #ifdef Py_LIMITED_API PyObject *py_basicsize; #endif result = PyObject_GetAttrString(module, class_name); if (!result) goto bad; if (!PyType_Check(result)) { PyErr_Format(PyExc_TypeError, "%.200s.%.200s is not a type object", module_name, class_name); goto bad; } #ifndef Py_LIMITED_API basicsize = ((PyTypeObject *)result)->tp_basicsize; #else py_basicsize = PyObject_GetAttrString(result, "__basicsize__"); if (!py_basicsize) goto bad; basicsize = PyLong_AsSsize_t(py_basicsize); Py_DECREF(py_basicsize); py_basicsize = 0; if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred()) goto bad; #endif if ((size_t)basicsize < size) { PyErr_Format(PyExc_ValueError, "%.200s.%.200s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", module_name, class_name, size, basicsize); goto bad; } if (check_size == __Pyx_ImportType_CheckSize_Error && (size_t)basicsize != size) { PyErr_Format(PyExc_ValueError, "%.200s.%.200s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", module_name, class_name, size, basicsize); goto bad; } else if (check_size == __Pyx_ImportType_CheckSize_Warn && (size_t)basicsize > size) { PyOS_snprintf(warning, sizeof(warning), "%s.%s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", module_name, class_name, size, basicsize); if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad; } return (PyTypeObject *)result; bad: Py_XDECREF(result); return NULL; } #endif /* Import */ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { PyObject *empty_list = 0; PyObject *module = 0; PyObject *global_dict = 0; PyObject *empty_dict = 0; PyObject *list; #if PY_MAJOR_VERSION < 3 PyObject *py_import; py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); if (!py_import) goto bad; #endif if (from_list) list = from_list; else { empty_list = PyList_New(0); if (!empty_list) goto bad; list = empty_list; } global_dict = PyModule_GetDict(__pyx_m); if (!global_dict) goto bad; empty_dict = PyDict_New(); if (!empty_dict) goto bad; { #if PY_MAJOR_VERSION >= 3 if (level == -1) { if (strchr(__Pyx_MODULE_NAME, '.')) { module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, 1); if (!module) { if (!PyErr_ExceptionMatches(PyExc_ImportError)) goto bad; PyErr_Clear(); } } level = 0; } #endif if (!module) { #if PY_MAJOR_VERSION < 3 PyObject *py_level = PyInt_FromLong(level); if (!py_level) goto bad; module = PyObject_CallFunctionObjArgs(py_import, name, global_dict, empty_dict, list, py_level, (PyObject *)NULL); Py_DECREF(py_level); #else module = PyImport_ImportModuleLevelObject( name, global_dict, empty_dict, list, level); #endif } } bad: #if PY_MAJOR_VERSION < 3 Py_XDECREF(py_import); #endif Py_XDECREF(empty_list); Py_XDECREF(empty_dict); return module; } /* ImportFrom */ static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Format(PyExc_ImportError, #if PY_MAJOR_VERSION < 3 "cannot import name %.230s", PyString_AS_STRING(name)); #else "cannot import name %S", name); #endif } return value; } /* CalculateMetaclass */ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) { Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases); for (i=0; i < nbases; i++) { PyTypeObject *tmptype; PyObject *tmp = PyTuple_GET_ITEM(bases, i); tmptype = Py_TYPE(tmp); #if PY_MAJOR_VERSION < 3 if (tmptype == &PyClass_Type) continue; #endif if (!metaclass) { metaclass = tmptype; continue; } if (PyType_IsSubtype(metaclass, tmptype)) continue; if (PyType_IsSubtype(tmptype, metaclass)) { metaclass = tmptype; continue; } PyErr_SetString(PyExc_TypeError, "metaclass conflict: " "the metaclass of a derived class " "must be a (non-strict) subclass " "of the metaclasses of all its bases"); return NULL; } if (!metaclass) { #if PY_MAJOR_VERSION < 3 metaclass = &PyClass_Type; #else metaclass = &PyType_Type; #endif } Py_INCREF((PyObject*) metaclass); return (PyObject*) metaclass; } /* Py3ClassCreate */ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) { PyObject *ns; if (metaclass) { PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare); if (prep) { PyObject *pargs = PyTuple_Pack(2, name, bases); if (unlikely(!pargs)) { Py_DECREF(prep); return NULL; } ns = PyObject_Call(prep, pargs, mkw); Py_DECREF(prep); Py_DECREF(pargs); } else { if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError))) return NULL; PyErr_Clear(); ns = PyDict_New(); } } else { ns = PyDict_New(); } if (unlikely(!ns)) return NULL; if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0)) goto bad; if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)) goto bad; if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)) goto bad; return ns; bad: Py_DECREF(ns); return NULL; } static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass) { PyObject *result, *margs; PyObject *owned_metaclass = NULL; if (allow_py2_metaclass) { owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass); if (owned_metaclass) { metaclass = owned_metaclass; } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) { PyErr_Clear(); } else { return NULL; } } if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) { metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases); Py_XDECREF(owned_metaclass); if (unlikely(!metaclass)) return NULL; owned_metaclass = metaclass; } margs = PyTuple_Pack(3, name, bases, dict); if (unlikely(!margs)) { result = NULL; } else { result = PyObject_Call(metaclass, margs, mkw); Py_DECREF(margs); } Py_XDECREF(owned_metaclass); return result; } /* FetchCommonType */ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { PyObject* fake_module; PyTypeObject* cached_type = NULL; fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI); if (!fake_module) return NULL; Py_INCREF(fake_module); cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name); if (cached_type) { if (!PyType_Check((PyObject*)cached_type)) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s is not a type object", type->tp_name); goto bad; } if (cached_type->tp_basicsize != type->tp_basicsize) { PyErr_Format(PyExc_TypeError, "Shared Cython type %.200s has the wrong size, try recompiling", type->tp_name); goto bad; } } else { if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; PyErr_Clear(); if (PyType_Ready(type) < 0) goto bad; if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0) goto bad; Py_INCREF(type); cached_type = type; } done: Py_DECREF(fake_module); return cached_type; bad: Py_XDECREF(cached_type); cached_type = NULL; goto done; } /* CythonFunction */ #include static PyObject * __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure) { if (unlikely(op->func_doc == NULL)) { if (op->func.m_ml->ml_doc) { #if PY_MAJOR_VERSION >= 3 op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc); #else op->func_doc = PyString_FromString(op->func.m_ml->ml_doc); #endif if (unlikely(op->func_doc == NULL)) return NULL; } else { Py_INCREF(Py_None); return Py_None; } } Py_INCREF(op->func_doc); return op->func_doc; } static int __Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context) { PyObject *tmp = op->func_doc; if (value == NULL) { value = Py_None; } Py_INCREF(value); op->func_doc = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { if (unlikely(op->func_name == NULL)) { #if PY_MAJOR_VERSION >= 3 op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name); #else op->func_name = PyString_InternFromString(op->func.m_ml->ml_name); #endif if (unlikely(op->func_name == NULL)) return NULL; } Py_INCREF(op->func_name); return op->func_name; } static int __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) #else if (unlikely(value == NULL || !PyString_Check(value))) #endif { PyErr_SetString(PyExc_TypeError, "__name__ must be set to a string object"); return -1; } tmp = op->func_name; Py_INCREF(value); op->func_name = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { Py_INCREF(op->func_qualname); return op->func_qualname; } static int __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) #else if (unlikely(value == NULL || !PyString_Check(value))) #endif { PyErr_SetString(PyExc_TypeError, "__qualname__ must be set to a string object"); return -1; } tmp = op->func_qualname; Py_INCREF(value); op->func_qualname = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED void *closure) { PyObject *self; self = m->func_closure; if (self == NULL) self = Py_None; Py_INCREF(self); return self; } static PyObject * __Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { if (unlikely(op->func_dict == NULL)) { op->func_dict = PyDict_New(); if (unlikely(op->func_dict == NULL)) return NULL; } Py_INCREF(op->func_dict); return op->func_dict; } static int __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context) { PyObject *tmp; if (unlikely(value == NULL)) { PyErr_SetString(PyExc_TypeError, "function's dictionary may not be deleted"); return -1; } if (unlikely(!PyDict_Check(value))) { PyErr_SetString(PyExc_TypeError, "setting function's dictionary to a non-dict"); return -1; } tmp = op->func_dict; Py_INCREF(value); op->func_dict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { Py_INCREF(op->func_globals); return op->func_globals; } static PyObject * __Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { Py_INCREF(Py_None); return Py_None; } static PyObject * __Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { PyObject* result = (op->func_code) ? op->func_code : Py_None; Py_INCREF(result); return result; } static int __Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { int result = 0; PyObject *res = op->defaults_getter((PyObject *) op); if (unlikely(!res)) return -1; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS op->defaults_tuple = PyTuple_GET_ITEM(res, 0); Py_INCREF(op->defaults_tuple); op->defaults_kwdict = PyTuple_GET_ITEM(res, 1); Py_INCREF(op->defaults_kwdict); #else op->defaults_tuple = PySequence_ITEM(res, 0); if (unlikely(!op->defaults_tuple)) result = -1; else { op->defaults_kwdict = PySequence_ITEM(res, 1); if (unlikely(!op->defaults_kwdict)) result = -1; } #endif Py_DECREF(res); return result; } static int __Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, CYTHON_UNUSED void *context) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyTuple_Check(value)) { PyErr_SetString(PyExc_TypeError, "__defaults__ must be set to a tuple object"); return -1; } Py_INCREF(value); tmp = op->defaults_tuple; op->defaults_tuple = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { PyObject* result = op->defaults_tuple; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_tuple; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, CYTHON_UNUSED void *context) { PyObject* tmp; if (!value) { value = Py_None; } else if (value != Py_None && !PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__kwdefaults__ must be set to a dict object"); return -1; } Py_INCREF(value); tmp = op->defaults_kwdict; op->defaults_kwdict = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { PyObject* result = op->defaults_kwdict; if (unlikely(!result)) { if (op->defaults_getter) { if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; result = op->defaults_kwdict; } else { result = Py_None; } } Py_INCREF(result); return result; } static int __Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, CYTHON_UNUSED void *context) { PyObject* tmp; if (!value || value == Py_None) { value = NULL; } else if (!PyDict_Check(value)) { PyErr_SetString(PyExc_TypeError, "__annotations__ must be set to a dict object"); return -1; } Py_XINCREF(value); tmp = op->func_annotations; op->func_annotations = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) { PyObject* result = op->func_annotations; if (unlikely(!result)) { result = PyDict_New(); if (unlikely(!result)) return NULL; op->func_annotations = result; } Py_INCREF(result); return result; } static PyGetSetDef __pyx_CyFunction_getsets[] = { {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, {(char *) "__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0}, {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, {0, 0, 0, 0, 0} }; static PyMemberDef __pyx_CyFunction_members[] = { {(char *) "__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), PY_WRITE_RESTRICTED, 0}, {0, 0, 0, 0, 0} }; static PyObject * __Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromString(m->func.m_ml->ml_name); #else return PyString_FromString(m->func.m_ml->ml_name); #endif } static PyMethodDef __pyx_CyFunction_methods[] = { {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, {0, 0, 0, 0} }; #if PY_VERSION_HEX < 0x030500A0 #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist) #else #define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist) #endif static PyObject *__Pyx_CyFunction_New(PyTypeObject *type, PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { __pyx_CyFunctionObject *op = PyObject_GC_New(__pyx_CyFunctionObject, type); if (op == NULL) return NULL; op->flags = flags; __Pyx_CyFunction_weakreflist(op) = NULL; op->func.m_ml = ml; op->func.m_self = (PyObject *) op; Py_XINCREF(closure); op->func_closure = closure; Py_XINCREF(module); op->func.m_module = module; op->func_dict = NULL; op->func_name = NULL; Py_INCREF(qualname); op->func_qualname = qualname; op->func_doc = NULL; op->func_classobj = NULL; op->func_globals = globals; Py_INCREF(op->func_globals); Py_XINCREF(code); op->func_code = code; op->defaults_pyobjects = 0; op->defaults = NULL; op->defaults_tuple = NULL; op->defaults_kwdict = NULL; op->defaults_getter = NULL; op->func_annotations = NULL; PyObject_GC_Track(op); return (PyObject *) op; } static int __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) { Py_CLEAR(m->func_closure); Py_CLEAR(m->func.m_module); Py_CLEAR(m->func_dict); Py_CLEAR(m->func_name); Py_CLEAR(m->func_qualname); Py_CLEAR(m->func_doc); Py_CLEAR(m->func_globals); Py_CLEAR(m->func_code); Py_CLEAR(m->func_classobj); Py_CLEAR(m->defaults_tuple); Py_CLEAR(m->defaults_kwdict); Py_CLEAR(m->func_annotations); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_XDECREF(pydefaults[i]); PyObject_Free(m->defaults); m->defaults = NULL; } return 0; } static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m) { if (__Pyx_CyFunction_weakreflist(m) != NULL) PyObject_ClearWeakRefs((PyObject *) m); __Pyx_CyFunction_clear(m); PyObject_GC_Del(m); } static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) { PyObject_GC_UnTrack(m); __Pyx__CyFunction_dealloc(m); } static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) { Py_VISIT(m->func_closure); Py_VISIT(m->func.m_module); Py_VISIT(m->func_dict); Py_VISIT(m->func_name); Py_VISIT(m->func_qualname); Py_VISIT(m->func_doc); Py_VISIT(m->func_globals); Py_VISIT(m->func_code); Py_VISIT(m->func_classobj); Py_VISIT(m->defaults_tuple); Py_VISIT(m->defaults_kwdict); if (m->defaults) { PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); int i; for (i = 0; i < m->defaults_pyobjects; i++) Py_VISIT(pydefaults[i]); } return 0; } static PyObject *__Pyx_CyFunction_descr_get(PyObject *func, PyObject *obj, PyObject *type) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) { Py_INCREF(func); return func; } if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) { if (type == NULL) type = (PyObject *)(Py_TYPE(obj)); return __Pyx_PyMethod_New(func, type, (PyObject *)(Py_TYPE(type))); } if (obj == Py_None) obj = NULL; return __Pyx_PyMethod_New(func, obj, type); } static PyObject* __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) { #if PY_MAJOR_VERSION >= 3 return PyUnicode_FromFormat("", op->func_qualname, (void *)op); #else return PyString_FromFormat("", PyString_AsString(op->func_qualname), (void *)op); #endif } static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) { PyCFunctionObject* f = (PyCFunctionObject*)func; PyCFunction meth = f->m_ml->ml_meth; Py_ssize_t size; switch (f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) { case METH_VARARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) return (*meth)(self, arg); break; case METH_VARARGS | METH_KEYWORDS: return (*(PyCFunctionWithKeywords)(void*)meth)(self, arg, kw); case METH_NOARGS: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 0)) return (*meth)(self, NULL); PyErr_Format(PyExc_TypeError, "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; case METH_O: if (likely(kw == NULL || PyDict_Size(kw) == 0)) { size = PyTuple_GET_SIZE(arg); if (likely(size == 1)) { PyObject *result, *arg0; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS arg0 = PyTuple_GET_ITEM(arg, 0); #else arg0 = PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL; #endif result = (*meth)(self, arg0); #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS) Py_DECREF(arg0); #endif return result; } PyErr_Format(PyExc_TypeError, "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", f->m_ml->ml_name, size); return NULL; } break; default: PyErr_SetString(PyExc_SystemError, "Bad call flags in " "__Pyx_CyFunction_Call. METH_OLDARGS is no " "longer supported!"); return NULL; } PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", f->m_ml->ml_name); return NULL; } static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { return __Pyx_CyFunction_CallMethod(func, ((PyCFunctionObject*)func)->m_self, arg, kw); } static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) { PyObject *result; __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func; if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) { Py_ssize_t argc; PyObject *new_args; PyObject *self; argc = PyTuple_GET_SIZE(args); new_args = PyTuple_GetSlice(args, 1, argc); if (unlikely(!new_args)) return NULL; self = PyTuple_GetItem(args, 0); if (unlikely(!self)) { Py_DECREF(new_args); return NULL; } result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw); Py_DECREF(new_args); } else { result = __Pyx_CyFunction_Call(func, args, kw); } return result; } static PyTypeObject __pyx_CyFunctionType_type = { PyVarObject_HEAD_INIT(0, 0) "cython_function_or_method", sizeof(__pyx_CyFunctionObject), 0, (destructor) __Pyx_CyFunction_dealloc, 0, 0, 0, #if PY_MAJOR_VERSION < 3 0, #else 0, #endif (reprfunc) __Pyx_CyFunction_repr, 0, 0, 0, 0, __Pyx_CyFunction_CallAsMethod, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, 0, (traverseproc) __Pyx_CyFunction_traverse, (inquiry) __Pyx_CyFunction_clear, 0, #if PY_VERSION_HEX < 0x030500A0 offsetof(__pyx_CyFunctionObject, func_weakreflist), #else offsetof(PyCFunctionObject, m_weakreflist), #endif 0, 0, __pyx_CyFunction_methods, __pyx_CyFunction_members, __pyx_CyFunction_getsets, 0, 0, __Pyx_CyFunction_descr_get, 0, offsetof(__pyx_CyFunctionObject, func_dict), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if PY_VERSION_HEX >= 0x030400a1 0, #endif #if PY_VERSION_HEX >= 0x030800b1 0, #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, #endif }; static int __pyx_CyFunction_init(void) { __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); if (unlikely(__pyx_CyFunctionType == NULL)) { return -1; } return 0; } static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults = PyObject_Malloc(size); if (unlikely(!m->defaults)) return PyErr_NoMemory(); memset(m->defaults, 0, size); m->defaults_pyobjects = pyobjects; return m->defaults; } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_tuple = tuple; Py_INCREF(tuple); } static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->defaults_kwdict = dict; Py_INCREF(dict); } static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; m->func_annotations = dict; Py_INCREF(dict); } /* CLineInTraceback */ #ifndef CYTHON_CLINE_IN_TRACEBACK static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) { PyObject *use_cline; PyObject *ptype, *pvalue, *ptraceback; #if CYTHON_COMPILING_IN_CPYTHON PyObject **cython_runtime_dict; #endif if (unlikely(!__pyx_cython_runtime)) { return c_line; } __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback); #if CYTHON_COMPILING_IN_CPYTHON cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime); if (likely(cython_runtime_dict)) { __PYX_PY_DICT_LOOKUP_IF_MODIFIED( use_cline, *cython_runtime_dict, __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback)) } else #endif { PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback); if (use_cline_obj) { use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True; Py_DECREF(use_cline_obj); } else { PyErr_Clear(); use_cline = NULL; } } if (!use_cline) { c_line = 0; PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False); } else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) { c_line = 0; } __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback); return c_line; } #endif /* CodeObjectCache */ static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { int start = 0, mid = 0, end = count - 1; if (end >= 0 && code_line > entries[end].code_line) { return count; } while (start < end) { mid = start + (end - start) / 2; if (code_line < entries[mid].code_line) { end = mid; } else if (code_line > entries[mid].code_line) { start = mid + 1; } else { return mid; } } if (code_line <= entries[mid].code_line) { return mid; } else { return mid + 1; } } static PyCodeObject *__pyx_find_code_object(int code_line) { PyCodeObject* code_object; int pos; if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) { return NULL; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) { return NULL; } code_object = __pyx_code_cache.entries[pos].code_object; Py_INCREF(code_object); return code_object; } static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { int pos, i; __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; if (unlikely(!code_line)) { return; } if (unlikely(!entries)) { entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); if (likely(entries)) { __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = 64; __pyx_code_cache.count = 1; entries[0].code_line = code_line; entries[0].code_object = code_object; Py_INCREF(code_object); } return; } pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) { PyCodeObject* tmp = entries[pos].code_object; entries[pos].code_object = code_object; Py_DECREF(tmp); return; } if (__pyx_code_cache.count == __pyx_code_cache.max_count) { int new_max = __pyx_code_cache.max_count + 64; entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry)); if (unlikely(!entries)) { return; } __pyx_code_cache.entries = entries; __pyx_code_cache.max_count = new_max; } for (i=__pyx_code_cache.count; i>pos; i--) { entries[i] = entries[i-1]; } entries[pos].code_line = code_line; entries[pos].code_object = code_object; __pyx_code_cache.count++; Py_INCREF(code_object); } /* AddTraceback */ #include "compile.h" #include "frameobject.h" #include "traceback.h" static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyObject *py_srcfile = 0; PyObject *py_funcname = 0; #if PY_MAJOR_VERSION < 3 py_srcfile = PyString_FromString(filename); #else py_srcfile = PyUnicode_FromString(filename); #endif if (!py_srcfile) goto bad; if (c_line) { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #else py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); #endif } else { #if PY_MAJOR_VERSION < 3 py_funcname = PyString_FromString(funcname); #else py_funcname = PyUnicode_FromString(funcname); #endif } if (!py_funcname) goto bad; py_code = __Pyx_PyCode_New( 0, 0, 0, 0, 0, __pyx_empty_bytes, /*PyObject *code,*/ __pyx_empty_tuple, /*PyObject *consts,*/ __pyx_empty_tuple, /*PyObject *names,*/ __pyx_empty_tuple, /*PyObject *varnames,*/ __pyx_empty_tuple, /*PyObject *freevars,*/ __pyx_empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ py_line, __pyx_empty_bytes /*PyObject *lnotab*/ ); Py_DECREF(py_srcfile); Py_DECREF(py_funcname); return py_code; bad: Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); return NULL; } static void __Pyx_AddTraceback(const char *funcname, int c_line, int py_line, const char *filename) { PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; PyThreadState *tstate = __Pyx_PyThreadState_Current; if (c_line) { c_line = __Pyx_CLineForTraceback(tstate, c_line); } py_code = __pyx_find_code_object(c_line ? -c_line : py_line); if (!py_code) { py_code = __Pyx_CreateCodeObjectForTraceback( funcname, c_line, py_line, filename); if (!py_code) goto bad; __pyx_insert_code_object(c_line ? -c_line : py_line, py_code); } py_frame = PyFrame_New( tstate, /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ __pyx_d, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; __Pyx_PyFrame_SetLineNumber(py_frame, py_line); PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_code); Py_XDECREF(py_frame); } /* CIntFromPyVerify */ #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0) #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\ __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1) #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\ {\ func_type value = func_value;\ if (sizeof(target_type) < sizeof(func_type)) {\ if (unlikely(value != (func_type) (target_type) value)) {\ func_type zero = 0;\ if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\ return (target_type) -1;\ if (is_unsigned && unlikely(value < zero))\ goto raise_neg_overflow;\ else\ goto raise_overflow;\ }\ }\ return (target_type) value;\ } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) { const int neg_one = (int) ((int) 0 - (int) 1), const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(int) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(int) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(int) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(int), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) { const long neg_one = (long) ((long) 0 - (long) 1), const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(long) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(long) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(long) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(long), little, !is_unsigned); } } /* CIntToPy */ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_MUSIC_3a__3a_Index_3a__3a_Type(MUSIC::Index::Type value) { const MUSIC::Index::Type neg_one = (MUSIC::Index::Type) ((MUSIC::Index::Type) 0 - (MUSIC::Index::Type) 1), const_zero = (MUSIC::Index::Type) 0; const int is_unsigned = neg_one > const_zero; if (is_unsigned) { if (sizeof(MUSIC::Index::Type) < sizeof(long)) { return PyInt_FromLong((long) value); } else if (sizeof(MUSIC::Index::Type) <= sizeof(unsigned long)) { return PyLong_FromUnsignedLong((unsigned long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(MUSIC::Index::Type) <= sizeof(unsigned PY_LONG_LONG)) { return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); #endif } } else { if (sizeof(MUSIC::Index::Type) <= sizeof(long)) { return PyInt_FromLong((long) value); #ifdef HAVE_LONG_LONG } else if (sizeof(MUSIC::Index::Type) <= sizeof(PY_LONG_LONG)) { return PyLong_FromLongLong((PY_LONG_LONG) value); #endif } } { int one = 1; int little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&value; return _PyLong_FromByteArray(bytes, sizeof(MUSIC::Index::Type), little, !is_unsigned); } } /* CIntFromPy */ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) { const int neg_one = (int) ((int) 0 - (int) 1), const_zero = (int) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(int) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (int) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case 1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0]) case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) { return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) { return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) { return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (int) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(int) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (int) 0; case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(int, digit, +digits[0]) case -2: if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 2: if (8 * sizeof(int) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -3: if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 3: if (8 * sizeof(int) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case -4: if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; case 4: if (8 * sizeof(int) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) { return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]))); } } break; } #endif if (sizeof(int) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else int val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (int) -1; } } else { int val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (int) -1; val = __Pyx_PyInt_As_int(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to int"); return (int) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to int"); return (int) -1; } /* CIntFromPy */ static CYTHON_INLINE MUSIC::Index::Type __Pyx_PyInt_As_MUSIC_3a__3a_Index_3a__3a_Type(PyObject *x) { const MUSIC::Index::Type neg_one = (MUSIC::Index::Type) ((MUSIC::Index::Type) 0 - (MUSIC::Index::Type) 1), const_zero = (MUSIC::Index::Type) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(MUSIC::Index::Type) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(MUSIC::Index::Type, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (MUSIC::Index::Type) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (MUSIC::Index::Type) 0; case 1: __PYX_VERIFY_RETURN_INT(MUSIC::Index::Type, digit, digits[0]) case 2: if (8 * sizeof(MUSIC::Index::Type) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(MUSIC::Index::Type, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(MUSIC::Index::Type) >= 2 * PyLong_SHIFT) { return (MUSIC::Index::Type) (((((MUSIC::Index::Type)digits[1]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[0])); } } break; case 3: if (8 * sizeof(MUSIC::Index::Type) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(MUSIC::Index::Type, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(MUSIC::Index::Type) >= 3 * PyLong_SHIFT) { return (MUSIC::Index::Type) (((((((MUSIC::Index::Type)digits[2]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[1]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[0])); } } break; case 4: if (8 * sizeof(MUSIC::Index::Type) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(MUSIC::Index::Type, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(MUSIC::Index::Type) >= 4 * PyLong_SHIFT) { return (MUSIC::Index::Type) (((((((((MUSIC::Index::Type)digits[3]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[2]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[1]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (MUSIC::Index::Type) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(MUSIC::Index::Type) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(MUSIC::Index::Type, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(MUSIC::Index::Type) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(MUSIC::Index::Type, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (MUSIC::Index::Type) 0; case -1: __PYX_VERIFY_RETURN_INT(MUSIC::Index::Type, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(MUSIC::Index::Type, digit, +digits[0]) case -2: if (8 * sizeof(MUSIC::Index::Type) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(MUSIC::Index::Type, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(MUSIC::Index::Type) - 1 > 2 * PyLong_SHIFT) { return (MUSIC::Index::Type) (((MUSIC::Index::Type)-1)*(((((MUSIC::Index::Type)digits[1]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[0]))); } } break; case 2: if (8 * sizeof(MUSIC::Index::Type) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(MUSIC::Index::Type, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(MUSIC::Index::Type) - 1 > 2 * PyLong_SHIFT) { return (MUSIC::Index::Type) ((((((MUSIC::Index::Type)digits[1]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[0]))); } } break; case -3: if (8 * sizeof(MUSIC::Index::Type) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(MUSIC::Index::Type, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(MUSIC::Index::Type) - 1 > 3 * PyLong_SHIFT) { return (MUSIC::Index::Type) (((MUSIC::Index::Type)-1)*(((((((MUSIC::Index::Type)digits[2]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[1]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[0]))); } } break; case 3: if (8 * sizeof(MUSIC::Index::Type) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(MUSIC::Index::Type, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(MUSIC::Index::Type) - 1 > 3 * PyLong_SHIFT) { return (MUSIC::Index::Type) ((((((((MUSIC::Index::Type)digits[2]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[1]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[0]))); } } break; case -4: if (8 * sizeof(MUSIC::Index::Type) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(MUSIC::Index::Type, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(MUSIC::Index::Type) - 1 > 4 * PyLong_SHIFT) { return (MUSIC::Index::Type) (((MUSIC::Index::Type)-1)*(((((((((MUSIC::Index::Type)digits[3]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[2]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[1]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[0]))); } } break; case 4: if (8 * sizeof(MUSIC::Index::Type) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(MUSIC::Index::Type, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(MUSIC::Index::Type) - 1 > 4 * PyLong_SHIFT) { return (MUSIC::Index::Type) ((((((((((MUSIC::Index::Type)digits[3]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[2]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[1]) << PyLong_SHIFT) | (MUSIC::Index::Type)digits[0]))); } } break; } #endif if (sizeof(MUSIC::Index::Type) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(MUSIC::Index::Type, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(MUSIC::Index::Type) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(MUSIC::Index::Type, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else MUSIC::Index::Type val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (MUSIC::Index::Type) -1; } } else { MUSIC::Index::Type val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (MUSIC::Index::Type) -1; val = __Pyx_PyInt_As_MUSIC_3a__3a_Index_3a__3a_Type(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to MUSIC::Index::Type"); return (MUSIC::Index::Type) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to MUSIC::Index::Type"); return (MUSIC::Index::Type) -1; } /* CIntFromPy */ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { const long neg_one = (long) ((long) 0 - (long) 1), const_zero = (long) 0; const int is_unsigned = neg_one > const_zero; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x))) { if (sizeof(long) < sizeof(long)) { __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x)) } else { long val = PyInt_AS_LONG(x); if (is_unsigned && unlikely(val < 0)) { goto raise_neg_overflow; } return (long) val; } } else #endif if (likely(PyLong_Check(x))) { if (is_unsigned) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case 1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0]) case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) { return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) { return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) { return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])); } } break; } #endif #if CYTHON_COMPILING_IN_CPYTHON if (unlikely(Py_SIZE(x) < 0)) { goto raise_neg_overflow; } #else { int result = PyObject_RichCompareBool(x, Py_False, Py_LT); if (unlikely(result < 0)) return (long) -1; if (unlikely(result == 1)) goto raise_neg_overflow; } #endif if (sizeof(long) <= sizeof(unsigned long)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x)) #endif } } else { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)x)->ob_digit; switch (Py_SIZE(x)) { case 0: return (long) 0; case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0])) case 1: __PYX_VERIFY_RETURN_INT(long, digit, +digits[0]) case -2: if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 2: if (8 * sizeof(long) > 1 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -3: if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 3: if (8 * sizeof(long) > 2 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case -4: if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; case 4: if (8 * sizeof(long) > 3 * PyLong_SHIFT) { if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]))); } } break; } #endif if (sizeof(long) <= sizeof(long)) { __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x)) #ifdef HAVE_LONG_LONG } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) { __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x)) #endif } } { #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray) PyErr_SetString(PyExc_RuntimeError, "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); #else long val; PyObject *v = __Pyx_PyNumber_IntOrLong(x); #if PY_MAJOR_VERSION < 3 if (likely(v) && !PyLong_Check(v)) { PyObject *tmp = v; v = PyNumber_Long(tmp); Py_DECREF(tmp); } #endif if (likely(v)) { int one = 1; int is_little = (int)*(unsigned char *)&one; unsigned char *bytes = (unsigned char *)&val; int ret = _PyLong_AsByteArray((PyLongObject *)v, bytes, sizeof(val), is_little, !is_unsigned); Py_DECREF(v); if (likely(!ret)) return val; } #endif return (long) -1; } } else { long val; PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); if (!tmp) return (long) -1; val = __Pyx_PyInt_As_long(tmp); Py_DECREF(tmp); return val; } raise_overflow: PyErr_SetString(PyExc_OverflowError, "value too large to convert to long"); return (long) -1; raise_neg_overflow: PyErr_SetString(PyExc_OverflowError, "can't convert negative value to long"); return (long) -1; } /* FastTypeChecks */ #if CYTHON_COMPILING_IN_CPYTHON static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) { while (a) { a = a->tp_base; if (a == b) return 1; } return b == &PyBaseObject_Type; } static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) { PyObject *mro; if (a == b) return 1; mro = a->tp_mro; if (likely(mro)) { Py_ssize_t i, n; n = PyTuple_GET_SIZE(mro); for (i = 0; i < n; i++) { if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b) return 1; } return 0; } return __Pyx_InBases(a, b); } #if PY_MAJOR_VERSION == 2 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) { PyObject *exception, *value, *tb; int res; __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign __Pyx_ErrFetch(&exception, &value, &tb); res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0; if (unlikely(res == -1)) { PyErr_WriteUnraisable(err); res = 0; } if (!res) { res = PyObject_IsSubclass(err, exc_type2); if (unlikely(res == -1)) { PyErr_WriteUnraisable(err); res = 0; } } __Pyx_ErrRestore(exception, value, tb); return res; } #else static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) { int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0; if (!res) { res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2); } return res; } #endif static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) { Py_ssize_t i, n; assert(PyExceptionClass_Check(exc_type)); n = PyTuple_GET_SIZE(tuple); #if PY_MAJOR_VERSION >= 3 for (i=0; itp_getattro != PyObject_GenericGetAttr)) { attr = __Pyx_PyObject_GetAttrStr(obj, name); goto try_unpack; } if (unlikely(tp->tp_dict == NULL) && unlikely(PyType_Ready(tp) < 0)) { return 0; } descr = _PyType_Lookup(tp, name); if (likely(descr != NULL)) { Py_INCREF(descr); #if PY_MAJOR_VERSION >= 3 #ifdef __Pyx_CyFunction_USED if (likely(PyFunction_Check(descr) || (Py_TYPE(descr) == &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr))) #else if (likely(PyFunction_Check(descr) || (Py_TYPE(descr) == &PyMethodDescr_Type))) #endif #else #ifdef __Pyx_CyFunction_USED if (likely(PyFunction_Check(descr) || __Pyx_CyFunction_Check(descr))) #else if (likely(PyFunction_Check(descr))) #endif #endif { meth_found = 1; } else { f = Py_TYPE(descr)->tp_descr_get; if (f != NULL && PyDescr_IsData(descr)) { attr = f(descr, obj, (PyObject *)Py_TYPE(obj)); Py_DECREF(descr); goto try_unpack; } } } dictptr = _PyObject_GetDictPtr(obj); if (dictptr != NULL && (dict = *dictptr) != NULL) { Py_INCREF(dict); attr = __Pyx_PyDict_GetItemStr(dict, name); if (attr != NULL) { Py_INCREF(attr); Py_DECREF(dict); Py_XDECREF(descr); goto try_unpack; } Py_DECREF(dict); } if (meth_found) { *method = descr; return 1; } if (f != NULL) { attr = f(descr, obj, (PyObject *)Py_TYPE(obj)); Py_DECREF(descr); goto try_unpack; } if (descr != NULL) { *method = descr; return 0; } PyErr_Format(PyExc_AttributeError, #if PY_MAJOR_VERSION >= 3 "'%.50s' object has no attribute '%U'", tp->tp_name, name); #else "'%.50s' object has no attribute '%.400s'", tp->tp_name, PyString_AS_STRING(name)); #endif return 0; #else attr = __Pyx_PyObject_GetAttrStr(obj, name); goto try_unpack; #endif try_unpack: #if CYTHON_UNPACK_METHODS if (likely(attr) && PyMethod_Check(attr) && likely(PyMethod_GET_SELF(attr) == obj)) { PyObject *function = PyMethod_GET_FUNCTION(attr); Py_INCREF(function); Py_DECREF(attr); *method = function; return 1; } #endif *method = attr; return 0; } /* PyObjectCallMethod1 */ static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) { PyObject *result = __Pyx_PyObject_CallOneArg(method, arg); Py_DECREF(method); return result; } static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) { PyObject *method = NULL, *result; int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method); if (likely(is_method)) { result = __Pyx_PyObject_Call2Args(method, obj, arg); Py_DECREF(method); return result; } if (unlikely(!method)) return NULL; return __Pyx__PyObject_CallMethod1(method, arg); } /* CoroutineBase */ #include #include #define __Pyx_Coroutine_Undelegate(gen) Py_CLEAR((gen)->yieldfrom) static int __Pyx_PyGen__FetchStopIterationValue(CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject **pvalue) { PyObject *et, *ev, *tb; PyObject *value = NULL; __Pyx_ErrFetch(&et, &ev, &tb); if (!et) { Py_XDECREF(tb); Py_XDECREF(ev); Py_INCREF(Py_None); *pvalue = Py_None; return 0; } if (likely(et == PyExc_StopIteration)) { if (!ev) { Py_INCREF(Py_None); value = Py_None; } #if PY_VERSION_HEX >= 0x030300A0 else if (Py_TYPE(ev) == (PyTypeObject*)PyExc_StopIteration) { value = ((PyStopIterationObject *)ev)->value; Py_INCREF(value); Py_DECREF(ev); } #endif else if (unlikely(PyTuple_Check(ev))) { if (PyTuple_GET_SIZE(ev) >= 1) { #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS value = PyTuple_GET_ITEM(ev, 0); Py_INCREF(value); #else value = PySequence_ITEM(ev, 0); #endif } else { Py_INCREF(Py_None); value = Py_None; } Py_DECREF(ev); } else if (!__Pyx_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration)) { value = ev; } if (likely(value)) { Py_XDECREF(tb); Py_DECREF(et); *pvalue = value; return 0; } } else if (!__Pyx_PyErr_GivenExceptionMatches(et, PyExc_StopIteration)) { __Pyx_ErrRestore(et, ev, tb); return -1; } PyErr_NormalizeException(&et, &ev, &tb); if (unlikely(!PyObject_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration))) { __Pyx_ErrRestore(et, ev, tb); return -1; } Py_XDECREF(tb); Py_DECREF(et); #if PY_VERSION_HEX >= 0x030300A0 value = ((PyStopIterationObject *)ev)->value; Py_INCREF(value); Py_DECREF(ev); #else { PyObject* args = __Pyx_PyObject_GetAttrStr(ev, __pyx_n_s_args); Py_DECREF(ev); if (likely(args)) { value = PySequence_GetItem(args, 0); Py_DECREF(args); } if (unlikely(!value)) { __Pyx_ErrRestore(NULL, NULL, NULL); Py_INCREF(Py_None); value = Py_None; } } #endif *pvalue = value; return 0; } static CYTHON_INLINE void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *exc_state) { PyObject *t, *v, *tb; t = exc_state->exc_type; v = exc_state->exc_value; tb = exc_state->exc_traceback; exc_state->exc_type = NULL; exc_state->exc_value = NULL; exc_state->exc_traceback = NULL; Py_XDECREF(t); Py_XDECREF(v); Py_XDECREF(tb); } #define __Pyx_Coroutine_AlreadyRunningError(gen) (__Pyx__Coroutine_AlreadyRunningError(gen), (PyObject*)NULL) static void __Pyx__Coroutine_AlreadyRunningError(CYTHON_UNUSED __pyx_CoroutineObject *gen) { const char *msg; if ((0)) { #ifdef __Pyx_Coroutine_USED } else if (__Pyx_Coroutine_Check((PyObject*)gen)) { msg = "coroutine already executing"; #endif #ifdef __Pyx_AsyncGen_USED } else if (__Pyx_AsyncGen_CheckExact((PyObject*)gen)) { msg = "async generator already executing"; #endif } else { msg = "generator already executing"; } PyErr_SetString(PyExc_ValueError, msg); } #define __Pyx_Coroutine_NotStartedError(gen) (__Pyx__Coroutine_NotStartedError(gen), (PyObject*)NULL) static void __Pyx__Coroutine_NotStartedError(CYTHON_UNUSED PyObject *gen) { const char *msg; if ((0)) { #ifdef __Pyx_Coroutine_USED } else if (__Pyx_Coroutine_Check(gen)) { msg = "can't send non-None value to a just-started coroutine"; #endif #ifdef __Pyx_AsyncGen_USED } else if (__Pyx_AsyncGen_CheckExact(gen)) { msg = "can't send non-None value to a just-started async generator"; #endif } else { msg = "can't send non-None value to a just-started generator"; } PyErr_SetString(PyExc_TypeError, msg); } #define __Pyx_Coroutine_AlreadyTerminatedError(gen, value, closing) (__Pyx__Coroutine_AlreadyTerminatedError(gen, value, closing), (PyObject*)NULL) static void __Pyx__Coroutine_AlreadyTerminatedError(CYTHON_UNUSED PyObject *gen, PyObject *value, CYTHON_UNUSED int closing) { #ifdef __Pyx_Coroutine_USED if (!closing && __Pyx_Coroutine_Check(gen)) { PyErr_SetString(PyExc_RuntimeError, "cannot reuse already awaited coroutine"); } else #endif if (value) { #ifdef __Pyx_AsyncGen_USED if (__Pyx_AsyncGen_CheckExact(gen)) PyErr_SetNone(__Pyx_PyExc_StopAsyncIteration); else #endif PyErr_SetNone(PyExc_StopIteration); } } static PyObject *__Pyx_Coroutine_SendEx(__pyx_CoroutineObject *self, PyObject *value, int closing) { __Pyx_PyThreadState_declare PyThreadState *tstate; __Pyx_ExcInfoStruct *exc_state; PyObject *retval; assert(!self->is_running); if (unlikely(self->resume_label == 0)) { if (unlikely(value && value != Py_None)) { return __Pyx_Coroutine_NotStartedError((PyObject*)self); } } if (unlikely(self->resume_label == -1)) { return __Pyx_Coroutine_AlreadyTerminatedError((PyObject*)self, value, closing); } #if CYTHON_FAST_THREAD_STATE __Pyx_PyThreadState_assign tstate = __pyx_tstate; #else tstate = __Pyx_PyThreadState_Current; #endif exc_state = &self->gi_exc_state; if (exc_state->exc_type) { #if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_PYSTON #else if (exc_state->exc_traceback) { PyTracebackObject *tb = (PyTracebackObject *) exc_state->exc_traceback; PyFrameObject *f = tb->tb_frame; Py_XINCREF(tstate->frame); assert(f->f_back == NULL); f->f_back = tstate->frame; } #endif } #if CYTHON_USE_EXC_INFO_STACK exc_state->previous_item = tstate->exc_info; tstate->exc_info = exc_state; #else if (exc_state->exc_type) { __Pyx_ExceptionSwap(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback); } else { __Pyx_Coroutine_ExceptionClear(exc_state); __Pyx_ExceptionSave(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback); } #endif self->is_running = 1; retval = self->body((PyObject *) self, tstate, value); self->is_running = 0; #if CYTHON_USE_EXC_INFO_STACK exc_state = &self->gi_exc_state; tstate->exc_info = exc_state->previous_item; exc_state->previous_item = NULL; __Pyx_Coroutine_ResetFrameBackpointer(exc_state); #endif return retval; } static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state) { PyObject *exc_tb = exc_state->exc_traceback; if (likely(exc_tb)) { #if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_PYSTON #else PyTracebackObject *tb = (PyTracebackObject *) exc_tb; PyFrameObject *f = tb->tb_frame; Py_CLEAR(f->f_back); #endif } } static CYTHON_INLINE PyObject *__Pyx_Coroutine_MethodReturn(CYTHON_UNUSED PyObject* gen, PyObject *retval) { if (unlikely(!retval)) { __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign if (!__Pyx_PyErr_Occurred()) { PyObject *exc = PyExc_StopIteration; #ifdef __Pyx_AsyncGen_USED if (__Pyx_AsyncGen_CheckExact(gen)) exc = __Pyx_PyExc_StopAsyncIteration; #endif __Pyx_PyErr_SetNone(exc); } } return retval; } static CYTHON_INLINE PyObject *__Pyx_Coroutine_FinishDelegation(__pyx_CoroutineObject *gen) { PyObject *ret; PyObject *val = NULL; __Pyx_Coroutine_Undelegate(gen); __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, &val); ret = __Pyx_Coroutine_SendEx(gen, val, 0); Py_XDECREF(val); return ret; } static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value) { PyObject *retval; __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self; PyObject *yf = gen->yieldfrom; if (unlikely(gen->is_running)) return __Pyx_Coroutine_AlreadyRunningError(gen); if (yf) { PyObject *ret; gen->is_running = 1; #ifdef __Pyx_Generator_USED if (__Pyx_Generator_CheckExact(yf)) { ret = __Pyx_Coroutine_Send(yf, value); } else #endif #ifdef __Pyx_Coroutine_USED if (__Pyx_Coroutine_Check(yf)) { ret = __Pyx_Coroutine_Send(yf, value); } else #endif #ifdef __Pyx_AsyncGen_USED if (__pyx_PyAsyncGenASend_CheckExact(yf)) { ret = __Pyx_async_gen_asend_send(yf, value); } else #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3) if (PyGen_CheckExact(yf)) { ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value); } else #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03050000 && defined(PyCoro_CheckExact) && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3) if (PyCoro_CheckExact(yf)) { ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value); } else #endif { if (value == Py_None) ret = Py_TYPE(yf)->tp_iternext(yf); else ret = __Pyx_PyObject_CallMethod1(yf, __pyx_n_s_send, value); } gen->is_running = 0; if (likely(ret)) { return ret; } retval = __Pyx_Coroutine_FinishDelegation(gen); } else { retval = __Pyx_Coroutine_SendEx(gen, value, 0); } return __Pyx_Coroutine_MethodReturn(self, retval); } static int __Pyx_Coroutine_CloseIter(__pyx_CoroutineObject *gen, PyObject *yf) { PyObject *retval = NULL; int err = 0; #ifdef __Pyx_Generator_USED if (__Pyx_Generator_CheckExact(yf)) { retval = __Pyx_Coroutine_Close(yf); if (!retval) return -1; } else #endif #ifdef __Pyx_Coroutine_USED if (__Pyx_Coroutine_Check(yf)) { retval = __Pyx_Coroutine_Close(yf); if (!retval) return -1; } else if (__Pyx_CoroutineAwait_CheckExact(yf)) { retval = __Pyx_CoroutineAwait_Close((__pyx_CoroutineAwaitObject*)yf, NULL); if (!retval) return -1; } else #endif #ifdef __Pyx_AsyncGen_USED if (__pyx_PyAsyncGenASend_CheckExact(yf)) { retval = __Pyx_async_gen_asend_close(yf, NULL); } else if (__pyx_PyAsyncGenAThrow_CheckExact(yf)) { retval = __Pyx_async_gen_athrow_close(yf, NULL); } else #endif { PyObject *meth; gen->is_running = 1; meth = __Pyx_PyObject_GetAttrStr(yf, __pyx_n_s_close); if (unlikely(!meth)) { if (!PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_WriteUnraisable(yf); } PyErr_Clear(); } else { retval = PyObject_CallFunction(meth, NULL); Py_DECREF(meth); if (!retval) err = -1; } gen->is_running = 0; } Py_XDECREF(retval); return err; } static PyObject *__Pyx_Generator_Next(PyObject *self) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self; PyObject *yf = gen->yieldfrom; if (unlikely(gen->is_running)) return __Pyx_Coroutine_AlreadyRunningError(gen); if (yf) { PyObject *ret; gen->is_running = 1; #ifdef __Pyx_Generator_USED if (__Pyx_Generator_CheckExact(yf)) { ret = __Pyx_Generator_Next(yf); } else #endif #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3) if (PyGen_CheckExact(yf)) { ret = _PyGen_Send((PyGenObject*)yf, NULL); } else #endif #ifdef __Pyx_Coroutine_USED if (__Pyx_Coroutine_Check(yf)) { ret = __Pyx_Coroutine_Send(yf, Py_None); } else #endif ret = Py_TYPE(yf)->tp_iternext(yf); gen->is_running = 0; if (likely(ret)) { return ret; } return __Pyx_Coroutine_FinishDelegation(gen); } return __Pyx_Coroutine_SendEx(gen, Py_None, 0); } static PyObject *__Pyx_Coroutine_Close_Method(PyObject *self, CYTHON_UNUSED PyObject *arg) { return __Pyx_Coroutine_Close(self); } static PyObject *__Pyx_Coroutine_Close(PyObject *self) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; PyObject *retval, *raised_exception; PyObject *yf = gen->yieldfrom; int err = 0; if (unlikely(gen->is_running)) return __Pyx_Coroutine_AlreadyRunningError(gen); if (yf) { Py_INCREF(yf); err = __Pyx_Coroutine_CloseIter(gen, yf); __Pyx_Coroutine_Undelegate(gen); Py_DECREF(yf); } if (err == 0) PyErr_SetNone(PyExc_GeneratorExit); retval = __Pyx_Coroutine_SendEx(gen, NULL, 1); if (unlikely(retval)) { const char *msg; Py_DECREF(retval); if ((0)) { #ifdef __Pyx_Coroutine_USED } else if (__Pyx_Coroutine_Check(self)) { msg = "coroutine ignored GeneratorExit"; #endif #ifdef __Pyx_AsyncGen_USED } else if (__Pyx_AsyncGen_CheckExact(self)) { #if PY_VERSION_HEX < 0x03060000 msg = "async generator ignored GeneratorExit - might require Python 3.6+ finalisation (PEP 525)"; #else msg = "async generator ignored GeneratorExit"; #endif #endif } else { msg = "generator ignored GeneratorExit"; } PyErr_SetString(PyExc_RuntimeError, msg); return NULL; } raised_exception = PyErr_Occurred(); if (likely(!raised_exception || __Pyx_PyErr_GivenExceptionMatches2(raised_exception, PyExc_GeneratorExit, PyExc_StopIteration))) { if (raised_exception) PyErr_Clear(); Py_INCREF(Py_None); return Py_None; } return NULL; } static PyObject *__Pyx__Coroutine_Throw(PyObject *self, PyObject *typ, PyObject *val, PyObject *tb, PyObject *args, int close_on_genexit) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; PyObject *yf = gen->yieldfrom; if (unlikely(gen->is_running)) return __Pyx_Coroutine_AlreadyRunningError(gen); if (yf) { PyObject *ret; Py_INCREF(yf); if (__Pyx_PyErr_GivenExceptionMatches(typ, PyExc_GeneratorExit) && close_on_genexit) { int err = __Pyx_Coroutine_CloseIter(gen, yf); Py_DECREF(yf); __Pyx_Coroutine_Undelegate(gen); if (err < 0) return __Pyx_Coroutine_MethodReturn(self, __Pyx_Coroutine_SendEx(gen, NULL, 0)); goto throw_here; } gen->is_running = 1; if (0 #ifdef __Pyx_Generator_USED || __Pyx_Generator_CheckExact(yf) #endif #ifdef __Pyx_Coroutine_USED || __Pyx_Coroutine_Check(yf) #endif ) { ret = __Pyx__Coroutine_Throw(yf, typ, val, tb, args, close_on_genexit); #ifdef __Pyx_Coroutine_USED } else if (__Pyx_CoroutineAwait_CheckExact(yf)) { ret = __Pyx__Coroutine_Throw(((__pyx_CoroutineAwaitObject*)yf)->coroutine, typ, val, tb, args, close_on_genexit); #endif } else { PyObject *meth = __Pyx_PyObject_GetAttrStr(yf, __pyx_n_s_throw); if (unlikely(!meth)) { Py_DECREF(yf); if (!PyErr_ExceptionMatches(PyExc_AttributeError)) { gen->is_running = 0; return NULL; } PyErr_Clear(); __Pyx_Coroutine_Undelegate(gen); gen->is_running = 0; goto throw_here; } if (likely(args)) { ret = PyObject_CallObject(meth, args); } else { ret = PyObject_CallFunctionObjArgs(meth, typ, val, tb, NULL); } Py_DECREF(meth); } gen->is_running = 0; Py_DECREF(yf); if (!ret) { ret = __Pyx_Coroutine_FinishDelegation(gen); } return __Pyx_Coroutine_MethodReturn(self, ret); } throw_here: __Pyx_Raise(typ, val, tb, NULL); return __Pyx_Coroutine_MethodReturn(self, __Pyx_Coroutine_SendEx(gen, NULL, 0)); } static PyObject *__Pyx_Coroutine_Throw(PyObject *self, PyObject *args) { PyObject *typ; PyObject *val = NULL; PyObject *tb = NULL; if (!PyArg_UnpackTuple(args, (char *)"throw", 1, 3, &typ, &val, &tb)) return NULL; return __Pyx__Coroutine_Throw(self, typ, val, tb, args, 1); } static CYTHON_INLINE int __Pyx_Coroutine_traverse_excstate(__Pyx_ExcInfoStruct *exc_state, visitproc visit, void *arg) { Py_VISIT(exc_state->exc_type); Py_VISIT(exc_state->exc_value); Py_VISIT(exc_state->exc_traceback); return 0; } static int __Pyx_Coroutine_traverse(__pyx_CoroutineObject *gen, visitproc visit, void *arg) { Py_VISIT(gen->closure); Py_VISIT(gen->classobj); Py_VISIT(gen->yieldfrom); return __Pyx_Coroutine_traverse_excstate(&gen->gi_exc_state, visit, arg); } static int __Pyx_Coroutine_clear(PyObject *self) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; Py_CLEAR(gen->closure); Py_CLEAR(gen->classobj); Py_CLEAR(gen->yieldfrom); __Pyx_Coroutine_ExceptionClear(&gen->gi_exc_state); #ifdef __Pyx_AsyncGen_USED if (__Pyx_AsyncGen_CheckExact(self)) { Py_CLEAR(((__pyx_PyAsyncGenObject*)gen)->ag_finalizer); } #endif Py_CLEAR(gen->gi_code); Py_CLEAR(gen->gi_name); Py_CLEAR(gen->gi_qualname); Py_CLEAR(gen->gi_modulename); return 0; } static void __Pyx_Coroutine_dealloc(PyObject *self) { __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; PyObject_GC_UnTrack(gen); if (gen->gi_weakreflist != NULL) PyObject_ClearWeakRefs(self); if (gen->resume_label >= 0) { PyObject_GC_Track(self); #if PY_VERSION_HEX >= 0x030400a1 && CYTHON_USE_TP_FINALIZE if (PyObject_CallFinalizerFromDealloc(self)) #else Py_TYPE(gen)->tp_del(self); if (self->ob_refcnt > 0) #endif { return; } PyObject_GC_UnTrack(self); } #ifdef __Pyx_AsyncGen_USED if (__Pyx_AsyncGen_CheckExact(self)) { /* We have to handle this case for asynchronous generators right here, because this code has to be between UNTRACK and GC_Del. */ Py_CLEAR(((__pyx_PyAsyncGenObject*)self)->ag_finalizer); } #endif __Pyx_Coroutine_clear(self); PyObject_GC_Del(gen); } static void __Pyx_Coroutine_del(PyObject *self) { PyObject *error_type, *error_value, *error_traceback; __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self; __Pyx_PyThreadState_declare if (gen->resume_label < 0) { return; } #if !CYTHON_USE_TP_FINALIZE assert(self->ob_refcnt == 0); self->ob_refcnt = 1; #endif __Pyx_PyThreadState_assign __Pyx_ErrFetch(&error_type, &error_value, &error_traceback); #ifdef __Pyx_AsyncGen_USED if (__Pyx_AsyncGen_CheckExact(self)) { __pyx_PyAsyncGenObject *agen = (__pyx_PyAsyncGenObject*)self; PyObject *finalizer = agen->ag_finalizer; if (finalizer && !agen->ag_closed) { PyObject *res = __Pyx_PyObject_CallOneArg(finalizer, self); if (unlikely(!res)) { PyErr_WriteUnraisable(self); } else { Py_DECREF(res); } __Pyx_ErrRestore(error_type, error_value, error_traceback); return; } } #endif if (unlikely(gen->resume_label == 0 && !error_value)) { #ifdef __Pyx_Coroutine_USED #ifdef __Pyx_Generator_USED if (!__Pyx_Generator_CheckExact(self)) #endif { PyObject_GC_UnTrack(self); #if PY_MAJOR_VERSION >= 3 || defined(PyErr_WarnFormat) if (unlikely(PyErr_WarnFormat(PyExc_RuntimeWarning, 1, "coroutine '%.50S' was never awaited", gen->gi_qualname) < 0)) PyErr_WriteUnraisable(self); #else {PyObject *msg; char *cmsg; #if CYTHON_COMPILING_IN_PYPY msg = NULL; cmsg = (char*) "coroutine was never awaited"; #else char *cname; PyObject *qualname; qualname = gen->gi_qualname; cname = PyString_AS_STRING(qualname); msg = PyString_FromFormat("coroutine '%.50s' was never awaited", cname); if (unlikely(!msg)) { PyErr_Clear(); cmsg = (char*) "coroutine was never awaited"; } else { cmsg = PyString_AS_STRING(msg); } #endif if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, cmsg, 1) < 0)) PyErr_WriteUnraisable(self); Py_XDECREF(msg);} #endif PyObject_GC_Track(self); } #endif } else { PyObject *res = __Pyx_Coroutine_Close(self); if (unlikely(!res)) { if (PyErr_Occurred()) PyErr_WriteUnraisable(self); } else { Py_DECREF(res); } } __Pyx_ErrRestore(error_type, error_value, error_traceback); #if !CYTHON_USE_TP_FINALIZE assert(self->ob_refcnt > 0); if (--self->ob_refcnt == 0) { return; } { Py_ssize_t refcnt = self->ob_refcnt; _Py_NewReference(self); self->ob_refcnt = refcnt; } #if CYTHON_COMPILING_IN_CPYTHON assert(PyType_IS_GC(self->ob_type) && _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED); _Py_DEC_REFTOTAL; #endif #ifdef COUNT_ALLOCS --Py_TYPE(self)->tp_frees; --Py_TYPE(self)->tp_allocs; #endif #endif } static PyObject * __Pyx_Coroutine_get_name(__pyx_CoroutineObject *self, CYTHON_UNUSED void *context) { PyObject *name = self->gi_name; if (unlikely(!name)) name = Py_None; Py_INCREF(name); return name; } static int __Pyx_Coroutine_set_name(__pyx_CoroutineObject *self, PyObject *value, CYTHON_UNUSED void *context) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) #else if (unlikely(value == NULL || !PyString_Check(value))) #endif { PyErr_SetString(PyExc_TypeError, "__name__ must be set to a string object"); return -1; } tmp = self->gi_name; Py_INCREF(value); self->gi_name = value; Py_XDECREF(tmp); return 0; } static PyObject * __Pyx_Coroutine_get_qualname(__pyx_CoroutineObject *self, CYTHON_UNUSED void *context) { PyObject *name = self->gi_qualname; if (unlikely(!name)) name = Py_None; Py_INCREF(name); return name; } static int __Pyx_Coroutine_set_qualname(__pyx_CoroutineObject *self, PyObject *value, CYTHON_UNUSED void *context) { PyObject *tmp; #if PY_MAJOR_VERSION >= 3 if (unlikely(value == NULL || !PyUnicode_Check(value))) #else if (unlikely(value == NULL || !PyString_Check(value))) #endif { PyErr_SetString(PyExc_TypeError, "__qualname__ must be set to a string object"); return -1; } tmp = self->gi_qualname; Py_INCREF(value); self->gi_qualname = value; Py_XDECREF(tmp); return 0; } static __pyx_CoroutineObject *__Pyx__Coroutine_New( PyTypeObject* type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure, PyObject *name, PyObject *qualname, PyObject *module_name) { __pyx_CoroutineObject *gen = PyObject_GC_New(__pyx_CoroutineObject, type); if (unlikely(!gen)) return NULL; return __Pyx__Coroutine_NewInit(gen, body, code, closure, name, qualname, module_name); } static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit( __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure, PyObject *name, PyObject *qualname, PyObject *module_name) { gen->body = body; gen->closure = closure; Py_XINCREF(closure); gen->is_running = 0; gen->resume_label = 0; gen->classobj = NULL; gen->yieldfrom = NULL; gen->gi_exc_state.exc_type = NULL; gen->gi_exc_state.exc_value = NULL; gen->gi_exc_state.exc_traceback = NULL; #if CYTHON_USE_EXC_INFO_STACK gen->gi_exc_state.previous_item = NULL; #endif gen->gi_weakreflist = NULL; Py_XINCREF(qualname); gen->gi_qualname = qualname; Py_XINCREF(name); gen->gi_name = name; Py_XINCREF(module_name); gen->gi_modulename = module_name; Py_XINCREF(code); gen->gi_code = code; PyObject_GC_Track(gen); return gen; } /* PatchModuleWithCoroutine */ static PyObject* __Pyx_Coroutine_patch_module(PyObject* module, const char* py_code) { #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) int result; PyObject *globals, *result_obj; globals = PyDict_New(); if (unlikely(!globals)) goto ignore; result = PyDict_SetItemString(globals, "_cython_coroutine_type", #ifdef __Pyx_Coroutine_USED (PyObject*)__pyx_CoroutineType); #else Py_None); #endif if (unlikely(result < 0)) goto ignore; result = PyDict_SetItemString(globals, "_cython_generator_type", #ifdef __Pyx_Generator_USED (PyObject*)__pyx_GeneratorType); #else Py_None); #endif if (unlikely(result < 0)) goto ignore; if (unlikely(PyDict_SetItemString(globals, "_module", module) < 0)) goto ignore; if (unlikely(PyDict_SetItemString(globals, "__builtins__", __pyx_b) < 0)) goto ignore; result_obj = PyRun_String(py_code, Py_file_input, globals, globals); if (unlikely(!result_obj)) goto ignore; Py_DECREF(result_obj); Py_DECREF(globals); return module; ignore: Py_XDECREF(globals); PyErr_WriteUnraisable(module); if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, "Cython module failed to patch module with custom type", 1) < 0)) { Py_DECREF(module); module = NULL; } #else py_code++; #endif return module; } /* PatchGeneratorABC */ #ifndef CYTHON_REGISTER_ABCS #define CYTHON_REGISTER_ABCS 1 #endif #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) static PyObject* __Pyx_patch_abc_module(PyObject *module); static PyObject* __Pyx_patch_abc_module(PyObject *module) { module = __Pyx_Coroutine_patch_module( module, "" "if _cython_generator_type is not None:\n" " try: Generator = _module.Generator\n" " except AttributeError: pass\n" " else: Generator.register(_cython_generator_type)\n" "if _cython_coroutine_type is not None:\n" " try: Coroutine = _module.Coroutine\n" " except AttributeError: pass\n" " else: Coroutine.register(_cython_coroutine_type)\n" ); return module; } #endif static int __Pyx_patch_abc(void) { #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) static int abc_patched = 0; if (CYTHON_REGISTER_ABCS && !abc_patched) { PyObject *module; module = PyImport_ImportModule((PY_MAJOR_VERSION >= 3) ? "collections.abc" : "collections"); if (!module) { PyErr_WriteUnraisable(NULL); if (unlikely(PyErr_WarnEx(PyExc_RuntimeWarning, ((PY_MAJOR_VERSION >= 3) ? "Cython module failed to register with collections.abc module" : "Cython module failed to register with collections module"), 1) < 0)) { return -1; } } else { module = __Pyx_patch_abc_module(module); abc_patched = 1; if (unlikely(!module)) return -1; Py_DECREF(module); } module = PyImport_ImportModule("backports_abc"); if (module) { module = __Pyx_patch_abc_module(module); Py_XDECREF(module); } if (!module) { PyErr_Clear(); } } #else if ((0)) __Pyx_Coroutine_patch_module(NULL, NULL); #endif return 0; } /* Generator */ static PyMethodDef __pyx_Generator_methods[] = { {"send", (PyCFunction) __Pyx_Coroutine_Send, METH_O, (char*) PyDoc_STR("send(arg) -> send 'arg' into generator,\nreturn next yielded value or raise StopIteration.")}, {"throw", (PyCFunction) __Pyx_Coroutine_Throw, METH_VARARGS, (char*) PyDoc_STR("throw(typ[,val[,tb]]) -> raise exception in generator,\nreturn next yielded value or raise StopIteration.")}, {"close", (PyCFunction) __Pyx_Coroutine_Close_Method, METH_NOARGS, (char*) PyDoc_STR("close() -> raise GeneratorExit inside generator.")}, {0, 0, 0, 0} }; static PyMemberDef __pyx_Generator_memberlist[] = { {(char *) "gi_running", T_BOOL, offsetof(__pyx_CoroutineObject, is_running), READONLY, NULL}, {(char*) "gi_yieldfrom", T_OBJECT, offsetof(__pyx_CoroutineObject, yieldfrom), READONLY, (char*) PyDoc_STR("object being iterated by 'yield from', or None")}, {(char*) "gi_code", T_OBJECT, offsetof(__pyx_CoroutineObject, gi_code), READONLY, NULL}, {0, 0, 0, 0, 0} }; static PyGetSetDef __pyx_Generator_getsets[] = { {(char *) "__name__", (getter)__Pyx_Coroutine_get_name, (setter)__Pyx_Coroutine_set_name, (char*) PyDoc_STR("name of the generator"), 0}, {(char *) "__qualname__", (getter)__Pyx_Coroutine_get_qualname, (setter)__Pyx_Coroutine_set_qualname, (char*) PyDoc_STR("qualified name of the generator"), 0}, {0, 0, 0, 0, 0} }; static PyTypeObject __pyx_GeneratorType_type = { PyVarObject_HEAD_INIT(0, 0) "generator", sizeof(__pyx_CoroutineObject), 0, (destructor) __Pyx_Coroutine_dealloc, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_HAVE_FINALIZE, 0, (traverseproc) __Pyx_Coroutine_traverse, 0, 0, offsetof(__pyx_CoroutineObject, gi_weakreflist), 0, (iternextfunc) __Pyx_Generator_Next, __pyx_Generator_methods, __pyx_Generator_memberlist, __pyx_Generator_getsets, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #if CYTHON_USE_TP_FINALIZE 0, #else __Pyx_Coroutine_del, #endif 0, #if CYTHON_USE_TP_FINALIZE __Pyx_Coroutine_del, #elif PY_VERSION_HEX >= 0x030400a1 0, #endif #if PY_VERSION_HEX >= 0x030800b1 0, #endif #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000 0, #endif }; static int __pyx_Generator_init(void) { __pyx_GeneratorType_type.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; __pyx_GeneratorType_type.tp_iter = PyObject_SelfIter; __pyx_GeneratorType = __Pyx_FetchCommonType(&__pyx_GeneratorType_type); if (unlikely(!__pyx_GeneratorType)) { return -1; } return 0; } /* CheckBinaryVersion */ static int __Pyx_check_binary_version(void) { char ctversion[4], rtversion[4]; PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION); PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion()); if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) { char message[200]; PyOS_snprintf(message, sizeof(message), "compiletime version %s of module '%.100s' " "does not match runtime version %s", ctversion, __Pyx_MODULE_NAME, rtversion); return PyErr_WarnEx(NULL, message, 1); } return 0; } /* FunctionExport */ static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig) { PyObject *d = 0; PyObject *cobj = 0; union { void (*fp)(void); void *p; } tmp; d = PyObject_GetAttrString(__pyx_m, (char *)"__pyx_capi__"); if (!d) { PyErr_Clear(); d = PyDict_New(); if (!d) goto bad; Py_INCREF(d); if (PyModule_AddObject(__pyx_m, (char *)"__pyx_capi__", d) < 0) goto bad; } tmp.fp = f; #if PY_VERSION_HEX >= 0x02070000 cobj = PyCapsule_New(tmp.p, sig, 0); #else cobj = PyCObject_FromVoidPtrAndDesc(tmp.p, (void *)sig, 0); #endif if (!cobj) goto bad; if (PyDict_SetItemString(d, name, cobj) < 0) goto bad; Py_DECREF(cobj); Py_DECREF(d); return 0; bad: Py_XDECREF(cobj); Py_XDECREF(d); return -1; } /* InitStrings */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { #if PY_MAJOR_VERSION < 3 if (t->is_unicode) { *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL); } else if (t->intern) { *t->p = PyString_InternFromString(t->s); } else { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); } #else if (t->is_unicode | t->is_str) { if (t->intern) { *t->p = PyUnicode_InternFromString(t->s); } else if (t->encoding) { *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL); } else { *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1); } } else { *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1); } #endif if (!*t->p) return -1; if (PyObject_Hash(*t->p) == -1) return -1; ++t; } return 0; } static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str)); } static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) { Py_ssize_t ignore; return __Pyx_PyObject_AsStringAndSize(o, &ignore); } #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT #if !CYTHON_PEP393_ENABLED static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { char* defenc_c; PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL); if (!defenc) return NULL; defenc_c = PyBytes_AS_STRING(defenc); #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII { char* end = defenc_c + PyBytes_GET_SIZE(defenc); char* c; for (c = defenc_c; c < end; c++) { if ((unsigned char) (*c) >= 128) { PyUnicode_AsASCIIString(o); return NULL; } } } #endif *length = PyBytes_GET_SIZE(defenc); return defenc_c; } #else static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) { if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL; #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII if (likely(PyUnicode_IS_ASCII(o))) { *length = PyUnicode_GET_LENGTH(o); return PyUnicode_AsUTF8(o); } else { PyUnicode_AsASCIIString(o); return NULL; } #else return PyUnicode_AsUTF8AndSize(o, length); #endif } #endif #endif static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT if ( #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII __Pyx_sys_getdefaultencoding_not_ascii && #endif PyUnicode_Check(o)) { return __Pyx_PyUnicode_AsStringAndSize(o, length); } else #endif #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)) if (PyByteArray_Check(o)) { *length = PyByteArray_GET_SIZE(o); return PyByteArray_AS_STRING(o); } else #endif { char* result; int r = PyBytes_AsStringAndSize(o, &result, length); if (unlikely(r < 0)) { return NULL; } else { return result; } } } static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) { int is_true = x == Py_True; if (is_true | (x == Py_False) | (x == Py_None)) return is_true; else return PyObject_IsTrue(x); } static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) { int retval; if (unlikely(!x)) return -1; retval = __Pyx_PyObject_IsTrue(x); Py_DECREF(x); return retval; } static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) { #if PY_MAJOR_VERSION >= 3 if (PyLong_Check(result)) { if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1, "__int__ returned non-int (type %.200s). " "The ability to return an instance of a strict subclass of int " "is deprecated, and may be removed in a future version of Python.", Py_TYPE(result)->tp_name)) { Py_DECREF(result); return NULL; } return result; } #endif PyErr_Format(PyExc_TypeError, "__%.4s__ returned non-%.4s (type %.200s)", type_name, type_name, Py_TYPE(result)->tp_name); Py_DECREF(result); return NULL; } static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) { #if CYTHON_USE_TYPE_SLOTS PyNumberMethods *m; #endif const char *name = NULL; PyObject *res = NULL; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_Check(x) || PyLong_Check(x))) #else if (likely(PyLong_Check(x))) #endif return __Pyx_NewRef(x); #if CYTHON_USE_TYPE_SLOTS m = Py_TYPE(x)->tp_as_number; #if PY_MAJOR_VERSION < 3 if (m && m->nb_int) { name = "int"; res = m->nb_int(x); } else if (m && m->nb_long) { name = "long"; res = m->nb_long(x); } #else if (likely(m && m->nb_int)) { name = "int"; res = m->nb_int(x); } #endif #else if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) { res = PyNumber_Int(x); } #endif if (likely(res)) { #if PY_MAJOR_VERSION < 3 if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) { #else if (unlikely(!PyLong_CheckExact(res))) { #endif return __Pyx_PyNumber_IntOrLongWrongResultType(res, name); } } else if (!PyErr_Occurred()) { PyErr_SetString(PyExc_TypeError, "an integer is required"); } return res; } static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { Py_ssize_t ival; PyObject *x; #if PY_MAJOR_VERSION < 3 if (likely(PyInt_CheckExact(b))) { if (sizeof(Py_ssize_t) >= sizeof(long)) return PyInt_AS_LONG(b); else return PyInt_AsSsize_t(b); } #endif if (likely(PyLong_CheckExact(b))) { #if CYTHON_USE_PYLONG_INTERNALS const digit* digits = ((PyLongObject*)b)->ob_digit; const Py_ssize_t size = Py_SIZE(b); if (likely(__Pyx_sst_abs(size) <= 1)) { ival = likely(size) ? digits[0] : 0; if (size == -1) ival = -ival; return ival; } else { switch (size) { case 2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -2: if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) { return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -3: if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case 4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; case -4: if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) { return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])); } break; } } #endif return PyLong_AsSsize_t(b); } x = PyNumber_Index(b); if (!x) return -1; ival = PyInt_AsSsize_t(x); Py_DECREF(x); return ival; } static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) { return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False); } static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { return PyInt_FromSize_t(ival); } #endif /* Py_PYTHON_H */ music-1.1.16/pymusic/music/0000755000175000017500000000000013571740114012535 500000000000000music-1.1.16/pymusic/music/pymusic.pxd0000644000175000017500000001711413571617503014674 00000000000000# The following include is needed to define a missing type MPI_Message # which is lacking for a certain combination of MPI and mpi4py versions cdef extern from "mpi_compat.h": pass include "pyconfig.pxi" cimport mpi4py.MPI as MPI IF MPI4V2: from mpi4py.libmpi cimport * ELSE: from mpi4py.mpi_c cimport * from libcpp cimport bool as cbool from libcpp.string cimport string from cpython.ref cimport PyObject ########################################################### cdef extern from "music/predict_rank.hh" namespace "MUSIC": cdef int CPredictRank "MUSIC::predictRank" (int, char**) cdef extern from "music/message.hh" namespace "MUSIC": cdef cppclass CMessageHandler "MUSIC::MessageHandler": pass cdef extern from "music/music_c.h" namespace "MUSIC": cdef cppclass CEventHandler "MUSIC::EventHandler": pass cdef cppclass CEHLocal "MUSIC::EHLocal"(CEventHandler): CEHLocal(PyObject*) cdef cppclass CEHGlobal "MUSIC::EHGlobal"(CEventHandler): CEHGlobal(PyObject*) cdef cppclass CMHandler "MUSIC::MHandler"(CMessageHandler): CMHandler(PyObject*, cbool) cdef extern from "music/event.hh" namespace "MUSIC": cdef cppclass CEventHandlerGlobalIndex "MUSIC::EventHandlerGlobalIndex": pass cdef cppclass CEventHandlerLocalIndex "MUSIC::EventHandlerLocalIndex": pass cdef cppclass CEventHandlerPtr "MUSIC::EventHandlerPtr": pass cdef extern from "music/data_map.hh" namespace "MUSIC": cdef cppclass CDataMap "MUSIC::DataMap": pass cdef extern from "music/index_map.hh" namespace "MUSIC": cdef cppclass CIndex "MUSIC::Index": int WILDCARD_MAX ctypedef enum IndexType "MUSIC::Index::Type": IndexGLOBAL "MUSIC::Index::GLOBAL", IndexLOCAL "MUSIC::Index::LOCAL" cdef cppclass GlobalIndex(CIndex): GlobalIndex(int) cdef cppclass LocalIndex(CIndex): LocalIndex(int) cdef cppclass CIndexMap "MUSIC::IndexMap": pass cdef extern from "music/permutation_index.hh" namespace "MUSIC": cdef cppclass PermutationIndex(CIndexMap): PermutationIndex(GlobalIndex*, int) cdef extern from "music/linear_index.hh" namespace "MUSIC": cdef cppclass LinearIndex(CIndexMap): LinearIndex(GlobalIndex, int) cdef extern from "music/array_data.hh" namespace "MUSIC": cdef cppclass CArrayData "MUSIC::ArrayData"(CDataMap): CArrayData(void*, MPI_Datatype, int, int) CArrayData(void*, MPI_Datatype, CIndexMap*) cdef extern from "music/port.hh" namespace "MUSIC": cdef cppclass CPort "MUSIC::Port": cbool isConnected() cbool hasWidth() int width() cdef cppclass CContInputPort "MUSIC::ContInputPort"(CPort): pass cdef cppclass CContOutputPort "MUSIC::ContOutputPort"(CPort): pass cdef cppclass CEventInputPort "MUSIC::EventInputPort"(CPort): pass cdef cppclass CEventOutputPort "MUSIC::EventOutputPort"(CPort): pass cdef cppclass CMessageInputPort "MUSIC::MessageInputPort"(CPort): pass cdef cppclass CMessageOutputPort "MUSIC::MessageOutputPort"(CPort): void insertMessage(double, void*, size_t) # This is necessary for the virtual downcast cdef extern from *: CContInputPort* dc_CContInputPort \ "dynamic_cast" (CPort*) CContOutputPort* dc_CContOutputPort \ "dynamic_cast"(CPort*) CEventInputPort* dc_CEventInputPort \ "dynamic_cast" (CPort*) CEventOutputPort* dc_CEventOutputPort \ "dynamic_cast"(CPort*) CMessageInputPort* dc_CMessageInputPort \ "dynamic_cast" (CPort*) CMessageOutputPort* dc_CMessageOutputPort \ "dynamic_cast"(CPort*) cdef extern from "music/setup.hh" namespace "MUSIC": cdef cppclass CSetup "MUSIC::Setup": CSetup(int&, char**&) except + CSetup(int&, char**&, int, int*) except + cbool config(string, string*) CContInputPort* publishContInput(string) CContOutputPort* publishContOutput(string) CEventInputPort* publishEventInput(string) CEventOutputPort* publishEventOutput(string) CMessageInputPort* publishMessageInput(string) CMessageOutputPort* publishMessageOutput(string) cdef extern from "music/runtime.hh" namespace "MUSIC": cdef cppclass CRuntime "MUSIC::Runtime": CRuntime(CSetup*, double) except + void finalize() double time() void tick() cdef extern void cython_callback(PyObject*, double, IndexType, int) cdef extern from "music/music_c.h" namespace "MUSIC": cdef inline MPI_Comm communicator(CSetup*) cdef inline MPI_Comm communicator(CRuntime*) cdef inline int toint(GlobalIndex) cdef inline int toint(LocalIndex) cdef inline cbool tick(CRuntime*) except False cdef inline CEventHandlerPtr getEventHandlerPtr(IndexType, CEventHandler*) cdef inline void mapImpl "MUSIC::Implementer::mapImpl" ( CContInputPort*, CDataMap*, double, int, cbool) cdef inline void mapImpl "MUSIC::Implementer::mapImpl" ( CContOutputPort*, CDataMap*, int) cdef inline void mapImpl "MUSIC::Implementer::mapImpl" ( CEventInputPort*, CIndexMap*, IndexType, CEventHandlerPtr, double, int) cdef inline void mapImpl "MUSIC::Implementer::mapImpl" ( CEventOutputPort*, CIndexMap*, IndexType, int) cdef inline void insertEventImpl "MUSIC::Implementer::insertEventImpl" ( CEventOutputPort*, double, int) cdef inline void mapImpl "MUSIC::Implementer::mapImpl" ( CMessageInputPort*, CMessageHandler*, double, int) cdef inline void mapImpl "MUSIC::Implementer::mapImpl" ( CMessageOutputPort*, int) cdef inline void insertMessage "MUSIC::Implementer::insertMessage" ( CMessageOutputPort*, double t, void*, size) cdef cbool pythonError cdef PyObject* etype cdef PyObject* evalue cdef PyObject* etraceback ########################################################### cdef class Setup(object): cdef CSetup* ptr cdef list argv cdef int provided cdef readonly MPI.Intracomm comm cdef set ports cdef null(self) cpdef MPI.Intracomm getcomm(self) ########################################################### cdef class Runtime(object): cdef CRuntime* ptr cdef readonly MPI.Intracomm comm cdef set ports ########################################################### cdef class Port(object): cdef CPort* ptr cpdef object null(self) ## Some day, virtual multiple inheritance will be ## a capital crime ^^^^ cdef class ContInputPort(Port): pass cdef class ContOutputPort(Port): pass cdef class EventInputPort(Port): cdef set events cpdef object null(self) cdef class EventOutputPort(Port): pass cdef class MessageInputPort(Port): cdef set events cpdef object null(self) cdef class MessageOutputPort(Port): cdef bint pickled ########################################################## from music.pybuffer cimport Buffer cdef class DataMap(object): cdef CDataMap* ptr cdef Buffer buf cdef class IndexMap(object): cdef CIndexMap* ptr cdef Buffer buf cdef class EventHandler: cdef CEventHandler* ptr cdef object func cdef class MessageHandler: cdef CMessageHandler* ptr cdef object func cdef cbool EventCallback "MUSIC::EventCallback" ( \ PyObject*, double, IndexType, int) except False cdef cbool MessageCallback "MUSIC::MessageCallback" ( \ PyObject*, double, void*, size_t, cbool) except False music-1.1.16/pymusic/music/music_c.h0000644000175000017500000000740113571617503014257 00000000000000#ifndef MUSIC_C_H #define MUSIC_C_H #include #include #include "music/setup.hh" #include "music/runtime.hh" #include "music/index_map.hh" #include "music/event.hh" #include "music/message.hh" #include "music/configuration.hh" #include #include namespace MUSIC { using namespace std; inline MPI_Comm communicator(MUSIC::Setup* s) { return (MPI_Comm) s->communicator(); } inline MPI_Comm communicator(MUSIC::Runtime* r) { return (MPI_Comm) r->communicator(); } inline int toint(MUSIC::GlobalIndex i) { return i; } inline int toint(MUSIC::LocalIndex i) { return i; } static bool pythonError; static PyObject* etype; static PyObject* evalue; static PyObject* etraceback; bool tick(Runtime* ptr) { ptr->tick(); if (! pythonError) return true; pythonError = false; PyErr_Restore(etype, evalue, etraceback); return false; } bool EventCallback(PyObject* func, double d, Index::Type t, int index); class EventHandler { // All this just to insert a virtual d public: PyObject* const func; EventHandler(PyObject* func): func(func) {} virtual ~EventHandler() {} inline void callback(double d, Index::Type t, int i) { if (pythonError) return; if (EventCallback(func, d, t, i)) return; pythonError = true; PyErr_Fetch(&etype, &evalue, &etraceback); } }; class EHLocal: public EventHandler, public EventHandlerLocalIndex { public: EHLocal(PyObject* func): EventHandler(func) {}; void operator() (double d, LocalIndex i) { callback(d, Index::LOCAL, i); } }; class EHGlobal: public EventHandler, public EventHandlerGlobalIndex { public: EHGlobal(PyObject* func): EventHandler(func) {}; void operator() (double d, GlobalIndex i) { callback(d, Index::GLOBAL, i); } }; inline EventHandlerPtr getEventHandlerPtr(Index::Type t, EventHandler* eh) { return (t == Index::GLOBAL) ? EventHandlerPtr((EHGlobal*) eh) : EventHandlerPtr((EHLocal*) eh); } bool MessageCallback(PyObject* func, double t, void* msg, size_t size, bool pickled); class MHandler: public MessageHandler { public: PyObject* const func; const bool pickled; MHandler(PyObject* func, bool pickled): func(func), pickled(pickled) {} void operator () (double t, void* msg, size_t size) { if (pythonError) return; if (MessageCallback(func, t, msg, size, pickled)) return; pythonError = true; PyErr_Fetch(&etype, &evalue, &etraceback); } }; class Implementer { public: static inline void mapImpl(ContInputPort* p, DataMap* d, double v, int i, bool b) { p->ContInputPort::mapImpl(d, v, i, b); } static inline void mapImpl(ContOutputPort* p, DataMap* d, int i) { p->ContOutputPort::mapImpl(d, i); } static inline void mapImpl(EventInputPort* p, IndexMap* m, Index::Type t, EventHandlerPtr e, double d, int i) { p->EventInputPort::mapImpl(m, t, e, d, i); } static inline void mapImpl(EventOutputPort* p, IndexMap* m, Index::Type t, int i) { p->EventOutputPort::mapImpl(m, t, i); } static inline void insertEventImpl(EventOutputPort* p, double d, int i) { p->EventOutputPort::insertEventImpl(d, i); } static inline void mapImpl(MessageInputPort* p, MessageHandler* handler, double accLatency, int maxBuffered) { p->MessageInputPort::mapImpl(handler, accLatency, maxBuffered); } static inline void mapImpl(MessageOutputPort* p, int maxBuffered) { p->MessageOutputPort::mapImpl(maxBuffered); } }; } #endif // MUSIC_C_H music-1.1.16/pymusic/music/pybuffer.pxd0000644000175000017500000000302413571617503015020 00000000000000# The following include is needed to define a missing type MPI_Message # which is lacking for a certain combination of MPI and mpi4py versions cdef extern from "mpi_compat.h": pass include "pyconfig.pxi" cimport mpi4py.MPI as MPI IF MPI4V2: from mpi4py.libmpi cimport * ELSE: from mpi4py.mpi_c cimport * cdef extern from "music/pymusic_c.h": object PyUnicodeString_FromString(const char*) from cpython.ref cimport PyObject # Python 3 buffer interface (PEP 3118) cdef extern from "Python.h": ctypedef struct Py_buffer: void* buf PyObject* obj # owned reference Py_ssize_t len Py_ssize_t itemsize # This is Py_ssize_t so it can be # pointed to by strides in simple case.*/ bint readonly int ndim char* format Py_ssize_t *shape Py_ssize_t *strides Py_ssize_t *suboffsets Py_ssize_t smalltable[2] # static store for shape and strides of # mono-dimensional buffers. void *internal cdef enum: PyBUF_SIMPLE PyBUF_WRITABLE PyBUF_FORMAT PyBUF_ANY_CONTIGUOUS PyBUF_ND PyBUF_STRIDES int PyObject_CheckBuffer(object) int PyObject_GetBuffer(object, Py_buffer *, int) except -1 void PyBuffer_Release(Py_buffer *) int PyBuffer_FillInfo(Py_buffer*, object, void*, Py_ssize_t, bint, int) except -1 cdef class Buffer(object): cdef Py_buffer pybuf cdef MPI.Datatype dtype cdef Py_ssize_t items music-1.1.16/pymusic/music/pymusic_c.h0000644000175000017500000000035513571617503014631 00000000000000#ifndef PYMUSIC_C_H #define PYMUSIC_C_H #include "Python.h" #if PY_MAJOR_VERSION >= 3 #define PyUnicodeString_FromString PyUnicode_FromString #else #define PyUnicodeString_FromString PyString_FromString #endif #endif // PYMUSIC_C_H music-1.1.16/pymusic/music/__init__.py0000644000175000017500000000114613571617503014575 00000000000000############ #https://svn.boost.org/trac/boost/ticket/6580 #https://github.com/salilab/imp/issues/732 # this should be in the __init__.py # # How to check for openmpi? # import sys def setrc(): import mpi4py.rc mpi4py.rc.initialize = False mpi4py.rc.finalize = False if sys.platform == 'linux2': import DLFCN as dl flags = sys.getdlopenflags() sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL) setrc() from .pymusic import * sys.setdlopenflags(flags) else: setrc() from .pymusic import * #import DLFCN as dl #import sys #sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL) music-1.1.16/pymusic/pybuffer.pxd0000644000175000017500000000302413571617503013700 00000000000000# The following include is needed to define a missing type MPI_Message # which is lacking for a certain combination of MPI and mpi4py versions cdef extern from "mpi_compat.h": pass include "pyconfig.pxi" cimport mpi4py.MPI as MPI IF MPI4V2: from mpi4py.libmpi cimport * ELSE: from mpi4py.mpi_c cimport * cdef extern from "music/pymusic_c.h": object PyUnicodeString_FromString(const char*) from cpython.ref cimport PyObject # Python 3 buffer interface (PEP 3118) cdef extern from "Python.h": ctypedef struct Py_buffer: void* buf PyObject* obj # owned reference Py_ssize_t len Py_ssize_t itemsize # This is Py_ssize_t so it can be # pointed to by strides in simple case.*/ bint readonly int ndim char* format Py_ssize_t *shape Py_ssize_t *strides Py_ssize_t *suboffsets Py_ssize_t smalltable[2] # static store for shape and strides of # mono-dimensional buffers. void *internal cdef enum: PyBUF_SIMPLE PyBUF_WRITABLE PyBUF_FORMAT PyBUF_ANY_CONTIGUOUS PyBUF_ND PyBUF_STRIDES int PyObject_CheckBuffer(object) int PyObject_GetBuffer(object, Py_buffer *, int) except -1 void PyBuffer_Release(Py_buffer *) int PyBuffer_FillInfo(Py_buffer*, object, void*, Py_ssize_t, bint, int) except -1 cdef class Buffer(object): cdef Py_buffer pybuf cdef MPI.Datatype dtype cdef Py_ssize_t items music-1.1.16/pymusic/tests.py0000644000175000017500000000043313571617503013056 00000000000000# compile time python tests # Test mpi4py version import mpi4py from distutils.version import LooseVersion is_v2 = LooseVersion(mpi4py.__version__) > LooseVersion("1.3.1") # Write configuration file with open("pyconfig.pxi", "w") as f: f.write("DEF MPI4V2 = {0}".format(is_v2)) music-1.1.16/pymusic/mpi_compat.h0000644000175000017500000000023213571617503013640 00000000000000#include #if (MPI_VERSION < 3) && !defined(PyMPI_HAVE_MPI_Message) typedef void *PyMPI_MPI_Message; #define MPI_Message PyMPI_MPI_Message #endif music-1.1.16/pymusic/Makefile.in0000644000175000017500000007607113571626611013422 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 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@ subdir = pymusic ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.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 CONFIG_CLEAN_FILES = setup.py 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)$(pkgpyexecdir)" LTLIBRARIES = $(pkgpyexec_LTLIBRARIES) pybuffer_la_LIBADD = am_pybuffer_la_OBJECTS = pybuffer_la-pybuffer.lo pybuffer_la_OBJECTS = $(am_pybuffer_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 = pybuffer_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(pybuffer_la_CXXFLAGS) \ $(CXXFLAGS) $(pybuffer_la_LDFLAGS) $(LDFLAGS) -o $@ pymusic_la_DEPENDENCIES = $(top_builddir)/src/libmusic.la \ $(top_builddir)/src/libmusic-c.la am_pymusic_la_OBJECTS = pymusic_la-pymusic.lo pymusic_la_OBJECTS = $(am_pymusic_la_OBJECTS) pymusic_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(pymusic_la_CXXFLAGS) \ $(CXXFLAGS) $(pymusic_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) depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/pybuffer_la-pybuffer.Plo \ ./$(DEPDIR)/pymusic_la-pymusic.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 = $(pybuffer_la_SOURCES) $(pymusic_la_SOURCES) DIST_SOURCES = $(pybuffer_la_SOURCES) $(pymusic_la_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 \ distdir distdir-am 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)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/setup.py.in \ $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 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" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BINDIR = @BINDIR@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXAMPLESDIR = @EXAMPLESDIR@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ FGREP = @FGREP@ GREP = @GREP@ HAVE_PYTHON = @HAVE_PYTHON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LAUNCHSTYLE = @LAUNCHSTYLE@ 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@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPI_CFLAGS = @MPI_CFLAGS@ MPI_CXXFLAGS = @MPI_CXXFLAGS@ MPI_LDFLAGS = @MPI_LDFLAGS@ MPI_UTILS = @MPI_UTILS@ MUSICCONFIGDIR = @MUSICCONFIGDIR@ MUSIC_ANYSOURCE = @MUSIC_ANYSOURCE@ MUSIC_HAVE_LONG_LONG = @MUSIC_HAVE_LONG_LONG@ MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER = @MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER@ MUSIC_HAVE_SIZE_T = @MUSIC_HAVE_SIZE_T@ MUSIC_ISENDWAITALL = @MUSIC_ISENDWAITALL@ MUSIC_USE_MPI = @MUSIC_USE_MPI@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPTIONAL_UTILS = @OPTIONAL_UTILS@ 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@ PKGDATADIR = @PKGDATADIR@ PKGEXTRABINDIR = @PKGEXTRABINDIR@ PYBUFFER_CPPFLAGS = @PYBUFFER_CPPFLAGS@ PYBUFFER_CXXFLAGS = @PYBUFFER_CXXFLAGS@ PYEXECDIR = @PYEXECDIR@ PYMUSIC_CPPFLAGS = @PYMUSIC_CPPFLAGS@ PYMUSIC_CXXFLAGS = @PYMUSIC_CXXFLAGS@ PYMUSIC_SUBDIR = @PYMUSIC_SUBDIR@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ ROS_SUBDIR = @ROS_SUBDIR@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTDIR = @TESTDIR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = examples EXTRA_DIST = setup.py.in tests.py pymusic.pyx pymusic.pxd pybuffer.pyx pybuffer.pxd \ music/__init__.py music/music_c.h music/pybuffer.pxd music/pymusic.pxd \ music/pymusic_c.h mpi_compat.h BUILT_SOURCES = pymusic.cpp pybuffer.cpp pkgpyexec_LTLIBRARIES = pymusic.la pybuffer.la pymusic_la_SOURCES = pymusic.cpp # main sources to link to pymusic_la_LDFLAGS = -shared -module -avoid-version -export-dynamic $(MPI_LDFLAGS) pybuffer_la_SOURCES = pybuffer.cpp # main sources to link to pybuffer_la_LDFLAGS = -shared -module -avoid-version -export-dynamic $(MPI_LDFLAGS) pymusic_la_CPPFLAGS = \ $(MPI_CPPFLAGS) \ $(PYMUSIC_CPPFLAGS) \ -I$(top_srcdir)/src -I$(top_builddir)/src pymusic_la_CXXFLAGS = \ $(PYMUSIC_CXXFLAGS) \ $(MPI_CXXFLAGS) pymusic_la_LIBADD = \ $(top_builddir)/src/libmusic.la \ $(top_builddir)/src/libmusic-c.la pybuffer_la_CPPFLAGS = \ $(MPI_CPPFLAGS) \ $(PYBUFFER_CPPFLAGS) \ -I$(top_srcdir)/src pybuffer_la_CXXFLAGS = \ $(PYBUFFER_CXXFLAGS) \ $(MPI_CXXFLAGS) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pymusic/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu pymusic/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): setup.py: $(top_builddir)/config.status $(srcdir)/setup.py.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ install-pkgpyexecLTLIBRARIES: $(pkgpyexec_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(pkgpyexec_LTLIBRARIES)'; test -n "$(pkgpyexecdir)" || 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)$(pkgpyexecdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgpyexecdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgpyexecdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgpyexecdir)"; \ } uninstall-pkgpyexecLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(pkgpyexec_LTLIBRARIES)'; test -n "$(pkgpyexecdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgpyexecdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgpyexecdir)/$$f"; \ done clean-pkgpyexecLTLIBRARIES: -test -z "$(pkgpyexec_LTLIBRARIES)" || rm -f $(pkgpyexec_LTLIBRARIES) @list='$(pkgpyexec_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}; \ } pybuffer.la: $(pybuffer_la_OBJECTS) $(pybuffer_la_DEPENDENCIES) $(EXTRA_pybuffer_la_DEPENDENCIES) $(AM_V_CXXLD)$(pybuffer_la_LINK) -rpath $(pkgpyexecdir) $(pybuffer_la_OBJECTS) $(pybuffer_la_LIBADD) $(LIBS) pymusic.la: $(pymusic_la_OBJECTS) $(pymusic_la_DEPENDENCIES) $(EXTRA_pymusic_la_DEPENDENCIES) $(AM_V_CXXLD)$(pymusic_la_LINK) -rpath $(pkgpyexecdir) $(pymusic_la_OBJECTS) $(pymusic_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pybuffer_la-pybuffer.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pymusic_la-pymusic.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .cpp.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 $@ $< .cpp.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) '$<'` .cpp.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 $@ $< pybuffer_la-pybuffer.lo: pybuffer.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pybuffer_la_CPPFLAGS) $(CPPFLAGS) $(pybuffer_la_CXXFLAGS) $(CXXFLAGS) -MT pybuffer_la-pybuffer.lo -MD -MP -MF $(DEPDIR)/pybuffer_la-pybuffer.Tpo -c -o pybuffer_la-pybuffer.lo `test -f 'pybuffer.cpp' || echo '$(srcdir)/'`pybuffer.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pybuffer_la-pybuffer.Tpo $(DEPDIR)/pybuffer_la-pybuffer.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='pybuffer.cpp' object='pybuffer_la-pybuffer.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) $(pybuffer_la_CPPFLAGS) $(CPPFLAGS) $(pybuffer_la_CXXFLAGS) $(CXXFLAGS) -c -o pybuffer_la-pybuffer.lo `test -f 'pybuffer.cpp' || echo '$(srcdir)/'`pybuffer.cpp pymusic_la-pymusic.lo: pymusic.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pymusic_la_CPPFLAGS) $(CPPFLAGS) $(pymusic_la_CXXFLAGS) $(CXXFLAGS) -MT pymusic_la-pymusic.lo -MD -MP -MF $(DEPDIR)/pymusic_la-pymusic.Tpo -c -o pymusic_la-pymusic.lo `test -f 'pymusic.cpp' || echo '$(srcdir)/'`pymusic.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pymusic_la-pymusic.Tpo $(DEPDIR)/pymusic_la-pymusic.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='pymusic.cpp' object='pymusic_la-pymusic.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) $(pymusic_la_CPPFLAGS) $(CPPFLAGS) $(pymusic_la_CXXFLAGS) $(CXXFLAGS) -c -o pymusic_la-pymusic.lo `test -f 'pymusic.cpp' || echo '$(srcdir)/'`pymusic.cpp mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # 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" 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 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 @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 check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-recursive all-am: Makefile $(LTLIBRARIES) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(pkgpyexecdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-recursive clean-am: clean-generic clean-libtool clean-local \ clean-pkgpyexecLTLIBRARIES mostlyclean-am distclean: distclean-recursive -rm -f ./$(DEPDIR)/pybuffer_la-pybuffer.Plo -rm -f ./$(DEPDIR)/pymusic_la-pymusic.Plo -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ 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-pkgpyexecLTLIBRARIES @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-exec-hook 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 ./$(DEPDIR)/pybuffer_la-pybuffer.Plo -rm -f ./$(DEPDIR)/pymusic_la-pymusic.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-pkgpyexecLTLIBRARIES .MAKE: $(am__recursive_targets) all check install install-am \ install-exec-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--depfiles check check-am clean clean-generic clean-libtool \ clean-local clean-pkgpyexecLTLIBRARIES 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-exec-hook install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-pkgpyexecLTLIBRARIES install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs installdirs-am 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-pkgpyexecLTLIBRARIES .PRECIOUS: Makefile pyconfig.pxi: tests.py cd $(top_srcdir)/pymusic; $(PYTHON) tests.py pybuffer.cpp: pyconfig.pxi pybuffer.pyx pybuffer.pxd cd $(top_srcdir)/pymusic; $(PYTHON) -c \ "from Cython.Build import cythonize; \ cythonize('pybuffer.pyx', verbose=1)" pymusic.cpp: pyconfig.pxi pymusic.pyx pymusic.pxd cd $(top_srcdir)/pymusic; $(PYTHON) -c \ "from Cython.Build import cythonize; \ cythonize('pymusic.pyx', verbose=1)" @DEB_PACKAGE_TRUE@install-exec-hook: @DEB_PACKAGE_TRUE@ $(PYTHON) setup.py build \ @DEB_PACKAGE_TRUE@ --build-base=$(abs_builddir)/build install \ @DEB_PACKAGE_TRUE@ --install-layout=deb \ @DEB_PACKAGE_TRUE@ --prefix=$(DESTDIR)$(prefix) @DEB_PACKAGE_FALSE@install-exec-hook: @DEB_PACKAGE_FALSE@ $(PYTHON) setup.py build \ @DEB_PACKAGE_FALSE@ --build-base=$(abs_builddir)/build install \ @DEB_PACKAGE_FALSE@ --prefix=$(DESTDIR)$(prefix) @DEB_PACKAGE_FALSE@ --install-lib=$(DESTDIR)$(pyexecdir) \ @DEB_PACKAGE_FALSE@ --install-scripts=$(DESTDIR)$(bindir) \ @DEB_PACKAGE_FALSE@ --install-data=$(DESTDIR)$(pkgdatadir) clean-local: -rm -rf $(abs_builddir)/build # 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: music-1.1.16/pymusic/setup.py.in0000644000175000017500000000055013571617503013461 00000000000000from distutils.core import setup setup( name='@PACKAGE_NAME@', version='@PACKAGE_VERSION@', description='pyMUSIC provides Python bindings for MUSIC', author='Alexander Peyser', author_email='a.peyser@fz-juelich.de', url='unknown', license='GPLv2+', packages=['music'], package_dir={'music': '@top_srcdir@/pymusic/music'} ) music-1.1.16/config.guess0000755000175000017500000012637313571626611012205 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2018 Free Software Foundation, Inc. timestamp='2018-02-24' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess # # Please send patches to . me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Options: -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-2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > "$dummy.c" ; for c in cc gcc c89 c99 ; do if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "$UNAME_SYSTEM" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu eval "$set_cc_for_build" cat <<-EOF > "$dummy.c" #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #else LIBC=gnu #endif EOF eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" # If ldd exists, use it to detect musl libc. if command -v ldd >/dev/null && \ ldd --version 2>&1 | grep -q ^musl then LIBC=musl fi ;; esac # Note: order is significant - the case branches are not exclusive. case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ "/sbin/$sysctl" 2>/dev/null || \ "/usr/sbin/$sysctl" 2>/dev/null || \ echo unknown)` case "$UNAME_MACHINE_ARCH" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` machine="${arch}${endian}"-unknown ;; *) machine="$UNAME_MACHINE_ARCH"-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. case "$UNAME_MACHINE_ARCH" in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval "$set_cc_for_build" if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # Determine ABI tags. case "$UNAME_MACHINE_ARCH" in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "$UNAME_VERSION" in Debian*) release='-gnu' ;; *) release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "$machine-${os}${release}${abi}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" exit ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" exit ;; *:MidnightBSD:*:*) echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" exit ;; *:ekkoBSD:*:*) echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" exit ;; *:SolidBSD:*:*) echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd"$UNAME_RELEASE" exit ;; *:MirBSD:*:*) echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" exit ;; *:Sortix:*:*) echo "$UNAME_MACHINE"-unknown-sortix exit ;; *:Redox:*:*) echo "$UNAME_MACHINE"-unknown-redox exit ;; mips:OSF1:*.*) echo mips-dec-osf1 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 ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo "$UNAME_MACHINE"-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo "$UNAME_MACHINE"-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix"$UNAME_RELEASE" exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux"$UNAME_RELEASE" exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval "$set_cc_for_build" SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH=x86_64 fi fi echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos"$UNAME_RELEASE" exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos"$UNAME_RELEASE" ;; sun4) echo sparc-sun-sunos"$UNAME_RELEASE" ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos"$UNAME_RELEASE" exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint"$UNAME_RELEASE" exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint"$UNAME_RELEASE" exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint"$UNAME_RELEASE" exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint"$UNAME_RELEASE" exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint"$UNAME_RELEASE" exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint"$UNAME_RELEASE" exit ;; m68k:machten:*:*) echo m68k-apple-machten"$UNAME_RELEASE" exit ;; powerpc:machten:*:*) echo powerpc-apple-machten"$UNAME_RELEASE" exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix"$UNAME_RELEASE" exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix"$UNAME_RELEASE" exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix"$UNAME_RELEASE" exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`"$dummy" "$dummyarg"` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos"$UNAME_RELEASE" exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] then if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ [ "$TARGET_BINARY_INTERFACE"x = x ] then echo m88k-dg-dgux"$UNAME_RELEASE" else echo m88k-dg-dguxbcs"$UNAME_RELEASE" fi else echo i586-dg-dgux"$UNAME_RELEASE" fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/lslpp ] ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi echo "$IBM_ARCH"-ibm-aix"$IBM_REV" exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) 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) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" exit ;; i*:CYGWIN*:*) echo "$UNAME_MACHINE"-pc-cygwin exit ;; *:MINGW64*:*) echo "$UNAME_MACHINE"-pc-mingw64 exit ;; *:MINGW*:*) echo "$UNAME_MACHINE"-pc-mingw32 exit ;; *:MSYS*:*) echo "$UNAME_MACHINE"-pc-msys exit ;; i*: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 ;; i*:UWIN*:*) echo "$UNAME_MACHINE"-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; *:GNU:*:*) # the GNU system echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" exit ;; i*86:Minix:*:*) echo "$UNAME_MACHINE"-pc-minix exit ;; aarch64:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; arc:Linux:*:* | arceb:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; arm*:Linux:*:*) eval "$set_cc_for_build" if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi else echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf fi fi exit ;; avr32*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; cris:Linux:*:*) echo "$UNAME_MACHINE"-axis-linux-"$LIBC" exit ;; crisv32:Linux:*:*) echo "$UNAME_MACHINE"-axis-linux-"$LIBC" exit ;; e2k:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; frv:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; hexagon:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; i*86:Linux:*:*) echo "$UNAME_MACHINE"-pc-linux-"$LIBC" exit ;; ia64:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; k1om:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; m32r*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; m68*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } ;; mips64el:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; openrisc*:Linux:*:*) echo or1k-unknown-linux-"$LIBC" exit ;; or32:Linux:*:* | or1k*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; padre:Linux:*:*) echo sparc-unknown-linux-"$LIBC" exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-"$LIBC" exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; *) echo hppa-unknown-linux-"$LIBC" ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-"$LIBC" exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-"$LIBC" exit ;; ppc64le:Linux:*:*) echo powerpc64le-unknown-linux-"$LIBC" exit ;; ppcle:Linux:*:*) echo powerpcle-unknown-linux-"$LIBC" exit ;; riscv32:Linux:*:* | riscv64:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" exit ;; sh64*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; sh*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; tile*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; vax:Linux:*:*) echo "$UNAME_MACHINE"-dec-linux-"$LIBC" exit ;; x86_64:Linux:*:*) if objdump -f /bin/sh | grep -q elf32-x86-64; then echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32 else echo "$UNAME_MACHINE"-pc-linux-"$LIBC" fi 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.*:*) UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" else echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" else echo "$UNAME_MACHINE"-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configure will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos"$UNAME_RELEASE" exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos"$UNAME_RELEASE" exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos"$UNAME_RELEASE" exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos"$UNAME_RELEASE" exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv"$UNAME_RELEASE" exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo "$UNAME_MACHINE"-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo "$UNAME_MACHINE"-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux"$UNAME_RELEASE" exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv"$UNAME_RELEASE" else echo mips-unknown-sysv"$UNAME_RELEASE" fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux"$UNAME_RELEASE" exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux"$UNAME_RELEASE" exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux"$UNAME_RELEASE" exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux"$UNAME_RELEASE" exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux"$UNAME_RELEASE" exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux"$UNAME_RELEASE" exit ;; SX-ACE:SUPER-UX:*:*) echo sxace-nec-superux"$UNAME_RELEASE" exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody"$UNAME_RELEASE" exit ;; *:Rhapsody:*:*) echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown eval "$set_cc_for_build" if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc fi fi elif test "$UNAME_PROCESSOR" = i386 ; then # Avoid executing cc on OS X 10.9, as it ships with a stub # that puts up a graphical alert prompting to install # developer tools. Any system running Mac OS X 10.7 or # later (Darwin 11 and later) is required to have a 64-bit # processor. This is not true of the ARM version of Darwin # that Apple uses in portable devices. UNAME_PROCESSOR=x86_64 fi echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-*:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk"$UNAME_RELEASE" exit ;; NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk"$UNAME_RELEASE" exit ;; NSR-*:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk"$UNAME_RELEASE" exit ;; NSV-*:NONSTOP_KERNEL:*:*) echo nsv-tandem-nsk"$UNAME_RELEASE" exit ;; NSX-*:NONSTOP_KERNEL:*:*) echo nsx-tandem-nsk"$UNAME_RELEASE" exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = 386; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo "$UNAME_MACHINE"-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux"$UNAME_RELEASE" exit ;; *:DragonFly:*:*) echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "$UNAME_MACHINE" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" exit ;; i*86:rdos:*:*) echo "$UNAME_MACHINE"-pc-rdos exit ;; i*86:AROS:*:*) echo "$UNAME_MACHINE"-pc-aros exit ;; x86_64:VMkernel:*:*) echo "$UNAME_MACHINE"-unknown-esx exit ;; amd64:Isilon\ OneFS:*:*) echo x86_64-unknown-onefs exit ;; esac echo "$0: unable to guess system type" >&2 case "$UNAME_MACHINE:$UNAME_SYSTEM" in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 <&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-functions 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: music-1.1.16/ltmain.sh0000644000175000017500000117671413571626607011517 00000000000000#! /bin/sh ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in ## by inline-source v2014-01-03.01 # libtool (GNU libtool) 2.4.6 # Provide generalized library-building support services. # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996-2015 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.6 Debian-2.4.6-11" package_revision=2.4.6 ## ------ ## ## 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=2015-01-20.17; # UTC # General shell script boiler plate, and helper functions. # Written by Gary V. Vaughan, 2004 # Copyright (C) 2004-2015 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. # 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. # 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNES 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 . # Please report bugs or propose patches to gary@gnu.org. ## ------ ## ## 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 # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # 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 ## ------------------------- ## ## 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" ## ----------------- ## ## 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='eval 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_for_eval "$2" eval "$1+=\\ \$func_quote_for_eval_result" }' else func_append_quoted () { $debug_cmd func_quote_for_eval "$2" eval "$1=\$$1\\ \$func_quote_for_eval_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_for_eval ARG... # -------------------------- # Aesthetically quote ARGs to be evaled later. # This function returns two values: # i) func_quote_for_eval_result # double-quoted, suitable for a subsequent eval # ii) func_quote_for_eval_unquoted_result # has all characters that are still active within double # quotes backslashified. func_quote_for_eval () { $debug_cmd func_quote_for_eval_unquoted_result= func_quote_for_eval_result= while test 0 -lt $#; do case $1 in *[\\\`\"\$]*) _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;; *) _G_unquoted_arg=$1 ;; esac if test -n "$func_quote_for_eval_unquoted_result"; then func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg" else func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg" fi case $_G_unquoted_arg 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. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") _G_quoted_arg=\"$_G_unquoted_arg\" ;; *) _G_quoted_arg=$_G_unquoted_arg ;; esac if test -n "$func_quote_for_eval_result"; then func_append func_quote_for_eval_result " $_G_quoted_arg" else func_append func_quote_for_eval_result "$_G_quoted_arg" fi shift done } # func_quote_for_expand ARG # ------------------------- # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { $debug_cmd case $1 in *[\\\`\"]*) _G_arg=`$ECHO "$1" | $SED \ -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;; *) _G_arg=$1 ;; esac case $_G_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") _G_arg=\"$_G_arg\" ;; esac func_quote_for_expand_result=$_G_arg } # 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_for_expand "$_G_cmd" eval "func_notquiet $func_quote_for_expand_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_for_expand "$_G_cmd" eval "func_echo $func_quote_for_expand_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 # Set a version string for this script. scriptversion=2015-10-07.11; # UTC # A portable, pluggable option parser for Bourne shell. # Written by Gary V. Vaughan, 2010 # Copyright (C) 2010-2015 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. # 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 . # Please report bugs or propose patches to gary@gnu.org. ## ------ ## ## 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 '# warranty; '. # # 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 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 # to the main code. A hook is just a named list of of function, 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 functions called by FUNC_NAME. func_remove_hook () { $debug_cmd eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' } # func_run_hooks FUNC_NAME [ARG]... # --------------------------------- # Run all hook functions registered to FUNC_NAME. # It is 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 funcions.n" ;; esac eval _G_hook_fns=\$$1_hooks; shift for _G_hook in $_G_hook_fns; do if eval $_G_hook '"$@"'; then # store returned options list back into positional # parameters for next 'cmd' execution. eval _G_hook_result=\$${_G_hook}_result eval set dummy "$_G_hook_result"; shift _G_rc_run_hooks=: fi done $_G_rc_run_hooks && func_run_hooks_result=$_G_hook_result } ## --------------- ## ## Option parsing. ## ## --------------- ## # In order to add your own option parsing hooks, you must accept the # full positional parameter list in your hook function, you may remove/edit # any options that you action, and then pass back the remaining unprocessed # options in '_result', escaped suitably for # 'eval'. In this case you also must return $EXIT_SUCCESS to let the # hook's caller know that it should pay attention to # '_result'. Returning $EXIT_FAILURE signalizes that # arguments are left untouched by the hook and therefore caller will ignore the # result variable. # # 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). There is # # no need to do the equivalent (but slower) action: # # func_quote_for_eval ${1+"$@"} # # my_options_prep_result=$func_quote_for_eval_result # false # } # 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 "$@", we could need that later # # if $args_changed is true. # set dummy "$_G_opt" ${1+"$@"}; shift; break ;; # esac # done # # if $args_changed; then # func_quote_for_eval ${1+"$@"} # my_silent_option_result=$func_quote_for_eval_result # fi # # $args_changed # } # 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." # # false # } # 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 _G_func_options_finish_exit=false if func_run_hooks func_options ${1+"$@"}; then func_options_finish_result=$func_run_hooks_result _G_func_options_finish_exit=: fi $_G_func_options_finish_exit } # 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_rc_options=false for my_func in options_prep parse_options validate_options options_finish do if eval func_$my_func '${1+"$@"}'; then eval _G_res_var='$'"func_${my_func}_result" eval set dummy "$_G_res_var" ; shift _G_rc_options=: fi done # Save modified positional parameters for caller. As a top-level # options-parser function we always need to set the 'func_options_result' # variable (regardless the $_G_rc_options value). if $_G_rc_options; then func_options_result=$_G_res_var else func_quote_for_eval ${1+"$@"} func_options_result=$func_quote_for_eval_result fi $_G_rc_options } # 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 $EXIT_SUCCESS (otherwise $EXIT_FAILURE is returned). func_hookable func_options_prep func_options_prep () { $debug_cmd # Option defaults: opt_verbose=false opt_warning_types= _G_rc_options_prep=false if func_run_hooks func_options_prep ${1+"$@"}; then _G_rc_options_prep=: # save modified positional parameters for caller func_options_prep_result=$func_run_hooks_result fi $_G_rc_options_prep } # func_parse_options [ARG]... # --------------------------- # The main option parsing loop. func_hookable func_parse_options func_parse_options () { $debug_cmd func_parse_options_result= _G_rc_parse_options=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. if func_run_hooks func_parse_options ${1+"$@"}; then eval set dummy "$func_run_hooks_result"; shift _G_rc_parse_options=: fi # Break out of the loop if we already parsed every option. test $# -gt 0 || break _G_match_parse_options=: _G_opt=$1 shift case $_G_opt in --debug|-x) debug_cmd='set -x' func_echo "enabling shell trace mode" $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_rc_parse_options=: 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_rc_parse_options=: ; break ;; -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; *) set dummy "$_G_opt" ${1+"$@"}; shift _G_match_parse_options=false break ;; esac $_G_match_parse_options && _G_rc_parse_options=: done if $_G_rc_parse_options; then # save modified positional parameters for caller func_quote_for_eval ${1+"$@"} func_parse_options_result=$func_quote_for_eval_result fi $_G_rc_parse_options } # 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 _G_rc_validate_options=false # Display all warnings if -W was not given. test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" if func_run_hooks func_validate_options ${1+"$@"}; then # save modified positional parameters for caller func_validate_options_result=$func_run_hooks_result _G_rc_validate_options=: fi # Bail if the options were screwed! $exit_cmd $EXIT_FAILURE $_G_rc_validate_options } ## ----------------- ## ## 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#*=} test "x$func_split_equals_lhs" = "x$1" \ && func_split_equals_rhs= }' 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. func_version () { $debug_cmd printf '%s\n' "$progname $scriptversion" $SED -n ' /(C)/!b go :more /\./!{ N s|\n# | | b more } :go /^# Written by /,/# warranty; / { s|^# || s|^# *$|| s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| p } /^# Written by / { s|^# || p } /^warranty; /q' < "$progpath" exit $? } # 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: # Set a version string. scriptversion='(GNU libtool) 2.4.6' # 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.6-11 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=: # 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_for_eval ${1+"$@"} libtool_options_prep_result=$func_quote_for_eval_result fi $_G_rc_lt_options_prep } 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_for_eval ${1+"$@"} libtool_parse_options_result=$func_quote_for_eval_result fi $_G_rc_lt_parse_options } 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_for_eval ${1+"$@"} libtool_validate_options_result=$func_quote_for_eval_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_for_eval "$libobj" test "X$libobj" != "X$func_quote_for_eval_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_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_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 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 -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_for_eval "$nonopt" install_prog="$func_quote_for_eval_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_for_eval "$arg" func_append install_prog "$func_quote_for_eval_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_for_eval "$arg" func_append install_prog " $func_quote_for_eval_result" if test -n "$arg2"; then func_quote_for_eval "$arg2" fi func_append install_shared_prog " $func_quote_for_eval_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_for_eval "$install_override_mode" func_append install_shared_prog " -m $func_quote_for_eval_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_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_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\"" qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` $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_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_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 ;; 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*) # 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*) # 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 ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-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_for_eval "$flag" func_append arg " $func_quote_for_eval_result" func_append compiler_flags " $func_quote_for_eval_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_for_eval "$flag" func_append arg " $wl$func_quote_for_eval_result" func_append compiler_flags " $wl$func_quote_for_eval_result" func_append linker_flags " $func_quote_for_eval_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_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 -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=*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_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_for_eval "$arg" arg=$func_quote_for_eval_result fi ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_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_for_eval "$arg" arg=$func_quote_for_eval_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|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) 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*) # 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_for_expand "$cmd" eval "func_echo $func_quote_for_expand_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_for_expand "$cmd" eval "func_echo $func_quote_for_expand_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_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` 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_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` 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: music-1.1.16/examples/0000755000175000017500000000000013571740114011542 500000000000000music-1.1.16/examples/Makefile.am0000644000175000017500000000154513571617503013530 00000000000000## Process this file with Automake to create Makefile.in ACLOCAL = $(top_srcdir)/aclocal.sh exbindir = $(libdir)/@PACKAGE@-@PACKAGE_VERSION@ exbin_PROGRAMS = waveproducer waveconsumer exdatadir = $(datadir)/@PACKAGE@-@PACKAGE_VERSION@/examples dist_exdata_DATA = messages.music wavetest.music \ viewevents.music demo.music demolarge.music \ neuronGrid.data neuronGridLARGE.data \ spikes0.dat spikes1.dat README MUSIC_INCLUDE = -I$(top_srcdir)/src -I$(top_builddir)/src waveproducer_SOURCES = waveproducer.cc waveproducer_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ waveproducer_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ waveconsumer_SOURCES = waveconsumer.cc waveconsumer_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ waveconsumer_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) music-1.1.16/examples/waveconsumer.cc0000644000175000017500000000255113571617503014517 00000000000000#include #include #include #include #define TIMESTEP 0.0005 MPI::Intracomm comm; double* data; int main (int args, char* argv[]) { MUSIC::Setup* setup = new MUSIC::Setup (args, argv); MUSIC::ContInputPort* wavedata = setup->publishContInput ("wavedata"); comm = setup->communicator (); int nProcesses = comm.Get_size (); // how many processes are there? int rank = comm.Get_rank (); // which process am I? int width = 0; if (wavedata->hasWidth ()) width = wavedata->width (); else comm.Abort (1); // For clarity, assume that width is a multiple of n_processes int nLocalVars = width / nProcesses; data = new double[nLocalVars]; std::ostringstream filename; filename << argv[1] << rank << ".out"; std::ofstream file (filename.str ().data ()); // Declare where in memory to put data MUSIC::ArrayData dmap (data, MPI::DOUBLE, rank * nLocalVars, nLocalVars); wavedata->map (&dmap); double stoptime; setup->config ("stoptime", &stoptime); MUSIC::Runtime* runtime = new MUSIC::Runtime (setup, TIMESTEP); for (int j =0; runtime->time () < stoptime; j++) { runtime->tick (); // Dump to file for (int i = 0; i < nLocalVars; ++i) file << data[i] << ' '; file << std::endl; } runtime->finalize (); delete runtime; return 0; } music-1.1.16/examples/spikes1.dat0000644000175000017500000000010513571617503013534 00000000000000# spikes 0.0 9 0.1 0 0.2 1 0.3 2 0.4 3 0.5 4 0.6 5 0.7 6 0.8 7 0.9 8 music-1.1.16/examples/neuronGridLARGE.data0000644000175000017500000004303313571617503015214 000000000000001 5.300000e-01 2.500000e-01 1 9.000000e-01 1 0 -675 -675 -675 20 0 -675 -525 -675 20 0 -675 -375 -675 20 0 -675 -225 -675 20 0 -675 -75 -675 20 0 -675 75 -675 20 0 -675 225 -675 20 0 -675 375 -675 20 0 -675 525 -675 20 0 -675 675 -675 20 0 -525 -675 -675 20 0 -525 -525 -675 20 0 -525 -375 -675 20 0 -525 -225 -675 20 0 -525 -75 -675 20 0 -525 75 -675 20 0 -525 225 -675 20 0 -525 375 -675 20 0 -525 525 -675 20 0 -525 675 -675 20 0 -375 -675 -675 20 0 -375 -525 -675 20 0 -375 -375 -675 20 0 -375 -225 -675 20 0 -375 -75 -675 20 0 -375 75 -675 20 0 -375 225 -675 20 0 -375 375 -675 20 0 -375 525 -675 20 0 -375 675 -675 20 0 -225 -675 -675 20 0 -225 -525 -675 20 0 -225 -375 -675 20 0 -225 -225 -675 20 0 -225 -75 -675 20 0 -225 75 -675 20 0 -225 225 -675 20 0 -225 375 -675 20 0 -225 525 -675 20 0 -225 675 -675 20 0 -75 -675 -675 20 0 -75 -525 -675 20 0 -75 -375 -675 20 0 -75 -225 -675 20 0 -75 -75 -675 20 0 -75 75 -675 20 0 -75 225 -675 20 0 -75 375 -675 20 0 -75 525 -675 20 0 -75 675 -675 20 0 75 -675 -675 20 0 75 -525 -675 20 0 75 -375 -675 20 0 75 -225 -675 20 0 75 -75 -675 20 0 75 75 -675 20 0 75 225 -675 20 0 75 375 -675 20 0 75 525 -675 20 0 75 675 -675 20 0 225 -675 -675 20 0 225 -525 -675 20 0 225 -375 -675 20 0 225 -225 -675 20 0 225 -75 -675 20 0 225 75 -675 20 0 225 225 -675 20 0 225 375 -675 20 0 225 525 -675 20 0 225 675 -675 20 0 375 -675 -675 20 0 375 -525 -675 20 0 375 -375 -675 20 0 375 -225 -675 20 0 375 -75 -675 20 0 375 75 -675 20 0 375 225 -675 20 0 375 375 -675 20 0 375 525 -675 20 0 375 675 -675 20 0 525 -675 -675 20 0 525 -525 -675 20 0 525 -375 -675 20 0 525 -225 -675 20 0 525 -75 -675 20 0 525 75 -675 20 0 525 225 -675 20 0 525 375 -675 20 0 525 525 -675 20 0 525 675 -675 20 0 675 -675 -675 20 0 675 -525 -675 20 0 675 -375 -675 20 0 675 -225 -675 20 0 675 -75 -675 20 0 675 75 -675 20 0 675 225 -675 20 0 675 375 -675 20 0 675 525 -675 20 0 675 675 -675 20 0 -675 -675 -525 20 0 -675 -525 -525 20 0 -675 -375 -525 20 0 -675 -225 -525 20 0 -675 -75 -525 20 0 -675 75 -525 20 0 -675 225 -525 20 0 -675 375 -525 20 0 -675 525 -525 20 0 -675 675 -525 20 0 -525 -675 -525 20 0 -525 -525 -525 20 0 -525 -375 -525 20 0 -525 -225 -525 20 0 -525 -75 -525 20 0 -525 75 -525 20 0 -525 225 -525 20 0 -525 375 -525 20 0 -525 525 -525 20 0 -525 675 -525 20 0 -375 -675 -525 20 0 -375 -525 -525 20 0 -375 -375 -525 20 0 -375 -225 -525 20 0 -375 -75 -525 20 0 -375 75 -525 20 0 -375 225 -525 20 0 -375 375 -525 20 0 -375 525 -525 20 0 -375 675 -525 20 0 -225 -675 -525 20 0 -225 -525 -525 20 0 -225 -375 -525 20 0 -225 -225 -525 20 0 -225 -75 -525 20 0 -225 75 -525 20 0 -225 225 -525 20 0 -225 375 -525 20 0 -225 525 -525 20 0 -225 675 -525 20 0 -75 -675 -525 20 0 -75 -525 -525 20 0 -75 -375 -525 20 0 -75 -225 -525 20 0 -75 -75 -525 20 0 -75 75 -525 20 0 -75 225 -525 20 0 -75 375 -525 20 0 -75 525 -525 20 0 -75 675 -525 20 0 75 -675 -525 20 0 75 -525 -525 20 0 75 -375 -525 20 0 75 -225 -525 20 0 75 -75 -525 20 0 75 75 -525 20 0 75 225 -525 20 0 75 375 -525 20 0 75 525 -525 20 0 75 675 -525 20 0 225 -675 -525 20 0 225 -525 -525 20 0 225 -375 -525 20 0 225 -225 -525 20 0 225 -75 -525 20 0 225 75 -525 20 0 225 225 -525 20 0 225 375 -525 20 0 225 525 -525 20 0 225 675 -525 20 0 375 -675 -525 20 0 375 -525 -525 20 0 375 -375 -525 20 0 375 -225 -525 20 0 375 -75 -525 20 0 375 75 -525 20 0 375 225 -525 20 0 375 375 -525 20 0 375 525 -525 20 0 375 675 -525 20 0 525 -675 -525 20 0 525 -525 -525 20 0 525 -375 -525 20 0 525 -225 -525 20 0 525 -75 -525 20 0 525 75 -525 20 0 525 225 -525 20 0 525 375 -525 20 0 525 525 -525 20 0 525 675 -525 20 0 675 -675 -525 20 0 675 -525 -525 20 0 675 -375 -525 20 0 675 -225 -525 20 0 675 -75 -525 20 0 675 75 -525 20 0 675 225 -525 20 0 675 375 -525 20 0 675 525 -525 20 0 675 675 -525 20 0 -675 -675 -375 20 0 -675 -525 -375 20 0 -675 -375 -375 20 0 -675 -225 -375 20 0 -675 -75 -375 20 0 -675 75 -375 20 0 -675 225 -375 20 0 -675 375 -375 20 0 -675 525 -375 20 0 -675 675 -375 20 0 -525 -675 -375 20 0 -525 -525 -375 20 0 -525 -375 -375 20 0 -525 -225 -375 20 0 -525 -75 -375 20 0 -525 75 -375 20 0 -525 225 -375 20 0 -525 375 -375 20 0 -525 525 -375 20 0 -525 675 -375 20 0 -375 -675 -375 20 0 -375 -525 -375 20 0 -375 -375 -375 20 0 -375 -225 -375 20 0 -375 -75 -375 20 0 -375 75 -375 20 0 -375 225 -375 20 0 -375 375 -375 20 0 -375 525 -375 20 0 -375 675 -375 20 0 -225 -675 -375 20 0 -225 -525 -375 20 0 -225 -375 -375 20 0 -225 -225 -375 20 0 -225 -75 -375 20 0 -225 75 -375 20 0 -225 225 -375 20 0 -225 375 -375 20 0 -225 525 -375 20 0 -225 675 -375 20 0 -75 -675 -375 20 0 -75 -525 -375 20 0 -75 -375 -375 20 0 -75 -225 -375 20 0 -75 -75 -375 20 0 -75 75 -375 20 0 -75 225 -375 20 0 -75 375 -375 20 0 -75 525 -375 20 0 -75 675 -375 20 0 75 -675 -375 20 0 75 -525 -375 20 0 75 -375 -375 20 0 75 -225 -375 20 0 75 -75 -375 20 0 75 75 -375 20 0 75 225 -375 20 0 75 375 -375 20 0 75 525 -375 20 0 75 675 -375 20 0 225 -675 -375 20 0 225 -525 -375 20 0 225 -375 -375 20 0 225 -225 -375 20 0 225 -75 -375 20 0 225 75 -375 20 0 225 225 -375 20 0 225 375 -375 20 0 225 525 -375 20 0 225 675 -375 20 0 375 -675 -375 20 0 375 -525 -375 20 0 375 -375 -375 20 0 375 -225 -375 20 0 375 -75 -375 20 0 375 75 -375 20 0 375 225 -375 20 0 375 375 -375 20 0 375 525 -375 20 0 375 675 -375 20 0 525 -675 -375 20 0 525 -525 -375 20 0 525 -375 -375 20 0 525 -225 -375 20 0 525 -75 -375 20 0 525 75 -375 20 0 525 225 -375 20 0 525 375 -375 20 0 525 525 -375 20 0 525 675 -375 20 0 675 -675 -375 20 0 675 -525 -375 20 0 675 -375 -375 20 0 675 -225 -375 20 0 675 -75 -375 20 0 675 75 -375 20 0 675 225 -375 20 0 675 375 -375 20 0 675 525 -375 20 0 675 675 -375 20 0 -675 -675 -225 20 0 -675 -525 -225 20 0 -675 -375 -225 20 0 -675 -225 -225 20 0 -675 -75 -225 20 0 -675 75 -225 20 0 -675 225 -225 20 0 -675 375 -225 20 0 -675 525 -225 20 0 -675 675 -225 20 0 -525 -675 -225 20 0 -525 -525 -225 20 0 -525 -375 -225 20 0 -525 -225 -225 20 0 -525 -75 -225 20 0 -525 75 -225 20 0 -525 225 -225 20 0 -525 375 -225 20 0 -525 525 -225 20 0 -525 675 -225 20 0 -375 -675 -225 20 0 -375 -525 -225 20 0 -375 -375 -225 20 0 -375 -225 -225 20 0 -375 -75 -225 20 0 -375 75 -225 20 0 -375 225 -225 20 0 -375 375 -225 20 0 -375 525 -225 20 0 -375 675 -225 20 0 -225 -675 -225 20 0 -225 -525 -225 20 0 -225 -375 -225 20 0 -225 -225 -225 20 0 -225 -75 -225 20 0 -225 75 -225 20 0 -225 225 -225 20 0 -225 375 -225 20 0 -225 525 -225 20 0 -225 675 -225 20 0 -75 -675 -225 20 0 -75 -525 -225 20 0 -75 -375 -225 20 0 -75 -225 -225 20 0 -75 -75 -225 20 0 -75 75 -225 20 0 -75 225 -225 20 0 -75 375 -225 20 0 -75 525 -225 20 0 -75 675 -225 20 0 75 -675 -225 20 0 75 -525 -225 20 0 75 -375 -225 20 0 75 -225 -225 20 0 75 -75 -225 20 0 75 75 -225 20 0 75 225 -225 20 0 75 375 -225 20 0 75 525 -225 20 0 75 675 -225 20 0 225 -675 -225 20 0 225 -525 -225 20 0 225 -375 -225 20 0 225 -225 -225 20 0 225 -75 -225 20 0 225 75 -225 20 0 225 225 -225 20 0 225 375 -225 20 0 225 525 -225 20 0 225 675 -225 20 0 375 -675 -225 20 0 375 -525 -225 20 0 375 -375 -225 20 0 375 -225 -225 20 0 375 -75 -225 20 0 375 75 -225 20 0 375 225 -225 20 0 375 375 -225 20 0 375 525 -225 20 0 375 675 -225 20 0 525 -675 -225 20 0 525 -525 -225 20 0 525 -375 -225 20 0 525 -225 -225 20 0 525 -75 -225 20 0 525 75 -225 20 0 525 225 -225 20 0 525 375 -225 20 0 525 525 -225 20 0 525 675 -225 20 0 675 -675 -225 20 0 675 -525 -225 20 0 675 -375 -225 20 0 675 -225 -225 20 0 675 -75 -225 20 0 675 75 -225 20 0 675 225 -225 20 0 675 375 -225 20 0 675 525 -225 20 0 675 675 -225 20 0 -675 -675 -75 20 0 -675 -525 -75 20 0 -675 -375 -75 20 0 -675 -225 -75 20 0 -675 -75 -75 20 0 -675 75 -75 20 0 -675 225 -75 20 0 -675 375 -75 20 0 -675 525 -75 20 0 -675 675 -75 20 0 -525 -675 -75 20 0 -525 -525 -75 20 0 -525 -375 -75 20 0 -525 -225 -75 20 0 -525 -75 -75 20 0 -525 75 -75 20 0 -525 225 -75 20 0 -525 375 -75 20 0 -525 525 -75 20 0 -525 675 -75 20 0 -375 -675 -75 20 0 -375 -525 -75 20 0 -375 -375 -75 20 0 -375 -225 -75 20 0 -375 -75 -75 20 0 -375 75 -75 20 0 -375 225 -75 20 0 -375 375 -75 20 0 -375 525 -75 20 0 -375 675 -75 20 0 -225 -675 -75 20 0 -225 -525 -75 20 0 -225 -375 -75 20 0 -225 -225 -75 20 0 -225 -75 -75 20 0 -225 75 -75 20 0 -225 225 -75 20 0 -225 375 -75 20 0 -225 525 -75 20 0 -225 675 -75 20 0 -75 -675 -75 20 0 -75 -525 -75 20 0 -75 -375 -75 20 0 -75 -225 -75 20 0 -75 -75 -75 20 0 -75 75 -75 20 0 -75 225 -75 20 0 -75 375 -75 20 0 -75 525 -75 20 0 -75 675 -75 20 0 75 -675 -75 20 0 75 -525 -75 20 0 75 -375 -75 20 0 75 -225 -75 20 0 75 -75 -75 20 0 75 75 -75 20 0 75 225 -75 20 0 75 375 -75 20 0 75 525 -75 20 0 75 675 -75 20 0 225 -675 -75 20 0 225 -525 -75 20 0 225 -375 -75 20 0 225 -225 -75 20 0 225 -75 -75 20 0 225 75 -75 20 0 225 225 -75 20 0 225 375 -75 20 0 225 525 -75 20 0 225 675 -75 20 0 375 -675 -75 20 0 375 -525 -75 20 0 375 -375 -75 20 0 375 -225 -75 20 0 375 -75 -75 20 0 375 75 -75 20 0 375 225 -75 20 0 375 375 -75 20 0 375 525 -75 20 0 375 675 -75 20 0 525 -675 -75 20 0 525 -525 -75 20 0 525 -375 -75 20 0 525 -225 -75 20 0 525 -75 -75 20 0 525 75 -75 20 0 525 225 -75 20 0 525 375 -75 20 0 525 525 -75 20 0 525 675 -75 20 0 675 -675 -75 20 0 675 -525 -75 20 0 675 -375 -75 20 0 675 -225 -75 20 0 675 -75 -75 20 0 675 75 -75 20 0 675 225 -75 20 0 675 375 -75 20 0 675 525 -75 20 0 675 675 -75 20 0 -675 -675 75 20 0 -675 -525 75 20 0 -675 -375 75 20 0 -675 -225 75 20 0 -675 -75 75 20 0 -675 75 75 20 0 -675 225 75 20 0 -675 375 75 20 0 -675 525 75 20 0 -675 675 75 20 0 -525 -675 75 20 0 -525 -525 75 20 0 -525 -375 75 20 0 -525 -225 75 20 0 -525 -75 75 20 0 -525 75 75 20 0 -525 225 75 20 0 -525 375 75 20 0 -525 525 75 20 0 -525 675 75 20 0 -375 -675 75 20 0 -375 -525 75 20 0 -375 -375 75 20 0 -375 -225 75 20 0 -375 -75 75 20 0 -375 75 75 20 0 -375 225 75 20 0 -375 375 75 20 0 -375 525 75 20 0 -375 675 75 20 0 -225 -675 75 20 0 -225 -525 75 20 0 -225 -375 75 20 0 -225 -225 75 20 0 -225 -75 75 20 0 -225 75 75 20 0 -225 225 75 20 0 -225 375 75 20 0 -225 525 75 20 0 -225 675 75 20 0 -75 -675 75 20 0 -75 -525 75 20 0 -75 -375 75 20 0 -75 -225 75 20 0 -75 -75 75 20 0 -75 75 75 20 0 -75 225 75 20 0 -75 375 75 20 0 -75 525 75 20 0 -75 675 75 20 0 75 -675 75 20 0 75 -525 75 20 0 75 -375 75 20 0 75 -225 75 20 0 75 -75 75 20 0 75 75 75 20 0 75 225 75 20 0 75 375 75 20 0 75 525 75 20 0 75 675 75 20 0 225 -675 75 20 0 225 -525 75 20 0 225 -375 75 20 0 225 -225 75 20 0 225 -75 75 20 0 225 75 75 20 0 225 225 75 20 0 225 375 75 20 0 225 525 75 20 0 225 675 75 20 0 375 -675 75 20 0 375 -525 75 20 0 375 -375 75 20 0 375 -225 75 20 0 375 -75 75 20 0 375 75 75 20 0 375 225 75 20 0 375 375 75 20 0 375 525 75 20 0 375 675 75 20 0 525 -675 75 20 0 525 -525 75 20 0 525 -375 75 20 0 525 -225 75 20 0 525 -75 75 20 0 525 75 75 20 0 525 225 75 20 0 525 375 75 20 0 525 525 75 20 0 525 675 75 20 0 675 -675 75 20 0 675 -525 75 20 0 675 -375 75 20 0 675 -225 75 20 0 675 -75 75 20 0 675 75 75 20 0 675 225 75 20 0 675 375 75 20 0 675 525 75 20 0 675 675 75 20 0 -675 -675 225 20 0 -675 -525 225 20 0 -675 -375 225 20 0 -675 -225 225 20 0 -675 -75 225 20 0 -675 75 225 20 0 -675 225 225 20 0 -675 375 225 20 0 -675 525 225 20 0 -675 675 225 20 0 -525 -675 225 20 0 -525 -525 225 20 0 -525 -375 225 20 0 -525 -225 225 20 0 -525 -75 225 20 0 -525 75 225 20 0 -525 225 225 20 0 -525 375 225 20 0 -525 525 225 20 0 -525 675 225 20 0 -375 -675 225 20 0 -375 -525 225 20 0 -375 -375 225 20 0 -375 -225 225 20 0 -375 -75 225 20 0 -375 75 225 20 0 -375 225 225 20 0 -375 375 225 20 0 -375 525 225 20 0 -375 675 225 20 0 -225 -675 225 20 0 -225 -525 225 20 0 -225 -375 225 20 0 -225 -225 225 20 0 -225 -75 225 20 0 -225 75 225 20 0 -225 225 225 20 0 -225 375 225 20 0 -225 525 225 20 0 -225 675 225 20 0 -75 -675 225 20 0 -75 -525 225 20 0 -75 -375 225 20 0 -75 -225 225 20 0 -75 -75 225 20 0 -75 75 225 20 0 -75 225 225 20 0 -75 375 225 20 0 -75 525 225 20 0 -75 675 225 20 0 75 -675 225 20 0 75 -525 225 20 0 75 -375 225 20 0 75 -225 225 20 0 75 -75 225 20 0 75 75 225 20 0 75 225 225 20 0 75 375 225 20 0 75 525 225 20 0 75 675 225 20 0 225 -675 225 20 0 225 -525 225 20 0 225 -375 225 20 0 225 -225 225 20 0 225 -75 225 20 0 225 75 225 20 0 225 225 225 20 0 225 375 225 20 0 225 525 225 20 0 225 675 225 20 0 375 -675 225 20 0 375 -525 225 20 0 375 -375 225 20 0 375 -225 225 20 0 375 -75 225 20 0 375 75 225 20 0 375 225 225 20 0 375 375 225 20 0 375 525 225 20 0 375 675 225 20 0 525 -675 225 20 0 525 -525 225 20 0 525 -375 225 20 0 525 -225 225 20 0 525 -75 225 20 0 525 75 225 20 0 525 225 225 20 0 525 375 225 20 0 525 525 225 20 0 525 675 225 20 0 675 -675 225 20 0 675 -525 225 20 0 675 -375 225 20 0 675 -225 225 20 0 675 -75 225 20 0 675 75 225 20 0 675 225 225 20 0 675 375 225 20 0 675 525 225 20 0 675 675 225 20 0 -675 -675 375 20 0 -675 -525 375 20 0 -675 -375 375 20 0 -675 -225 375 20 0 -675 -75 375 20 0 -675 75 375 20 0 -675 225 375 20 0 -675 375 375 20 0 -675 525 375 20 0 -675 675 375 20 0 -525 -675 375 20 0 -525 -525 375 20 0 -525 -375 375 20 0 -525 -225 375 20 0 -525 -75 375 20 0 -525 75 375 20 0 -525 225 375 20 0 -525 375 375 20 0 -525 525 375 20 0 -525 675 375 20 0 -375 -675 375 20 0 -375 -525 375 20 0 -375 -375 375 20 0 -375 -225 375 20 0 -375 -75 375 20 0 -375 75 375 20 0 -375 225 375 20 0 -375 375 375 20 0 -375 525 375 20 0 -375 675 375 20 0 -225 -675 375 20 0 -225 -525 375 20 0 -225 -375 375 20 0 -225 -225 375 20 0 -225 -75 375 20 0 -225 75 375 20 0 -225 225 375 20 0 -225 375 375 20 0 -225 525 375 20 0 -225 675 375 20 0 -75 -675 375 20 0 -75 -525 375 20 0 -75 -375 375 20 0 -75 -225 375 20 0 -75 -75 375 20 0 -75 75 375 20 0 -75 225 375 20 0 -75 375 375 20 0 -75 525 375 20 0 -75 675 375 20 0 75 -675 375 20 0 75 -525 375 20 0 75 -375 375 20 0 75 -225 375 20 0 75 -75 375 20 0 75 75 375 20 0 75 225 375 20 0 75 375 375 20 0 75 525 375 20 0 75 675 375 20 0 225 -675 375 20 0 225 -525 375 20 0 225 -375 375 20 0 225 -225 375 20 0 225 -75 375 20 0 225 75 375 20 0 225 225 375 20 0 225 375 375 20 0 225 525 375 20 0 225 675 375 20 0 375 -675 375 20 0 375 -525 375 20 0 375 -375 375 20 0 375 -225 375 20 0 375 -75 375 20 0 375 75 375 20 0 375 225 375 20 0 375 375 375 20 0 375 525 375 20 0 375 675 375 20 0 525 -675 375 20 0 525 -525 375 20 0 525 -375 375 20 0 525 -225 375 20 0 525 -75 375 20 0 525 75 375 20 0 525 225 375 20 0 525 375 375 20 0 525 525 375 20 0 525 675 375 20 0 675 -675 375 20 0 675 -525 375 20 0 675 -375 375 20 0 675 -225 375 20 0 675 -75 375 20 0 675 75 375 20 0 675 225 375 20 0 675 375 375 20 0 675 525 375 20 0 675 675 375 20 0 -675 -675 525 20 0 -675 -525 525 20 0 -675 -375 525 20 0 -675 -225 525 20 0 -675 -75 525 20 0 -675 75 525 20 0 -675 225 525 20 0 -675 375 525 20 0 -675 525 525 20 0 -675 675 525 20 0 -525 -675 525 20 0 -525 -525 525 20 0 -525 -375 525 20 0 -525 -225 525 20 0 -525 -75 525 20 0 -525 75 525 20 0 -525 225 525 20 0 -525 375 525 20 0 -525 525 525 20 0 -525 675 525 20 0 -375 -675 525 20 0 -375 -525 525 20 0 -375 -375 525 20 0 -375 -225 525 20 0 -375 -75 525 20 0 -375 75 525 20 0 -375 225 525 20 0 -375 375 525 20 0 -375 525 525 20 0 -375 675 525 20 0 -225 -675 525 20 0 -225 -525 525 20 0 -225 -375 525 20 0 -225 -225 525 20 0 -225 -75 525 20 0 -225 75 525 20 0 -225 225 525 20 0 -225 375 525 20 0 -225 525 525 20 0 -225 675 525 20 0 -75 -675 525 20 0 -75 -525 525 20 0 -75 -375 525 20 0 -75 -225 525 20 0 -75 -75 525 20 0 -75 75 525 20 0 -75 225 525 20 0 -75 375 525 20 0 -75 525 525 20 0 -75 675 525 20 0 75 -675 525 20 0 75 -525 525 20 0 75 -375 525 20 0 75 -225 525 20 0 75 -75 525 20 0 75 75 525 20 0 75 225 525 20 0 75 375 525 20 0 75 525 525 20 0 75 675 525 20 0 225 -675 525 20 0 225 -525 525 20 0 225 -375 525 20 0 225 -225 525 20 0 225 -75 525 20 0 225 75 525 20 0 225 225 525 20 0 225 375 525 20 0 225 525 525 20 0 225 675 525 20 0 375 -675 525 20 0 375 -525 525 20 0 375 -375 525 20 0 375 -225 525 20 0 375 -75 525 20 0 375 75 525 20 0 375 225 525 20 0 375 375 525 20 0 375 525 525 20 0 375 675 525 20 0 525 -675 525 20 0 525 -525 525 20 0 525 -375 525 20 0 525 -225 525 20 0 525 -75 525 20 0 525 75 525 20 0 525 225 525 20 0 525 375 525 20 0 525 525 525 20 0 525 675 525 20 0 675 -675 525 20 0 675 -525 525 20 0 675 -375 525 20 0 675 -225 525 20 0 675 -75 525 20 0 675 75 525 20 0 675 225 525 20 0 675 375 525 20 0 675 525 525 20 0 675 675 525 20 0 -675 -675 675 20 0 -675 -525 675 20 0 -675 -375 675 20 0 -675 -225 675 20 0 -675 -75 675 20 0 -675 75 675 20 0 -675 225 675 20 0 -675 375 675 20 0 -675 525 675 20 0 -675 675 675 20 0 -525 -675 675 20 0 -525 -525 675 20 0 -525 -375 675 20 0 -525 -225 675 20 0 -525 -75 675 20 0 -525 75 675 20 0 -525 225 675 20 0 -525 375 675 20 0 -525 525 675 20 0 -525 675 675 20 0 -375 -675 675 20 0 -375 -525 675 20 0 -375 -375 675 20 0 -375 -225 675 20 0 -375 -75 675 20 0 -375 75 675 20 0 -375 225 675 20 0 -375 375 675 20 0 -375 525 675 20 0 -375 675 675 20 0 -225 -675 675 20 0 -225 -525 675 20 0 -225 -375 675 20 0 -225 -225 675 20 0 -225 -75 675 20 0 -225 75 675 20 0 -225 225 675 20 0 -225 375 675 20 0 -225 525 675 20 0 -225 675 675 20 0 -75 -675 675 20 0 -75 -525 675 20 0 -75 -375 675 20 0 -75 -225 675 20 0 -75 -75 675 20 0 -75 75 675 20 0 -75 225 675 20 0 -75 375 675 20 0 -75 525 675 20 0 -75 675 675 20 0 75 -675 675 20 0 75 -525 675 20 0 75 -375 675 20 0 75 -225 675 20 0 75 -75 675 20 0 75 75 675 20 0 75 225 675 20 0 75 375 675 20 0 75 525 675 20 0 75 675 675 20 0 225 -675 675 20 0 225 -525 675 20 0 225 -375 675 20 0 225 -225 675 20 0 225 -75 675 20 0 225 75 675 20 0 225 225 675 20 0 225 375 675 20 0 225 525 675 20 0 225 675 675 20 0 375 -675 675 20 0 375 -525 675 20 0 375 -375 675 20 0 375 -225 675 20 0 375 -75 675 20 0 375 75 675 20 0 375 225 675 20 0 375 375 675 20 0 375 525 675 20 0 375 675 675 20 0 525 -675 675 20 0 525 -525 675 20 0 525 -375 675 20 0 525 -225 675 20 0 525 -75 675 20 0 525 75 675 20 0 525 225 675 20 0 525 375 675 20 0 525 525 675 20 0 525 675 675 20 0 675 -675 675 20 0 675 -525 675 20 0 675 -375 675 20 0 675 -225 675 20 0 675 -75 675 20 0 675 75 675 20 0 675 225 675 20 0 675 375 675 20 0 675 525 675 20 0 675 675 675 20 0 music-1.1.16/examples/messages.music0000644000175000017500000000021113571617503014332 00000000000000np=2 stoptime=1.0 [from] binary=messagesource args=-b 1 messages [to] binary=eventlogger args=-b 2 from.out -> to.message [10] music-1.1.16/examples/spikes0.dat0000644000175000017500000000010513571617503013533 00000000000000# spikes 0.0 0 0.1 1 0.2 2 0.3 3 0.4 4 0.5 5 0.6 6 0.7 7 0.8 8 0.9 9 music-1.1.16/examples/waveproducer.cc0000644000175000017500000000264313571617503014511 00000000000000#include #include #include #include #define TIMESTEP 0.001 MPI::Intracomm comm; double* data; int main (int argc, char* argv[]) { MUSIC::Setup* setup = new MUSIC::Setup (argc, argv); int width = atoi (argv[1]); // command line arg gives width MUSIC::ContOutputPort* wavedata = setup->publishContOutput ("wavedata"); comm = setup->communicator (); int nProcesses = comm.Get_size (); // how many processes are there? int rank = comm.Get_rank (); // which process am I? // For clarity, assume that width is a multiple of n_processes int nLocalVars = width / nProcesses; data = new double[nLocalVars]; for (int i = 0; i < nLocalVars; ++i) data[i] = 0.0; // Declare what data we have to export MUSIC::ArrayData dmap (data, MPI::DOUBLE, rank * nLocalVars, nLocalVars); wavedata->map (&dmap); double stoptime; setup->config ("stoptime", &stoptime); MUSIC::Runtime* runtime = new MUSIC::Runtime (setup, TIMESTEP); for (; runtime->time () < stoptime; runtime->tick ()) { if (rank == 0) { // Generate original data on master node int i; double time = runtime->time (); for (i = 0; i < nLocalVars; ++i) data[i] = sin (2 * M_PI * time * i); } // Broadcast these data out to all nodes comm.Bcast (data, nLocalVars, MPI::DOUBLE, 0); } runtime->finalize (); delete runtime; return 0; } music-1.1.16/examples/wavetest.music0000644000175000017500000000023513571617503014373 00000000000000stoptime=1.0 [producer] binary=waveproducer args=120 np=4 [consumer] binary=waveconsumer args=dumpfile np=3 producer.wavedata -> wavedata[120] music-1.1.16/examples/viewevents.music0000644000175000017500000000024213571617503014726 00000000000000np=1 stoptime=1.0 [from] binary=eventsource args=-t 1e-4 27 spikes [to] binary=viewevents from.out -> to.plot [27] args=-t 1e-4 -s 10.0 neuronGrid.data music-1.1.16/examples/demolarge.music0000644000175000017500000000025013571617503014465 00000000000000stoptime=10.0 [from] np=19 binary=eventgenerator args=-b 5 1000 [view] np=1 binary=viewevents args=-s 5 neuronGridLARGE.data from.out -> view.plot [1000] music-1.1.16/examples/neuronGrid.data0000644000175000017500000000103113571617503014431 000000000000002 2.500000e-01 5.300000e-01 1.000000e-01 1 9.000000e-01 0 5.300000e-01 2.500000e-01 1.000000e-01 0.9 1 0 -150 -150 -150 30 0 -150 0 -150 30 0 -150 150 -150 30 0 0 -150 -150 30 0 0 0 -150 30 0 0 150 -150 30 0 150 -150 -150 30 0 150 0 -150 30 0 150 150 -150 30 0 -150 -150 0 30 0 -150 0 0 30 0 -150 150 0 30 0 0 -150 0 30 0 0 0 0 30 1 0 150 0 30 1 150 -150 0 30 0 150 0 0 30 0 150 150 0 30 0 -150 -150 150 30 0 -150 0 150 30 0 -150 150 150 30 0 0 -150 150 30 0 0 0 150 30 1 0 150 150 30 0 150 -150 150 30 0 150 0 150 30 0 150 150 150 30 0 music-1.1.16/examples/README0000644000175000017500000000464413571617503012357 00000000000000This directory contains a number of small sample programs and MUSIC configuration files. Each configuration file (with file extension .music) is used to launch a set of programs in a multi-simulation. The configuration file variable "binary" tells MUSIC which program to launch. Please make sure that such programs exist before you launch the simulation. It is possible to build each program in the standard way for your MPI distribution. You also need to link with the MUSIC library. This is how to build (if it wasn't already built for you automatically) the program `clocksource' used in the configuration file contclock.music under OpenMPI: mpicxx clocksource.cc -lmusic * Demos demo.music Random spikes are generated from a 3-process application and sent to a graphics visualizer. $ mpirun -np 4 music demo.music demolarge.music Similar to demo.music, but running a larger example on more processors. 20 processes are started by this demo. $ mpirun -np 20 music demolarge.music * Event communication events.music Spikes are sent from a sending to a receiving application. $ mpirun -np 4 music events.music fork.music Spikes are sent from one sender to two receiving applications. $ mpirun -np 6 music fork.music chain.music Spikes are sent from one sender (running in two processes) to a receiver via an intermediate application which serves as a delay. $ mpirun -np 4 music chain.music loop.music Spikes are sent into a loop of two mutually interconnected applications tha both delay and then pass spikes on. $ mpirun -np 4 music loop.music * Continuous communication const.music A constant array of data is sent to a distributed receiving application. $ mpirun -np 4 music const.music contclock.music The current simulation time is sent as a test output from one application and received by another. $ mpirun -np 2 music contclock.music cloop.music The time signal is sent into a delay loop where values are gradually accumulated. $ mpirun -np 4 music cloop.music wavetest.music Send sinusoidal waves from one distributes application to another. The receiving application writes the result in files named dumpfile0.out, dumpfile1.out and dumpfile2.out. $ mpirun -np 7 music wavetest.music * Message communication messages.music Messages are sent from a sending to a receiving application. $ mpirun -np 4 music messages.music music-1.1.16/examples/demo.music0000644000175000017500000000023713571617503013457 00000000000000stoptime=100.0 [from] np=3 binary=eventgenerator args=-b 5 27 [view] np=1 binary=viewevents args=-s 1 neuronGrid.data from.out -> view.plot [27] music-1.1.16/examples/Makefile.in0000644000175000017500000007110513571626611013540 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 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@ exbin_PROGRAMS = waveproducer$(EXEEXT) waveconsumer$(EXEEXT) subdir = examples ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(dist_exdata_DATA) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(exbindir)" "$(DESTDIR)$(exdatadir)" PROGRAMS = $(exbin_PROGRAMS) am_waveconsumer_OBJECTS = waveconsumer-waveconsumer.$(OBJEXT) waveconsumer_OBJECTS = $(am_waveconsumer_OBJECTS) waveconsumer_DEPENDENCIES = $(top_builddir)/src/libmusic.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 = waveconsumer_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(waveconsumer_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_waveproducer_OBJECTS = waveproducer-waveproducer.$(OBJEXT) waveproducer_OBJECTS = $(am_waveproducer_OBJECTS) waveproducer_DEPENDENCIES = $(top_builddir)/src/libmusic.la waveproducer_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(waveproducer_CXXFLAGS) \ $(CXXFLAGS) $(AM_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) depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/waveconsumer-waveconsumer.Po \ ./$(DEPDIR)/waveproducer-waveproducer.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 = $(waveconsumer_SOURCES) $(waveproducer_SOURCES) DIST_SOURCES = $(waveconsumer_SOURCES) $(waveproducer_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; }; \ } DATA = $(dist_exdata_DATA) 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)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp README DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = $(top_srcdir)/aclocal.sh AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BINDIR = @BINDIR@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXAMPLESDIR = @EXAMPLESDIR@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ FGREP = @FGREP@ GREP = @GREP@ HAVE_PYTHON = @HAVE_PYTHON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LAUNCHSTYLE = @LAUNCHSTYLE@ 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@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPI_CFLAGS = @MPI_CFLAGS@ MPI_CXXFLAGS = @MPI_CXXFLAGS@ MPI_LDFLAGS = @MPI_LDFLAGS@ MPI_UTILS = @MPI_UTILS@ MUSICCONFIGDIR = @MUSICCONFIGDIR@ MUSIC_ANYSOURCE = @MUSIC_ANYSOURCE@ MUSIC_HAVE_LONG_LONG = @MUSIC_HAVE_LONG_LONG@ MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER = @MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER@ MUSIC_HAVE_SIZE_T = @MUSIC_HAVE_SIZE_T@ MUSIC_ISENDWAITALL = @MUSIC_ISENDWAITALL@ MUSIC_USE_MPI = @MUSIC_USE_MPI@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPTIONAL_UTILS = @OPTIONAL_UTILS@ 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@ PKGDATADIR = @PKGDATADIR@ PKGEXTRABINDIR = @PKGEXTRABINDIR@ PYBUFFER_CPPFLAGS = @PYBUFFER_CPPFLAGS@ PYBUFFER_CXXFLAGS = @PYBUFFER_CXXFLAGS@ PYEXECDIR = @PYEXECDIR@ PYMUSIC_CPPFLAGS = @PYMUSIC_CPPFLAGS@ PYMUSIC_CXXFLAGS = @PYMUSIC_CXXFLAGS@ PYMUSIC_SUBDIR = @PYMUSIC_SUBDIR@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ ROS_SUBDIR = @ROS_SUBDIR@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTDIR = @TESTDIR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ exbindir = $(libdir)/@PACKAGE@-@PACKAGE_VERSION@ exdatadir = $(datadir)/@PACKAGE@-@PACKAGE_VERSION@/examples dist_exdata_DATA = messages.music wavetest.music \ viewevents.music demo.music demolarge.music \ neuronGrid.data neuronGridLARGE.data \ spikes0.dat spikes1.dat README MUSIC_INCLUDE = -I$(top_srcdir)/src -I$(top_builddir)/src waveproducer_SOURCES = waveproducer.cc waveproducer_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ waveproducer_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ waveconsumer_SOURCES = waveconsumer.cc waveconsumer_CXXFLAGS = $(MUSIC_INCLUDE) @MPI_CXXFLAGS@ waveconsumer_LDADD = $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-exbinPROGRAMS: $(exbin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(exbin_PROGRAMS)'; test -n "$(exbindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(exbindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(exbindir)" || 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)$(exbindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(exbindir)$$dir" || exit $$?; \ } \ ; done uninstall-exbinPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(exbin_PROGRAMS)'; test -n "$(exbindir)" || 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)$(exbindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(exbindir)" && rm -f $$files clean-exbinPROGRAMS: @list='$(exbin_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 waveconsumer$(EXEEXT): $(waveconsumer_OBJECTS) $(waveconsumer_DEPENDENCIES) $(EXTRA_waveconsumer_DEPENDENCIES) @rm -f waveconsumer$(EXEEXT) $(AM_V_CXXLD)$(waveconsumer_LINK) $(waveconsumer_OBJECTS) $(waveconsumer_LDADD) $(LIBS) waveproducer$(EXEEXT): $(waveproducer_OBJECTS) $(waveproducer_DEPENDENCIES) $(EXTRA_waveproducer_DEPENDENCIES) @rm -f waveproducer$(EXEEXT) $(AM_V_CXXLD)$(waveproducer_LINK) $(waveproducer_OBJECTS) $(waveproducer_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/waveconsumer-waveconsumer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/waveproducer-waveproducer.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .cc.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 $@ $< .cc.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) '$<'` .cc.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 $@ $< waveconsumer-waveconsumer.o: waveconsumer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(waveconsumer_CXXFLAGS) $(CXXFLAGS) -MT waveconsumer-waveconsumer.o -MD -MP -MF $(DEPDIR)/waveconsumer-waveconsumer.Tpo -c -o waveconsumer-waveconsumer.o `test -f 'waveconsumer.cc' || echo '$(srcdir)/'`waveconsumer.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/waveconsumer-waveconsumer.Tpo $(DEPDIR)/waveconsumer-waveconsumer.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='waveconsumer.cc' object='waveconsumer-waveconsumer.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(waveconsumer_CXXFLAGS) $(CXXFLAGS) -c -o waveconsumer-waveconsumer.o `test -f 'waveconsumer.cc' || echo '$(srcdir)/'`waveconsumer.cc waveconsumer-waveconsumer.obj: waveconsumer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(waveconsumer_CXXFLAGS) $(CXXFLAGS) -MT waveconsumer-waveconsumer.obj -MD -MP -MF $(DEPDIR)/waveconsumer-waveconsumer.Tpo -c -o waveconsumer-waveconsumer.obj `if test -f 'waveconsumer.cc'; then $(CYGPATH_W) 'waveconsumer.cc'; else $(CYGPATH_W) '$(srcdir)/waveconsumer.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/waveconsumer-waveconsumer.Tpo $(DEPDIR)/waveconsumer-waveconsumer.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='waveconsumer.cc' object='waveconsumer-waveconsumer.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(waveconsumer_CXXFLAGS) $(CXXFLAGS) -c -o waveconsumer-waveconsumer.obj `if test -f 'waveconsumer.cc'; then $(CYGPATH_W) 'waveconsumer.cc'; else $(CYGPATH_W) '$(srcdir)/waveconsumer.cc'; fi` waveproducer-waveproducer.o: waveproducer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(waveproducer_CXXFLAGS) $(CXXFLAGS) -MT waveproducer-waveproducer.o -MD -MP -MF $(DEPDIR)/waveproducer-waveproducer.Tpo -c -o waveproducer-waveproducer.o `test -f 'waveproducer.cc' || echo '$(srcdir)/'`waveproducer.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/waveproducer-waveproducer.Tpo $(DEPDIR)/waveproducer-waveproducer.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='waveproducer.cc' object='waveproducer-waveproducer.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(waveproducer_CXXFLAGS) $(CXXFLAGS) -c -o waveproducer-waveproducer.o `test -f 'waveproducer.cc' || echo '$(srcdir)/'`waveproducer.cc waveproducer-waveproducer.obj: waveproducer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(waveproducer_CXXFLAGS) $(CXXFLAGS) -MT waveproducer-waveproducer.obj -MD -MP -MF $(DEPDIR)/waveproducer-waveproducer.Tpo -c -o waveproducer-waveproducer.obj `if test -f 'waveproducer.cc'; then $(CYGPATH_W) 'waveproducer.cc'; else $(CYGPATH_W) '$(srcdir)/waveproducer.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/waveproducer-waveproducer.Tpo $(DEPDIR)/waveproducer-waveproducer.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='waveproducer.cc' object='waveproducer-waveproducer.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(waveproducer_CXXFLAGS) $(CXXFLAGS) -c -o waveproducer-waveproducer.obj `if test -f 'waveproducer.cc'; then $(CYGPATH_W) 'waveproducer.cc'; else $(CYGPATH_W) '$(srcdir)/waveproducer.cc'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dist_exdataDATA: $(dist_exdata_DATA) @$(NORMAL_INSTALL) @list='$(dist_exdata_DATA)'; test -n "$(exdatadir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(exdatadir)'"; \ $(MKDIR_P) "$(DESTDIR)$(exdatadir)" || 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)$(exdatadir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(exdatadir)" || exit $$?; \ done uninstall-dist_exdataDATA: @$(NORMAL_UNINSTALL) @list='$(dist_exdata_DATA)'; test -n "$(exdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(exdatadir)'; $(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) $(DATA) installdirs: for dir in "$(DESTDIR)$(exbindir)" "$(DESTDIR)$(exdatadir)"; 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-exbinPROGRAMS clean-generic clean-libtool \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/waveconsumer-waveconsumer.Po -rm -f ./$(DEPDIR)/waveproducer-waveproducer.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-dist_exdataDATA install-exbinPROGRAMS 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)/waveconsumer-waveconsumer.Po -rm -f ./$(DEPDIR)/waveproducer-waveproducer.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-dist_exdataDATA uninstall-exbinPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-exbinPROGRAMS clean-generic clean-libtool 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-dist_exdataDATA install-dvi \ install-dvi-am install-exbinPROGRAMS install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-dist_exdataDATA \ uninstall-exbinPROGRAMS .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: music-1.1.16/music-config/0000755000175000017500000000000013571740114012307 500000000000000music-1.1.16/music-config/Makefile.am0000644000175000017500000000043413571617503014271 00000000000000edit = sed -e 's|@libdir[@]|$(libdir)|g' pkgpython_PYTHON = __init__.py predict_rank.py config.py pkgpythondir = $(pythondir)/music/config EXTRA_DIST = predict_rank.py.in predict_rank.py: Makefile predict_rank.py.in rm -f $@ $@.tmp $(edit) $(srcdir)/$@.in >$@.tmp mv $@.tmp $@ music-1.1.16/music-config/predict_rank.py.in0000644000175000017500000000077413571617503015670 00000000000000import ctypes import sys def c_argc_argv (argv): """ convert python argv into ctypes (int argc, char**argv) """ from ctypes import c_char_p, c_int argc = len (argv) # char*[] type t_argv = c_char_p*argc # construct argv for C c_argv = t_argv (*tuple([c_char_p(arg) for arg in argv])) c_argc = c_int (argc) return (c_argc, c_argv) libmusic = ctypes.CDLL ("@libdir@/libmusic-c.so") def predictRank (): return libmusic.MUSIC_predictRank (*c_argc_argv (sys.argv)) music-1.1.16/music-config/predict_rank.py0000644000175000017500000000100613571631416015247 00000000000000import ctypes import sys def c_argc_argv (argv): """ convert python argv into ctypes (int argc, char**argv) """ from ctypes import c_char_p, c_int argc = len (argv) # char*[] type t_argv = c_char_p*argc # construct argv for C c_argv = t_argv (*tuple([c_char_p(arg) for arg in argv])) c_argc = c_int (argc) return (c_argc, c_argv) libmusic = ctypes.CDLL ("${exec_prefix}/lib/libmusic-c.so") def predictRank (): return libmusic.MUSIC_predictRank (*c_argc_argv (sys.argv)) music-1.1.16/music-config/ChangeLog0000644000175000017500000000027413571617503014011 000000000000002012-03-15 Mikael Djurfeldt * __init__.py, predict_rank.py: New files. * config.py: Renamed from music.py. * music.py: New file. (configure): New function. music-1.1.16/music-config/config.py0000644000175000017500000001562513571617503014064 00000000000000# # This file is part of MUSIC. # Copyright (C) 2012 Mikael Djurfeldt # # MUSIC 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. # # MUSIC 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 . # # This API allows for querying the MPI rank and specification of the # information in MUSIC configuration files import os from music.predict_rank import predictRank # This function now defined in predict_rank.py # #def predictRank (): # """ # Returns the predicted MPI rank of this process # # :rtype: Integer # """ # return 0 CONFIGVARNAME = '_MUSIC_CONFIG_' OUTPUT = '0' INPUT = '1' def launchedByMusic (): return CONFIGVARNAME in os.environ def supersedeArgv (argv): """ Replace argc and argv before MUSIC initialization """ # Should insert escape characters args = argv[0] for arg in argv[1:]: args += ' ' + arg os.environ['MUSIC_ARGV'] = args def postponeSetup (): """ Postpones processing of configuration info until the creation of the first port. Must be called before creation of MUSIC::Setup. """ if not thisApp: raise RuntimeError('must define Application before calling postponeSetup ()') os.environ[CONFIGVARNAME] = 'POSTPONE:' + str (thisApp.number) portCodes = {} code = 0 def portCode (appName, portName): global code key = (appName, portName) if key in portCodes: return portCodes[key] portCodes[key] = code ans = code code += 1 return ans class ConnectivityMap (object): def __init__ (self): self.ports = {} def register (self, portName, direction, width, *connection): if portName in self.ports: (direction_, width_, connections) = self.ports[portName] #*fixme* error checks here else: connections = [] self.ports[portName] = (direction, width, connections) connections.append (connection) def conf (self): conf = str (len (self.ports)) for portName in self.ports: (direction, width, connections) = self.ports[portName] conf += ':' + portName + ':' + direction + ':' + width conf += ':' + str (len (connections)) for connection in connections: for item in connection: conf += ':' + item return conf configDict = {} appNumber = 0 rankSum = 0 thisRank = predictRank () thisApp = None class Application (object): def __init__ (self, np = None, binary = None, args = None, name = None): global appNumber, rankSum, thisApp self.name = name self.number = appNumber appNumber += 1 self.np = np self.leader = rankSum rankSum += np self.this = False if self.leader <= thisRank and thisRank < rankSum: self.this = True thisApp = self self.configDict = {} self.connectivityMap = ConnectivityMap () if binary: self.define ('binary', binary) if args: self.define ('args', args) applicationMap.register (self) def __getitem__ (self, varName): if varName in self.configDict: return self.configDict[varName] return configDict[varName] def define (self, varName, value): """ Define configuration variable varName to value value. """ self.configDict[varName] = str (value) def connect (self, fromPort, toApp, toPort, width): """ Connect fromPort to toPort. """ connections.append ((self, fromPort, toApp, toPort, str (width))) class ApplicationMap (object): def __init__ (self): self.applications = [] self.nameMap = {} def register (self, app): if not app.name: app.name = 'application' if app.name in self.nameMap: # Adjust the name to become unique record = self.nameMap[app.name] base, suffix = record if base == app.name: suffix += 1 record[1] = suffix else: base = app.name suffix = 0 self.nameMap[base] = [base, suffix] app.name += str (suffix) else: self.nameMap[app.name] = [app.name, 0] self.applications.append (app) def conf (self): conf = str (len (self.applications)) for app in self.applications: conf += ':' + app.name + ':' + str (app.np) return conf applicationMap = ApplicationMap () def define (varName, value): """ Define configuration variable varName to value value. """ configDict[varName] = str (value) # Communication algorithms commAlgorithms = { 'collective' : 0, 'point-to-point' : 1 } # Processing methods procMethods = { 'tree' : 0, 'table' : 1 } def connect (fromApp, fromPort, toApp, toPort, width, commAlgName = 'collective', procMethodName = 'table'): """ Connect fromPort to toPort specifying port width width. """ width = str (width) commAlg = commAlgorithms[commAlgName] procMethod = procMethods[procMethodName] fromApp.connectivityMap.register (fromPort, OUTPUT, width, toApp.name, toPort, str (portCode (toApp.name, toPort)), str (toApp.leader), str (toApp.np), str (commAlg), str (procMethod)) toApp.connectivityMap.register (toPort, INPUT, width, toApp.name, toPort, str (portCode (toApp.name, toPort)), str (fromApp.leader), str (fromApp.np), str (commAlg), str (procMethod)) configured = False def configure (): """ Configure the MUSIC library using the information provided by define and connect. """ conf = thisApp.name \ + ':' + str (thisApp.number) \ + ':' + applicationMap.conf () \ + ':' + thisApp.connectivityMap.conf () configDict.update (thisApp.configDict) for key in configDict: conf += ':' + key + '=' + configDict[key] os.environ[CONFIGVARNAME] = conf configured = True def launch (): if not configured: configure () binary = thisApp['binary'] os.execvp (binary, [binary] + thisApp['args'].split (' ')) music-1.1.16/music-config/__init__.py0000644000175000017500000000155713571617503014355 00000000000000# # This file is part of MUSIC. # Copyright (C) 2012 Mikael Djurfeldt # # MUSIC 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. # # MUSIC 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 . # from predict_rank import predictRank from config import launchedByMusic, supersedeArgv, postponeSetup, \ define, Application, connect, configure, launch music-1.1.16/music-config/Makefile.in0000644000175000017500000004107013571626611014303 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 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@ subdir = music-config ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(pkgpython_PYTHON) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = predict_rank.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 = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__py_compile = PYTHON=$(PYTHON) $(SHELL) $(py_compile) am__installdirs = "$(DESTDIR)$(pkgpythondir)" am__pep3147_tweak = \ sed -e 's|\.py$$||' -e 's|[^/]*$$|&.*.pyc\n&.*.pyo|' py_compile = $(top_srcdir)/py-compile am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/predict_rank.py.in \ $(top_srcdir)/py-compile ChangeLog 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@ BINDIR = @BINDIR@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXAMPLESDIR = @EXAMPLESDIR@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ FGREP = @FGREP@ GREP = @GREP@ HAVE_PYTHON = @HAVE_PYTHON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LAUNCHSTYLE = @LAUNCHSTYLE@ 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@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPI_CFLAGS = @MPI_CFLAGS@ MPI_CXXFLAGS = @MPI_CXXFLAGS@ MPI_LDFLAGS = @MPI_LDFLAGS@ MPI_UTILS = @MPI_UTILS@ MUSICCONFIGDIR = @MUSICCONFIGDIR@ MUSIC_ANYSOURCE = @MUSIC_ANYSOURCE@ MUSIC_HAVE_LONG_LONG = @MUSIC_HAVE_LONG_LONG@ MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER = @MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER@ MUSIC_HAVE_SIZE_T = @MUSIC_HAVE_SIZE_T@ MUSIC_ISENDWAITALL = @MUSIC_ISENDWAITALL@ MUSIC_USE_MPI = @MUSIC_USE_MPI@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPTIONAL_UTILS = @OPTIONAL_UTILS@ 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@ PKGDATADIR = @PKGDATADIR@ PKGEXTRABINDIR = @PKGEXTRABINDIR@ PYBUFFER_CPPFLAGS = @PYBUFFER_CPPFLAGS@ PYBUFFER_CXXFLAGS = @PYBUFFER_CXXFLAGS@ PYEXECDIR = @PYEXECDIR@ PYMUSIC_CPPFLAGS = @PYMUSIC_CPPFLAGS@ PYMUSIC_CXXFLAGS = @PYMUSIC_CXXFLAGS@ PYMUSIC_SUBDIR = @PYMUSIC_SUBDIR@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ ROS_SUBDIR = @ROS_SUBDIR@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTDIR = @TESTDIR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = $(pythondir)/music/config prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ edit = sed -e 's|@libdir[@]|$(libdir)|g' pkgpython_PYTHON = __init__.py predict_rank.py config.py EXTRA_DIST = predict_rank.py.in all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu music-config/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu music-config/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): predict_rank.py: $(top_builddir)/config.status $(srcdir)/predict_rank.py.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-pkgpythonPYTHON: $(pkgpython_PYTHON) @$(NORMAL_INSTALL) @list='$(pkgpython_PYTHON)'; dlist=; list2=; test -n "$(pkgpythondir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgpythondir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgpythondir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then b=; else b="$(srcdir)/"; fi; \ if test -f $$b$$p; then \ $(am__strip_dir) \ dlist="$$dlist $$f"; \ list2="$$list2 $$b$$p"; \ else :; fi; \ done; \ for file in $$list2; do echo $$file; done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgpythondir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgpythondir)" || exit $$?; \ done || exit $$?; \ if test -n "$$dlist"; then \ $(am__py_compile) --destdir "$(DESTDIR)" \ --basedir "$(pkgpythondir)" $$dlist; \ else :; fi uninstall-pkgpythonPYTHON: @$(NORMAL_UNINSTALL) @list='$(pkgpython_PYTHON)'; test -n "$(pkgpythondir)" || list=; \ py_files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$py_files" || exit 0; \ dir='$(DESTDIR)$(pkgpythondir)'; \ pyc_files=`echo "$$py_files" | sed 's|$$|c|'`; \ pyo_files=`echo "$$py_files" | sed 's|$$|o|'`; \ st=0; \ for files in "$$py_files" "$$pyc_files" "$$pyo_files"; do \ $(am__uninstall_files_from_dir) || st=$$?; \ done; \ dir='$(DESTDIR)$(pkgpythondir)/__pycache__'; \ echo "$$py_files" | $(am__pep3147_tweak) | $(am__base_list) | \ while read files; do \ $(am__uninstall_files_from_dir) || st=$$?; \ done || exit $$?; \ exit $$st tags TAGS: ctags CTAGS: cscope cscopelist: 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 installdirs: for dir in "$(DESTDIR)$(pkgpythondir)"; 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 mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-pkgpythonPYTHON 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 Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pkgpythonPYTHON .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-pkgpythonPYTHON install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags-am uninstall uninstall-am \ uninstall-pkgpythonPYTHON .PRECIOUS: Makefile predict_rank.py: Makefile predict_rank.py.in rm -f $@ $@.tmp $(edit) $(srcdir)/$@.in >$@.tmp mv $@.tmp $@ # 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: music-1.1.16/BUGS0000644000175000017500000000013213571617503010330 00000000000000This is the list of known MUSIC bugs: * MUSIC does not yet run on heterogenous clusters. music-1.1.16/TODO0000644000175000017500000000661313571617503010347 00000000000000* MUSIC should report an error for non-existing app label when connecting ports * MUSIC should report an error when same app label is reused for different sections * No default value for stoptime in contsink (possibly others) * Startup hangs for msgtest3.music example (with unconnected port) * Check problem with port width and random connections (should we use max of sender and receiver width? patch on spell) * autoconf test for mpi4py Things to do in preparation for the music-1.2.0 release: --- Start music-1.2.0 * E: Make testsuite * E: (If sufficient time): Better multiconnector communicator creation algorithm * M: Complete multiconnector implementation (support for abitrary number of apps) * M: Complete Python bindings * Test that continuous ports work as expected ** Interpolation/non-interpolated case, also with different buffering and different ITI (inter-tick-interval) for the communication applications. * Better README * Update NEWS * Update manual (/doc) with new configuration file syntax --- End music-1.2.0 * OrderedIList should be made more generic and handle insertion of indices which already exist in the ilist * remove ProxyConnector? * remove multiComm member? * remove leader and nProcs info in scheduler Nodes:s? * checkpointing * use duplicate of MPI::COMM_WORLD for setting up inter-communicators * report error if index maps overlap on the sender side * for the event router only: join intervals also over "holes" in the local index map * duplicate COMM_WORLD and use that throughout library? * error handling (call MPI error handler) * revise timing algorithm to allow for loops with 1 tick acceptable latency where this is theoretically possible. * connector signature checking when connecting to peers (cont ports: common MPI data types + unknown + size) * Check that all administrative objects get deallocated at start of runtime (for example the objects assoicated with configuration) * lift out as much as possible of the negotiation stuff from connectors and move to connections, for example ConnectorInfo and createIntercomm * rename Runtime::schedule * report port name if missing * alternative implementation for clockstate (not long long) * Code duplication sampler - distributor - collector - kommentarer * optional arguments when mapping ports: maxbuffered but not latency * error message if latency => > maxBuffered * indexinterval::local --> offset * Use pass-by-reference instead of pass-by-value where possible (especially for some strings) * cleanup constructor arguments in subconnector.cc * marshalling, for example in temporal.cc, subconnector.cc * Documentation strings Optional * Improve all error reporting (giving more informative messages with names etc) * Set flags with options to the music utility and transmit them to the applications so that library behavior can be controlled. E.g., print out run statistics, such as part of time spent in tick() when deleting runtime. * Join intervals in PermutationIndex and IndexMapFactory * Th mpidep directory should contain a test binary which is built and run before anything else is being compiled * Write piecewise_linear_index and derive linear_index and permutation_index from it. * Communicate between ticks using non-blocking communication. Possible to have two kinds of subconnectors, keeping the current ones for cases with short acceptable latency, music-1.1.16/doc/0000755000175000017500000000000013571740114010471 500000000000000music-1.1.16/doc/musicrun.10000644000175000017500000000245613571617503012354 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH MUSIC 1 "March 5, 2009" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME musicrun \- launch a MUSIC co-simulation .SH SYNOPSIS .B music_tests .I number_of_tasks .I configuration_file .SH DESCRIPTION Launch a MUSIC co-simulation. .PP This is a convenience utility which provides a similar interface over multiple MPI implementations. .SH SEE ALSO .BR music (1). .\" .BR bar (1), .\" .BR baz (1). .\" .br .\" The programs are documented fully by .\" .IR "The Rise and Fall of a Fooish Bar" , .\" available via the Info system. .SH AUTHOR musicrun was written by Ekaterina Brocke.. .PP This manual page was written by Mikael Djurfeldt , for the Debian project (but may be used by others). music-1.1.16/doc/Makefile.am0000644000175000017500000000411013571617503012446 00000000000000## Process this file with Automake to create Makefile.in dist_man1_MANS = music.1 musicrun.1 music_tests.1 contsink.1 eventcounter.1 \ eventgenerator.1 eventlogger.1 \ eventselect.1 eventsink.1 eventsource.1 messagesource.1 viewevents.1 EXTRA_DIST = music-manual.pdf figures/dataconvergence.asy figures/datamapping.asy \ figures/messysim.asy figures/multisim.asy figures/receiverport.asy \ figures/remapping.asy figures/remapping2.asy figures/senderport.asy \ figures/ticklogic.asy figures/ticklogic2.asy figures/timeline.asy \ music-c-int.h music-manual.tex music-rfc.bib figures = figures/multisim.pdf \ figures/datamapping.pdf \ figures/ticklogic.pdf \ figures/ticklogic2.pdf \ figures/timeline.pdf \ figures/remapping.pdf \ figures/remapping2.pdf CLEANFILES = music-manual.aux \ music-manual.bbl \ music-manual.blg \ music-manual.idx \ music-manual.ilg \ music-manual.ind \ music-manual.lof \ music-manual.log \ music-manual.toc \ music-manual.stamp1 \ $(figures) linked_mans = eventgenerator.1 eventlogger.1 eventselect.1 eventsink.1 \ eventsource.1 viewevents.1 music-manual.pdf: music-manual.bbl music-manual.ind pdflatex music-manual pdflatex music-manual music-manual.bbl: music-manual.stamp1 bibtex music-manual music-manual.ind: music-manual.stamp1 makeindex music-manual music-manual.stamp1: music-manual.tex music-rfc.bib music-c-int.h wavetest.music waveproducer.cc waveconsumer.cc $(figures) test -f music-manual.tex || ln -s $(srcdir)/music-manual.tex test -f music-rfc.bib || ln -s $(srcdir)/music-rfc.bib test -f music-c-int.h || ln -s $(srcdir)/music-c-int.h pdflatex music-manual touch music-manual.stamp1 wavetest.music: ln -s $(srcdir)/../examples/wavetest.music waveproducer.cc: ln -s $(srcdir)/../examples/waveproducer.cc waveconsumer.cc: ln -s $(srcdir)/../examples/waveconsumer.cc $(figures): figures/%.pdf : figures/%.asy test -d figures || mkdir figures asy -f pdf -o $@ $< $(linked_mans): cd $(srcdir) && ln eventcounter.1 $@ music-1.1.16/doc/music-rfc.bib0000644000175000017500000000076613571617503012775 00000000000000@Misc{mpi1.1, author = {Message Passing Interface Forum}, title = {{MPI}: A Message-Passing Interface Standard}, month = {November}, year = 2003, howpublished = {{\url{http://www.mpi-forum.org/docs/mpi-11-html/mpi-report.html}}} } @Misc{mpi2.0, author = {Message Passing Interface Forum}, title = {{MPI}-2: Extensions to the Message-Passing Interface}, month = {November}, year = 2003, howpublished = {{\url{http://www.mpi-forum.org/docs/mpi-20-html/mpi2\-report.html}}} } music-1.1.16/doc/music-c-int.h0000644000175000017500000000740013571617503012720 00000000000000/* Setup */ MUSIC_Setup *MUSIC_createSetup (int *argc, char ***argv); /* Communicators */ MPI_Intracomm MUSIC_Setup_communicator (MUSIC_setup *setup); /* Port creation */ MUSIC_ContOutputPort *MUSIC_publishContOutput (MUSIC_setup *setup, char *id); MUSIC_ContInputPort *MUSIC_publishContInput (MUSIC_setup *setup, char *id); MUSIC_EventOutputPort *MUSIC_publishEventOutput (MUSIC_setup *setup, char *id); MUSIC_EventInputPort *MUSIC_publishEventInput (MUSIC_setup *setup, char *id); MUSIC_MessageOutputPort *MUSIC_publishMessageOutput (MUSIC_setup *setup, char *id); MUSIC_MessageInputPort *MUSIC_publishMessageInput (MUSIC_setup *setup, char *id); void MUSIC_destroyContOutput (MUSIC_ContOutputPort* port); void MUSIC_destroyContInput (MUSIC_ContInputPort* port); void MUSIC_destroyEventOutput (MUSIC_EventOutputPort* port); void MUSIC_destroyEventInput (MUSIC_EventInputPort* port); void MUSIC_destroyMessageOutput (MUSIC_MessageOutputPort* port); void MUSIC_destroyMessageInput (MUSIC_MessageInputPort* port); /* General port methods */ /* Xxx = Cont | Event Ddd = Output | Input */ int MUSIC_XxxDddPort_isConnected (XxxDddPort *port); int MUSIC_MessageDddPort_isConnected (MessageDddPort *port); int MUSIC_XxxDddPort_hasWidth (XxxDddPort *port); int MUSIC_XxxDddPort_width (XxxDddPort *port); /* Mapping */ /* No arguments are optional. */ void MUSIC_ContOutputPort_map (MUSIC_ContOutputPort *port, MUSIC_ContData *dMap, int maxBuffered); void MUSIC_ContInputPort_map (MUSIC_ContInputPort *port, MUSIC_ContData *dMap, double delay, int maxBuffered, int interpolate); void MUSIC_EventOutputPort_map (MUSIC_EventOutputPort *port, MUSIC_IndexMap *indices, int maxBuffered); typedef void MUSIC_EventHandler (double t, int id); void MUSIC_EventInputPort_map (MUSIC_EventInputPort *port, MUSIC_IndexMap *indices, MUSIC_EventHandler *handleEvent, double accLatency, int maxBuffered); void MUSIC_MessageOutputPort_map (MUSIC_MessageOutputPort *port, int maxBuffered); typedef void MUSIC_MessageHandler (double t, void *msg, size_t size); void MUSIC_MessageInputPort_map (MUSIC_MessageInputPort *port, MUSIC_MessageHandler *handleMessage, double accLatency, int maxBuffered); /* Index maps */ MUSIC_PermutationIndex *MUSIC_createPermutationIndex (int *indices, int size); void MUSIC_destroyPermutationIndex (MUSIC_PermutationIndex *index); MUSIC_LinearIndex *MUSIC_createLinearIndex (int baseIndex, int size); void MUSIC_destroyLinearIndex (MUSIC_LinearIndex *index); /* Data maps */ /* Exception: The map argument can take any type of index map. */ MUSIC_ArrayData *MUSIC_createArrayData (void *buffer, MPI_Datatype type, void *map); /* Exception: MUSIC_createLinearArrayData corresponds to c++ music::ArrayData::ArrayData (..., ..., ..., ...) */ MUSIC_ArrayData *MUSIC_createLinearArrayData (void *buffer, MPI_Datatype type, int baseIndex, int size); void MUSIC_destroyArrayData (MUSIC_ArrayData *arrayData); /* Configuration variables */ /* Exceptions: Result is char * Extra maxlen argument prevents buffer overflow. Result is terminated by \0 unless longer than maxlen - 1 */ int MUSIC_config (MUSIC_Setup *setup, char *name, char *result, size_t maxLen); int MUSIC_config (MUSIC_Setup *setup, char *name, int *result); int MUSIC_config (MUSIC_Setup *setup, char *name, double *result); /* Runtime */ MUSIC_Runtime *MUSIC_createRuntime (MUSIC_Setup *setup, double h); void MUSIC_tick (MUSIC_Runtime *runtime); double MUSIC_time (MUSIC_Runtime *runtime); /* Finalization */ void MUSIC_destroyRuntime (MUSIC_Runtime *runtime); music-1.1.16/doc/eventcounter.10000644000175000017500000000755213571617503013232 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH EVENTCOUNTER 1 "March 5, 2009" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME contsink, eventcounter, eventgenerator, eventlogger, eventselect, eventsink, eventsource, messagesource, viewevents \- utility applications which can be used together with other MUSIC-aware applications in multi-simulations .SH SYNOPSIS .B contsink .RB [ "\-tdih " ] .br .B eventcounter .RB [ "\-tbmh " ] .I "n_units prefix " [ .I suffix ] .br .B eventgenerator .RB [ "\-tbfmih " ] .I "n_units" .br .B eventlogger .RB [ "\-tlbmih " ] .br .B eventselect .RB [ "\-th " ] .I n_units units .br .B eventsink .RB [ "\-tmih " ] .I "n_units prefix " [ .I suffix ] .br .B eventsource .RB [ "\-tbmih " ] .I "n_units prefix " [ .I suffix ] .br .B messagesource .RB [ "\-tbh " ] .I "prefix " [ .I suffix ] .br .B viewevents .RB [ "\-tshT " ] .I "configfile" .SH DESCRIPTION This manual page documents briefly a set of MUSIC-aware utility applications provided together with MUSIC library. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBeventcounter\fP receives spikes through a MUSIC input port, counts all spikes for each index and writes the frequencies to a set of files with names .I "prefix rank suffix" .PP \fBeventgenerator\fP generates spikes from a Poisson distribution. .PP \fBeventlogger\fP logs spikes from a MUSIC port. .PP \fBeventselect\fP receives events from an input port of width .I "n_units " and sends events for the subset of id:s specified in the file .I "units" .PP \fBeventsink\fP receives spikes through a MUSIC input port and writes these to a set of files with names .I "prefix rank suffix" .PP \fBeventsource\fP reads spikes from a set of files with names .I "prefix rank suffix" and propagates these spikes through a MUSIC output port. .PP \fBviewevents\fP reads spikes from a MUSIC input port and displays them as a 3D graphical representation. .SH OPTIONS The utilities follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. .TP .B \-b ticks, \-\-maxbuffered ticks Specify maximal amount of data buffered. .TP .B \-f freq, \-\-frequency Specify average frequency (default 10 Hz). .TP .B \-h, \-\-help Show usage information. .TP .B \-i, \-\-indextype Select global (default) or local indices. (Used for testing and benchmarking purposes.) .TP .B \-l latency, \-\-acclatency latency Specify acceptable data latency (s). .TP .B \-m type, \-\-imaptype type Select linear (default) or roundrobin index map. .TP .B \-s scaling, \-\-scaletime scaling Specify real time to simulated time scale factor (s). If omitted, the visualization runs at full speed. .TP .B \-t timestep, \-\-timestep timestep Specify time between tick() calls (default 0.01 s). .TP .B \-T title, \-\-title title Specify window title. .SH SEE ALSO .BR music (1) .\" .BR baz (1). .\" .br .\" The programs are documented fully by .\" .IR "The Rise and Fall of a Fooish Bar" , .\" available via the Info system. .SH AUTHOR MUSIC was written by Mikael Djurfeldt and –rjan Ekeberg for INCF. viewevents was written by Johannes Hjorth for INCF. .PP This manual page was written by Mikael Djurfeldt , for the Debian project (but may be used by others). music-1.1.16/doc/eventlogger.10000644000175000017500000000755213571617503013032 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH EVENTCOUNTER 1 "March 5, 2009" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME contsink, eventcounter, eventgenerator, eventlogger, eventselect, eventsink, eventsource, messagesource, viewevents \- utility applications which can be used together with other MUSIC-aware applications in multi-simulations .SH SYNOPSIS .B contsink .RB [ "\-tdih " ] .br .B eventcounter .RB [ "\-tbmh " ] .I "n_units prefix " [ .I suffix ] .br .B eventgenerator .RB [ "\-tbfmih " ] .I "n_units" .br .B eventlogger .RB [ "\-tlbmih " ] .br .B eventselect .RB [ "\-th " ] .I n_units units .br .B eventsink .RB [ "\-tmih " ] .I "n_units prefix " [ .I suffix ] .br .B eventsource .RB [ "\-tbmih " ] .I "n_units prefix " [ .I suffix ] .br .B messagesource .RB [ "\-tbh " ] .I "prefix " [ .I suffix ] .br .B viewevents .RB [ "\-tshT " ] .I "configfile" .SH DESCRIPTION This manual page documents briefly a set of MUSIC-aware utility applications provided together with MUSIC library. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBeventcounter\fP receives spikes through a MUSIC input port, counts all spikes for each index and writes the frequencies to a set of files with names .I "prefix rank suffix" .PP \fBeventgenerator\fP generates spikes from a Poisson distribution. .PP \fBeventlogger\fP logs spikes from a MUSIC port. .PP \fBeventselect\fP receives events from an input port of width .I "n_units " and sends events for the subset of id:s specified in the file .I "units" .PP \fBeventsink\fP receives spikes through a MUSIC input port and writes these to a set of files with names .I "prefix rank suffix" .PP \fBeventsource\fP reads spikes from a set of files with names .I "prefix rank suffix" and propagates these spikes through a MUSIC output port. .PP \fBviewevents\fP reads spikes from a MUSIC input port and displays them as a 3D graphical representation. .SH OPTIONS The utilities follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. .TP .B \-b ticks, \-\-maxbuffered ticks Specify maximal amount of data buffered. .TP .B \-f freq, \-\-frequency Specify average frequency (default 10 Hz). .TP .B \-h, \-\-help Show usage information. .TP .B \-i, \-\-indextype Select global (default) or local indices. (Used for testing and benchmarking purposes.) .TP .B \-l latency, \-\-acclatency latency Specify acceptable data latency (s). .TP .B \-m type, \-\-imaptype type Select linear (default) or roundrobin index map. .TP .B \-s scaling, \-\-scaletime scaling Specify real time to simulated time scale factor (s). If omitted, the visualization runs at full speed. .TP .B \-t timestep, \-\-timestep timestep Specify time between tick() calls (default 0.01 s). .TP .B \-T title, \-\-title title Specify window title. .SH SEE ALSO .BR music (1) .\" .BR baz (1). .\" .br .\" The programs are documented fully by .\" .IR "The Rise and Fall of a Fooish Bar" , .\" available via the Info system. .SH AUTHOR MUSIC was written by Mikael Djurfeldt and –rjan Ekeberg for INCF. viewevents was written by Johannes Hjorth for INCF. .PP This manual page was written by Mikael Djurfeldt , for the Debian project (but may be used by others). music-1.1.16/doc/music_tests.10000644000175000017500000000252613571617503013047 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH MUSIC 1 "March 5, 2009" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME music_tests \- run MUSIC tests .SH SYNOPSIS .B music_tests .RI [ options ] .SH DESCRIPTION Run a suite of tests validating the correct operation of MUSIC. .SH OPTIONS .B \-\-help Show program options and exit. .TP .B \-\-showme\-tests Print test names and exit. .TP .B \-\-output\-dir= Output directory (default: ./reports). .SH SEE ALSO .BR music (1). .\" .br .\" The programs are documented fully by .\" .IR "The Rise and Fall of a Fooish Bar" , .\" available via the Info system. .SH AUTHOR music_tests was written by Ekaterina Brocke.. .PP This manual page was written by Mikael Djurfeldt , for the Debian project (but may be used by others). music-1.1.16/doc/music-manual.tex0000644000175000017500000020540613571617503013542 00000000000000\documentclass[a4paper,twoside]{report} \usepackage[numbers]{natbib} \citestyle{newapa} \usepackage[utf8]{inputenc} \usepackage{fancyhdr} \usepackage{color} \usepackage{graphicx} \usepackage{listings} \usepackage{makeidx} \usepackage{comment} %%%%% Formatting %%%%% % Use the metatext environment around text that should not appear in % the final document %\newenvironment{metatext}% %{\color{blue}}% %{} \excludecomment{metatext} % Use the rationale environment around arguments for design decisions \newenvironment{rationale}% {\par\begin{quote}\textbf{Rationale:}}% {\par\end{quote}} % Use the head environment around method heads \lstnewenvironment{head}[1]% {\lstset{frame=topline,emph={#1},emphstyle=\color{blue}\textbf}}% {} % Use the parameters environment after heads \newenvironment{parameters}% {\begin{tabular}{@{\hspace{2em}}lp{0.6\textwidth}}}% {\end{tabular}\par\vspace{1mm}\par\hrule\par\vspace{5mm}} % Use the code environment around method code examples \lstnewenvironment{code}[1]% {\lstset{frame=single,caption={#1}}}% {} \renewcommand{\lstlistingname}{Example} % Use the responsible command to indicate which author is responsible % for the present section \newcommand{\responsible}[1]% {{\color{red}[#1 is responsible for this section]}} \fancyhead{} \fancyhead[L]{\slshape\leftmark} \pagestyle{fancy} \makeindex %%%%% Actual content starts here %%%%% \begin{document} \lstset{language=C++,identifierstyle=\ttfamily} \title{MUSIC --- Multi-Simulation Coordinator\\[2ex] Users Manual\\} \author{–rjan Ekeberg and Mikael Djurfeldt} \maketitle \begin{abstract} MUSIC is an API allowing large scale neuron simulators using MPI internally to exchange data during runtime. MUSIC provides mechanisms to transfer massive amounts of event information and continuous values from one parallel application to another. Special care has been taken to ensure that existing simulators can be adapted to MUSIC. In particular, MUSIC handles data transfer between applications that use different time steps and different data allocation strategies. \end{abstract} \tableofcontents \listoffigures \chapter{Introduction} This document constitutes the final specification for the multi-simulation coordinator MUSIC. \section{Scope} MUSIC is a standard for run-time exchange of data between parallel applications in a cluster environment. The standard is designed specifically for interconnecting large scale neuronal network simulators, either with each-other or with other tools. A typical usage example is illustrated in figure~\ref{fig:multisim}, where three applications ($A$, $B$, and $C$) are executing in parallel while exchanging data via MUSIC. We will refer to this as a \emph{multi-simulation}, since the participating applications typically are neuronal simulators, or tools to support such simulators. In this example, application $A$ produces runtime data which is then used by $B$ and $C$. In addition, $B$ and $C$ mutually send data to each other. The data sent between applications can be either event based, such as neuronal spikes, or graded continuous values, for example membrane voltages. \begin{figure} \begin{center} \includegraphics[width=0.5\textwidth]{figures/multisim} \caption[Typical multi-simulation]{\label{fig:multisim} Illustration of a typical multi-simulation using MUSIC. Three applications, $A$, $B$, and $C$, are exchanging data during runtime. } \end{center} \end{figure} The primary objective of MUSIC is to support multi-simulations where each participating application itself is a parallel simulator with the capacity to produce and/or consume massive amounts of data. This promotes \emph{inter-operability} by allowing models written for different simulators to be simulated together in a larger system. It also enables \emph{re-usability} of models or tools by providing a standard interface. The fact that data is spread out over a number of processors makes it non-trivial to coordinate the transfer of data so that it reaches the right destination at the right time. The task for MUSIC is to relieve the applications from handling this complexity. \section{Design Goals} \subsection{Portability} The MUSIC library and utilities have been designed to run smoothly on state-of-the-art high-performance hardware. For maximal portability, the software is written in C++, which is the de facto standard for current high-end hardware. MUSIC also provides a C-interface, making it possible for applications written in C or FORTRAN to participate in a MUSIC multi-simulation. Most, if not all, current efforts in large scale neuronal simulations are based on the MPI\index{MPI} standard. MUSIC is built on top of MPI, and uses it to run the different simulators. MUSIC provides means to allow each simulator to use MPI internally without interfering with the others. MUSIC has been developed using two reference platforms: Intel-based multi-core workstations and the IBM BlueGene/L\index{BlueGene/L}\index{IBM BlueGene} supercomputer. These platforms can be considered as two extremes, where the multi-core machine represents a small parallel environment while the BlueGene/L represents a large scale massively parallel supercomputer with special requirements. In particular, the compute nodes on the BlueGene/L do not support multiple threads or processes. \subsection{Simplicity} \label{sec:simplicity} For MUSIC to be useful, it must be possible to adapt existing simulators so that they can participate in a multi-simulation without too much effort. We rely on the simulator developers to make these adaptations. An important design goal has therefore been to adapt the design to the typical structure of current simulators. It should be possible to add MUSIC library support without invasive restructuring of the existing code. The primary requirements on an application using MUSIC is that it declares what data should be exported and imported and that it repeatedly calls a function at regular intervals during the simulation to allow MUSIC to make the actual data transfer. \subsection{Independence} The MUSIC interface ensures that each individual application does not need special adaptation to specific properties of other applications. The application only needs to adhere to the specification of the MUSIC interface in order to communicate with other applications performing complementary tasks. This makes the development of MUSIC-aware software independent of what other applications it will communicate with. We hope that this will facilitate the development of general purpose tools. For example, a researcher can develop a tool for calculating synthetic EEG from simulation data. Via MUSIC, this tool should then be useful for anybody using any neuronal simulator which supports the common MUSIC interface. \subsection{Performance} The MUSIC API has been designed to allow for data transport of high bandwidth and low latency within the cluster. One means of ensuring the best use of the hardware while maintaining portability is to use the facilities of MPI for communication. MPI encapsulates software optimizations for specific hardware. By basing the interface on MPI we can benefit from such optimizations. \subsection{Extensibility} Where possible, MUSIC allows for extensions by the application programmer. Some classes in the MUSIC API (such as the index and data maps) can be subclassed in order to provide facilities not available directly in the API. \section{Terminology} \begin{description} \item[application] We use the term \emph{application}\index{application} to denote a simulator or other program interfaced to MUSIC. Each application is a parallel program, normally running on several processors. \item[multi-simulation] We use the term \emph{multi-simulation}\index{multi-simulation} to refer to the whole parallel execution of multiple applications coordinated by MUSIC. \item[port] Each application declares its ability to produce and consume data by publishing \emph{ports}\index{port}. Ports are named by the application and provided with information about the datatype (continuous data, spike events, messages) and mapping onto different processors. Ports are either \lstinline|InputPort|s\index{input port} or \lstinline|OutputPort|s\index{output port}. \item[connection] During the setup phase, MUSIC connects pairs of ports together to form \emph{connections}\index{connection}. During the runtime phase, data is transferred over the connection from the producer of the data to the consumer. While an \lstinline|InputPort| can have only one connection, an \lstinline|OutputPort| can be connected to multiple \lstinline|InputPort|s. \item[data map] A data map\index{data map} denotes the information on where data actually resides within the application. This is typically stored internally in the port data structure. Data to be transferred over a connection can be regarded as a large array distributed over multiple processors. The data map tells on what processor each data element resides and how it should be accessed. \item[ticks] During the runtime phase, all processes in each application must make a \emph{tick}\index{tick} call at regular intervals in simulated time. At these tick points, MUSIC is allowed to use MPI to transfer data between processors. \end{description} \section{Relation to Existing Software} MUSIC is not the only software project aiming to support inter-operability between neural simulators. In this section we will briefly describe some related projects and specifically focus on how they relate to MUSIC. \paragraph{PyNN}\index{PyNN} PyNN is a Python package for simulator-independent specification of neuronal network models. It provides a low-level procedural API and a high-level object-oriented API. Neuronal network models which are specified using these API:s can be simulated on simulators supporting PyNN, such as Neuron\index{Neuron} and NEST\index{NEST}. PyNN could be extended to support multi-simulations using the MUSIC library. Such an extension would provide means for controlling the interaction between the simulator and the MUSIC library and would, for example, support publishing of named ports. It is possible, in principle, to write Python code to directly handle communication between applications in a cluster, but such a solution would be inefficient compared to using MUSIC, and might, in the end, have to address the same problems which MUSIC provides a solution to. \paragraph{Neurospaces}\index{Neurospaces} The Neurospaces project promotes inter-operability and re-usability through the development of independent software components, some of which, together, will provide one of two alternative cores of the Genesis 3 simulator. One of the components, the Neurospaces Model Container abstracts model description from the solver. Another component, the Discrete Event System can handle distribution and queuing of spikes. Components adhere to the CBI simulator architecture. It is possible to develop a MUSIC adapter consistent with the CBI simulator architecture. This would allow the Neurospaces framework, and Genesis 3, to interface to independently running applications in a cluster environment. \begin{metatext} \paragraph{Neosim}\index{Neosim} \paragraph{MOOSE}\index{MOOSE} \end{metatext} \chapter{Execution Model} \section{Phases of Execution} A multi-simulation, i.e. a set of interconnected parallel applications, is executed in three distinct phases: \begin{description} \item[\textbf{Launch}]\index{launch phase} is the phase where all the applications are started on the processors. During this phase, MUSIC is responsible for distributing and launching the application binaries on the set of MPI processes allocated to the MUSIC job. Since MPI can be initialized first when the applications have been launched, most of this work needs to be performed outside of MPI. In particular, the tasks of accessing the command line argument of the MUSIC launch utility and of determining the ranks of processes before MPI initialization therefore has to be handled separately for different MPI implementations. Technically, the launch phase begins when \texttt{mpirun} launches the MUSIC binary and ends when the Setup object constructor returns. (See further description below.) \item[\textbf{Setup}]\index{setup phase} is the phase when all applications can publish what ports they are prepared to handle along with the time step they will use and where data will be present (where in memory and/or on what processor). During the setup phase, applications can read configuration parameters communicated via the common configuration file. At the end of the setup phase, MUSIC will establish all connections. The setup phase begins when the Setup object has been created and ends when the runtime object constructor returns. \item[\textbf{Runtime}]\index{runtime phase} is the phase when simulation data is actually transferred between applications. Via \texttt{tick} calls the simulated time of applications is kept in order. The runtime phase begins when the runtime object has been created and ends when its finalize method is called. \end{description} From the application programmers point of view, these phases are clearly separated through the use of two main components of the MUSIC interface: the \emph{Setup} and the \emph{Runtime} object. The launch phase is not visible for the application since it handles the situation before the application starts. When the application initializes MUSIC at the beginning of execution it receives a specific \emph{Setup object}. This object gives access to the functionality relevant during the setup phase via its methods. When done with the setup, the application program makes the transition to the runtime phase by passing the Setup object as an argument to the \emph{runtime object} constructor which destroys the Setup object. The runtime object provides methods relevant during the runtime phase of execution. \section{Spatial Distribution of Data} \label{sec:spatialdist} Communication between applications is handled by ports. Ports are named sources (output ports) or sinks (input ports) of data flows. The data to be communicated may be differently organized in process memory on the receiver side compared to the sender side. The applications may run on different numbers of processes, and, the data may be differently distributed among the sender processes and the receiver processes, as is shown in Figure~\ref{fig:datamapping}. How does MUSIC know which data to send where? In MUSIC, there are two views of the data to be communicated over a connection. Data elements are enumerated differently according to these views. MUSIC uses \emph{shared global indices}\index{shared index}\index{global index} to enumerate the entire set of data to be sent over the connection while \emph{local indices}\index{local index} enumerate the subset of data which is stored in the memory of a particular MPI process. Data does not need to be ordered in the same way according to the two views. For example, data stored in an array may be associated with an arbitrary subset of global indices in an arbitrary order. The MUSIC library is informed about the relationship between global and local indices and how data is stored in memory during the setup phase. Two abstractions are used to carry this information: The \lstinline|IndexMap| maps local indices to global indices. That is, the \lstinline|IndexMap| tells which parts of a distributed data array are handled by the local process and how the data elements are locally ordered. The \lstinline|DataMap| encapsulates how a port accesses its data. The \lstinline|DataMap| contains an \lstinline|IndexMap|. While an index map is a mapping between two kinds of indices, the data map also contains information about where in memory data resides, how it is structured, and, the type of the data elements. The type is used for marshalling when running on a heterogeneous cluster. During setup every process of the application individually provides the port with a \lstinline|DataMap| (or an \lstinline|IndexMap| in the case of event ports). \begin{figure} \begin{center} \includegraphics[width=0.7\textwidth]{figures/datamapping} \caption[Mapping of data]{\label{fig:datamapping} Data transfer over a connection from an application running in four processes to an application running in three processes. The light gray areas in the sender and receiver represents the MUSIC port. Dashed lines divide the application into distinct processes. } \end{center} \end{figure} \begin{rationale} While connections are often used to handle the transfer of spikes from one group of neurons to another, they should not be regarded as an implementation of synaptic projections\index{projections}. Connections will only handle a direct one-to-one transport from one application to another. Re-mapping to actual receiving neurons, e.g. to implement an all-to-all projection, must be handled by one of the applications. Thus, it may be better to regard the ports as \emph{proxy-objects}\index{proxy objects}, providing indirect access to neurons simulated by the other application. \end{rationale} \section{Timing Considerations} \label{sec:timing} Different applications may use different time steps and it is the responsibility of MUSIC to ensure that data is delivered at the appropriate time. In order to minimize handshaking, both parts of a connection pair locally calculate when the actual data transfer over MPI takes place. To ensure that these calculations produce predictable results, simulation time is internally represented using integers with a global micro-timestep\index{micro-timestep} common for all applications. Simulation time\index{simulation time} is local for each application and MUSIC does not enforce unnecessary synchronization between these local clocks. Thus, an application producing data may be running ahead of another application which consumes the same data. MUSIC internally builds a schedule which ensures that data arrives at the appropriate local time in the receiving application. Scheduling becomes more complex when data is not only transferred in a feed-forward manner, i.e. when the connection graph contains loops. In this case MUSIC has to rely on the existence of sufficient delays in the simulated model, typically corresponding to axonal delays\index{axonal delay}. \begin{figure} \begin{center} \begin{minipage}{0.45\textwidth} \includegraphics[width=\textwidth]{figures/ticklogic} \caption[Timing of data transfer, slowdown]{\label{fig:timingshorter} Transfer of data when sender has a shorter tick interval than the receiver.} \end{minipage} \hfill \begin{minipage}{0.45\textwidth} \includegraphics[width=\textwidth]{figures/ticklogic2} \caption[Timing of data transfer, speedup]{\label{fig:timinglonger} Transfer of data when sender has a longer tick interval than the receiver.} \end{minipage} \end{center} \end{figure} Figures~\ref{fig:timingshorter} and \ref{fig:timinglonger} illustrate how MUSIC handles time when transferring continuous data over a connection. In figure~\ref{fig:timingshorter}, the sender application uses a shorter tick interval than the receiver. The sender side uses values sampled at the tick points to interpolate a value corresponding to the point in time when the receiver makes its tick call. The dark middle area (labelled ``MPI'') is where the actual data transfer takes place. MUSIC makes use of the fact that the receiving application can run with its simulation clock set independently of the sender. The arrows going ``backwards in time'' in this area reflect the fact that the receivers clock is lagging. This makes it possible for data to arrive in time despite the fact that it was available later (e.g. at tick \(s_2\)) than when it was arriving (at \(r_1\)), when talking about simulated time. Figure~\ref{fig:timinglonger} illustrates what happens when the receiver of continuous data is calling tick faster then the sender. The sender will then buffer up values from the preceding and current ticks and transfer this at a suitable tick call. The receiver will portion these values out by interpolating at the appropriate ticks. The strategy of having the receiver application running with a delayed local clock only works when the connection graph forms a directed acyclic graph (DAG)\index{DAG}\index{acyclic graph}\index{loops}. When loops occur it is necessary to allow for data arriving late, at least somewhere along each loop. MUSIC handles this via \emph{acceptable latency}\index{acceptable latency}\index{latency} which is a property of event input ports. The receiving application declares how late, according to simulation time, data may arrive, thus giving MUSIC room for resolving the scheduling problem. In the case of continuous data, the application specifies a \emph{delay}\index{delay} which fulfills the same purpose. In figures \ref{fig:timingshorter} and \ref{fig:timinglonger}, the sending application must be running ahead of the receiver in order to maintain the illusion that communication is instantaneous. Figure~\ref{fig:timeline} illustrates the timing relation between sender and receiver along a real time axis (wallclock time) when the receiver accepts a delay of incoming data. This allows the receiver (B) to run ahead of the sender (A), thus creating the slack necessary to make schedules for communication loops. \begin{figure} \begin{center} \includegraphics[width=0.7\textwidth]{figures/timeline} \caption[Timing of ticks]{\label{fig:timeline} This figure illustrates how MUSIC can allow one application (B) to execute ahead of another (A) when transferring continuous data. The receiver (B) has specified a delay on the input port which means that the value to be delivered at each tick (gray areas) corresponds to a simulated time in A (blue arrows) which has already happened. Note that the tick times when MUSIC actually transfers data will be aligned on the real time axis, since blocking communication is used. In practice, one of the applications will have to wait for the other to reach the same point in its execution. } \end{center} \end{figure} \section{Message Ports}\index{message port} In addition to the port types which handle continuous and spike event data, MUSIC provides \emph{message ports}. Message ports allow for transmission of arbitrary messages of, for example, control information between applications. A multi-simulation may, for example, be controlled by a script running in a Python process on one of the cluster nodes. The script may use a message port to alter a parameter or turn on a stimulus in an application at a certain point in time. Messages sent from any process on the sender side of the connection are routed to all processes on the receiver side which have announced there willingness to receive messages. Contrary to ports for continuous data, any marshalling is the responsibility of the sender and receiver application. To achieve independence between MUSIC applications, it is recommended that messages are text strings with the syntax of the interpreter language of the receiving application, and that these text strings originate from a user-specified configuration file read by the sending application. \section{Application Responsibilities} One goal of MUSIC has been to limit the responsibilities imposed on each application (c.f. section \ref{sec:simplicity}). Here we present a step-by-step list of what an application must do in order to participate in a multi-simulation. \begin{enumerate} \item \textbf{Initiate MUSIC}\index{initiate MUSIC} This is done by calling the \lstinline!Setup! function. \item \textbf{Create ports} Data to be imported and exported is identified by creating named ports. \item \textbf{Map ports}\index{map ports} MUSIC is informed about where the actual data is located. This includes information about which processor owns each data element. For continuous data it also includes information about where in memory it is stored, while for event data it specifies how to receive events. \item \textbf{Initiate the runtime phase} At this stage, MUSIC can build the plan for communication between different processes. \item \textbf{Advance simulation time}\index{tick}\index{advance time} \index{time} The application must call \lstinline!tick! at regular intervals to give MUSIC the opportunity to transfer data. \item \textbf{Finalize MUSIC}\index{finalize}\index{terminate} By calling \lstinline|finalize|, all MUSIC communication is terminated. \end{enumerate} \chapter{Starting a Multi-Simulation} \section{Overview} Parallel programs based on MPI are normally started by running a special program called \texttt{mpirun}\index{mpirun} (for MPI-1) or \texttt{mpiexec}\index{mpiexec} (for MPI-2). To start multiple applications and enable them to communicate with each other, MUSIC utilizes a special launcher program called \texttt{music}\index{music (launcher)} which, in turn, starts the different applications. Information about which applications should be started, and the communication pattern between them is described in a common \emph{configuration file}\index{configuration file}. \begin{rationale} The reason for not controlling configuration via the MUSIC API is that individual applications should remain ignorant about the structure of the full multi-simulation. Thus, the API provides methods for asking about the parts of the configuration relevant for that application, i.e. its ports, but does not expose the complete communication graph. \end{rationale} \section{The Configuration File} The main purpose of the configuration file is to control what applications to start, and to connect output ports to input ports. The configuration file specifies the number of MPI processes allocated to each application. The configuration file consists of a sequence of blocks, each starting with a non-indented bracket: \begin{quote} [\emph{application\_label}] \end{quote} \noindent Each block consists of a sequence of configuration variable definitions applying to one application. The application label is used to refer to ports of the application. A variable definition takes the form of an assignment: \begin{quote} \emph{varname} = \emph{value} \end{quote} The following variable names have special meaning to MUSIC: \begin{description} \item[binary] Pathname to application binary \item[args] Command line given to the binary \item[np] The number of MPI processes to allocate for the application \item[timebase] The length of a MUSIC micro-step, that is, the resolution of {MUSIC}:s internal clocks). (Default value is 1 ns.) \end{description} \begin{rationale} The possibility to specify the MUSIC timebase is provided since the timebase is a compromise between resolution and maximal simulation time. With 64-bit clocks, a timebase of 1 ns gives a maximal simulation time of 585 years which should be sufficient for most applications. \end{rationale} Arbitrarily named parameters may also be included in the configuration file and these parameters can be accessed from the applications. A connection between an output and input port is specified using the following syntax: \begin{quote} \emph{application\_label.port\_name} \lstinline|->| \emph{application\_label.port\_name} \end{quote} \noindent The direction of the arrow (\lstinline|->|, \lstinline|<-|) indicates the direction of data transport. An output port can be connected to multiple input ports while an input port can be connected to, at most, one output port. Optionally, the width of the connections between applications can be specified: \begin{quote} \emph{application\_label.port\_name} \lstinline|->| \emph{application\_label.port\_name} [\emph{width}] \end{quote} The application label can be omitted if it refers to the application being specified by the surrounding block. An example of a simple configuration file can be seen in section~\ref{sec:conffile}. Appendix~\ref{sec:specsyntax} specifies the formal syntax of configuration files. \begin{rationale} Information from the configuration file needs to be available both in order to launch the application binaries and during the setup phase. Since launching must be done prior to MPI initialization, it is not possible to distribute configuration information via MPI itself. In the reference implementation of MUSIC, environment variables are used to distribute this information to the applications. This information transfer is hidden within MUSIC, so a different implementation of MUSIC may use another technique. In particular, if the applications are launched from a scripting program, such as PyNN\index{PyNN}, that program must also take care of transferring the relevant configuration information to the applications. \end{rationale} \chapter{Application Program Interface} \section{Conventions} This chapter describes the API to the MUSIC library. The API is object oriented and all communication with the library is performed via instance methods of different classes of objects. Appendix \ref{app:cint} presents an alternative C interface. The most common way of passing objects as arguments in MUSIC is via pointers. The only exception is the Setup constructor. The convention regarding memory management is that the caller should make sure that objects exist in memory during the entire execution of the method, and is also responsible for the deallocation of objects afterwards. \section{Error handling} MUSIC attempts to fall back on the error handling mechanisms of MPI. A MUSIC exception thus results in a call to the MPI error handler. A particular implementation of the MUSIC library does not guarantee that it handles all kinds of errors that may occur during MUSIC calls. Each error handled by MUSIC generates an exception, and MUSIC installs suitable error codes, classes and strings so that the MPI error handler is able to generate suitable error messages. MUSIC follows the style of error handling in the MPI standard, which is described in sections 7.2 and 7.3 in the MPI 1.1 report\cite{mpi1.1} and in section 2.8 of the MPI 2.0 report\cite{mpi2.0}. The default error handler of MPI is \lstinline|MPI_ERRORS_ARE_FATAL| which means that any error handled by MUSIC will result in the program being aborted. Using the error handling of MPI requires features only described in the MPI 2.0 report. For MPI implementations which lack this support, MUSIC uses its own error handler which has the same behavior as \lstinline|MPI_ERRORS_ARE_FATAL|. \begin{rationale} MUSIC adheres to the error handling strategy of MPI since the application is already using MPI and should not need to implement a second error handling strategy when converted to use MUSIC. \end{rationale} \section{Setup} \subsection{The setup constructor} Each application initializes the MUSIC library through a call to the Setup constructor\index{setup}. This constructor, in turn, calls \lstinline|MPI::Init|\index{MPI::Init}\index{init} to initialize MPI\index{initialize MPI}. The Setup constructor creates the Setup object through which the application can retrieve configuration information, get an application wide communicator, and setup ports. \begin{head}{Setup} Setup::Setup (int& argc, char**& argv) \end{head} \begin{parameters} \lstinline|argc| &% reference to the \lstinline|argc| argument of \lstinline|main| \\ \lstinline|argv| &% reference to the \lstinline|argv| argument of \lstinline|main| \\ \end{parameters} This constructor must be called at most once; subsequent calls are erroneous. It accepts the \lstinline|argc| and \lstinline|argv| that are provided by the arguments to \lstinline|main|. \index{argc}\index{argv} \begin{code}{Initializing MUSIC} int main (int argc, char *argv[]) { MUSIC::Setup* setup = new MUSIC::Setup (argc, argv); /* parse arguments */ /* rest of program */ } \end{code} \begin{rationale} The idea behind creating a specific setup object is to ensure that the application does not accidentally call functions relevant only for the setup phase at other times. \end{rationale} \subsection{Communicators} During a multi-simulation the MUSIC library will create a unique intra-communi\-cator over the group of processes assigned to each application. This application wide communicator takes the role of the global communicator \lstinline|MPI::COMM_WORLD| and is retrieved from the setup object through a call to the \lstinline|communicator| method.\index{communicator} \begin{head}{communicator} MPI::Intracomm Setup::communicator () \end{head} \begin{parameters} \emph{return value} & the application wide communicator \\ \end{parameters} The application is supposed to use the application wide communicator in place of \lstinline|MPI::COMM_WORLD|\index{MPI::COMM\_WORLD}\index{COMM\_WORLD}. If the application binary has been launched using \lstinline|mpirun| instead of the \lstinline|music| utility, \lstinline|communicator ()| will return \lstinline|MPI::COMM_WORLD| as the application wide communicator. \pagebreak \index{rank}\index{Get\_rank} \begin{code}{Accessing the application-wide communicator} /* communicator with global scope */ extern MPI_Comm comm; ... { ... comm = setup->communicator (); int rank = comm.Get_rank (); ... } \end{code} \begin{rationale} An alternative to provide the \lstinline|communicator| function would have been to redefine \lstinline|MPI::COMM_WORLD|. This would ensure that an application does not accidentally use the global communicator. However, it may not always be possible to dynamically redefine this variable in all MPI implementations, so for the sake of portability, we have chosen a more straightforward technique. \end{rationale} \subsection{Port creation} Ports\index{ports} are named sources (output ports) or sinks (input ports) of data flows. Output and input ports are distinct classes. Ports are further subdivided into distinct classes depending on whether they handle continuous data, event data or messages. \index{publish output}\index{publish input} \begin{head}{publishContOutput,publishContInput, ,publishEventOutput,publishEventInput, ,publishMessageOutput,publishMessageInput} ContOutputPort* Setup::publishContOutput (string id) ContInputPort* Setup::publishContInput (string id) EventOutputPort* Setup::publishEventOutput (string id) EventInputPort* Setup::publishEventInput (string id) MessageOutputPort* Setup::publishMessageOutput (string id) MessageInputPort* Setup::publishMessageInput (string id) \end{head} \begin{parameters} \lstinline|id| & port name \\ \emph{return value} & an unmapped port \\ \end{parameters} Ports have two stages in life: the \emph{unmapped} stage and the \emph{mapped} stage. A port is unmapped when created. The MUSIC configuration file specifies connections between ports. It is possible to ask an unmapped port if it is connected, if it has a width specified and, if so, what width it has. A port becomes mapped when its method \lstinline|map| is called. \begin{code}{Creating an unmapped port} ContOutputPort* out = setup->publishContOutput ("out"); \end{code} \subsection{General port methods} The port API includes methods to ask a port if it is connected, if it has a width specified, and, if so, what that width is. \subsubsection{Port connectivity} The method \lstinline|isConnected| is used to check if the user has specified a connection of this port to another port in the configuration file. \index{isConnected}\index{connected port} \begin{head}{isConnected} bool Port::isConnected () \end{head} \begin{parameters} \emph{return value} & \lstinline|true| only if connected\\ \end{parameters} This method is typically used in cases where the use of some of the ports of the application is optional. In such a case, it is not sensible to allocate any application resources to support the data flow in question. One example is if one wants to support output of membrane potentials from a certain population of cells, but don't want to waste resources if no one is listening. \begin{code}{Optional handling of ports} ContOutputPort* out = setup->publishContOutput ("Vm"); /* map port only if anyone is listening */ if (out->isConnected ()) /* allocate application resources and map port */ \end{code} \subsubsection{Port width} \label{sec:width} The width of a port\index{port width}, that is the number of data elements transferred in parallel from a cont port or the largest possible id of an event port $+$ 1, can be specified in the configuration file. This should be thought of as a request for a given width. Applications can use the method \lstinline|hasWidth| to determine if a width has been specified and retrieve it using \lstinline|width|. Message ports do not have width. \index{hasWidth} \begin{head}{hasWidth} bool Port::hasWidth () \end{head} \begin{parameters} \emph{return value} & \lstinline|true| only if port width has been specified \\ \end{parameters} \index{width} \begin{head}{width} int Port::width () \end{head} \begin{parameters} \emph{return value} & port width \\ \end{parameters} \begin{rationale} Applications can use the above methods to adapt their port width. A typical usage would be a general purpose post-processing tool which receives information from an ongoing simulation. Such a tool can publish a number of optional input ports and then use \lstinline|isConnected| and \lstinline|width| to adapt its internal processing depending on what kind of data source it is actually connected to. See example \ref{code:adaptivewidth}. \end{rationale} \begin{code}{Publishing port of adaptive width\label{code:adaptivewidth}} { ... /* Publishing a port of adaptive width */ double* stateVars; MUSIC::ContInputPort* in = setup->publishContInput ("in"); if (!in->hasWidth ()) /* report error */ else { int size = in->width (); /* for clarity we assume that nElements is a multiple of size */ int nLocal = nElements / size; /* example continues as in next example */ ... } } \end{code} \subsection{Mapping cont ports} \index{cont ports} A port is informed about what data exists locally and how to access it by mapping it. Cont ports transfer data from or to memory during \lstinline|tick| calls and need to know the layout of data in memory. In addition, the marshalling (conversion between different bit level representations) performed on heterogeneous clusters requires information about the data type being transferred. This information is captured by the data map argument \lstinline|dMap|. The \lstinline|DataMap| type is described in section \ref{sec:datamap} below. \clearpage \index{map}\index{mapping cont ports} \begin{head}{map} void ContOutputPort::map (DataMap* dMap, int maxBuffered) void ContInputPort::map (DataMap* dMap, double delay, int maxBuffered, bool interpolate) \end{head} \begin{parameters} \lstinline|dMap| & the data map associated with the port \\ \lstinline|delay| & delay of data arrival in simulation time (s) \\ \lstinline|maxBuffered| & maximal amount of data buffered (ticks) \\ \lstinline|interpolate| & enable interpolation (boolean) \\ \end{parameters} The optional argument \lstinline|delay| informs MUSIC of when, according to simulation time, to sample data on the sender side. If enabled, linear interpolation is used to obtain an approximation of the state at this time. The default delay is zero. Delayed continuous data may be used in connectionist networks when modeling brain pathways. A delay is \emph{required} at some point when communicating continuous data in a loop (c.f. section \ref{sec:timing}). Buffering data in output and input ports gives more efficient communication since data can be sent fewer times in larger packets. By default MUSIC buffers some reasonable amount of data. In certain situations it is necessary to be careful about memory usage. Using the optional argument \lstinline|maxBuffered| the application can give MUSIC a bound on how much data to buffer. MUSIC decides how much data to buffer based on the lowest \lstinline|maxBuffered| parameter given when mapping each of a set of connected ports and on latency considerations when applications are connected in loops. A \lstinline|maxBuffered| value of \(N\) ticks means: don't buffer more data than is sufficient for communicating at every \(N\)\,th tick. When the optional argument \lstinline|interpolate| is \lstinline|true|, MUSIC uses linear interpolation to determine the values delivered on the receiver side. This is the default behavior. By passing \lstinline|false| this interpolation can be switched off in which case MUSIC selects the sample on the sender side which is closest according to simulation time. \clearpage \begin{code}{Mapping ports to internal data\label{code:mapping}} { ... int size = comm.Get_size (); int rank = comm.Get_rank (); /* for clarity we assume that nElements is a multiple of size */ int nLocal = nElements / size; double* stateVars = new double[nLocal]; MUSIC::ContInputPort* out = setup->publishContOutput ("out"); MUSIC::ArrayData dMap (stateVars, MPI::DOUBLE, rank * nLocal, nLocal); out->map (&dMap); ... } \end{code} \subsection{Mapping event ports} \index{event ports} \index{map}\index{mapping event ports} \begin{head}{map} void EventOutputPort::map (IndexMap* indices, Index::Type type, int maxBuffered) void EventInputPort::map (IndexMap* indices, EventHandler* handleEvent, double accLatency, int maxBuffered) \end{head} \begin{parameters} \lstinline|indices| & the index map associated with the port \\ \lstinline|type| & the indexing type used (local or global) \\ \lstinline|handleEvent| & a user-defined event handler \\ \lstinline|accLatency| & acceptable latency for incoming data (s) \\ \lstinline|maxBuffered| & maximal amount of data buffered (ticks) \\ \end{parameters} Since event ports don't access data the same way as cont ports, they do not require a full \lstinline|DataMap|. Instead, an \lstinline|IndexMap| is used to describe how indices in the application should be mapped to the shared global indices common for sender and receiver. The applications has the choice of using local indices or bypassing the index transformation by directly using the shared global indices when labelling events. This is controlled by the \lstinline|type| parameter which can be set to \lstinline|MUSIC::Index::LOCAL| or \lstinline|MUSIC::Index::GLOBAL|. Events are communicated to the application through an \emph{event handler}\index{event handler}. The event handler is called by MUSIC when the application calls \lstinline|tick|. It is called once for every event delivered. Some spiking neural network models include axonal delays. The MUSIC framework assumes that handling and delivery of delayed spikes occurs on the receiver side. In such a case, the receiver may allow MUSIC to deliver a spike event later than its time stamp according to local time. The maximal acceptable latency is specified through the \lstinline|accLatency|\index{accLatency} argument. The optional argument \lstinline|maxBuffered|\index{maxBuffered} has a similar meaning as for cont ports above but the actual amount of data buffered is, in this case, not deterministic since it is dependent on spike rate. \subsubsection{Sending events} \index{sending events} The sender registers events for transmission by calling the method \lstinline|insertEvent|. \index{insertEvent} \begin{head}{insertEvent} void EventOutputPort::insertEvent (double t, LocalIndex id) void EventOutputPort::insertEvent (double t, GlobalIndex id) \end{head} \begin{parameters} \lstinline|t| & trigger time of the event (s) \\ \lstinline|id| & the local or global index of the event \\ \end{parameters} MUSIC guarantees that this event will be delivered through a call to the user-specified \lstinline|EventHandler| on the receiver side no later that the acceptable latency relative to receiver local time. The time \lstinline|t| must be between the simulation time of the last tick and that of the next. The parameter \lstinline|id| should be converted from \lstinline|int| to \lstinline|LocalIndex| or \lstinline|GlobalIndex| to indicate what kind of indices are used in the application. \subsubsection{Receiving events} \index{receiving events} \index{EventHandler} \begin{head}{EventHandlerLocalIndex,EventHandlerGlobalIndex,operator} class EventHandlerLocalIndex { public: virtual void operator () (double t, LocalIndex id) = 0; }; class EventHandlerLocalIndex { public: virtual void operator () (double t, GlobalIndex id) = 0; }; \end{head} \begin{parameters} \lstinline|t| & trigger time of the event (s) \\ \lstinline|id| & local or global index if the event \\ \end{parameters} Event handlers are called by event input ports to deliver events. The application is supposed to customize either \lstinline|LocalEventHandler| or \lstinline|GlobalEventHandler| by subclassing one of them (depending on the indexing scheme the application uses). \clearpage \subsection{Mapping message ports} \index{message ports} Message ports behave similarly to event ports in that messages are sent and delivered using similar mechanisms, but while events are routed between processes based on event indices, messages are routed to all processes on the receiver side which have provided a \lstinline|MessageHandler| to \lstinline|map|. All arguments to \lstinline|map| for message ports are optional. \index{map}\index{mapping message ports} \begin{head}{map} void MessageOutputPort::map (int maxBuffered) void MessageInputPort::map (MessageHandler* handler, double accLatency, int maxBuffered) \end{head} \begin{parameters} \lstinline|handler| & a user-defined message handler \\ \lstinline|accLatency| & acceptable latency for incoming data (s) \\ \lstinline|maxBuffered| & maximal amount of data buffered (ticks) \\ \end{parameters} \subsubsection{Sending messages} \index{sending messages} The sender registers a message for transmission by calling the method\\ \lstinline|insertMessage|. \index{insertMessage} \begin{head}{insertMessage} void MessageOutputPort::insertMessage (double t, void* msg, size_t size) \end{head} \begin{parameters} \lstinline|t| & time stamp (s) \\ \lstinline|msg| & pointer to message \\ \lstinline|size| & size of message in bytes \\ \end{parameters} MUSIC will deliver this message through a call to the user-specified \\ \lstinline|MessageHandler| on the receiver side no later than \lstinline|accLatency| with regard to the time stamp. \begin{code}{Sending a message} { ... char m[] = "string to send"; port->insertMessage (runtime->time (), m, sizeof (m)); ... } \end{code} \pagebreak \subsubsection{Receiving messages} \index{receiving messages} \begin{head}{MessageHandler,operator} class MessageHandler { public: virtual void operator () (double t, void* msg, size_t size) = 0; }; \end{head} \begin{parameters} \lstinline|t| & time stamp supplied by sender (s) \\ \lstinline|msg| & pointer to message subclass instance \\ \lstinline|size| & size of message instance in bytes \\ \end{parameters} Message handlers are called by message input ports to deliver messages. The application is supposed to customize \lstinline|MessageHandler| by subclassing. It is recommended that messages are text strings with the syntax of the interpreter language of the receiving application, and that these text strings originate from a user-specified configuration file read by the sending application. The message given to the \lstinline|MessageHandler| is deallocated by the MUSIC library. \subsection{Index maps} \index{index maps} An \lstinline|IndexMap| is a mapping from the local data element indices to shared global indices. An index map instance thus holds information of which subset of the shared global indices belong to the local MPI process and of their local order. MUSIC implements two subclasses of \lstinline|IndexMap|: \lstinline|PermutationIndex| and \lstinline|LinearIndex|. The most general form is \lstinline|PermutationIndex| which allows for an arbitrary mapping. \index{PermutationIndex} \begin{head}{PermutationIndex} PermutationIndex::PermutationIndex (int* indices, int size) \end{head} \begin{parameters} \lstinline|indices| & vector of shared indices \\ \lstinline|size| & number of shared indices \\ \end{parameters} \index{LinearIndex} \begin{head}{LinearIndex} LinearIndex::LinearIndex (int baseIndex, int size) \end{head} \begin{parameters} \lstinline|baseIndex| & shared index corresponding to local index zero \\ \lstinline|size| & number of contiguous indices in this process \\ \end{parameters} When a cont output port is mapped it becomes associated with a set of state variables (or other data) in the memory of the sender. When the receiver calls \lstinline|runtime::tick|, an estimate of the values of these variables are stored in a set of variables associated with an input port on the receiver side. Similarly, an event output port is mapped to a set of event id:s. While the number of variables or id:s on the receiver side is always the same as on the sender side, the data can be distributed in different ways between MPI processes on the sender side compared to the receiver side. In fact, sender and receiver may consist of different numbers of processes. Index maps are used in each MPI process to tell MUSIC how data is distributed and ordered by enumerating the shared indices represented by the process in local order. \subsection{Data maps} \label{sec:datamap} \index{data maps} A \lstinline|DataMap| encapsulates how a port accesses its data. While an index map is a mapping between two kinds of indices, the data map also contains information about where in memory data resides, how it is structured, and, the type of the data elements. \lstinline|ArrayData| is a subclass of \lstinline|DataMap| which describes arrays of data elements. See example \ref{code:mapping}. \index{ArrayData} \begin{head}{ArrayData} ArrayData::ArrayData (void* buffer, MPI_Datatype type, IndexMap* map) \end{head} \begin{parameters} \lstinline|buffer| & data memory location \\ \lstinline|type| & data type \\ \lstinline|map| & index map \\ \end{parameters} Since data organized in arrays is common, MUSIC provides a convenience form of the array data map constructor which also creates a linear index map: \begin{head}{ArrayData} ArrayData::ArrayData (void* buffer, MPI_Datatype type, int baseIndex, int size) \end{head} \begin{parameters} \lstinline|buffer| & data memory location \\ \lstinline|type| & data type \\ \lstinline|baseIndex| & shared index of first local element \\ \lstinline|size| & number of contiguous indices in this process \\ \end{parameters} \subsection{Configuration variables} \index{configuration variables} The values of all variables defined in the configuration file can be queried using the method \lstinline|config|. \index{config} \begin{head}{config} bool Setup::config (string name, string* result) bool Setup::config (string name, int* result) bool Setup::config (string name, double* result) \end{head} \begin{parameters} \lstinline|name| & variable name \\ \lstinline|result| & pointer to location where result should go \\ \emph{return value} & true if value of correct type was found \\ \end{parameters} Querying for a value of type \lstinline|int| or \lstinline|double| expects a value of the correct type, if defined in the configuration file. If the variable is defined, but its value can't be translated into the correct type this causes an error condition. \begin{code}{Querying configuration variables} /* Retrieving the parameter gKCa from configuration file */ double gKCa; if (!config ("gKCa", &gKCa)) gKCa = 29.5e-9; // default value \end{code} \section{Runtime} \subsection{The runtime constructor} \begin{head}{runtime} Runtime::Runtime (Setup* s, double h) \end{head} \begin{parameters} \lstinline|s| & pointer to the Setup object \\ \lstinline|h| & simulated time increment at each tick (s) \\ \end{parameters} Creation of the runtime object marks the transition from the setup to the runtime phase. The runtime object constructor destroys the Setup object, effectively making it impossible to create new ports. All data structures which have been associated with ports during mapping must be initialized to some suitable start value at the time of the call to the runtime constructor. These values are used during early data transfers of data sampled at negative values of simulation time and, thus, not available. \begin{code}{Runtime} ... MUSIC::Runtime runtime = MUSIC::Runtime (setup, stepSize); ... \end{code} \begin{rationale} The step size is given as a real number (in seconds) since this makes most sense from the applications point of view. Internally, this number is converted to an integer (using the time micro step time base). This is made to ensure that all processes use exactly the same numbers even when the multi-simulation is running on mixed architectures. Both sides of a connection must agree on when data is transferred over the MPI connector to minimize the need for handshaking during the runtime phase. \end{rationale} \begin{rationale} In order to create a deterministic schedule for buffering and data transfer, we require that \lstinline|tick| increments simulated time by a fixed amount each time. We realize that some applications may use a variable time step\index{variable time step} for their numerical integrations, which may then make it harder to execute these tick calls at the right time. However, allowing variable tick steps would have made it impossible to use a pre-computed deterministic schedule and enforced repeated handshaking throughout the runtime phase, resulting in a substantial performance degradation. Note that the tick step does not need to be equal to the internally used integration step\index{integration step}. We believe that most large scale parallel simulators already have some means for fixed interval operations, e.g. to handle logging to files or graphics, which may be utilized also for the tick calls. \end{rationale} \subsection{The tick} \index{tick} \begin{head}{tick} void Runtime::tick () \end{head} \begin{parameters} \end{parameters} The tick function must be called at regular intervals in simulation time. The application chooses the interval as a parameter to the \lstinline|Runtime| constructor, normally based on the time step used in the application. The \lstinline|tick| function is typically called in the main simulation loop of each application. Different applications may use different tick intervals and MUSIC will ensure that time is incremented consistently throughout the multi-simulation. Before \lstinline|tick| is called, the application must ensure that all data mapped for output is valid. At the \lstinline|tick| call, time is incremented and data mapped for input is updated to reflect the new time. Further, installed event handlers will be called \emph{during} the \lstinline|tick| call to deliver events. The MUSIC library may, or may not, exchange data with other applications at the tick call. The application must ensure that exported data values are valid when \lstinline|tick| is called. It must also expect that imported values may change and that event and message handlers are called. \begin{rationale} The idea behind the \lstinline|tick| call is to hide the complexity of data buffering and MPI transfer from the application. For efficient data transfer, MUSIC will try to buffer data both at the sending and receiving port in order to send data in large chunks. Internally, MUSIC will use a pre-computed schedule to keep track of at what ticks the actual data transfer should take place and when data should instead be buffered for later transfer. \end{rationale} \subsection{Simulation time} \index{simulation time} The method \lstinline|time| returns local time in seconds. \index{time} \begin{head}{time} double Runtime::time () \end{head} \begin{parameters} \emph{return value} & local time (s) \\ \end{parameters} \lstinline|time| returns the local time. Time starts at 0\,s and is incremented at every \lstinline|tick| call. While it is possible, and recommended, to let MUSIC keep track of time for the application, this is not required. \begin{rationale} To schedule data transfers, MUSIC needs to keep track of the simulation time of all applications via its internal integer representation. If the application independently manages its own clock, typically by incrementing a floating point variable, there is a risk for drift between the two time representations. The \lstinline|time| function makes it possible for the application to keep its clock in perfect synchronization with time in the other applications. \end{rationale} \subsection{Finalization} An application supporting MUSIC should replace its call to \lstinline|MPI::Finalize| with a call to \lstinline|MUSIC::finalize|. \index{finalize} \begin{head}{finalize} void Runtime::finalize () \end{head} \begin{parameters} \end{parameters} \lstinline|MUSIC::finalize| makes sure all internally buffered data is sent and finally calls \lstinline|MPI::Finalize|. Note that this means that communication via MPI will not be possible afterwards. \chapter{Adapting Existing Applications} In this chapter we will highlight the steps necessary to adapt an existing neural simulator to MUSIC. We will assume that the simulator is already using MPI to simulate large networks of interconnected neurons. The two main tasks that need to be handled are: firstly, to create and map ports for data to be imported and exported, and, secondly, to ensure that the \lstinline|tick| function is called at regular intervals. \section{Creating and Mapping Ports} The application needs to inform MUSIC about what data to import and export, and where this data resides. A simulator will typically use some sort of script files where the user specifies the model and other aspects of the simulation. If possible, it is desirable to extend the scripting language of the simulator so that the user can specify what model variables to communicate, and what names to use for ports. Assuming that we have introduced such constructs into the scripting language, we must decide on a suitable point in the initialization process where ports should be created and mapped. Since continuous data is read from, or written to, application memory space, the program must have allocated its runtime data structures in order to perform the mapping. Communication of spikes will use event ports. Function calls are used to send and receive individual spike events. Sending of spikes is relatively straightforward, since the only thing needed is to add a call to the method \lstinline|insertEvent| at the location where spikes are normally detected in the program. Receiving spikes requires more administration, since the spikes can be received earlier than when they should reach their destination compartment. It is therefore necessary to save incoming spikes in some sort of sorted buffer (typically a priority queue). \begin{figure} \begin{center} \begin{minipage}[t]{0.45\textwidth} \includegraphics[width=\textwidth]{figures/remapping} \caption[Processing of incoming data]{\label{fig:remapping1} The sender application presents the data to the output port in the same order as it is stored internally. The receiving application will see the transferred data in the same order and will explicitly have to implement a proper reordering to implement a typical synaptic projection. } \end{minipage} \hfill \begin{minipage}[t]{0.45\textwidth} \includegraphics[width=\textwidth]{figures/remapping2} \caption[Remapping of data within MUSIC]{\label{fig:remapping2} If there is a one-to-one correspondence between sending and receiving neurons, the receiving application can specify an appropriate index map to instruct MUSIC to send the data directly to the right destination. } \end{minipage} \end{center} \end{figure} In addition, MUSIC will always present the spikes as they appear in the sending group of neurons. In most situations, the receiving application will want to implement a remapping to the target compartments, as illustrated in figure~\ref{fig:remapping1}. One spike may thus end up at multiple postsynaptic compartments, spread out over the processors of the receiving application. In some situations it may be desirable for the receiving application to avoid this remapping. The application can then utilize the different forms of mappings available in MUSIC to create a general permutation so that MUSIC will send spikes directly to the processor where they should be handled. This situation is illustrated in figure~\ref{fig:remapping2} \section{Advancing Simulation Time} The application must call the \lstinline|tick| function repeatedly throughout the simulation. The application will have to ensure that these calls are made at regular intervals, as specified to the runtime constructor. Note that this refers to \emph{simulated time}; there is no need to consider how much computation time (``wall clock time'') is used between tick calls. If the application makes use of variable time steps internally, it may be necessary to use some sort of checkpoints at fixed intervals where tick can be called. It is not necessary to call tick at every integration time step, but the calls should not be too infrequent. The tick calls are the only times during runtime when MUSIC will use MPI. MUSIC will then use its own communicators, not to interfere with the MPI operations of the application. Still, we recommend that the application does not intersperse the tick calls with ongoing MPI operations. When sending continuous values the application must ensure that data arrays mapped for output are filled with values relevant for the time of the \emph{next} tick. After the \lstinline|tick| call, data arrays mapped for input will be filled with imported data belonging to the same point in time. Note that \lstinline|Runtime::time| is updated \emph{during} the \lstinline|tick| call to reflect the current simulation time. \section{Initialization and Finalization} \subsection{Initiate MUSIC}\index{initiate MUSIC} The idea here is to replace the call to \lstinline|MPI::Init| with a call to the \lstinline|MUSIC:Setup| constructor. The Setup constructor calls \lstinline|MPI::Init| for the application. The application will have to replace all uses of the global communicator \lstinline|MPI::COMM_WORLD| with the communicator supplied by MUSIC. The global communicator will be global over all applications and it is necessary to limit the MPI operations to the group of MPI processes belonging to the application. There should be no need to link an application differently when it is used together with other applications in a MUSIC setting compared to when it is used in a stand-alone setting. In order to support ``standard'' operation for the application, \lstinline|Setup::communicator ()|, therefore, will return \lstinline|MPI::COMM_WORLD| if the job is started directly with \lstinline|mpirun| instead of with the MUSIC launcher. \subsection{Initiate the runtime phase} Creating the runtime object will implicitly call the \lstinline|Setup| object destructor to ensure that the application will no longer be able to change the communication pattern. At this stage, MUSIC can build the plan for communication between different processes. \subsection{Finalize MUSIC}\index{finalize}\index{terminate} The application should also replace its call to \lstinline|MPI::Finalize|, normally used to shut down communication, by a call to \lstinline|MUSIC::finalize|. This will internally call \lstinline|MPI::Finalize| after having flushed all pending data from internal buffers. \bibliographystyle{unsrtnat} \bibliography{music-rfc} \appendix \chapter{A Complete Example} This chapter shows a minimal but still complete example. It consists of two applications, \texttt{waveproducer} and \texttt{waveconsumer}, and a configuration file used to launch and connect them. \section{Configuration File} \label{sec:conffile} The configuration file starts the waveproducer application on four processors and waveconsumer on three. \lstinputlisting[language=Clean,frame=single]{wavetest.music} \section{Data Generating Application} \lstinputlisting{waveproducer.cc} \section{Data Consuming Application} \lstinputlisting{waveconsumer.cc} \chapter{C Interface} \label{app:cint} Most elements of the C interface can be constructed from their C++ counterparts using a few translation rules: \begin{enumerate} \item All identifiers have the prefix \lstinline|MUSIC_|. \item Constructors translate to \lstinline|create| followed by the class name. \item Destructors translate to \lstinline|destroy| followed by the class name. \item Methods translate to class name followed by method name. \item References translate to pointers. \item Strings translate to \lstinline|char *|. \item Optional C++ arguments are required in C. \end{enumerate} Entries which do not strictly follow these rules are preceded with an extra comment in the following listing. \lstinputlisting{music-c-int.h} \chapter{Specification File Syntax} \label{sec:specsyntax} \newcommand{\nt}[1]{$<$#1$>$} \begin{tabular}{lcl} \nt{simulation spec} & ::= & \{ \nt{application block} \} \\ \nt{application block} & ::= & \nt{newline} '[' \nt{application id} ']' \{ \nt{declaration} \} \\ \nt{application id} & ::= & \nt{symbol} \\ \nt{declaration} & ::= & \nt{variable def} $|$ \nt{connection} \\ \nt{variable def} & ::= & \nt{variable} '=' \nt{value} \\ \nt{variable} & ::= & \nt{symbol} \\ \nt{value} & ::= & \nt{integer} $|$ \nt{float} $|$ \nt{string} \\ \nt{connection} & ::= & \nt{port id} \nt{direction} \nt{port id} [ \nt{width} ] \\ \nt{port id} & ::= & \nt{application id} '.' \nt{port} $|$ \nt{port} \\ \nt{port} & ::= & \nt{symbol} \\ \nt{direction} & ::= & $->$ $|$ $<-$ \\ \nt{width} & ::= & '[' \nt{integer} ']' \\ \end{tabular} \printindex \end{document} %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% eval: (flyspell-mode 1) %%% eval: (ispell-change-dictionary "american") %%% eval: (flyspell-buffer) %%% End: music-1.1.16/doc/eventgenerator.10000644000175000017500000000755213571617503013541 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH EVENTCOUNTER 1 "March 5, 2009" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME contsink, eventcounter, eventgenerator, eventlogger, eventselect, eventsink, eventsource, messagesource, viewevents \- utility applications which can be used together with other MUSIC-aware applications in multi-simulations .SH SYNOPSIS .B contsink .RB [ "\-tdih " ] .br .B eventcounter .RB [ "\-tbmh " ] .I "n_units prefix " [ .I suffix ] .br .B eventgenerator .RB [ "\-tbfmih " ] .I "n_units" .br .B eventlogger .RB [ "\-tlbmih " ] .br .B eventselect .RB [ "\-th " ] .I n_units units .br .B eventsink .RB [ "\-tmih " ] .I "n_units prefix " [ .I suffix ] .br .B eventsource .RB [ "\-tbmih " ] .I "n_units prefix " [ .I suffix ] .br .B messagesource .RB [ "\-tbh " ] .I "prefix " [ .I suffix ] .br .B viewevents .RB [ "\-tshT " ] .I "configfile" .SH DESCRIPTION This manual page documents briefly a set of MUSIC-aware utility applications provided together with MUSIC library. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBeventcounter\fP receives spikes through a MUSIC input port, counts all spikes for each index and writes the frequencies to a set of files with names .I "prefix rank suffix" .PP \fBeventgenerator\fP generates spikes from a Poisson distribution. .PP \fBeventlogger\fP logs spikes from a MUSIC port. .PP \fBeventselect\fP receives events from an input port of width .I "n_units " and sends events for the subset of id:s specified in the file .I "units" .PP \fBeventsink\fP receives spikes through a MUSIC input port and writes these to a set of files with names .I "prefix rank suffix" .PP \fBeventsource\fP reads spikes from a set of files with names .I "prefix rank suffix" and propagates these spikes through a MUSIC output port. .PP \fBviewevents\fP reads spikes from a MUSIC input port and displays them as a 3D graphical representation. .SH OPTIONS The utilities follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. .TP .B \-b ticks, \-\-maxbuffered ticks Specify maximal amount of data buffered. .TP .B \-f freq, \-\-frequency Specify average frequency (default 10 Hz). .TP .B \-h, \-\-help Show usage information. .TP .B \-i, \-\-indextype Select global (default) or local indices. (Used for testing and benchmarking purposes.) .TP .B \-l latency, \-\-acclatency latency Specify acceptable data latency (s). .TP .B \-m type, \-\-imaptype type Select linear (default) or roundrobin index map. .TP .B \-s scaling, \-\-scaletime scaling Specify real time to simulated time scale factor (s). If omitted, the visualization runs at full speed. .TP .B \-t timestep, \-\-timestep timestep Specify time between tick() calls (default 0.01 s). .TP .B \-T title, \-\-title title Specify window title. .SH SEE ALSO .BR music (1) .\" .BR baz (1). .\" .br .\" The programs are documented fully by .\" .IR "The Rise and Fall of a Fooish Bar" , .\" available via the Info system. .SH AUTHOR MUSIC was written by Mikael Djurfeldt and –rjan Ekeberg for INCF. viewevents was written by Johannes Hjorth for INCF. .PP This manual page was written by Mikael Djurfeldt , for the Debian project (but may be used by others). music-1.1.16/doc/ChangeLog0000644000175000017500000000156613571617503012200 000000000000002010-07-28 Mikael Djurfeldt * Release 1.0.7 2009-10-25 Mikael Djurfeldt * Release 1.0.6 2009-10-24 Mikael Djurfeldt * Release 1.0.5 * Makefile.am: Use hard instead of soft links for manpages (in order to satisfy Debian dpkg-source); Add figures to CLEANFILES. 2009-04-01 Mikael Djurfeldt * Release 1.0.4 2009-03-13 Mikael Djurfeldt * Release 1.0.3 2009-03-12 Mikael Djurfeldt * Release 1.0.2 2009-03-08 Mikael Djurfeldt * Release 1.0.1 2009-03-07 Mikael Djurfeldt * eventcounter.1, eventgenerator.1, eventlogger.1, eventselect.1, eventselect.1, eventsink.1, eventsource.1, viewevents.1: New files. * Makefile.am: Added rules for creation of music manual. music-1.1.16/doc/figures/0000755000175000017500000000000013571740114012135 500000000000000music-1.1.16/doc/figures/senderport.asy0000644000175000017500000000111113571617503014757 00000000000000unitsize(10mm); fill(box((2,0), (3,10)), gray(0.8)); draw(box((0,0), (3,10))); // Sender arrows for (real y=0.75; y<9.6; y+=0.5) draw((1.0,y)--(2.0,y), gray(0.5), Arrow); // Sender data array filldraw(box((0.5,0.5),(1.0,9.5)), gray(0.9), black); for (real y=0.5; y<9.6; y+=0.5) draw((0.5,y)--(1.0,y)); label(rotate(90)*"Distributed sender data", (0.26, 5.0)); draw((-0.2,2.5)--(3.2,2.5), dashed); draw((-0.2,5.0)--(3.2,5.0), dashed); draw((-0.2,7.5)--(3.2,7.5), dashed); // Port filldraw(box((3.0,0.5),(3.5,9.5)), white, black); label(rotate(90)*"Output Port", (3.24, 5.0)); music-1.1.16/doc/figures/ticklogic2.asy0000644000175000017500000000174013571617503014634 00000000000000import markers; unitsize(10mm); label("Sender", (5, 8.5)); label("MUSIC", (0, 3), NE); label("MPI", (0, 4.5), NE); label("Receiver", (5, 1.5)); draw(box((10,8), (0,9)), dashed); filldraw(box((10,3), (0,7)), gray(0.8), dotted); draw(box((10,1), (0,2)), dashed); filldraw(box((10,5.5), (0,4.5)), gray(0.5)); draw("Simulated Time", (0,0)--(10,0), Arrow); // Senders ticks int i=1; for (real t=2.5; t<10; t+=5, ++i) draw(format("$s_{%d}$", i), (t, 8)--(t, 7), Arrow); // Receivers ticks int i=1; for (real t=1; t<10; t+=2, ++i) draw(format("$r_{%d}$", i), (t, 3)--(t, 2), Arrow); void transfer(real s1, real s2, real r1, real ts) { draw((s1,6.8)--(s2,6.8), marker(scale(2)*dotframe)); draw((r1,6.8){down}..{down}(s2,5.5), Arrow); draw((s2,5.5){down}..{down}(s2-ts,4.5), blue, Arrow); draw((s2-ts,4.5){down}..{down}(r1,3.2), Arrow); draw((r1,3.1), marker(scale(2)*dotframe)); } // Transfers transfer(2.5, 7.5, 3, 4.5); transfer(2.5, 7.5, 5, 4.5); transfer(2.5, 7.5, 7, 4.5); music-1.1.16/doc/figures/multisim.asy0000644000175000017500000000117713571617503014451 00000000000000unitsize(10mm); pair p1=(1,2); pair p2=(6,1); pair p3=(5,5); void application(int n, pair pos) { for (int i=n-1; i>=0; --i) { filldraw(box(pos-(1,1)+i*(0.1, 0.1), pos+(1,1)+i*(0.1, 0.1)), lightgray, black); } } application(5, p1); draw(p1+(0.2,1.2){up}..{right}p3+(-0.9,0.1), black+1, Arrow); draw(p1+(1.2,0.2){right}..{right}p2+(-0.9,0.1), black+1, Arrow); application(3, p2); pair d=(0.3,0); draw(p3+(0.1,-0.9)-d{down}..{down}p2+(0.1,1.1)-d, black+1, Arrow); draw(p2+(0.1,1.1)+d{up}..{up}p3+(0.1,-0.9)+d, black+1, Arrow); application(3, p3); label("Appl. $A$", p1); label("Appl. $B$", p2); label("Appl. $C$", p3); music-1.1.16/doc/figures/timeline.asy0000644000175000017500000000173613571617503014415 00000000000000import markers; unitsize(10mm); real Apos = 6; real Bpos = 2; real Alag = 1.5; real Blag = 0.0; real Aticks[] ={3, 5, 7, 9, 11, 13}; real Bticks[] ={3, 7, 11}; label(scale(2)*"A", (0, Apos), W); label(scale(2)*"B", (0, Bpos), W); // Application A ticks for (int i=0; i=0; --i) { filldraw(box(pos-(1,1)+i*(0.1, 0.1), pos+(1,1)+i*(0.1, 0.1)), lightgray, black); } } application(5, p1); draw("2.6\,Tb/s", p1+(1.2,0.2){right}..{right}p2+(-0.9,0.1), black+1, Arrow); draw("2.6\,Gb/s", p2+(1.2,0.1){right}..{right}p2+(3.2,0.1), black+1, Arrow); application(3, p2); label("Simulator", p1); label("EEG", p2); music-1.1.16/doc/figures/remapping.asy0000644000175000017500000000222613571617503014564 00000000000000unitsize(10mm); real[] prm = {5, 8, 0, 2, 9, 7, 4, 3, 6, 12, 13, 11, 15, 1, 10, 17, 14, 16}; label(scale(1.5)*"Sender", (1.5, 10.5)); label(scale(1.5)*"Receiver", (7.5, 10.5)); filldraw(box((0,0), (3,10)), gray(0.9), black); filldraw(box((5,0), (10,10)), gray(0.9), black); // Sender arrows for (real y=0.75; y<9.6; y+=0.5) { draw((1.0,y)--(2.0,y), gray(0.5), Arrow); draw((2.5,y)--(5.5,y), gray(0.5), Arrow); // Sender neurons filldraw(circle((1.0,y), 0.2), gray(0.5), black); // Reveiver neurons filldraw(circle((9.0,y), 0.2), gray(0.5), black); } // Sender data array filldraw(box((2.0,0.5),(2.5,9.5)), gray(0.7), black); for (real y=0.5; y<9.6; y+=0.5) { draw((2.0,y)--(2.5,y)); } // Receiver data array filldraw(box((5.5,0.5),(6,9.5)), gray(0.7), black); for (real y=0.5; y<9.6; y+=0.5) { draw((5.5,y)--(6,y)); } // Remapping arrows for (int i=0; i<18; ++i) draw((6,0.75+i*0.5){right}..{right}(8.8,0.75+prm[i]*0.5), Arrow); // Indicate processor borders draw((-0.2,2.5)--(3.2,2.5), dashed); draw((-0.2,5.0)--(3.2,5.0), dashed); draw((-0.2,7.5)--(3.2,7.5), dashed); draw((4.8,3.5)--(10.2,3.5), dashed); draw((4.8,6.5)--(10.2,6.5), dashed); music-1.1.16/doc/eventsink.10000644000175000017500000000755213571617503012517 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH EVENTCOUNTER 1 "March 5, 2009" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME contsink, eventcounter, eventgenerator, eventlogger, eventselect, eventsink, eventsource, messagesource, viewevents \- utility applications which can be used together with other MUSIC-aware applications in multi-simulations .SH SYNOPSIS .B contsink .RB [ "\-tdih " ] .br .B eventcounter .RB [ "\-tbmh " ] .I "n_units prefix " [ .I suffix ] .br .B eventgenerator .RB [ "\-tbfmih " ] .I "n_units" .br .B eventlogger .RB [ "\-tlbmih " ] .br .B eventselect .RB [ "\-th " ] .I n_units units .br .B eventsink .RB [ "\-tmih " ] .I "n_units prefix " [ .I suffix ] .br .B eventsource .RB [ "\-tbmih " ] .I "n_units prefix " [ .I suffix ] .br .B messagesource .RB [ "\-tbh " ] .I "prefix " [ .I suffix ] .br .B viewevents .RB [ "\-tshT " ] .I "configfile" .SH DESCRIPTION This manual page documents briefly a set of MUSIC-aware utility applications provided together with MUSIC library. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBeventcounter\fP receives spikes through a MUSIC input port, counts all spikes for each index and writes the frequencies to a set of files with names .I "prefix rank suffix" .PP \fBeventgenerator\fP generates spikes from a Poisson distribution. .PP \fBeventlogger\fP logs spikes from a MUSIC port. .PP \fBeventselect\fP receives events from an input port of width .I "n_units " and sends events for the subset of id:s specified in the file .I "units" .PP \fBeventsink\fP receives spikes through a MUSIC input port and writes these to a set of files with names .I "prefix rank suffix" .PP \fBeventsource\fP reads spikes from a set of files with names .I "prefix rank suffix" and propagates these spikes through a MUSIC output port. .PP \fBviewevents\fP reads spikes from a MUSIC input port and displays them as a 3D graphical representation. .SH OPTIONS The utilities follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. .TP .B \-b ticks, \-\-maxbuffered ticks Specify maximal amount of data buffered. .TP .B \-f freq, \-\-frequency Specify average frequency (default 10 Hz). .TP .B \-h, \-\-help Show usage information. .TP .B \-i, \-\-indextype Select global (default) or local indices. (Used for testing and benchmarking purposes.) .TP .B \-l latency, \-\-acclatency latency Specify acceptable data latency (s). .TP .B \-m type, \-\-imaptype type Select linear (default) or roundrobin index map. .TP .B \-s scaling, \-\-scaletime scaling Specify real time to simulated time scale factor (s). If omitted, the visualization runs at full speed. .TP .B \-t timestep, \-\-timestep timestep Specify time between tick() calls (default 0.01 s). .TP .B \-T title, \-\-title title Specify window title. .SH SEE ALSO .BR music (1) .\" .BR baz (1). .\" .br .\" The programs are documented fully by .\" .IR "The Rise and Fall of a Fooish Bar" , .\" available via the Info system. .SH AUTHOR MUSIC was written by Mikael Djurfeldt and –rjan Ekeberg for INCF. viewevents was written by Johannes Hjorth for INCF. .PP This manual page was written by Mikael Djurfeldt , for the Debian project (but may be used by others). music-1.1.16/doc/music.10000644000175000017500000000430613571617503011623 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH MUSIC 1 "March 5, 2009" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME music \- launch a multi-simulation using MUSIC .SH SYNOPSIS .B mpirun .RI [ mpirun-options ] .B music .RI [ options ] " config" .br .B music .RI [ options ] " config" ... .SH DESCRIPTION This manual page documents briefly the .B music utility. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBmusic\fP is used to launch a multi-simulation, i.e., an MPI job partitioned between a set of parallel programs. Such programs need to be MUSIC-aware (see documentation for the MUSIC library). MUSIC also provides facilities for these programs to exchange data. .PP The second form of the command above (without \fBmpirun\fP) can be used to print out an application rank map or version information. .SH OPTIONS The .B music utility follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the MUSIC manual. .TP .B \-h, \-\-help Show summary of options. .TP .B \-m, \-\-map Print application rank map. .TP .B \-v, \-\-version Show version of program. .\" .SH SEE ALSO .\" .BR bar (1), .\" .BR baz (1). .\" .br .\" The programs are documented fully by .\" .IR "The Rise and Fall of a Fooish Bar" , .\" available via the Info system. .SH AUTHOR MUSIC was written by Mikael Djurfeldt and –rjan Ekeberg for INCF. .PP This manual page was written by Mikael Djurfeldt , for the Debian project (but may be used by others). music-1.1.16/doc/eventselect.10000644000175000017500000000755213571617503013032 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH EVENTCOUNTER 1 "March 5, 2009" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME contsink, eventcounter, eventgenerator, eventlogger, eventselect, eventsink, eventsource, messagesource, viewevents \- utility applications which can be used together with other MUSIC-aware applications in multi-simulations .SH SYNOPSIS .B contsink .RB [ "\-tdih " ] .br .B eventcounter .RB [ "\-tbmh " ] .I "n_units prefix " [ .I suffix ] .br .B eventgenerator .RB [ "\-tbfmih " ] .I "n_units" .br .B eventlogger .RB [ "\-tlbmih " ] .br .B eventselect .RB [ "\-th " ] .I n_units units .br .B eventsink .RB [ "\-tmih " ] .I "n_units prefix " [ .I suffix ] .br .B eventsource .RB [ "\-tbmih " ] .I "n_units prefix " [ .I suffix ] .br .B messagesource .RB [ "\-tbh " ] .I "prefix " [ .I suffix ] .br .B viewevents .RB [ "\-tshT " ] .I "configfile" .SH DESCRIPTION This manual page documents briefly a set of MUSIC-aware utility applications provided together with MUSIC library. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBeventcounter\fP receives spikes through a MUSIC input port, counts all spikes for each index and writes the frequencies to a set of files with names .I "prefix rank suffix" .PP \fBeventgenerator\fP generates spikes from a Poisson distribution. .PP \fBeventlogger\fP logs spikes from a MUSIC port. .PP \fBeventselect\fP receives events from an input port of width .I "n_units " and sends events for the subset of id:s specified in the file .I "units" .PP \fBeventsink\fP receives spikes through a MUSIC input port and writes these to a set of files with names .I "prefix rank suffix" .PP \fBeventsource\fP reads spikes from a set of files with names .I "prefix rank suffix" and propagates these spikes through a MUSIC output port. .PP \fBviewevents\fP reads spikes from a MUSIC input port and displays them as a 3D graphical representation. .SH OPTIONS The utilities follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. .TP .B \-b ticks, \-\-maxbuffered ticks Specify maximal amount of data buffered. .TP .B \-f freq, \-\-frequency Specify average frequency (default 10 Hz). .TP .B \-h, \-\-help Show usage information. .TP .B \-i, \-\-indextype Select global (default) or local indices. (Used for testing and benchmarking purposes.) .TP .B \-l latency, \-\-acclatency latency Specify acceptable data latency (s). .TP .B \-m type, \-\-imaptype type Select linear (default) or roundrobin index map. .TP .B \-s scaling, \-\-scaletime scaling Specify real time to simulated time scale factor (s). If omitted, the visualization runs at full speed. .TP .B \-t timestep, \-\-timestep timestep Specify time between tick() calls (default 0.01 s). .TP .B \-T title, \-\-title title Specify window title. .SH SEE ALSO .BR music (1) .\" .BR baz (1). .\" .br .\" The programs are documented fully by .\" .IR "The Rise and Fall of a Fooish Bar" , .\" available via the Info system. .SH AUTHOR MUSIC was written by Mikael Djurfeldt and –rjan Ekeberg for INCF. viewevents was written by Johannes Hjorth for INCF. .PP This manual page was written by Mikael Djurfeldt , for the Debian project (but may be used by others). music-1.1.16/doc/music-manual.pdf0000644000175000017500000111052313571626670013514 00000000000000%PDF-1.5 %ÔĊĜ 3 0 obj << /Length 256 /Filter /FlateDecode >> stream xÚuħN0à=OáіáğÄIĵÒRÄtB †¸UÚ4‘ÒdCâĠħ0!Ĥ³ÏÏżĴĜ‰)ö”¨êCÜ?˘fXĦÎX}dHÈĤ•4Ġ°7^öÏ!SEü+–jîĤVîÛĞ œÏÚĦ'›AHßĈĤíí4Œâ½~aF1™ĉPĴĉáĉĈۊÙ~al.ûD9C£5…D2ËÓÒW%Óß +rҞċġċàu<ېÄ{ğ‹ ‚ğŸÇ—ñğĥo¢àU{Zs뺸ߞçñèşfZèĴ€¤J³Ú[÷éÁü%£˜ŬE€ ä&Œ˙ùé]üêÍ_c endstream endobj 10 0 obj << /Length 557 /Filter /FlateDecode >> stream xÚuTÁnÛ0 ½ç+|”Ùµ­ĜħŽŬ°P`@³S·ƒj+‰0[2$9íŝ~¤İdٖDQä{"9$EòiUüg}ż[Ŭ=Tu"rÑTM²Û'ĠZä-çIÍË|]—ÉOžÙŭ‹Nv!ŭû|÷^…g%Ä Ŝ&YUĉ˘l)ŝñëÓöCšñĤfÚÓ* ­÷_ĥh4LCZ2›VöŞÍNéŠLßÉ!šFÍÎĈ|ŻGL™Ĵ‹Ĝ³ż<<Ô5iĠ² œB?‘8ÎJ Y×D2Ĝ4[·ĤŜ: =JƒÑÓË ÑjX?ğ½n&H=Ş<ÍDħ>ËÄ ´¸EÌI÷ÊSö¨:ô²öcôĞB?ß+÷³†˜Ò{}ÂbĜ€şer´ħ¸'‡Ŭ Ü)Ê`™@.mö֍2ècàĤ§¤ÎFË2Û9‚ÒŻcVqżwv¤Tk"I:T­VÊitkVB,*+č Gċ _kÎÙÓ^ Ûi9P\'"ë(=ĵPŒ:#ÉQâ°€½Ÿ)eˆŜ7íra¸ƒQÉnħŭ=;Ü-ƒY]êÒFöo4ÀĥdĜ>ìŻ³ċÖs²·1útÀî:Äċ`ġƒŠċh´ş9‘aäPùkznçÍu§=yH=ç&€ħGŠNzŭ­(ırŠ=†ĝ’ċƒš"È_)›sJä̗7‹ŭß°Ë |Áĉ–ü/‚:hċs<ŝçù¸[ŭ%> stream xÚŬYMs£8½çWpX}‚8îN2İÙŞÔĤÖÍîĜŠC—€Lĉßo ĊNĵ†Ìì˜\VŒ¨~zŭúu›×Ĝ][^üò‘Ĥċq*S,ï"pœb$4‰İÁr|FêmÈj\(j›ïċï ²8ƒ/šçp%4&„Ù'HeT Oö]‡\×ŬŞ-`Ј&X $ì6roŒó "°UBŬV1lF0hħŞw°DÊìNQFŸáYöƒĥ€üaŸ#"$·°=Żb‡Ö|LZ—Ş)66c]×yل‘„ÛsímN†Ò8#ݏD{6ÎÑmHSTë6ż+B‚Ê˘5Ÿż³$;kNĵ•({PPĊ˘¨veħò¸Ì• ǐHF‘`‰OÛµrwە2`È90àMáóŭœPúÖUŜO0–3Oƒt4zᢿz‚ ×wE/²(bçݘÓÂg/dÑ ĉŠĈ2„G”Šm]֛ŻĤz$óSïMîùS•ıu0Ĥ¨ĥĈĠ0´)šĥĜnì§E}ߓç‹ù“kÈĦäğ@ĝ‚—Ğ/l]482  èBm^\=İUçàÖÜ8“§JOX(›f¨7x·y£‹n}? ëß"…˜‘}9†uv’hÔ{·Ċx–—K —.îşgĉ Ĝ\ĉm/çäÌu=‰ŬKPQıdâĤñhŠ5Ĝ3SАPàÖ âtŝ52‚Ä 77Şiò²PÜ=ğjÒÏİ(ŭ—éáĦ'[ <żîŒiġ‚Ì@žCßR[É ³*d2‡Ùt-vlaV‹m] ‚\Ëͅ£›l‹̽iÂğĦt‘TrHÇħîÛÁÍĵ8˙ñh¨ôcĦ˜—ÎŜ LOĜӝó²½|P^·ŝ„oşŞÖ Ü‹Ájŝ~s'uŠ)n[†f+luĞëÎ+ËX7(‚Ö#ïێ„‘tšàž£fP$}ìۘŝÖĵϔ Îß׸èèáœöħÜóôJëZ[Í|È·ë²™ÒwYNĈ@|ÇBµ”ŽLĵ³âtúÈñÀċh^틜ĦÓ ²­ĠŬŞ5üJR9§x_ ê0 ûPW•Ñ”nk$ĴÖĈ„ÉYJOwĈìĊÔVNÀSLg<éAÈFAĤb×jĞ´íĈ8²ÓA 7A­]İTûP÷ĞkàEÊÈ9‡MñhĜ8ì&ßí|'ĥ²•ĠaÁt#Ù7Ž7ŝż_Mú¸ÉhÜÉħ¸•u½˙üazĉöhlTéÒcÁWÏ èaĜò Fdž TŒž²Ü›ô?ı0ó]cĈtlŝ?ö§Œ‚9ì郣î9ĥltÔġĊ™ó½^mżQ{ E‚r]äwd2;K CON÷}°~~Ŭıž¨2]hò^~ ž×$‡Ë_;\½Ü+ŸËRq–­Ï‹pŭż #ħÀ)°%‹”P˙ğWˋ{7Ôd endstream endobj 19 0 obj << /Length 707 /Filter /FlateDecode >> stream xÚĠ—ÍRÛ0…÷~ -ċ…UIWżK“3vbV”…' ài⸉ÓÒ>}Żlb`RĤt³²#[’ÏÑùtNn'ÇÑA}8’Žxĉ4$ğ&Ŝ3ç5ħJ1í4ÉĤ䒎>g‡çÙ8ÊN£,ú ì͉xx›3ë=™,˘Ë+NĤĝì”pŜ‘ŸÍ›  ˜ĦߜŒ£/ßŭ‚Ŭ`™Ġ@,7LHß~bŠÉ8B)šŬÎâ@Ñş˜ÄÒÑoq˘Ĵ¤,N4çoQŜ˙Kż`íÖr™î•ßÌ :ÀĵÖĤ@gʸXÄÒÒÍ<Ż‹eüôgNIkÍ˙ׯ:ŭGE™Ï‹ßzċÌ{ÜÏÊsï5#Ğz•QqڑD˘+µè8ñRÓtšWuQŜ`ğ˘ë‡–´ŞĉĊ¤ñk´÷œ‚³=ÂQ1ŻTßxÍváRÒÑj–wc"y9m“w–WU× ôs€tıŞqV˙Óĵ™­lÙÉN§?b­Qïä^e ë˜5jĵ>k ÷²Ĥ›&h?)‹şĜa-íŝ †^ eÏ}V2ô›DŠžDš°‡=ĤU^wĠçìb|2Âİ…y·› ümÉïkn_zŬV` ĞMBßš¤şÍ×xĞ )ŬİŻ$ŭUöÚ½ù á•ñ~IíHĀ—P"FËE5Ÿ5‹Ŝ”<üÄn†‚~Y­H>Ïg£eù• u³YílGEÑs3#_iıŜ³4ĵĝ˜×y›ŻY9[Ŭ—^YŽ'ô Ĥ÷–Ë4 ĠW‹Xoϋµ]í^šĥÑoh²­H“à·üœ”1HZÏV×ù$Pd„·šnpnCìaŒ§ {J:›œ­OàT‡MuüĞ6żí˃T=ĈG¨ñ ŒFú½aZ@;_żŝÁû[Uêb endstream endobj 23 0 obj << /Length 399 /Filter /FlateDecode >> stream xÚĠ•ÏK0€ïû+rLÀdùñÒ¤WĊ‰â@´ž†‡Òv3¸ĥcíŝ÷ĤkW›“ B=ċġµ ŭ÷xáh8şñn½ŽF‰4H3Ö͑œQ Ò˘(E3üèŞšPe4.çí:q‹Í:ĞÈ[ô0žX²oĜí f‚°Ŭ.˜ Tp)qD¤ĊŸ+—ÄKŽœ7‰Í²v´r]×,ÌĠœsñä½G4£B[…ƒ,GT  Ój½†iĵZıbÑ(P­RŻ"ë˜PĞì ħ/Q½!ŽœïD{'rß.ï”@§DuJš¨^ÇE5ÏÖWícµ,‰4x›–MÏl}ğXÄEż aĝĀ…> stream xÚ}XMä6½Ïݍ£ ™rl˟ÇdvÌ H9lö vİş”qÙ˞îŝ÷y$%ğjÚÓK˘H™˘ÈGJÉîi—ì~ŭĝöç‡?ŝ’Uğ,‰Ë2+v§]ÓÄuSìJ•Ĉi£vÇŬ˙˘Og}Ì¸?¨ŞˆÒŭ˙ŝ#Ry\ĠUJRÉîP$q’5"ıßĞ4šĈ"itœÛɽÈĠğ&nÊĴ R¤2‘z8[ĴŠŽDÓÎÓïљˆ\FíğÉNód<ßt62óW’ĉ½î„ê,İ4j-Mµš`ÖÓ0JÇ WÑeŸĠÑÜMöàì…~7ïÓ¨[D İSGx =Úi7E!jmŻ'^TİèżüŝùSĵ˜(Íc•—™ßĴÊ$Ĝĉ…~iVDż·•íd6-”eq–y!^ş¨$"SQĞÑdMä&Ŭġx"ï‘:Ü&{122/-mġĴû'ON"~ԓÊ#oĠLÄĝLƒ#à™ĞuיÎ˙÷zíĴĜĠmYĊ’T³~hÚnvìBY]Dt¨uôĠŽC‘ŝï9Ú:âżÙFĵY³O½ñT>g(θë^eBĥOr²¸á9½i§ĥĤOà.ùÈv)ÓÈa5#ÔŜ̓|KFÁ2üá‹ÙmȅÈÜGò>lÒÂÁFaxF_zF·$z> ëì†K&7tĵ'vŽ}ŒüĞÉsdqZù0ú ΔëùzĊQX$y4;MÛ£9ó˘/×ΝƒDÛэz"ûòD/dŬ§yôìp܏äiô %=q:ĈŻŭĈ1‹’7ù+)q÷4½ñw×UMûĵ‰‡*ÎħM?˙qc*Ó<0üüv:NŠj]¨UE´•²:.ʅġӖ.µZ~…ŭ žĦ\¤É&Ô1/Ĥ'ö.’5İ]ˆFÏgÛ-üKt.B—Ôûj}x"H#q‚Cİâ2mî üçVŞÈáXù@Ħ˘ÑœÇA$WâVP=ZÙĞR7›RÁuĜî%Àċìqò­uÒ8ĞëKĞ(eûքßúì1ÙÖ^µ˜Š´ÜpĦžQ”ßêáùŞNĊĝÔY£–FחUâ°£É5ĤÖ1 Í×ĞÇŭ)Pä„n]˘VÔ5e>Y„ĴşÀ>ò B˜ıÙè†6E\ù;р…kHx†ë(Aşü˜Ğ‚àŸ3@ÊàOèÁñÂfˆÓ:!XzĦ̎èQFlë­0IMóNÈÁsTS†í`£4‹ÄÛŞ|7ĉTX &ŻJ1yž˜Ç£%KnÁBY!×ï+™éûJ˘JÊóâDH)U/!Ŝ1Í❤Ħ3ŭQzŝrñ6jCb'Ŝ_%9ñ^ȅ²H‚Š„ïm;çġ7™ÒD­öSĦp˘AH`ÄaÒ˙|Ò£vĉHš–˘â|ŭ "á?_ş'ĵMeY³-Qj{”‡TàPŜN–x´^߆÷ÁKŜÔcĜvŽÒ§ë:Ñg1=(Ɇ“ Ï£&ŠDˆÛ˘s¤ Vá”C€ёCÜċĦ³qó"D¸g^9zr@ùd$‚‰Áö[A§ŽĴĊ•/§CäèWê´Lšèó$DŬıAXMŻğMğĤıŠ‹zzĥ9 êüž=q÷Ëׁ?¸7ŝ-yşŝ&O×ĞċÁCıŻG1=Ĥµ‘ĤŒ“ê› ıı]Tj½%œtkĝ"’{ À$h“ôĤ³ĉ^¨ÊXÔIë£Ñ~ı^F´b˜EÖ ˘ > èŽ^â$­dsÜ=É ŒstüxÑTÁ P´ŝ×èö~£EŬHW—Bü†Úċ6 [#ÏÌÀt\'҈Bë7žó yƒ gŭ?ǀO˘Oħ9Ú§³ĝö\ëûP¸Nşr­ààW^\0¤‚&–Âäá Ú}‘ž„U˘Ż—_ġ˘MgÍ /ËŻòï_l}ÀŸ€,’MPİ;ñ7BlÔ”ƒ^"˘÷A ™ĝßrċµċ×Ħ·J³Ñ‚t–ÇYZ.Ò˃Âoôĝ‚#·WYôşù²ÖqĠÜĉ<{›Ħì,R'?˘SIÄ\i°Şċ'0µwqħ$(ŜŸä¨ä\îì$Íö•*S&8ï¨x:˙ĞÁK"J'³™?†Óçu\˜Sá÷8ĝWŸÇÑrÏ )„9×?¸Ëä*úe_ç‚*ôĝ£_äŭËђž½éÂùQ™AÎ^ŒÜpZ +ıs€ş]ñ݈^RgMôé‡>JïĤ§Ħĵ€-ż"” ÂĦAH+zÑÈżgĦŠ›Ç›BK’U¸ä¤é{C@Ñċp—–MĴÊĠÄ5™ġ.îxŝŭáÏ`Uq endstream endobj 32 0 obj << /Length 2011 /Filter /FlateDecode >> stream xڍX[“Ûĥ~÷Ż£<+şP·%Ûl;'I›¸Ó‡ž>p%ÚĉD–QÊf˙}q!µ’W™ž'A‚ Rèĵûeóö°y}^”Yœy‡£a‡İ— ¤Eêjï/˙î?o~;ĵû´Ŭ%IâGÁv—ç…ż˙pĝ´ ˙ÏÜö?l˙>üşywĜ|ŬD`;ô˘™-x–W]6ŭz5ġ ) ï‘T/^"’ pa}Ŝü ­ƒ?zş-â$ ²$ñÒĴÂDà_7A!ÂPĈŒ$‘[gŻ÷—Èûıƒ ŸD;gs73JZ‹S*² ŠrŽÓ½>½‚0)„)úiğKEéï›f4C/Ŭµ,ëŽü”ĝÈüĝtĠ•l˜AĈĜ zg49³Ġ£Ñí‰É÷|ŜßLνRlP^wxpœ]ešħ{×ĥ@;ĉŠ_ßCÀŸO$ò KSXCşoXc~ä<yìäk² , §öˆ&¸2 l’m½b)N‘ENġn͗nèĈ…>ú^aϲ=q¤@XËAZjì-WĝŭĜ˘ĉ /* üuù ÍRo'â Nm!Pĵaİ€7ĤcêÚwh䛕ħ2|¤ŝŬN·x{ƒê²Rè&¤E~väŸXWÖÊvF:côC£˜uìz6$ŻÏWǢÇ^ƒj·l}Ô-ŸóŽH6àġžjġÓĥHü§7˜9tüĵÊ~•ÊÁ†ħ1sçÉMn.7)~^$‚Rp(˘ÒĈĴ3=}yċ~Û LÈĤ!QäWc1ÁŒ|ÖP˙ £¤ëŻä<ٟ“ÊĈ’­û*BÁÂ?k€“ˆi8뜞E‘Š­LŭáĴ˜x˙۞ 3@Îʆ²Ë’CŽStJ¸MJ£n€=0w2Ö]™ `£Ż˜Â: b4ÊÚ Ì UüÄd|ZıĝZcĴTŻ\üâ,›Ħë ĝ,âĜ]'ʗɋœ‹’­%qg|Â5‘Ö#ż*Éġµ²rœ… ŜzŞ˘§Ş‡;kž8ĠġpîĈaJCV8Ş~*eÔ°é{ĥéÚ…§ğMÁ˘\Ôm µt–x8!ü*8Ñ"~­á^Şé¸!9ˆoÑW X̏¨ĠħĴWG wĝġ !8­wŭĊ`ŝC÷ñ÷ö͎sŽtŸËèÇ9Xu”ĴÛ´˙ıçrÒÊĉLî’4ó÷oß3çm3Ş_TĞ^˙—f´§êĞîr!˘”ş†2vrŸ|_é•ÄäË"6|‰ÁÖ@ĉôx*bl‘?pĥp¤Ħ½ş(ƒÙž˚`ßa­mt{näÙLÓ­ĠîĠµ‡9˘v3ı–Zĉ)Ċè à´²oĵö› ¸(†g<ž5Ż+z a¤ żÙŝì"é ŻYšŬŞ{Úfd}œ‹™qžĴÜkqĉ“†U¨´lX†IèùˆQc´Ÿħ” _`*şíïĦdûWhǞ%°áŞè]ÛÑÖÜìàÀ 2Éc² 6܎ġ:žív½ċLĠpm”³6µYi–Ŭ a -TÊ^< ÄıÇ.Ç8"Àâ2ˆö?  ƒµ(NŭÏú‚ŭ5‰ü§—½ŠĜŭ{&n,âÒ! ’ˆrĝœ*_òŽ#65‘&„àÈä™aE˙ĤíÏíÊZ^íġ]˘  ‚#g íĴ3ÉÊċ gI†Bĵ¤'Ĥ¨ ‘Xô~dh+ü°u‰Ŭ z>zħèĞĴ4Ħ6mÂwÓMëAÙu 丞Žaê˙ı-`f[óğ§úEAI†OJ2$nş²^ 8uü„Ékk#ÏĤŒ%)ҌĴàSŝğdŠËTiÛêZçUFŸZFÑSGóPÔi,·›nk c?ġf™Ĵ€m— †MeÜÁQ·UöÛévĴYŒ%I9hu…€,2x>+C?3Ż8ÇL>hš2€O•OS$ĊW1Â@Ċ‡ĥfĊÏĈMOb˜¤d€§Ĵy:óhħ<ê\LÎw5˘£ĵÂŞğĞJÂW•Ĝf‹ËúÏe÷\Àğ 'z‹ç˘,ì@ˆ”‹áÍßşpâtϨDÁxÙL˜FX‡úƒ4_0¤9|şÎÚ,DY$ĝgÒş(ìŻŻlĦóî°ù]Ġcĉ endstream endobj 24 0 obj << /Type /XObject /Subtype /Form /FormType 1 /PTEX.FileName (./figures/multisim.pdf) /PTEX.PageNumber 1 /PTEX.InfoDict 34 0 R /BBox [0 0 204.59 176.25] /Resources << /ProcSet [ /PDF /Text ] /ExtGState << /R7 35 0 R >>/Font << /R10 38 0 R /R8 41 0 R >> >> /Length 923 /Filter /FlateDecode >> stream xœÍW=7 íçW¨ĵ+N&E‰’Ê8¸³½]êŒġÁ˜b¸ßÏ£>fö]ĜXÜiÉ!I‰|šŭêȳ#ûŒġùuyó!ğÏßò•H*ğÏ sòE‚“Z=kqŻ‹–àÓ&ŻCÚíÖÍZ³û—èkÍZŬ÷…Ŭ;ü}YÈŭ}§h/ËÇdƒÉÔ6ĊöpjÖMSĊ,×îp&ìĥÇÛÂY~ɒì$Z}@ £Š&Ż›\iV5=5ÓçxTËVzêÂqSŞ­¤!ŻC.e–8ğÇñ –ĞeJ'•´×55ëĤ)İ×g˙Ożï–ÇbYf3¤Ĝ RNì8JġÚ; _X !†ËĜ}!û<ÏožÑ3°¨ÍŞ˘ Ÿ˜Ûq3³x‰P({WÇ6=QmœHĠ“ù˜!#Ϝ,Ïè ‘Î#>c‹~ƒ$loYˆ> stream xÚ­YK“Û6ÏŻQŞŠ¸|€Ż£cO²NUboĴĴI3b™Ż%Hgŭö İaĈqĠž6^îŻğ?@ŝîaçï~ĵùŝtóÂl—{y&ğÓŭ.Ͻ,wİR^œĊğSıû}˙úŸŻŜŸn=£(ÚŜá˜ĤÙŝí/§_aĥ÷ĉ·×§·ï~9üyúéĉöt󟛖öwÁe)ßKó|W47ż˙éïJèûiç{Qžíid³‹TäÎĞwnŝu/ĠÛÒÎOĵ ÌYğFB=Œ=U˜îdzáFi>“ĵîúĈ´ìŽdßŬó€ŸûöġQ Gìփ̴Ŭŭ(Òì"­ÚÒô‡#.ٖ‡`â`ß␑şÉŝñĴ”0pšcxy,Ġ}_W…еlÖjÄ_µĴêš%E×4¸úÔâHşÇ³G+Ê˕‚eCϏC^ö!‹PŻ(MöçN”ĊO4 *Ċ­ÊòÙ d÷ş¨êjämR1"6H‡Ċ<,ŝ>˜Ö şĉûiàM;ëêĝğĥĴġqV{aPín€‘i¸7_tÓ×ĉ;œï5 £ŭ`ĴÑCû£EIVè– Y yyo–Ŝğ tœ‹İ/‚Ú`Ÿĝ€g3V‹no”ÉC×l9ÒV죚| göƒ}İG A˘À]˙4Ëkßq[à‹†)iˆŸöÜMuéYînv#|LÖÜO5·é@Ĝ¤÷äC—On<oİx"ä9ŒŞÖÁy ĠµäO/NG{*Ï`ù̟vêĊ8s´<á#&³€L `gC›pg…Ò6Ä@mÌS~ÀÚ^è)P0ŭûCÚpúF·…áÙË$'Íĵ8‘üprXv @òzġŝ-ËÎÚrCĴLF'Ü[´Gġ0›Ĥĵu]wœ#hAöNçËÈA·Ög5âêá,ûêĥŜ–jß?qÈÜiË&Z†×*ޏ£MT§€=Hö€NJ™´šÔ1ƒŞŒ,£ÇAMİ ³ŒôĠÑ^ŒÙ³ħÄìíÀŞ­Ĝ£O_Úç%n]IùT˘lˋH”HžCÑĤ\b)ÄKË·¨Ä²Û= şḭé]ƒ|@ċ]ÚZbħ‡żÌ> ! b“’ 6ŝcßN\ĊX˘íĠ4$_¤£œR°Ġa‘@²İĞ[ġiâNVĥœaXÁ´PšAPĠq/5ü\•‚U. ci;1¨Ï‡ŞuUëğZÀYVƒ)Ĉúi½çŒ]°ÊEʋTâPEžŠs‡˘H0t:ä ò~Sµ]Ŭ=‚f˘‹Äk,…@‹\ġXúx=k ÀÄ÷ü(‡Ž+*$ѤNyl€Ĵ|-–H/Òì/·=ÄD2xëġŽqàĊırı²(pXVöĦR?Ğ)ùމbRw’•0Ÿ^AQÁC`E6Ìi£díž n!ŭEıżżĠĞĜ³ŽèĤ|ŒüÙkàµİY(aáŞ|ÄÊp܂g3 ÔJÀd#hħBí˜a 8 ÏĈÚnà<ôW(8†À5ŭ~áĥD²! ÁcuD£RûkÀÈÀĞ79`„™T l0¨ñÀˆĵ8܍Ûħ÷zË4ƒ%2pñÁÜùͲY4oüxîji‚#aàùĠŬCœÖ4_L1‰C1ܳXÀ6V½‹ċëû ”’îBûÊŞ…ÂXrǜeħ1˜ŝĥ¤rôXĴ‰4ŭµSÂjEê,tAŞÂKİ*K ¤ ˙ ”ĞĦğħb8­Šeċ„e•†R2†F˜‘Jf†™rjŽ>/IÖ&ï§ğş²gĦâWĜPPġ˘¤Ç|G·ÏA)-MÜ@¤s*6Ìl‰˜\"4 ­nÈ#IŒşäh §K˘L2“eŝ—\òÑRßKül}¸Ş%*Î+…9äıˆL#óžżÇ[³Ĉ 2ÒĊ‹Ôê·ÄX ÁÀDj˜ÛLŬdy´5] à~ŜWŸ„Ġ`äNj–Ĉ$Àn­Ġ†ËċÖ œ TjjOy?dïŽżJdjù–Âgè˜FÙÒ 8ˆ žRı'úĝaĴĵ$œ³ÊÛĥŸĈ÷א߆J‘›);v[›àKòt}³x7³8ô"˙²ÙËÁœĤd­U,ƒ;[ /gĜ8XÍÁüfƒ¸Š ´fœz–ġpi#wyÇċv²<×Ġ`ıƒo7êr³ùĜ=˜ùIGş†ä ċVNOċs8RG ·àDùĵàû^~ñF0\ĉⓌĞ!GA#‚ùY0ß1C.Á8ïšP Ypsíäóeݧ’ĞRÀÛ)é%ú–ğ´ĉ!˜8°ˆ ğ#ŠĦ¨ğê’ĵ9àÍ ÜóQn£Û ä^Eë7…GîgšŭBŻD g}1 Kşı·Dtħ?Ċáĥr ĵìR|-ž ìŭçÚ͏< -À—\ĊUìej œ\ĞSĠSk³Ħ-°Ì O˙‰ĉċĜÂÈ ÒĞJ.€ĈiözĦškà+Ìë™LĈNfqcËÌ}rä³÷ĝlµ*Bü‹ĵˆî‘ëġt1NÌ<ñ ˆA…ï=lìԋÀ|WO1ò¸âğ„E•Ç“ĵë8- šL/zÉLfZ ñ§žoí˙ÙVËG$ĝ¤slŬġĈa‚ƒáCÂQÁ­áDc$Ѩ.9ĝħÎ0ÊċŒtÏNİ8räċ—§I5˜=”n1zWSxƒÙÈĜH Ë ƒÏ²‚STwÑIö£/—ÈhȚ˘Ħ˙Ĵ*'IÈO´,5œPÂĈhêÚÊ햒üŒ˙üÒÁ4×\îFx×eS#MƒçòXE3˜K·Â”Ïóââŭ~Ž–ĉĊinoÊo§Óĝš |ú“}‰N§püş+‡BlPIJ‰ğU|D–ğʤÂï"\˜Œx·àÉtô¤ÖqÄö/>4˘oÜż;R¤éżŽ5‘Û(ÍPÂl=UĊ§ 2 x‘†Iï(ÙÓ?7QŠ`†ËÙÀÂ9H?bB°‰R>t/nç„ZèÂşÌ0Ž ™9îHŻNÖ$t t|âfÁl–Oë{azĊĥ—Żèrğ> stream xڍXK“›8ûWpÄUA< Ŝ[2™dgĞ2™Í8§läA‚Lüï·†§6#µZ­V÷×9pÀyżz³[½zfÎÖßn³;8" ü4Hœ4Žŭ$Kœ]é|qŻ˙|}żğù´ö˘(r…żöÒ4soïvŸÖaĉ~|ûùzwûñnŭu÷×êf·ú ;pÄL|·[§hV_N ‹9m3ç‰X'Š#?¸ħvVŻ‚…‚İ#b?Š7áB`‹pË ?^{B„‰ûIÖù ş”Mwèĝ{óSéAµ<{è:îŝä½DĠ_½››!pĵPĝY(Xü‡Ï·×k/Î2WiünŬĥx0T’Wşĥ>1I£|0Íŝ |˘{P&IÜeaĥĉŞ!HLÇRôx<=Ĝ×ġ†Kµ(f½×áJê‚<áöù~-\U+8)uOxÔZ›·íIŽ<Ğ"%š%ŠŬVŽ}^óXĞ×F0[×kpn§î­a*ĵ/ħÖlV˜°43Vµ‘´ï•ü'ɉ§ÔEŻöVċ(JÀ0ÙĠ£›dyI홝˘ƒfÜċmÉÍö‘…‚â"Żë/:Z(F³j[ul"‚ğNs µ/9Úg<„É3@$~ĥŬ°Ž÷§ğ𗨉…ŸĤ1žy@*c&ŠR7çéŭi¨X·Ô=ĉúïÛ:Ù¸ù£d†C×ó*ù&5ñT[Jƒµ¸2g&ħžÈĞQmahDA×ĥ!Ì,PRÀŜ7&6lÒRֈŒM(ÜہWKÀùC•CB¤ĉ…œ?5ŬĞċä“ġy9I–‚@|}kö’­È­Ôcċ-0bìOR3’Ûí§ÈòP°Äie‚‡änñ$Ÿ·ÜM—ÇY;‹ş<g—çŬO•"oU<ċÈĈùíY£Ĉàp€ FOǤÏš‡EŽ.‹3ĥLE'ÉRgĝà†6Ëœî`ñÊO€YnŽf[\Ru şğ›‡ĊĤâmü I ġx~íĈşäáù8‘?­Y˘d·y‘ì€bn;(ovs@³ĉeĥ)˨ŒhN΄òKşĠjßçŭiĊ.¸> R÷ál„$vÉì% 5NbR_§÷ ᎎĴ52GpEÇhëğşfë'1ë‰Ċ+ûœ3éïgì 1R`°H×Lb'ñ™ÉÔ+Úë/9§Û!.„0Wù3o޵$r°ôυ0<ŽûZéŠïŠ÷Àß6o­e9aÁ~ŭkĝ`N Ӑòd˜F9Skµ'UŒĴÇk½j uœè%¤?ġ “9ŠħùɅa^²Üê!W`á@jvİŬ°[ċŭT6Ċ†YxĈ9ÔŞp5?kUX #E­1+ñ"ŠzԀ ĵäŭ80™‚5CœÎxuWöla²ġ¨VÊtT‹yS(ÉÀĵ„9¸2FĤ`Ċh@úÒOW<% !Kə HĦ‡Î œfİÊ)xL×0?'/Ë^jmˆĵJ àç­ ˘1ġ}žŽmíĉá,ZMû’›Ŝa²Wŭß(ġ”5Ôiġ˘â§Ħ™­ĝ;Ô?>g‡ËŜÏPšn°ëÏz<0ôwÜÜeÜ>ĦĈĊ Ӝ0Ѩ£ TġŬĝXÙ ĉh4§şm*iwl,Jˆ‘bĥëÈl×1qp››ÎÚ\¤"ž8~[­àîïBÁ“bh-ĜŸxä1´%¨ÛÓ42&2.’q†xŻXQ³V† y Ĉm! 'ħèztI°+³ö^ĥR+³]"cWíÖGT$1[OĜĵ-â_˜%ٙe$|˜ž_wĤéƒû@h÷|D×Ö}IÉf&"LS—nŜĞ#H1‰^s€#Hd…Xá֍.OĞ×ĉİTd{yJÈ[ğ?sß*è˙ċ`¤Ŭ°,‹$=œ´wħ?’ VÌÈ´DÉ9A#ħ„—<+F´‚İÖöqœßG9šÒkÊġQ}£Ó5u!ò…3˜3/á‚ĉ zà·˘Hı èġ›[“Vĉ­˜yôŒe¨JĊ0öò˙ŞßĈTżdYŭx‰ËÖĵ7+rŜbRQÊü8°“—P`#jÎU 3?$XCeÎİ́t3,ۍ—ġ„ËÛzIĥ„HO.TS;•a8ÖÓ£, lRÏBìäó•–ĥ;żš?²Y¨˘¨èŠŸ`² ›òìŽ0O\óôğ”çì˲Ûvjr–·.ŠŒ)ç<áwÚ ĥÍŻ…é/Glĥ~´I êlR_ĉlÁt³[ŭé³Ì endstream endobj 53 0 obj << /Length 1807 /Filter /FlateDecode >> stream xڍXK“Û6 çWĝ(ÏĊĝĞ·6M:étg2ŬM/m\‰ğfVŻĦälÓ__:ı€Kî- ´+Šuòĵ·>háşóÎoÍÓMœ\Ö²L˘Á~Ŝ|üÀÂäOŝˆÀAiĜ— [Ĉh5œâĉÓîÚ)Ù#¨Ï=@ĵÔyr ¸²Ĵ¤mQh̀œ6 np‹3ûwEĊ_™~^x*`b`5…5P³7è/[2zċ|a?´¤r½^&{ÛFdI?â†8HÎÊó}Ô<ÔÑ?ñÛ`m;‡)#?Ñ|I^‡F‚ġŝžüˆ6ËìÚ0!nnIŻöŜWJLúĊ5@!‘§£`d1óÓÌ"§i0– 0œ§6cß3ÚàsCP˙xè-³ÍÚXٛ%¨ıRùċ´ç×`ËÇŬ½ešßUiUëpBNÄĥ„R¨Ô!kXgş³ĠÏŞOÜ[V-óĉĊNÇÁŻqA×ħî0‡ԄŜĊÖ,ĉlÁË|ż 뿝O™Şàϵc= 8Ž.ìm?"pQ†sĵĦô™˜EGŸòçŭ1ġ2ĥ8‰ÂħqyìĜf¨ĵĵ lB`s 07mPËÇœŸ zä­Iwĉ”&P ¨?Evá #_œyħíeIġƒî‹2Y`£Ĥ̲eEè¸- #ŝ.Ğ“1ËÁ,Cż[žFĜ%4{3Œ~‘Pw[Ċâƒ_Џ…wóC'Ħ‘ŝ–vë@ğ”qYO ²â˜|Y~ÁİYÚ”8Wazd*SċÈTÄKĴ¤Šsf,h Ž0ÂÄZ"Ĉ+ S˙şw¤mô2ċŽĴ‰RİH” 3$(Ž ùżù,|áü{AŸO{}§ĠŻ`ĊŠĠ´*cµ?ĥú¨‹m4ï.|64á(g8ŽFĤYTÙ"ô óƒġž[Ĉ*ş–şçm2—$•ĉ˘Xûò<·Żu•üÁypQ*Ë*ÍAîŬĜÓ·uĵ…Ĵĉ`áĤ¤‹ rì솜v"Ĉ $îċ7ù.¸(Àó‰î3-<υ{‰L'Ż.6úÖúïà\Ö •Í;Úpyúƒá5àћŒ;ĝ UkÜÁÈ ö +ò²ZAô'ÈKŝş–ÉÜ[Dş[‚ if o~’Û3ġĥĴàJŞ)ĥ z,\żïħıòc4Ûe!×_Y¨f.í‰JIÁċÓ{gzg`û/Î>c†‰r,,s0=…h”MgTsH!ï´^WÛĜƒ"Î5’ŽûóïŞ% tÁĝRŒ<,j8„żUCQœÏ×ĈVfĈ–tÇ˙%Lc×lDQC£=ŸĴÓŞ î­WsŜŬ½úÀû endstream endobj 57 0 obj << /Length 3054 /Filter /FlateDecode >> stream xÚYYsÜ6~ׯ˜GN•‡žyIíÚòĈİuâĜ“ÊV%y 8 c9ËC²ö×o_à!QŞuö‰@jt7>¨6ǍÚüêïûĞoŜêt“ùYĴÍŝvDÊOT´IÒh³?l~ó^˙·ûëÛ1ĈÓŝv—$İwŭŻë׿ìßŭô#“ß˙ôĉúŸÛ?ö?\]ïŻŝ}ÀŝjÌöƒo–mŠóĠo¨ÍĜ(ßdéĉžĤž7&4~àÂjóéêç+5gr•GûÎ˜ÇŝdñôoŜ3Ÿšúa˜Â64ç“í‡ Ϛï§3?HŒ›”ׇí.ŒÍ3;˜¸ı·:ö†şßîŻÜŜÙ>Ŭ=Ô~DnEs³ŬEħ÷'Lĥ¸ŞèAœ)Èo§ÁħÚĞòĦ.ĥ:ñNÜżœòÎ2GeÇßşéıqWvċM%£·Mğ`|³ fa ÀÏ"Qf~ıTe‘÷eS³ĉş².,6CŻì™t!TĥnG£]ÙÀ÷¸4ôà2:ġ,žL÷AšL7+ġyÛw>ñ„~†È˘obœŭz²ġth„ĵì] Ĵd+’D]öe^•˙ħ"’÷ż|z÷š›yÏke¸<–u]ÖGĤ5·üµ_l1¸}I,9ÇŜLp­-ly·Ċ­P“y9ş P”żĞ ,VŒ&Ġ`ُÌpF˜ŸvĦ<5œÈĝAìÖ࣋°’RÎv†d ĵI½#ò–Lĵ…í¤Ŭ7ò%‰@ġX“P{hÁġA–=.û›ÈO“T;Tön ‡ĉ5N…subĵ’TħMèL…Żˆ4ħ_lŜ•9—xjÇí³íO ĥħ u(†@›7µìx_ö§Ċ!†y…KÑĉĠKĈ%ŜmŽm~ĈNêóÏNĜe˅I}›×`ì²(%ù'¤^;Ô¸°/ÏBKâ¤#Ÿ–w ÇmżÂ˘Xƒ‰ë4"!ïä[Ë·=gËg3…YSÏÁ_”ù‘Ĝ–Az/™^œĝ*Mܲ˘İğŠğ?•òpâîÁÂpƒ„‡ŽÍGëĜµY^”­/LFû‡ĉ̊ÑÂA‘{7k!cñtpĈMÀŞÀ˜„ĤÌMJ6››. w$ӅĊGî>£ ²ÍhÑv#HaÄgaêÎ~£8aCxOà6h?íkà5‘÷é’#ŠĦ>"ïM R,oŒB›HŜçOu¤PÌà£ĊE7ç3r9Ô£ı‡qì ŻÇĦ{²u+#³—A‰w‰ünT+O`˜kwi¨½[éóxŜZ^TçgXż"Êڂ*ÒŜï*RÍ_†žûÓö00\ZD>êólYYżĵê–żœ, "²{â]’˘½œĜmá Ó\BKĝŠìÖîQ,¤²2ap"Â2áèy䀞ÁĜVžn%sšö˜×àd}Y3í3€#ċlÏMûÀ³™Ċ`„™_jÌ lw%>­3dûJ:pïİ BK۝­° :ä@ñ£DÚÒj2^;ĝT¨ÑÈw~qö@$! $@‘RÛ­I™ĠƒŠo&Ûĉ‡iB‘ZàI‡ÑÁ)2žXCò¨YÑ-uOĴÑâÜPÀc²ìD´ÂïeÁ$ 4âhìµÌ#u…×%^ÁĈÔQHJùv'ĥáZÈò}[‡Vv×~@: ĵï ï™|àW-­\ásÍ'0şŬ£e”.EœcáRTĜHPhñ†Hı?@ż{6ş{‡À“Ĥ|ö+n÷¸›™€ÒFĴjxä´÷‘E¤âİħ!ÊN%ĈIәžĦóôÒ.ä5œ’?ġóĞÁ´Cì$hĵ3*òÀ§8gÜ1….ACdïàĞ[…ÖÒDğC-/ħ—EÓ8X€.‰W‘Ùt²'ÉÁ_{áüeĵ-ïi Ċŝ~v§ĵEÇOŜŸt§ĵcŜşäŒ _Ö;Nêžzž,•Òn;ĉÔp:#O›Íd†)zrß²•ˆŜx€Üœm (nË Ci`ˆ¨*ñS`b x¤XÄP 1İ‘ûÂTĞSûYşËU …HN4a½,š(ñ͘ëÙ4üt ÛdĠcV‹ ğ„UA1…~d „edb`ÇäAR ô‘0:y<8˜sèx|˘$Tšœİ™@2Ċî§ÑŻe£š3Ċ€ïĝˆhŝŽoW Xá`ƒƒ.ß×IòMÊ ­‘·Û[S Äy!ĠIZI&ğsçjàR-k ½Rĉ³°Iß¨=F·h^éR~fFp{Ì—÷9UÄĈj›û>*bE~dná9żâ³“l&ü„]2~'UŽ@NQށËĵ:Ĉ<(Ĉ~qàÜ$Á_à|Gà§qú(µU…1…2KĴĠ‹2¸Ĵİ̃ŝiŞ1½PfŽܵğ–àĠR¸½z„Ġòú1úWф˘_ˆ°y…ÎI X²` ŽÍPPžEv8™âLdĉÁ Ìċ¸µBĊ”—ıKĉCsa<‡}‡AÖuÙ.İğ[B.c ›qaż2G7לLŒ!4•XbˆĈ%Ow+Wbò"ôCŸö9o!èŻ*ö_œŞIM2öz$ğ²@ÈÉöĥmŽĥĥÍ ĝQTC׿5ĵ‘j°÷ĉœ#4­DċÜCLB(Şr•W‡UÙ£ê­bïqWA-Ù ƒ~TSĈĠŽBÚJú}!0ĵIŜ2‹ 4Íĝ$İÌĠÊ)kO_Cs*ôSâñœ²~ôğĤ*™Ş”ü‡`Ĵc-sQ>óŸ9UÏù}~°ÙiGĦü}ûHJÊ+ûíJNùzrŬMX³Ÿr²Ž 䝰ÑÜöôšlÎTâoĝËNu*ûsKö·R—Ùɑ ì!!„P_ÊÏîG öoÛ`1şĥL:ĥ n(!7ŒĠvh9b ™$ĉúÔPò@†÷ÀôîÔ Ġçrv&/•[{Ì!Ç{&1W}N[B‚â²Ğ7țÀaäP'‘×=Ôù2:ĤÒ “Ê: Ĝgp~=ù #÷eUı^%5=·T5e\ĜkİÏsíovüĞ ‹¨‹™wFKYfc#]n)HF<$dş@ì}´ğÑGé$a£H`3@cŒĦĈ6™’:Ġя"P€”­ÜRúq‹ÂĊ:cµó:? O­P%D^žŝO˘pè‘Ñ>´ñ¸Ġġ÷'>j‰y0m‚Y½:c~ê:ĝŻ çş¤’q ĉéŠĊ2{È×ÊNAH?’.Twj<ìĤŸOkE”ĜÓ…˙ èQħü—)Lü84OC 6M\ù JA²$UÓSĤŸßgŞÔU’’›)N_€)Ùà“˙ÚKĵ‡ŒÄ p–ùiš0CZLşŜ_ŭáÂÈ+ endstream endobj 62 0 obj << /Length 1962 /Filter /FlateDecode >> stream xÚ}XY“Û6~ׯ`ċ‰Ş²ŜÇmìIvRëkı*UN0$4D $=v~ŭöŠšhò2şF_7'ô½ûa÷Ŭq÷í÷qéUA•ÇıwöŜpŬŻ+ëà46*ÉQ7ü”…Š"b?}oĞÁanŠŝµ?¤qáżS³bÚlĠ0´ċŬ¸K˙3ŝqĞÇaġlĈaˆĞÊ?ÙħA~ÏçÎԊE`—}äƒyo„~‹A‡˘(¨2‰èَ ğôk=MzÙ,òç‘é’,†K@çö ÙeÀ‹ĝĜÓ=xĥµZóòZ5$KZ•ŝħng[|òÌÛGĞöà˘Żr³ĠJŒĊ7̞QMgŝ¤‡½†k54ĵ°şÖfu(SÎVƒ,Ŝ1OL[uĵ˙ĝáŝ-.S˙LvĈ܎CÙÔjÑڙAËÑĈ|6¨ıaáud .à!ĝ\ôm’‚†i6C=3ïаz\zCY^”IšÇ˜opHKŞĊA²‡‹Á£é9Eĉż‡ ,´t˙„ú“”Ä ¨%ïÌïa”hĞ’*ŬcQ%~ݐŭ•Ùˤ™ÚÜ:<›^ĜÓĴϓhÄ!͈”Ċ \XôpDa(||ƒé@˜n½áäñÇâÊE—ä`ĝĠiÂr JL êZ53³áJ„Y€ŬıŒÁx#‰„é˜ÂâtĥFÍBÀGb^§‰?0i´”ŽbÉ “!F§żPCYù-¸djĠî ( c˙3pnQ ôÏÊb˘,=HŠ·[pÀŭY˝$“êşŻ"ĞşzéĜnxnġëU—Pñġĵ¨Ž×ì+\]P w#ÖÒZdHy˙˽Ş'˘Oĵ=wŞ&?í¸/SdşĈ!Œ\E*.‰İjġ$FıG¸Œ^­ÏŻĦĴYj|g^E7ĤžĠC'HŻ›§7\$“éÑLÑÉ’·°˘ÌÀ_Nkmñ'éqp‚œ†‰ËÄċGg7ŭе¸äŸ … @1áħç¸îMmÇÚB bz=ö½“Óhċ|'§ĥK‚°Q)…ëM^şÊÖjͤ"³Mñžoƒ…V5oywrUĉJ|UĴò†uiQ=Œ³¨@kÍèyXMŬDtÁ HT–0§§ŻCi×Úq0­×R5šâ™rO G ~Sá×èR~lÜCñvİ<ÉĦK‘‹0QÒ(ċFÂÛ×ŝC/…\XĤÈ <ıÁYìeôRi¤°Q­V QÁ# <ÖŞàĉÊ@xnÍĜ,L ĉÍë]ü¨zYĦ}Ôë6mï9´‡ĊtÍÄk%jĝbŬ,¨Ûƒ[áĊj9ÄEí.½Ù3­Ĉ#QBŒżlx_C0rĥyJ’`¤ÇË L6*ÈߢÑùƒàóáò*”şa§DŞ‘ €íG„´Â™­?wú “ h‰Ìy€4#G¨ 5äb 9€D²rZŽž´nP3”áÊ67û‹‚˘ħ˜¸ OĤG…Î’(şĝrÛ@p#zíÊPf˜˜"ÏT%EE=sKoŬµšD9'Ó ”nu…Œu\Bök|>RhÌ-3׆r_)Iµŝ‰ÉÓG^›uà@&4p.0Qo^*Û =şy½ÔĞîŜà€ Â4iœ ·ÎŜ­GÎ$SâpĠôòX ûeÄSħôŬxûĦ€Ŝ sċb^ K”„Ĥë– ÒƒÒö-ußgŜ¸ÂE:íœ>Fu\Iô‘ĉRÌö5Ïd×2,BĝŠfYú˘û#O—Ĵ‚,É’'#àCÌRù*1x+vá܍WÙe”Gö5Ês‘Żl—7â2µ0³óaËÍygxè×öó>Ë÷QĤċŻ›ÊŬ_­_ [m#ùZ#/ĥUŝD£?œQx=á CSg Ŝ˜½†ÉIžo­†¤˜ñ$"#˙,R2ÙGñ3G¨—Ĵ-.YğÑ·Úp}ëz™Ĝ׋Ô?ŽX[OÊ@s™ħ4Ì,SĉÑ@Ĉ²{½V(iġŞìvMÓtBĊoFĤŝfa‘P‚Ó…€8Q’”ú HD|А+Ħ‘˜<‘„ 2ó³h_§àWĞg3ŝĤPnüÍóMİì’B¤ ŝœÂ˘c3€pRĝ™ˆ+é [ĉĥ›…× Öêf¨óŻ”1W\ĵ‹‘v=&‰œžċ$ÔgV ça:³+1˜Oa%áׄ˙è¨ùéż Ïbĝ²ġJûÀ>úäÚ z°Š¤YF”¨ßĵ q‡ÂNÊYRá· RĤÉ·•k‹°wIıöEíÎ]’[”ÒD‰·:İ@'!ËLWó^”çAYdù]eY£˘èJèî¸û?4=† endstream endobj 54 0 obj << /Type /XObject /Subtype /Form /FormType 1 /PTEX.FileName (./figures/datamapping.pdf) /PTEX.PageNumber 1 /PTEX.InfoDict 63 0 R /BBox [0 0 380.34 306.36] /Resources << /ProcSet [ /PDF /Text ] /ExtGState << /R7 64 0 R >>/Font << /R8 66 0 R >> >> /Length 2119 /Filter /FlateDecode >> stream xœµZˎ7ĵ÷WÔħç04ߏëÂĈ­f€=>ìŽ,K ÛûĝŭMv13ƒaş³#‚AV5™èßkÜaûżñ÷éùòŬ›rüòÇĊšjmİîĝċ’}66ı›t<_šm&Öx{÷IßĠM TôËʍñŝMk-ĈwüH˙˙uħÇ_/İWKzċ(‚~Yı1>\.ĥ`’ŠÁ•l.ï„/藕á{Ñ+1˜Ê³’wŻÖë-½˘™'GëÓï’ħ%víèMöN*Ÿ…`…’qıö•×h+^‘û@ÓùjR )›Ò̀+}ÌU”èbÔZ`À@‹–[ƒU ÍïkİûĜŞIĥ‚{ {E1/ıj²ġ0b,ĠDaDUB÷ûZê>GkĵÇµç şW”²5Áe1{Ú<—*Ħû}-uO;iс{ {E1ŻZolH0bÉÎԈ÷Ş*Ħû}-uß|09epÏtŻ(áÑĤQpÀfi‡È¸iŞšß–RïÎĉdŜġ\AïŠR^M&â÷Ì٘ŒÇĠR%4żŻî½-Ĉ6t?*“{A)Ï:/pDwÛ4VÊb}O|‡XÍ´ègarÍ%ċj|5Ċáh,3ıŜ×ħÙ~‚íQ™| JxÉY‚€ħXñîTÉúĥ¸ÏÁç+W&÷‚R^ò&1;oĤ=Y•&÷ÛZà”`î1\™Ü Jytv[Ü\IÔĞdQ”&÷ÛZàQ ş•ɽ ”G½H™v†Ú’IÓÎ J“ûm-uïm*&à.tŻ(ċ•b"nŜ†bĤóP•ĤĤl[ ÜğF½1ž­\™Ü JxT2ĝEótŭĊ]B…ĉŽrS ĵj*î8\™ĵ JyԊ4‡#jEÊô<"J“ùm-p+5ûSG?*“{A /Q+’q—1{Ž(J“ûm-pŸ}4>ĦûQ™Ü Jy1šİòÙFp—PÉŭĥVNjֆÖ\½ío<ôıKÓħuV>ÁÔh+¸Ŭ~ÌzYQÖûÛ#ë·Óż=B]Qž:¨Ĥ[mTİYÉqzÄDÜL˜6k Ş8ş ÓW“+ˆŞtŜ•†Z\AT£s%ı݁D9ê[Ìôˆ• ċi£lÓzÊ„Š´#ċé8• •è `nŽGeBêµq… Sé˘Ġ 4*ŞĠlÒ4Q™µ£nmŝbŽÊ„˘ln¸2Ħ"]´\§-êĴL¨DÇü|ŽÊ„wôógîz;B Û2LaG1/ŽûódE,³%ĦàŠ$+éÜašÔƒÀ ì3À°ƒı€bžR‘€beÍĉ÷µÔ=„=†ÌÔài@!JPĴĴÙŭ–ş‡°c¸Ç°ƒı€bžR‘€beÍî÷µÔ=„=†ÌÔài@!JPĴĴÙŭ–ş‡°c¸Ç°ƒı€b'R„b%Íĉ·Ô;„;†Ì”8  +k6żŻî5ì`÷vWQŒB*gFħRë{Bà[Âĥ­a‡0#¤‘Qh3Š…³¸Ŝ×v°m;„Ş(ĉI@ĦJPĴĴĊúĥ¸×°ƒŬCĜ!\E  ­p@ħ²÷ÛZà^va‡p%<(´ÂĊÊZÜok{ ;Ĝ=„ÂU”8 Š+kqż­î!ìàÎ Âé‰%<(´ÂĊÊZš²m-pŻa‡ô•vhG'(ĉqBĦBœPĴ¤µ£Ü”ïv°w;„Ğ(áq@Ħ(VÖb~[ ÜkĜÁî!ì˘˜'…*q@ħ²÷ÛZà^va‡p%<(´ÂĊÊZÜokMa‡PomĤ,â,èC™Š•5êĝVêĤ£ôOµá hÎ1Ĉƒ˜C4ĉ8A˜r0RŽ„!‡´Àrœ Ì8Ç ÂˆCR8N&²špŒ%€€C›, 8ò ]LÉ7x15ŜĈ醞qœn Œ†Ñpc` ÛÓF²‚hC7F‰6Ĉċ…dC@šl ú5—`c€ אĉħĈz˙>żĵĊ.o@¨17ùûÓaw—ŝ#½yZÎĈ?'d&ÁUbĔB™ ˆ)ë?.›ĞÚžLñÙÁU:Ax•ŜßüSŭ2RsœzÂjùIEœROWĠ÷O¤Ĉ*ş.ĜۙÁz”ÈŭTyŠÒŠú(])‹+_2–^lž7W^3oOKJğ8ĤŭÚġ~+>R×İ.˙(ˆß˙‰Jìcë—Ĝ§–;‚/3Ğû/Sáû@ĵŒ÷_6#^'ù™Óx[]ÓZ­µ˙ä+Ġf ĉŻÔ.…ŝô‹×ÔŜÒûZq½éŠ´ŝëÈÔLíßİ„ÒÎ~qegî×ÓzÀŸŻñ 2=!ìÚ´ŝvq·ŸĜÏÓóñ—ÇËwoúÎJ+K3|9~×w2“z$ĉ›ëĞôĝ|y{}¸£c$çÚġç;ڝjIùúĞß}îóßïîO…ÀġÍŬ=GÖÙ<>Żİ^ŸäĠàxŭĝßğ@íF‹ €]ÈDŸ˘ûéñÇÓĥ£ÉÒ~쭁;îğwšJ<èî"ítŭŭŬ}˘›ÈÇpŭĝÇŬ–%ĊëżOħëö—˙y›A´­^˙£“ĜçzߛÏ`ŬUDċ_UĉĊšäz›JĤ -Ä;…ŝ£/m‘Ɉ£ZRêÓĥ}–}žšKo³ħqže‹ßh–żĉ'~ĦS;/mxëÓíHp¸:1ZŠĠĉ>[ŬÌ}Ÿ£äœíßïèY=Ù~Iß}vdŠ]ç‡ÇËßèß˙]MTl endstream endobj 70 0 obj << /Length 2262 /Filter /FlateDecode >> stream xÚ­X[“´~ÏŻ£SEĵĥ%ßx[vg9C…BqŞ€£I\ëĜÁrv˜Oßä8Ïy x‰n]Z­Żżn%öA|ğúfğzó!-ƒ*Şò4ĥA’ĊQgAĦu”•Y°Ŭż…ïŝóöÓöî§ġF)ĤÑzSex÷żğwżlïĝžĊx÷ßġÛïVwÛĠŸĞ֏ƒdĥ|Ğ*¨Ğßŝˆƒ(ż âHUeDCÒ**œĜ?Ż~\ĊbäkßÛ-²ĵ‚oŽ[üıŠ2­ pi‘ÂÏÁ›û£ Ŝ÷°Ŭ“jWÜ̖$W-y*ÓET”%{êC³?v½Ñ:*ŭz½ÉKn× ÓıG;°äïΌ[:|:ĜŬl’$Ş2ñ½³ŬgeyŒ†á;ôè•cSŻÓ"ü̽Ĥ[§eÊ/ë Ĉ·KKÓñċ‹ ĥĥÍœj‡ÈßĤ÷‹Rà ċ?u´~áhżâ˙uô´íëŽV˙˘£s-ŽÎu†ŽĈ~Ûw{ÖeìçŭŒšÍÏĠ0µĴ˘X§ÁF'Qk^£5û}Óí!ö²$·‡ TYÍgZEşÍÈßÓzÒŜıĉĦµ,zìn°+°5öü5€ĈĦ m:Ñ7G‘ìĴ;5£tĝ¸¤İG/2ÒÑɞĵŸHt*v vÀ_àŜĤ5l ˆ[CXĈĉïqۈN‹— ‹Lž‡Ŝ|Ĥ˜c%™†íù.yHäQU¨Gè(œ%‘Ä´”Ç̑Ĥ#WÁl Ĝ‘ÈŜ|‡xĵ–‡„›ş„=sk0\.&öKöêJ_œ,\ÜÚûì\d˜oTGı*n0iÚÏl%ÀÒ<0\Î#÷]sD4œ× ]Êz“„;0 ‚ ˆ*Ĥ”éuP*`Pr£iÛ³XÇħàé@ŞÓ˜cĠv“šü êġ–Ûó€áqÙĝ­{AŒD°ı?Ë:s´Àħ#&“g~¨MÛÊméYhĞ<t;¤FÈwS‹ÌQUB@^IıŭGżžž…çßDùç…<Îä"ÜzèËL‚”pBìÈpìšnǍú< –ŭÁŸÜÍÀñ’Ĝ#>Ħ2Ïǝ›‘#t˜ìƒçUJÇ_0÷ĉÒÔä@’0Ô06ŭ…ċ&“ƒĝú2p˙gnOÔ+KT/ˆo`6ô§Ħ!83’ùŬëpĉK‹áğÇ}œÒóïç²(nŽ Ĝ½mj#g…ħıëd"GH'ħaÁÎĥ´ö3­ħca d ‡Ż%Ç,£™•Ħ‡ħ†:­ïÚgl Oġah¨`Xbݳ5›‰Šŭ`NVAú8:––ì8èˆĉ‘°~áŒĴây ˆ@>|fĵĊŸo‘ŻB –_ÙżœĦ?9îˑÚÜGÚŻ™`ħuÎ Ï,Ĉ¤†_@ghyâ.?lH%€#&ŞĈeé€;uU†7ı,—lúIèú£÷Q’İUϑteÈ÷îMGÁ8)ò/?ßż9Ov­u<ÎÇ_ p2LóJÍx>Í᲋)]ÀŝĜ“Ï´˘#tġóË<ħñ \]ĈÓĦ™ŒŠ%àkĝƒñÂÌ<Œ FSAUhà×àŬé,Í)ş½bŽ%œÇÁÁ^ÇÍĉ‘‚­[3X·„žCğá…&Ġt_@ĤûÁ³aĊ€/ħ2<·~yԁ Òό=@q4ŝiì ˘rŠÉĊñĜ½?´ùJ—ÈOîŝÈ ŒË/r€ë[a í 8âփŬ%!ñÀċ1D ŜOyÑòÜÚ8iq2TWɰœ’!—żX`ŭÊYuÁâk–Â:@P7´´'%€Ve¤2ċñ‰üµ€Â4ŸšĦ úĴ:·¸OÛ: yƒĉ(4~ÂQž”"›$†Bž^³÷½P-. ³°2q,‡™mGܚaħ‚ŜĦH´ĴD. ½äoÒŞı|²/¨&ĴÙÍÓFF;ĵJà·³âZ\a,q]M*ÛáKH6’(^+ı’ğ,ıB§ëŝÈĉw³Ë.)üyC7Y³³€ h +Óû‹ĵ§ıÑ`Á8Ğö´—͑ƒڃbRÜo‘ÙÏnEĞ)k)]hòä#t€W £Ó—kHœ ÎċUƒ-óW#Vb^zÂŭ!kÔ>ÓúZ‡§ÍĝA€ɞ>ïcúòhƒş‚vÒáÏ%ıS—ĝ}×Á½ ƒ2F/r€ĵüb%ù èúžbġ˘üPtşoä-ƒ#{xîX0Ħ4Ċd›„W+5ÑÙÁ˙Éär²oŭ“ƒĈ{’Ä^ o4Żc)²[ŬŒŬY*§­ç¨÷\™s!JOILJ ĥ‹klĞYI1-V|Ji1uވ”JäeˆxN’4 ?˘5{Ë/ŞOk•PJ{Él°@Ş€ÜŞ ġhÓn‡!!HOùÁM_‚Lš_ò¤È ÂşŽ‡Ì³4ž›ên/ħ=íÛ­éĊ†mx·{ça÷6m§…䆅[òĠŠ.1Ħ[ż4ÜB(ЍJ§*ċ蝧s$îì5çċIíga½PĊÏk]ÍŞ ĥf‚>Ğı´9=jŽsRMTR­ÀŒa#¤ĞJ`Ŭôú  Ì$ċ•7Ûqݤ÷´˙û$ö/s<µ–ÄċtCß²şé°RöĜÁ2ğĦf–U°LÊÀCo—îAޘħÙÜV4İÖT¸à›¨Ô!Ĝ”ĉRj êb*Ч,…Ş™Ŭ-–({ZÂĥáĞ‡ĉ4r{JlĜişĞqŸžÇCżĝ·ÚIê lLħqHŽĦŻ•ñM%Ĵ‚s‘t:žż³Ž(°Ï² ‰ÉC mÄÁŜ¤?;YψrŠfèÌ"ğD5TÊĈKĊ‘<[ÍĊÈèß³žwĈó T”£ŭx7ú+;ğéÙÊd‹ދóô´B ġ·$÷éĠÜĝĝ/8ŭ7sù/1Éó¨, ĈHШô&éĠ ğíêoĊq?r endstream endobj 58 0 obj << /Type /XObject /Subtype /Form /FormType 1 /PTEX.FileName (./figures/ticklogic.pdf) /PTEX.PageNumber 1 /PTEX.InfoDict 73 0 R /BBox [0 0 283.96 268.75] /Resources << /ProcSet [ /PDF /Text ] /ExtGState << /R7 74 0 R >>/Font << /R8 76 0 R /R12 79 0 R /R10 81 0 R >> >> /Length 1429 /Filter /FlateDecode >> stream xœÍXKo7ïŻàQ:ˆĉ×µE4@ÖVOA…Ü&)Ĵqúĝûŭ†K.ı’c§Ž†ĦċìÌ7?ŽôQMÊÈ_ŭ<§Ğë¨Ŝ}šŜ(—u!.ŸoñŝvbsJAŭ3‘z˙ß'£^M6ı ½²lHRÇÉĞğyk.ĞŞ|&XôßO7“Ñɘ˜H½kï3ô يŜV(ê0‚ şŝoHÎ(BZ)ĉšÖ…]HŸĞ`UfĦşjĞÙU4À#Ÿ şŝ\+ßËD!£·Ġ Ll²Ĥ!äsÁ˘/eZE|)`‰ĜĈ@Ú[EÎé„Ä*f]ŬINCF]İ™y§³);Ó$ät´C…:Ö{¤r)$DžĵN9a÷‘O¤&XÚwTš[ä89qrl3x€ŠÉƒàÄĤ~¤›)yĵÍı†ÀğRs—˘Ġ1ğŽž>Gw§6sà—Bş™ˆqV}ğ­‡°•ĉ‹‡Îärĥ邵ÉôepONAğ!äşCn*͕5‚ÑH‡|ĴLjÈÁAËzœê!·ġĜĠMeqċ#cçyœC£`eR{ú"87SżÄèħ? Yuo+oâ­CyQż›B68ĝaŒs _ š‘MCe9F9ż_|Xâ´vbÉDi%LjE/€2°– H̍Q%ħ—‹30&€sŭSɊREísE‰c§(‚Ö²uÚHúGOŠLÙÒòÜ`ƒ³~W%ĵ¤ÄÀ9u¤’°<ŠO‘:*!ÁN)$Y£n(ÊĞ\xŠËĊ™ñ*1’Dñ€5Šwêó0°ßËĈQf™uÔġЉÑroG–qïĵĥ¸éÈgW€7ċ8ž6¸ûw[œDc—‹ŝ81ÂsŒ ×&ĊHÌá{ŻCRĴĈ3ÖDÀ‰EĈ1N’•Áž9‰:ĜŞ™\ u œş”B˙/˜ëüj’:Ħ0BĠ.!˜`“Ĉ+²–Ğ[œ†ƒsĴyò)=n§3jCËà<“AÈIş‡9bL:ËÚh ÜhÉ(DdD`Ĵä,\EÚ2pa)W.c@â˜E5:Œá’°+WµĊ âĦœ„C@Žp8 ƒ`7ÂĜ¸báY4êMëĊĈĦS#lÀ*ĦTÒÁݧ‡~}żp+n…—eĉéÜ^ób׸­ÙWj;ƒ˜mŜ……O,ĠmĞ|_ADžN,ağüH'0’T§ şŞSèc úĴñÉÊßĦŬĉ/@c³YLTĵ×Q-ߊpá‰6x4Ğ>xŒ’Ád_ċĤ‰Ĵ–'ƒËš'*żŠ¨úq8ŞoöÓĠµ”7îà=ïYTŽĤFCĦÔjœŜlnĥ8²…J›_·÷@̛?ŠÌ£ì›Û^ßow¤ÙâËĈÛŭëi',jXí¤ĞÚŝ¨?@7LʛŸ·`R<ùĉ Im‡0¤ˆ×ßnY¸ĜX2¸a°'?âÉ[FĠŒY”e¸ŽVíÀÔ!‚’‹Ġġv‡kL´=ÜC{X$ŝŜ:™ÒÂ#IÉĜƒib‡JñŒ=Têq‹oƒ&İùĞKï~ï éĝ͟ \wqğŬ9´€3q³ŸÓĥQ °Kù-ŠÀĠ5vsĜż蜕EİS çÓvgPÎ>UĞäž3hx`r& FŬ‚OPĥ‡=vÉa^´˙3ĵ}žÊÀĝlx÷ĵìÖóáùİâ°Ì=φ÷Áï(e´ŭŽä§7;܋‡À9›ü°›ŒI_şğ$? …˙Œî Û/_ííwûé'üŭ ~B| endstream endobj 59 0 obj << /Type /XObject /Subtype /Form /FormType 1 /PTEX.FileName (./figures/ticklogic2.pdf) /PTEX.PageNumber 1 /PTEX.InfoDict 83 0 R /BBox [0 0 283.96 268.75] /Resources << /ProcSet [ /PDF /Text ] /ExtGState << /R7 84 0 R >>/Font << /R8 86 0 R /R12 88 0 R /R10 90 0 R >> >> /Length 1517 /Filter /FlateDecode >> stream xœíXËnc7 Ŭ߯Ò^XġÖĥEt€mœ³(œ63E\`2}ü~ġ¸Òu^ĈĈ7ƒ HDQ‡¤DQ÷³P’„âŸúw·Ÿ.‚¸ŭ2½&Éä}˜˙~ÀüÍdeJ1zñßDâ~˙œ”¸œt4^:Ħ­"İHì'=ŒîÊÈG+mUċ‚Y˙´”ŒJ…HâĥÍ'è+Ò½*:Q~;tŭ?œ„°bH5Ĵ›àžÚÁŞlħĠTSA)›Žü@ġË^ıMä0p`²*I\~(˜ġy›Ÿ ˜=ÖÁ“tZ12"°ŠYGwÓQWj˜‘Iċ“i22èa‡:ÖG„r*¤í”&Ä⁒sÚĥɒ˜5˜HMûnòIÁ–ï‚Q½ĝùJl,éĜŭ+£ÁÁ:Ŭ h²qaA“ 2Ñ(Ô½|5üˆNĈENşdĤJz Z5ŭ÷“Q¤çu÷ùAr°ŞeÀݰĥSt,Áû&½Ÿµf‹1h’£ÎÂâáŞâŭé°ĥYpŸœŻ‚Ñ÷Ĥ3›# s#8™”˜żÉrQñüTH)E/Íèw,ü:³5­ kàbpçB²XTŭ>²ĜchLġ"XdzĠéÖ\€`‘Š<¤h!Y,Şy~"¤JfʃrÌL%uÈ.;@½E'°TGržĈéĤ´„y >HŠyÏu”x”BV´„FĈ8Ì.`ìTéyŒċVĊ›kĠĞ’/Ô^yÒ!òKÒèRÀ(Ü\À.C oí7y#ÏÏjJI‘A)q9ëdeì7 `’i™=ó•ȐhĈ‰ò8 TŠ9,.[ytsÚ Żĵ ,R^j04½ŠÀb ˘œX ´5âÀè·{göchs;[–tŒöyİÍòîjs™ÚBö/˘Eï\;OJteĝR_d+~­!û#•„ Ğ0Sâz‰ħ ú&WD§ÓL*ܙ0÷M}KPÁÑ[zÖŜŠÖrÓÔDçG_Äc'â4ù1‚³nk£f_èiZĞiŬé$5×Oùk *„ï8âäÇ) !İlĤ“„x3Ċ?!ò³-öH$fRùÂ&0r`s׃çucx4µÚڟ'Ê_€Eŭ³Û‹ï§‹+$ 8Ö!ĥkÄ_4p+á…Ç@ĵŸŜŻĥkKÀĦĊĠïkœl iġW–9Dşydú~½!iµ5éġği´ŻĴĜŞ5v}ԟ ë=Ğ_ׄœó´YB`Ğ!ô1`úûµ•}f(%,o:@ĝ˙9máA]f-+óר Ċ{ïC eĠĠzƒ;Hİ ğğğöÏ,ùôïÌj}&(&4¤ó;e ö°SŸök´è8fżú§Kï~cëá¸Ġß3\7q³Ŝ¤^ÂĞëĥ …SòˆoVd.pšùmvLšI ğĞG_Öĵ8ħÔĊşF‹oêkĥMĦTáI=‚YH( ‚ Ĉ+}ï”ĠÇ9o^Bwxñ|5şŭŠ­qd-ïFĝ§_ó?J8Ġ endstream endobj 93 0 obj << /Length 1919 /Filter /FlateDecode >> stream xڍXKÛ8 çWĝèµkùí½M§3ÛYlÛm› ´=hlM"Ĵİítfŝŭ’"ċĜİ ôKEQäLJ8{'pŝÜĵÚm^Ŝ†ıSĝEĤÎîÁ) ?/'‹c?ÉgW9_Üë7W˙ìn>n½(ŠÜßzY–ğ7˙Ŝ\ŜŬ½Gä·ï_ßü½ŭĥûks³Û|ß8â,.³˘pÊfóċ[àT°ö—ĝQ‘;†³q˘8ò3ûjçÓĉ&`ġµ'ˆDĝq9iúiáß7~%"3³ĦY²û˜òIœ×ĝaZòĴLo&ԘjĊRIĝiž’nġŝÔ+°ˆÈÀPñ[/ŽRwwÒR÷k â3‡ëÓ0örTŬ6ÌŬGšĵŭüi+Üğk𕲁Ĵë9W×*-ÇZ—rÔ3~ ’àüšŽzîç á +ĴžTyQDğò dE+Ûn<€À!ܞÖP †éAµ4‚Ğ´ƒê{Ŭî‰R‚2 ë¨Íçԝ˘Wr”€£$ÈÀ8ŠŽêUİôäSŭBUFáü>9ĜJ˘ĴħT°ş!ߓŽk÷ŞTmŻm”O ×H…Ż’%Ş| ÙHjüG34ǗHyĉ]½’Ĥe×÷ŠÓµĠÀB:fĤÏ ™@XÙcE#ŬÒ÷ê|â=Ŝlċ²ï •V(^Ĝ 29 ²EĞgb:nAĊÌU­Şü5Ñï:ƒÏ˘°ĉ.r6wħ°IAŞÄÁ¨"đ "ÊrĦ4ˆı-0oB[BŜ 0tQôh'jP<4·ÂÑtĞ(ĴzŻ[92%s} c÷ŜÀ%Ż4ÀÂĥĊĥ)Ğ΍£-€¤ÔvğdÈŬÛĥàœtĝÁ3 CFqbw *Dİ/’ŒTL‚|&îĠ˘ÏÌ÷£‰•sâ ï1B´Häĵ]aèÉIà{S—’ÌŬwĤL&)÷œÙ„Q QÏ4F4uš)eC ׺1˜Ml!IÒyìÎô1<şáÚ2˜¤–d”1á;+J ĠÔ6ğxQ\úĝ‚3Li–„ú!vBĵĝĈ¤N\yäèĊ1€xV~€ é3Œêè‘ =µÖ6nÊ>F¤ ÀĜ¤œĠŜlá1`£–o UGTÍĞ]Ï),&3é({h)ô‘`=ñ…ÏëQ{³~r‡È2ÀÀ,*H9ħä&3ÀŽ,‚zׂ+IH‹„’5˜‰ pËĊžŸ^¨ò`ŻÛŞË ‡ °/…GlÓĈËÛhĦŽ(|VĦOj<êŸŻ1×),üĝ|¨İ+ĈñD*üH„&L˘xŠğß6Ï5tVÖ8!Î_Zˆv½Ĥ–óDGWż§ÜDŠz M)jYŜÔÓÄ˘Ş­Ñ˘•ÙÄċzzĦ]䨒 £ÍbÜ-4†ĵċÜüd>fòì“ßfŝâŻsXYŸ*µÚ“"SÄgK]˘ċ“Ĥó^Òô@£çœy DÙü% 3Véµj8…Ħ†~oMÏÂB.ú´ĠĴJ À2K…ş¤ĦĴ‡Ž‰öÂ<›_1ĵ¸b˜Oĉ6ĵÄÒt5ĥ™8×ÌŞYĉ0vħĤ$Ĵĉ´AŻ&wb6š5LL²rñï'£ó=³,ğè:`ĝéiê9`óœĞވL7ğÍ˙‰ß,% endstream endobj 67 0 obj << /Type /XObject /Subtype /Form /FormType 1 /PTEX.FileName (./figures/timeline.pdf) /PTEX.PageNumber 1 /PTEX.InfoDict 94 0 R /BBox [0 0 449.58 212.06] /Resources << /ProcSet [ /PDF /Text ] /ExtGState << /R7 95 0 R >>/Font << /R8 97 0 R >> >> /Length 1016 /Filter /FlateDecode >> stream xœÍ—Mo7†ïû+ö(Ìrf8ü8&@a ·Ĉz0rìÔi*ĦH{(úïûŽ´üêƒ!Ҟy‡>Üċ~Ÿ½£ÙÛgù~:M?}LóËߓwÙû”i~™ÈKpĝEŞŜšOQȎrSŽMa˘äR0eÉÚ*=뷉˘'èH£Ş28-Y[eôfŠÙ…ntë˘Oèà2Ñ72 Żç&Ŭc×ħ:P5ޝ•ğÁó6z­XôÚáĥgçıztž›²âıUĞ2ĊŒ꘽Ú˙Fċ*éôk9ŭѤ˜µĈhÒI#š R“6˘Ûġ-˘ou—ċ<Ĵ RÁr§)Ĥ¤Dê1#‚·Ĝ:G¨6€ÖEG˘ßȀ*Ñ"šħߍh#ßCo£×ŠEŻn{v˘ĞG'ş)+˘[µÊĦHƒYêD$ÛC{T’.Dż–ÓÍ1bUd šúâmİŬo}³ıñ<Ş…ԋv8ĴüpLŜ†ǀ@BÎK×â˜>ëš#Ïoc<g+%1  ĝ•Ĉ‡}Uúñfm•žeâÀñİàx|Z”~[’6BÏ1ï`—jˆµċÔÂĦn ;ía-Oµħ7…mMgeÌıl€×ñy˜är~™ZžNóû^аjf„U<à@t‰˜ħ ìiÌóá4=îŜí1ÈĦ|:|ÀXÁK nüwV/̇gDĵß0CĴDbĤxşĊéĤ  ›3[_ŸʈÊîË^ìİ_vÇÏ{PÂ)¤ŬżûğÄQ°——ÈàKŝߑXUÔHíÑu^+.ƒúu„FÑŬçŭccdMğñİ™ŭıż³bÔ1÷Rx÷DIxwHğJH ĴğßOèĤ´ĊÊŝ|˜~Áç?Ô˘îŒ endstream endobj 100 0 obj << /Length 594 /Filter /FlateDecode >> stream xڍTËNÜ0Ŭç+ĵt$âڎóZZP)m R%ÄÂ$žÁj^M< öë{ŭ˜2SQÁfâıÏsÏñ5EDч褎ŜñU¤ÊyŽê5b%ÍP!ÉÊ Ġ-şĊ§żÔĞoq’Ĥ)ĉ$NŠ˘ÄĞïĞӛúüê³7_^½_}Šïê‹hUG?#ġ)b{ġà[U¨é£Û;ŠZp^ JÒŞDO.´GİHIÁlb‡£Ż é>ĜĴ9'eÉPAsÂxċħ â@ì’`ĵl?…“"‡ =´ÑÒ( Ĝ<¸CŠçí§Ŭô eĞĥ§(aİ„/vóË…RzŻbäFyëċÍġùİ?6rŝû­îÚ]’òĥİs^0­Çٛšħïmŭí iôü÷q ĴL żOÖŻT¨Ûêub;ŒTYîQĠ !;¤Oóèj4j†—Cú Û1–0˜›‡ë½âö1ΖCX^toÉŬvğ1€_Çô+ô֖ˆċ4uIpñ<1‹ñîFvŻ•€b%)áXF7?fxžeÏ|—$C‹YmŝìğkÏĤš,²[ĵٌ>v£.ŝ_¸.àÁ 3¢1T ÓŞ”xœ (nl…_~Ël]÷ċ°€˜^ĊVùŬò·ëvĤÙéßA´Ë˜aŭż"1Ÿv`Zô°yAQÏJh³Ŝµy] ÁHùĴĊ‘ïcĊv üŬ­ôċ]Ĝm¤eNÍ=t5Şŭ‡ħŒğ9’Œ‚ 4ĵ&LÁÓö¸€FX endstream endobj 103 0 obj << /Length 1704 /Filter /FlateDecode >> stream xÚuXKsÛ6ûWH͔(™™ROÒqg2MkġääQ°Ċ E2|ÈI}÷J¤D_,`ħğÀ]:ô^ĵû.tżżoï~ŭ¨RO…"ITìmŸ½<Y{‰–" soğ÷žüûƒiÛmĈŜ|ŬŝÉR‘H³T˘TèJ͏ƒé†²~a ?ŸĈj(ƒÇò¸ÑÒ+3”M}Ö%#Ħ£D9]q š.-ä&RĊŝ_'”´Ŭİ´Ż,˜yıÈ•81%EĤ$‹}Ŝ¨Ì7İ*[ÁŭRúm×ĵtĉĜóngzğÇòáDúôùĤ³ĵ¨›î~òGĞXäQż;èĈşfkQĜ1·›8lQšËŭ>_*Ȅ_ŠÚQ˘ŭ_ğgÓt<³-N„Ê$c[·ħÈs=q} ıéX3˜H HŜùö’4*Œg—Ĝĥ¸½%’Bİ·oQx‹Ĝ™Öŝv“E~gä<^Ñu˜ meÉ! µHeêü³jÓĥUYPš`̔öMÎW‘ok³Ğ,‡ƒ=2uh˜R4G˘FqˇŻċpàck <=0½ùî\C†ŝûĝpÏLPVċĥ_lz²¤×JeĈšuSħĊċn’·+£L¤áÙ§Çħ/WŻr¨Èlbz=”|½=ó˚oĈv$ryïÈˋ}ù%”ÚvĥF遉ĤċÌ dš )ċÒŜK iûġ3pE ż#W4À{xÜFúŬL—`ÂIÏÄŝŒĠž×ĴÁş4°#Bü¨ħeĵéQ:ËüÖ Z´9Аï˙XëĜ\ŝOÙ3eoû˘+ÄŜ9n[ĵrB/­çAÊR§jŠRħ‰%à ¸Y=MôSiXp fà]xaŞÄXûï •aAá‰ħàÍà(ġ<•û‘êöWˆ”)pŬÙ£Ħ0˘ä @ğᗯaò"ĦsÍċƒ‹~èĈjÌm›çĞóçħŞxuFı /Ŭš^5”îlDë!Çc=S€ĉä8 òƒµĥw(j‡–´£8VéżQ;˘ġÜĜóEÀŬ28 Ĵ˜Ÿ­oċM­ìi'ŝäÈ@G’_ §HQ\@V@ê6XRQä— ĵŒ° Ĝ[²Şç9žŬètï.ʞ·”„¸°¨ĝ‡“ë-Ğy- ïP[Ô+Pö?à€ğ=ˆµ %€É'Ħ]i%Ò4ĉċĉŞœxîÏnœÔñcıVŜWÓ ô NY\µcÇ ‡ D … ~‡‰™üKğĵÏÀšŽ'×p3€fÂ+…W˒rB+^%ĆpİD2^+Œ†+˘tŞm102ħ>¸Dš÷,  °WX0M¤ó.2×ŜEâd&Š^4R×{9÷Eˆ6Hyàżô2ŝòt ,Ed(lßS&êȇÎεèRœÚ†fƒ—fj†¸›9•ò s+˘%qĊñ­Hœìt }ÙSġÀŽŜóÔ µÙÛ ğ<ÜUδ÷ĠYÎ_ <ŭeˆ‡›ŸH1 ó7;oÖM(ğÙbrÂc½ß¨ïïV{—7ĠÔĵ[=­uX‘&éÔ¤Ĝ“‹z÷a{÷ŭÛXèIOĤħP™ô”J„νâx÷ô5ôöpİ”Ì{%Σ§Eô[ywó—Ñâ^´NI“Ì]VŻp9|bÜ6lĝJÎ û+;-8^͍üpžGAµ‹Lê;m`ċÊ݆·—#‘“•â€CkëJž‘²·ÈU—I-¸ô'…]½YíMM%&—™ ċMċı8bBċZ~áìùw¤ħ ^À÷”}ĈêċDrçB²Ôd˜`ïŞĴšú{Nǐ2÷‚Ğ[ÉêÊûŒ8÷2i‚$LßPqtİ˙îùl™ÉóŒw]ädşÚíêg—NÎÓ˙o+…Ĥ†çÂ8™j\Ñ$ >"p{ħa òî•Ëž•̝ùĝĵž†f’ îxxġM¤qL1ġYa„Dëħò~éŞĞö‚2ı‘+ş]Y›îç•ĜâC8…OÔséñ†ùuñŒEŠRŬjö$|w%Q.ƒ‚ΜËdĵ`ÈùíˆL endstream endobj 106 0 obj << /Length 2226 /Filter /FlateDecode >> stream xÚĠËr6òîŻ‘Ş²€oNĥÊ;›dÚLfÇJċ03H˘,TĝPĝ°ÇûġÛ/P˘M;3[ì @l4úŬMµ¸]¨ĊO__|÷c-r?O‚dħŜ/tĴüTĊ‹4Šü8‹ëŬâ£÷öŸWï×?|XÂ0ôBıJÓÌğY/³ğú°Ì"o}ŭî'܍ĵ+>ôËo˙ÂŬġġêĉĉW|hıÒŜŻKí½[~^˙|ñúâÏ t¨…>ğĈ<_lĞ‹ŸĠb›?/”ĉÙ➎V‹0 ŭT‡ċâĉâßJ£&Šç_9?Ê´·ÑáûîÇsFħë6˜MU™zǏ+m]koíŬ2Èĵ˘ĉ‘ñ û[›öáÑ-ÒVrÏJ,~×ÇÓİĵžŽùŞĞ—Aê ’³Y¨–7š½ˆäŭ5OŽmCĥE×ê(7e)›ĤÄûĤ•3 9÷0s<–ÎĜĤ~ñuB,ż.a’{[Ó/ĵ1ÊANÁôyĉ•E}ÛxNÏÊSÏò—ßnßò´²ÛĥYu}qĵ\" „LÏ[ĥA‚²…G¨—]S½…UƒĞš‘ó%ˆ}…Ô‚´"? ĵGûy,҂‹ßtÌ+KRè‹ĥ6%CĥŽŸ(˜?şO*Ö`?Qy0U˙(öf({ĉéŬ2N@ƒŬŠh´È·óñ Ӟáş:>1}HLĤ,ŜàÇSFÇ‰Ż‚pÊè8÷ŽDsÓuvcKÛ#íĵCŠ’(Ż#)³nk÷À·Ŝè'üÈIœVô08 z(\*&\½³ğb‡œJ½ÎÖۂ§„&#J\!J ÛĤä•uÛĤµGáܓÁ˘ĊâN[°ÜY£#IjJLeĜ E…CV6”F’ƒ~ž÷ğEE`­6À<š?ÒT$&zċkyLȚ£ĉĦîĉ(ržy £áa¤Dgz˘axÏHµa'ϓÂgZÁx°DëAšĦÜñ\ü‹l Ÿ”NVs4n-°/eEGzUÓġânNn¤óYH7§ |Ġ[ÓÚuLƒuš u§GÓÂ,ueœ²êŒ ô²Cmxw”wÁXAwq·`ĥc”§ĴÉ0Ù65ĵ1şZÇI"¤,˜fùyM?F @Ӊל‹ÎÁHà8q}ë–<³|E~UžrmB€¸YŒÄyŽÄ×ĊVè†ġĵ-àŽ‘ħú#cèxÇ[ŒżieI cÇ~£ĜZäN!ß `ż·<Ŭî)WÏól5?ƒ—“X—Ì—7ÏĝÀ0<߀V%Ó°Ê|[ĈÚ;IĦ‚#ŠUêĞ4~1 ñPëRJ9Ĥ÷‰Ĥ9 Jü,‘”fƒ·Äù÷”†œaú*$$E“) h:tt~6ġ£| ¸Ÿ”RrHŸ‚XċîÌßF T5ĉPÉŝ0 }ċŻñö¸¨èÛÙİĜÏòä5hˆT*­Ÿ6Í3?ˆé+‡ ñvĥM–ìş%"À´-[ /1³˜‘1dT@ñkÈ8{îƒËŒ Îá¨Yßυ²Çd}Ë­”ÑËm½CÇÈQÄÙÎgyĴ5½áD˜Zh†D#ç éÔ=]!Ž”%yÄt̘ZY²gÏÔYā…ĝbrŒİäR0r˜RËŜK9ëĵí7E3܅èLSqÛi>˙ÁyT œ :Ħ†~ĥwħ‹_Ík ÚÔpS Š‘XcLù8çä=rZ AŠKÉOœJßÛeúg˘÷N!­cÀ31 -,TÊÇĤž|ċSäz!,qPûú“ŝá'‚Ż"p^Ż~U âo?ŻA‚„Ÿ ˙áçŜîÂÏ7³ß…ŸW Á…ŸgĝŸ=Ëŝ|`*L?MFÍĥùKèçáXK~f;‚„ڏÂ|&°Q0i#yD†XâZ2dܝ. ´ëɋâŠO{ŝ¤-ö”`# =,|aĝôBÁKİ&Ÿ¤°3t#%FIFdXA ŝ&l&ŭĦ˘›ĊS‘ĞGèàhx u›le\ž4X¨L+<'Ÿ3<ñ iB?8S˜Y‰ŬħsçğÎÄĠQ˜ŻùÂ'ßÊSî¸ĉÑáÔ*Ş\£óu>äÚPO‹)òS¸˜ùĞî†s­_ŬâġGµĵ‰H:´ÔWq J‚ '$"qOÖ.DğŽwQÑptìçĥß<- ‘)wËj ÊNòK]0j0äá¤XaQaÚòŠ´vK3Ô6Ç5ë`š<ÒnD‹ŭG‹r˘mĴäp²ZTÓÍ`Q*ˆE?q{ǃé ÒßĜğáV ž8QÁu€¸/BĊ½:°°Ĝqš³ckݘ)·&`kÛ[SÎvìèa˜(èŒĴ=Ô—ž0֍ÎZW”!iin¸³]ßÚÍ |Ĥ„ç ‚€;kĉÈ!šLÔú(÷ÈxíuÍ@q нQQ“ ˆÌğ’ÖÈhÏJ܀ĉĈÙ%ĝԝm›Ú}1G ·[‹ %ÓÒ+ÈġJ˜ê°ÑÁ\TÏÉ`3i‡¨™öRC¤{§~\œLñ!€’ì=*4mËħƒŬí 9qoš§È ¸ğˆDÜî ;tD!rĝYŜ̲;ÒÌîHı>%‚Ĉĉ‡`¨Ŭ: ´‡$ä|¨íŸ…Yèġ˘zğJƒV{9K ĥö”¨NĤùi¤Dn¸u²/ꃄ]b@·m-dÑh~¸<ĥÍmk*jq§œ ‹fğˆïŜ½#MsMrœ \„R›t²eÊaxoŝX²u#|KTŒ•8ŬJ<ŒœID`eÁ ËŬòÙÖá\”˜jçĝżċ,=QÍ1ˆ@ èLÉCH­ ¤£{t29ıĜ> stream xÚXKsÛ6çWèHÍÄ >Ġ›ħ;îÔӌ£œÒL&!‰5EŞiÇ˙ûE9r.=ĜX,€}~X,-ĥ‹hñûğHĈëwnTħPQ˜ç*[Ĵ7‹Ġ*,WÙ"Oâ0Ôb]/W;}Œ]^$E¤Ëoë?ĝTeİhq‘ÂAóËĦm*=4}LJ>Ù~kġâ^{˒÷ŜvË$@üFWf’§a’ĉJdgEXĴx{Ĉˋ8VYpĠÓÉ'üg€Tês,˘\ĴÂUr â°L2–°Ŝ5­*‚jİŠ|[˘~Xĉ×ĈUĥyX^À2ñe˙°3L\~şN²Rw_>ß^1ŻmĴĥ/Ë2 Â%¸ƒfÙ5÷–ô ,˃L56>Zq21U%X[ƒqyèŽèĥeNĠï÷¸eìĤ ûıvĵ“LE–·&͒ĵDòC@>zğ÷zž`ıѲµsƒî*‘²7§µ;gpż‡²UP7GqbĴ8ÀÌŞĠÎÇŜYÎcá0p*FÀxżšn+Lt(c‡˜£iLm·#X°'Ž^Äd=ž%KO˜RBaï>x —\àb1„EZkÔħeàPšdAßµ/HùQ™#§¨7NñÙ É î×`Çjè-‰-9@²„fĝ`Ç[5‰µfĞm19ĉ½Ù÷ˆDDŝ^wzköGœL×$›ôpráò€’‡èƒÎ·ëÇĥö=`ĉFk^K{•!à˜óÊğ_šœgA ÊGËùÎ%rIžú”6¤ÌSRa™À£ìÏĉwé=êV|żqEĥèÖġÌà :×<´˘.í9kYE’@iƒXħŽİ>'‚[ÈÒĞ@Goàš<£>Q ÊÌWh%úÚÚ^^xÒJöÏWç”O àSȏ³? !8R‹†JRpsÁGž(І ÚÓıvZĜ)üV5·— OB6|àîÓmȜËsáô·2ç·§PeħĝbR`Tşħ€ÂŽFvj*r‡Žö^„aâŽ^ Ô!q’<1xûÒŜf´šjlµ=WšŭĦî“ö7²d_“Â_ôéíBß,ö…ç5CĈ8žbàúéí¨­–WIñĊBŞX›-§Ñ3A}lşwd1›–Eì¸D(p÷Ó÷ÂÁr5ZŜ6ğ‹8ġ>ÁNŒ4UU\3tv˘† üġ"…í­yòÀŝm(¸x[ÓĞxŞ;'xĵÇĴv:?J*ĜĈ376ƒĤûLç9ġHVR&L‰H~DÄgl$iІ£™GVdJTs.ì/PË]Aäñœ ÙP:ŜóiÑ99sxĥ˜:EŸË ––UšòŽ<9- ĝM "ñì˜Á–3ĠʔP„]ƒĝĦŠy!PTÙO°ë$ 6BÁ{ÏyŜ5^=GhçĊÜPïÊħw„ë‚ı†2€zptPVİEYu Ĉq’ÓÜĞA†!cû‹„5Üġvĝ{%è•Bž¨°dâŸ5•(†ĴĞ$]ê[È:·F°Z›†òĈ_Ş˘İTñ„˜È×´HI ?Ü@W~| T² (‹ĵ%߯ïï˙ş˙üŭòŝúûÍċúòO<5}żĝñôEıbNܚċP• §)’;€”àÄ_= §r€)Dû[ äsC-x‰İq¤)Ï$ùQ“×]‘nŭà£nj şŠ‚/ÜUÎúĝ£ıšÁg”ç܃'GŝĦq<Û=ŒÓŒûA¤~Bp.n俆 d³`O2=n–%ôö•IÇÇݏÓô!2Ïlm5=ۏŜ’F,wa‚§”Ä;âëkŻħ9[îqÀ*Ş&Ô MáDŝÁÀŸYkŽùSkċôŜ0Kb·£/ƒ§Ĉ‹Óç!Ÿ‡IRüOÈÇQĉÑ$%|ˆšk†oˆ<Œ@5ö_Ğ´à£÷”Ŭšß~nĠ²,,WùdŞ4AxVïŒċ︄û˜Ì>˘Y2(ÎàE‚—bûÂ3ŝŝclPyu'9ü—gR–"}òk0¨Y.áħm­Ñġ 3Gù ’‹ž¤öˆésNuĜÙ ³3F–Ásĝ™7VĜĉFÔÔÁußcsÍĴÓ9³Xà‘c, |pLǔ4}[YúĝÇ%ŝñ!B|żÙœœ"žV|SËÓ_`ââdÓġúŬ=ÄÓ endstream endobj 113 0 obj << /Length 2688 /Filter /FlateDecode >> stream xÚĊZ[sÛ¸~÷ŻàS‡šY!č³Ó‡Ô›Ŭzg½qïô!›é4-³•D…¤œM}ż€”(ъeş/ „ËÁıàEÁ,ˆ‚Ÿ.ŝv{ñâGa‚”ħˆƒÛ‡€ëˆ%‘˜6:¸½Ŝ‡—usûúíd* ›L“Ä„Żnn~ış|512ĵ½zóĞ›ĵy;&|óÓÛW×4 ÂĞ_ħñÇ ç"|5Ixùzòáöç‹×·/8pˆu&i䋋÷˘à“?“İ >ً@*ÉNçÁğ‹\DB’€+&U,”D1"u”`z22:|W´ëáâöq–jm÷EÁTÄL%˘ßÁ¸ßsûX€ŞD‡ŬlğyµlÚz·Uí ms“`q)`½ÎrbÏ#vò(ÌVĞy™gmY-Ŭ@ı,Û2›—˙-àakÏÌġoï.]w^ŜĠYŭÙŭhëj=ëàıOžÍç~ĥò`&–@GħMêwI0v3íş^ú!:qœz[ħ’˜Eš$gııÚg™0q·äċË0ì\_V›:-èC¨*Óï!žĈ^ğßÀ‡Q‡·6DÄC?Ó+ d)i2d×ĥ€I˜×E֒Ej ! }Ï{ZSŬMĤZ‡˙.òĥ[ç%I³ŸËNQè§Uê 4Ĉ•-Ŭöşhë²x˘MĊ˜LäïW³uíwHÀƒ‡Ş^ĜO:œ­›ÊìI'˙ÍĦ4öİĵ/ÜŞĵZ,Ȩ×KZ`µB ›ïŬÊĤgŬ:ÄVuÛ°çŬAáĞOt žyHo;Ç0PÄX0£x MÊDä­ü„NĴ£,ài¸ĥŭĠ@ż†z%9à˜^[A×áKża$K{E˙Şc(uá÷HGŜ—mŸ˘YŬšr2MÓ2$mµ½(ÖŬ⿌Y°dRöààmtÖĥÙ6ß*4‹xÒmùnE›Ŝ:sè"µW’@ß;U†­ÜÁ§ÇîğOVĢD$ >Ù&+ĥdĊ–,´O#daˆW`>Ĉ ‚~(&`S€?°žċG81 MzNÖĊCQËĵp·uô¸lÉQì˜pĈ7[<$ %·6­Ċ’ÜKëŽĴFNÒP8ѳr‘áz; À<ö8§÷‡<ŭŸ9ñô'sbÔïi•0ĊĊ)~ÏzıĦ5kĞ4À>NCßäŞZàÚsşíÜĠk[]ëĤuĞîĴ—.ÜŬëĊ½›ÈZżĵê–VÀ÷è&*lÖwMñqŬóȞgƒğ'Ğ 7VÔuµ,޵ğ  ŠJ UâÊó8ËóbĠ6‡dK^=Ñ_£ċ˘ß„{kÄ?¤â,i³ŽşpDĴêŠĝó„ğôŜMŬÑïϞÄ.b“j qMŻċcVČI¨s;ˆFPÔ>*cƒ.à1Š<–Ĉ]é…òúlħšŬk€ż$G­m4f#Şr9ss.jŬ†8ÔwèıĈí CÚu\= Í)û‚ä&P:ƒï!‹ħ˘}ŜèŽħct z`ħñ9x¨4aq¤Îd†egŒ–p„ĈžĊâd#q–ĉ,6$^lŒù³AÈ@‰éj}X³°°ğ’KÛ.÷/c ŝÊHh µAâĝ@ǜèHè(èÈñ@]= tĈ^DÑ֝vTĝ˘™R}LôžW~pŸ>˜7U­˜çİÖİ Ĵf ĜBš%" P†İÎ+=ÀZÁ‹Ċê<´O†añzèqt@ݘ)í-âRáoh%=^ّËMç–Ü‘ÇîAS2Ùz^jaĦĥĥżĥŭĠ¸Ĉ%ħú‚ĈqÁ˘^כĝ#lÖ=Z3½-/'*d4ŸĈĴ&'zĜe£°l”ϲQËFs$wg"Ġû.i"ÂɨóÌ.ĈéĉIzĴ3ˆŒĵeĤ<1á÷ì .—ÜéYötŒn0Ĥ]Ÿ ٵܳkàƒhI+o×/FĴK³DŒĜ–Z@"zYQâQ“ 9§·°ŭĠ¸_DÙÛ¤4…vf[¨1twšÔ.²WÚÖĥÍ^İĥҘáAħħú´#ŠYšžİ'8 EŸÉŝZİHĈeo$­mÂFÇVĝEÜ5x â"ġ‡É4I5É/6ÖSšA֏kŸ$¨(àÄż‘@$ÄİóÌätÏ_ÛĜÄb˙$Bñ#‚gĵ „9 âKï‚c@|ñ]pœÈŬgßîw$`O Q C"Ĵ҉/Yĵµ‰ßl^ĵÜż:tÌLԛŽ+Ž ¤Ĉ“–Jħ)„ĊcI a°İq÷>L­ŝÓ§qÙà"/)EûA_§ÀĤAܸ ÷ ĤA†ıX6kûֆ…úç7é£Ö^0s_9$÷sYµ~ažƒ÷úÎĉóÏnÔ×X°a½Ì J&êb>Ĵİĝè´xš`q6È--4ô(ŭÒe6ìHG=şĞÇĴé2ŬNĴĞ}& \.²[Ĉš … 6€Sq²)f _Ìş¤ä½ä}òy|ċw˙°­ì„$;ú¸ô˙|ɔRIMérHóJE~Ž/cQ·/cяO%ħ“z9ɌƒÒbp pü¸öCcbM·Ê£L·dO‘]²…~ÄñY]Y^ÓŞ÷ä iC^4ĠŒeMSΖ6YCğ+÷uĜöU=Z·Ñ,* Al.íĥ37Vq…a´ËÊYêL/7Óf˙™x=&öĴE§†Şı˙AtĜĊŬìl^Ŭes{§h3ZÇŠRñ-ku—oŻ˙ġÏ7oùሤÔT¤£›!{\Y‰ŞŽ }ù°è†ŬğᇺZ¸…–~jì|K ϕ›²N%öN…–ô8šÍÜǙı­6Gĝe(îî£6â6wżH­ß> vQ´N ïÔȄÀž+Ŝ—"Ü‘a‰Òŭƒ üıħí˜ĝS\ÒâÈG”é”+òÀ/ĉ}DıP(ñĦPnû•‹¨6‘Ñ)o/h—âkĞrTܤhl8GN=ÛĴé'Ŭ”C’´ÄꊴynZìó8ÏH:IñÖíĤ\ñƒ$9”H ê‰ĉaAxş‚àċ²ùşĜçKŒS~ïošáEoċœMċğèY-Ä{‘PħoQħ@HÍxÊ·b …Ëj€& X }ŻW+eTMï0míßu8W üÍß>ĥúŞĥûtÛ}.›SĤèÊÙóŒ PŠóñj4L~Ûż>œäNµ€P›? + ŻŽ1è YŒ;pİ\ÚKš~"éĈm¤Tĝeó !½ér¤‘uCaÂ>à™dQÂwŬŞĴ×ǔ*¤dzS4/—M[d÷.&°žxÎ=kĝ*ŬÓżzGĠ† ´¸?nŬ–ó²u%<óĈ’/”ÑPÏŬ;Ĉ DÏş€àŭNˆT;[!3aQ,˙ÌKÛ°Ŭ0<ë*V}5kèo䞿ħÉĈ>+ lvÊRì3‰˘™1ŝĦÂÍnéža endstream endobj 117 0 obj << /Length 2713 /Filter /FlateDecode >> stream xÚÍZ_sÛ6÷§#51ĝO 7w3>Ÿ›şS×>Ç7÷v:ŒD[œÈ”JRvóíowÒ¤DIQu“ôÀbħĝağ=ŽĜèŭÙ?ïÏŜ~'ìÈĊÎ3ş9[§G‰Rħĥzt?ŭ]|~{y7žH)#'Ib£óÛÛŻ.ÎÇVF÷W7?ùÎÛğħ°ÑÍûğók$¨èê'˜ĝŬ˜sc×Ċċĝ×ûÎ.ïÏ~? ñ×%Yœ87š>ŭü+͠³£ù4’JĈ Çy‹Ñ‡³Ÿħ° ÖŬNw7\ñĜX9J˜‰ıp~;—¤OĞEÖlGĵO”ÒÑùtšUU^<úŽzžù-¤Ğ1V‹|šÖù²˜ĵä³1]>=ážÖö-KÚY#J‡&NX22°SĤĝ²‘ŒMÂŝz4³° ħ_G4ŸmsZŝZ~ċĦ Ç0sŠJ.@ŽÓtAÚ´IÌ˘{9p;­wKq4‚˜”]Œ1k!aG,6‰{‹`xûW´ê€ ĝ…1éÇô™‰XrÓ šÂU“Ñ’Ê'(•2ZSYP™S9Ŝ”ÚugV ÑËxÂy‚cħŞ}5OĴċà-|µÄJFŭWÚöÙDD|1‹kaµôĠ +eĉVǂé[Ö)یy;`Âq':ĉò´Ó>–…7z°•DVN3ñBƒ=*úƒJ­ÖRRY„=wـYrĤŬ4ĜJ“D·PšèŠÚżQyA”%µŸš2OÀ0ê`ԁ%-Òµ} Ħiu˙·Ŭz52ĉɉ×荚ƒI9MŠcYlğ °k’ÁUÖ*ĥ,œ.ĝ;Ħ„Ż8T;)],̉Š<šíĦëNP#£Dl5÷›xĜ-ĥHÀäœ&ġħ,ĥÏÁk ûgà̑Šç:–Zĥ…£yxG³ `ĵ•rÀËĈNñքŞÂĈŠİĉŝ}À`pp…I{›+2,hdÈÚC{MíĠ€FŜĤëvXÄ{6Ĝ%­9úÇÀúIĴµì¸%hOŽ,’ß™C! ,¨Ì‰îGĤTÖÍ, —ƒĉÊ&òUNÍÀħXƒ-î[{lġì:FÀÑ<ĵ À‚sƒ7Rìl€1h‘VœlĞVHx>´.ż$Œ¤TT~ځ}/JşîĦŠOš)ñS3ÙxO)#UwœVI””Ú•ûêĴûs‡­‡kvÚu?žÇN“Ş…g²tâbeOìñG=À½ †Ï"A£J?üâ×òÁ×aCe=Ĵҏù4Fš²2zS/ İ6nöNQġóe…WżS_=-Ë0ŞË4œ“ü Ĥ×x9 IŻÌÏ/òß×Yxˆ$x(žà3\ÁŜü<(Éİb(&„†0VrÜ0Lt4-³´ıìŭë€[µ`CRîv쁷A˘DxÓ%€6}ÊfžV-×ċ4 Ͱ\×Ğuíż[MVŝ 4<š˜Ÿ:Óò"Ìr4+ٜġàûfi6“¸&3ùRĊCÇtäĝ)P•ê Ğ íUĥ0†ÎĈÌòŞÎÁzòt‘VUKÀƒ^u‚Cĉ³P•ŝ£Zûû1Ëт7+– ™-`FJĝ­PżHŸe^êĴ˜…”(HC˜S5ς@„ÖgOžŜ}ZĜ.ŭ ÉİZ/וƒJE+֘?.ô˘ ġİéB!³ŠM³*Ŝ™K†ûHĈöˆGÂp<§ÁìJ#U0żĝ(Ĥ ²Ĥò†Êu‡²Ú˘Üvĉ–°ÁSLY;4ëÊ6QÚȎ>€O‘ô$ô$§D!´WÛ·OÂû—½::8j£wÁ‹Ħ"ËÇ Ñğ÷Û9°˜½úQ„ Dž„ chÂvNíŠÊ9Q.¨½¤vAíšÚ7-‡†ÒċY÷\ëfĈR6G …-Ú$ÙP–Îh U j…* sĦ (H\Ê`Ü"xg9>t4‚ıXC°>ÈÎñ Ĝĝı…ÄU‡ÒĈË0y`Îı<euß ~=À&:€‘”+ôŽƒ}ĴEC›ĵ2Ê *ɢФ·.şj)Çm?T<í*ĉK ˘=TÔÉPk éBċ’úÙÑôì ß²3|ËÎ-;‡í „F´3€eġÍÌÌkR M‚!“™1dfè' hWTΉrIígjgÔ.¨Ĵ‰rÓòi(]Î{ż4êëĉBˆ’Êí€ۂٜ–òÔ×·9Jw£h!E?mAıÀ}Q÷Ĥ·!˘ÊK*Ÿİ¤'(*JQšĈ_u(]ž‡œ”àîŻè¤Í]Ĝ\·6‡w()™pżlè½ĦrlK¤.Ċ[!r÷PîĥBœÁ!ö^4̙ofˆTÏÑBB‘!"( ú(µçT^%£vĠ–ô£*´İ̈rÓò$ eĠ£ì—0ħT9pAp¨œÛ.ĥ\Ŝ>ñŽ}êíVûœ›Ó0LĦ Finż•}âÎtßDĥó&²7‘íĵ‰,ŞQú`żĦWÔNİ|l{ŭ+ɆwS—˙~8Ùê˙ġJú“pH¤mú<̽+ŸAh~f™}I&RÇ\óîUĥ!WĦ%ĤŝŸ0 “z()ÇàZŻKÔŻĥÑsşXyó/ˆŬKĤ!-³.žÒUˆ°CîċUš]Q-^Z$GGµ›Ż+Ŭˆ+Pa£ğnòEtò­ô€B %Ħ|†ÒŞpßĈd֋ü!ƒK`¸íd‘{nÑ26²EN*‹t(œŞĠ­é—˘, 6¸Q°Nëü­"“X8Ù[Ċ§y&•àÛŞëuÎaċnêÎRêö`:X$½Ì)O -ʆe³x> stream xÚí˒ĥñ>_ĦÊ%TĊĊ›@RIĠdj½YWìlĤâƒíWâŒXĦÄħHy²Ÿ~€)qZùàŞäB  ôğ[³û™˜½ğĝëíĊ›Ż•Ÿ…48ċf·w3iEš ;ˌI­·³Ûċì‡äúoW7·o?Î/µÖ‰Iç—Yĉ“Ğ››żżżš{Ü˙OŜ|œ+Ÿ|x÷ñê[˜äŭw°ñëı”*ıšĞ,ı~;˙éö›‹··?_H¸ƒ˜ÉÁ™†0[Ĵ/~ĝI̖0ùÍL¤:ĝÙ#-]Ï´Ñi&qc5ûçĊ?.Ä!“ï.•*;ġfS,ÚbùĠüÒÀÊ;h­HÊZ’UŜp'çĉħ\ĥ+^Ò<Ì/áúĊb~)“òG!Í\&–qËf„ MM@³ÊÛ1BèÎD‚ ô!ä“zÛ"Ħàq—RĤÁFN|˘ÉbQŻ‹†)ÎxGħdÀŞĜ0íËĥ[S´Ğš-雯µ‘ h*EGBbQGÚ= oHñö”ñ E^UĊ2íŸ]•ş`f—J+ïxûŸ|ŭPHé?âmr½-òĥÜÜ3<ßpğÛ½rDŝĴħX™,µ2›9çÒ`Üsb%f:Ġ>‹B5FĦŸı ͳ’IÄ1Š(ˆŻAq Ü{$&˜ÔHwÎ=LÈR'ÌıÔ ‚Z“† ŸGöÉkœŒƒTü@pej@pġİÍ|´U L"İéğĦoKßôŬ G›ÁŜm„“H38ÖëÔx߉ŝBè)R ŭ"@i߈r¨LJĈ™nñŸ',dGyĦŬy”?Çċ]He”7.uJƒ °m˘ĠHOèï¨˙0ACċáĊCЏHÙ4dŭšżLˆâB·Ù)‰Í$|+baIŭ†+ú^Ó·Ĥï^D$‰H‡!{œbŠoRd Kf˙ +À#öx„¸-‚Î(0\°TĵĊŸžáĥİ3á,(ĵñgW xÙp}ù=zı=•‡Œƒ,ÊĥF NSµf6‚7J 0G*›ĵ+6Ċ6AҙEi’| £W²9– tÜnÇ8oW *˜ß˘áĠÍ{Eµ[˘SÇÑÀaGH[s›7˙ŽlèN–ôĝ0ö@pٍöa䣅ŠëLżŽ"Ÿ­‰ÊDÒD7ĵ ˆñ‘§îzˆƒŠ~8Áè{mìuèy}“2ñ”SOÙ|Ÿz3×*ÂÍĝ˜ò—Żç>żŽŜ'kÜɛMĈCÖĤ^û}hsŬÑîa‘à‘²aX¤È’½à%ˆ›.0$^AP $ŭ7ƒˆ3h/ş ïšbË f€™ÀÓyÄİSoˆÀ=—*cÇlĴï:–pèf†‚„Cĵ!3ĥ†›lƒ.f]Œ3• cNÇ;Ŭïĥ9]"¤*Ò§# w :;ĊĈ°6’†‡Ê™Ĵ€ìfK†Ĝúz Ç,W…kˆNÚ.…ŽÂ7iûA<ĠŬ_•´°ˆàÛĥ÷ñ‘ßŬT¤Jġn¤Ĝ|rM†\“!×Ô ú.èÛ c™ß0SiĤìs‚=ä{ĤELà~?ĝ+‘p"ĴGQ·s‹ú³Û"oœżäĠ˜`gSˆÏşÓÛ-/zA}”Iċ>Ш7ĠçħQYŒTqR”ŒıqĉdQùu¸<şc!ËÉtgAHUBSè&ZTçÏ%ĤAŸÚÛ-Úpğț"D›°êÉ-wŒĴüq;wHa&•ë¸Ĥƒôk{íl˘â NŽġŜ™¸É~?v‡o‹ŽĤÎûۘŭy5ġMÜÁÓQœ`˘*xaıı?¨3@^&@iŸ+3˜Xfĝ…›á+ˆ^Şè½qĴNϗ´7İówF¤sİ’úœHŭ5(^ŒÔϸGİŸI "(8/‘•瞌âéDûݳî À !€•ÒžGĝ“q<]`Ż˘-˙_`8*0d>ù×\*Lh {JYAŸÊójH'£`ëŬÒ8 mf˘n½™à¤ƒ&”a„ ôÔ÷i×z.8:É()IĈdĈĈ âáà" ÌMĜTÜ@ÀKb~ Ž‚w]gĤˆŸd´úêƒXzĴı§P‚v„.³Ì =Œ£‚G•£Ñŭ”D+ è t3%ú5ož 9Ħ0çÉÀÉ8&R6‹† „@‡4 ²Ï‡d†T?VpM*iDúž‚ıĜEp÷;úN™ZÈ;mŻ0Ù f„A:çòDĉšú5}7ƒoA³ ê·=$tċˆƒ,Îİ# Ğ:¤µ}>7ÍjÈİÔKe³—X}2Ž }ÇìÜ}²Ôëçġ]½¤î€Şg1Ĥ Ž5wßÔÜ,¸‰KZn Tn*—€ĝ‘mè²è8*ıYp“ó\;šĞı~zŻÉĤhÎ4g7š6;nâ’Ċ`%ىÌ[<Á’!Ÿé˘3ĉy#fو™I™V8á_a)ük,DÓ4ôœÈ —pòĴÈö(^Žlżü{E8‘Ó5h;ñCµ :•ÚOĠ;ûbìdÓ+œZd}qU8Îe)6}Jƒİ›T]AVĜUdħ. ÂÊ'˜\lÜòD‡2&˰·¨ŠuħÏcÒBJÚÜÛ-Ġ>`1˜x|‹żWSı%ç¨@AS™—ÒĜ}áĵ/tC–ĥuq.Ĵë¤Ê·÷œó >´iÊOUœ/—q]%îvGÚà¨,;ñJ¤„Ñ‘FûAÁ’ñXÁ@xW3½Ì ÜÚîkVġZò’Oü—´0qżŠ/À•ĝPlé? šÂn *b0ìÉH‹¸ı/™“É?É\È8\í .”•&‰6"–ĴtW˜ÈúÙrğÌÂcŻòĉûNŜ_¨ á@ż‘+ àC‹ĥ/nPħż„Î&^…‹ düqĜ˙ÁĊu*›)pv.܍ŝuQÄröqù=ŝÂġ‰mWkħWR·2ŞcĒÈÁšÔ˙1l*M_}|%5”\‘OàE-¨ÔÒä÷ĊQU#m¸ċĈ_‚ŞûF?YqU`•żNñ^ ŸfZŭ†‹÷İŞžÌĞy`'Ŭ@ç{ì”s 0ĴƒÁê™ò> stream xÚ­ZY“ĥ~Ÿ_Ħä‰S•ÁâèTRµ™ìÚëò1ٝ$ĥ¸gÄZ‰’IjÇë_Ÿ> êâ ŭ46Ŭ rr?‘“Ż/ŝq{ñꭎ“\ä^ûÉíŬ$ÏEÌŬ$X+\t“ÛÙä§ìú›×7·oŜ_^c2+.ŻBˆÙ뛛ïŜ]żŒ&ğ}÷ÜxóŝRÇìÇŻßżŝ+löîĝíR*{M×o.ıŭöâÍíĊŻ DµRАç“éòâ§_ädmßN¤0yœ›5›ĥd˘›'˘ĝxyS]á|?cBġ![–Ŭ|M!›µ\Ó­Ò³bŬġ\ŞĊ™\%”ıKĤX3ëz;“gĠĴ›ƒA”ô|ċĴÌ:òËÄ]pĊĤ-îËÔÛV›ĊŒ[XÔVpŬ}Y—ÍöÓġĉReM'J•İĜ]‘œòHÂfEíÓ²mĞúŝòÊ˘L\·Zpña^MQ’9a€rZVĴİ–;TġŬŞY’ıâY-ıs‘jVġŭŞçßVKü|s(‘g‰ÄŬVçهM?2dgûâĦè4t^o>.Şö°oMÑpI} 7ĴîRfŻb(°^oşÄÌĉk‡TWÔ`£-:AÍzùĤÙ÷fEžû­sVíġŞËiWÎhq݆CÇö°ÊúOqÄSö*:Ämòħ0Öı0!ß~E Ĝş6U×&‚tĜ• i kĜi9 ÛJù(Ĵ2‡"ƒ+¨d/,ëY_‡b\µTÖq§Š‹]îÒçEWpçvµiĤ%×VİĠr[1í6Ċbñ…k§ûJ>6]·è‰6ûP–Œ|ċoĊr½(· éā 'V `we¤ˆÑ2“7GŸ|…,]v^Èó„–= À"Í rÒtĠˆpjıCÜġ"È0q+ОÂ]91ÂĐP÷€ƒ“8€éġÓÈMßËSŒŭ/áp„ŭ;ZĵôcİtArŒÑi3ZĦ˘šCòœG8›mxÊîŻa‰XàD†ìn`óMbG£Ĉ‰}6{C”²B;¨àDT‘†•­ĉLeâñ9´é0Rġgó 9s0 -,à§óFDŻyŻgläÀĦ{ÀüYJ“°ĝ€™†ħz,T3°ŭ`p˙Á҂K—ZÎĉ•5g !jÄĈài3RÚAœBYƒ™EȌÎpe‡ıŠ^˜ÂÌ8K5gggŸ9Š€\PRÜĤ4}ĝ(͢ÁüÖİgTâ`µ÷j{ġ¸;Ĝp0ÒÏĉ1z‚ µ6QB?‹ÄĈŭ( –ÙšlLĥ%ċ€nŒƒ=_¨ĉ0Ìè6uWġí­§K˘˙³WßŬ„ÁVӏú×Ǖmĵ0ŜSöÙµ\q™¸‘ËġlCĜˆĦl•à˜ÒêŜ{UĴéüÀ†#uÀD˙ôÈŬmœáj=à#ÏïÎROĝHxĈGt?ĜĵGVO²˙RZQ͌hFâù0â*}lòŜĴ.gêQËBÜ7Ògr€péC“VÈž €ô âŬЃpġ+8ßĴı´âRj°½ä†˘šÈYĜF5ÍÊúŭ#ġ‘G|>ò°1̎³Âù<†#Œlaĉ$6*ö4 •hQ98†çŠqù¸İœËbà4e¤­HĜÜiĈz+ĵħ¤>›Ç€ ˘ ÄöB@ĠCQN1A·˜%ږĝŭŽvH§´<Ċ Üç¤;ĜÖOĥRĦwADEħĉ(4|fÇ´ħgò@ħVEq׌èŽèì3AÈüߣßbPoiÖiáHO=›Çĝasàċ…ö~üé/ö §1e)`Ä 0-Wy6ċ-×s Ÿ¸Xj8и²Ò@FiÑš Ôçro“r)ŬPş¤z<ĈI:5(ĞéHiùĝg)öŠšüÌò†ÒĝQ@‰öÔ'00ócĜ€ĝ˙_\´gó0 s€5xĉ¨Ŭ˘Užâğ(= ssT6i²g¤,V=”Öm¤·¸Î‰§ò|H†ìwΆN€;ŝ = 0#ĝ‘ËċlO@¤ÑÂl˙Ĝż"}?IèçmöùíŠè)Ġ,NaĈâħ">—N™ŭ"ú¸'KzúÁêÉÇ{şŜ;_£s0‹>0ËéÑ]îNp/ƒ}+òŬ<ž€Fˆ£ı²Îĉñ4j)ìh`´ħßÏÀ€eżQZPş¤tMé‚R\{xo‡kÏó$d•ĜqİÚĞô´Ĵµç@’ 2*Â×Ü0 XŝŻEGı¨É”âŝ* 0Xê0P@ġĴ€XT.ġóCÌB8ÇĈrgó8ŭÇk˘P€VBÔbŬy˙x „²9€ó˜9ŒáħâÜĈqbœÍñ¸ĜD+œIşĵ\{/Gjïl_N˜ …‹ÏKíè~ç˙ż BQşT/áìĠ1vÚ?SO#B²Ŝ{òaŒ†l p+áèG½Ë/Ök|„ĜeşŞ/ ßĴBiúûìuŽ7¤‘žŸP@W™\^BhIW­PÍŝċŒKÛ›ŽËó"Qéâ¨ò·Ş eà²HOÒe-r¨Ğ9=xà]Jcë/šÓȉóGz6Áô²Xżm 5èrw‚oôŻW|™ÍĠ{÷ûTnXx¤îYhÀÂ*5ó+„˜-ËċŞù‚tÈf›Ç ˘0ĥż*éŞé§—Üу‹Ĉ>b@}%AI_8`]Ĥ n(şL8xKÁÔÙ§z§W<İŒ^ż½(X‘¨ĥŸâ+jhÛZOáŞIsĦßâƒĦš;³Y…ï(ŝÂîĥì—EÓÎAnvH舧Ä)á3Z6-°^zÑħàHâ+ ‡’Yġ³TĤlʝ-}öħJĢäKġ›rŬ”mêÊO‚ĝ|ŠìÀLeäÔX í:z˘€ŬĉeW6+|j³Ú´\5]lZ¨|ҔżnŞÇˆ>Ç`ĊÁr2+ ˆ¤oĴBĠ|é%u@‰]’Ż6ċLà1Ŭf·sZž9½Ĝàɨ"RO-Á§ÖŬĤĦ…ĴĠnQA KD’JS–^sĦhî7Ë­â  @î˙*̕^â°Çîžq ~-t;zT£ì}ׂ/Â|ÊŝĴ^_mVáÄX5àe;mޤö¤ ŞN‹ –³ŽG½ÚršŒLïAŒÈù]Çǝ“-x=.Q‚ġà€›ƒ¸À'Öêĝ-È˙”Ŭŝš endstream endobj 126 0 obj << /Length 2286 /Filter /FlateDecode >> stream xÚĠXIwÛ8ûWè6Ô{š¸€}³ÓIĈŭ&‰'í~sèî,Q6_DRÍ%nÏŻŸÚH‰“ĥs› XX (ÔòUáâ~.Ŝ]\Ŭ^üÖ¸EĤ²Ä$‹ÛíBÇĦJx‘F‘Š]ĵ¸Ŭ,~ ^˙óòĉöͧċÊZDjıJS\ŜÜüëúġċÒÙàöúžĵù´4.ĝĝîÓċ{ˆ‚ëÀĝvݵ .—& ^żYŝqûóĊ›Û‹?/4È.ôљͲĊşĵĝípħÉŸĦ²™[<ÒÒra#ĞRŒğĊ/˙ċ"3›…™²:}ÉfĴĝX‰U:u‹$KUš°2,Wħ jj j7xŜÚcNŞ0q°5+T"´µµİíFög#7GĵŒÓyÇfsħÒv8íÇċÊè>¨iÖJs/êùôîôŽNe&XËˏÍ^¸YżÓÓLĴÀ5„ċ÷0gƒû K~Z’ĥ]%1^Jè$xO#Lïyíi•8w8(´3i­²x”f qch=µûsmüĦïüŠL”²J²Ö,V²;-kgÚ/sƒ &’АTċ*Éèr.ĝ‹è+j{j·c난è†ZĤ7ç2'‰ÒĉHçzNjĊ B „U™~ħżFgŝšd½>=FN<•o3ïİiĤtœ|żĞş—ğj”ŭżûŞû;_͢_…½mŠĥ°môÑ;˘óÙ"£Âp"[„Ŝ[äÚŭt.!¸Ngߖ(G"aòìh:ĝ “%íGL–‚)"÷³Fµ–(˘`èù`JÍ· ɞ‚ cGĦ”Q‹êœÈl Ġb™Ä‘?e“pßS[ÓìnŒl\ù<}˙vŠ Ö)Äp ĦLLüŜïżÂ=91S‘ÍÛ=äœé7óœâKĜ††|ÛÂM ˙Ż ßċ|,şĤ„5ÂK˘ş™³úJŽ›:sóO/ı°yâSëíTp·iŠ/Ë"|ÇKŠŠ'Ú˘DĈ~çğ˘x+Jı9‚H{@àżżô]ġÛmŜä›_x‹’ċËşŻ°Šê¸~ğŝ÷P[:‰¤FYğb·ùü"™‹ŞË›} È_,s^ùğ( T g&+4hxƒZY™wìÜîr_~=[&ĈIDyö•Ŭ¤ÌM QB^ˆaĦ5–ċ%M …íQ@Ò:ô|sߗ9ßcÓC¨”³‰×=ÇW%R;BPQmëĤlùÀ÷żŝrŭZ$Ùò÷ñ!Ż^! Îş^×ÍĤ¨îyĤĞù;ĝì Ï[F™2'5ê=&wF“ä¸) íÇAëË=™hñ*XÌLħD0 ´yµÉa)6ıÂìċ‚ë-ħl^ħdğ˘Ê}Œƒ;4‚"Šž8 *ê oÉw6Ü#9á[ßuž£Ġâ1żß75n3x˜‘ Ñü˜ íİ™Ħn݃>ÑP¤…˘(€…›|ëûĴ>Ë×ä†ĴóßĵİQ-6 ~×*öĝ6ŸÖ5G3kŻ{á͊҂'£ÉızÙ0Ez€/ìVċkĵxÑv­ÜĦĜl–18"6öt wfÒĥMU’Œ5ÎhkBĉpL,âdĵ-$;Hw' ĥ?€ÛZmĊ™Z63@A„(§H AMq%HNÂD:‘C‘ÂCñ[÷Ŭï˜öĠf˜ÇĈ<Ûr˙²z t˺ɑ—‚£’u1`ÍN´5‚Êıœr%(ċÚ˘ZçLŠ‚€Z{™=8/.ÂŜ6Dŭ `1H™V-w Ù`8ÌK lòœÒˆ­kÖy:¸z’ÓÇ`vÓoR%jhñ"¤šÜ·µ¤0ìKÖeÍ@żxIüĤÁuĊCëĵa\˘‹'’ á/¤Áš·­ofa„€.J΍¨ĥ<Ĝ7ùĥßñŒ—´‰ÖĈ~™ƒAŸ˜î[OĉLkËŝ ĝ óG wúv‚3jÎ4=ŞH^PÍĴîéí\ÌŜa4J\hñ²³²ĜCJDŝ ·Ż$3ÔÂ÷P#Û#²“Ż<Kèİ$ŭ@˘ôÜ_’!ħŻ!ÓĦSĤ)âè蜜#r PtJŠŻ/HetUB8Ĉġ â0OâzÒ ğzÛĵ9fßg`F‹î}Ë’2GıH´§°ƒ|;Tt†Ġ˙^0 ,—)j{(ôĥĊn›wÓqIXù†‡'p…l•LÔr£Ġúid†Êc5;y3†]œ˘b™p6™ó„€@‹ŬB8FŽ(:(nOêġçÙR…Ôp^\˘•Pf·?"B€·ÖĠ?:‚AQ†8Cĵ”…lĠö'éĦœebšuŠ`Ĝw’RXÈİŭĜĠš§™Û›DÙïı[#!ևçŞĵ= rÌÏJ\ÜÀ+:žžú.\(1è&ï€4;Àd:˙°Ŝ Gŭ‹PÀĞÇ`ŞĤéżèŜX‡‹5ŭsö5ĝGŭŸ2˘A„0"8…;BÙ25Öé@•¤|D™Ìê)žĠïÀcê–Ç0_ÂfĜžŭ0>:wËXgŠ a ouÄÓ@ŽñÔÜÈ4Tç䂰Ĵh|3€0Q ġJĜ/EÀï„އ˙/cċµvĴ~x_$Êpw£­Já™Ĵzs{ñ?†lĤG endstream endobj 129 0 obj << /Length 3438 /Filter /FlateDecode >> stream xÚĠÛr·ġ]_ÁéCKÎX›Ċp§‘UĊQFŽ][éK’éĴȕÈñò’]Òĥòġ=ç{#A‰4ÓÛ Ä.Îŭ€éàa^Ÿ½ş=ûĉ[n.qšëÁíŭÀıÄ:50R&ÊŞÁídÓòğ‹w·WïGçBˆĦLFçĈĜáĊğw7ח#+†·×o/ß½q;|ûúŭĊë`â·#ĈĜ_]^~ıŭŝìêöì×3(¤Ö.™&ĈıÁx~öÓ/é`契pv™œ„‰a8Ż|8ûûYÈHğätİaF$,5“ê„qçÉıú’ÍWE^“£_ŽÎT7Ùj5[<ĝáĠè°]–ëÊ˙^/ŭsĥ@*ÖyıÈ Oá$[gDSDŸ6X_Ò¨§hK"ÖÊzTjžh-žäÍOw!ŝa‹ż- otŞOACJààq/ˆ›Ö$Š? €ħÄ)µ‰cAj1ÙĠ­'H ‡ŽiŻ[÷ġH•(-OúhğÁd•P.aŠyĴÁ¤ıäŝÁàħ—ZàN£áhŜIİ<ħB,“0X?;7\@ Š$|ó­èNâ$8} v­SœíoÔĉ~N—YÜ&2Uġ”żD€2‘Háê/ĈhIí<´ğ@eâ˜İ§$ *IEóÁk€cıs­,ì˙“ÚŠFfÔ˙-|³³–‚µlƒŜÏİJGçÌjì1ßûó~a+–hu˘Â a+•€z~°K’EFí‚ڏ˙_Â.i$£ŝ‚ڏż³°…K´;Ѳ†AÂÑö…- ¸'ˆ7ÜËŝĈÓÚó U‡ÖTÖö€q`ˆ¨?şH>€£Ž9"ƒdĤÀ‡CŻÒ?f~pí=ŽÎm*‡ŸÁG*’óÉUh7ÔÎi<džĉK1œúGĉ0h9)0ˆċŠÚ‚Zœd@èkú† X\jŻıI i;M€GˆP0˜ÀAà)ceš!‡lJZlG™4È0|ŝAĵòœ‡_ĞŜ;âŒ"ùqƒÒ´Ž`2-ü ŭ >òˆ0‘‚G0ÏhŒ˘”vÔ.ÎlêgO´–£a<á™K„Q‡ğFŬ‰ŜDoHm—ÔS›Q[ìzÈÒEëÑö¸Iĵï,`PĊ5™Ypo–lÄRßğ4^qlàWRŜËö’ŝ1+²ı&I˘•G‰O@ĥ7}<Œ½ğĵ ò}mŬqğĵЧ ܧÑp4Œŭì „lDPÁ‡ŭhƒö} pʝpÄr„gXN@£áŝ‘Ĵˆž£qÄ;炐$B„}9™Ĉhoĵ{zfÔ0˙4ŽĜŭdoƒÔöJ£ĤĠ1܋—É’,İ%íċ˘ŸÀ}p SPh'itÚ֌W”h~˘¤3§ŝvzš6ÉhžöGšúĊv#%²ğÙİXĉpĉ™S>.½½MĞ…ÒÁĥŽÒâ&4ĞŜqäŽG³Ò=Ÿl5Ÿ\74š|Ĥ [6_häM“ù™hiÁ£Ŭ—y"ˆ·Ûê(KĦÜá‚ʆ‘1äԏ$t’'V›§Bù9³KĞçÁï4ôq˘O}"d‘_öäÎêÀÜıÍo)ş<†w£@HK½PôB{Npl›°żˆlœƒûâZ²? ÓĴdµ üêż˘ÖW÷Më÷ë¨×.ô'‘Í@ŝVħ0¤óìËĞÍŭ}^ĉ“£Q…ı³y-ĊlÜ,PôcËû>nbx·. ZİÁu=#—?68Gs‘Zşĵplîż]ôZH$ı…˜‰‚ÀGä3ä[(tÓ:Kû×üà÷dıĝ½b$Şö¨·޲yî‡>#ĵ ›G˙*Ğü‹ñ2Ô Pêħ^ĠOX,IÉA|2qrËñ—ùŻ›Y kʔ6œqż)ŠˆhêCżÉÈCuv€ì…îşŜ·ıôzQ­ólHK·Ù"ĥäĠífê5úŠ”ì´§h³ÊSċ} öÖ%>'y5.gwÄAâ˜ë…ùÙżGWó^Ğ$ɘáí´Ö†ß¸8ÍBg]6FŽM—³qĝöKüù{È6|ƒ]^³˜ˆ ™}ĵsïÈVÂĵÛÒ5o +Ĵct×eĥ¨€ôyÍu†İŝŭ´|ĵ.ŭ›M† ˜î0FûEêˆĵÛçiNKiĥAĴEÔŭpP%x^&€½¨ĝş~Ö].‹‚Ö‡ħ;Š…Fĵ‘6Iǁ˜ËŜyZV‚żY£VàBŸ§ŜİN^Ù˘FĈ+Ĵ7HZRÓgC•Ż›ûÌLMbóó‡ëÈ×tm´.‡^î9ĞQ=o° ?ÌÍÛˋ›CĜ†w‹¸Ë2žĠóĥŒ˙ß"óġÍÛWщ·Ğ,ïŬ+‰iXö˧žnƒ‚8:ĵc*ÓĈ‡lß,‡ jWèàè9Í´³ôoÊċĉaŜ."޸„˜Üîşç”ȝ (ßCc&éÚòÓ?‚EJ!ÈáĦ‚ù+ä=B[#öŠtMNG?ȊUŠ.Í[/Œµ~' š@Á[¨ÚÁP?PÀ‚İbFTÚñAúóñ½M×&HŻëus/këèhİ9–>×VŬ×)wàJùèÇ·s Lßò˘,ùÄkR,˙ĝ°Ä„GĠjö‘\'ŝX䛒bġׇ˘eùÑÎ} U*? Yħ™Xٗċ˘žŸĝ4 =°q*¸F4{S£{tŽíŞb#Ħ͜bB5ÍÖ~´~€şzĞLz³ÑÒéŞĝĜÄÚPĠpħŭ—£§>% endstream endobj 132 0 obj << /Length 1999 /Filter /FlateDecode >> stream xÚíYKsÛ6ûWHÍT(^$Èvzp3ŽNÒ¸Ž{J{ )Xâ„"U’rÜŝúî.@š”éFî6o,ûĝ>‰ë€ç'ß^Ÿ|ùR&AÊÒXĈÁġm "Î £5‹’(¸^ïŻN/ŻÏKT¨ÙbiLž^^xqşHTx}ñö{7xyµIĝöüêô vèâ{Xĝr!„ O҄/Î?_wrv}òˉx FgÂ7Mƒ|{òŝgĴ`ğ€3•&ÁGšş ”VÌ\XïN~8á‹LîG,Öi`x̄LŬ=7vħ”& ë]WÔUVşVÖĴ÷[[ĦäJ÷ċK·â’ñXÂ9´É6ğ˙v{kğ˘Ğô"ôßİ1gÒ¨~í&kŭ‘îÓÛ˘Ì×ĜÚĴ*޵Ÿà'ŜÖ~4ݽ€ÔÚÁ' ëĤkQ†`)ŒsR¨–FŝÙ²7 ×Ŭa·W2 oöĞtߓċŬµAġm½ïÂv}ëĞĴËúġ?qĦHÔ.Ú/|ê÷-ZW˳Öâ âaUû Wĥ³Íĥ¨Šĥ+rŸOċn‹*·ÎžŠÎ™íí•u7·ĠÊBB]ıyíĝßş›Ĵ³Ì=İ?)(#–¤ħ;lGšW`ÌönĦ$€SïôEQĜŒrlRʄ-Š„oâ°ħk¸œmZ7dò+´˙uSÜğÂ`×dUğ-ÚĥÀ;`Ï ÎŝĠM˳²t6Sû³ĥĥÛÔ¤‡ĠŒ½ÊD1-z“+ŞÖ6Ŭٝ­ş#Ì52,Rş_˞öĠXÁ7~ŽĞşX3qĴX1a’ )“\ğ3ïËH‚ÍbYP9wG8›áŽg‘84_ê•ġĵú~Ô³{ÔsIġšÊĈ÷?zùT0Áċ| "ĝ8­˘ršµ×ÒĠù£ğrĤ£áMËX£Œħ [Ş[**;ê?£úŬ0Şh§Ż8H& ĉùS~âŸħŭˆIx%?=Ĝà½U‚ú ëzIu;£y-˜bጒ SôĊÌK0£wyïŻánݰÌĦL1BĈ$”TVThÔRŭß.!3ὙLdIOäHbFàF†éXLcg3ü_˜áÁĞŸ“q•ƒ1Ĥ(‡7FןŽŒ1cúIcL4‘:4Ĉ™xĴĴ3biSÒI{ sL(—²@<¨¨)ÖkÌO˜ğbk]¤äŽ=Ÿ11W™p’[ñÛç9ϝ2ÑbħzxŭùËk9ĦLìt]Ö7}_™öŜßşá‰üI8sóé+Ґŝ•zvŝšƒ˜‘¨Ĵğțß]ĵ€+Àñë}ı’µ­ëë6"¸#am*2u},ÊÒ-pÎşî•- 7™°—Ûf!ÂĤŜŻ7ıâbŬOô›ì,=jÔ,Ġú|y€•ò´z)Ü{p>‚ݲjU‚yˆ#PÖà™„yL/T›Ûŝާ-V~ĴŞŬ·T×ôëHŸ ,›Û]—Ŭ”öav•˙êoÌ#&’{m,Ì)„Ì)Mq~ ŽLìf +!Ò`ƒû9a"20~ĵ'LÊAW[”cßvN4 ÓËë­¤I\[ù›ôBĠ ġxĠşô‚bpQ,–rŞ—ƒà A•m×GwûàúÁÊĊpòÄĴûĉhyeï;‚”Áœá9$-e¸·Ù"G˜Ñ!XO*†ÔrT ’ĊfÈyíĤŜ—+wÈ·dÏŻ\ĝk:ëçÜ6ġv&{ ž2-ĠÈ&ĥpŒ4H;† €ÍĜ‰ş9Ly]ƒ­]PÄ;C$ƒ…ĠÍğ§ĤŸrNaġĜí—2uŜ;y8r–‹œÍ=öÇÁ>ÀÀÔ"hĤm½ñ4>tC`ZġQ=ÛíJÜ,÷:wE^;Cè„'tó9A2VÓ$2|3ıq˘ ~ÀO†ŸĥÚ'€[~itŒĝ bö•ày`8§ò••Ee9XvŠhÊ×TÖTĉ*BX’0ÍÁníŭÊzÏÀ³àġíĥFı ,Ľ1áŜ}f ^P™?†N*­ËÄ;â5ÓàċRZ ŒÛBĜG=`Ğs­½ke…çGñS ˙‰×‚ĤĤxŸˆ4‘ĥ#ÒmDo~NóxY(Á3Áːš…ˆËĴà *IÄ? ˘Ġ§AôA:}—KŽ„ÏÄċÄ>/cŸoàE*á×náÄNÁ643p‘‰”ëÇGÄL%CĥŭzÎÊbCx]JYè³kví·kÁċSü8ġŝ7ócŭç3¸ÂÁ?Eż9°ŭçŜó”[(·SîâÖIıeÑ3ú[·TÀ¤˘´çŸSúĴe¸qlù5ĝLìFRL¸^‹‡ÙĦ˙€pQíö~³-úĞ…ÚD¨aÊˤP “­Z$†ÂC\êaì°oÇ͐x¸_dĜîwŝϞĥç$ŽÒĞ02Xo‹ß<ƒħ<É,䏓I> stream xÚċÛnÛÈġŬ_Aô‰V³sN‹p‚ÜñĈMܧlP-%—¤ÖIçœ!)R˘d+Zúrf4œ9sî—ħy4xôĉâĊíĊÏŻeyĉ­´Ñí}ä=Kĵ‰œÖÌ$&şEŸ—oŻnn_}ĵœ(bÍ.'Î%ñĠÍÍûw/Ż.ßûkĝxóñR&ñ‡7ŻqAÇï~…ƒŻ/…ñ~zùêòËí/Żn/ŝ}!€‰í•œ9ï£iqñù f허3ċ“è‘v‘ÒŠ9ç–ѧ‹ż_.‚ycdŸn™>Ħżœ!M|><äĞ9PéL\dU•γŻËşBR~Ŭ—&R3/„×í9­8žéŭ£ßÙ"EGlĴò"_Ĥċò[ĝYŻqqöĴÖ(óUsd‘6;ʛïiÙ^\Qвƒ)fÙ2÷–Ù ÷2ŜTA.^´”†ġ"›âĈEşÊĞ˘ú rßmêġq‘/³00R…5˘ Q–ëMŬŜÔH¨Ĉtї‡r=#w ì"³R‹ĝ.­N×+9Ŭìĥ|Ršċp ȕĥ/.C˜ä~ÍW>\‚³°’CTĤg‰B"öîé[â[Pó2P9G;-ÙYĉßĤÇ`Zĥ;ŠôáX…a֋ö D # R $•q ïùĤ@í¸`°4zqXœ8ñfÏ$ğ9sżZ€$€OŬ(6;w‡…>ĉßÁR!–­ê|½J—ì`IJxé)ñ*Ä݁ŒAÈÊ&‘ċŽY­}żƒÜdĵ&˜œHIqĈë ˘²@œ8Š0O Î{_?ÜĴiçΊˆo –´§Ŝ†‚+Ĉn)ĝ3R‚²PNċĵĜÇ7ğŒ'ÌËÎz‹ËĆŞŜ' Ktg²żqMĵ†yŜíáyƒŻú¤e` BݘjKĊÄ"żLâ4ßĵï y*ÌK‚a>ۏĊÌ#zäŠr!*)fŒ€‰‚ĵr²ŝġŝ[Í+ĜĠ?ßÑ|5ŞyŜÓ<'͋1Í{Wû˙ŞâÍŜĠPïVŞ0xOĵ' NÂhżí­‘Ì.{{Êp}.ÓI²‰ĞñÊU· >Ċò‰!“„ùŒà’V2š—û²Ö’%ĥCòӘ •@˜ñ ‡ıĦ"U‚ †ù͗4ÏFȅ›¸ï ŭ@ĊS€’ ŠßÓ<Ĵ×4Ïhêíù6âPÖœ.™„è7H™˙ƒÎ;’ƒÔ› ‡s0zĤ!2½?;'[8µÍÉiHC›*+'³ì7.ôŠ ÈQ½ĤúĝwÉiĚN§ïÓ:[MżNÑtš=ÔéŬ²ıyÙà!š0ċÒjš‹PBÂŻYZ§a:nµ ƒOSZ¤__lîïİ2=•T8›é2ëM¨:šÌ~?¤MA òUM ÜZ‡:í_Í£5€ĈQıóŞ€—†ìĠ&OT$Eè°şşġ`G’„S·‹F7ÏÊÀM™ÍóŞÎÊŞLjuÚĞËtUyUċXâ;”·u Uq§Úz‘µ˜êE¨‘ÇòĈ|]·Ó3ôê@&f[RR„òš2ËRŽÌ™râ˙§ )#zu“Ñ”¤4Òm'wĴ ^ÌèkĠíԔà4rH_'ġD3ÉĠ“ĠœôO˙@F”Û&g_fށŭMM:Ħ‚r˜Ä D€ü”xùT‰hıé%1mPŽç#öŒï&Òa5š9ĞwZOÈqé´&ŝNóŒà?i L’î =Î ~'˜'EkOOЍAŞ(+šž2žp}ëîĞó˘muZ<<#İ4ç‡IšŸ|só “‡w…Ĵ”ëa}&Uŝ=;™:ÔË];Ñ;„ê:ä‰Ñ( îÄ4à=5JÌPhHy>’NCŸŜ„ġë|z÷2Pó˜Sôô^—Ú”‘7I¨ Şġ˘\oĉ‹AŠšĤËe_Ĝ½œCeQš÷lšcy”…ċ ëġŽKüÈk‰UëQfÔ-1ZvŻ?.0 +Í{lZ­ˆĊRóħ†’m,@Ĵ1Wl=żN3TÖ}ÌëE¸2ZΚ[×áID&ċŽUÖmŬz™^Ĉ—Cš€b^;°lÁ4ŒtöĠWĜĜք€ ó@%Ó+`Z…ŞŻtH‡fj™.’dâJh2ğ'ÒnO÷D +í鞳C<ċúé·X;bJzĜÜôž=k‚9­4ÏFä˘Aî9rIŽËE[ħm·MNq¨É>ŜmŸĠ‰C°EÚha’ÑÎ ´h·ċzñ&X˜Ùò‹ħR*ŠŽ0|ǁú6üµŭÈ[16yR;ê(Ú$ƒo"ۛqF¨_­=3ٝŒpÂ6ĝ¨ìOLĜ*Œgñp2ŽDA&}PĉGȆPžQ.##üċòs0> stream xÚÍÉnÜFöŻè#pWÈŞb™`‹‚8ÑĜäàŞ›ê&†KÉĥl}ŜR\›R$O˜ ùXëÛ7úĞŭÊ_½ıĝûÍĊwŻe´ŠEl¤YŬÜ­‚ÖWVkFáêf·úè½|{y}óêŭz£”ò´XoĴĵËëëŸ^^#ċŬ\ŭò3O^ż_ËÈûċÍûËw8 ½ĞŸaëuHïr-­÷òĠú÷›/^Ŭ\üç"üU0şŜqĵÚ÷W;˜üqċ GĞ{ZZĴ”V¸1_}¸ĝDž?!$\"Ä7"1ò>ŬĤÙ§ĴÜr€w‘6M²O›‡Q2q b>TŒpÙDAĨlכ °^ÎŻ_‘×#ĘÔ{‡Òû7Џ ìÖ—Ò“vÓçCĵŭhö-$—ïÎû5Wğ˘‘ß½ôuİEd8Bú×ΨÛ2ÒÂX:9‚ŽïDÏ[ÔĵàŒž[>fĴwÊewÏ÷K÷*D1ıç˘ñĜÀújùëÄ_ áŭĦÁ Ħô*zfôÜ=Âl`.‘xĤôĴ陳gċĈ§Œœ˜• Dd;ò~óC°ÒBÁzicçTK)˘¨ç?HOYĵNEHÀ·ç§ĵ_÷ë@Ĝž­í9ß­+íĉ_,ħ]G"öcÇvÓ³}‰‹3ċ‘ öq0íĞñX04·¨Xotˆê Ïŭ9ĥA,•)ĥ“Ó6Ħ֨ݒÀq†tĄŜW‚Szŝ‹ž B+éNÓ"Ÿù;Ç÷%&‰„gÀ`˙†gK„ê{?,b#•à6§˜-h„Šzü0QİAµ&4û"€àMèˑ öM,4Ëö*ÙfEÊ.ĵi“âÈÎğ9y–îxâ]û·(ġÒr·ȋ Mà0*qClYğp˘HE³6Ş€ Re%âÓĤîêĥbœOwhžniñ6Oš†‡²,·éŸbĜ)Oö5}6Š´‰Ğîêq ) dÄßöħpZ_?~v8šĜ …Ññ*Ô1FËżëÓàŞIıËӺᯤĤa`b’ç¨ 8ĜéÂHê@ż?+§–A'Ğşu‡Ħ”½Kó잁âCÇR"ÖzŞ/7dšħ5s›´YUò@Öu–/mHqaˆTŜÛSÓV…“çÜ EÂŜ?Ŝ2'ž k„ úí½İB#„ÔÒ' Òj{ĵ‰Z‚+63˙P§ÛŞ(ÀÎĜ!Ŝ’–Ħ>wĦ/-H?ğM[mnŝ>kÁÜÊĉK‰ Y›|ĉ ÖÔxXĜħN[f7Á/OÊŭ‰ĠHĦßê!Ŭ’q<–Ù \şUv"bşxsĥ3-¸s Żİ³}V&­[uWWĊn [ĠİIëM*‘n³ßü@33µ·­Jüĥ?Ġ*Á8ĉÎTë4ܟíܟ8 §“1˘U¸×`)=Ö` Á˘÷:TŜŜYCÉsd&ĝ>,êŞôĊ2ŸŻŞVXĠíÎi—‚uWĴ¨Àڏöf:šqŬ??\½tJ ”Y9³Ñ<ğ­“ú Â%vĊ’‘Ż`ĉ.Viif˘„Ż@ÓQmèÉħ9Ž(HĜŽ™—ċ{Œ‡œ‡Ž|—ŸÀ(yb?sFùé¨*àsdIéAN×!żí˜—óÄ.i†Ò<&[â0,Hijmên`˙Ù˙ÌxÇ>Żná(â²ñEE<œ)#…”áóZ"óJvİ#e^)¸Ĉ×ı$ĤóRa>pA‰à–àdgWô,iäjïF§}~¤2ŽAöa<(1Ĕuy’9Uï°żE8ËoÂ?:š”öçUtH5tYÖÈiàš8êJòiÓĊNO\›%>>2ŒÈ0FÌĉ‘mß·ˆĵ…pŞA Œ}´ü·R¨pá˜à…({ËyRe-! 0zRY?Ħô…Ĵ‚=ÇQġÛE•'xH„Ĥç4§`ÛĥŞ9äŒX q™J·ŝì9.î°oݧxPp*ÉA¤Ğqğbò„p!>Ĝ¸z– 9?DFìM˙r?¤D{àhĜëüOÔŭÉè‰ù°ñ(ñDÛĠԃçĠh–rU·ĉ1K5hVê›="é˙ C´5žàJ˘G\ə%ŽŞÒĦn°Ħ<ÎPïžW4Rĵ#˜Ç?Ÿ›)ĥ×bù˜íÑä)"`\dœ§PŽ#I“>9I‰…/{ĈÏLÒn*)ë:jÓzU_jםRÓ*aĵUy_SHb—:š|ï·¸•)ʸ•ÁÏA=LUJĥ?U§fê^&ŞöıéIâŭ  ’ 2Dŭ—t­$TwAèŝĦüzÀ‚YêĈ‹(°ß1Ż?µÔˆB¸oDñ'âoÌÀ˜;7á8mЉ—Ö÷ ŻHĝçĈ˒ĥë}şÜb!Ó¤-ïDŝÒ@‹M‹óŜV˙/#4!fÉmN ג\E#€+¨`ˆµ%7Ÿñ‹¤˘+Eµt½´˘˘4SğâŒ0ÊÀlj\Pq£Aĉä nŬt:ÁößRܛ•Lġݤ^òÒ3ú³T„P„CGzûï'踄âXƒG‚ê9À$|#cc àB"ü"9ĎH+ÇñüD"C3Ħà,ġÚpLô&f!à;á5,û¸+ù †WŸ'sŻş^É2îÂà kŜá’ߊ ó5uËk+·‚ĝsAâ/l—RÒz²"˓:˙²Ž4ñ"bwGú Mİk\Œ‹c—vĉE~`0/òÎa8ó²^×rëü`ÒµÏÚİ Jğ6[1µûy¸öë!ËIĤĞñh÷ÜÑáËל ÈSx›[\ΎEN’éƒ1oÜd¨Ûíö&ù=.H¨}ÖÌÎi’â/g²|½q &`‹u0ÜĝI †yn8!´MÜ^×Qá]†]ÔÛSËβÊâFlŠŞ´î{T¸šzŝĈvĴì:pnêÀ6ÌBód:‡FêİĠàg:ŞÈ'É×TĊÑĊWí~íLÊaî :½ĥPÈ9wv—l[Tkü§8şÈ52Î\×ÔTHG˙ĵ ¸4Y3SĜ3ĉáà‚6 ^Íx#&~b‘½1Té.ÖI3Yqöé‹/² endstream endobj 142 0 obj << /Length 2256 /Filter /FlateDecode >> stream xÚí]sĥñŬż‚ofÎ(ñEys}—Ô™^âœŬéC’élqJ‘ Eúìüúìb‰”İXşô:sW `ħĜ]ìDQ}sö—Û³?-òÈ0“Š4ş½ŒaıÑQĤÓıŽnяñċ_/oß}˜K)cĊfçY–Ç××ğşĵ˜ċ2½úŝ;êĵŝ0yüŭ7.Ŝ#BĊWßÁÄŻgœóĝğ.ßÍ~ŭöìŬíÙ/gXH"[2a™1Ñ|uöÏI´€o£„I“GŬÈU$•dÇyUtsöY2ÜĈpœ+–KeIʸ0´ĞzaŸfç*áñŞXo*ZK@żħ ‚Êšĥ˜#ËKú÷ŝúŠ€uÛÌÎ?·O£kü×V•ü÷›ĞK— ùHEWĝEüÜEı9G‘DçÀ²Q œí%ßµċ]ß9ĈLµ²¸iĥ Ĝ;¤˙L0ì…Ç5"ú•m‹Ĵ¨£[Z6ËÂÏÌ`£‹vA­]·vcŬä.ŒÒFÈh2fq,4”êŽ,žŭw\3¤6—EDD ş€¤0,DQ1É l„ żu“™&•ııCE#393&İ4BêĦ-€Y"ĦH}ħvVÌ'|Ǥ%˜eĥgë90WE‡“hAħ6YníDÑ´ÇÎQ*aBÙmV§H)˙cYVÖŭ02SDÁž=n–qĤ˘–òħ`èÚi[ÊԆlĜŽ„yÖÖÔ³C5„ĝ,çôfâĉžPŜ,ŜÀ?•ċ šl[€*ŞMC¨yC†S”µ§VÖ÷Mğ„žĦÙxMÄcÓ£¨¤ˆ?.mk‡ö#•]5í3Áaqvş)ÄàwJÀ‰˙zCÜtm?ñE‡XŸGÉC~’DóL´´ID2ŭŬiĥ•]ù£³a6˜%,Id°‹ĥ-žeżn…š³$5af~ÙMORœWEEÀòäòĈ˜Óxä4ÉĵËrèA spO$Ż­7m 'Ĉ7pş`ifĤćò â˜ĝà`¨ĝĈZòöİX­+‚Oʝe@<;-€àüöÁú"âÈÏıà‘NSĤ‚›‘qëüžá÷֝ûeğ§P àV_ĝ¸†MĜçf²|ë‘ŝiÂr½UìO‰Nĵ[Ĥx¨0ĉqv: hK×.h Wƒ)B‚&Ďn"§²` Ï 0 Ĉ=´Y|ï`j­kۗ._ĤÌ8şéoĤ€3£ÂHDR_ğ"x–Ä˙t[×í~ CûìÚµ'w:Áh×µ/™‰`zmĤ¸ƒ€•2ĦòñaÖÒ B÷yš‚dĥ}r˜÷.\ğžğÊXŞġ1rß*}ċä[¸v=ħ‘œ)ĦÂĝ‹ñŜì_<è€×A*îïïm{Œż‘LÊ­eìü.ì² têENŬ˜}N<­q:ġĵĥ€=Ô3,‚đˎsĥ£UC€ğ÷Ó'}^˘ ²¤§ĝĵƒÉ²Ê“ıO–oÊzŽN×$A5íCQ—żbv( %ʈz}üïâ/ôϛĠŞİß`(P!%Ĉ~Laĝ#Ĉqééû,â[—Y8˜czA˘0­vĦ|Ë8yP!s‘¸fói AÁ-àĉ(ĝÌFĥÖç|0ßBUÖĥhCĥâċ¨uPS*.˜ŝ‡˘“ÂDA‹/ñé˙ >g` *'ğCœ8…$<:u [c0N,&^î ê8½ 2 ĵԝîTÄ[×^9Líà…ƒ ˙ô’S­XĥSÙ$£9TŒüD6%ÓyŞÈZ‚s ŭĠµ"°JŞOŽˆ”­8˙Ĉ¨ KD~JD,!>MGDOëS"â!6މˆSËŜK×1§î/ö\o¨Ô~J¸j7ĴüÍ]@ŒÊŒcŬ@´;™Gƒ­/Úq  Ġrù7ŭöÖÄ_Ĉà€PwËPˎYĊİ…;,§fۘ@ ‚RéîN†'ŝRĉ²İQÎ}Kċ½ğŸyœÁ)† iAqWÙ×ïjn]´ĉÌÄD´êŬĉyJR|·iˆ€H{şµ°ÈAí,ŝ:yÁÊ1Á"ô"Ĥ Üu Oƒ†hÄ/½mË@´ßà…ÊDŬżÍ3Vĥ[’Z;ĝŜ(€£ûòá˜{'YĜÖá.wEĤYššÓ•=NÀ;I‰T1€w!/wħÔ¸6ĞiOoĥá÷fëċL#&À•ìO%úÓ ĵˈÜ{‚B[ğöŜµàÈs?üN~ĦÄËÜbĴ;ċŝ0<(·- áÒµµk0ìjü£]l†vu(ìĤ)o~·vĊĞ~ìÊ/3İY&äŽÙş+"lŬ"´`ïÚÊ/>•áˆ,ۏ„ûQYä hw?}1Ĵ˙aít(/·ÜMäG#3âĝ~óY˜Q n4ÏĜÑçbGÉÁ`¨¤·„*ñÉáÊÁvÚA ÜÓ²^żĵÊKä^Ş^Ğc2ÀT3ùĊ”†2Êè™ŭ5ŭĵQ~ÑÚM_u'/êŸJ˙„çsÎÙ{óù o.~Iz6Y6}µ !gZÊôLCu×ġ-‡ùˆŬ„XîÚ><úĝÔx› îgÌmkçŬ—IOZ…Ï•ï›^̛8°kùoı2J1!}Bû$Ïôg^OP‡’Xژñ‹Q{{™8n2a‘Áaú gŭ endstream endobj 145 0 obj << /Length 2990 /Filter /FlateDecode >> stream xÚÍËrÛHîîŻîa‹ŞŠ:ì'ÉlíÁ“Jf<³™É8ŜÚd´Ôĥ¸ÑGœÌ×/MŠ”è‡˘=ìEîFƒ@°Éí$ž|öŬĠÙË·*d"sÊMn&ÒĈ"‰í$1FĜÔN“ߢ×?œżżzs9i­##Ĥ³$I£ó÷ï˙yñú|šêèê◟yóŭċTÑ/ß_žż]ü ßNTÑùT%Ñë7Ó߯~<{suöǙâ‰ì}Ĉ,›Ì×gżŭO°ù$:K'÷„şžh£E"ñàjòáì׳8÷êË£T,²,™$ħRe,ϛ/ùúnċ[yÒWә16úµñċ×bsËëóíĉc,ÍmSĉuħŬâçİuQ^ùġÊW$IûċĦD&V&—Â#HO´iä’2Ĉ%HlU ˆI´z}‰=½îˆ˜Ì#Ŭ)|˜,.6§jƒš:aù8 )EfílMƒĴJ끛HĦµ‘b!mÂfġ âċ[PÒтÒ2 GX3ΐ˜™q-¸™ÔIäqpQͳ’gž?÷“h3°ŜÔI:§L´ä¤*ŽîĤ³ÌF9ü:¤`­iĊ\ÓŻoq\j€¤”ÑOĝóz ~œxp{=‰NÚÓçh#×2Ħ•ZİPħbĊŜ€4Ëm ıShJ2פѤG˜ŬPâ-ÏJ^ÌyV0·<Û S¤˘$íá°Â•{h'pT˜8}ÂR,h¨yùÈ=8%œ;íŽ%Áo‰Ŭs’8I”Ê'Y@ MPK:Eu|MŠà Ŭ'c”ˆ]'5܄‹Áñ÷5ŭĉ|fġÈdwäï(*„È“4u41U)aÄk„Ê‚Á˘E%lè@>™@ÄHvĈbcDM£żŒ¨OĈ"…o\°uGĤî,Ú¨#CwdĦ=ŭàS }eÍŜ§àü+ÜW ^†ÂğPx¸[ ˆ½’2‹ŝ6“E÷ÔÇ^i"m‰Ž&zĝ~u*’Ż÷XŽWà4(”İurŒÔ)D…Nê„xĊA=Aà`#;˘fŬ™ÈXÈqÀK?àćŸO…ĥ éà5VÛ]\šÙ ñÉw—pÊópCÎC ‡hšIzÔTF(`J+ž5<ĝÇ.Ú íô)™’°àƒ'dZÏ!ñdĤu;›=R£y´J@7Bc\êU²8p\5X&NËct>îĦĵšž,ÓebÎĦí…XI٘£„ËQÒä\ëXƒˆ ¤şĜöŠŸüWÙ¸Ĵ—ö}ÓÇ Áé'˜6 ·ÂšçRèNÓ'}TCrx"T&§G’’PÄ]úZòîğäE°Ž=M$ğçà2)RÓ}ayȁÎşÁÛÑ/ŬÚqêLĊ Ü$™Ì$X˜’=ùFŽî=Ï2íY7ÔÄÛbƒqíK$ë-ÈġrJáánîx{ 2+û?ŻGž…/̳“û(ÎŞb<5Ğĵö‹ÀN쀵žtTlĉ_{fžqòš·|>ÇĠe¨˜c˙‰gh‰Ġosë¸q&RHu܁<Rb°m“âSċBğ˘ômÉĠËö†ÇšÂ fP3ˆÑÓ5-ĴóòSµwŞ.óMUìÈŜ”ÛġJ×ĥğ=P\d¤`˘ƒ Ûc\p™W^àóİBTLĠ!VË.ۍŒ˜k5ˆ–„¸0ßâáŻ£Vugi°Ö“26Ċß͌˜Ž‡ìŜFñÉùĠWÄL@QŸ¸_ĊbQóZħ_UĊ55Y`“ô›sĵÏĤàžqÂħ²$ŻVŒıÈëœqXÀĤôïÜ/‹`ƒ}†ƒ,sÜbާ3£Ċu K‹TĠ–>İT<žĈáƒfµRİLÄÁ^Àó”Q<ÈH<\AÊ/L–ž&Ñ4F²iìŽ*°0—ˆ8 Rĵ£\ó_”krzAëtMË~Ġû?NĦg „ÜòÛ²m°Xë]9>ÂhÏuİè˙‹ÌßZ6˜^Z?³ÔGĥT5Xê…ÚjH¸—îï ħ4=Ê. \{‚ïè÷C'GŭIżrd*Ŭë %éc-? Ĉi͉Ž~4‡ŬÚŬĤžïé ¸´ö¤o0eĥ'…˙gx:ü;ŬuЍŭ"iĵŭ1°Yíä +ş—Tfä+˙ê2msg™”Í“@çï‰ CEĊmÈ7<ÍiÙa+ §9Ż˘4ĦĦL3$˜%o átċ!w[t%Ĝdf˜PŬ! : Œ–ÄIBy=qÒN·”&„úMܔ˜3a ĵĉ=J$ÈïîVĊœtÜQŜM%0ı:ba†çÂߋħ4í˘-˜A*BĠٗTĞf>µ|@˜kÁ(ğüÍĵóM›šó§nÛó¨ÉĤê2}­×ŜÚçu]ÌĶ 7ŒPH$ş†şoB •Ĵùv\狀Z2T¤`‰T!€İ9ċÓRñMQî hœÎpW†2ĈW•T›½L=ÔEŝK>Ż1ùVÌQ4 µŬÒPĞïĝÎ@qvżlĦŽHè'ÔĊĴŸ\oZÈ@IğAŬŽċĉx#1(¤ĝB—+($¸Ä+jÏV"&‹ÛR‘ÈUħ SĴ ñîƒe+“”g°›ß–Ŝó ŒpeB ‚™–2]­RŸ ˙¨²³´€BfÀğ÷húS#|k³ĞŬ·%ïIêÊÄ5‡µëìñµñÜŻÑÑ ûPµ,ĦXİ–Xí[^ëê-a?°B×aĵy4‚ĜÄUŸŭ,ĵ1]~q÷ŸY(£¨ŞO\j¸–ó°h•Úh}LtĤb{‹fN’pëşùKíËÖşf‘ö@SĜJŒÛş ö2ħKè>ô pĞô4ù^‚ ëÇácžš.1N?=£§Ŭí™AŸ­âŻí÷çÑ6ašCĊĈ@´kêö`´eu&6Âb!_˘µġĥi[y¸IzîÚx¸‚À0lôoŒıžâëCVI8~p™Z´6 ú¸·Î™™‘„ "ñˆWôo5Ħ*ğ.„t]H ˜sÀÀÏó/uñœ˙w‡Êv÷şE„5Ĉ`c͎ot÷ò ›\8.s6ecBÖü?oê€XS›„Aŝè'žaĤb0Ż;\Êâv.‡ŭèËĝ…š{jx„€ƒĈ1>ĵG~ݲá,áŠê5jq†ş­$‚[|jV ><ì !?T¸‡ŞÀ•ŭ~ߘ6ÉÙ3v•ìéĵY~6ßï2o\yÂ÷ÓßÏĜ›´É1– Ĥ`·Ì'ám71P³R/ËmsğÜ6u;÷ ',PàDĊC5Ï>{mµ1Ú aċ> stream xÚĊYK“Û¸ÏŻ‘޲€_yۙ­ĜëĜ“Úîh #ħ†"e>f<ùġé(RC§<ÙJċ"Ww£Zjµ_İĠğĞŸnŝò6ÊVy˜'Q²şı]ċy˜ċñ*µ6Œ³xu³[ŭĵŝÛЏ7o>­7Ĉ˜À†ëMšfÁЏ˙~ŭúĠ:3ÁÍġ/x§u”żĵûôê=lpŭ]k­ƒW8ôúÍú›ŸŻŜÜ\}½ÒÀ‚Zéó‘*Ló|µ=^ŭö‡Zí`ìç• Mž­hĉqeĴ SëŞĠçĞ\İİS)tdLEĞT%ĦŽrCÓ;à*I‚ŝPôĜJĦċIċvÁ÷şŜ¸µkÖàÛu<żnzĤ×Îíd‹†)_x"wÜ×Ħ¨ĉrT”5j˘wm]TĠ#ê„Ĝhĉħ(|èhs•Œs÷mїMÄı[otpZë.š$ĝuY:Z|Tğ_ CjV›gZU´{îĥEċxüT´À—Ğd ĊXĉ,#­rHúùŜĊc‚Eċ dJĈ2aé‰e ‘ ҎÂ#i&<Fᵁ§‚N. Ż&ፍĝŽà;zĜ’ôÂamxNìĥ²€ïµ{ŠäToñÁ1´0§ĊëĥŽêz‰ 8WPïè„ÖDCu„W­8×r1Q¨²óĊ-ßnê8ûS°CċĴF ŸuЁ+fp b+°Y@E3Weì€û=¨‹cöŞòK[´Ĝ‰F ׀ 4!ç魁‡ ĞÀ}(\Ô{ÇÙŞpÖCÙ˜Öàrspż›€#‚|¸EM'^k|Vĸë:Š×Ċ^<“v­Äŝ‚ƒ·E^VÙì0€™H˜ùDVÏà—O9ŽC£SŻcqž;G†œĝ§àĦDĤ‘°ì9ĵ|²gc-f‰™;<ŜÉQ ÷À·zf0ŜFÔÂk˜Âw#+0ì'Ûr {I@öùÇY>q߲ǂfĥ8óɚH /zd!~ xĦ¸çw$7ŭğE/ë…š sġN˘üxHfŞSÈb[WŜK‘! F·á.˘Xü6íŽâ²Î¤ ‘ÒĉÜĴ1™îK4,‹\ßuTĝɃëy-‰‚ò“Xfj–ı W ü9µnƒ3°§Ò‡Û •L%žá{G)…ŠdHm xħ‹ĈDûö|şùR DÂ5Úħ×v„êßöT=ĥ$ŜáÙÚFžV;)î¤Ú„#„ò |Ç~żZ&Rԝm;n´žX¸B‚ x3âˆh–€…}Öġì>ݘc¤˜óµÑçW4×uŽ ud: Mn&ħ‰£fàgÑR &NÂÔDç@ôCÜ9òh]?´µaym Fh˘nJÁŜƒ÷ĈŽáÇbE$JThŝóUİ(2ÀjfÖĉ(‚ú ÈrħÎd¨âmòƒ`)NÛ(Ô˙ç •ž¨0cDÇ0_˙çêTžÇϨN] [°ż ;dVıĥëÜ /€p{ùŸ˘İ“0íÈû÷ìÂgÍGĈ’ŸÑÏ/“ÍaĥÔÉ"˜1"Ë( oıŬûú÷ĊSŬiçäCġ)ĴùâĠĊ‹^˘ŬK£Á9²Ë–ĵ]àĜŬ"ÚşĴqBÜŝ"O$lÏܚ"R‰+!Mq& Œ,ŭËiük˂]ÍĈf|sq7˘ß7Ú²›{˙ ’d†ué0˃Dùl„äXNš× endstream endobj 151 0 obj << /Length 975 /Filter /FlateDecode >> stream xÚ­UÏsÓ:çŻÑ>Dè·äŜò:m_ZBÉ;×qއ üġĴ´rHÚ<†2ŒgĴ•VĞŬïÛĠŠ‘GÂÈÍèŸùèĠµp$£™†Ì—„kF-ÓÄ*EµÓd ’Ë'³ùĠ}:–R&ŠĤck]2™ÍŜL/'İ“É|úö•³ûT¸äíÍŭäÖ/¨dz†×)ç"™¤Â&—Wé§ùëÑĠ|ôeÄ!Fĝ‘O³ŒëчOŒ,@ùš0*3GöaëšH%İċŜ°&ïGïFìÈ Ğ݁–ÊE†8–mQ9,şjÙ{Ñ$éÂ*{ÜŜ_– nêW%néŭrµQS­£Ş+7]ı Pöy_µÍè1Œ%s°¤Ż> KHI•ts(äùp )Ħ¨5|0ZîšÂ{ò†d,´£HsN3ĥÎ?([—eIĠûÑ%›€µŬnЇşDU ÄëZ/ä›M]KÔ´8â‘ċgU/ê6[x?GeóÓ!Ĝt˲ˆ!lż58;¸‡ŻşĥİG×zö9OV8‰ĴC•U Ž˜!Pµ u¸v>¤"d@X‚„'s lfÌÀhİsħ2…/…ˆ„NĞ&݇0ÂÇıq;*‰GjĝÖ`ağÛ úĥëĞĉo˙{?½ŒúUğĞ(CĠyQâ‰ĦÈë%ÈÀ™RҖ*› Uq;›>–*œĥ\\œ9‡6DäżS’”Rƒ!äi…ċ(])Ÿ”cŽİA@!•çIG­:ĂT=C$ ^ÈŻiŞa>\–@âÔŭôO˙żO Ġk/èSĜhġIj$ċÖ4Ú ÓŻéX ßeà_…˙âQŒ2qàÚ²1Éŝ:i‚܇VÖA.Ÿ ÊĜ ¨3“‹È’Û=FÔ÷7ÏBçT°ƒ˙%\™yw\1Ÿċ8Ô¸Xáì;ÎNsq•–Àì!½™fŜ†{‰ŸMáÙi§ î³'Hž&^•mÍÀò/Tú“ŞCm£Ĉ.­„&ӕ(áĠ²Ħ7ú·¨ìÀCŭ × ‰î>2.a3t˜aáµPbyŸGÛáĜĝ Ċ£› p‚jÀ8n{&(wöI'ġö\ż…ù íJdÒŻž\n¸:ık{ B1¸2Ğĵ÷’ɳàu™7Ûaю;Šv½öoŬÎsqèù^óµÊQèÂıû ò¨r¨R§T5mñßIœÄgcx}żÌ—àŞ?doïŬçŬ¸bà“'J9j˘ÉN6Á…ùhġc\ endstream endobj 157 0 obj << /Length 2019 /Filter /FlateDecode >> stream xڍˎÛ6žŻQbWoɽARl E³EMŒÄµ‰è’ÊĈŭú΋²ĵë-z04œá ‡óĤÍqo~~Ë÷§ûW?ĵOĞMïË2-6÷›a_ŠM™%û´,7÷íĉŻèíIM^Ûí.ĞŠ¨Ĝŝ}˙ sċûŞäŠ7ğü°?3ĵiÁ Gĉx÷Ŭ8Z#îLሺ–ÓԙFy3Ž×TĤˆ-’ŭ!?ĉğĈyäOĈ!TDÍ6­£E;@<"BóĥGÓuŒ=™İƒ}Ħ™ĉĵžŬ2‰œSö,ÛFŜÚmÁ9²Et¸a=[Ġ…[&ÉĊÎôxôÜ)?’\Ċч?>Ŝ½Ŭ3üçĥÎHy€EyĜİœ›{Áú“òÒL~&;ŽÈ:ÈÙY­Ú3#g'3ğğ%İ”e,ħ"‰š1²Gí‘HvíÇĜñżf@"x£°Ĥ×màš-xxOÇ&9¸4‡³Ó}|8¸§ëdE´’Έ^´vVF^9>ŻvÈè|F)êÑçíNb'5´ï·Yŭv—ç‡èSœäÖùîĵ­óèġ5F‹—àè6h1‘îğEù•á&:q´µ+ĞèQÖQĞĵb  *W‘r°0ŭÂI*Â>>ŭ}EC +ÒF §ÁÀ-ŞŸE‚â€qp³•ÄLx>Ĝ—Ò++óë*Lów-ġ!|ݳò>Í3 Ó<4˜ä Fó$‡èîá–îâçÌçNCއCd_³é!uœħ èĵ$˙Y÷š<Š8Š-@²•(:ßİá8Ğ£QÑĠîgĊŒaş6ĥD1_2-ƒQÁ™ ġ+@]Ĵûpf Ç'BWĤ…5ä%VLƒ÷rŒ˘ßfì9„ ‚LêšŻù0vÉJt Ş_‰¸adŽ/¨ \9Ħ~LœFĥ/÷Œ7Ĝɒy*ö (ÌŸ.­0Xx Ĵ\wn°L!ÁÍn)üh‡ÌCÁ #%mġ¤¨× ˜îGóp—›Tٍf„°ÑŒ3­ê…b}„Ğ%²¨#ê•Í€02pÛY"YÛí%ürCüsìA#wKğäAËĥZR$Œkb]Ëŭ1\èıœBo)“Áòbš<ċ‚‰öu“ùBtĵĉ&‘S¨jFiĥÀ%ĞUÀ€+@ĵÇ1erŞH]çX’²"‰DB1ċ•Š›Iä¸Ĵ‚P £ğ iŽ3´ĉ›igÈiÍWrNj×AmÔUùrı2×<Ò^1:ì‰Ĝ=XLw–½Ŝ*zf€ŝ7] >˘ĴW'ı´ÂVDɐ–ò$A`H ĦÀñItäŽ!X“%G~U+Ċ´ġIrBOĤ&ŒÔÁÓaZ—û¤Ş gh(ŝŬ7=ĝ˙1$î÷Us˘ŽPNj._’†§Èê°Ì@]›×0?.œDĵ )ÀÔj/‰!ÄÇù ’ÎĜÁ[żSÌĴĤW1ĥv;L¨V +¨š!ĠB 2èxTŸœš,N:;µ(Ÿ ¤ĤŒÀRCù˜%Ž[Ĉhe;ƒ9ÏҀëVÉ;Q½+)÷Ï …:0TÏÜÖĦP}²Œ„)êp(Àm~RÖ÷’%{îowžİ€t Ġl2£74żŸ_xaĤ.qW]1`°‘{9Ñ×ĥ"*~ĝI;xh.ıV 'G}žazÌÈh@ùħGq—Ħъ?“5#4 ˘3ĉ+ĜdÖ3ÙxX\Añ?‰<§ü39D€< "E÷tXèògǸ bêR=sİĴ@ÜnÙpLèĴĝ¨B„.2ŝ³zòÔN?Úqž¤˘OUFŜêğ:Ğĝ~X1FNÊ‚ÛÏü‡ Ŝġ !Žğ$ħ\u\D%nE/•Ä`„Ĵ–I³.‰Ôé^_Hş ?V÷Ë+oĊ İŝe!,OġÎ`ŒWN麙˜Ĵˆ^zĊùi N„G(&DžEż‚Zµ˜,ĊÁGb ŝÄïÔ<#Cϛ˜&e™ö½™:‘ŜŜüS­‘‘ŝٕn<ÜÄS ³çħaĵ¤ž½r A8F>dñhŸü½³ì\yš^ĝOïŻz&)Ë}]ò§_ĊzeÉĠĤw÷Żŝĉ߉§ endstream endobj 160 0 obj << /Length 2118 /Filter /FlateDecode >> stream xÚXK“Û¸ëW°r˘ŞV4I€Żääxíĥ6Ž7£TRµŜMBc>dôxòëÓ/p$™“K." tŬ_? ;yĦ÷ÓĉχÍĞwqîA‘Ĉİw8zQY˜x™ÖA’'ŜĦö~óßüċġ‡ÛżowJ)? ĥğ,Ëŭ×?ncĝŭpĜż˙ 9ÚûŻŭƒ›)à|ĝe˙ĉġ6Wŝa˙·÷Ûß?oŜ6_6è½èJ|‹ÂĞşÍoż‡^ ̟½0PEî=ÒÒÎSZY„[ïaóë&” ĵô½W‘$I*…*l‚$VYJ+†Ärû„jßŜ(üuaíœÌŬ•P2äš…OَïšÓ<šíN‡ ˜1úv—ä…8)ġ'Ó×fdvyı´MUÚfèÑp yEA‘ˆ¤Ëh`5:ÀNÛ]œFE)8¨·‘_ÚR¨ 7ô‡Ù^fËÄ |ríñyӃuÊ;•Îüİìd4ŒtLä–“ËóFĉ“FS ­ß­)°fìËĥ}B€ ¤Àl‰8ôGS™ĉkӟp½h ‘ôĜ´-¨*4XX$rj Ĝħì§£ù4ÀİÉ6È˘âXğ"UË}aXö5D'ŒÌ7<\cá&4?—è–ŻÛ8óWċ²K żé.­éĉL*ùsv jÓÌAG {àħ‚‰;I”£@üX<ÌàâVl™ŽŠü§ÁrħMĊDĵêĞ› ¸vħ Td:û?Â+û.ĵœÌ˙^‹âµJ Â+†*ŠĜß™nvLD)~Kü@ôfgï.."–V@h’ˆ0í+a|bOY´ú#9<@ çŬzh!!ò M8¸Ĉ{žû½™ÇĦŸ~@99c™W­Š[ĥ‚18TÀİş—#èħ_•=/ ; 4_5Ç'f—ЁŠcSZ:A 'ŻÍ7vċ…ˆgGÀ›ì8WĞÉäŻ˙xĜżcrdĦPĴÂ@BG X„#*üî.ŽhÜhlNgÁznĝTŬ™rİë*˘ç.‚Q"y9”ı{†Hä#¨F·‚!ŸSlOB„‚ßN˘Î-ìÊZFnhNpŝqVÜP˜‘¸Ċ²¤%­_áKQ4ĉ ÍMŸd2ürûİof9 eYLDƒŒaDä‘˙~°Â“›ŝFôŒÚ¸i‘ÎPP×=x5Ï"çUp‹ĝ1nüÈ5ÛûeğŒöxu¤İr"˙KSí: lTñpĝíù4ŽĴPš ·ġ0;˜°y°İ÷ìw—%›‘2öÀ$ü)ŭˆËÁ§|59ßm?JN•Ÿ9 œ?€ˆˆÙÈóärĊz[Ÿi†ĠUoİHq u.ĊôÈ̀ô,wġ9]ıäWœÎ“áÁpä Œ2è9¨Z,ĥ&k.“ë6•Ëğˆ_"ĴGŞ4N\şŭ’ È{ƒĵ1Ü ‰µBN‡i€4á{‰hxb¤°M…Vûĵ]žUÍò<Ċ„ç"˘\üß"ñMhZLv¤ˆĜĝ5•=ïsß ‚=¨–¤‰ö÷hŒP1LĦpôƒî‹SkÈŜÊâuœ•²r'%·ĠŬá4:'‡Êı ¸ìĈò§Ù2͞·ÑˇhbÁ¤jİäĜW(`2ÌW쎣ù2Ëóçe„rg„Ïċ†8Í8¤4ːCu€7uF–Ġ³<È`|“ܐÈÍŒ¤û "ewˆûaĵŒJÙе{ojH߆4Ž|a#Êp0Pĝ ’ g˜p1që́Ÿöƒlw0ÓOÜ÷ÑJC0’§nw/?0FN˘¤RQ§ÏwĴ™Àè ŬżJ8ĉ.¸˜ê01YÌ#é#ä&1xĵ5Ls] u‘-uI…Ô…²´„·}4ħEêŠvoٛ–ĥÂC·–YC—Zy.ÎQñ͖·‡Í½…é endstream endobj 153 0 obj << /Type /XObject /Subtype /Form /FormType 1 /PTEX.FileName (./figures/remapping.pdf) /PTEX.PageNumber 1 /PTEX.InfoDict 161 0 R /BBox [0 0 295.3 306.36] /Resources << /ProcSet [ /PDF /Text ] /ExtGState << /R7 162 0 R >>/Font << /R8 164 0 R >> >> /Length 5187 /Filter /FlateDecode >> stream xœŬ]MŻ$ğmŬ÷ŻèċÌÂċ’Jޏm€ €w~3;ĞqîžN€ĝx)ġ5 ÇEûÁ¸#6Iñ¨Š§ġŬ½ŻKşŻúŸŭŭööÛ_ŽûŻ˙{[—k]·+Ŭ½ĠkIW*÷ĵÔûÛµ^K=ÎVú‹—ÎíXR µ%ÍâíV–KŝWïğûïä˙˙u[ï˙ñ“kù~ûrKċĜĉóږ3ÙÇ,ÑÊ ú':ÓĜVù—`iIé¸çT—ġ:ĊóVò²×LÉ_L÷×۞÷I—Ö[UèÚ&I—Ö3[hÍo?ɏ´n-ے·àçĜċ,ç{ÚÓ9jюµAÒk›-zÔ?ÇϗÛv]Ëbüᒲ/eŬïÛħ-×.ÏêHËq^w>+ğm)‰EĦ$ŸU,=°lu|ğA’ÎM,êR={VÊR‡EA ‹’&ߤ4‹^Ÿ>½ĵË+ĥ–€ŽÄĥ—´ìğǧuÙj@—ëq5 hÔş-Ú€²£3 bƒĎ:˘p%=L8ôé½.ĥGÛêœ9ò$Êàע°è•s`¨mۗc $ċŽ"Ù=íÊùÎ]ïbì`ע+¤ÎF#ċ=íÊY/´;$çı¤í +”´-ú8ìħXÑ9ÁHx˜³l8%lı.5í¤„m]{…xVvJ B„‡ ÄLy/.òC£ħY6"tKWBC>sKwš£ì ħÀà£‡†\B„‡ D$ğöÈtċ:—ZŻÀtDĤs-ĜUIcĠvz*‡íž?ı§HuÏûrs_àş=¸Ĉµ`ç5Òkœ­F²{Ŝ—³]h{“Ô|-çî„Pk]reşZÑ ÁHw˜£Œ œŠ4“|ْŠĵA­B<|+;!PAbfğÙÎĦAÂĜ,#ş,Ħ!§ñı<Í­ Ab‘U,pÒĦ‘—¨aA"²Ŭ‹{dğ½Ĵ‹Œ†ÛAÙεh·K0çjÏЍêfĞ‘íž÷ċlçÀv1zpkю5RÂgĞ‘íž÷ċlÚTé#÷Kş'ÓĠŠN&@şœeĞÀ a_Ïĉ„"#€*@Ùù€ˆLf{)h‘é%ˆÌ²[şòŸ[şÓeI‹„ba“qŒ”D ‹L"ϽĴG–;ÎĵĴ9œ "ÇQFçšÛ_§cO6Š›ŒF†{֓ó=ŜBÜàêÀÈk£Ö6ÜöĴ'g6ooœÒçß²g˙ıË‘³eÏHŜ€²UáùÔµğ4‡ôù[•xäVv ˘†‡ĊÌm/.²ĦAÀÀ,¸eİCCSҜĴì °Àà£ ‡† \˘†‡Eä·öÈpWŜ–£†3Ad8êH’ZYĊyéZ5ô=ŭD†{֓3=áBÜ ꈵQÂÚ&£‘ážġä çí ôó×}# \çşHǜв“$Èqx`ıWá$p^ığ‹è[Q}=e'j€İàaD13܋‹ Gh 0ËAnYêÇÔ°<§” La‘I,pr Ħ‘¨al#ŠÈp/ì‘áÒş×ÄH"Çı–ÛÉV#5µÏ^šÜSdıç}9Ïı/]ŒTZn‡]‚gĞ‘ëž÷ċlڞéï!,}EŸYBÙ<š/÷:ÂÚ井ĉVéñN (‡µIh0Jó0ᘠïġEÎst.ħĜ°2ˆĜħvHt\]„Váe˘£¤ÇF;ë :FA Di&‘ö^Û;̗×cÉ)2ŸIĉ£–ÛċcنŬ!é´í-³ĠÄ|Oû ÌG_d=y‡Zn‡)a³ĠÄ|Oû ÌçmO‰ t9™wù‡'m/^è&½™{ıWh!U’WdÖ@QĴ Dh&¤÷J#0—XdÈF é `Ìgûés– ’—3JÛ9Àœ• ašƒ Â@uŻë–“ş\%²œI–£–Ûí-¸ÀL2†^θÎ= ,÷´ŻÀrôE– ѓc¨ċv¨Ñ%¨qĥšXîi_ċĵí)‘Á€E"ËZ—½xŞZ9I˜ëĉÁ˽ŽÀ[:U’Nd4Ö?Qt Fi&T÷rĝ#:—XlHKĎÄ%:Ĥ64ùÀ2ÑQÒcsréħ;ûÓ4y˜p ¤÷rĜŜar­Ë~Dĉ3ÉÀ|Ô˘]•hޏĴÊħöŜl51ßÓóÑ™/DOŜĦíX£{B³ĠÄ|Oû ÌçmIÍi •âQúŽaägċÀ &aŜ›–­ŽÀ Je/#•m‹ĞĦ(f€6Žĉ{9|ó%ˆ{^-vîŠ:ß7kÈ}x@ÙÑQÒcs~éħ;s4·y˜p Ì÷rĜŜa}ËËċ낁÷ FµŸÊpAÊ}t7ÙL¤÷œ£ÀxpDÂó¨É6q#Ğ̨l²™Èî9GéĜÖÈhàHNûy->§oĊ@]À7s/7˙ö5-kíU Ħ+Ç£ĤÁÍá^ÙÀnÀċ İgq#7‹ÉkŸ#·aÎ2pQ£rúèQ;Á—S4Ħy! ĵöB¨Ŝa´(K(Í$§QËí˘İÈ訏ĉfĞ‰Öžö˜Hm!zÒ µÜ5ş5ÎV½=í+0œ·=Ï&IÏż„QŜı­Ëıy˘Z9PIü|T÷À²ĠÈàggv28¤ç_ÂHÒʁ  Á¸Í„ç^ßÀvDçç“,6¤%bGâS<#ePvt”ôĜèÁbgDÇ(¨¸Í„càĵ—öó]İ.ç0Š5ÉÀ|ÔrğM_´ÈVçUûhnĥš˜ïi_ùè‹Ì˘'ïPËíP#%Ĵqĥš˜ïi_ùĵí)‘ž £ĵë^c8×iċÀ &aŜ›/÷:âÙѳ,5œ=ġDwIZ904È_ĉaÂñÀ|/‡o`>˘s‰Ċ†ĵDìÈ\˘cnCı,ù£ÇĉüÒcw:ç(h€Ì„c`—öÎ]k=–=Ÿ "ïQǍ\ŞòşËpzn†Kžsn€#^àQó$>tÜ•ıÄ*›lĤKžsn`[SpžËċc½œ’t!y+‡Cò&áĦxóàċV…ó@^³÷òşaYԊÎĝœšùááü˙ !Nŝ— ,*ŽGÔ8O\< †‡–‹‚ô¸Yp1|ŽÍ|„0œù!TïŬn˘Ot‹”f’Ó¨E;-%ž[Í2œë£ıÙjÛäY_ñ~ĝòûMÉ&Út[à›^t –y˜pß ‡ì£VÈ>jġì£ ²Ï·• û¨²Ï,}|Î!û¨Ċì£VÈ>#û¨²ZÌ>j…ì›_ċïĵîҁ)‡ökî—_ӝJ›>·²lIqɀċ °.Ė/Sù.ÂGU—Ôî׆qĤô Nİiğ†ñŽq+nm‚şœEëžÒĥġä*]g}V=ĴK{ıEv½ßO7oĵ}€£MS;–t³ż„ħÖĥA"IK[’İ­+‚ĞvÑĤ~ġî—p܊‡ĵjn[ ’ŞĠ³£9ô(轙Žĉz%úÁ…rnúĤ-§1N£›<ĥ-/µá9ڍġ‡!âq³‰µ­”.]B”4n[g²ĈÒşw‚îçgq^ĵĜ“|ʋ>ż„ċġú\ġ-×ĥ6]ĠžğÀè0´a³fCY—’Ú€òL:‰ĥĝÄ$µùDa˜Ğ%£Òx$ Ï0µ/É˙q°]ù>Yġ L‹D‰âşWiÍ=·ôşĝU£hUżX[5Ü Ğh„ıĞĜĤvކ–”Ûb~9×ê]½ĥÔf×ÇÛPf{MÚ,aĈ-ÛÙ0ëLÒÙ÷µ²á‚ڏÈ÷ÀŻİ’5×T¤İ³óĞŬ_ĈŻl\g˜À=uZKZ—òFkİ=½ ZKqŜŻ%r-Ö’j•´–4Më{g Ŝ>F‘’óë8 %iĵz’Œ–ÙuK‡6ġ{˙èˆ /éóï½|ŞŻ–gí0Ğĵ$ÛĠá4`)Éàĥġb²_Ğö‡ä¨GÇs¨Í*ézŸ+Zġ_HlהÇ9´ë™ċkĞxğâBö‡xA‹·Ĵß*h”Ĥnk#úŝë5‹¤jĝnŒvì§À.Ñé)é›Ĉh‡¨ċpé`ĵÚ_„gż^q, ğµoÎ$Ÿé£ë5ÈşA}Ġ£Ñ~=Œ÷ŒñdĵE=´{ôZWé/´]Qú¸EC÷(:ÍyÜ:óQ’Á)ú­şË“ĵ’áYµw²oë½%²^ĵIçxw.nŭQ ÙżmÚ'fږ”ü-µž۔=‰˙~E’½!â7÷-ĈMëıö>NCÒ*\xÓ*Ĥß‘HâžxC¤x.áVóáĤĤßT}˙´£{ġV•CÛ\ÚèKú°[ëĠûè ÜZĠ76kċĞÎ`È3I-ïÚA )½#oÄİ#ŞŝmzЧÒ¸,k òġR­ ^µ½8œñˆ;Ĵ?F ħeóŞ}˙+ĥìuµ+[ĥŸœcâ ]èŻrcĦÉë^tX4R>HùÒdq4’"Ù ,-­ĞÙáH%Ğ~ßL$|3ä[‡ž[˙i½ck[ĴŠ`êËYgoì…â„Ŝ/oÙ{>ŠGí8mûŞÛÚ)>ŭe²ÔİŭڎôÁñƒ3éçèŬYT„j˙²k×{ +œŝ–?+ôˆŭ˜¤K-k ŭ˜t¤ÖġD?Û}–Û C6ò³u Dpµ—Ŝ:IûKéd"íÚ­ßB"í9k˙Ö;M’2;RŭĊ›N>ż}8†Ù ĞëŭCÌfÔco}ëËàgğò<à u6„Èû–úU=}!e°a!Eék„D2’óÜ[ÛòµdÓÉ„DzÄċ‚ᇈcœ%Zġ·­bğêoĥd·vµí>ϊíq–ˆ[{9;#~•½0;£Cµ²ùìŒT£–>;“tÎ˙г3é´IÜ>;#ŭŽxŬܰĊĝCÄg‰²N‚´u›%oG˙žo³Dx>Œ§ZĠ÷ÒĜäŒHéŻOÎ䢃³Âٙö.œg˜‘‡iĞ ˜ÉzµÑ~pvĤiĈŸŠŒğz>H$Ú²¸ëuƒu=ù÷÷ġŝ§›Ŝfâë9—T’a9G|ÉÄ⊉*ĝڄ)Ä İZ:#ŭJi˙ÛІ_ʗ^`8™’­Ħ˜—PŝzKí÷˜ïöçۏûż}½ŭö:ŜŸ|Á|}ğġßjÖYñî:ä‘nñ‘ï_ÜŝéËgùê>jJ×§˙üĵéo ĠŭÓğOï}ŝ?Ÿ³ A,ċĝôËçßèÓ¸|œó§oí_g=ƒìÏ˙÷Y;WŭXüˆ“\Kú×ßŬŝŭëí÷òßß4÷ħ endstream endobj 154 0 obj << /Type /XObject /Subtype /Form /FormType 1 /PTEX.FileName (./figures/remapping2.pdf) /PTEX.PageNumber 1 /PTEX.InfoDict 165 0 R /BBox [0 0 295.3 306.36] /Resources << /ProcSet [ /PDF /Text ] /ExtGState << /R7 166 0 R >>/Font << /R8 168 0 R >> >> /Length 5178 /Filter /FlateDecode >> stream xœŬ]MŻğŬ÷Żè½HER飴  Ŭ<{du3ï9A 3ÀäÈCJ} _pÎC`‹ÍOyJRIò?îáˆ÷À˙ɟoßożŭİŬùŸ[8zg÷_nħÇ|OGıżġÒÑú›µ³1܏”!ñó-ŝWî˙ĵĊûè˙½…ûüÊVŬÜbn•Saşúy\Q~F âÊü@§Eeì[ żQÌ%1ĥ{Šċŭ"ÍgNG- ”ż ï/·šêĈ é³pèÜB‰íìlùç_Iϗ[Êí:juzb×‘ÎĊ÷TÊI9.ÈÁšRĤµ]bzŭëèùr;{?Î|ùWJGġ~ĥóè,×âÑ~Ç‘öÛ팑$2(é*$ĦmħñvSJĵN’(wĠË5mŠ m“ ñâ%4lqĵQq½n|#çjmGÈ> ”˘ĠGV¨ï5†,.şTZÊĦy˘ĥĵyC&İoŞA}WzaÓKhĜâà§÷şħ=âŬYêq%wJaÌPĵ1.ÈŠö”Bg=Úé@Êy°{Z•áİRĵókä`5¸ ­÷´*C=×ïJı#ž ¨yÇ"M!hÁĞ8ÚbÀ áLċ(ħÎĤA}Ò6H‡ş¨ĥ vÈ{ħà<ŜıPŠú&Ġ¨Kı"4­gŭ]ÓCĊ·t1@PÇT:,4uÁ8ÄEĠ°áÁîĊ{DşÜŻ£”îN)éŒKċ A s™&uÏë2Ĵ3]ŠuŜ{íQR9³M°¸K­`÷ĵ.C;×÷B)İW5@(İ \i€ -w×ĥ0@Ȕô² dÊ aP´ ÀĦNІ-ˆí^,8v.„ߤ"Ġu)Y„Ĥ5­żKz@|Ku ¨"Žvp â´jĜ‚h÷b=˘]Íá Ù°C;x´3.ÈUrĉjĦj 2ĞÛV´{^—ĦéR´óŜkä`XÜV´{^—Ħë{, \Ğħv6^(Wi AË]ĊÑ5\CĦ ͊3 mp¨‡˘` aÇş— Í#{ŝJQϤĠq)WĤġĴżkj¨ĝ–*âEÜâ 0@8ÄCQ°…àqîÂzDıv#$rBşB,µe· ­÷Ĵ&7hRxs~k?‚G…ÌÔÀÚ&´bÛ³š ÙĴż…pј˙LVŭ×y-FT§ĥ­ŝ•˘ċ­´-&Ĵŝ[ S(h4ĉ&ġ‘KÛêµjX£ĜħíĊ‚óèf 8&5ÇJ-4­cpH~@š/†ê˜*PÇĠ„…ĤN‡x­Ö(<½X`×Óy´âNáÀĦ|W.ġÀW‡KîYM†p¤çü֎„` XۄV„{V“!œġ·hœê èW8h`Ž Ġĥ€R´ĈUÚӄÀĠÓTİ(ÂYQì{€ĥ ÀĦHÖ(v„{ħà<ÂY(A“„RšÖ184?Tš/êDÖ 4 8­T…G¸ ìáb¨ċÈŝ „R<Ĉ—ÉQ†M1dÂÙî É4y”{^—áœéR óŜ›¸LN-E-îR+Ö=ŻËÎġ=(4Ŝoˆc˘ħ˘­,iÛA)ĝò(Ĵ=m¸o“áÌC§j4âo Úvß&•^І-Ž^/>y.@ßôË úß.*òD4lyOŠo ˘ƒàP/E‡‡½×‹íäKĦ)zäʂ|à2ıԎsÙ/ÙŜ²KmÈ÷´.‡|äsŜ£GÁerjXÜ6ä{Z—C>ë{Ph"À_ µ&SżXÑÎĤ…I@ы¸µ§ ħV\ĦY€ûŞm‡ ÊĦŠ‚-„{ĵ³çŠxĤĠ(Žkıj`¨gùİ!â[Ş8@˜~˘L· s40C%ċEÁÂuŻÖ;(GôèÙ£œP”—ÉĠáœC&šC—ßgš”{Z—C9èÊ9ïџà29µhµ¸Km(÷´.‡rÖ÷ d€żEj!ĉPŽš­TíÀ@(¨uÑ`íiĦÁÛÁ³JÀ ÍÜ÷Om;8Px)ĥ8 îċâ[Î2ñMËR}×ÂEt(mċ@žˆ†-o6ˆo.ÓwCÎàI9ÔKѰĊħ€ŜËĊöòċŽÚ<ò eA>pA7ÍVˆı…9Û6ä{Z—C>èò9ïÑ£à‚,š&µ¸KmÈ÷´.‡|Ö÷J))îCe,™ĈŽnĉ'm‡ BAŬ‹´Ċ†C†\Șíˈù<ŭ×Pm;dPĝ-ĥ8ïċâ[Ï2A)êöĵŠïĜĞÑÙYáÑíf’ÒvÈ À/ѰĊñ€|/߂|–  ˆoZ—êğV.˘Cm+òD4lyϏNß _Ĥï†@a”r(†‰†-Žù^.ĥwîĠŸ<îÇ„şƒŞÎv,§÷UÍr ÀsŠÜ-Ş—˜×8uĴ<&¤ĈŒ"Ĉ6™í€çı[× \×Ñm—b¤á£;$/mwH^(8/Ĵ=L¤@ŭ˜lş—B4 ôwx(âkç˙_(²ċä?=╎WŻġp<âÂáxċ@fˆ†5SŜ\êLÇ `ú \ßĠC_CXÎüżPTïŬnÂOôô&”ÓÀ9"ٟ[M4›³ı]jżÛäY]ŝ~Ġe÷›˜÷èMpAM“ZÜö;NžĠċï9Aß+%ÑȟżMjĤRy8ž´u.ìi!AĴ× (aċفÍl;,Pĝ-ĥ8ï9yµĝÖ{N JQß´*Ġw-[D‡şVÍĠ°ċCñÍ eúnà£Ñ<)‡ú-ĥ8Ö{N^-ĥwï$aÌ eA>p™\żĝ éLaÎĉvİ ùžÖċş€|Î{ô(¸LN-E-îRò=­Ë!Ÿġ=(4òwׁ¤³7ŜnÏfĥ2u/Ĵ=m8d8C:-4òwßCµíA9àhĜâx@—‹oA>ËPÄ7­Kġ]+ÑĦĥ•y"ĥĵqè Lß 4:(ċP/Eǂ|/Û;ȗŻÄ;”ò eA>pA„t\Ëü3×4çvğԆ|OërÈ]@>ç=z\ƒEÓ¤wİ ùžÖċÏú^)…&nîWÎÎÛñh¤í€A((ûİÀn‚›.dêâlĉSĉ6 ³éPA~‡Ë"…zŻڂwöü•"~i1ŞÛZ ­š˘`ˇâLÇaAƒ úğş,â[ Ô½RXï \M™7(;”ʂrà2ıœşÌFkÈs†·Km(÷´.‡r”sŜ£;ÁerjÑ(jq—ÚPîi]ċĴïA)e|ŻÔBĴWäŭáölfÛaPPê˘ÁÚӆƒÒÏĦhBYâ‘jÛÁr°DÇÔ½\| ŜY&€"iYŞïZ·ˆ…­ÈѰċƒñͰeúnè£Ñ>)‡Â—hĜâX@ïċb›ÈW{§ÉğŠ8ĉħ·âû­ħ˘ħŻR6[(!Ġh}¤@èç—âoËĈç˙Kµl)cRÊri_âožK)žĞT^ıKŽK)Ëu1‘gıĠq)Ċs]…F„ó—r)eı˜Ħ˘FϔċÓy<+§…ëĦĴÇ ”ċı„²n&/Àö:) WĦİ|ɞK(ëfĤ@Iè½WÊÂuċĊunq!ŞcÊşäœĝ&A˙œ…²pĈ7py.ĦĴS™È—Ùx.Ħ,\RĴŽK(ë€aĤò÷wÒŭ‹Û/™[éĵ"‚LV‚IÙ ~§¸êû7)ŝö˙òÙxĴú`ÎU.˘Dġ)—Ż>ċ²êS._}¸ Ġ§\ú”ËŞOı|ġáĈTŸrùêC? úúìhĞV¸\ġYŸjġY§Zġ Ġ.W}ĥAOĞ\úÀ5Ğ,Z}ĥÙEĞ,úì3ŠVž³Ğ>pĦúÀċŞÏĤçZ}àrĠ.T¸\ġíİüŭt'—ĵsŽ| h芽”|×Çݲ{ñ Zô>lz—ÒKtğ˘†ô”@„“Ŝüe c>Zó>ž8öŸ“ÏĜדxم|ıĝïëé'gEéMˆȓe:M^ÈYêŭÀ[Ë›oè?ԍoÚħmœÓ¤ÑÉHçĈŜ˙HSƒĞĦÎ/ĜrŬvĴ]żë2P–ĜŭÈl} §pğÎÈŸÑâğÈòŒ†ġòiÇÈğĠF4×Hb ċh3˜3OGŻxßmú^ŭX?­ĵşG3בÓ|7üĊo”@c<8$w^`×k=1–Á5ŸbñO=Pñäċ^zVóMNœW0OŠ˜ñ"\.J„0?:‡£ ‰Êñ§ÀO]˘Éc—Áq†rßmú^ŭX?Ğgĵ—@ÚĈóM4`§‰lIém\Ĥ‘x—·^$¨ŭj şw™]³<âĦ1bbĞY–˜Ĉ…ŝd73¸É›İ…(‘‹(³ùšgDud‚Ü42Џ…ÄLu}ġ[ġ=ûў|syá4CĜ˜CĤÂÊf1ë}fŝĠˆÓ„‚j‘mECµÈĞĴáލöUŞE^u½ŞCµ˜ ZŞ˘ùyòáÌŬè‚눂˜(e[rH#éM H ¨ŒÉƒ‚´—àށAä[âŬ'cŒ_<Ú|Şb”ƒ\J£F0ÄÀfD>Ħħĝ§˜›y7÷^Úm.½úĦ~¸NmW7Â[§^4”ŸwìÌNĠY0Á -nŠû9ĠÚuq¨5ġTLğB•ôC1m¨î—´Ö‚ âÄ´ÖʑRğo}—~œVú„‘ôSž9ÊHNè§]%v5ŒÍIġ™XgşËœu*ùÌ£ġ y6VTštäßÉáG0T‚|pêÊG0ŜmĤ´s9)êy./ îâˆ/ŭ@Ïb6Qú‘’Û:t@Çb(áŠßî“!½i@Ú̑0jq& âÂ<ŬIçŞK˘dšù"I¨}ñ—ŬĉRüêş•í|ÓLW’ïĵŭ÷Û|CĞcH+@lĞ# Ì~΄#üL/ŜˆLÈ;œİüµÛ@$ΊĈkœU‡Šc 9똏Ž.¨ĵ0Òû1RşhĴ‹ÌkŽwĞKÇ~°'kS(ᘳ,éZžM³IíÚyx=ĞgéÜ ;“%šèËk‰†ÚoŜ6ĥ@‡ùÁG£Ħħa8Ş &ž£ –áe³¸Ûáù#xu'üòšÉÛÏé}wrzŽÎ(zŽîñtß7ŸNOërépòéhéx=dĤ¤ƒd‘­úiVı„°mMú,ĉN{'Ÿ‰ĥôĤvrÌGqÒ0#,ς˙Q˜àĈ9odۍ.9ñħŽ céÀ³Î<ӂ&ñôzÎӟĈCLI&,fhnY·ş‹Ñ3²R~h}NïKŠsú_2/Üùâ”VĞ"òĊ_íx­É‹Ž7TRµó‹‰;ˆ˙™$zO •›Qß­ìˆÇD~ ŸĠcb r÷ĠÈèŜA[#Ò½„q?€ ˆ1v íĦÍħCĴó;4şsıLƒrU ¨]–!³ŝœ‹•FóÁÏ]ĈÇbsÍnt(²ŬŻïá³·ÌR=£ rÇĴÚcr ³jvfĴ!•Ŝç5ġ:kH•žk<1kH\6͢ñŸ  ?ÖµĦÌS×­)g?%Ô=öiC÷DĝĊ!ì“ǢL(c”)‹2cn†ÉMĊòŭš ›Žä—dĝVĊ^mI†Ĉ3ŬV‹ëÒÇyᆨ‡ÈŞ[J…&KgÄş> û£OĈŻjcšĴĈcÜ?WcRî3@Wc/× -ş“2ĠÛĠŬjL—a1&ñ?MÜ ÂmùAáŽŭŻ,áŸş‡ûŸo|{‰}żé•Wš–Ï7Ì`ŸH„Á!aû! ŝS™î?Pü9MĞûä“:_X¸~ñ&ùf"ĝdò[˙ŝò]ŝxû~˙Ŭ×Ûoâq½šèò•ä d=Jċ­ç},á|ŭ~û§/Ÿy%³ÄĜ?ŭ×g~4­ÔO7âŸßûŭż?˙Ĥ&~ċ·O?}ŝ o*ìMNéÓÛĝÛU.GûË˙~ĉDÏŞ‡&= Ŝô„˙ôġ·ß½ŭ'ŭ÷/60²ü endstream endobj 6 0 obj << /Type /ObjStm /N 100 /First 880 /Length 2700 /Filter /FlateDecode >> stream xÚí]msÓHŝî_1ßêŞh͛^¨­ $pı… GàvY–şR쉭lI†„_ÏHĥ£X1Nl™v§ ñL÷ÌÓ/£nÍXÁ<ĈY䳈qßc!:`\1)’)ĉİ•ӑf¨÷ÁgAàġ„ÏB‰JÍ")™äŒ{ Šq ´p)=&C\ÑğBğö8Sè4@0)Ħ)ò£žÒL{ĦfJ1ÍC…JĤ†V!Óµ`ZĦ]sĤ5Ú5Ş|ô£Q”úí>Ş˘Pġ|…*ùĝ'ĠG“Š$³‚zg~ÄB™E("ĊĊBíá İ4„z!ˆXé z,ò_y<ß2@@!"%@Â0Bż]qÈúĥ„ Vʃ† µÒc@×ÊŽZġEÄ{À̃ġ>ˆ#…zô äPFáQM'"KĥŒ@"<%A}&B!ކ^ {°Jš° ´€ncôĈ\–ì‚˙V|Ü[vÁù!Ô)vB¨[*”]@´“tħS¸Q n\Ì obù–pEËAïXğğjT-ˆz_1Ħ0ġyħODğ@—bşôî]Ê&vÌú&gžżzÁž²˘,úy2-YôH{1nnâ2É&‡qiĜƒż G\x¸ûj)ôß<ŝƒçŭş—Ù`IĠU†ĦŸ’iñûƒ‹ß2ŭȈ§Ùô*O†£’Y^ö:$ŭ8eGW†fçċg ˙›¤L1Ày2œċĤ ñ,-“"˙çú{xSgG—ċóÓxztòê%7[­Á`ĥ$/ʧ£8G°ïыxñ%èÑ/É °J`C;"AàyàéìĴĴ:°ŬڇĤÖä’~m‡'qa*ŸPsSMúÙ ™ mÓŭí`”߃¸Ú@#;6,joŸëñµ’wG´Şı˘ċµġħhìÑar~nà³ÖÇßKAĊ4î2—ŭ4ÓÇYVšÁYJ“ÙĝÌäE2œ KÓ8§İÁ´˜”Q*âÉ &.ijhj§AjÎËşTıAß&OŠ šĤ³‚úÙxÓèj:2Û[’ ¨HbD_LžQ61T~ΨċĈ9f!'Ÿ É%ĉxLĠé$a?K³ ŞÇI]JMQù8‹SÚù`r 3…b—t@Oè)Ò=£çô:ĤÒOô‚^ÒÏtBŻè_ôšNé ½Ó/ô+½£ßè,ûĤĴd:Cħ†:Ż]È×O’~’÷gcšMPK?Ë ÄÀÓġi@…†4˘„ŝ  JiLÊhJ)§‚JšÑ'úL—tE_ŞŜÍ|ÄĵŝÖİLҁĦ³Yšš’ŽfÙĵ|mˆ38§YžL–ĥĴêLšâî4ˆ‡Ch§XK×ĝÏSsiR޲YeÜÓ~œCyY’V=W¨NŽCŝV7Ïż5qT„U݆€q]/uӜÍLVµf\]j)Ë<˜qœ_Pħ¤f͖ŠĝR·ż$j+aÓĦÙç Unk]1?ġgıġŝ+ş‚Kċم™XeĤ_y˲›ŝâîIY>8‡§UŽga¤fœĠ~‘fC{KdċÂŻs3LìPf@¸o Ì:´èóN^Ì*˙Ïkg_~‹û³ÒàlçP /šŽĉóÄJPġÙG0Âl´“eÉxcĝÇ,½o}b'En犣8=݇œWËYR)ê ö܃ÇA3jĞ,µs[]ÑÓ¤£šù¨f>j0-ıŽkššĉ¸Asĵ¤9*Gôs=ÜIM~R“Ÿ4ÈOĉK*lMÓ+:İçéۚġmÍúĥÁúvÉón|3Êrĝ—ÉÇû³´ x>ëĉ¸Á×ĈË.âJ 1nH 5˜šÙÔÌĤÁl–\IM“Ô4Iƒ&YÒ¨aR—ĠäYMž5ȳ9Á’k|JlE­„YÍ8Ğg ĈْŞn,+%\-Ş?¸èᢇ‹.z¸èá˘ÇöÑcŞHóŝú1ß>˙zrö&UĊ}<ĥkŠğ<Ŝ+ġñ^İíï7/öĴY²ş^Ĥ@Y3ì"“n-ްk™Ö,½ìĵ˜[‹Yšw‚}Ŝ.ôŜZċÒzÔô™Ĥx×rt`żµüċ˙5—żqé7ĉVÀ‹Nas Ĵ²ŬÚ&Q-ÍżqÏóo!RaT)xÂâ:_EşħĤuŬ‘ íżşÚZÍŭ.֛|í֛܃{bpO î‰Á=1ìù‰ákO ö×)ğdAA+£öï·Ç.şË‚üÍYż·,¨LúĠ½Ĥƒ(XŸyÍHêEšFu½ïû\ÈRŻß‚³É×J…7×ì5äz%òşN…}‡­È¨Ħ- ђŻŝß *V@…Ğû£A¸çꆝt–Rĵ‹­ÚmMşTъ.Utİ˘KŬÖ¤‹.z¸èᢇ‹.z¸èᢇ‹.z¸èñ=ŝ kğÂ-îŜoq7üwàûY܍ÜâK°\‚ċ,—`ıË=žğèᢇ‹.z¸èᢇ‹.z¸èᢇ‹²·ŻİĠŝ™²dzÎ}Ĝ•ó -£î\ĈğxÛí·†Ż‚³ĵ˘í‘<ÜĞĵMQnŸ]w9gkyÛ>,öàkî,ëdżáŬÚ·}#jŻò6…l‚l–wkÛGs‹`Ÿ>|§yş?›ĥOŸĉ÷;~šß÷PĦÍ÷Ŝ­eiû§TË²KLÙŬ?eÛ?e½ŒëX'Î~¨Ú~¨öꇛ´ê<PíżR ä^çÚ}óìĥeôż•7ß>·ŝûĵ-Vt/ħ´Ĝŝ6yЈ[‹ÒÎJïwŠÜzQ6Ŭ·…ì·Kîy·Í†`ófC°·Í†ÜtvF\(Ö˙„ŝĈ)pë>ëß>ü­Ó­û×uÜŜÛ;p{nïÀí¸½ƒ˙á ußG2xĦîżŜ endstream endobj 172 0 obj << /Length 1894 /Filter /FlateDecode >> stream xÚĊkoÛ6ğ…°O2P³")QRżeéc)–6kPŒ‹”¸oórúĝŽ"Z]‹*ġۍFž”Ñ€†J˜à1w·?ÖŬ›î÷aêJ•ğ´ÈŠâ ĵjZfmFŻeu!#w ­·Ùn7‰Ĝ×KÚXU–ŻĵÜu-·yQtC¸´ĝ°(ÜĊÛĵŬĜ›Û2ëÍRÁ.½ç,ĴñµÄŻêÖÜK„  s¤‹Ş\çċšöÚÊŝn4Mĥµ”—(OK{° ôħ¸êN˙MĠšKèd툺E0.S§şw]i(ÄĦ†bŠ ‡öìÙ݈E°î GTm¸À^ÊRŸ”1êŻ#ħAk @z]LY ¸£´ìjÔäİ‚I5îWŽÑÖIĠ È&%!zHbq¨#}¨Ô7"[*hcêÌüg‘ÑèĝÛ{5^È~×膠jEG­{e]T7YA› LëĠ–²C‰oƒ§ş™AzHC—;ĠSôùÛËËżŝxûî×çPwÙBGñ$VßA .ƒ’Ä{IÌnÓĦZMäSŻ 6ħÀž;"N=¸ mñ… ŠĦw:°ÛĦÖf!Á¸rċ—½ÊÚÒ^ÊܝŭğƒyqÀÍFŜşÔ Ŭ4Y}GÛĈ`ğÈ·Ó&“1L£ĠŒ—VTútíŜV–”ĴëÊ$:ž]^MıA dF['GO÷kĦqàaûÀ0ı< ŭfSuš0•{ĠâA ÌTÔĈșç³ÈËÏ´“•´sbx°ÌĦ†Jmê%¸RqGx· m{U‹wLa5ْÜcŒûĥZk,”uW„Şŭĉ‘ÁÁuóİy ÁŒp(a°ÑmkTŠ Í]V£Ä¸2€ÏltIñ¤Ĝ¸ ^:ĝ€š<žšŞËĤŸ›e`=MûöQ“İȌ„VĠKÓr‚Q6Ŝìv};J'¸ ½Ĵ^ŝdïí\Ï ġdu–€#ʟÜıe=ë!GñI)sè81£ĉĊ!5 ñëq?Q|4“Á9NÒäáZƒĴÚí8`ÚıĥĞËħ Ä2ŭ ÷ĜÄĞdŻÚ|µo¨Ó#—wiSuC2ċ6)€Ĝ!Ëĵ†ĤĠ„ ˜ÈĤƒ$î%Úîòş+ÀĴ„~-èċÌĦ‰Ùò0ƒÙÒ1l™m”ái‘u„ Ĵ$`+6ÖĈÎxÌYƒĝLŬUß͊Ñn–ŜeÜNT¸ħÛd·Ïµmîy­3Š|İ\ë ¤EÄ`µEŝ' `͚ o1zrÒşêğGu_×( TÔŜĦډ”ĊaË£z~‰EžÄw­r7(3R,”Gí‘.›ĥĊÙ œ²[‡=p5!WÄj¤mC°ŻxŭĤp´-Şù´°É˙èĊA£dœ,µËÚV×%ŽÊP„ÏÜ4a›2µ3 , Ö&¨½ïE„İSÜtı)w‘{î@ŸgO)UFc,Ñm’°Ċ£[ôc­G™=*~Ĥ“ÚeG˙{†9t˙tïŝnH´sà÷ sÇ&ċÉú›nİİÌs ”ğ†vŬX”ŒÏs"ÀïP?2•ö˘~;:Bèŝŝ"š_pòÒz lßßĥ6óx0„Ş(Ù6cyӓ@d™òĥ¤Ġ‰_À[a€­8>“PÁGTÒW’Ŝ3˙Bç> stream xڍ’ÏoÛ Ċïù+8‚T0?îm•šŞ“:ġà[ԃÛ8Ž:X˜-Ûż/ĈÉêvŞz1Ïïñ1G-âènĊçñĤZi‘ÔÌ:+PµGÂpfıAkıfZ:TíßtÏŻoC=ˆĝyŞ_LŠC%+á@:Ï5Š Uĉ“[ñ´£-5œ‡fëĥ!TÙ?ép=ŽŬħ…Çñŭ1­Ä&ìë—Y³!NcO¨Àü³g„P><Ŝ_gÁ·<ô٘à—Ô¨ÏĥŬGÛ1ÖGšBoĤK‹¨Ĵ4&‡ßĠaÇÒnħQĉMGi™úLŞCŒuQœN'ÖŬûñ|h‹‹´$=Äŝuš‡f!²ôžß^ž,\ŬÙĝj F•„hú]´>uù•MêÙ§Ù3Ħé=@7°ä\ħċċÓKKĝĤœ­ĥòsDFÛ%"£×ï% Rʓ”""Á­KŒ¨JƒáÛß°§ÄG˜eD~ž&“è³<Ìg !­süáK ıDü?tN2ċÜ×ÑI~A's:[,p|JĠXf”ŝGu˘“Úà×à•Š9­ô4LùJ/D·Ġê/egüœ endstream endobj 178 0 obj << /Length 1608 /Filter /FlateDecode >> stream xÚÍXYÛ6~÷ݐˆXŜGi›[ @‹ĝm“­­Ŭ5àĞĥœMŝ}g†´,ŻeïşJ“cŠÎĊo†äÙ]Ĉ³wžúŸGƒïŜJ—IÎĴ•&Ŭf!0Lf•`2ˆl4Éó×ĞĠ°P"Ż“é œÉ_?~‹k5sŜ \˳B”LËâÔ_–óĠĴŞĞĝï͗˙Ĉċ>ƒéVÚ´Ĝ¤Ž‹G÷ÓͰRçĦôù}ıŞĞ5¨ĈE~?ùr(]ŝ°‰£eœ=Ÿ.Ĥór˙ÜlaVéM=áq#.Ĵ˘DlX8aóĞ:ŽŽ—‹ÍtS'–·ħŻQ–l–¨ -@hc˘ċj5›ŽËz ‹_F•iéhsĈÁ*šŭP~Vëċd;͎ìa 3ĥ™[.&ü„gŜè6?{;ïä'™³ÍܗBIl éZ;Xŝ‘ }·]“qGÀc@Ë|ğİҊ:Z \³ e2„ìgċvŭ^WöGL" {,ŞqT^ßWsÖĒLi+S8(ĊŒKᚠşNDĨz;=RR2Ċ.¤Šk‰ƒ;-‘ŜÔċš\t½[En/ħùŒ ş-‘G˙є–˙Àż]n)xC[56›ċzsEvïk2ÎĈwkÇĈıô•t{Ö÷ëŞ"ŜŒ™È‚eŽğLKÇèx>¸ŝij |ƒ™ >{ ™sĝ)ĤĵËfهÁ‡ ÷(ÀŒVç8Äġü˜CD“çpŠ9!:xhĝbıí#†Ö` ”£—-ȚÂ0}~}„“2\ȁ0úÔs0ĜNI)f X­C¨³  éUkdJôœÚtNd›£6̆4üt|ô]t0°ÌğĞĜ1¸k6à§c•+ĤµégߋyÄ,xhaÌ~ x9Ĉwéìş ™Ô ĤF‹Ż[>˜Pğ‘q²~œÓáÏ ˆ”x}:i#ÓĦ—‰.fуB Ĵµ ¸n@9MÁfòÑ%µkjżv( ïÌÈ;ĜÈ3Ħöb Çɞ,h›€–‡ñ Ñ[jÇÔV4>mW˜Qŭbïr', ŜQ^1!SêB•9)Èó;j7֔‚ymϜc0fûs\@ĉ”Ôž>’Ê:f|?Ğ\Ê˘Û( â6…„˜áàûcCġœİŬw}Zu°(ûĦŭċSBKĊ@O‰† VŠ^³¤”ÂyB?á0ïàˆ)vġĝ‹!:èà-"ğ7Xµx O:ûF·ĥä:0š£3Ÿ_ Ëß#ġ›ĜŒpŒŝŝŽùBĴBrÒ:ú'vƒ˘# –%T@‘nïĦħÈÚĞcÑFnóèó=Lè:gÚ7öż}şpÔDŻ›Ôç[—ŸJ> stream xÚÍ[YoÉ~ׯ òPĜeğï#‰ĝ /ìX‰µ‹aÁĠa+QEÙÙüúÔ1œéöC™vüR]Óšé£şÎŻ)9z7’£çO<Óq”DòڏN.GÊI¤k…‹ntr>z;~t||ô÷§/~>œcĈÄáÄû0~ďO^ż:~ytrÄOG??ÂÇӓŽNŝ} `"9RÙÀĤ4:ğ>x{*GçÇFR˜GŸèĠë‘ħF…^Ŝü@ĉĞ5µZ%Œ4£ ½P:ñjŻayr<%:#:Çċ#3LSŬ³ĥo…ŠixdĤ”İ>Q K²Éêž×NĊWŽä˘·Ô3#ŝżĠ;ëĉÊZï´b”ÖÂÛ°£bDğ³êÄ!ŜàFÉôÊŬG3KhÊ8ŠEÜpsĈÍ7·­ĤéŒ&p(SÊ4Ċ7)$kÀĉ"›Ÿ˘˙­˜ÍHPEèÚUœƒÔ"ĞÂĉDëħzûmŞË"‹Gs˘żíK]\„(mÖÔ%@‚*’($Ê@%9Ü+‰ĤµaƒJ˘ÉJñé‚›Ûşñ3K ç½ĊôB9Í'Žgœ„†ê3OIš@"óŒÜê ıĠNoh&)räÔiÁO3~Zò(µ…)żÇï4I‘4µĤw$ŬkâQY%i5)+×·Ĝ,1'sœpiN¸ÌZÂ5·É gh’Î-$M)Ħ 86WÜ,ı™qó!ûù:Ĵ’ì%Ĥ{šñƒ6œaƒ‡*Eœ“é6ÁUÍ`ƒı6Ĝ(ÁĜx¨ÉÛ*e¸‡7°+ŸÜ6g£‚€Êċó#ÄK˘ö86L‰^ŭİîId=Ÿ!šJûċÄ3ʏ·•ENг*g˘ĉžQ{RqOmĠYw11Ґ™ëÚ£z~ó<ó‘ËŠ–­cŞ„ LD ˜ĊŻ€€pGüŻÄ__ˆ˜Ġ”lEšƒûR %ts:§\ċô¤<èAcV‚GÑ›B~…ŽÎû˜_Úó3ÍÁÏJi¸É7‡îN1FXUÔ(ôT“HÌ y*B/²>œż”í'*·˙ÓA%7’O<¸çïDïJ˘”(¤ ˘ñÂ;×BWJġD à}û ‡™M+ ()ħoá7,0ŬhÂ)fšN0J:A•àĤz*Eú‰…Dʸž =Ċ&É{K:|şâ§)?-êWB¤HĊV‹ä(i ‘ƒ˘Ĵò@ŽqüŒĈ4…ˆ èÛD!ҊÄcS’)9ÁȑCà°İÈq1qŝ‘Š&!!·Òm7·+;lŻGµ•sŜö;ñOkÄ!ÖÈÂ$èX)R~_P€,ìÈÚ] Ës‚)¸\Vü= Ë Ş°ók 8ñ³\)û›”g–›ċgšK‚§4êk˘?ÒĜ‰Iô¨ˆ&µqñŜ‹à;0LoM°†´Á”¤}NJġ’”ê†ĝ3â§Ä_˙ñSâÄ÷ĝ8—6î Ş+álçTöédcUt0çs„ÔÀt–ò)“ñG˘D{fKöÖ câ¨$l†J2k¸&š’V}(eëU§‚R?–ÏÜ6ġ Ŭ Wry×ÁeOí¸‚IĤËoô¤TpÔ=ŒF\÷Ħ=‚ßœX‚{ ]ĝ"àĜ–wMşO%”'„ĝK˘3˘ï ÛÔB;WĈ*ÉPİÎ[rĠwO²N³* Żııàﲄ%@ ê!Ĵ•4*ĦSÚ×Q%=Ôrµ;ƒ Ò½ĝםÍáŝ“öqWŸ ŽvĈµ¸_íĴí”1 ù•ÊџġİXˆ=Ulğġŭj!÷ _àşeĞ|·o: ­ÒöÄ;—zis@ż!›já„Ôû-ġñGDßPÏIÖsÜcq ³5ĥ¤Ú7bÛ+8 šè;Ž˘ÇÈÀÄBs‚ÈäÀĠs TQÏ5ñEŬÇ<)ì! 61n™ŭ2ċşŠƒóİ{}EcöC‹VUèDrúŠÂŻ’ŞŬè½ŜŝMàÏú iƒXÑuġĊĴıï·.:F!o×>—%Q>í˘q jıËBJu¨ğÜË…ŜwŭÊĝ‡xžÊYiz· £ĵ+˙˘Çt2tہhZP÷sŞ@/ˆÎ3~A”ëÓċŞ?2­8{Ï.ôßeOzu½?ċĉ Á\ÙŞŒ}^;ò5–> †\tUSґȽr}œżÌ³+Ús˘…3FXï ¸n“Z€DÙİ*şiï˘%ğ'°²‰jƒÜĠ ë[ĞżuŻïŽ—s÷¸š…Ĝntğ˘¸7NÙħĝ,sŬòż]äQïyô[‘Ç›‘_y ;#ĊFßJ )|—eb7£vĴ f1o°vù é+Ç/D‰ĝl§¸×>×NÛV"µQ&¸ŜĥîÑçéNW€qZoú0`XÜ77ÜLı9çĉĴĠyË ŜZĊ—ü‘/ùĥ5| ÌOÑş^l8Vġ´¤ YlpLm3(8)ž6ñ/钨}²é żß·eP¸ŝuŻßġ*?lşÊ‡/÷˜ ş³ éğ­n ÷CÔá¨nĜöCÔ`ŝÈâ‹jÙĊ‘}/ŽĴż:Ž ú×)Ğ4›Rï²ùıH!ıh~k~Ħm~_ĵÜöK²&Ħż¤B‹!˜y}QAżGĝk´{Z"£p"ğ@gĴ~˙À&^ñˊ/Ĝž^ğ͐O]ê`!ÙVV[˙ÇÈ'˜˘’DŒ_1ġÎÑÉÁ˙³Ż7g endstream endobj 186 0 obj << /Length 2781 /Filter /FlateDecode >> stream xÚÍZ[oc·~÷ŻZ —÷K“ĥploà`·qğJ`kŠ-ÛBtqe9‹ô×wfx.äeŻ½Û çÜHÎp8óÍÁ̀=ĝf|úôƒÀ‚•v0„À|0§53Ŝ ĈWƒ£óóÓżžœŭt8RJ ĜáÈZ7<Š—Çßż;{:>W§?áċáĊĝğƒÓñÁżŒ˘í—3Âàrqá‚àÙwÎTƒôĉb ´bNàwóÁûƒżl&™Ğ’i)6h&œŽ“]ŽŒN‰n€úáññŝgöúM*ħ–Ì:Cçüp$´~ß:yqd4s\FB°`*Ŭܐ¨ġë&êB3­¤O9Ó ġH—ÖUZe ĈÒ O&› ¨Ï™áñjy˙°˜-oâċÑŬŬ|v9ÙÌVĠĵ3ñG‚9X˘‘4̛Júß †³‘³ ëú¸$~NôèŬŸVФGPsUĞâëm]9CÔϸä; GAÁ4Œp[è[zPsŭéŸKâΌĠız?ğ<`x­8^b—^ J­H4ŻA´‘”Eµeìċ1 ÷ @÷EEôLòfÉAnP<Á5nĵZÇfoNâĠ˘0–VĜ=Jfê-bż€˘}’SQLrMü”è„hI4pK|ïâEѤ-ԒÁ0uoqoPż@gtgIü´àpŞY’ñ!¸¨³CMï;EòÉïÑċ9:\NI82Dáë+ž]™8šÊ&†iÉO´Îbż@Ïĥg(3BÖ3ü#˜ĵ0l÷-ÀŻùfÁ<=ÊmÉġż&~Bü%ñ+âÄu2>àô€Ó^ŻPĥʚÙfF_×ü­ç>·½+t¤Ĝ·˘8üÏÄωŸĵĵ2,´>ВܒqÓČ+šô„èĤⷐ´ï•ÀIĤÀ‘§ ĤŞ4xèş°¸;qmS‡²HĤ3#Zˆz >Ô²ÓŒ@<Ôïì› ÌZËĈ;À†Sċ#‘Ŝtb`×5AáUa``Î7û,<1¸`M~ ĝuaQ}m@﵂QYk˘7D-ÎVëf.pWèáEl@˘„q0N3\Ï_ƒMjĠ <ògÄVS€“´=7ĴjĴ=ġ77DèÎ]IЁ9ĞzhĠ'zœR…Ŝ³ùT2͇*îf[.u€ž|,Y"˜•lĤúċĠH(ÂŞ˘ –É ··Ê·–ĉùİ; ŭSíûtѝŻ}Wî‡çĠ˘óŸUġĤuJÇBbì ×äÈ=KîÜ} ;ñéyòĠşújÛ❃(¨÷[ĵ]~l❍"?%zEw&Mdta$“:t6AeáÀ?¨Ž;}f4e+Ŝ߉“ĊtŞ|ıJ0ŜíëÚuY˜W^Q̧فvg‡5´ëBsLJ·<İÓı×Öú+Ñ)ѝk`´eJù0²éä6H÷Ä˙ƒèŒî\%éĥh•NÈnìo‚7X[›†uâ·´LwóäîÂÖYJ…Ŭ·Ħ˙?ô½M'D58rŸCĈüÓµħ`ËhŠ{püM[X4%ħ\}˙Eç ˘Bh|ñIŭ3i`Et]­|)U ­ßŻô@ÄĤRp%W8BežµQ¨áBw+Bwkô‚TiFsžG[žÄĞuĵšĊĞMĵ‚ĜŞÁó½Âï$Ù̆>vZ1“Ç/µ¤˜İ#úĠdŜ´!h+A{Ż6ñ =´‹~KpŜs .H@h‡£a3Í&6³Ĝ g×~6­˘gÇj)è~ı}Zù/³` ìkzUuœxXD‡DÙJh…]A]!4Ĵs–O%ËWà—!/~>P}K4Ĥ˘ĈÊéœèÉġó€j[ÇyŠ_0̵×;rae? |‡ĉÎĥLœŽŬòÊiîßà;gGŭʲĠôŜʓ,UžF€pŻ s&˜´mħˆÒ_Ê4“-<ĵˆ–rĥk=hQoWI,g” ԓë71iĵOj3ëşxÔonJïDƒq´1Yu AS &ĉIŭe™ÀŽĊ ˘Ħ¨ĦaRŞ”ëÖswZCílÔ< @5=àB/ŭuIqÀĥÉXß žh 5bô‚ĝE錖C÷ԙì̈ò]ZÈúo˔XœOĵ¤!$àİáCÌCŭByİĵaR›<Ù{A+Ö.µbXÜëĠn’\kÚ_uäí´>œ™Wĝ°täĊÓsŒ]p?$§ğO³ìTÒ3מ°íR*=hmı.ZžäÖ|J#Ël j{ùo%˜Ŭ ħĴʸ"P“ˆĥñL>)íµ@ ÜÌ â ÇÉùâĠ<^MâĠşyĊށÁó˜ÙFñ]ŭ˜P– ß&)‡2ĉ¸Oh$ĤÂħ†""£ĝé& a³‰AŻÊ%ƒñĤȜéËôòË4µ'GÍvÖĝñ'É)q]§“áĞûG;(ݐH÷9Rщa^Ĵl*ŝŽTF˜{³ËêdŬí> stream xÚĊVKoA çW̍ŞŒç=- š"ŞED¨RéĦjÒ*(ݐĝġxĵì$C ˆ‹×ğqìÏo v{Ñ{6î Ž¤g+-_30‚;a˜ÓšoĜxÂ΋áééèġá˳~İ”*†ĵ_ZëŠaġúüÍĞӓÑxT½Î†ñµ1>îĈ½Ż=@C‚AG1>C`W‹Ŝù…`üñ˜ ‚gßItÁ”VÜAüœ½ë½í‰­é˘µŠ[c™–ƒ Úë~ BŸĞÇm„28êú(²U’ĝaD%“¨6<ˆÈÌúeĊİ/V•°2İF%d#ŭqÛ$H­ĥ'?(уĵ6ïU#}Û//îD:£/ ⧕-gċÜÚKQ{‰Mĵ\Ë<Í`q\[h°Ñ0ÒÑéĥĞJpTŬ4D2Àp4XK?Î ŒFóû74ꆍùEŝKçˌĝÑ 0íı³m’r,Mİw¤ÑpİÛß÷úÊV¤Z74X–ž•<ÓTçĥ]…ir˙<íŝAiż"ú)“vఎMv_dž¸&âŞ"ž{4UùnĞÈÇAlSöµĈ8 YDB 7@ˆEpê`ËKb|Ì4ÑIşZp-ìfBŝÖ¸³Ì¸ˆ=dğóÂÈ˘î£\áRŭ†Â´Í˘çp_ŸAۉŜúâ„hì´@™÷Ċ%Ñ9Ñ÷í—ËùoÛĜ8ö;]WZ­°kbòörĦ‘Üş°#4–ŝ:Q‚ċf°×a+ÑmÏğÓ+ ”tÜ;½h™²şí³ éğ$şŞùíBÒ<@›óŒR͝ĥ;œw\—ÒE½çAċÁ'@€ëVÍ£í]­°ž,žV[Îj×Fq.½Ğ7uŞÂKG*Œ‘ğTH|h—}W…á쟣 ;!™MÊs@ĤÚïRbád돕€+ĝĦġ£~Ż~ ³×ŒﰔĥÇAàZûĠxÛÏ/0½œÈ%ÑI ûž˘<È­1Í­—¸ÏTÄL‚7Ù°ùžÌò˙½ÇŒl•\Óe0£[aIü%ÑyçzĝñĞëÁèşLïÛoÒlî7ƒ­;̅N—žl·üŞĉ3s!ö£é\„ˆ÷.nòƒ*ùʳÑÜŭ#ñÖ™NÑz@°·T”S˘Ğ6—ŝ̚ÁŬ˜I—VZWR'6Ê…êŞ½ĝ7Ÿmaħs§Â"& Ê'*p°ŭTĜN endstream endobj 192 0 obj << /Length 1609 /Filter /FlateDecode >> stream xÚíXKÛ6çWĝh#5§(ĥ§d›[ HŬœ’bĦÈôZ€-ı’œÇżïpHɒM{WÑı GĐó 9ß m:ıŸÉïhŸŬ>zò×NI’p5ı]NŒ!İQ“D0"R>ı]L^OŸn·³ı`S[.Š i5}6ûûöżVjĉÖÒÉ\ÂréW]yËërK[[/³ÜúUéÄ“$ĴQŒ¤BĝEVM ë1µkğħċŒëiÛĝ™jéÇve½rċ‡Â[ÍàlÎĤġ´,wj°Ë³Ò+ogsžö³UÙ´ġ.oíÂO,ëjÓ{(êàñc§H0߁ŸÔE2wa8䌣”GÍj*Ät×ċ½Sċ4ó3KûŜ+m•Í:k‹Şôġmàŝìöí/gÂ8aZOĉœʃFĈ6ŻçŠÒéÓġÚo_,ĴYĵĦLÚşñNV™›|7 ÁLğòÇċômmġ9B n‡IN 5àËßÎĞ›ëĞğ‚nßjȞ°ìóœiI¸a%´ğyìŞğ¤ŞnĈ'ĜRĊ`sEÒ´‡×ÖÙ_r™ŠnÙ²ZŻ+wfïñàŜá[÷ñ1`Yù:k2ÛĜ£€J”á€E4à_ígĊK gI|áö¨>^0¨â̤,£˙iÛU…ĵ\Ä".â˜K? *W¨Ċµœnö.NBĤcĴ*Šġ/ğ´µ-s{ònpz‹Ş˘ĞÍy_IÔ×M[C9Ÿ|””!û$Èg‚ñkoÉäÀҕlİ;7”Š REs†ÑâÑj—ŽĈġbëŠ_ –/ŻPÖp÷ğ –pp!öĴ‰PÛvEŬeQ†˄tµ2ñŝŸûmêŻ ZÑûU‘ğDYùÏEċDzj½Ĵ)òvŭÑ6¸ĵÂoÈŭĈzµŜ­ğ==:¸*šÛ˘sŠ6xÁŜ£ŭ—ˆPç ÎRÊqûÈĞÍ&Ôîq|rbÀÎğĴ‹Ĥ…J‚öU’Ô•Z¸6í]<‰¤‚"š™L8Ĝ úÒ½Ñ \\#€2Ĉau;?l#„"в<(’´³y)pseˆpé%ô ߋfóÄL_ĦLI:½Fŭ ċŬ`Ŝ˘Ŝ˘ÜĦŒĠŒ(İ"@‡8ÂҞa€@3‡$xÒÔ!ŭ ċÊeÒ˘Ì²ÌÜ t?żC›íñk‰Q¸O)ö(T=ğ?Î/ ’ɸԊA$×Ä ;êŜ"PÔĊòe~Œ:0e=ˆŸ˘ġ Žb_ĉR:fJဌU.(3œŠĜ9pkĴDú£ş‚íğ ~ïâĝá%ğ?h9Óé/‘ô t˜Ÿ_À6?8—Íò m u/w8S˘^ ž£žĦlqĤB½FÙD¤‚$İĝbjşœd ÁïÙ üÙvú]ǐ³1pÀ߃ ĴÈQV8³AŬIÉq;ŽTHŽ›r¤Ç­ğy‹²EıCıĜä(+”›ô–%Êb`™ vóĞêHŞ ,ìIy@Ħ„ħAéx°x5ß xу7˜nwŒ/¤xÌSĦ/‚Ô P-*Hӟ+$“aîŒğ§î”wULh7çë‡Ì ĜLŬWá‡Êeœ ’ŞŻC);Uè<Ôú}ò²˜^Żú4ì:Á‹>=YHmß!x°y9X[ËŬo"Áô9bF îë:àÛŜ˘\XÔ \ġm‘Bìxġb°C{°gʨ JA´1ŸÇ·ùfŝQ&|SÒí°<ƒC=Ĉ7 ÏBsuBšŜ5OHl›+l¤§[¨kUJ\ï‡/èñ‹ÈEÂyzş0¨™  'ç¨ÁNPƒ ¨ÁƒŸ9G ˙üâqR0xWJv)Ô1)Ĝ‰VÄN‚‘â˜÷ü(¸1ĊbtPq9˙ÚÏçÓ!y˜ ú˜ ÷¤> stream xÚċ[msÛ¸ŝ_ĦÒL…`ħxN?\皛:u{î´3כe'×ñ‹ŞÈıËżïb)’ I¤üÚܗċšÉ]àÙğ,ÇĈrüíèġÙèĠ[ċÇAĞìĝìr F 'ÍĜi-Œ7³Ċĝ‡É7§§Çïßĵû×t†ˆ“×b:³ÖMŽŠ?ß½?;ŝûÛ)L™*?9:žŝxöŬèĝlôßWä’·Ò5„ñùġè‡ċxA?~7–ƒ˙ÊMŻÇ¨Q8ˆ^żŭm$SSÑ4LĦŒ´T(L=™Îœšüƒċ÷,ßħ$cL~b½hsÁòS"ç,?TżÂäŻĴßħ\³\vĵeıâ§Öħ^½Kn)mÈ6óßRbÑŞá’ŞlÑvGÔĈ‘%ß/Œù™ċË_ĝ~áÔÇĴ˸ĊeÜâ2VwĜèb,GŞ<32™–µô͆èIòÍúèéG,bù‰ï_°fyÇr™é\Âôè[ XĥĦ·ßn0ô;֗]˙P’Z>÷‡âw•xÒ çè "˜MȜOgZÇÎ×;™ä*c¸"Ġàê^Z#'‹Ì0£Ó8?ùcĉ3´4A5M)[B:8*ž…ÉM6h 4*4脲aïÀBÛÂ&u“°Q[ÂF%aƒ½™˘ĝ fŬ펔1ÂuXÀx˜ÒĈ„ŭC[àÏÖ!ƒ2úE„LÓd4(}dĤè Ċ#Ÿé͌bà!ıÈCŭ!½ër‚Zt`·N"ˆš/ÉSĊ›¤ċ‰ ² ŒÓnûA‰PƒÄÈxRÛ‰}éÄ ‰}áĜ?ħBˆû8”Ĥ<}ËÊĝf’+–™Q††M÷ER´ÈĦ€‡íÂc; çáàħœ3Aâ„W=Ĝ ín`ÀN`@Ç2Ĝ Ĝ5mP`£ĠÏ …Ôî`HôšÒÔ`Ĉ8fù9iߗ7òrÛa7ÄĦáÏ1ßùœ¤âm+›ÀĜ•aì„ )‚yn¨hG9*4ı´ĦË!Ş!O9ıÔöAblḯerħCá`HMıàûyx`/ĦĤÔjôû§óm†ıGáÏ5ŒnQĈïɊ& )ŻúÌ£–W;[2qq’LÛVx„Ê„ êÉQƒĜĴy‚5ÏĞŒµÔá#IlÚjêˆŝv: \N{ŞÒWĴÏY§˘ÜCĴ_g4KGżâeU\¨/½4“ëĜ$>ê™ġI~dyËrÁòӖi_Ûc2aDV³ß?”ïH§6]rß>Ħ`Ĵż—WĠä·R&˘ ážph,*÷é9ÌX'd=ŝ'˙=¨AEÓ§7‘<÷çw“.cµ­†ˆ‚ €'ĝxY—ğâ’{?R^ç†pgĦB{G׈˘Êµüt#*İİ5]jÁ„01ĦŒïxÈ7c?WSñ˘5Ù`E5ċĤ GI˛*+*§ôsÖ× ]ċFıà{Ô|Ò$àµ>Zż‘ħâ£ġ•Oş÷ û<ĵRë†lü-yï–ċŠċÊßÚ­lħ•ëî–Kîɽ"ıW$÷„ä^)ġ"ıÙä1uĈ3OîÌÍo/ĜÉ–s–Ëž·BAI’ÁYM½_|ÍÀœe1aĵNö¤/+YîXŻXz&µVôŸĴJ=ÍNíĥ8n/ŽA ùîğ˜ŝ‚6ä‚@ ğnOìJútx–Ĝµ=vğΛfŞJ/GA‡ôŸYżbŭ"c›VB֓ê"9ŭqĊúœġ/‡—rJ 1ƒÉĊXHɅUYÍä‚L.ĵÜDú%ë—Ĵ_°Jô<ı8ċvÚ¤PŜ@ˆ:9…bı5gÄ5Ù­6‡t˘ĵċ_Żê,[Ŝ“Éú*³Lˆ{˙ħ³qğ{{Ĥ78(½é[İêıÍĞŝ8„6,ÇĦ,)à´Ñ‡'ß% ıHVu~cy’°ċòk8uìG°z.˘ӒßÜ9ç;Ĵêvñ™·ğc ŝ˙5ëñTƒjŬò5÷Ĉ–(nÓ?EżúeĤìÉŽ*Ôĉĥ$ĦÓM+`ç=Lŝ\-SŒËĞŞ=”‡}ë€O€L ¤šq˘ê4é€0nA—g‚Ê DÜ(‚QÒ˘´²{fQ-ÀLüƒ*ÚŬğ?,ò’+Ú<ç?èá’ÇĴh]ŠÖ~ŬlżgÂ#ĥGŬÂàÉ-sfqßTœô1ɂoX_°~•dğÇĴfŭ‚ġÖ×eÁà­0şÙe‡•ĦšÖ˘ŭĵ-iq#˙ÂwĉĴŻYŻ-/[f KuÏŜcçŠaü]käNáÖ §“äôVû´ vNJᎳ]Û·Ĥ°ïÙ'넓öı΂=ŭ?=· ï4NßÁzèW˙ġ×3(甓á)%áĉZ6ZŸŝê endstream endobj 198 0 obj << /Length 2673 /Filter /FlateDecode >> stream xÚíZYs·~çŻĜÇa9 á>’'t"—ìb,ş*UŽKµĉ.iVxeı´)˙ú4ž³3{ˆ˘J|ÈK£ı€F÷×FNÎ'rò÷ƒW'/Ġq’DòÚONÎ&)‰˜Ü$X+\t““ùäçêċññÑoŜŝëpjŒİ^‰İ÷ĦzÍŬ·?œŭĝíĦRŞzy¨cġú藓ïŽNŝ{ è#r˘ş—JRšœ^üü‹œÌéÚw)LŠ“?pçĠÄX#‚ÊÏ]NŜüó@ö&ꊉ*)… jâ“*XžéêpêbġôtA4Tó–ĠÙá4(YŭN]Ŭ€^€ÎóÄ_|kÊŻ„ ˘u4ĵŝûühġQ]½˙ükÀó= wà™Î0r^\ŭG1~ ~z‰‘ĝ%ÏİÜ!ˆA5sú·t’oê‰Ç M’ïĦ÷š×jbuŝW—à#ëĥJŬ<N"Úûĉú_Fݤˆ>6wlĥ²Ċ3šÔħnaҌÌ̉¤Û÷^N­Ë&z>"Ş$dLkÓ4kÓLİ•%½ÈÛíIĦ]ĜñmB*ÙÚì‹1›Ihş…Wş?¤6ıl‘UġàjÖò*ï|Ê rżĊ8óó6AÚNìi%jˆË‹àšb°vú‹Â1Ĵ Wt\Ë…ÜwΊE_`¤[¨)0ŬŒ-´ç~@Ô;#¨ÔıÖ“ê‡.FXâvINzUĵ‘‚Qz£KuxÊ#§áPġn8w‚š¸ӂ&•µŸ ›˙^!NöT[,½?'âÁÒ>!Â1™ !Žİfâ˜Zg–…Î|\èän­3…y™ÂĵLa^f›Ö%áŬS=Á Ž Déċw"Äî]êBÍ=Ŝîa–ò£2JH7ğŽB˘zû£ ‚T!0YA*ûâ(U½èî™ĠAMó”ê>|ϨH$ċBğ1S%żi[ġH¨ĥŽ™ŭMä‘wä_î\‚ĝyĵégN½SÚT JĞÍDyUGwà o[ °ëàhtŠÎÒ ġv‹”™êg~*LJê‘à>Š£ Ó½$hU¨C~Ĵ>úQê3o6‰Ünx3zXNy~ĉÚG°&TßÁžÁŻÑÔĦı=UôĞ|+ü7ˆf Ğ†÷1íóş$˘v{ÄĵİóR”k(ûë;ùÏ çS+Ê#’£Ê@ À1÷ÜğċŜŠ{ÜğáíšĤĠ˙•Ô!¸ê„z1'œšs•˘²<đКYŻ"ô*"#¤^5@Ż´6X‹ìÍC EJCĉ”çV˙áòFHh“„F·*s“—£ĦcÑ&ĴC£f­áĊyd5ÔÌıYp“³éû "w]‰‘ 0. >}‡‡NX#•_OkdaÔr`Ô²z şlM˜Í™˘²öĥ#Ğš!9aín× ÑSèİzèyÚNİq”ënWaòş˜|ƒ˜Ŭ䛒S} ħ’€"ZżÓĠÚn…OXA4¤tÊÎg'z†RùĝèHġÙxÑĠKGËS”~xĠ)ŸrĴJ”Ġáĝ7EíĦÙêš'úô=.8艓u=mÄ9碈3ngá$Èfšŝ‹ ù œŜŽVİ)öÚ·d’,½ùyblÔ)ït„•EÄ(VsŒ28ÒZ£Ö™sCÍÖc!!k…pÔ[‰Îg"dêùU&ևA§ĝ4)rıcGEàjÄBÚñYûĴÉßgY\ŭˆĞoŠ‘UËKÉŒ,%x7‘Ċšó{ ŜöîĵĉÁy{K$‡ä³;€ŸE×lìôŞêÄ}“U-ÀgĦ„bA”J :Ĝĵc”•äF“{Y ñ²…>X“€5UÀĝüĜgż$zÇHïqä­Ö“$0Ċï’}ïšâkŞwÍה”)wµrÜĜĤ¸FċE°î³ ~ĈJĦIİŸŻkÔÛkxŭšÊiQAYÏGM‘6•ıġ„˘İŻĵ,Ŝ³îFN!+kBĈ›¸(VKùB‰ ħ€`)¸fÊk íD2e(.Ç –ĵuhWĤFJʤGğÖÜĥÏè²vâ´×ŻeŸB²Ÿ@[oGükPêN1~ŝşĝç£ıÈħßםRĤA>l8÷ĊĞâÛçü}4eZ œğNH­,ÒĦüIü=ĝ‘êĊ<ŬÑن`4Š0H†§Öf5´@&kF!3û\göĝ‡+vĤ•£ĉèĠĤzôŝœ3ÛôĊĉ\f)Ë6' {Sîğ]=:KĦ]éMŸ'qAŝoëüğâÖëQíŜûœMEZwêÖ˙7Żn Šâ’.9zĉ–ImŒ~âß~ş¨lÙjğĞ ĉ”˙vÜ`Œ“ˆö÷xÒŭ”(ğÎġĤ$bŒ|ğU½ğŽNŝcŝ†3 endstream endobj 201 0 obj << /Length 855 /Filter /FlateDecode >> stream xÚŬW[OA~ß_1ğ‰;û%>ĥĤ$,51ABhl –V£żŜ3gÙeÖ”˘Ñ—oÏÎí|sğŒ\FŜfğĴÓŽxê0dxA¸fÔ2MĴRT;M†#rœïvŜô?”2ßEiŒÍ÷Ş×ŝÁ°;èœó|§.ßë'ŭĴ;Ìf´0£Sáé=9ŸeÇ'ŒŒ`rŸ0*½#ßqéŒH%İċa”eï3Ö˘Ş[T95ÎċVUT'Eé}>tù2éôdĵIHj¸ƒqġ;¸‰Ï?eùÊ}Ä=ÄSÄsœ½FyŽx8ÁñËJGlBë(³ĵVñ‰i–àĦ_£h¸j|Œòq…xSÎÙS­ô=& e°énÍmQjN×2œò ċ›ġëIF½öġĈWĠ‚ĥcÀÉNÖ+À~JċW€2?Cy‘ ,@ÔjeM½µġ…fáDÀâxĴpK·‰ĴhȎ ĤmpĥtÁ FyŠò8A\qŭF[sQ/Y€ÛÔF³45àq™0¸ĦŜ›(žxQrëò×wŠd´¸†ô‘¤„@÷a¸§“à­aYŠv|”ëĈ60²Ċ¸°h|‹‘bC"hƒ.xÀB–:'6¨‚|` N„%µ3TkòR°ÉûˆMŜ€<@\Ġé ò2JßbŠ5ĜQyÙŻÎGYl9l8²á à)ŽŸ£ĵ@#žáĝ2 p|Žr5;Aœáx"Ô9÷ÔyŭOÔıeŬ1/œÉ-bÉN5%è*QĜİ´úÁ> stream xÚĠXMOÛ@½ó+|‹st?gwQİÔVRŻÍ 8ÇP·%ĤÀżïÄÎw։§XÊìÛ73oߎ͂û€ßÏĜü÷Ëàì0`€(t0¸ œët€’ƒb. ƒĞóx܏$Ób˜=ѓÑá×ŝÍàG½Vħ†ÏÖ² R´œËzÙÏùŞ$ğf\%q™Šzġe–§ġÓÏç˘O1eüTr8p(p†§ÁDZ“şĈüX‡Ùµ(F9Úğúšŭí >ä‹Ŭ¤ §ŭˆ‡ÄEââÙ 0+Ÿvw€zp~~1Që1„\Ò¸ólcA²ċ.‡òˆÇ2T6\nÔğêy@(…jKf§bÙ§~*‚9DlÙÏŜMÏßròdŞĤIOjâğPÊ·/ ÔŒžëÔßqĠ” $ÙĜ 57}ĵèĥ: £Ü§=F¤Ô)Ê5)Òt;„Ŭ;³Èiќ2÷}a<ÉâÛÊé"†>ùiÒéÖ˘ùí³oroÛVÁɨ(Ò¤İLʉ­v€Ĥc;:ŻöuFÒyŻÖ$é²]Iá ë\xŬ*ĈTۖԄò!@qÜîˆ@9Ü :rDÚÈHfïĠ:–x ‰ƒ‘'5ĈĴ˜e^Ĥ÷éćċWXŻo 4œêQ\útìèJ‡˜Ĵfƒ&*-•i9É ßĊHCĥ³nǙfÓZG)t5À-;2$>}J-ŒkŭOÊ=w7îÖĉĊ*ÒÌ-½|,‘‡Ù¤1QiAĴ߈íáz`œĵzİd³aùĞA1ĴġôxĈh4f„Ñik]£}2CY ú„2{•‘ĵ—Ÿ ğlÛ½Uµ<@4ĦväBŝcéÑpÒÉ:gĵ¤A›w{ w1¤$z1rÂuùqÍó™ŜıïOpİmBllÒÀ¤Ş˘ş[6> stream xÚWMs£F½ëWÌQŞŠ0ó­?ÖQÊŜ/+µ‡Í0šH$ ^9ż>= ƒ@ RŞöbğàġëžî׏ħ‹ĥÈE3÷ä÷ÍzvġžpD˜ŽÑúO„=×á‡|:ïĦġ}›Ż²8,Żë"ŻŜ(tBŸĝ*ÈEK€˜jxǢÑK*KJé<¤Èâ·E@çżè'+6‡ħĴ‹{A @ğoqšÄ²-£b×ÀÙ)³o^ž?²Xh˜LöÂÔB­µG2ɳç[‰Ëmlx¸•§ÜÚ-ğ²Œ$˜żŬE22gö­T‡<‹RĜˆTGġ›êš(B†ıŽşIkñ 2qġĜÂĵ*¨ÛOÒï׳f^ğ#0Ç1/p8 QĵŸ}ûî˘ ĵ‡†úÑ@÷ˆ@!ü•˘çÙg-ĴBpÀŻáñ€§IùUĠ˙ñ˝™œnϒú½a“â|żW:S3ÉËaÈIŸâ<ûĊlko&‚ê²™ħ†Ş'i§ vŽ|âò`Ò H~ç 1<Ż.eÏD,ĊFƒŠĊ——Ò¤ÏM)òX ê”ÔRÌ\1WmˈU$w*äúñ`ߣ–|Ġı÷QÑ"­ğÜւ­RĈĥ*ĊЉŝùvQĥIEi÷ 6fӒ•×Y³ıïüÚËG˘ĥmR UMŝ=zŒÁ‡íJl'|Ò²…>wĦˆÏ!œ˙Ìrr‘†Éċmħe”ŭmÊ ô â|ĜĊmšż÷IÔ÷  mçĜEĠ×d#w#=÷ğ´şyÒŻEµ=òl3hRŽ5MäYSV€¤™F=}ZÙ…öñÒ ^Ŭ<Ìsô……–ûN@9bü†/ê,V…ìÚĤ€~ŒĴ<&™ˆÊUO†C%˜yÓŜĝĴp•è€ĵ¨ĈNÔ;˜q?ȋM§ˆ½Ñ^q2.™ÀIĥĠħ§[Í _$j­P-5 }ts@µ×êşPÒD/75x$e' ğGIx·*lBKöÎ0ì%q™/Ġ°“~˙:Ġ‡Ğ sĞààġġµŭ2Eĵš"Ê\'¤ä'lœĦCÒ0q`:{òħĥwz†ëëĠ”IvM)qħġ6ԔuvÒÜÛR™,ФŭûxĞfvżÓ¸Jßï|N=WY¨ \‚Ïw˘„Gx”ĥÙÖâ?Ü?Ż[€ġtD]vİiDUDħ¨Na}+ÈkyÙÌûŸš,ġeӋ£‘ħ #û_Ÿ‰¤1?Ĵ_`k@5ĵœÂJpE¸áŝ%bµÛĉE›• §B€úĤyó A—ÊVż¤Iµ3f vüĴ.Ġ6Ph,üÛ´÷ ĈX˙ĴċĦQ endstream endobj 211 0 obj << /Length 408 /Filter /FlateDecode >> stream xڕ“Ínœ0F÷<Ċ]‚ÔqmŒ˙ĥQÓ*YŒZ•E( 283VBÀLÚ·ŻÁfZ·JVâŸŻe {À%ı(“Ÿs )žs(ïA)$QˆIe 7éĠöÓċìĥĵN.Ëä)!NĊ@^PŒ„R°k’›[ µûw Q%áy& E‚LŜ'ßü:>–Ž9"ıòéŬxw4!ÛPJÓÇÑv£ŭà?ˆœJı6„ ĊBÛŻżĥۈy-RÂ0w ‘ìĞöáż;ġz§ÍÉ´{éS–‹T·Y.S;3§o0=d’Ġ^Ÿ=ĥòxFżği´oŜe$=T³­ƒ)Wg^t[żĞ(xĤĞ8g­"vĵAÛħ[F'ŝIx sŭu¸ˆè˜‡CĠëÚĤ­ġÏĞ(lšéXħ²ĉħġà4 ^ŠËĜ•[Ŭ7Ĥ­ì§!‹ĉħ0kvSĜC€ĝÚz²ĥšżö×9eŒ§UoŞğ£~9ŠWĞ—ç"&?›Ú–œyVçwġç „s$ƒ î]ĞP´`+Ë=îßÇÜú¸ endstream endobj 224 0 obj << /Length1 2230 /Length2 17737 /Length3 0 /Length 19062 /Filter /FlateDecode >> stream xڌ÷P\ÛÖ £ÁŬ½qwwwwwww‚{ wÜ!¸ğCpw—\9çŜ“sż˙ŻzŻşŞ{éc9×&'VR6s0J8ĜğÒ330ñDċE´˜™LLĴ LL,°ääjVĥÀ˙ÊaÉ5€Î.Vö<˙²uğËČ]ß ċì2nĥfV33'€…‰‰ûż†Î<1cw+3€<@ĈÁèK.êàèċleaéúžçż*Sj377'Ŭ_îa; ³•İħ=@ŜĜĠh÷žÑÔĜ ê`jtġúŸT|–Ž<ŒŒ Ĉv. ÎÔt+WK€ èì4üĤ P0ĥŝ‡,9@ÍÒÊċo…ރıЇħ3.°µ2Úğĵğ¸Ù›ïÙŞÒrEG ŭßĈrŝÓ3ó?áŝŭ;•ŭ_ÎĈĤĤvŽĈö^Vös+[ @QBŽÁĠӕ`loöÛĜÖĊáŬßĜŬĜÊÖĜäŬàŻÒÂÊw†˙áçbêlċèêÂàbeû›#ï0ïm·7u°³ÚğşÀŝOÌÊhúŜw/Ĉ˙½ƒ‡½Ï‘ı•½™ùofnŽŒêöVNn@iħ˙Ĝĵ‹`˙È,€v&&&N. ô4µdü@ÍËĝ—’ù·ĝƒŸ£ƒ#ÀüÏÊĝŝëbì¸:ğŭ|ŝ­ĝ_ËÌ 0³2u˜-Ĵìa˙DÍ˙Ĉïçïlċ ez?fÓïÏ?Oúïfĉ`oëġÇüŻ#f”Q–U¤ŭċ”""žzv= ;€™™ƒ Àùŝà÷żq”Œ­ŝSÇż|íÍÜ—ûŜ§˙–ìŝŸ úςPŝ7–‚ûäT]‰Éôŭ‹ù˙ó¸˙ċò˙oÊGùô˙[‘„›­í_zŞż ŝôĈvVĥ^˙ħxŸ\7×÷-wxßû˙kŞ ü{uElÍŝŻNÚĠĝ}„í-l˙i£•‹„•'LÉÊĠÔòïqù[ŝ{Ñl­ìJ.VżŻ=3Ó˙ѽo—İÍûġáò>“İ€ïËóż)ĊíMÌ~oËû ;;{Áò;bĝ0żŻ£óŻ)02Ĝ;¸ğŜÉùÌœaŸ(;€Qĝ·èoÄ`ùƒ8Œ˘€Qìâ0Š˙ƒ8™Œ €Qêb0J˙Aïäŝ ÷ ò{…?è=ƒâ?ˆë=ƒÒôžAċzÏ ú½3R˙ƒŜ3hŝƒ¸ß‘ñôžÏäb~GÎĈĤ6À÷—ıë9ë?òżgùĊ{Ĥ˙ ö÷`Ĥĥïçĝ_Éïd4û|OüÓÀßÈÉí}à˙ĵ³2˙#Ğ?ñYC÷?Ĝëܜ˙ċ˙nbñ/È`´ü²½·ĊÒËÑĝïßeV˙‚ïŬħù|gôïêŜéÚŭïW ŸPìïöïû€ġ=´½›Éï›Ââ_)ß/?F‡?E½Çtĝ—óoҎÔïâĝ~G8üĞ‹ÌïĴŝĊ™ù=ËŸ2~# ûż92żÇĝsfï£Ğ3_m|çáêá/‡w*n˙‚ï]p˙|ŻĜ_gôîíù/ĝŜë_÷_vÖÔÍÙùŭÍġ×­ú˙Ċ½&@O )ìÒĵƒ)oˆumHÛ}µ0žŭŜ˙,ùžf*5½Ï’sğÛ#"TuUf†ó­pÒpòêŽ8Ġ2ыÏIs=TxËċÖ'ßgÏ*Ó{­°‹S˜“'Âuŭ0ĝôjBû/N6àÍ 2äıNn\ˆJùh÷}’žuŭ+caó{ÊûU²pÏ3ôħê1zĊ?ÈóL²ĉ°I>¸Ò@Ó ^z"ŭ¸ıE͙|#’ùL ëwËZ裳ÉòéaÎ{­\Ċ ‡ G›üulšÂGä0YkÁç[QÌ˙B6gdÜrH_œĴ‰żĥsH =ĈGıN4²Ó g[ ÓI%Q´O(ù7Ió/•¤ß ³­^H T´@ÍhÛğ ğNÏĠ;i|â°y˜c&ìoùÑĥ;²ü9ž>0–OKÊA&™ƒĴ“.+(bΌĞĉù‰Ğ ğÄÖĝèöżċ1ŬÑ[ƒ[‡ûıÚé­óôÁyra)M<™(Ġ~ı8{)쌷Öm¨FżÁžB6ìàŽĜ™reyeŭÒÈù3„NšKñĴ,‹kH&uƒiŬÎ_LsJùÑL딺_qö%ĞĴTpEùġ”í ¨- §?Ċĉ`85Ž/˜¸ËužÍpÄÓ¤ŽëV öEG×.̀qȸavu?`ž-şÁöšm(asÏUŽÏŸ‚H3=´ÜCΘÛU şÛÉrKùcúD.f—µ{ċ4uè…K“ ÉËTĠ`(és<ĵ‹ )éáRG6@Iêò³³Dߝ¸L~íS:/Ŝĉ4ƒ‚˙IÉGÙj'h9ZihëÙúmX×WmwÙ|˘v žtšÜ²Ó'>iáùPÜn6(uJŠc ħ&nIRÖÂ!w›¨a×ï âĝŜe:ùVĵÙ 5вDŒ\8$—ÓÈ%R˜ó‚$eÙ_³°\O“‡=xiĤ÷"lÙá:á$$D4w™CU ‰_ûÁ XhNñ>ü7‹áâъo ĵ²U/…ú"-¨ëQ†ğ=f CĦs`TŒ3]’Óħ^ ïb&”(JĦÄüN²ˆ03¨fĈŭCÄx³ 9(tY÷Әñg²d‹ZĉÖgs$(½$(Ĥ#Î3Bc•IŞôg9,kÒQb;u–VÒVûQç-2ßè·i5Ô39¨Ä/úS>eZĊFolŭ ’Ihċğ+J÷,"ÇĞġżLlş$޳áàʋͭy?™ ’Ĉےrœ–ôX€íÇù<Ü <ĴŸŸàLĦÑİ*ï"²µĉ?•SP~³ŻÀÑ3ŞĠWŽ ĉ9DÜ^kîá°Ċħg2á³ÓoğüIw¸ü­PO›ŒW—6P]<Štà{Œ|žâ)Âd-ƒĜó–\Ġv)ĥŜ ͖½7+eqĊTGQÈ%KÊꇨNrHZޤët›FµĜb݌µC`I6T¨ ŸâlR‘Ğ]n ŽDzħ·çjô¤ŭµÑ oKFê_1 ŸLÉğü݉—aeÜ\‘üRıĉ=ö§6}vr9ÂP+'\& È‡¤ÁÜS(Ó÷:PFRDÉSÔrÖ£4£$ğêlĉЎ™HûSG×*÷Ëܚ6ñóéHG{ç(èíIÎp‰'Sϝ%)xن›²ßÖáÉ|0찙ôgq:€uçŝ~ż;C·Ğg34F ÌE‚x·ĥm~U‘ŸY8=Pî nF4> * ˆŸ¨Dv³A ÁÚJšÄ ]+~UĴÑ÷ž˘-/˘÷ĈFà*Ğ­géͳ:ĉĤ٭GŻ(lş&a@—vĦÑì’ċŬ•ôĵ'lŠŠ I8 Ÿ?Àgj[2p1ÙHè­**Ġd^#û"+y̵ż‹HlUJ+wÈÖâĝHğM‚6ġ<„óÒ $ċE‹ÀĈ&§TNnĞhß'¨ĥÊFjgĜ–íĈ™Ou9’óU`…ùà:ŝ˘)°Ñê âÑ˘­[Ĵ9~óïoìäâmq´Ïċā˘Ïşžcž•ö=˘N¤ ¤jV- È×V÷š Œ?­öh‚e–‡³óú—^ŜüŽ,x':?×"•*h˜—ŞúXŜ}òôpQ²bgÏ=ĈœöH~·—û„Q˘‹œZ~֏ àjÍ ÍÚ/żĉµí]²O·%¨sÙ$´˙¨‚$b%kwê¤âtĊ=BCbNOĜÒĤĈ!µħr9“ ‚èXÄĊ͇΂Hi\e÷bn60ïÖ·Hĥ…;ğ@$€=5XÖñ†‰ŝàR6ÔßĊ¸:•ĊŜÍâ:U‘"KJtóKöŠ· +$ÓÜè =ĥšFµO[̽ĦÔE|´A¸nÍVdp{!ċÁ3[ŒÂÏPÀn×cf³€@'?0§˜UùË}:%“×ôĈY vÎ'ÒhMôĈZ§ŜS(Şë%{ċ*kl"?ѧŜ‰6œĊĴoH=óş*é[5ìÒħh!YÎM7žÈ–•–^Ä;6£ŞC•œáÒp÷j–CĈj_n×N†ïB>QUÂkšı¨Kßó_è?ÎĤ!ËûÎBĤ6“ı×Ó.UA,“ôúˆÔÄfF…ĵĦ·ƒ˙Ŭ‡ÓöA/  o3TÉ›vzq)|ÁÏ?yï|Ĝ5¸Ù³óĵĦŜ•_ñë ŒT?ĵĉöŠ4f›p}œjžÖB˜O“/İnŻİ@],ŜFµ‚uü´™M=è|QŸëżğĈü+g!.Š7ÀŒÊ`–£pÏ<‹NİËqâ›ïeM› W g5Ħ€\ćˆĈ À 3¤.3Ka&_¨µÚġ0˨JWD"ĵcNŽü‡:~fÛ!Z½c Y5‘½ƒçĞ,ùĤç—Y‡nnwÌKhŞı:/Ûktlm6Žòëĉ_ !uŸ£>X´†Y¤l8ĴŻ"“¨˘wµYF–´RŭȰÜ6/äÔuÖçÓĥê7ÓÚħu§"& ġ?işŽò …2ò6ÇÂ7ìĞàWĜ­ġTĉdPWŜ– gˆÒsÒd†ïžNpH,œBñڙ\˘‹şÔëZĥ<Š™”´ˆ;9-%†\sħÌOl#uN‹ċ4â?ssÂï|ïšòİ.Î@-Ó!74˘w^ĥ]Š£ıhu ÊÀÎŜĊ_jYŒÊs…‡µ˜ċħ7‘‰x”késŠMt>°f7è/UPѨ“A:¨àbl^ĊÛגŸnMV£i$ı ıÎ$@D`ħ |Ŝás"ÑtÑÍŝvİ˙üġ+$aí ž9ö°‡——ŻzžÏq˜ş?&Ÿmç˜ñĞüOÈTxŽ(ç.+ ͋›H†Óm}OsÑ})Qî ÊáÖH9Ż(¸` •YäÙĤÁI ŭâáR˘F÷!À`3‘Ÿ)—T™ÓŻ&á€ŭ 87+ì£PŻzxşÄ†`ÑËÂ˙m•£6:ĵk’`ÚĦrY›XevĴÈÌéàRëÑgñ°Ÿ&jÔçHUHı$ħau GkîOu[dX lÇ_h„f]W`­î#&AêMú·ġœabı…Ëz7uĝÜiKG>Tɉîĥ&M~#Xá‹COĈŠfYÈĦêT˙–ä·¤'½‡áL”5ò8‚%cŸĠµĊ³ż"&ˆ[2H€˘Ê¸ÂEéfH>%`ĠR7b\yl˙ĉĊmTɵ‰½Ŭ·,*F!4ĉk8÷Ê0\ž›àn|ĵİş—ÂËİN>f #/"btîjSà#Ŝ³‡ÔQ/BJa`œD"íĝL ı:ÜwĠkòÂÍOĊ²ÌĤӝMjĥ UV³e"‹ëç·Ä€V´O O(sÚÏ‹ŸéÏ–¨üR üàĉ0üúĴiU†a\0‚Çê\,ˆ_†ë?–İÎV8?o¸P@ä]G†-öÈ4e̕:œ,£%ü4F.bwÔHÏ9™­šÎrñFó³_/Ċ./ÀĠ8Ş ’·ò~pġх4á{À”çȜáÄrž²oÀ šBnœ.ġ`a[G^í2c49ó×z€²`+Îc=|Y“¤atTî!GJ"Xâ­hsŭ²šÂƒíxx Œŝç!ŸŽÂâS8Yŝñ+ƒIIʎ5ħÎÎ'!è‚}„ ÛWoŻyÛÔo/$µ€•ËÙ<´Éà5u;‡™´sè%–S°?êY;Ŝ_6ypĝPjî.nVB$ˆ`rz.ûƒ‘K²w%ċĵFԖ9ŻĝÄW.ĥ_ğœ"5ŭEëóì´q~ñwÌÈá÷™ŜŠx7:ššÈvL€ċ ig2H<­&€Ĥ球&Jöbµ [wQ€œcŞSL¨–—2!§áĊ”ŞVŒ[tèí|ïyŠJ;Y›† µäbG'.üüĈĉIÛ?6|—za&:6ŸÇ{{B(Ù×QŭġcÁ@żİp}v^IŬĊ 2IĵY ĴSE&èġ£ì˘™ï’˜fEZôì5£’BŬƒİ$V&ٛŬÀ£—Ġ&jżYJ™#y ’2öGŸ†e˘.,˘ œt²Y9Hsق­“ÔıûIl돈Ğ̤ =-eÉÍMXÒDZĤYJw‹ŝ‘M̀ŻGĈWAğ…ŭl/³‰ÔÖŠEËĈ€>cŻ—XƒÜ² n´”ÈèƒÁ2òüN>>íoü6‚‰à+ŻÖBċJĝ6·˜l_%^O\üh´^ze‹Ĵ‹Ó~™:êĝ§qñu íÄw§²6~µnŜcÉ "OċĉT˜¸$óö7è鎰“ë•SĜáóŠ<İëĈ ;…/P˜$RĤcŸ™çnËŞ2gSıe)½ĝ4­ĠÜ<†íAJˆd¨â­3ĉFí´µéxDğEĵfµÜQ=ŬÈ8PÂĜDéOü@Í={Úŭ…|>g/^YŸï‡CߘùT´˙ĵyżSf{şL_YıħÎJǜĴŜŒi÷Ŭ1Ġ_ö`<6CÖ!єÔQ3ĞfÄ Hh‰LÜM¸ç}Bé(aœ íwSġ­25µ-PŞlj˘ĈgqY³òú.’ĞWĠhÙŝÒ _N§p9ÉœĊŒÇl²MÈi…ĵŽĊW[ğ'=鰀͔˜–UñÎÓ’!cVê>Ĝ\8PÎCÎ:"ˆ[̜%{ó²ġŜ4âĵĜ#Ĝ(Fä.„h*‚ä˜X^ŬXZš)òKĠ~˘%D£Y‡%ĉtCz‹óż6ùôûN?ÔkċcTr$8Lž÷nIÌ}ž·ğüBp[ÓzŞ`KL5ğ”•|ĦòôCl-[Ÿ>ônWé—95ċİû3[ÔdY·¸ŒFÀ„.w§]!/XÄİs<˘3q,tü”·ŜÓ`ĉĦï‡;üĠ·‚UhG (1dj#’%'¨yL .rì7K GŸċˆ~ıEÑċ˜·0tƒ•Ûw(Żú>ï/M]/KÌŞġs£DNùnĠç;Ġu˜È€wk: G],œ#œÚM Â*4ŒĉğVğ³,(qĵqÁ@3à’eN}ò˘ħ`LĵèûĥÌY~Ĵ €ç³B×µJ4í{Ñt—-„ÁZİÔÒ “vċŒ†ûÔuğŠ2·÷MĈt›g˜V•°3¸ġ ċѸx‚ätÈEŸ"je[?Óĉ×Yj½Ü…×éşáĞġŭhŞÊB#ßĊàjĴyڙħİĴ+Ş{Ġ‹`g]ö+F|:ğŞİl–.üB9öŝµi?|.ä/_†Y32DoíĈö€ċ->———²ê‰ÛÊE⤖÷kĥŬÑĞçÂu¤•,ql…‹[ôT‚YtŬż3ĥh–à/Ûĥà¤1M3ݵv¤ĝşéC›ĠĤ“é{8Ġ–VKĠ5ÙĉŬXêï ?.<–âF&5Ĝ~7ÙrıÄĞ~ġ=á‘öİ7˘¨:Îŭ€ŻÍOŭ\ݽnQ .À]r75@^u7'ĉùş€áħiH´Ì‹Ôœ8~”…I´ĝÔĦÙ)ì8‚ ¤– ™ş/N­pĤߤ uí[ŞŠjó¤ìÈ8ω Û×_èĞŞÉ~KĵĴ|É+Ç# |Ç)Uu°‰è8Çkäú7sv!áh˜üŭŸ&NèÇ úĝ·šó4Šq„òËótŞ—††ú ıLĦQ•Çô’#Zs÷Ŝu‡´’ yĉ† Îú⒟W6ŒV2?YÄÛÁÌé7ÈÛ}Kv§ŞĞeĴż^–3)C 8Š^0ÛXRİà]‘Ì4–éĠPCÚzġ28\İxk²ĝj翙nTĞs¸5á 9ċ³+,cš˘Ĵr_ïdoFµŽ´’é•vĠtë 6n¤V*#ħúK*Ü[Ċxġzp–@éıöċëB"òÂqäˆç@Ĥ¨PëkÌyÇ >Ŭ¸XĤIÁo/ÀA^0µë8ÚŬ|›{‹ŝÉâĜ7tŒàiĴDcÈN’R'Dƒ“ùËꎍ!šçœ×Sçğӟ•< ğ2ô˜sàžÎçġŞ£-ÂĉìċyîLĉ(Z-Ä593ê™:LFŞòŒ‘BˆŜñ ÉŜ ïħä 6ífÁW ZÈHÙ).–•ĉš rC+ĊçvàB}"rèLš†M^™RD·ZŝÖǕ­˘úÍ “ċx‡Ö>–ĝËòÊëġĞhÁ¸ Š-->§Y"ż¸—×a%‘úè´ÎĝA£9ÎÂ[Â~út°Hs…":ÙÙâŸ'M&]ċ3_”¸…A2Ħ{ C;^£<C³%v>aĠ‡ğLƒ2ığcGĴEx[è>`EN,RO˘ñ3Éüx¸È0êµÎOoW!{d3Ál.sħٟ½ ‘'ù¤Lâ­SŬs‘ Ëıħ%´SċíLk[X÷ ,|@S lâĠÚĠ)Ÿq4y„ŜrıeĴ°*‰#š;Ġ%$TĴĤİ·Í EÙĈìĞ£ ‹‘½†É;òŝħ°^|ÁËĠ K—sc²ÜJé MÚ/ċE2–€ Ù(pÄg^K™Ż?ñÜ3úùŝáXnK—Ĉʔ¤&V‘ħ.Ù7~ˊ:z]ÓúzݵœxtİéÙk-ıĉ‚bÓU,o~ÌġĈ÷}íŒĠ—ç2ÄbÈÇV^~ş{O˜³wD­] Qœ|ÎêĊžgËeÇ´P/  •Í·WŞÒ×É6s_ş3-*İïTĤjä"˘m Ŝ}ÄT5¸Bˤ;TĜ…Ô0üx\`ıÊZŬ›Ÿ˘×€wʰ›ŬꈂpÛd·PÁÁ3#Í·â|ö8m¨hàİœùıŭ 4l¤ÊÏÉ+h–ƒWS9ç5Ĉ §bĥÇĄÈċǒJ‘ĊžĊÍ$}´$Vŝĥ`Èí…:7ñ&İ,žcĉNĉĉ,Ş™òtağárÈ*S'÷²&Ǹ;% áœú÷˘;ıîŬYMaiH:²Ë׏ŒÂX̆*ÚÇĥĦĦżı. ş ĉ#_âùÛò§·J[qlOs#µzİ‹Şmŭ ]ĤNRî3ßF˜‰Ü¸çw5­ĝĦïf˜½˘{´ĞiC§2‚œyè)£Kğ”š{ÈÁòN{°g6¸Q†4¨P(bùöBï‹}–ÉÁEi*¨EŻ7­>˘TŭXöêÓ³Ë|.hvŻYûÄ(Ä{VeÎqÑkH˘×4)ĦĉÏ#^° gÀŒ—ú–Œ/rĵs+ôŸ"œñċĠbßÊżN ߘ.äóNaŜÇ=ÈĈ9fE`ê{Ħ÷c˜Ç‚×~ÀBg͆-ĜT¨‰<_–=‘’hè:ĜâŽ*×@_VYEıúB!+ }—Q4ä÷{µjšZûò‘Ù̏›żğ²ŝ#ĥ_c‚w‹ĜÂLüÎmj²›SÓ ÚnšÊxyËŞ·+ÎàPMްwRÛÎï#ıg|QÒx+ĥLjĜƒdÖ¨VÏZĝ[޲ Š’­ÙÌMѽ9ùΰVh{Ŝ]s“WI$4Q„şSzßäÏ#'‹wC[wL“çFñ na̖ƒbĤC˙mKşDÄäKh]ħ¸lI—͸9Wg‚KÓġϋŜ|À:Œ [Wğ5SÊP™UvCoîPLMĝœ0¨ÙŻc—Î䀌OéË5zWê˘è‚_“ní—o__ (e”šĈ‹İż[İ8‹$ó7Ĥ_̈́wâ#ĜÏEŞhŻèü\8'¸kä{B¤ƒ!y}+W4ËÊ­ĉĵ˜ÍkV\ĵ/Ùġo›9ИJ‹ĞÂo§OßU%a!z;yÄŬa7K(xCß|m÷Ĉ$ˆ³Ĉ´í_^Ċ˜;™ŒAƒ4ë¤vP¨›˘6+Yd'ŝ\ĠŞIGoÜ9’B˙iÙL ğâĉiÒ_óèsĈ4¤ŝaäċ#úĠhC$ÉR-dääW÷Yï2µAÏ}<°êBÚ°s\]@ñzqI¨2eU÷ˆ¤C6JnĦ (éxηĉĝ>njfċZù§D^ÈĜï<V8J;kîiÉÇŻ:€wl×ÓJan½œcĉœV—Ĥ×1z:Ğ€˘Î÷½xû.żyħ†„*rÇh™ Û2ÛÔk‰´ÛÌBĥ‰§ĦÌИeğêŽ ŭUùílK›ÚêAğ5á ! dWĴ‹Ħí"]½Ĵ\ÈÂp׍:ĉ£‘nnBÄÏĤ­‡–†ÌĝGċÔìĞ?fĝٜ—9Zvi!ŸÜOE• ĈğïÀž½Ž+gĉîe˜°ü×Ġí²Îš‹ÔÏûòùR%ĠÀR¤MœSŒ5Ÿ¸Ñ™2ÑÑihò´EkU—ĜçކҍBVCy#W;AUÄOë÷CvPb?Ìí–Ħ„-"CğöˆaAeÑOÂäbXĝyĝĴ[àz´~RĤáĦïÖpâ_İ?Aí~?èıçÙ%ĠFrƒ·¸\~£Tħ­‡Ĝ‡wcàv†`wçù–¤d‚Àgĥ÷°Wa‹$·#ĵâ#n óĊĉĈ[ŭ›ċ/&\ݽġĤ<nÌ#ú}LÓó&óù( ËûpĞŝb%¤pĤ…ÎÚŞĤÔżÚġ³@wÌœ‹ò˜OJŸŒ`oŞĊŒž{°ÉoMeħ|0>ÏMK! ê‚báÏŽZSž‰ĞsĦ›ĝ*öeê#9žİÀïx+ßÑ\úV“K—7䈟q=“â+÷yġC*1O`R,ŝRˆ°nè÷ rĉŜʵĤz|Ak}â)àc31 ġ!VŽż—”%2ĞĵÇ3‘Ëìé1Ċ – CrvOÌNSŽƒKö¤EÑR몔ŒeÛŬèfÒ €uxNç}ħc`oIsWv™YĠñ˙JZ"`fħż|½Ï^1ê¸Ġ$ÏĉBƒfpIÙ Ħ™;–ûzßg.·²˘Şv4Ö0gRTT)Ù×kR9‰H(èn4´˘†ĞáÍíf›X§}G/-€Úç£çx_́‘€ċSqÑŜ,‚ĦK}6ÏIYĈN÷…ìAğ&óĊáĉ9!Äp÷PŝmÚÙ,/9 ŭLĴ:ËLòökNTUœĉµ§ċÙ|ĉ‹†óË~ˆ‘ȝú‚uml`+ [, ÙċŒ j˘{.˙²–M‘{:Aâ{蝄ŸÀ—˜ÍfêHžz ŞÊ¤H£-^ëŒ:ċ“ĝ$^‡FfŽeDDü#ÛŜA``+ħ%WÖáÌv5% 5'ë\Èmí_ŠŸĠ ZìI5ğ—ŭÊâ,L\öà9Û-„–gáAŸFmZ¤PfpAÛ'NÍmáµ:Üw²vħ4xµÒ°Û¨¤b 5ĉ§Š‘ îĝ <}ÑĞĜˆ*Œâhħ²ĠžÈ™‡š#HëÈ÷ĠŸŬ |ìçĤuĊK²żúáUèK/~°mèy@u÷2[žSŸz9oÜФ¨g_BŻ5kaŠŸ1•B)SeíBdVY‘î8ħ¸ĥIèCÌC+NQÓ~œĜĜÂÜ£¸²i z¨+/2üeƒì!ÍIĤzĵú½ĴçjÍA›żw¤gÒ×Ŝ°5EÄ¢çJúÊ/I<äŒÁ•EGËİ\{Żé<†|ĦocSĝbĈj_4yìKÊĞÇŝëĤbŭ·ùˆ‘#*YÓ ĠÇMZ•:lù•=‘jÒ>›lĥĜ) ŠàŻċ!‹pżPsµôSS¸ŻâVŻ)',_üĜ%˜?éÄKnĤ‹µpşĥ ‚굈ĤAyĦĞÄ~\‚íÂQR‡B¨Ż[ħDÓŝà˜0ĦÍ&ŽEp^Ż/mÙħD¸¸Š‡Ĵ ÙħöH Rpƒİ3Ħµµżïħ‹+€š¤ˆo›‚0öŭ.TĦ`*šŒá‡u“ŝ(Ûkàž<7q,Ĵ@3‰ıP|ĊCµï“ dĞ’/V–[éaSY3B“èĞoÈc˜ù L9çjf‹Ĝĉ뗪]P¤~[.‚t Ġ/ƒÔEëΝ=â î­ù\Ż_ZŒÂ—÷ĝ%e–9÷p*ӉĊ§ùÏWĉîżfYˆĥĞù7×NSż9àüìû´%šMZ§W4=¨z°4,‰ì"‡óv WV]³³ r_í̖hrÂ9żÎÇV!r†ħGàŬ^7^Jğü­8°4ñ2ê! –„ƒŭ2L˜Z!“àŽÀĝ€Mfj}5óûhJÔ§"µ g!SvÖa¨íè>gB€O;İĊuòž]ù›ïŭS5ÇĥZ-ğıˆó‰,^ƒ^‡éŒĊ@hĠ6÷Óċóı$:XÌ//‡ä·fĤÖ3ĥUîYq´Yú÷ĉ&XŞDÏé´Ïäħ#Îl—Ż{:%‡ùĴñú°@†kKçŽ"ħŸìhÀj ‡à$ĞĜŝ]“ĉ4š@έ ›ŒÌx~_/ċc=ˆŜ–@š­tÜòۙX=Cbk"‹u:­TÎvkQ8aAɜ* ÌÀŻ„Ğí×Çësw’‚Ê{²'Ât}T?™•òà™µ%MĵPÛà`A§üíüfĦ‹Ħħò§ORżJ Íì|H˜Òm]UU7żŽûòGXı\(v4ƒccàñW*i>1 ĝCĞs¨0 àĝÛ+ìOêç[Jj§—yA€ÂG°tϸŝÈÉNŝ§m|ÜñĊĜ†ÊÍ3ó~Yû  ͞÷ó T‘z†ä‘ñšQ0ŬĈ77M›~kñ?×[/€'Âv_†xw&Á_á#| ŠĵoÉĤ_—' t‰ 5ÛMwa‰„VaH$²ôœP4 Ĉffİsˆ<ÓJ“·ÊüŬU`ì?Ö%Ğ —˘C$é#ޏ9#ċœ¸ı'Úû"}°|?—œĉ=ĥŬˋĞmä.ûäĝB”uÒ7Q¨<\!Fá—Q š_¤ñ è·Ŭ‡™WŽ&TLċĝR•…"ĞĤu[ı Ó͵8ŒĦF砚5{0ó7rkXW!ƒŽ‹şDµħ…ݽ5^üÜJŝ’NnuÚ=IQo‚ĉì²³Q}Kì)f’ğͅöúÄ|蓀ğᏺŽġy $dĵ ’ÜYġİZvE­RƒŻ3p);È!ĝ}€ˆD{3"ÌL=tMìÇoÇğ|Ĥ'~›ráŜÀç2_`Ú*.î>,ġÍĉÔ\£ úħ·óŠ\¨`Û ĠEŬĵ -ÊŜt·D(msĞŠ>’ѰdĝG#™ è)V y\ Äğö;~-ĵ|`ꛋB•#%PxrñÙkéÄüpĦ½bşt™ş§FP(ŠĉÈ^ÖÁÛûRZ†t€ß:gš‘‰ĞUAxspvWîÏŜ,}En•uS°Ħ/ËzznÌlŭFêHıWĈĉ‘‹lÎ[žfĉ3l'ğ’4˜yYkZ.tyƒË3GuEb™÷z,‰ Y_µÏ%$òÒODĊ-uİM%X1ŠkwħRK%í÷ám=UfûÄ"D@1¸7‰râÖ1Ĝ—|‚#{{]'UYʑwdšOÇ#•?¸)FÄğ5(Kî_àóknïĉ ÇÉòÒ]DUŬŸmíÀQéĉĜ ŞS›o=`ƒXE^Ó~ìĝÈe½Ċ”D¨•íÂcApv]w×üš9ÀІQSÛ0ßò ĈSÇ\çĠÚCREÍÙ6O6ÙáP’•l4î”mîOÎĜ­ĴQeĉ½Ë·…ëo9?pu³/ĥ0Ġ&ví“H÷¸"f˜èu£”=JUĉ½ÓYĵiĊŜì¤ÙUUŸjïŞì ŞżFÌ@’<§ +·8h›ŬQC0×k¤Úëè¤oŭZİäPÔš]ì,užAàVšÍœŠaR i UYׄ‚żċgR!Ġ°@P70Çìßڞ )'×Ĉş–WAf#UjôÉzĝġŝ$]LÊcÈÒDäáJpÊ AS ‹Ş&UßEbzYŸö~.Ŝbސ?)~ Ğ|4ŸĈ~KEŬ3ÒÖsMċ²œTg̖żÔÊ1³51—~Ş8X2MıF3èÂN@+nìñ8Ħh§Á"%&×°à=›şÈ1–;CôùEÚ׸Ǣ¸`‘mœÏU2lŸùÙ%ĝW’bW8‘˙UÎxXLÚmÏ`IËàgÙôpXĴXɝîn0y‰ÌùäǧgÖO[:F6|oğ2Ğħ^ŸÇˆ×š‚:Òö•ˆîôqÓfÈ­ıĤîWÏJ4T‰!Wt;^|st(Ky· >”cœïr"şÍŒbm¨Ÿ†:Ï5WöDçÌéϟe}ù™%ñ"oĤÌ­Ü3’À1|<Ql&yŝ‘ŝŸÑÒ˙"&ÀI°U†i>ŠĜ˙„Ċ[IÓÈıµ•§ôƒC“\háC,>xŜJ—‚tJĞs͌ÊĴD),úÀEb­-óÏ•¸'Cm&ô~Ĉ7ŝ°#ĝ–ċİMx"äÁ‰&:7w{}é”;Awï^!Á‰\F‹F Y’žŝ%ĤUAâı…Ä(QÚ<ÎòV!ˆ  Â4uü1\'Èw°\ÁoŻÇ)fŒ1ġג‚Œ§¤”˘żŠ£}îàtKÔêLm‚rÔʖd`=' Î,K‹Q –Í!6ôÔÜâcÒÓRç.£+Jˆ²ˆ9’şƒu°pĦñ"ŝëĝU)R›aé œÙ,ş\z™ÔştŬ[ZäӚ5´nb€]ëÏ"şfPR1²à‚;;×爐Ö&j¤iIÀ­‰0vF7­íô—iB¸`™qrˆ5óöİXî+úŠ}̌ Âg?bıT§2Œ‹ ˙ QBJ“Äﰈ šr’§Í†]#l—–š~޽­ôICĊ†&єĞıRùÌY÷ûĵ]ıU?4·uÌÀVc4„Èè->t’' r:ĥìÍÉ è³žP(/6™ÛmgVd>cçQ 4°ky¨#­³OìÊM,8](D%¤NóTъİ̈aP†iˆ§ÏÏ>·‚Äe ˙Q³žgdW…êC·7P|m”& Eı˜Ħ2ş’5_*ïÍ\nµz3-P½™#UŠUqÑG?F|–XċŠs7Öì˙`ğqQċ~LyPŜFü‘v‘ġKşè|rÊ3hŸĴËèäA÷ùœ!ƒ8™Ä­Â îĞĈr‚ĊŬvégßá*u++Uê–ÏÁ”ÒwŝÀ*^ìÁŠ (ĝx%ĴĈ˘nˆ°´Òà‹ÁVrŸîäϗÙ%-"OiœŬéè ⏄TpĦ,Èiç?ñÈW@ù<2³2{£Öèöùh˜|ρˆ4—%YT@‡ħèêÀƒ¨!ÄD#bw ċgUGIo%&öĤİi˜Sx“ĥï}ÑXǤ9ÈNêJYžK—„Ó7SÊv[Wîı˙ġeUC@ \ùuPj&ŬאŜ^z|ŭö&F´GgĤŞTŠġ³ìŠcY|~öCÂà ´ŠtOï‡%v·ıô×Ö\„ŞdÔM28ĊŸêÑd‡x[ù;>VÚÎ.ž˘²¸pĈ™H.7vB‹ğŒ­fPcœ;„”?ñ§+—Ĵ!NŒ%~Ĥ}oúÜl séAù›ûµ™^Zñ8è™ÑŻ€ħX_>öÇRíÈ퉨×iè+Ç H™;DwH%4Ï'›B#έv,²Ÿ™–ŜoJnç Dc‘â‹› ?FŭĦèÇ÷çĉıíLŽTŜÖ  +ˆ.M›sĝ•™|ŻÇ½dZÄ`„ñQQ¸‘îċPÙñFi!˘ûĠÒ–{2fÔQż/U\0PüÊ|—Ždâ-.ŬıżœÁ…²h­~ÜáÂá‰-bŜÔ#-żġYGġ¨F >f‡ĥç×@ÌîìS:ĦŠgċ½Í%(‚HÖf(mܐ[.Q½"Mâá“ĠveÓî³ R¤ˆ Ösoó‚¨NüÂúĜËb˜aÇ ħëeĴ½½ĴÊàvĈrôL|ċ§Pù…H ‰Kŝv˘GNÁ–‚&ö…ı¨‡ÒĈމ÷ü´ŭ0ıž~tÊyäU+‡ŸÂˆĵëÊ7ÏĜĴíÔ݆ï ĜAÇżç˘î…ĵŸÈq!âÂÁNcu•EĊRŒ~ .ëì+ġÇЁ|8+ËёtcW“š*àm`Œġcĝ)0$ë‡ áHe˙µĵĝڕ~ˆkS+]u—Ùs‘ê-jàî¤÷L‹ì¸‡!û׺2äċA¨Z3Yï¨ìW_;e!ôçĉÒqòd”›·ç OÜZĝĈ:Á<†>2šĈ˘ŞiÖu„”~Éĉĥ0àwà ž¤9ì}5R]&ÖŻr›r¤)韙Ċ´˘#˜ğµpPm›a•m”îunB5—„€h¨'€™ĝİ™İä&ĥ ÎÀù‡ ËiZÔ ı/Ŭ@íÇïs(”Ì ĤÏ×Ô¸7cE êˆtŭD=ëbŻ‹ÖòĴÇc5¤_Ò E* ݲ;@żfuFÍCĦ#5 Œù›Ċ{;•k6Ĵ´€M(%D–Úğ̗pìù([£ìjßÀ‡Ê+sƒ\5RD2 ƒ]ëÁÈżq€ÁÑ^öşQÄÀ]K…œ‡RŠ…Ġ1ĜW_žŜ_9Zתqw°+íM—·Z° oȟ\‘jób Ğ'[I.Ú*-ßCÒn›jfqĜ}ÊVxӇ{àW OpÂ[ˆĵà qĤ=pżĜ ´F%Ħ83;ıñ"]]î{ëô%ö–BYA%˜‚SÎ4”>&U÷ H ü< ;‰ĥĴÓàužn$z wkĵ…¤°E&żÎ÷Úu„MµÚs—°µ`Ÿat=:ŬYƒşµB¤ĴQ#½àLÓ~#cé |P ù LíjÄâx}ŭ§-=ˆ†²ż`ôU=&ƒIòP‹_µí²{­Ì„Ž -аR÷úY;O§S9;`Ĥ,­L•,z˙Ċi0TQĜŭjdÎ]²¸Œßžġ<-ayŻ_PbÑQ•ÓĴ‡üWô.ż,ĥŝĞ …ħS Ù°YùV¨³!'š%šéĜ+•êQħûä‚ĠBd="v ^mäġuvïıû3˜)âïQŻTy?)½³Ñ¨ŻŠR,ĝÍ2 °)ŜZ5ШQğƒœp¨ŭÁ‰ÏĊ€óAżÛıj &ŬŽ]ğ~qeÒċÁÄcpŻ~û Ŭ(%x}•ĥĦ÷ı ĉ[ĝ_UU‡“ĥàW`ylXŠğeŬó1sŸ‰dе0Ä÷ùíZò]¤”şvNCŠ ‹IP`ÉâTÎ)O,şàî¸cѕíÚÂRHéŻ9­:ËÇğW·ìĥLV)Ê`ô?‘ĠN}ü(›¤é)Qóq1ĜûĈCääşVFe@~Y×ıİ|°›bü ²w5ğĦÚ-j<Ì˘ï|Á·"1…Ĉ'ıI-Èî°E:ĝM4…`-À^Ż`Ż0=cBŒ’ş^\ġĥ´Éŝ5.XÑÄĈšıiÒÄWKG:ƒSFËö5mUD]·u”•ż€Ç˘- NÒ@ı˘A[—•烗ȳ§{·ċOhjeÄËı•sBp÷Á”MÎßt.}ÄR-êħtJ£ß°s§Ç—Lކ];n†\Y•Wä;˜ċ‡]&ĝÚòàúîoż"cÉö֘ÖdÖŞŬġQBĉġċórTc9xĞëU÷ şŒZ*E˘0ďĞ|üòI3Qká9‚`}cnŜ¤­jcß´÷îgĴÏáú {P`Dl§ĠŽĵġbĥ£âEŠNÛĦ4…ĵ*ŞHhµM´é`iÊB˜ŠIŸA…Œ§ċÑvÙIFF §kH#:*8j!Sdeú& äÉ`ŞÇ qƒ *:8ĠâŸ{ˆ)ñ”0Ô‪ˆ?›Û(<&@|oB÷™Ž–ŝq'şŒ]ànè…XŬĦœµ—ŠĊĦĴx× Ò-GӓQ’nlӎ =fìé¸È§ó=•dş‰qÇìê&}y†½iôóv˘TrdÄċxTWìê:¨MÂêOĜÊŭĥŭgô×Ú7ĴéW3Wşe25²“ĤŬZĜ›Y‘ŻĜ•˜‰³´ŻòàÎ4z½UkÈ# Ÿ—ם*x ˜K¤;Úşcv"”éGlŞ…÷1ǽßG‚GmóŻ’6,Ğϟ\hÂĴu’Íü•½t12ĝ’e ò8[w÷@İ=ƒ|upıé(â;íìßj—W}'8 Éìz>[=5)dwú:ê§BŠĈüLò[ËĠQ Ŭ!ġtÛ}YWèvklĞïφ5ŠVé9—şĠ#œ\éy“4(+“ÉğRİn†e÷Ö|ú†ġE( ò}ùĞ˘ó˙Ÿé÷ “Î>Zpħ}/ämî/¨ŸE6‚vżBïŭCx…*û8?~Ù.3œW,ꞣ+{9ÌìI“£œG‘ì}…šĤÛÄëj˘%6P ôu>òHÒCXċvƒÎÄ1´ğŒĥ™/8]÷… [³/òa’áoÖċUĥ)Ä£•ŒinĜ ³Ù:vŸp·L` ­6‹ż\#X•´úòPûr˘JŝQžğ&Öâ͕;Ċ ÒżŒMÌUf'ù-4œ בxÜaĠ—Ĥv" ǂЋ=HĴ›êpoĠ2Ì ÀPpF¨‚AVí —ŭV“F•HÇ׿\DaHȐûÈ8Œè5vZ8¤ W't™””Y‚ƒ1óÛ´˜wt Ŭqjò‰#ê,´Ŭ[!é]³DËôŒx‚²ċVŭíĴ§8JÙìb›üéÓY)Ûż˘%™ewQ­²Û/GıG=ŞÙe?žĈĞŸš2% ûäê‘ıĊIÎ=ž(½ŝĤÙ9ÒGpĵq× Zñ„ižyäOıO™ÊEŻş_ŭÙ9†á/~ Zŭ+u@TÉç#ݚ4lLôsÙqÜù+#WğÈĞş!Ş÷/ŝ`ĝƒ‘“Š<aäôœo§òŻx(ˆ*nšHĴ6²Cúv;}´ħF*÷HÜI´{1MècSQà†âŻ^óIVŒóC×ë–Ga£Ċ@ò:7Ÿ³²Ôó˜Ù\äĵ 8DH ŠġĞîìŸçĉ(ĦŬkô‘oí&ğlÊÁĠóĞáÌ/m?OvۀP’¸à['oï*#IÍı9¸Ò´ç#ÈĦ`oÖĈbéËA1›Ÿ{6şż—żö{R˳`"ù)ÉȰ|ù\Êĥ"ë^ŒžŒC=Bj­ŠS‚4oZ-ÈywĠÄܘ€ñâ-8ċߑŽz°Y‹IòtŻz Ş ŬÀ‡c½âĠħ`Ìĝ×ïEnée•e›ĤßkKce tûv` SßwÈÇÒT Ĝş;G‘°àè0Ĵä_{`'ú7-X…Ğ·)ç•‹ ŒÀr+™µ‰˙eKq1Tş?@yŠ~P7r…¨ÁA¤.ğŝúr{ĝË|wĴJ !…ġ¨AìĴT|ê€÷œ:hoöœíÒgÜy>Íê…–qĤ„'ĦGu›ğI\]› Ĵ˘#ŝWmwU…ĵŭ´öVŠ(”0pT´PäÙÒħ›ï>*ĈW3F˘ċ4ÇĜ”’şš=i“­$ġî‹/Ï+7ô÷Ë}ë‰{§hŽ?7 çeİn`­$¸Ż –Îıħ(8ìÍB3 ',ĉ ;ƒĈ ßʲ!;h@|†O969'Ž™ÔèĈ¨¤,Ĵ߯߿;H³ĉ½µ„…µšZ›Š§(šxXîƒĦ4p£Xıˆ!öÌMìVS˙@ïñĦsÌë¤4šYe´‹Ÿ ԕ„aÙ°1Q‡—ÑÄ=½Nu9u÷Ç èïÇ*O;ı;B‰ŜC'ó³XŸ [ґZ2T˜2;­k+.¤ëċPä"˙™V•ŝӃ+,ŠâkÔ3ߔİsŠßyÉkâ“Ŭ’ÉvübíïĠ3 °·êj_ǝĉĴ@f²Œ]$ì”dÒdɜÓw½éZFĴÍíÍÊSTч0üÔ,˜Žĉ8‘ĵ6PL¸ ï‘hŞĦ;[b9n!ádì7„,4B7rż- |ìixLóJh˙*7§xQa`TC`fšÁP3–Ñġ†½çҋ"³ŝŝè"ço;œ ‹s—2¨€Úۍ™}Ŝ9o/kxƒùJAìÖE×və‹ÊŝìÀĴ‹€BĊġÍ1(™rҍòGÌ  y܅D?€…Öô3^Çxƒ)–9"ORÔ÷82p endstream endobj 226 0 obj << /Length1 2159 /Length2 15099 /Length3 0 /Length 16382 /Filter /FlateDecode >> stream xڍġP\kÖ ÁŬ]‡àînÁ]‚7¸www·àÜ]‚kp îÁà—3gfrĉû˙Ş{ĞĞvïgù³ŜµŜMIŞ¤Ê bbg’´³ub`adĉˆÉ‹jħ°˜™Ù™™Yá))Ġ,œĴA˙‘Sj€-ìly˙a!ĉ:½ËāNï†òvĥgk €…“—…‹—™ÀÊÌÌóC;^€8Ċ ϐħ³9ÂSŠÙÙğ;X˜™;½çùÏ+€Ĉ˜ÀÂE˙/w€ˆ ÈÁÂh :™ƒlŜ3­ŞvĈ '÷˙ AoîädÏËÄäêêÊ´qd´s0¤¸Z8™T@Ž  à/Ê  èßÔá)jĉŽ+TíL\ ÀğÀÚÂdëĝîâlkrĵg¨JËíAĥËŭm@ĝws,Œ,˙ ÷oïżYĜŝËhllgc´u·°5˜ZXƒŠ’rŒNnNô ­É_†@kGğw  ÂhônŻÒIeáżù9;XĜ;92:ZX˙Ċ‘éŻ0ïm–°5³³ħÙ:9Â˙UŸ¸…Èĝ½ïîL˙>\+[;W[Ï˙ S [Óżh˜8Û3İÛZ|qI‹˙Ûĉ]˙Gfrp033sqò@_ 7csĤż¨ıۃŝdùKüÎÁÛÓŜÎ`úNäma z˙ƒ÷tş€NÎ oÏ*ŝÁ³°L,ŒF 3 [ĝ?ÑßĊ Óżñûù;X¸t˜ßǏÀü×ïżozïfbgkíŝÇü_G̤ިİ,&G÷oÊ˙UŠŠÚı<8Ĝ Ĵ,63Àû(-ŝ]ó_i[S;Ïßċ÷é?%ğü{hŝ½ ´€˙`÷>ı ͟A×eĉ`6~°ü÷ıü˙›òż˘üżú˙­HÒÙÚú_zšż ŝô@ k÷[ĵO³ÓûÈÛ½ï‚í˙5Ġŭ½ş˘vÖ&˙W'í|ß[3ë˙ĥÑÂQÒ d˘dádlŝ÷¸ü-W˙kÑĴ-lAJvŽ]-fĉ˙£{ß.cĞ÷ëñ}&˙½/Ï˙Ĥ”°5ĥ3ùkËX98@ ;<óû(ħrp“É?à; á{s™ŝ>ĝ?ï%™ŝ!‹?ölA—ĝKoçì˙w³Àwĉ˙…ìï,ÌŬíÍßïß?ï2‹ÀwjV˙€ïÜĴ˙ßÉÙü,ïäŝ„âxwµ}ŸŻèßÙÚŭÉŝîl÷?ê÷êí˙¨ß›a˙ğv˙hË{ù˙ Çò^ĞŸ|!Ë?Èpĵ›;_qŜcŝiîûEÁädîúG˙Ŝ 8ıÚŭᝃó?à;}—Àw˙8œwï$c}ïŝĝÎÎğ÷H ‡żSŭϲ;;8ĵrŝuoâżo È~yÁΘ/Ȳ.¨w+Ŝ¤À,ċžf-ƒç²C§ó#2L2muVÀ†HòHêêŽÍ­ ɋçqkLh[˘rû“׳AĵÊô^;üÒìÁİÂc‘ú"8B5á}Ż—/^ŝVZÁğe(ó8s#+ċcüví—rĞ(˙9²°§ĵ_Í)‹\>­ë_2GùĠ({— ډö#ú…ÊÜíŬ,zîÔ‰L<ĵ÷I4[‘§ö&kÌĵÇÚ75VÇ< ˙ŝƒ0"Äĉâµ=ç %“rtL†%ŻLŻ-ä˜ìS9Ğj~NÒñ@ĥ¨şĝ7yğ :êR °0%<Ÿż%ÔìĤä^‰ˆw²aşl& á—Iµ¨I‚×´tù³àOúaò(US rqñs–ì 6ÍÞpĈñ×Ŭ2ŒĜœ‹UsDüijxò#'d‚A¸4x߆°rR·É3›µ-{ïÌóGéÒÔ_]Ğß.wàŸ(âvż˙ĜÖŬÒT`+˘Ñ˜Ñ=WĜß'ÌëìkaCC†šş²6@uì-“Qj/GèŠq7Uu/ŬZè6ÚD›ĝnÈLd3x§´=W£àì°@+'àl^303,>ıüµ­Wi.RżÄ·ı…ާg~—ĦtÒCŭÄObĥo>w;ŸŠ\q=ö”y!ĉG`ÚIĥ&“ĤħŒŬÚÊħ \pSËñi2ùµù#8—28dÎeԃÏÒy<£Iu~e§íñuĝü-1‚wħsÄ8[İì+—´Ĉĵ˙ ÔÂ^žĉ[kĤŠRcO?”ĥv&‘—1Ž]Phmœ˙H€´MˆXˆmzÒÑŜ)â]³.Ŝ‹İbĤäÒdr‡żb˙›ìÊÚÄiLfe ĝ> šQê•}˙Ô^ÓÚ@¤gĤ"cÍÔ@ñ´ĦĵRnÀÑG•A]”Ò ĥIŒ|Èŝċ™îŒg û ŒDÒdDĞ×<ġQ*.í+ï²ĴĠ8=şcP0ŒNú(>´M#C×ǍžMöbLŠċ$ qm†ê”ŜŞô9ÍÙûĈjijü–ĤŻ>jÎ÷E ŠÇġ,XñßHü }€™T\셁PQżVgş`èÚèĈÊ5$qŒ÷ÙĜjĈ†¸­ÌO  NĦ­ÛħDla6€{Íw =CHsŬĵ_KtÒ)&rMxXc-¤[ˆ=ɳîŽs8TÉĊ^óàîÖ?nVvMĝlçĦ/Ê•n†cšò*U{J–ŬU B-í§a$7ÁìÁ²'vq{€ ÔaédpOĦĴùé?ùTéW ƒĞ Vû ĦŻûBòà¤Hċ2`ÑMͅB§²ŝɰĜ˜Ìfs¨M.;ıÔ8_šŠ™àŜVÒ·9Œƒ&·‰+ŬLg”†qĥÄ'=ğ˜KôhÑ şÇ…(üNƒĦáÁ/9À1áXàÏ_×b/‡jçÀ ½@Ô˄‘ –ı‹İèjFĠ]šÓÓúŠ‰Û–BÜP•ùĵlŭħenœ€÷3a#ƒ Ħŭ×]r‹\ÛS’vΐ˜Oŭġíí·ôv“t– ^&˙G€)=ĉ|çŞwôWdċIş 6 O@W²r´ġÂħTUcÓ6) ¸ûş­ŭŠK¤™†d_‘c(h¸}—{K&‡ó+YÚDJ¨´ì5Ĥ tŠöZaN>ŽXm ~ó<ħu×´N’Ë'v%Œ$Ws£nßOlŜA:(E6'÷É*Xż)ˆfŸ?èHäħ{b÷Û{¨0i>üBf€k÷/HCí7&ژ'–ƒLݍ;Zütd6—À2f/ˆ1;ŞçߝtR•ïŭ¤™†se £cݧX/œi-L Ż Ë~ԄèŻv‚4aéLB0"š,-¸Ö6‰½(3M‰Ğ‹ŒítS8-Ë_·ß‰uüPœŬ*%ç·ĴXd.x;k}3{œWšßĥ"w!C§k?IB(ƒ÷ĉ;Úg…‡³`ÏC­€0ŸéĠéĵšsşzŠ ó ĴWıxgŽ£(‰mÀÎ|ŒrYL=1•¤ğİd!ġ݌.ITµ}(Ĝñ!ö5@û˘G”Ó¨kqAŠġ 3a‘5úe,ÍF [0íÌ s˙¨úŽì}n!Áé lÇÙ˘°İ qáGġV&—›?`V8Rù’qGúó#׈³œbǤ€‘ï„ÏÙ³Áš ܋X€´?Çe‚˘‡cIİ·³œaŠü’_yWŽl×,‡³ûƒöĞŬ5nwE@¤çĠU\ĦWž‹!-q£x!!Û×ċŭdYŠd<̂C¸ô=›o]FÊ̚÷lqœöÍY•·Ä˘>5¤&żqZ˜ ֓ĝ@J˙gwq]ù4UžOKÊÑóÙĤ7R%úÏşĦÉä;Ë.X:ÁŸ§hħ°ewU‹ô |l[Ó+ċñµžèıİ ¸€Hƒ&ŻİkÉúNLšèŝKîSŬŬŭ¸%°×ßĜ[”e=i—&À‚5Ċ;LÛíAG+ڙöËÉĝA aı7£XŻowäöPdœŬ²ÑÈr$JZcFÈĊıÚ!Ĉ3÷Ŝoŝ§´”8rK²ĤŠĴ(kUŝۛ…ıġ¸j†[§ƒonԕ3˘JEĞ{”š•5ĥ`ġfŬ§ÓYÄužé†$ڇî'çZĝg:Lë“Û]öĈ_-eĈrŽĦ‰ĜżĠd uxĦıLâ?ïG i†+üŽ”ÇúĜ†T£eq~&gzm*9ÇT"„P6žd‡:9nœ Í[EÚ=rÒğġíÄɄúĥž¤Â”îÀ^x|xŒ-˙Xš‚=–ı(éê;|⠎ÑğòmîQš ĥY\l*v¨VŠ LÊ%R3| €Ÿ2ĈB+\½g“ò.RÇ; ÎXùkÛC>Ĵ/;“·@ÇÙé·î·*ùğËU^Q-ZÜQ&mL™ ­áħ7îÉżSm½Ğù†µJ/JÁqc&ĉé Ċ·‹R4pĊ<êê'á"ŭÖµ`î~(ŝµŬ/ÙÔ²OÙSĠÈs(y€– ÖIQÔRġ .j™ZšĤóv˘ĦÌéĞJc%鵸­{Fë<ċ9pËIJËÜRx–³v#֑ŞZMżuy:Ùĉ ÖÁ!Sz²U&6Ÿ‚ŝj§ğ|&ŜJ1;†JżˆŭMÛBÑ&BaÛ}7Nĉ_}ĉ=˜*’<5ıj ˆžq4ùTiÁqĵc7ĉŬĝ÷o·ħòo–=0ıˆK'”q’8Ao+aRÛ.ÍB†Şĵ›Çĵ2 {•ÁñĤ”ßÛ<™`QycküŸïul‡S›*o†Ö!bŽa1g7ğĥı(ğÉÉ@°?筈ˆ.M×MƒĤÄFċŽ!TĦ—4 *ıH4ò”ÜNQ(´­çż”…‘YjAµk9~x‘wÀ_:’¨n8ɞ—{&;$=ùhŠK—I .?5 H/ĆŜ³Ĉ•rÉINŭ$½ŽÛ!ĈxzAIq.‰4ÊoaJܐê_%|Rş×-Ó54Úڙ§¸sè˘Šc*Ĉżç‰áÏ´UG=:^ĉŞbÌ(ÛÁmÚQ‘¤×ñÉp5H1v¨ˆÜXÌöKŽż}I³JH 9‰bh³t„DWwĴ}Ò9ŻÊĜ•~hSuž)°ĝĠäz0Nŝb’ñÑ7v‚Jé8şá“İûôŝ{V&ĉ|žwï ÈÚV(4ħşêœ··#•ğ+\Ç;ĝĠúۀ#pŸûpıKŞmF#´ŭF­ëj×qѸ48żaëY ƒÙ­ġ16´”·*1 ñ~ËqħÉʙúÜ5ġ:ĠŬLò(-hŬŝ{+1fkbż·ôÇġQħ)AwĦ Eƒp¨öTôgŜíäZ#‰ƒ< ½ –Ĥ‹#ú@²PY;If£8 ~Û ŜÛxîş)ğ”ŝĝ7ĞσïĵĞ°éŻëz ™ĉ%#üä1c˙y!ĴÚÜçqó‘{G:ôÉ|߈ÇAƒFÇ̜AĠ:œìC"z Sİğxíċô¸k+e•$Ŝ³jQnÑz$Uĵ÷ÒÏÒaĥ\qĞashŬ\gÁK{‹Vƒ³p,x;IƒétcĞ[…ÌıÈß$ĥ†ù.‹Xó´ĴÉ?Óv)ÈO‘8Ĥ=_ÏaŸ+ĥĞšt%]nĠO4‰şŭĴÏà)Ŭ tÌĉPOƒ-9}ŠĊĉ°VÉô­ĴĊêÎŬQÚV) _IhPÚ6iÎKf)2aÊ£ĤğWúŽ`Îĝ\ké<-[!ħÎö§(ÎSËüèX> ÷T~B{Cb‘ îĝ™˘6§g³îŻ1 ż˘ĝ”èïWuÛAkfñÚ EÉ!£>˜§cZ£ĤĊ5ÇĈlŠéĞFoÎuÎ-ŸÏ>uDçqÈğ3^żeùjàr›İtCŽ$˜käçvĠcpß^<&÷½?Á½"¤<1°ĉfŠeZE˜ÉÓôXYìÒğÂd´vxñÎgiÇĦŝiġöö—Üé¸Ûö(SğĉSżnùY:}jú4ä3NĤŸšžĉK#ç#LáÓG–ġŞŜ3ݧ2Ħӎ!óMğ[ –8pëġ>™rž_DtÁTfÌ)h#y=TeäÖÜ -ġsú“†ˆÁ ‰igÔ~ĝüĠŝ ‚ġ¨Ä -£„íC#è³Mġ½hŬw[˙ 6Ş‹ĥ3T‹€@ÀüƒÂLPuİŒ2šj{ÁšeĠÌEèÀ³žË˙Ó]<ö1éëu£ÂÍKŻeŝĥ";Qi'ĉr—ÑÚÛ^ak4¸ÓWÉ+÷Ğŭú½ÛKŞsÏkWe:홄ü/-t­[Âç;6ĥô–òĥĤ҈6*RDĠꐕ Ÿ‘Ğıû2~+”ĵeˢFèġŠ’–à(ùÉ`EœP/Š0ŜYġxò+ ÷ íQ0ċïPĞ4ĝ‡lÙvB~ ÜıÊĝʃ‰ÉA²Ş€âl –}”Á҄HBuö T¨ OUâ,íuûD÷ĥÀ\ÖH†À‹g‚£ sQYÑÇYîzĞH&ħĝäKôâêX@2ö;˙ IÊ´Y°3&ÚÎ Bú­ĥ§g@ô÷›uĈ \ÄSîħ!ê&m¸†Ŝ  ™ ’OğoœÑÎĦĴĉ\ĊħzžGÈĝ]~ä¨BvHŝ½4àèÌîÂZ°éù rËx§ ¤ŠŽÉZ4oÚóƒG=~B—T–&†ĤqğCìŒ_Áá8QB}ô&~àş|ĊߜĠTz(1ċı{ĊO|[~Èċ:~ö o gGĝ(î ,ÓµäkĤ°-B5͞˜•@LĦĥOÜCÎß­ˆĦဳ,˜ #?>%$WÙÉş‹ùuŽFyCqùqQ.µĝY1ħJ7Y…SW–¸~0âMFżóâûĵPĠmŬ#éıTNu—µ_ďAM/h}LX ŭċ‹p!v8.ĤXdÍ=2'ŜŠ×•:ŜaëP™çï–ñ½}σzˆ÷áĥÎîéĦıM[•ĝĥ—EĠ KÊÈìô‹ö[QŞéĊíüÜ5W2tŒġ´m†ĵëž‚×R÷ïŻ-ë¸Ĵäí£ĵ^c?:8׿.²z¨)š³r¸ô‘“ˆ)²ı™ğÌpİ Ż6˘ïÓÉp+ßFŭ,ܜĥé@(‡ÓÜCŭHÂ6ĈkX$Â%ë£Eg°ŸÖB.µ+˘Ñï¤!n‚ÔĠ@ ·Àì·ŭÑßyê§ÇÑ.NM@Z Áq…çéÓâ:…ˆšÜ&Êëi<3X°Ğa|u-*ó‰0θ%ĊƒëÇÍ9ÍIÖZŭÜßqàÈRĠ§Ï …ĵ™ÉŠ—wÓNĠ7²eÁ'F3;|QNİĝ—ácÑdâça­³¸FÌۘV- o°ÚĴÓàà}&zğÁaµµrç ´…]i‚$}>Û\ú³ö‡×µmJìueh}×IܵÀÈT•QĵùV”_—„˘µÍÒ^EÉı>ó+™ĠĤ²eVnE€Ĝ3^›ĈÂ,Ûr½ÍİĵJC‘oóŽCû§Úcǔ••g풽oċŒzݽz8ùü¤MXĉ´€ï^™Ĥ:Ÿ°Ê­WCĜ~úêl„z "0 KÎ?ż”´§šL‡ê^wsÚE§VÏ-ġĥâKôqƒIÍë Î` ›6”¸ ûqiéä!˘F‚ü2Aפĉl—)}’ş•a:G #Š!mĜöÎCÚñƒ”—­GiÖĉ½ËëêEŠ·óĈŻ’TŝşÎİ…ĜĴd ƒ=ıżâÒú’Ħ^`QÎ]ğrŜÀݧŸt!=ŝ½[b 3JÇ ŝŜĞí&²s^ĈÇ>“éżaİ*ŸB–Ġà’Àäxê|耓ÀŻL‹!í4 oŬFgßxÊÍ[Ĥ†÷‰ĥ l;g(d}ĝWÇÜÒĥŬ ä—ÊĈ8Ü?l(Rt Šú*Û^]CÂĠuzċMN•ğÒ_×MÂa~4şò­‘!SéÊ·ñe~lĉŒż}Ŝ֗ï›q’2i½•#,á$­£$–]·ßŒ§ÏĜħµïĊ&–óѧór5єâĴŞsg1ŞÀ„Ñb‡’•*Ş#ï?š>`›gpÀFEg'³EšI‘ı^F'€NŜ"Áâcô—[µ .ŝÁWàjävŬqŒHúÔ§Éd“Ü7Ú=H*ħÙÁâtŽ)†˘Ï)?A§Ïyż4uož3EÚ ê+½)§ÖRŒÈêÀ`‹S>WÍXĤgTċâÀ×ıĊ~SğŬĉGöKq7ĞħĠµÇ1[î:E"V„Ò›¨ ôĊÚL=̧pG¤”HŽ4HpZ9#k˙ y}kĴż‰„àïÀ]ì.Hè‚~oĤŭŸZ80#Ö;Ld˘áUŜP4IMŞ.NûÉWú"6ċ‡À=ÊŞs½êV=…àa̅óĤ8$M{³ïz6ryT/ßNÁŠĤŭŽ ôsıÔݳĊÂíCü}îÌ}ÙXŽĈĥf/¨TĵÉ>ġí{M“\–8“ôÁ ‚ѤQ/™ñÀsNJ;ĤĵY~Óր[, ĝJBĦ•G™"i˘Ë”›Pùħ^%Ĉ7˜Ù´Í[×<Â7èóéyĴ·Zi!K­ì˘#҈ <ĤÍñtšƒdîċvíŭCo'ċĊ‰³^Ş}Ŭ<¤*|cG!Û1‹ ŭĈ)¸ÒòÉÄNmrè(jIo³VFgĝµfMçOx¨›Š\’ÛbNŸ'³‰?1 <ÈuD÷•ĦÄşıSôĞIVĤ ĈıàhLĞŭħö5ċ"p°:­ne ähĝÊÎ Q)€rSi¸¸h—S€>/§? OG AP üħ Ĵ2;€ÙQ–vÔħı s—#ñxžZwë_VúĤ¨½£ ñÇùÁ Zä:jÓ)Upŝ ’è3/ğkêġĞŻáD™üêqyž.`ÜĈĥZoh$ƒ9‡Šá9‰W÷Cs{ÂöÌ{DÔİ9Ñuvħ‘ÇÍĦ<$I}†nbĝġfù›ĦÉ7" žŻ¸ÁGÎżÍ:Çέqúyîw{Ĉ ò^5İċD Ñq*bJr²#q%‰šÖÉîÉï÷ç{éËÌöÜÎNĉ;uV—şXµF0FŸ—ÒB‰œ<òÜTù\Sûћ1ôÜ´,MÙÍe†à‡ŞÈó–~ĊÀi{íh*ôĝÁ×ïĤGL…Ż‚\‚È63oĉ (Wğ! ĵ™D^ȏW=Ċ –ߞC†°1ĝ ): F˘Fš³JĤ1!íT;ĦdwÄu’ŒÏHuGpèpƒîìĠXùğûŬr?éûîlĥôÑ.–<ó\¤+×Ĵ/DZ9=£ĤBĊiŞşŞƒà1[ÉmK4KÌĉEÙĝċFTp–Aê÷"˜çVzĴüH '8òŝŠ1}ĉqîòaœa ]³_:*ςĦ9YŠ÷2"*kUĊÍÊ k†³ô…IĉN0[,Y˜ rÒiGw‡$]UA˜›Ói€ ĥ ÏDDߗDEıCШó–ˆÓf2dÌöCûtıÛ@ž›Ĝ1.…ç;DFïĜAmĊ 1aáè£:½)|1˘£é¸&ħÄ·È é~a Y]&*í÷c¨^ŝI''ŬDvÚÌ30nÊ"Ŭ•ÌÀËş =ÏD ƒË܏€wÊ'ĝêñ@x Ŝ~’;ĞNı_ó yHÈä<ÉD/4ĈS ì_ßhċy˘9 ÄÙMCĝ9@! “ ı2\˜.Ó Ħ…œùÊ(?Ôğ>h\‰d–ŭ :$_F˘³³UèâȒڋ@VÂüÏĵv×_ĤvàxŠĈä×"Ex-c†ñeÑ=H? ĝuoÀÏ *ç׌•í—ßİò½!ZaEbĦÌ Ó@\°×Úĉú Vް+‹^GŻġ!›Ò*‡‹´‘ż‡gÊĠûâÓü†É~òÀfçò›ż&nc1‹+ÒG kb$U·xÑ6-‡MíVdBpb]~Ŭ]ÖżœĴîÌ-ñԜúFÀT€|ìħŽ ,’A/: úV& oêİ/MZH!ĴOßÏYĜfħanht+†Ï)„ÂüŞŬ#@§ġÉGs ĵ]zzÁ_ Ót\˙êŒ8^_°Ġ˘äêÄĈ7’ïä‘Í#Ò01 ښ9VZ›./ĊÑÑÔŻ]ĝMQëòyŸ=Œ7Jpê*  Ó,F˘6qWíş­/16ÚWTÓA ħ÷N—ŭ•íò÷oMx~ddm“ë•=¨êŒĝ\RsŬ!żŠ+Z‘¨êÜ#š4û,È9Ŝ5–ı–Aá nâΠGn@úJŭ„R½ĉdÁRJâ|Kʘğ¨äò@İħ†Œ3ĥÀVĈœWíħp–ÒçÔġ#%ŽŬnw.íŸcp˘­;NħZġ<£š˜)Ijw.żX7żËÈnGĠÊÁè8IDbò0.bŬȟƒˆżĊğóoËèÊyvƒ"È0ƒÏ;w K2  ÓT”ÏzȟgUK ğ˜FĤŻRґFÒǟ˘Kâ‰Íèá ì‡<×,ċÖYìn ‡ÔÉÏ7’Hêá!8ġx@`&+f–'ËÙZ“B)†Tp h¤’‚N45ÉŬóim~˜ĜFQİDqç°dĜ§]ÄßâMYˆĊ¨@üâ6işôtĤŻ| áċ™";nÛe/Ħ”`³s'ĝŒô6uÇHMGv.ż/˘Ôŭ~/MQwâERÀÔY"İ^E\5ż‘š¸gŞĞßjkĜ˜FğÈħ´U_E­Âh‚îĜ}Ĵ^šÔüŻ4F÷s\ŬìŻuÙ°ŻËÚĝCq;­3³ĉU_ûµÎù\šŞÁ+¸ĵŽE”ż·ċá_ÚϓjMÜwĠó2Ħ³my‘÷ÁÚ ĝöęè‡L  ¨`×İ3™ƒ.9›jfĤħĴúġşêgĴ|bñĞ$`ç üpzÀĥ‘ߍbœùJ1ŭ2ž{ĉNTżöJAuc‡éc’NÜúc9éôş 4oêñÏ?ˆ$£àaÜç ÓŜÈżŒ°ˆ{ĵ„÷9K4b…ĝ}Oú2Á b g& ömì2v ĠÚô2Ĉù1k|u{ÈĜ„Ĵ7žĠgX0L­)ĞJíbgŝ JIŜgŸ£˘GlĜjubĞײFEĉ £O IɋŭĴz95uĈgJ“Ž7Ŭ(" ²c÷ó B쌵/êôİÔÚ`PĴŠEŒZ=˘Ŭ‹ğ‚16yûyħġÄnî‡TQHÒ ĝ" Pr\ù£—Ò:W•4“XIċQAPĵÁġnîQ_;™HY[„­DÙŬ£› × B½ËR@Š Á, 0’ ilɗóW€V êŬ™‰¨á%ħËÎ=éRĈJĉLċQ¸çĥ´Í–í sŬPV&˘ ÉŻêïë:*Ġ„L=ÒıxĤH€ô·Pg$VTžê+µA ĉ’È1z7ùI ĈS&[tzèÀ9×ÔF ˙Ii'ğÚ}Éjĵ=×+B°{֙€ ÁÍİœm ´ž›™ÏH›šŭĞ•Û^-2ĵ÷1ôŞ„AŒ9Pië~°ÀoAR/Q “ŝŽ™sè¤ 9š=ûÜ´‚aHÍ6ñÎÁވ‹ ’cáH3iĜíŝNÄ) ‰›ÄŜvżvR“p*MĝĴ&2›˘î AÊ<î+Ċ×§Ĥôӂ ²ŽÒĴ–„‚…çHrñ‚])‹D]‹?ϳ;*Ip,³Qġe‰ K‰"6à‹Ż·ŞDׄ£Ë}ŝ}e’^'Ş>FTa>ġµDjĤĉçĵĥ\4ù7˘Z-5T/ĈG-1˘L‰Šà@]…Šd“úŬçpŒUn,Âi1H‘^‘ÒëÄφŠ@uqNÇk³ñ˘S·“ĉËò£ë-~?6ġXÊ<ġĤâlÖUĤƒìÙ§êëdk@Îoe´Ÿ>]&<ċpĞš˘E'›ŒîÁ$ŻÉLOžµ ıĵ2Lp^òŠ Ç@—qÀ³Ö8îpqĤ8´™CWm‰NR÷2ó”)÷…#Ñ+Ĉ”ŝœw9Ğ/Gbi “)½Näô„ÔĉŜrğĝJ‚ÚĤHZrÄ+e‹†I7‹Żv&SüQġħšT”eżžÍ…t7N‡½ÒyĵcÌaa{Í-*Üb°¨ä€’£¨×oÎ(}ß1iwmúQäU-šž ;RIĦŒmĈÎ''G×Cáöµw³7öÈ[ö'úKŻShİ6•ž|1ß3äYKż @ŭéˆİ}]sT Aĉ¸D€oâÒaşµĥÎÑ}!q÷tĠÑ‚è´ĠS´E‘İ.°Ĝ†œ”XġĜKä&R…’ „Kĥcóꞁh:Ĝß6$l€‘HĜmôlšĞSœoŻŽĜÊċ={Ar‡ċ˙„"‚ê’IESlšô ?xĥï °aŻpqOċrN07ŜOQFg˘8ûeË;Â~=г7ƒ*lŬÖӞoÇ0=Ĵz  zĦڑñ˜£ÑÓ @Ûìì żÉW•hqúÈBnlìd*=<ɋÉVÓw†£ô Û TJM$´ CħP8ûЍjoż@_I KğÈ·§/QÎ{íBjŠYoïĝ‹_ OéÑpîòer2,ñVÙhĞu½ĠĊ5ħ÷Üùk-ġí|ĠÒÉñ€Ç×çš.£ZnOqËĦĞDg|ñŞœctbµ/ĠI³Î‹™ëÓ°c˜˜ GñÉĜ<‰@ĵÊc,3V’XehéŠ)QĥÓġÒ)zAÍ-Ÿ,ŽċÒĥĴA ¨Ì>‹eĝé~°šKİ2Ŭ;q½· †ÀóôZεá!¸?ÜIƒ>áh¤ƒRXv[aUsGó³?+KıìQt́Lâ;§`ĈmÍÂgq^Żcc‡ÈŽ›ùĴ¨6rv€>êMùT”OH|3&vN–;4 kĊAS²Ä=>utİ9ŭIÓŜ ŬQĴñáŠ&%ûċ4ц:ˆÚŝÂċñZê ÂÒBkm*…Ïi~çÙŬÄ(=öÂj^(?ñŭ^ÛmUôl—qòĠgQşUŠÙ$ŝHd‹–ìì=ò„ôşílŞQhĵև:Â1y}ş³_îQU Ş?gĉ+Èŝfš€Pa2„¸VžŝĦ˙#ċGƒO‡ê͆œ:Doèğàl O²Î–Œı„á€Ç3ìéPĊĊ7}ÉPúĴ$ǛúA3'ÀÇûˆk÷ŭ2ş 7Brı X˙”R×İ› Ħ`GRNÑÙoĞiÎÉñQ WÎÍ!A2È-ç.YBLjÍ9jg6AKgîÙĝ—ĥ…&íšï·ÁV€˘<ÉU/Ï1ÄÂ÷‘Ġ%#ž Ž‚ĞKÚ#Ş6 H†Ĥ‚fċ„CsOnµáîöà2\5Ĥì•)k£=˙=ì+"jŬï:Uv(|nuxbü(Ğ êäIh %â}xw<ŭ´W0ĵëTÊ6Ž+ÀlĜäE°ĉIԎx– ŜÈJלµÒDĠ'úğ²£Ŭ§W*‚ߊêż!¤x ÷•^´ógâ3)çGjc7ˆŠy_R1Â8żl*} ö8ĞĊ)OÚfç#^FʟKĴCm€€ax³’NœZ^“h3(½¸d Öħğƒñĉ¨ÌâXÚ@x=µm˜hÁ¸UÁż>S³&ş_sß³ħ\ğw- Ĝ·a­C;gŭ yŽġġ°=g5œîxĉ”ÁïÛÚ ç5MéUI’TW<J­!/ĥµFû‘+ìèdDZ˜f/ħ=ƒŜî€ żĉ–t2Χ| Ĥĝ”H‰5Ù ÄUß'yğDDu_ښm䘲ΐiJ9m‡D”s>ÒÌ!!EDRĥ{>!q7ù÷Éáó"Ç„Ĥ‘iíB|ӏŝî…ä40wÈ$ĞqџğĤî›Dö˘ô #÷CJ<8ÊVx•è7޵YèÁİ j<Žñ…Ĉ˘´ŠìÎċêDz~fÂKç^|Öp1ħeë{ËÛ¨·|‚`1#úAzZ5aw§Ö˙Ĝ·D–Ż?re}ó!aê‹Ü˜nJoĠ-ĵO‘ߣÔtż>-8hçf„S˜ħƒeİS…˙—J· Ç}4ċ™íĉ÷³6ÌdEğE™½£s(]ÉE`éêĈ@<1ĜTt•iLG+­U§‰ĈñğÚkjU²8rĞoçħ|Î`ñ>AA‹Ĉ•·ƒJ |r°Kgĉà0gš—ŽMw)‘ê’Bì/9:ì+ûÂU7í?}N?oÖLÎNôm AQ7>Î14·ß$—ğàh=EKèNJÙÁ2sÖ!Cġ‚‘_ÖĞ“MW—š¤œ`çû5Ğu hşàÙùùĠ~ …Ñjuĵr-ÂzíĈ/ĜŞT´5“V5ċ3dÛ)„^ˆ£‚×’ş5@Ô½;÷0pݐá*ĵ(şKÒû6špןÎ3¤ß^KÜ ”O# aôM ÙǙ“Ĥê8½Dߗ˙=ĥĞ'‹\Uö£Ï'913ߋĈMĠ=ݽZ6%Y’´>żĴÔK|İJÀßy-ëÔ9lÁ‰z BċéMù ùÊÇ~mҘĉiHûŜ. yĝÚı…ĞĵFÈ7>‡„ÛL´‰.0<´Ä‘ä¸÷55 7N·ı&÷lĵJĉ|yî­u¸yœ&µ6´°ĞŜW€=<œŽ‹i—ĉ…*ŸŠÙĈ&+À<ÀP4JÎm0&%ĝç}‹ŞG'²ÖA/ŝT×Se;yTù=>O"_•)5og™Kìƒ 1¨LŒPö°eíî(·ĝM.û`B' `(š„Œñ:"y$=oŻ•ĵž|9ûrEüz¤\°Úîq/™Â4U0Ù5=˨żĝÀ¨ŽvLùÍä\¤‡Òx ~gè÷R(Ħ‰ŝ¸e…kߎ5v8OJóò ŭ=_‘‘3Ó­³VÙ­œoè§(.a(ˆ˙W·ìI-|\­İ!ÓŽ‰Ù‘Ö÷ME+d‘¤KL„%X<9mÌŭTž^:KCîó™³a—žŭ>ĤçÁ’¤0£_fĜPûH>kÉa„a"`Šetz$ Y†´ZĴËV Ô¤(C™…”;఑ö+ĜéVÁùʅĉ\2"Ĝ„pä@ ¨qQĵUaş@ċá5M‡Q‘|LˆÑáôĜÈY¨Ċ°ÂİӐ½3ô–#Âµ‰êĊfĥˆ×?Zzr9JĞv—šñċQ/y—Èö#~ûôGÓı0ĦQ^%Iĥ0!ƒĥZÙCe‰0¸9< B˙LˆcĴşJG1dsGókaBù[²âf³ŒÈÒĜ†Oĥ?¤ÇäïfaĈn7îeûèqġ°Ġ†Ĵ§{Pb{*Zżlc3Q­bü„ŝ ‚qwχsxÊEìßß*^ÜÑl½¤ÂÀ×Oû„لϝôyáżK2FC=°Ò|ħIà+#xÈÇ5pħ)<üµô‘(av‹¸>ż6 ı‰wd“ĴĤr‘Żó@çl³c˘n.mjXT¸ĵ$ŞçŒ˜ÛÀ@m7• ˆ™˜TôĜToïé#n—1Š˘mde  òÍĝUé‰d<ëÒ6RÏôó(²ğħñrROÊMÊĦgCßBEB#ùÀÓ2.‹Ti/%Œl—îĵ Žƒ(nëlħbz*Žİ² |Ì(ĵ9Jçsĥ8ey ĞÉŬZi(òJ˘§Ĥ jíŝN6p˙‹Y֐ „ĝ:´3ĝ˘÷3;ÎgUC¸„QğġT{:ċ(û0T×ħÁ›ÑùI!×;êĉQċùl'bb'Ħ?y^ÄÏĈѝkœ‹„Ğp7£ŜċÉ^à…µi˜ß“ DAü‘£:ÌxNç†m, ˜.gˆĦà›0ö½ëáMW^ĵħzÎKŬM­0íxĈ^kd΅ŒŭòÒ#e‡×áKhĞ_;r :3‚=ȸ-ïtQÇŝîdrù‚bX@7<ÜÏĈġê C[…ühĠŽĈÁ”o}O1şS‘àêc:ŞÉXm…ÛŞŭÄŬïùŝ ¸-|­/:¨êÈôÜaÉO'ggŽS)Ż›ŭżŽ]Vi–żĦ8?•7F4ş·f͎/kŬ n|‘úNïQ1wIrM+…”Óg³òĝ %j/öCl„˘-JÀ,Ÿ™Ħ™;†ı8´‰.iV£Û Ĵ.ŽšCž†–¤(żj´—ÊœAb Cĉó¨Ûĉŭ %Ĵ‚Ş*}´›dˆÒ%ŬNLfAŝžoB˜€ VDÓzΕ8™ÒÍOmG;ŠKWÛR,]v'ĦG[¤G²dÉ-Ĉ?‚>‘½ġ ³KöT˘½†ğH“ıŸTÌċŞc=;ñÒġéNx&xÚWŜô‚ŞFœ§„+´ġ -&Iħ$%L´g˜Há‚DíhÖ6‰aĜw½RÔmĴ5-ĜO}ŭS¤ĵ-™=u^…Óg/ú’ğ€ûú !½ÁGá#aݜÁ^íل´Äc‰A=,EĊ€çñŜaô_ßîcO„xİ3*’ġ¸K)ıË‘GQ9!Š{z3LďBhPñ5$Sâ€Gsp*ö›.ĵ+—`A+ż|ácĊÄiŭ‚búJn‰_ĵŒ´OÀ˙Zž²âA’U'"8•…úLˍËÑëÁŽħĊSŸVê lçċǢv˜J½™‹’òŞ9àĊÛX˜GŒóyŒŭ@ Ġ€Ú QëZgzĉW4F™O„1ŭ³àGžcwRX eg{T\·c/l‘g˘ÓZ²¤ ÀXe~ÑMŸß1פ+ô†k€˙Ċ‚JŬiDĥ9…äè†#{îwÊ^äGí;™4OMᨒˇWı#°HX*h;ÂǵVDžmi3xĤÓÌÚan’ĠoÇ8ĉ§ }Ö4…ÚíäŭéİBÈ+âûRżìŠYM~2>…á²Â'6™‘€ÇúdVh8ÉġÌTr+ıЎ†äÑöT‰*dċC=>wRWEVcRL€Hğt2Ġ¸şŻ>[CcJ–Žŭ]#Ö˘Ĥú $ÄŜtòä¤Ì˘cáÌh|OXĤ³ù•“9—umĜ•`(§+†Ô´ "MÜ?!fÊ‚Lż§AùïéġqĵƒöQôÜoìĥ4zĵhO7ș(İbYż#œċîĠǐ1tO¸Ùê…~üoƒĴbÇ0ÍÖD9DL!wnsĜú(K‚½r Ĉɘğhùrs{}ĴòİC–nt¤Ï}WXH[‚&˜Î´2ú,XĥÉ ïÛa† ɍÇjžQJ èĥƒ[úñÂĊTJ9{zıŝv7 §_Ì]ô>¤ĥš7'eé!,2BĠ6זÁó<ĴµšŭŽšÛüRúmıdÜ>ǃúé8ĠŒñj6ùŒµÓlDx%+X?Ŝ˜”(&s.V¸÷Á⇁+ĊġÜ^Ï@J‘‰ÑĦ^|nB`³jàŭ<$ĉ><ú~"`Ş??”gaE ħ„ħ„ŸĥHRrї×_¤~dYù"ĵ–ĵ˘29ô oĵÊ}bì"M”…*Ŝ 6~²|‘ĠM­UİqwëóUı3îxŽ˜ħk>Ë`C[ÒÈıĠÑo6‡SŸ}†Aŝ>C>ĴĈÑO^#\µ\šcĥ{1÷u‚,bóĞ_šPfÙ¨ŸÔF6ïĝëeYŜrtXë³p"zİ˙ ZğWÙJŽœ7 ú âϏâÙ}`QíËW^E9S ñûqñŻŭß3‹ ÜĠgÁ£YZ>gÂ(o´U=cf_ÔÁ^W÷çTûzç+Ŭ Ô=8˜d|Ñż,‹Għj ğHÒ$ùaôhÜ_“NœD?œç‹“:NôLЧ“\8ñóa’ œ”œžd!"L? Ö}„ċĤsKT\­ =˘ÑÍ£](R˜o$l[ĥˆÂSsÓ[Ş"˙PĥL/ċŭŠÜfÊ}˘“ÌÉÜ6 &˜{B÷r°lC‚2Ĝ‡=ĵb‹â‹HÄ6ׯ—Ô6B½XşûPìĝ™î~ _'"Ġ­"^ĤŬ?ÇoùÉt];k;“%yUC›òxb4íÓQrħçÀpñAÇÛ1Ô0H‚ÉlĵKĴçs왖y½nY"]^¸ĥËĤÛ˙W ÛT endstream endobj 228 0 obj << /Length1 1502 /Length2 7290 /Length3 0 /Length 8304 /Filter /FlateDecode >> stream xڍ·T“Û-Œ H“&"H R¤'Ħ÷ŜĞt) I¤„"½ƒôŜ”* ½‹İ"˘TİR¤ Ò;<Ôsîıçŝ˙‘|k²×Ü{=°³<0à“·CĜ@U>0?H ¨­­@ A~H€˜Ŭ†C˙Ĉ‰ÙĦ(4 á*ñ_Š((s…)A0WÚW€Ĉc8,‹H€E%@ €$ŝw %P‚¸ìÚü „+M̈@zĦ`Ž˜Ğuŝ~pÚrÀââ˘ĵżÓò.PÌ⠆`Ħ.W+ÚBà„- ŠñúW N)G )zxxC\ü”ƒ /À†qèCÑP”;Ô‹2@âŭ‹?1;À†ŝ0@Ĝc< ((à €lĦèĞ”ÇvPàju€ş@ uŭĴġ'€×ĉÀüà˙”û+ûW!˜ëïdˆ­- qġ‚ı:ìap(@WE‹‰á@\í~BàhÄU>ăCl~·¨Èë W ˙â‡ĥEÁ4?˙ĊĝĞÌĠ6+ğÚ)"\\ 4ñŻŝ”`(¨íĠ{˙:\gW„‡Ğ÷ߖ=ÌĠÎŝ ğÇH ‘+Ìí1T]鯘+ˆĝÌŠƒÄDĊ„P7ÔÓÖĝkC/$ô·ü âàëD öW4 0{èĠħ7â`PĦŜ˙íĝ·E ì`ĥ€ ÔĉJüOġ+j˙Ç:Ì`ş’úġùϓĊ•ÂìpŻÂ1Ħħ Ï_”˙TP@xĵù| $$½zŭwĜ_}üWşĞ=ĞĜŻ~Ż6êïžŬ˙ç_Âĝw1ĕtĦΔŝ$ ²½ú˙?ëŭwÊ˙ŸÌUùż*ŭ;Ry ‡˙ösŝ ĝ˙ĝ!.0¸×_WÒ}ŒımÄĠ0¸ŝo¨ ôÏìjCí`]ŝ×Ў\ƒĵĞ•¤ùÀBü Ħ?8 ­ó„Ú=€al˙Èĉnôkàà0WèöëŠıʁŝÇw5eĥÎW×úJ›\ôĠÈa~ä/z5T˙îCÙĠa÷kú„E âE|uĝW–0À|5ĤvPÏßêù]˜ĞÀg_€=Eüë E„@ù_KTĝÇ˙c‰Š€:˙ĝ@‡_wàĠöŭ€_Í˙ €ÁB êżÌĞĊŝx˙ĊÁö1 uEò·ĝŝm˙N PO¨-ñ— „­d°SMpëQ•<½ßҐŝVڑİßP%!ĤGyÄj>Á ;kR³TċK7XĊÒİ]GÁí(gĉÓ÷b-s—³ÊгMÜÄċÁµħDïC†{äM8ÏLR˜$ŠQ=8£(:ˆdíz ĜÉ}î×t}Nôà .QĠiĠië¨*ÉÒ˘a7ŜĝĤiĥé7\Ŝ£½ŸûÍċiBô£ˆTŒ{šRmÇÄ •s}ŭS”ŬŒQîK?ÙB1”Ê’ŭ JB7*§ž“ċğŻgPyÛ¨Ŝ’[·ë)›ċJ9ŞÑÙq\ÜY·`áLêu´N²o`)‘SÔ i¨ĵüċHğŻ9aÌx}2‰‡ht˜Ú›™—ߝ5ÂB4½&Çş†çÎkĤŞ›è ĉäĠN(_Ü­gnŠÛrż*…rQ™‡&‹kÍ×>èy/<{ê€3dÌDÀ\,ÍħĠPĤhJ<¸ĊߔRPĤ;,­Âˆ X˙½ïFĦف7Vèâùn[›Ǥ[e”k U4vvÊ'£àÙÉĝĥÎ6½:Zëá2àSé9oĦĠç‚(ô}‰muŝ1÷‰26!`ÎyħÖCËßqïċׅî}ĤrÜ8;œĵ²“½š÷½ˆVAb÷’€è“uìù:n@‡Y‡Ċ/}p[Òx¤ŬA¤ïy ÌŜËm™–T] !yàı`D37użwÏsš–E*qÊùĜÚI‹şräŽ|·rĈŜ ¤ÖëZMxŬ*?·×œĊ5ZM?öƒ´µD:€_üĊ÷Ĵġ=AúğğYÒdÌĉmV̗6—ĞÛ?Œ fOzßŬhĜ1ıÇüƒwħ!;óÍdgñP­ÏœTÀe'°Óì­óêċ¨šÌ’ïŝOÂŻÙñ=fÉd­?êŞÁN+‚JÈÚÁ6mÍYë6ǘb›'\fA[ĥĉ §¤Ÿ5Ĥ8˘^GÄ·Òé Cžsà?ñB^ĴÙOX §VÄ=ôp!ĴñêîŠĞŝî\;£U T²–듟loäŠíKÏT5ˆE ~xúÔ9×2Ú&!'ö]3!„ä]ˆ•ÁÂÚ-|ŞİÓŜĦÏ$ċè5ò “ú$"Ké4Ğ,ŻÍSfÀŝ“Zí‰9³…ĦòA§S†~¤ç”dq‘f ‘F1 [ĚN% kör3³ĠXŒ§ìXü%턞ç’–à]8q§fµĠ|Ê=5!Ƀŭpû†it%öĤ3àNŜèĴG Ä­×Fd £~Ò<¤IÁ" ŭ8~/fßÜ ġÓIó,v”Íı ~0nµçÂfA‘.À×”·tǢġîÉŬİ4ÀŜnŬv͋ˆÏQ™ôĥ1|=ĜjOúíGŜKï­‘uŽŽâÓlñ…˘ı“ÍúYـ[“‹u†yŸû›ú£óÄaL™ĉ-bàQDË #C'-×é&2ßàĵ0Ìò¤éó –{˘ŝ;n˜à9ûߪċá$ŞPħëú£ĤÉ^w¨¤²uNÉş–­óA-ì¤O²[BĉĵeĈb€yċ•/]³K !örßgÈŻwì{;ÒÉDREŜ°ôP*ú)ĠÛ³#ëĈ[ƒÀì̆-çäÚëe ‘¤0AI†š…žfyFèé)SßŜ>)Ŝ½—šĥĞËVÄÄ{2goÏ ÒÜ ·šŜ;ñ*˙ŠĵEÀ–n4Ä)òŻñÏÖx((A›ŬHß/eĤ:ì >ş´5V§ĞÂá´Biß;ŠÀ„ĜùûM—êĴ‡ XĜ óBğ—Ò[ŒïQéŻÜ½V:ZrwŞi~İöy´÷Ù,ÂVŭ]íġ|A^îúîHwa_ŝÒBñ˘;Uı÷D ­u”dP³Ġ ß8<‘šA M+*šĦWÑ7‹E:üŜE€vœÂ{/à›2 3ĤkRßÔÌbŞzŻ{şS½ċ뿨Âǖy/ӆš…³ëĴ¤§oƒ‘Ĵí#[u*hêÎv&YÔĦ;z9J tœ7[;ué$ϝií0ĤWZ]CÄYô]ò]@•ŜM#ĉ`E¤ÍÊ{9É£.Eqè*‡Š9gñ󳐸"Ù!ÚN䏴ÖнŠ”#öş„&3qJrKƒĤcœ •Âû¤oGJŽëÇ?TóÍj™?,µÙ2Í1=t˘‘QsñŻa1íéŠkk8zÖo”ZuıƒŸŞ1ôğŽ\xevCz{/Ï!ò×§²"!‚ÌC>̀J‹ôĊezlsÀ´NGòŬ$Ġq#°\}(?PW²oXŭÚÚl[Q›żÑg &.ü“½ˆ§Û\#‘q‡ou š°–›ŭäĞM²sbċ™YµÂócƒSĊfŞg~Áë4ĵG^ġ\wd[rŒW5蘎 x˜ûé!!yĉ4ĜİAû´jŞÔOöêÜÓĉötÒ¸ÚT4‚£\ì­Û/*(ŬJ+t9ñÛñ=d‰ĤcÊY×è"Vb@éÄĠ3ê ä?1¤µÑòÊ ;SmJëy<×½> g—HŝÄûÜȊFël|}ßÀĊŠeíƒqĜÖĝÍI™d2ÊŜ‡áK¤KۂܟœXMş²•ÖÄV˘ĜvF}vrXU"g#›.îNj%JZ=!ĥÓKÑPgkhIé2ëçüLK˘ïĥrë0_œ6ÁÏ~‚Oœ7L¤öÛ+Iŝ¨Ÿ€äĠú ^|YSÙ B’Ŭ ùħžY/8gà‚Öµĉ˜WyÌx[FqT›+Dte.r#Ü4§q†Ôâq_•›q Mtĝ&S&:£ÉĞÔV‘Ë´d5Ĥ{„°ço(€#£LÁÊNĈĝŜÙàˆ]`au²ħÖùˆ°—‰ĤÖdw!ġ§ÏdĉF“‚Ŭjˆħtö‹àd‡á„†_ë²yM[ŭĊ¸ ġı{ŜÒdDŞmlRšyÀ˙ŭ–f%=mµêe6{|;>¸'ŒXÊ@‡wO[ż²ÉXŽÄÉmÁQ_§f´âÊ~˜;fP&3ÀÜ,4²ŜxŻ8/ˆèĤèóÔRzß.ŸÙäĵG§ˆñ£>!@+êG–}Żç²€gJà k^ÍäDÖWĜTLé‡áÑè›]_Zc‚£fИv•Í_ᕟ7n쓭•`_§,=EUà“ŻÍ°*”’há#K4)ì&f>qĝĞÒçŒ ‹€,ÖÄ {É>-‰œĠ4Bı³ĊœĞ?jÎù([_5çôĤ8ÎïÒdŞp‰š–›ħ*żżüİaËh!/›>”ÈeLÉïeLG ÒïŬϊŸ$ĤS‰òçb.òĜ/ûß³ÛµéHŜ[L÷£%N(iCÎĥ¤Ŝn˘ST-"óOÔù˜[Û=ë# ĵħ)BÑ!?{8Ögm½Ĝĉ$$Á½ƒó°öİ˙ċ…Q;÷‰ŭ£Ïğ Ëó‰“ñRkK˘ÙxN/ŭ;zW=ş0!<°’XEFéXNÙàµQaÏğŸè³–l§ßçďŜ`Ô×nl 3‰•ĉ—ŻˆĵaîÒtĵrİg•ômkÎ}Ŝ{§ÚV…Á@ħùáœĊ4“O Óx6ß341|yĜtdplS@ŠÉëĜ”KTÔb\p¸fïÌâ—cfġ—`™p6ğ§3Ëıbş„żĝêwĞ!WÎ~Zrß”żıùNUşÛ²Ìñó—sef3ŒHÌf4ŝHmyçÈSġ’?>”|V÷04aÔĤSċ‚ µáTëǛĵl­ ğú_ĞNöIuùŸıĝÛ:ƒĠ<ËO—gŻûw*Ż…ÙlEñ*V¸ívq„ž›ŜZWÏÏìKğŽzŭèk›À·—ßNġĦk÷„ù”Ŭ¤ìĈ‡ħŠÊ,ûqĊĦÛĠ/&šMĦcğÎσ†úċó˜)8żXh/Ò}˘$'˘ >˜Š³ x9<›\ ŸŝÑKšaŻÄ+Ĵ@‡eğ|gûcôÎÙ ùôµüO\Çbš$äu¸5ĈûÄ ç¨ÖĉAUeÇ1ŽÙÛA!€ü[sôÖÉÙ râQ,iˆGrZ‰T } É9ĥ½òŝ]îÎC#ÉP>ċáğK!‰ˆW†6ßĤۅ+ÛÏ^ $µÉ”mhzş vνµÂ3Ì\ûè3lò‰=”?(½Ĵ/WÙ’Äż%`9‡Ş-”ÈċdT“)‡L>œ“Ĵ<üÜ÷éY°Ż‹IÖ*ßv½öĵümĥñË‰ŝrŜ…n’£ĥJD·qSsTÂۃÉu”ß”Â7£fİZÛ\;€0‰d4²qÎìô[ ŜŞt˨ÛßZĜUÄżWvéŜĠ´ïtA‰#›–{2ġNžq´qY˜ż-ÑfÑG/İ&PòşFŜ^WcKMµxó pJ˜˙uŽŭ ĵ 싷‘ MNœ:w>.yÏĴ'!2‡òn?}ߋ·°Q(ĤÊNj}ğŜÛ¨½-1š|âzŝ†ÍÖÀ^˜4!§”ùmR.„%ÁoQ‰h”UL’ôɳşË]ôuĈ\˵*iĊŸÏëĤeWÖ?aoHĈXY$ĥ˘üŝWŞ%VF1g$]ğ+"Š/DUb›ÓŽßÒK+H‹³íßĜî[§eËän‰ß?éwD‘ï³1CË%WŜ‘ù˜ô—ĜùŞ^€”Óĉ‡ˆp fäÀ‹ …1ž°ŞHR7ÒĝÁĤʲ¤—Èï:×<ĵ,f'eMĦÜ\6/dsĝ?j6œHzïï6 R„väyZĴó|kŒbŽ Íy}ÛnγSŬQYş/¨8ĵ"Á0Lè½Ù²İxú#S`š‚ġfaĜġô‹µs˘ŞTâñÛÇç^ÍFúÎsxqWo$ġôeïÚCƒ}ZMŒċżîá\ĊÎ ŻıxğżŽíÒÁpçngĜRà(WŜM ħ’Ä8ÍefŻ 1²7àĞ”oӑM˙¨ı{ O^7—³"ŭ֚sê9¤ôUíž~2’DsËŻ*ÂfaOEúħòŜjR*!纒”d­SU÷@Éìġc45ó†ÙSù:‡PĠÄ÷:}‘ĥ½cg-ŸPTüĦÓ ˘Šħ–Š yóQ+UÔÒÓ¨¸aë”ê,¸ÛKN‹éöt(}ĥĉJ¨–qCĥx N9Ü&ħŒIÛ!£MiŭÀÏà’YZsúRVùxY“>3“£–g7"ġˆM€ˆÍüS4s)Ĝ†³ŝÍÌèYı[~=7u âPžäe˘‘Xo_"މ&e8İ\xw.ĥ‘sĠÙ”ԏvÍIˆúZIüÁ—éĠŠĉêgMc Ö2ħğóÑ9ÉHe‰6ìœae[*’ÄÜò.iġŭĠˆb>ëŸo“Lıô=·fVş=‰„‡ù'KX [”ÔèÖrż€úqmëŭ:›i4 IB›ĥ %ÜÓôö;ziN×]¨HJ™]ĉ~ 9óëòÙ)kœ%£ĵµgDµŸ1WnÉwÛĴµöċם.ÂËÙáĜ=PÄŭ=Q遢ސĉ£†éeYeÖm}בä{kóÎĴÓı{ ry'>$\—{jÓPûò&¸É*IqùżKÙ²(ÈÊÎD|œĈ CĥuíƒyŻ(œ 1! 6£OUc;k´µÈŬ^|\üxÌÍ[CbÎL°ç+R6ÇÉYıÍ׈riy˜$of^Wŭúä VŒBԅä­a‹pŜ_|/·@X_”Ñö“r‡šu êsšĥgSù)„£&6\ J÷ù0şÖĤËÄ5ëöq‰B%C”˘›‹›/íYSĜ҃5yós‘Ġrôe"Ċ9OjċˆĝR¨ĵï í³G$ó^–äĵҞVѝeFĝŻžvÌ>Ñ% sR˜\“ ‘ ŝ¤„˙*'žÁĥWù †ğíb<1ËY•‘²`âġâÚjHXMŜÎV1ôUĥĜn|6[lÀÎÀĦŬä“oĤXDdsĵTC$ïq[3Ÿĝ5€áe|Q²È"#Ü&E tq¤=`u×Â0<Ŭï~š{%İĴžħÓ\Èǜ‚ù¤'$i>|UĥZ׃÷ê ŻSĉnbŭú))q³.éµNŽTċyĜñ.W!şz6²}Mş‰›c0ÀP´LÌïIXkÚÈ\o;<ùóíĉšž×MާEy Ï9b.m–¸i¤}0Ñôĵĥ#‰ ŞĵqĞŞî=ZʸĊ§ĵ<’tĝŒ™›ùİ ]N*_I××ÚcÊ'X„pPáTY­]9…ò“ÄÓŽ.êÀϽĊGO´šùeAuÓ| “֊¤8˘nPŒšb)›B$SÓ83R…14ѵeù)ÄŻëÉĉ™àùr;öÈ´‰.Żüƒ˜Ĥ*µĠ&¨–%`ħ‡-2 ú9ĝ&ÑG`Òʳs=U³ĥµŭlÂşÇ÷h·0ò6Ç@ÔäڎV"‡„‰Ydwkz<`ÁĦ´ ^ËN&:" WóFĉMıSÁñG›:bÏòiî;\_-š%4’áZÓ·a>DD7ú§­ÈDŠÜ\èîóJ#ÒM .{Ñgê!üxïŬĵsz '”Ž H;£QÖĤJÒ4—ÈԷߙÒŜG°:"‡ WÙğw–ñéçqÊr”lô ‡;ĥlµĝ¨ó ?î´Ö{8Èe½ŭ"UOŻŻa•óìĈĦP˘0mr­eqLp µöl%"œ‘PX•ÛZö½ŠvÉÍı.˙‹ñA‡…Ĝ5d‡ŭä,+ŜN›p/˜Üĵ 9ŝ‡f÷:•ıħW“QBG[—Ü}ş‘U“ġ9âĦ¸ċÛ ½êÍ["Gĵ§ê†la1C^™_Â6Żİ aÍ˗ĈĥŽ9´pŽŻ³ÏTşĤ%šßPèĴ²ħöG²(I”àDQℰsáŜ †.dj{&ž÷÷Ŭ³ÒJ=‘excGĊ}"6Ú°ġäÜhB’T<kċfàżî.̘ƒ~g#µ[kĦ Úâ>jü‘ü‰§QNÊÏ7‰(}şrĦHWAG~=ċYŻ?|€bĞwĝ‘>Ïm6÷.DŠRaú¤Cè,á…WÀñZŜ „9œôğ’Ž+j…{k ›WáxôċÈ<€£¨‡#Ĵryì̍ż"jàˆħ}úcaĜîĦÂġ>x’ħ§àav)éğ– ö.v´N !7nÚĠ/ĝÌçżöĝiÔmĊ𐗙ïaġŸFjÂÜoèx{ݳOò™G/äñä6Sñ#ä†M—5fMĈéR{ġĠ9•½wOEA~~evÚ×EŞ&L˜gXAy}ïëôNϰyü,ï&ìfùÖ§•—"êžy8Ûí{|Ċb•2ĈÎt§û¤Bt\C´ô)llġ'PµżĤĦgÖ@ħEğyËô(Ìfôሙ"!Ï×C‹˜ĵ5ÒÎÜû"ĉLfĉô€‡CœJuĤo>j–H˙x–b)ĞCĵ~>ĞjöĜMh 5ëf£w ›L™ÎÇ.…mBwñá\x˘è§ùú[*öÍ[ İR~eÛkÌĝñ2“ö(çk]‹eĠ/yWJCFĤ\@›¤RlÔ[?%Ôy•ŒO+ŽŽc³"@{öĞîN÷Q·ä·!ĵìF€ÑÙ —¤vv šNg=Vi˙Ĥ‚ĦâÙj˜ĈÛINq½1݆ˆĜb,hĦs†r[›|ĜÁ°Ìbü,Pĉmö7!/„E³;WŽHñœÌ=;]²$χ€›ĵ×ÍPŸ m:-Œ\¤š/WäjxġÛ>V*ù”û+;>Ĝú ÏTĊ ŽÖĊ×ıT R—ÇÂLŬğŠ rĴ6Ŝ‹yQO4,ÑĜ’ˆùéàœ¤ËóPEö>T î׉ħòÎÒšú‹x€Ž 6ïŽng]WÔÌ û1 çñìOÌYúİUBì4!ĵ8:§#+—÷œùÁPèCí!Ż ·zŜ÷ħVg ú/ÎYÔ3IŜ(+£żËñ݁ŭrÙß}] ½/dĞÂç 28 JñŸHnU=}GÏŭ#e=H˙£3bn"`²×ñ5ɨM˜ 4-Ğ%H@,ħt. à4ӚwL­FPùgżÉö‡ÖQÈrġZ/´5™îµtJĥĞĜ ÷yġÂñPñ݇ĜÛ£Ĵ2É8léGóÎùäòkÁ,jy6½üV§/y*ä~ûˆĊ­ÍP\ez{£/¸füQäɇ qx“ )ƒrEOöu,ÏüUŒHËÉÙŝò™ÖĤë'gÛmlŠ Lq‘° -•“ç+™‘6nx˘§ĦšÛ5Fŝ6@g ”o}€[ܳĉÂáG]WiğĦ"äÛèEdô³O‚Ĉg‹òS‡òiÁJ°¨L,‡5ǍÀÙ’É™7Ôç›.Ħİá÷ä· ĵöŸ‘ÁЧRâ?&´ç°@ Í9^dĠä܉…Ĉ֗NġûÚ˘KSfGSmî<靄ċ*ÈÚW°XOÉŞf]ÓîÏ•ùiá_ċjİ-ıĠ’C‰ 'ŒSKl×IZ‡Cى¤Í|ƒ´żóïşx|’3ş”ß E"ı›ËŸm’à ôċn7R\k3ɜÁİ…./°"½¤‚ĉîĜndS\X~fĥDˆÂĈ%üc§”~¸ìKÍêq³ÏwrqŒy˘_=ìÓçË ŒÄß0´…?4sĜeŭ#ôIÚlôıÔ%™\şM 3·á ˜e“wmëĴğ¤?;ì׏N×Û{_ ïş4,IîÑà &²µ|&Ô£÷2żžç~h”Xĝn İsi°ÂAúYòs͏ġìAÖoÌ>Ç~ Żb%uúı$ċ#Ğ=ΤĤ,ır}2M~ßÚŞÍ?™9ċJ&çġüÔE M.ƒ"1KXığÙw‚;ÎÑ`½Ñ ˜³„1%žĊĵ£%ê8SĵodŜZnùĴ@ÑÏĉSüÂ$# paâcxżÀùàk-D`,­ ϗ¤™ŽuÁבµxö~ [H¤>OŽêĜµ"üĝ"çÊ.!Ò7mµÌFaï§)°ùùYŭTEhĤühˆĤ`oÁs}ĈN3ñ {Ş%Oˆ’ïĊ‰%ìœTáşá4ġ$Rĥ^Ûj"§Ħš“0îF‚_PĜ7=è–âu(÷•œµœH \äĝÖM ‰çJ´żCs§ώìFŸÎ82Cf\RtÓi‘göéĵ* Għ}{ ß.4eFÈWr후EĦxñğ>÷èĈT˙AFvċHżÛçZ݌ ّ´~eÙü$’S–!ŻÍçí_K}JaĤ]6m*é @§´Jî!ŽĝÊd;è˙ÒI endstream endobj 230 0 obj << /Length1 1451 /Length2 7699 /Length3 0 /Length 8685 /Filter /FlateDecode >> stream xڍtTÔ[÷6 ´HC—H#Ò%HH  13Cwƒ (ŬŬ„´€˘ Ŭ%%ŬHġŜ÷ŝïû}k}ߚµ~söŜÏŜgïsžç°0héòÈZÁ,ÁJ0(’ÈË/WWW ĝùyùùpYXô Hß~\–g`8ƒJü/„<lĵó)X ï€ê0(àİ‹(ŠHE%ĝùüüâap €‚…+Ä  Î x ƒ‚¸,ò0'8ÄĈy·ÏßK;ˆċŝu! (@Ŭi vĵÛdᅁ `¤ÇżJ°KÙ"‘N||nnnĵŽ^ÜFšƒàAÚtÀ0Ülĝ52@Âü×hĵ¸,=[âO@ft³€ƒw Eܸ@­ÀpÀŬî]5€ĤúĴöÀ ĝëp@^àÊŭ•ŭĞú;Ù‚9:Y@= P€5Ä TREş#ıPĞ_@ ì.ßÂĠâ`ayĝŬş@IV`q7á_ó!@pˆÁ‹€8üš‘ïW™ğcV„ZÉÁP$÷W 8twî|]=ĉġúÛ²†@­Ĵaċâħ…8ğ€UŝÂÜıp˙ñـ‘a~1QA1ĜvÙòŭÚ@Ï ü;üċ›ÁÇË ĉ°ìħßŭáz!,\Á$Üìġż˙ĥp@€„X‚m PÜŞßıÁÖìğû‡CÜĈüwôĝŭŝ³2½c˜ êàñü÷óİëi=‘Ġäúkä˙ċä`î/A €G@˜äˆŜ-|ŝ]GËòWü˙äŞ@­awú½;¨ż{vŭ‹ì)„ïb°;ê‚ì˙0Ŭ„_˜t÷ŝóŭwÊ˙ĉżŞü?™ŝß)ı88ü޳˙üq GˆƒÇ_ˆ;êş ïd ğôżĦà?ÚU[A\˙;Ş‚´¸“ƒ,ÔĉŽÒ<@!^~Ħ?~B âĥ҂ AĥhóÇŻ˙Kp(X †€üzbî²ĝù˙+v§2ŭŬ3‚¸ĉŸâNrÈßùË߉êß}(BA0Ğ_êXÀá¸w—g ĵ€w2µğ˙f7€ CŜîföXà¸ż.ZDÀ'ûËġÇÉŭc‰ĝä˙cB>ĝ˙2ï2żÍ5rï:ŝͤğn˙ĥż `°;„;5IÛ½ n9Ğ’vYÂĜK:3àÈ{ìR6û£›ž6­Z˘4ġ ¨ôÂœóYĈüđ×J }­‡OzuzË7·?QGc½NiÇ P² äè$ á](Z´ŻˆÚq[Ùté²z³½û8ëĈú HIôiH‹F[{UQšÚCñgÛK:ÈFË^½Uác ĥÌ%Çè ċ×&‰)ŒŞRmç¸1n•D‹=}½³ÄŸh;^›Í!¸Ê,tŬJ!ñ²T&•¨ĞžÍ CÛ+Ÿ׸GarĊ„eh—a‹ğEAĜš“ò#ßĉŸx.(Ü$–˜9ÊfóÒËJjNIÇż­q"Ĵo˜üt cħoĊŻ}°™=ÉÛĥĴèÏ÷‹Ĵî+𤠐ŻAxœ4û §ˆï´Q˜(ċžÑ•w˜Ô"ĦžŠ•dn_ġ‘z}·µfO{Òb×sÔ¤ĤFĈ‚ÄÁ'×FUĈùÄ@İh3B<+.>Ž|i7ڛïEŭĜh[œŒ4<ì!eĝÙÚĉĦ¨³+’èœÇ…•u+ƒĝ֋+dx!ï<‘‰mƒû£Œ·Î’ĊšHôNd…Ĵ+×H3òú‡)û(2gT_?bRÄQk*`Ŭĵ³I[ f!c•>ĵİğP`OÁñ‰£}nµŜ˝mp/‡ÈyÏ8Ŭ2ô:%^ôl!¸‘áœl°Ŝká…wıëñ<+°Ċ]0†¸òSĴ™‚}şD™j$*Ŭ -'3™Ïò‰y¤5Ȃ1£íKĵè…ĥ¸bpŞH¨ż5ˆ=ċY‰ÖŞğX ŞÈ×`cD%Q²ÓJo~2A*×ôĉÄ[¤bUñĜ=•Ğ"£yï„C UVd&Â÷ñŞ_àÍ …Ĝp2)çäâŞwĊ'™9ŻëuÌt˙ë\5HŸç%ˠߘ˜· ƒİŻLĵä£<*¤S½ĤìÄä*¨Ì!Ó¤{^)BŻÚÙ½´@= ğĥ.jCĴ´i3ĝ-.I]J’µh Ĥ ˙¨…@ci\TĞŠ˜î ÷Ğ™µ,#Dqı˘Ŝġ‹ĉ§š(ÑɛëûZ?Ĥ¨ƒşTHhó÷QġçĤÄ~â‘sĠ´{šE²ôñóÙö­Òt^ÎÚé|yÀĝŠ(ì ĴÓÑÑg†5Ĥ“4ùdXàp3WĥòvÚ.—úĜƒËŜ ğnŞŒħ•Ġ΍îK‹\vŸÜwŽI÷…#mBCëĜ‡¨œ–QèV6HeŠÌŽË£Ġy›tqìsħ!‚`ƒ÷q–ŽêÜ÷ÄÒX*yƒ=’ĝÏ=ò£“)`&î”2”Ùœ :h'äÁ5 ڔ-–)×TÖ1™óĜ_uö0Ĥ‡’UqÜPŬM‡'W™ —`éĊ,Ż/Sg^ĥ]Ċ·°NĴê]ÇJeJQNjH|Üaڗ\¸zŽ59k5ĴvĥԙI ŽİêĤĵLı­7ŠŬT”BğŻ¸ĞŒIŬGUÎ5Ğœqˆż¸{t„;熟ы–TzW'ġwé?w“`•ÉŻ@½5#ż=[ïK}§pZöÚ.˘o›˙ ÷$µ`VĵeòCÀtŭAóó}’r{Ĝ˜5ÒpDä'vëıÙÙwŜâĝ€j[+NٙF³ˆv Gı‘ò0yêâË*ùĜO[vxT8>ŞTÇ͙Ë1öeX ‘(g4݉ ĴĤĊeJcÇMÙ|£°ħç³ÇÖh~˘eĵÂßoà”„¤)ò_ĠrğċħlĜë¤éŞ:ë˙œÑo\Ĉó™Ŝô‘í`aë7U†Ş‚VEŻ:“t jœoeCß †Ċ’’+ì`Û^)ü$Ĝ× 8vB •œ˙Ñ6hĴÎêBŽÌ¸TżÑŽô£ı•£żÛ|ŬÚZ·£ċċñŽšWıĦîĦ²ù½7_K ŽÜŬ™ĵŭGHşìÚ&Á.@Ü܆ԭh!Pƒ~^Uꑭz7'Ĵçx&]'­s[XF"[à‡"•ß<£·èz0~Ûi—íĦ!\Pûš´Üm‹Ü‚ˆMúĴĦ}sʆm>g“D3ÜnrlömÖ§t °äğò$?³wĦ%ħóoRwĴúš’´ÔŸ?É ^×Ü_™TÚ,ei<,À<[@ǀÊhÄ”žšÔé~´íiYÌĴ>)ŬìXµ ĵ>è6 Ŭ^Ğw%>YİÑ;ŒµMµfŬÖmç 4ѲÌÛk@¸‡C쉀"‡£ĉcŠ(ëG3Òi•íÓçÍÒC÷ġà÷ ÉÌ3˜Mş(ò£ÇûşĞëžn„ĝ ġÙ:/aÉ<ûd™ôRĈÁŭ½Je9ëçıŒ€4}Y€‚[X2´–ŝKġċÛs1³GoUĜ8çĉmbĥÎ%5š4·|En|ĤQêfèê[NÀD'§œ™y*Vä7TsLé6ïHÉ0óùĜsÌ£ĉq8ópófĵ^œqéÌé~ә⒇Ž'½ÎD§èy,ġI‘G$wœĠNœ nĦ½Ái ğb­w£ôh^šo1çrKïĞÚ?àÈ#tşP}Œ6ÂNAä…ÙÄÔóú-I—2 H’‹1•ó;&Ü †/<ƒ]÷ċ@A,™Ôñ▝r­šŞÚğsיç>‘_kü˕.)ûǟ?9úôŒÛ2p³2Ĝ£7 Ìò§²ı–1ßûê´çĵğcN_ùQ?ér-„¨ “=Ĉ0ÈĜÈ9ß{YM˘ 'Ĥħ<½ÍĞ XïUœŠê;ĦĤ{ ~¸È£TnÌıSŝێÚ:ü2ŬK2–zŞÔUÉMk!_Ĉ‹Ż¨=N`56¨ûċŠ{ĥüU‹Š0—;Ü[˘Ÿr͚8*ĝ§Ĥ]ġ˘6Eo,ƒˆxO$|8xÔ­:á?ŜàvĜ˘ż`ÖŻĉ)zĞ]Žp=| =ÌçDÎ4YÀAfï2¨ĈžŽ§˙ÈËä~ËÒV²İĠ˘áˆáΖ‘·Ê(èşˆö}+y=ÔÍ@fŠŒ Ûkú8-SŬÎSmb+ħ²ÌlY³wŸÎU˸C[bšjż•o™ß@–²§Z8ş(ĝcF„†Ò‹ŠÏ'IGQÊ+QcúytĤ‘ğŝ£Ż™ÈżÔĠé:wGsŻÛ·Fw•wXÙ:Q µĵRÍΜgNÊñ§SJŸĜfĦµe!‚>à36f^·2\ŭ¸ù4…MKlħVèӌǨg ÑË{ü³ ÍK[F§ÁĊUŭŝ (Ñ£ĤÏX^h.d+ĝÓÚĜ'Ĥ$Qáòŭ¸Œ>ċı˘Şc›)€ÔPöd1żÄ0ĉyŭäPͧ”'ĝtĝ}.Û×îÈ5O¸…, 3ûy­&á~92UQÚJbqv>ĉm7'–µNVĵÔSjb’ŠwuDŻûİî3ğ^ `İú4ïrÄŻşeĠqġMˎ/ċĦ`NOÄÙĦk\;*1é|lüŞÊßGı*À”Ŭ=^yòbÚ‚ÜKÔ¨|{{áÁĝ½Żà:¸*t—O›Ÿä”uúè~šÈ§¨%×Û.ƒûßĜ ít}{>áµm4…²î‰E Á6‹™ZpZ>UjçDíMp™C-C£ÏD$ŝücOñcN}ˆÏûAכSŭŝċLĴçŠLĉbvĴótF9Ż‚ë<˙L”z+’ŝeİ*êàç÷Ÿtžòé)ħpux“¤ù˘‘ ɉĝşDLÉFçá^ó×~â™ħ£¨fĝúŜEġÒפ¤’Ù=ŭ힃!ÈbĊ%;ĵ;r7Sŭ*rj-ŻĦyùĝµĵÎÂġTIaŞÂšÜ÷”kûÖ4àI#ïMZÏH1§``MĞġÀŒ9ġVûĵuvĝżiÒ1\•‰“ë÷Ŭ@ŽÇ¸EŠ^+“ó˜ÖGìtŻŽŸ*$:6OóïNKĜ÷:­·ĞĠe.oÌ(Ħµx×÷–4rFç ÍĴL¸ħ½İi­û3Π˘Żĝè;ŒĦ/ñƒĉ$”E‚è´ûoÜÚÇ Fáր½RAióE9…žW§:uı$ĥĉQ½İcĉNÑÔÂòJŽĠÜ4İ)ÜÚBRϜ †3ƒÍkHC#ƒĊàDĝö>Xĉ<%ÇÒWŭŻòİß`üx8•ĈvúíSŝ|Í´êŻ÷PYÌP‚B>ŬÄa+ċĝΟÚM]}ħO¤A~¸ (³p[ĥHÇ`ÒíV]޸/a>´½Š|Ê ĊĊĜ”Ġ5· nž4Ğ*]L+ìڌv;'‰—÷ü<^ĉ·&Aï|£4=ô|ƒ“™ŝġġĴÍ­]}H>TµJ…:~ÛÔ ÜC~’YÀD.‘‹1vĊßÁÏV´b-”àbOĝĊ.C>êœĵŝp#N™F'c ġ$҅ÏÍrUT-ġûĵŬ7a΀~·İ:ö\OYşŝĝ£Ċì.÷. *ĥ:…ġ5JQc€Ó‚O ы²M#û)5”:ÒI8;ä]+¨}„œ³şÁÚc´X.?/¸[vcU썠Ĵ1c‚]Ü[Ê)›OӉy˃'î9abP?âíüıÑR‡€ Š˜},Ìsvßw3b+8ĝBOï2ÏŞÈĥ#Ż˘ñ‚wÀÛĜϤşÁîMĥuÂÍzWÔŭ-Ĝ-ä7BiRßµ˘kÈÈlŬn†Ê_şû>fÔR~ ™Ž˘èíáùFuP.2]{‡91JwrÑĞ`û°K<”•¸d1˘PZD!ë”vCËîb&ckS'B‘#PŽi’fz°ƒ6ŝèĊġmú°@y-0-İŒH›m—`îċSbHĦB>‰ÀĈ²‚޸ÏŬšĉœXzÉGġSD2â³JDĥ£>ÏT?û½!‡[™Ñ‡TĦá!ê5Ïİğs‡{âqƒiïuĞ4ŻfDêVÒmĊûħ‹-Û³&5)pŸbžC,ӂ‚ .ilóLX’óĈ,sq4Ké‡c˘È˘·ĝ46›b iğ>`ZuO˘Ù6Ĉ˜ĵ˜IB•>@ı0ħ²ÓğJ ]JÉùċXP˘:DYĊl40-ı˙˘|CĊżjÑö×êهGŜĜçÔˆExŽˆÎr‘ZM[ĦÎÎG€“Ş5ġó½‚{K­%ĝíƒ;¸ı5ĊҝRaî[S<a[L,UeŞċ”•8…X6×==^9/Ż”B-§ïĜê2!öñ/ôÛ¤ö]s~îŬó¸ĜEŽÊĜö/ĈâeċĦJša!UpdíÌ0…ä 0Z8Á †Ë™Ôb Bħ鏢Tù*ğOÜ öRšYÍCĤER/şÉ}Â_‰k#¨ĤL”_‡nèw=G;lù ĵ|K-Ñ1GÛŻQ]ZU5qœ …3żÖôŠ›NˆÔİÎġÔrşuKtpÑfLɆYwĊÚÁ%Qc°¤vŸ7™`Ĵ %eÒ?ĵù%ÈġŠÛİÄѽµöwʇeù,c­Cü˜`Sü>r˜ ­v)ùCıĉ9e fb°n=Â$Š\Dù9Q´ÓrofŻD ×ĝÛ7ì0Òá@âהìĤvèsÎùÄ·İnĦŠ2ŸC‹Z·ÇŒü0‰î>ˆ'Fıeá"IÏŞ\|ƒ6~êEàJĦ3Ô1Ç<ä[ÇËèİáJ›^,ĴïŬœá6ĴS_ı_ŜĜFïOU9äÉe V˜ġç˙ñŽiÇu´ì–JĝÀĞ™DJgÊàĊġJ+f*ĝúqŞÏI}ÀëÎzpްb‚ĠHĠ5C£x`ë7Jû„j§ ?Ží¤5ö%_ZĈ‘ĠüIŞ´}ïnD[gn~ ·AmۊA†Qä{ċfb[fQħ7jŭǨĵà­ĠEAŻĤ M¸äĜ² nŬŒ>2R<ŝS?î͒Ġ t÷Zل}Á+ÙYċÜölöHĞÏîšÁuž™O7Rĵ*Meżĉ…şeĉ Iù—&.)‚îOU]‰MÉ „c^Ü53Ho ĥ×U†˜Âeó7ä0îf×ǜyiĜĞsô#²ÈoŭM0ŠIèpes›ŞnQl°ĦüħĦWAĉ5Á-AT%&÷Ĵ'Ġ"l­]rBħ*z@˜€v^ê›UÎş ċù‰hôŭQ}Fl; Ħ¨Ġ=ôpû9ħŠiĠcRgQĉSĈ¸îm†wñ·ßĴÏNİr[ĉFy—b’Qo¤×î$Â?ä'V$c˘=×k6>^żb۟VQ΋(Xrüq…üCÜbF…3ëÑ. ÚÚ<ÚGġY7ësh'Ú }JOĠ"Ĵ^.Ž{%yµ;Kw7~Ó.]bb1 0Ŝâv4AĴe¸y:ûı‹ &0wçRa3µİ1Ĉ÷h_zX—Ğšx FSC(7²(ŽÍ; j‡DW &Z2ô_MŜîdfmÇvÒîR|ÑGyë…iYáäÎÎÙŭ„áÙél€U=C½ż¤•P–vÁ´‹_qÜ£kQÑ܌¨FFCïÜ-!rÑŻƒêJÊ•ìò-x;µüĵ˜ =4AĤ"żiïkÜĠOĈ'ëÎfN&m€!z×”µ=çëEjÛĉ;l03Ë}DŝÌûMsÓ; ‰’­ŭ÷š•?Â\[ÏżßèöÍSzÑÍ@'8"ÛsâWş½?$LšGj,‘p½gŒoqíô5š-dĠÂI+S` ŠJÖä&üïÂôħâʙó ĤŸhž|ëœ%(Qr¨ĠӕHQ³ZTŠı‰ĥoú6Ÿŭ”‰bwßäġ Ş÷üùgpŬçòìG…àıĞĞΰ„uEġ î´ñ^³c|\-yĤ/èá 5“³˘¤ìL³Żİ'¸ŬGS0÷šmµ+([nşPҏšÌ?ùPŞU˕mÚj[KKâì ? e‰ŸžSˆ]ÄEä3L^ï.ħkŝUĵ]ÄÚ`^D’Ž_E–`5Ĉ“ÖÜĞS3ßĤ'—€Zš ĊĞŜċħÀÜrcÛpĴĦÈKKŬ{ÂYâ§o3ûq‰ħû[–˘îq‡ŠAĥ36;-Ü —Nñ’–Ÿ™Ös^Ë0ĜáğÙ6FX÷Š“ y\V‘*ƒ„‡¤<ÄŜŻeĜS³!(ĥàbŜ*jŝŸŝ “@J4óŬ>}~JŸ ÓÇZġ¤Ġŝâ˙ÄÔD‡L†&|ç~–"éˉqˆŻnžÄ×&ĵŻ? ›£ŭ½Ì•B•I{üŬ kíÙħ­³Ö6H„žˆ†dqFìàóïtŽ™UV=Úİ/ƒRàNÀ†4ô°6gÏ 7[ïżċtuNˆ“•†­/S*³TfqkÊT5ábÄ#î|ÊÍJ/$)QmÌ ”+=[Żùš §í>!ĜìĊ„ÚĞü¨+évĉ×x:ğÔçQG+ü_X(Ÿ´ßıJ”<ìypżƒŭP]d7AŞJİ3lè;äĵ\ĈĞ ‡—žZSӉà촁÷›•?ŭtÉLK‹ËĠĥ.´ydkĴĊ9Ï/Ĵĝcħ×EXíúbÌşÍ&6Ħ(n´‘“ğ]#Ê<—™)ûMd~|‡•ï† âEĉÒş—IĠŜdí>§wÜÀZî<Ċ!JB;Tr£ŝèŝÜŸd‚0JöħPž‰Ĝ”xĉ>ż\6áù'‡ÈŬÒaJ­›çEܘÍĉ­RúM#qÛbƒ}Ĉ˘2e‚ÑZ½§‚Ġz !×{c’Qá k´h½KOĵòaÖ@jĴáĠ…ŬÂ:?úıY×°èûµ› ÛòċTƒ{˜ŒŸ‰v:ùëÍnĞÁeù‡Ú*÷“ïÇÓa´ĦxġcĦéo͍eâÙĵM Ê ]ç_ğ¸÷Ip0BYh"&È¨{Ž•KiívkÉĉ­.ë?µıâˆX”zrQ…Œ‹İƒ‹àòKá!YMÚÒׯĵdÎ+(™ÄQvo–Ë\Ĉíà5°cèbüĠ5”|İlô¨˜AùŜŞÌvµĞ+ïş/­KEÀŽfñ `LJŬ–'•ŽÁ?€zeçI ‘hħL:Òù#U`ÚÊϵ•[y(Ex c¤ J•L×Ià)ĞWá d İqeaÄbÍ$4èXĤ5ŽÄ_µX"Ĵ1êÜ{Dη‘ìUĴŻ?/ż~Œ"uT€§eï(ġŞ"MAêëĊùʑ~Wm>Ħ·ï?%]#˘ÇĤƒÌŭğH§Ä—8;?ÏüHŸ*Q¤à‰e|n{“eħz¨¨ĉ0Û7;:˘t^ĉöFߊڞBÍÖz>ħŞ?İÖüŽZ÷[P˜MµĠÊ y5͂%M‰^ï½0Sïëv˜žċçÖĊ3·ÓÛœí¨ŸdJ¤beesĊf_Ħ‰=Gèßì¸ÁsóÚnċJ04¨>R6ÊÓ¨ U%CŬ(ÂOÁ@)lftŞ2ġ^qžÌިġQL fĊŽòV“fÄĜrÑ8vĤul¨šò$ì虲&ŜDß:ğio%Èáa˘ŜŒÇċ9c~@ËOÑ<ƒcVĵ¸íwo*wŸB’ämöw›ŠŭúF<½ Ĉ£nżşlŞ˙Òŭ= endstream endobj 231 0 obj << /Length1 1349 /Length2 5888 /Length3 0 /Length 6806 /Filter /FlateDecode >> stream xڍwTTm×6 ˘RÒ”˜ĦA:S:&``˜Ħ[:%¤DPIABZBI é •úFŸzŸ÷˙×úu֚sï½Ż]÷öĴux8 M„”a¸í)ÉŞzzZ*`‰ ƒ@˘ä<<ĤHOüo9ëÄ e˙˘Š…CHO'ÀîÇzaÀŻĤ}ˆ+üŻŜ„ÉyS'¤Ç ÂÓ‚…8 …£=p>^h àÒ&Zş€ŭX÷€ çí`aßáŝôŝ‰ŝí B1n´í (8` Ħ+ìéë)@°_@ʃó‡xC(ˆğv Ħl@p-ŝÙ ‹tóôö@˘~5)ò+ îžĠÑ0UŒĞ+íéAŝĞ>5$Ċ]ĵŸÈ_óuAc|‹$†ĝĠÌËMäéî×Rû„S‘˙£s„{ i)1QîÀ}ĦN"żR˜úıÁÁżÔ¸.‚Ü0n×<‰€^äo8à‰ġ‚ü§áß9 ÀPOÀîˆD“˙§†#ŝqÀ"}kށ`ôëùûd‹# ƒFùŭ˙=eMË;ĉŞÚ7˙êùoĞŠ ĈKB˘ , –¤p‡ 2„ ˙,ä?|µ ŭG½¸‹úĞfï?iÀ˙ç’˙ŽÁħ˙CvŠû˙Ÿ)˙Ûċ˙Çô_Qŝw²˙wI^(Ôo˙Ÿˆ˙qE˘üŝ„àèëċ‰[= n!˙ 5‡˙ħÀ*ìżmZžÜB(£q¤‹ ƒÄ˙#=4p˜!ÒêômŝCBK˘âW;÷ÈÌĠ½WŒÂTċ~|{q\ıutùŝ9ê Ñ‹Z z‹Ŭl`ú}Yú‰ŞFb„WÁÀ!jùŸş^˘Ë:--VwĊ0Gú:nŸë‚î{KcYkšrĵueÇN;¤|5›ÂWâï“2HK‹]!ˆhRÎj*Sy£<2ÚĴĊíħŻ4°ġ˜UcíGzGݍÄBçdħ >r>y}ŭŞ›ÎAֺ“Ġ6I&ğCÀÏb›:I"ĜAcD(żƒGŸaJİÎjĈĝI—ŭŝxş Ëġëj ç2?ˆ—JÍé%³I[ìz˜ıJWÎAÍ~€TìYHħ–ċ÷ñàċÀŜ­WÒ²án>$ħĠ_eĝ1!˜0·ıClĉ)ĠÇqˆh3ŒËħ ¤{5V=iE ~ĵPm—FŸ˙Š!‡ Ê|ħ+íT™EB~I苰“ÔĠîC‹ĉĵr})˘Ó+ŻZÔÀ욁|Sà‚P-0sµ;ìE’3ϏCîI÷LG~ïP*0./HÖ( µı*̋÷TÎ@rĊċâZOH•"ÚSżĊBa¸ùt¸ŝÊÏ;J¨D·,£š ›ÒÄZì,;ŜóĈç„ŭôéÊIĞyç+´vˆwV9Êğu”ӏw?I²ákÑÚ ·ğ`ĉ>x°)YËçÏ\Wš’×Ċ`b.Zèċq…Kı—”ÉĉŒgžµËĴµż¸ä9bZCyF!÷5Ô?ƒ=*Ë.RĞ-€µ2ĵ°ôjïÚв˘ûˆnĉG“CùCOBeö´ÉŻë6ġ(ş2éϊj‡ó½4ó•ŝP´³q—0{‹:ŝ$ƒŽÚ²Ğ]†ep¨ÁËÜOšDzê5ë“F5ĝ ɒ”[g{öiÚï_xNRÂj‘´ŠïM§›‡?ÈÉM–•òvz ‚ÄèÌÄĝƒÓA×÷žXQĵx‚0Òm8–íëb m~OÚ²šĵħĴ/9aÔ91€xVWòĤŒô™ŭµ<‚íxhĦÁ=ċҔCHtĜ@˜œċ™0;žMUô2hĊόÌ΃`ôiƒ;Şkâ‘Ĉƒş™!=iË9u•ÓƒèĥŻ[~ġCJ´*𑲓ÛÊğTîhÇvÉĥGėĈŜ;*y|•üĴ›‚Éœa¸+ĥêwÖÓ'CÔŬÓ?Ìż%żsĵ";[ìwéF‹p&óÍÖáş{Ä]ßûç]ÊŜŠÄ—%´€í2SkìušïMt’|ŞcVşÛş{%-_Í ĵ&ôïŞ`iìğÖ4|2P·´–ĵ¤2βÒDı\=tĜ·°;5Zğ#.—ġşŽ%_°µ~ŞwŸ­68³²Ï¸”Ê‘ˆe‘ÁŠċŸÑAX o€–fÌUÜ9fX:T½Ğëç8>%h|¤ûÙĵ—·"“Ê”ĝR›Ï°Á/­ööpÏĉ; ‚hj4µƒÒz‹“Çחĥ_…²‹^ŽŒù†ÄÏf6KŞÀ7Ÿĉñ'ÂĉŒf]V¸";2Ön҉Ĵ×$pŬêñş´²s"pj_Òíĵ›ı"ÇÉq5·.RĥX'€Ŭq.àšmâU*,¸½xĊóôÍÊ%"[ŭ¸°~˘h4ÍÜ=6ì×a;–ë$RÍ·´4ĝŜFmt ­F<·ïĤin½úÍNyŠ5ıħxĊ2µB„~ŸFĞ5™àÓKĠa3n×%Fbħ§ı—&¸‡­°0ÛPŠ`b†—Áññ%ass÷“ÇÇŜA÷óL)jŽċ˘Ŝí—MƒÛ·´PˆLqEċŒ ¨™Òl3Ên“ŒÁg<ŝœħÒĥ‚@l œnÇ!¨Ò=ĝ# Ċ{ĠÍH“ħsN[ Ŭ×mòYòĉ_I:‰ù5ş%A;Ç>Ó#7b"x6wĉSG#MF’¤&ŜeY£ÎĦ<Ħm}n“Vñĵ‰|x× ²›‹›*Ĵô ż/X"mì}öCŜwN7Uhßhè~ÓUÂ(÷²Ĝ­`ÌbJR ‘ĈĊúdZu×:b–÷ÍTô‹IÑ&ÔĤÒËÇ gÙ1çeÄÄ säġéŸ{÷P-Hzŭ3è­²Á_îĥĦÍFċg[Ál?§ÑğàÄÚ<ó.?Ygïcïû[T³I;ˆ`Ò$ş­K-÷L/£9+p—Z_ô~ıTóŽžñğˆñó[óh۟¤>–¤$Œä‡Sŝw‚ŞjrkĥkżïJxŒùЧcÔ˘$ç=QÂö}RÏWs˙ó)Ï êŭ*ħmD@wRğ¸ïÍÓÚo½@¤o7ìɢחï1½" tÊj[úğ£·ÜŭÓ Á\3·ïÏ×<ÉÛsÈ~ °9PTLñ$,/ĥÊĥȅCW„/gÛ1?C$)¤lĊhUP^Ñdğ4št[Ç>A+Rš{ÎߒÊ-Ş·šüjĤKۉ˜o8³“e?=;8\’Š|zÀ2x5óġíëq îJ0›ĊİġIĝrœâT½Ÿġ0£Ï¤³lñ)+×8wÇ`9ùEó ç·Ïò– k+CËà=lÍK^°3@4{fÁ%ZtxË¸~Myáê0ĊáäÜDœżVÎÜSİ œ~\úĵÍŝy Ù²wï´YI?ÄıaŻY¸ZS[FrĊnÈ:ŭ Îĥt{m Yr´ÎÙŜu//²dìï}ğq”„‰,ŻŬ½ĉëkÔäŻxĝĈ6>sĴ΀1áġ'lxp׎×ħÊ3}iN3bÖâ 5P–UĊr^ù=µ`Új+AìїĝrË móà AÛ[h¸Ï6³Yú•[}ٔV¨*ž! -ÇJ­§öö}GŭġTù4C1q?V ™Ffğ/ZUÖëo€ċ>ŸíMaÑΗuŒŒµ/.yFnÚê'ùş¸ï<Ÿ“˜g‹§ħ½ı…ñ|&)Ğħǽwn ùİ÷'îJÈ(l­‰ġŒèt ġ0ËŭX):Í–][˙P²×IR<<‘XÍ!~N?ŜżÈú>qáÂQ`şÔUïMwH{âĊ}Ë,ŠħuŠĞ×… ›Ÿ{y׺£6zĝ'™²vŞĝĤ"Ÿùş•ı°TÛt;G{ĵĥëÒéŭ2j˜íßAŒ Ò <‹ŽŒ çnÓÛ$ô[ì½ìPù^œ–ô ŒËÚùÉO£™ µĊŽ{E£İ~W>q²ğù$³i⏗ρYäP&êñM“—O×ÛyġŒšTĴŽ?İUR:M˜ ߌnàŠ§ënŠ`Ú`|FE 7=š7KŒĠ÷(_ eŜàTûÁw“nLòߋ´./”Lżc@šq[QFĉšè]Pá†ĥWéÈIJfĠ1N.ÁüŠi—”§dkFN(ğ~RûiŭìmàĠ‘ùCÜĠÎX… ùeÓÙŬċĥ6G1ğÜ–#‘|o9’ùċSϞu”L~µZĝ™3ŒŽ’œHnç+üênsıîŠpżÇµ A–²PóñŽ‘eĠoôÏ´?'§ċ¨LhA9ÑZ°qà}ı—Ïѽ/†ñƒÌlÉÏQ‡`·êÒŝ$ÄDklYÊúÀa…·…û‹gé!‘2ĥˆUşêH˘á¨ÙqPÊqOÖѽI$E7V*´p4G>EC¤çžœĵˆ×ğyJ†;òöí Ġ"/yçgH ü\ĈUċsî˘9ïd'9œß**/çs1§÷CڒZ¤İ¸ZĚòĴ)Ĝ/4Hhù}ñ½FÁwmĴl#ôu84ċ–Fm˘è›ċL”ùŞñËĥ“ÔNJ8pŠèôÖkĈ<_Ş]>†ħ&-(âŻV͘Ĝtä>4^˙ş}UàĴçHägÄĴ˘3rg…úV Š)­˘Uó%•°ŭ(É£½Ó>ĉğñÔIn˙HħU*`w@EK§ĜċÉĵühÜ&qĜeñ =gÀv²0YÉOl·3—ž+Ĥ°ê`^Š.ĥöó Ùî‘jû„›6ò•9u´fTßµĵ]ĈT•YR/ŽÊ÷üAó‚ìïµ÷Äb^ç▉ğŸ&/­TĠú}œúX?ÈùC%‘†X‹ôÀ֖ò4 n“B:ĞáR°‘7“ħnĞËJLŻñnQçDĈM8½ÂyBİÙĤ9ñw²"6 [˘ob {ßġœ”ĥ:. O³P9dœĤ*·Jú2L™Ël=ӂyc6ó]*_˙ä!˘ì·24R~L#ÜböCĴŝÎXĉ4$ĉùè*i(ž)ù%#„#Ë™TîX촟î˜,90ĤĠjŸAduŝµ’ŝëŭˆcC|ÔW ÑÊr ‘˙@ÚÊ$hoĊ<>D Ÿı•DûsҎ• ˜_[*ŽéGúŠ˜ŠşG(ċ! ÷pAD-ë瓽}^ı÷lĦu }|Żñvr­ívžAܸ¤OÁV^ÊZ*™xïkŜiӍëS…#äYpĉÌ^Y›™ĦsÜ~ÇÇAT@Î)3x@¨TŻŬ; Û-}m´$MCĞ•ÁŞ?R˜xSŭ̞¤³aÖNS">µ‰˙œġg/´H5uŭ~–ä9ĉR ž‘ĵŜZ&ú*ÙVm£|s­ FîV¸´ñĝĥ~ümِíŠċ£ĉrNüĉóäGކZ@ĵ÷ĝgŝŬçYF‹Û>&Ôbܛ£aOÏgĞHĜlCŻÛe˙PEĥ‚ŻŠ@ìW+sRÔ ÷ÙĤ-ܢÈÔs˘5󟓉¤È>Ħ‰gYÂÙ£T>í.ğ)4÷À•o…4VħvꉲıĊŜujßÍ~e{.=²Lêç eDm+u·œ‡ šŜĝÔHN…g•!E‡ĵĜİ7ßRW„›äyş†ìߕIùA0¤‰Ĵ"ĵ‰Ş5ĊŻ3˜ö&q—8a׏Ċ%Í^Dt4zŒvG/ëĜĈšE GQŞŞ§‚kY(Šß‹°ê¤÷Ş>é4uĥ쉎ż<šĊ< CMŻâ…'ŒÜĠM1*F—RˆN’$Ë;‘K“­/Âò}ĉ/äL·ê˘„ÉT\şe<·9„c B:p ŬË ²wŜ°Ù­j(5áÎ. e)&T‡~ö=‹†o"ŝ(r*-˜½Q§{£› £·ñ´Vҍ[!µ£üQÖàFĥrÀÏÏ8á1^v25oħÇİI-Wó Ԍ{o›°][ÜĴċW…**€T ¨àÚĉKSîéŝX“•-ÉÑ ’/1Öí Ü!–ÁHÛ&ŝòN‚•€ñY½"™ġ:‡ ´Qâ=‘§Ġ"f ñ+s~~ĦbĠl½$óÒ‚x—}oNĴ~N˜!h'ġvŒ#…}äûrĠuzeG·-ÎE<żSÍ?°]žg‹ÂoñärÔ¨•ŬtƒŜZ3éş6ÙÑF9…W²—é²TôĜ_íÑ\¸Ë~ûûï­|ÍÑò‘Tċˆ ÀWGnŻĴDßÁl*6f½uXĝùT·ÈÏϓ^İŸò¨AEéü=P•ĵH—â˙\ŝYyçŞïş¨ä] £ñäùĠ‘NtY,àġ(’Ġ"éÎġ’§(ĤŞ/‰B|_òŬó —=Ħğ|7< ˜(WĝĊwŜëiŸ”x³żí?͢ĵÑâ5Hnà)yÁ;׆ç›*VcݨáÜTme6Óú´Ħ/%J£çŬáeyûêó£$%£Ĝzĥ8à,?'L|˘û`PKwÉÓ>Lû‘ġƒÄ‹™ŽkjƒŭŬo˜îŜ^ĜùDް<İT.6f1ÚÑ~ûóİ@4zùĞÄá´ c:ġĝWè-ÇujùEÂW£ ÁÏĞŒ½ÏXï紏ókZßYç‚u³³ĵEŜHS´êŻ;ZôQ6;0RıÀB7ħ41ÜĝŒ*>Ôf?Oİ<’+³aÏTêVwZ˘†‘ĉ=~íم™ &ÑIŒ˘8Ȁ‰"jXğRXí×Z'ƒ‘/¸•şŻğ›O‡/9ìĈŸĴ~‰ „’U‰V3”&6X›pĦ?ìÓaĞĊ§™DŜvíjèŽÍ9^ꏈZuŞ@ĵiñß1ytbqwÛ*Bg.0Q‘µäoĉĉW%E1Bı븈œY’ ĵ -ĥ³‹úş_Hğë"\ñž.gŜùHïv— FNNÉ}À'*÷Öĥx÷vb‚Á_ÖÚğŸ¨şê+_Xœğ~Kq#ˆqCˆÜ [܀G$ŽÓóê]e( Ġ8óZ° “P½Ì{(”}܏è(˸òĵşŻ?ž:Kb™#ĤIŬ]s IÎLŸÒüF”Our ½WŜ÷–¨Š™†ùöR˜%µÇ˜-81Sŝ²]_x@iç ÛIjwy.Mì¨ÙXdvê(à *Ş í Œâ3ċŸ^7yµòjŬ=HµúúF@ûžŒ…Îŭ³è˘k‰âwii–âĞ{GĈñÚ·36ĵINSX<>êMĵ­Ż—kÉ€².Lv‡&Š“Èµa)yk bïTĴYíuKĥs½…¤§?Ê;¨zÄ/úB-Ŝ¸nż -ÑPŽï,ĵ IĠĞNѧ4â¸(ôQĈİ×,ŬŸşÍ*°–‡oxé}˙HÀÔ°~ħÂiìω—ÇÍ9‚Ï6†“‹.â}Ÿĥšev ‚ŭßŬúĴsRŸKQÀk$êĵŠĦ4q%ŝ ÈÓÒ)â°Xĵ£8 Uu‡j~§òħPNĵ<§˘·ëÂ~rgiËĊér/?Q˙á6TMNTuŸ(½Fċú£ùîĞÌÍÊL­Z~%çL˙Ĉê ‹÷5OñBûşc6él§ñ¨`nVĦ^ÂŬp]#6oĈ,éQñmfùËΆ”Ü›zÖ§˙ôÈ< endstream endobj 233 0 obj << /Length1 2654 /Length2 23001 /Length3 0 /Length 24503 /Filter /FlateDecode >> stream xڌĥTTkÜ/L‰t·Ä ŬŬŬŬC3C7RÒJw‡„„´tJw HKwÏ9ïÑó~ßZ÷YkÏŝŭ;ŸgS“Ğj0‰Y‚́Ò`3+?@BIÀÊÊÁÌÊʎDM­iëĉü‡ŒD­ tqµƒĝ˙pšıAh’fn9%0 ïî`°qó³ñ³²ĜYYùŝGì4ó°µ(1äÁ  +µĜÉÛĊÖÚĈ âĉ^tô6>>ĈżÔbŽ@[ 3@ÉÌÍèñhaĉ[ĜŬĵ˙c‚NĈÍ͉Ÿ…ĊÓӓÙÌѕìb-LÏ´u³¨].@KÀŻ„ÊfŽÀż3cF˘hÚĜşŝM×[ıyšı‚ƒ­ä ÑpY]ç 9E€Šô·°âߌ€j`cfû×Ü?Úż قŝR6³°;:™ĵmAÖ+[ @EZ‘ÙÍˍ`²ü%hĉà †è›y˜Ù:˜™CŝŠÜ -Ĥ0ƒ$ĝOz.ĥNnÌĥżRdùeRe)ĜÑrsEúŸ¤­ Rvo–ż;k{‚|˙Vĥ KĞ_IXş;ħhlŬr’˙ˆ@HHżiÖ@7+++è zYĜ°ü2Żéíü‹Éö‹ ÉÀß× ì°‚$ô·µBŝ|]Í<€7w żïŸŒ˙"$66€­…Àhm BúmBZŭ!Íwħġ°Bf Àúë÷ï›dĵ,Á ïßâġ—EKVF]Y…áïŒ˙ċ‰‹ƒ½LœĴ&v.VÛŻ!ĵĝ˙׌ޙí?aüĦ+²ĝŝŽRĤ˙‰ĜŸ ûg9è˙µ †L-@÷{È YıX- ĥ˙çQ˙Kċ˙oÂYùż ù˙HÚŬÁá/6Ŭ_ü˙ÛÌÑÖÁûÈşğA@ Y˙Ġŝ½´J@K[wÇ˙͕s3ƒ,‚ÈÚáß2ÚşJÛz-UmŬ,lŝž–żéZżĥÌÁTğÚŝ:VLÖü/dµ,ì!G‡+d$˙b!›ó_—R °ċŻcçâ˜ı¸˜y#Aš A\_6È.Z½ŝb 3ìQ@ÒóX]~u”› À"ö‹ô7â°ˆ˙F<‰ßˆÀ"ùñX¤ŝE<Ĵé߈ À"óħXd#‹ÜoñAĵ+ŝFïJżÄğòoñò/â…xWŭ ŜĠ~#ˆwġßâ]7â°hŝFX´~#H,Úż$™ŭ‹8 ‘™9:AVâ×ħöŻ „jŝAb2w1³°Bî+·ßtŽéïÉż H‚˙".ˆ1 °dFŝ‡ÂÉù‹âèĝ;Œ_bù„¸ŝĥIĝÜżĝÎû7H0Iq0sü ¤|Vż!DÇêÈù ÚŝĈż„C.Ž_wlżżŭqŭğğüá "`ŭ„Ĝ·ù2¤?6ŜN6@ÚŝY!YÚŭ!}²˙BŞè„”ĝL!G&ËoË\Ud˙àCr˙˘ ŝ’ŒÓo6Ęä^ŭ§Ûœl˙P˙ÛkNHԐñħ˙î'¤NîĜ‡Pœ7ïrşŝunü;3ìżˆ`7 ıürpŝfü×5ß?œ˙’Ù~uö°AÊü;.ˆ’+ÑöżÉġKèñGw¸ F\!—ĜżIAjêê`ĉjó‡aHêżŬBn7àc İ£›'ĝˆ ÷? ¤@HdžŒ#DÛë1ïŭ„”ËçwpK>@—ż]ŭ焵pw´ÌíŻ;rüŝŝë‹ôZ -̂-BìjBZoŞĊ^y2m MQoé¤3ù.¸´ıßĦ½üH_•ñvĠċJì`Ĉò†Ŭè"Ù£ï~SŬËĉDµ–{ż“÷ê[-Hóx}cûbµ½$ˆÄLš˘Û~Î~ÚAö°MíòÔ9ÎîĵhŞyĜ7ž=2^µ½eKa³[jÛUÜ Èe“L1ZцAĊÓÔıĉ™3nL$ŻħNĵ§/ŻĤ°²ÇžÉäß3 ùÄpúêŻħÇŜÎĝĴ|Òdwí ¤"Ô' ½Äž ñßM’ÇŸó-)\î›÷j,$ËFeL^fÂ`ŜeOݲU5tö^ĝÊĥ™óBûŞ{3ñsiމ … nU‹IĥÛg{ ÉîW+ñ•Ö+íN+ğdâEÉÚgÀ4ޞÍ~`c§ï}óÊàPÓuXróÍ`F§żNħHŻħµ'Ûk)ƒÈċ%ŝt’äen#0:@9 ĈEĵ/ÌB}ߞŠßħŭ(`eĠç}Ñ =L|ĕwë_Q˘üumsÎÁË(ĝ9˜[ùÙĵ=ù䤀†CÊ4#Œ.7]Ş3"÷{­š@ °~:¸Œċd­Y²Ô›L1á×üi?U!§œL÷Ö\ċ`¤á[oğ[|ĉ#í ­–x|5ò̓(Ĥ‘Ŭú ñà+ËŬWċċâĈ¸{`íۓ Ïwâƒħëš²ÉpÎ ƒ_Ïy½T9ÙfH΅ÜĈndĦÑQ¸S›ŭ]ÜÙö8îÓ´$ ^ĜĤáĠÉşUÔLLù_yÎ>XR:67osŞpz¤›\Ë5çU×V=àöm[Dħ’”Ÿ)Éß*eëħ~Žóċ^%ĝ0kxÓ €qÉvL£à ş†ŭİ9ݧÀĵĴ@s“_fHÁ×을¸LV)‰÷Z¤mX7ğ ë”vr%·œ*•ŭŜŬ§FĤDü5ƒ‚ŭiàÈ`ÔM?Ħ ;µġó*ŸkùaÂTFwp€Ò'öŸïî İ9áÓÜŻÓZ^ĦövĦ–O<󵏖ĴŠôä+|À³ 'ĝ6v½nxbíVA#Rş;Ösq‚×Ü÷lKÜnÊħT6”hL/]Tıš-Ôa÷"Ûċu&W´œĴÜxŜĜdÓf‰ŭ|qwHΚݗ öı:ĵżî¤îİhŸÄġ\˙În.ë^Tš<ŠÈÙ|CwßÍw<’†ÇçŻgCC˜O²D(ĉ~Ûħĝ@"ZB âÒ8ó¤)eڟŞÊ’ñı)áûI 4@›°I7üĜ*÷`£|W7ëğİ‚@KaƒUô°˜qÄ}a[_ÔA3@ĦtÓħG´Ag&Ĵ‚  Âqٜšu!ċĊë;Ó´ŭ—=ı‰Ğ‰,V—Ŭ™mÔŞRìıü¤ÚbôâŠ,ۂexG\ĜeYbùĞי•ß:é(›çu_€¤á(˘ R Bx}ĠçÁ ˜=šĝt›&:'0ĉbOoüÀJÈ&Ĝ³SÉ:˜ĞOÄïÛP½7•vŸıËs>·]›ıe‘!ˆŞ°íç²dBIŸ’}ĝÂáMJ™şa¤47.ÓĞ˙¸bëĝéıÙg,Zú <"–CÙm9E—ĵp%n^[nYc`ɖ1÷8è{ñħ:^#^a[‹tL?lY›j&ón›"ÜD × \‰Á¨ö;Lüŝó µœ*TMĠçKàœ[$àc‚ÓÓ"Q°Ë›ÄğĈDwĵÓĝhS_"„k Úġlĵ‰¨>7‘ìŞŞ™Ç„ĦÖIuöNŸ~9éë²ÍŝĴŞ8%†~s§À0ߕ²aÄ  5ĵ]mmùÜ֑wSh¨X•*Ì*YkĥŒ­ĵĵċ³¤ÁŬaĦÖÙB†Bk˘Òkw Ò7šıĉ÷)ïżjĊ:9XWvf.šOVÄĴ7î–Í$Í|3\ĵ5TcŻ”óŭpÖ.l,.$¸ÛĉıZĈĤƒ|Ŝw"ĵĴÈß)àŸ%VÌò!4ŠĊ<)sAŽ,Ì+ öP–ü$G%§hûD“(6oŭjäÀí .'­R&¨€¸µŻ:R +&F0ä–ĝĉû¤CÍNŭŜÖ\íÂ(”ÎâĝV0MGkà‰7ĊÑvaÒÑ<‹¨K‰·żÇGLĥp&›ɛùÌ ÇĞéNJ›˜{EY&Š“Ĝ³gĈ<ğıç €[iÁ‘2ˆÀ†Xr¸fı—"•œ4`³\€ÇɰÀӋKï‡ ’ñ —TċÈòn".qĥÉrS’LŭġúÉ^ İŠCöÄ›é2Ż;óı;ÑĈĊŬı°À ŸÁş j$pKĠjŽìkŠë[ÌÙB,6iŻħ£éŬäU€ġ“û˜z/mïËúẺL #JŸ‚äb'³NÔL’°÷İWó½%Ì.â|T¸ F=‰ ĥğ·2KQÊë^¨q{ċé(…jèœ)üŽŸÓ‰AÒwtÈóÑÊç‘Ek녖OŸşîĦ*0V_·F öċ~ÜèĊÁ.ƒuí(âĴ—‰C•2 ĠŜ˳YkìĦĈUK•.Ğĥġü˜À ~CUßF1ÁÁÑz­Ê7Çw ÊMkşQAŠzನsËŻüĦ`Àuê²˙C™(ĵU0J†1‰ÎJ( ;§'V݃ò6Ġ4ğÎ1vçJh߁ Ÿùsŝ…JQ6öˆN÷ki,£–"Sï²hµÏˆï?Ş}ìz%ŭşlÙVï4f×Xpei’Żd\ĤA­YĞÜĴÀW…À ž:{`àR˜ŝ0 wً}¨ç ôoŭrŭˆÓĠw~Ò_…}Ú"Tz=äzyNÇ1ġ}ï=‹Œ@.!Aċ‹oÀĴóF˙ËÁ1é6+>yÍÜ)ÔÚU5Ċ’ŠiÂŞjt:FQİĞŬĊŻ) ½Žw÷Žy°'é ƒĠhżw‰G0ÙşI¸OċPxvĜğˆÇt+<ÌÏóÖËın]h³|r^™G¤¤pkÏò—H7<[҈z˘ŜF§ĦÙ0İ·`ñÙ½O‰ˆdI™äĴ·ğ ‘ÒŜ˘ĴĴŜ•J­šĵ{ku£êĊ(šƒë÷óÎCÀ’ é,†6‡ĝ×ÂùöÍşĴ!ĊTıü [ÒhêĦ—ò _™“0;|‹ĝy½+ ìQäkş‹R/\5F47aƒÊĵ#‰2½AüdêT|FÜ84ïî½+émë #=÷ìştJ˘{ÔĊIÔĊÍÚ÷½jMrĉô2ùk¸”ŠĞàV·–pŽ#_bÇĥT ×żzSrÏbWşÖğKî˙ŬôÑ$qà@ÙĉĴšnĵìjñú°›\AE+⛁ĉ=âSÑynıK†ÉĊh9¨ ġĞʆ›˜ò &ETPRT²È “ïxĈ&ĦKÖ8 ġYx}q1Ĥ¤Ġ‡% âáßO¸=_:—ÉŞŜ7" ĜuhWszFTž÷fŠ#ìKĉm}áKŒÀK BZĤKŝM78ùÏv˘?qĵÊkƒèXe†F›q—ÔœabKû?ĜkÒ6dad Ĉ;żÍoşı9(J°%êö¸Fˆ’‘œßÏġ8O‰lFû°Ih0tçвua4ĜG9Êċ“”‡B>:NĠS!6ĠĥX”ıx u‘~ôŬKóßÍ"e“*Öô›ĤŞ8Ŭc´üÛ{{vş/Jàq´äߒô>ü„ş%Ÿ†–C˜ÖÛ*™Ê&T Ŝµ(”Şj< ½O_–3z¨Ïv  <ŸjĈ´A6P S´)ÓcÚz áòämĈPRĠ“) ċƒ‹!6‚+À׃‹ ċ LXY #BşÉx/ŒœÙÜ0()kž‡ħáŠë‚ûÖk9 i›ıKxq|ĥŞ*wÌ>ırÑĦG€&İŠRpg1­ú Oo5ħ)í“nÚß ’·!g%Ş!K“$ĝü˘5áè‚âĊʔ~Kl¸ĦŭıŒ£÷ÜĴBŒÜÛğuƒ˙tŠ'˂<ßëäEÒ[ó1§Ùˆu+ŽĠ¤ôŭoEŭ2I˜;´VJ/§Étu´ŭêġzêcŒ‘§ç¨íFúÉeżGİÈ># ŽÄ’™Ü~‰Ĝ Ż={óŝ‡|£G.ZMÑ2%ĠÂË2ô%Z ‘ TÁ ‚G’–oĠ§˘‰™ˆifŸê™pRĊŜXD†í9€u ë”èÎâà] Š)—LçĈAzvKĤ~0$•ĤÍ´r9oÖ>“oĠ=ä^Nİv ĝ~ȃ—ŞJ9u2Û5Fš·ÙWħ‡5Íl8JßpşıCİàu÷^Ĥr9KZ9˙èŽdċoáÜÍÀĠé@ŝ¸b4“y÷êĤM‹ħúĞ[ŭĥ-żìYÎW•ž%şJ J‰´ö×'çqx<áOîğk=L2üïÖO{|‚³BÓeġ İ´=ĉ; HQÇ}6Œ ։ÇxS*kŝhüÂ!DPİğż&Òêˆ#ŸpƒÇ4ĊrMbğ1'+şd5ühߨÎĵŸ~ùèAĜïȌE;˘ħÑ%Ù2ĵààŭ@FÀ“ˆ—‡˘w9+Q[Ñë¸WoüJĈËD&ŭċMŭ[Ñ=şKô4òÓZ̏¤5ΈÏl w&÷’ÂŝN ÛVeÖ|6T$w%½F˘ÇJ·ĤóĈ“M2 W\ċžŭû-p›r.ÎÇb%VboWġ0mŬ?v­lvŸµMLbéı`ì‘H^^ñÇĊ,Z’T/„]$Šıa˘ì3•Ċ3â˙h6++lĥù1Ĉg0]ìŝŒ ħCÀ§@‚Ù£İPjĤKµéi=˜ĝE%ĜàŒWÔ+çŝà|o89ş¤çV; .Ċâ2ı‹z?ÒŞ÷>’?°µĈşâ=[ôbÚ?éóïôŒôf°µŸĠ;ĵYvĵê‡6uż…!òƒût@†;ğün·.­Ïx‘ûĠK–÷ĽİÙI.VÑj¤AĠh$†éä×aİĴü.O˘Îf¤ŻPr}ĥmÏÍBħü톪wEïó#·ü{ßxĦoë|yñ2u î›Â zĉ‹Vċ ˘_êsġq+J¸q‡÷Ì‰Iq‚f ˙öXÁT`ZWBŬeš”w´Ò>èZ&Òìñ­ÏĜ!âuîì£Úz‰²ıU(Rë×ï!Y` ʅb-ÄVŸ‰sëŸÖ#f›ħñîuÒ9İ‚ŬĜşwŜ+eŸĈaî^·Â X_=sŠè²uĊs–ÈĤäϝwŽ;+Á5)Z‡ç(ׅ <Âô}çݲ ĝ,˜ĉ’ 1Š=_É0uAv·GŜŝ‹[×­˘À{{>9Ŭ‹ĞüҌ ĜÏc÷ Ĝ EşRĊIÌ?×É;Ĉğ)^Ë/i u,ê‘V!ï8ĥ[B%Ħ™\ەGa(ß~×ŜԂ€µˆ%t™¤œğEĊíQ£A¤İ‡AıDPݘüÌ9Z|´#’5F{upŬ}ûFßR[Fq–‘aÏ÷“ÌSÁš1Kcİs]7Üà´Mt/ú§Û[}ÒO>!’n˘(×@Ĵ´ôì]yQa;zAÓMÖwÂÏsyƒÏëÀµCmIùżäĉf]t˙‰b —Èü>Íħ]d+‚G˜”ü„Şŝ/")ĤZĤ(Gßkĉ4 I_ßî=^O'’Á" ¤"vĝŭTHöĵE•uŸĉ~Vë}OĦÍT0˘lŒ%8'Óĉ/³3Ç<\˘nt“˙’Ex(Wċù(ƒÄEû{PĦ—Qu|Ğ0ŭìÎz£@‡Ì[X.W ƒÜqi FešZlÛÒHÏÊjrg²Ó#d"šü‡˘óÒÇĝ;ÊÏÈ/5t;WX? ~˘oħYә…j´j’–l°‰[bžŻĠ„Ħ7Öx1ÁD òôdD~§ŻÜ(…;.}QuĴ‡£ŝXïÓ5}uÂÑ:iˆôeŜíéIoË4_:À$ŬĞ3&V+Ë/ŠV7Ħ?³8X$|¸E÷ƒ˙ĉöĠŽm˘/]lÇċ)·²c˘ò‰pXŜ£‹QÌñĴ.tì£ö÷ĝĝ ¤”‡tµ:ƒċï‚ZşüÄpo—D,¨×>#*·,‹kpñ…ŬwÖBǔeQtÏödÔZïjîµl›—êô"À/ÑĠĵĤD{ÂşÙǍŒNÜ5ĈQ&wİèÖó), £ÁwI³”“xeÊò.ȉÉÍícĝÍá }ĝ12C“èġHá܊NĦĈ–jÔHX™ mp^Ïò~íĝä°Ô1ûü¸Ĵ*O'~éĦŜĤÎ Sô –”Òû9£´ñˆÙTXPF§ìԂjMÛ?ĥamŒ×I7ö†Şßä÷S.öûZ9yN„@ÙŜÙŝ$#ı$Žhù‚|ùsk İšlâEÔkZĠ4Ô •Ġ Š#ŻUÀ:*Üe̖}ëD˘ä;sÉğbĈD•ĝ; ȕË Ôn˳Ħ-,/ĥ5u:Q ħs¨û(ö£²â”ĉSĴHd2·ÈRħe¤İpÊɓҭ¸›–à›[›^Éyoh‰Y5-¤áÀMĈa4< TÄ/½ÙPĥÙ~OOçÀ½:·ĠàJNĤ(ÊÊwë¤Uï~”͊ǘeÈ·$Iì’$ESËÚçĠÏ O\ĦO-v'½ŠÒܵk,`2uP‹VċĠi'ë÷ˆnHÑŻ}=ÜÖV_Ğ\}„]Ù·#Ħ䃛ĝù*Sżċé‚jA§žĈ“îmChôûÖ%(4ù†KïŻ˘ y .ĈöÌšeŸi€Âps6êġĠmLéÈĉЏ¸Ó‰kŒ~“1%JêGÍħÌöá¤z\C÷”Ù9Lœ ³uöžWZ0 ŝŭž!IĊ¨iï^Çŭôaç,µ¸êWä¤:e_’ŝ _ï)8oú£d‡íSıI÷ kŽÜĝùñĵ~p‹ƒUSJĠ ××5ŬC·£m!ÔĦVšċWqùO8?j8´ÓŸqgġ`˘6<¤ĥù,öxĵVï!_ĥÇ;Ŝ Ğ(uÂŝY= ÀĥèĥžŠšÙeÉ]=°Ğ Ñô!ĠnÛ#ÌU´XèĠáù7BËoéMÒEàës/(&:ƒ†§‚Û`D§dGúwÚ+‰–òoDĜ!34Êà>JĈ‚VÙeñ"át'7OÔϕDßâ胭Vä^?{ġÍ6Ŝ”TŽ]áÚ/5\c&~úû£}§ÚèşI ù9ÏÔŞ„–Úíó^Ŭût1° ‚ÈŸ˜ù qĉ4p‹Óêñ$/ò˘†L="UŽéˆyXèN`.OÜĈ›QĈş,"PWwĵœIFÂá€3[`+{!ğe2ÊԜÏĥž•¨Saj*€šáôĞ76ĝ‚8‹WŒŜ >ŬċuxĈĠ¨—‡N%ÜÈĴ×ĉif îžġêŞRŻ^ĵĦÉcÒӝI;}2\vYqÜäoóùw‰Ô_žÊĈ€óÜce‰úXeÔ /nŒ¤²È&bŻCĝmöŭ„šuż2ñÇqd…9Çżl:]ĴàÛ˘ÈkÓ_ĉĠÎ Ĝô§’ϋǨ1ñ¸àñ ”\’˙Žĥ’qçlÄŜġ]ŽVI%ìäŜ>ĝ;ž„€•üĝ}mç!nÑIÏÍSÒdC£Ĵ¤@Í6L$Ù¸ŽB/Re·£¸ûżjžÒKkVîSôÒ^jÜÛĊ6¨ÚżË³Gˆĝ2oşêż fXU{ğ'^t.ˆġÒóµ™Ĥ †ŭž¸Ì™ÚFġ5ĝë,0.ÁıOc+ ˙4S žl°b8‹ué0mÌcF-/͞wê$ WLpÁà'ŒÈ„9ÜÙê‘ĥXxç>‡é N¸Èèž_M/àÀ¤7âl˘ñİ\_ ti­ötô%.TLJ^mtÁ `pŬ\­a‰Ĥ=Oâ|N¨+‚Êz;¸L%úşœ“óUIJÌŞŒġXĠ„ L^Áı¤R}L:XrŞ óÈOawÊfÑ9:ï:֚h~#O§ ċL4⪧HŠ3@ÑÂònl}‹ä#!öe³M˘1ráâ£Ò*³‘ż3(ÔoOŭcmrò:‹w–Ŭ)Çušŝd䑒0]Ğ%u7Â8s Ç&v;47ñâwá×ûžÄĵJ>ۊÔŝŠ.ñûxħK!#(ïÑי˘g‹úò7sĠbFNR—^˓6–\ç½­°òŸ(S˘µ2¸³'€R玷·—+ŭ1ŭސ=­\ì€/ĝúÖ;Kj™Ğ9#Q-‰ƒğċ IXĈòâúÎĦž!‡ÏKcLĊŞBQ/$÷Dż‘ÏËw„bUô!“O—VßRIGšöSsh•P%˘áħY†ˆ¨ —×E ×K;·$™%Ém—öÉ“‰|xwµ„i}Ir;›ÁĴ¸éÓ2¤ôş%;öÒçÉlœEëÑv™ ĈûÄ($ …!Ġ@w7ùɂLR/>G$W]#¤••ŬU½.ZÔ\{˜ûÈ7W*Û™ÔÏ[Ú+²B·ù›%–ŸÒžż¤Ż4Yí{½§Oş:‰Ì#%ħ2&ŽPúȰ$ĴŽˆ)7­l|SPĦċĞßÔ§)şPÓÓîê- ”—߈Xöö ˙`_ĥîÈ+™ĝ°VsŠçĊ“ïÖb{7Mò•Ÿ¨Qü£~DvVĠ½'ÙÀcw!ÇĤŠĜhRöÔ<jÒHœM€7wJVâ·&ec¸!)ħÙ´KÀġàKúƒÖ|.ÖA*Ê^­âĉı°ħ˜Ŭ`&Ó=ü¤A<¤#¤›W{ñmÁçġW5š6ï[l÷ŜQ §ÄŠ-.Ž+ëèJ—™ÉfúsÈŞÑĈ>çp<9‰†s4É4‘°ĵâÙ_ïşöIlı'zğÒ}ċ̄żkZȗġş­Â1daĴyœ‡IşQÛşKÇbä["Rin½Àħ9ÇB8Gĥô\áĞħ6ôsŻì'tÖ-ġ&=÷˜ïĥ^̨ħ…Ĝ .µĠLԆâ|ŠPy°5}w3ƒ÷LF‰/w ;ĉ]~z;ŭôâ˘ı£3‘žäċ.•îĜLPìɧEa‰ž *…Í ϙDáŬ,[s\íĦ·P›ħ‘Ù½ù6ŭĈ|j~óÚÀ4œOäl"DüŭLĝÖ]…ñŽñ?\œêˆ^„Áƒq ¸Ê%c˘KwÔ)ÜÂŭğ6ɲu>Ò΀'Ĝ5˘BŭâÚ(kµre—j;'íÙıy´NyˆÍĴÍÌ˘ĉŸ‰şĜ9}ċyĠ/赚AK¤Yh’ò|û'ïš˘çÌ9Ž MÔ_vSMôNĝ÷£aëMjïï/hWşš]Ëò˘uËpžä]Çĥ÷n m=íĜy+U¨}ß^ù…iza]ħ6/­ŠKBƒP˜Y–ÇöG ]!\Íä2“p› ĉc'<Á¸ñu>-”áì6Jh§Ċ`Ġ`O;َoû IöÌfÖórĝtôÈBÇP2Ĝé…"˙b½IĵÇPĠHĤ@Î_³Šk$Yġ&M%Ĥc€wL şZ³ĞƒW?ïÇV ĴH·y . ‰$û-aèÀÁÙ甙†fnl_[d‘ÍÚ o™ĵñIf0ZuÒnW?Ċ#ñ¤¨=¨+Ñ ÈŠÓšê²_ġAżqÏö ˆċouI´ž Ħ‰ö>ĥjk —‹Ñ5™œEĵ,;›ğ.ŽÏúlâ´$zDô€îï0ï£ĉ&áﭞ^NLGĞŜÑÈ÷œûĵ€S€:çFÇz“9GǔW'eÑK]é’ß.VìÈÑUŝX—›“ž‹zs_ Efwx%ŭ†ÒOÎÚby_‹ż~+–d˙üC—ĜË?E½ĉÑħmfäRX|ÛÁ(ßUó­ =ĝG+…,ô=mŜ9 9oÀˌ”™£4˙&Ŭö†Dv˜Y=D{ĊK@LŽÄ–§)ç†ĉà‹‡ ~iħ´Ùâ½HŻ[#baµŻ”7?û"Éç^ĠTÜobzÏÇh„!Ġë:–y`6ħਘӌéÔXtsG)}I:N[.càĊß%iÁşÂŬ œy`+î"><Cïüùċ!RŻħÎvÜB!v~t‚ñ‹Üáġĝ#Žİ Uİnİà´Š 7ëY¸Â:&G²²“fݵĉ‡Ï÷h=uͧiÔ4Œ…:ï‰x>:^ÖZâĵpĴ·R?‘o‚ËĵmĊÂ¨Ê °=Ĥ7 Z÷Ŭ[Ê"[k19KħQöʝjŸ‹›sjoyÎâ½n~‘<òÒĝvD aÙ´ĜòĴK"y ĵ‹ŽÏÈ }ĝ vázAt4žFÔ7ċ%„Ö5yq{O¸‚?žXuJƒ3Û@Í_a\ğha%FŽ Fv ­ĦΣ(“ìœò=Û ×җôNÌ=¸½†-ë+ÖۈĈ3Ċħ‚~Vg”<ÙğŻÄt3ŝ7êјĥÜÛߒÍĤıpú‹-Y´Úk/Ëh'8NdƒGSĦž²üR¨‡|È_°эròŠ‹è„{íx.;Dn F AiIHZ\W<³iĤÖë¨Ñ‰v%LĴšú.8MµKB_£ÑÚȆŭ‘ó™şCBvğ á‹ĉëŝ ğ“T}†ö·j[\ŠU†ÔN? À~4ì‹ûDĤŻ&Ÿĉ•şéSlê1Ĝ‡&î†{?šìW*a'9—ĉBùbbêĜşö{„ž’|ñxÙrî‡;‹sjœ˜Ġ¸ÜKÔ|Ôò€ïƒ˙ĤTö³ckˆ^+ĠNìi ß­IoŬ—fÎËĵmFƒċ[új™ÓŠO"+•ŭŝ R@$| qâ•X³—íıèfQFÓ6yŽ˜—Ĉ*3N m£W9żUĴš’iHˆp~;ĵ'MŞ÷=B“²²EU$ŬG¨•]_”ŸËÖ͟äyjô%ü¸Ûtvùâ˜@âwÖoxa8™ŜCo˜Çœ]ô–‡^Ŝżô×û.3céÜîŜĥKƒŜ%1·À}$‡˘‚‘\RÒÂÔĝĠÓ+ÑŜ7}o×S³Ô\l–^˘3uš2ŝĥUÎߟqG ˙UÓĞäkyw³FÓ,6ŽŽ+Œâ7ÓòÌ3£$MᘔF ˜Ûĝ\ċĴۚà׳A –%bvçdjV‡YŒrž„û6ĝşŒö-a+–EfX|ŠhêYBç‹I—TsiîÖ-YGsĥŬT4- ÏĜ8WkáÑÏB¨iĤfPI”>ŬhŽ˜óbÙ!³ ƒ"†á¨9'öş8ǵ°Èé­ĈavĴ×áZ“?ÑӝÍ~kú˘œJ]L!Â'ü'ĉĜ+ŸK<V† [lĞ€Ĵ#(_Ú.T‰Ġ™Ġwş¤ =ŸPÙ:LÛíû° ÁO†vÑÎi j§=ïRS­Çz_œg ;ŝ|Ċ˙ġFUô›\xEYoިp+ħHġŞOuë] ĈƒC€K·XÎ ĤÂĥrŽô)cëÁ(àżêħšò{£òµQĠsDhÓ|½ÊĜĴ\‘¤¨ŜIûħÛVkscrpäUÔ­“ ™ŻB{Ç|ĊġMĞÖ…ÇnçWLħDI cgôĝzÈ=ĈZ[Ŭt½Öħ•ztÛ.HwJlÁ!ğwۄ*Rèp ¤–E;$pQV€˘ġEĴAĥ”gŸUCbĥŭ…‘Co‘żWVŸx£ífFŠgÏ,Ñj„+hҌúñ`³A:]Q0ÎÀuWaÛ2ĝ-,îú¨û]$ÑJwA ²DU‹-`B/£jJÈ@(W›uİ3ƒ.–䨀HıóNßR… QSŬ™ÖŞÛ ƒ„,iš4 ]ê˘„*HuùóvÑé„"ż`CKı"Ġ˙éRċ}rÏÑ ÇJáÎOċ:tċâê°rİ˘ZàĦJ7ĵ)9cÁüŭ#_la·Y}هŒô’4=L†$ŭJ×eÌ#Ò²ü“ùjl‚PékŸà‹Óôgħ­;ö ğŭĝƒË…˘{ġ²ŠAf(‘µñ=K4cëğ¤ĞùÛŻ°m¸\l;XSdMO>•‚@À”‹×ĊħˆÁmÀlq΂rĵ‹v wr÷Fž#\d‚dމޏCïxs6;Jw³³Pßĵ, êÜ~ñ|.2‹ß£Ġ–ş6ĞIÊwŜÉô‰†ß P/í=š˙\ş•÷šĠT;ي‰Láà9&öı_B5ŝNëËX=ٞÑÀı'ĝÀza(”˜`ĉ}úċG².wF™Ò|Šš“k3· 9ŒŻîERµwĤ²_7OĈbèHàü]ĝÌwôñCk†ê[!lô„g=2µû›(ŜşÈĜ7\¤Á…ÈÁ pĦĊ/sNt‚ú=Íò UWŸÜ„Äd1r‹ÂĠíŻ<]#@݇N—öĥ8—pÂ:+]šébo´„×2,VÂ×Ĵ=)y÷9”³:ĊĥÑ=ïÊZċß_’W6Ÿˆžúĉ3ŒpNS†Vù İ’éa~Ç œ$^" m¨ĤĞß\‘¸–Ab’8˘‘oç:îhR”×5E} -’ÍÀÓî)ƒ"­-êÌËÛx—ry^Òì2ôT4yëşò@dƒĊ~ŜÙsw³},¸°ÓZ?ñUÏ#ûôçʁ4Ž|ÄbzLújC½€DŜġfݧğ#U7vĉ(¨ÓTXÔçìa£÷ˉä@Ŝħ H GÀ}‹ĵŠJ!S×ğ÷œ—Âäm;TuǗ"Cíy’Ş– ¤Äè5ˆQ¨ntMÇT*ž7m9İ­ĥŝğ"ÑBË&½×rúQ너…‰;!Û‹Ç˘ôÒßJ'L;4é•Ù ÉuşäüżuáLÀ:ċ•ÓĴġıĠR{ğl/i"íT™ß쇴Ŝ ŜîNŻށÓ?`,a>²<ĠÍĝs•rŻlgİdıB ĈE°ä²òIFĉôÒıoùÒW¨)3Ĝ I :&Út,‚v31Ä=ƒŭ„Ĉ˜‡ĥğhR0dR ĞJ³½´Ÿ39Žżz-÷nŸjóŠħ4햚÷˜w̍à÷Ĝ: 5  Z÷ÂOéŞĜ„ĝ'³W {Xŭ„ğšËh(iBó%#{²yC“ŸYŭ$=‚ˆmS3÷µ+ “Svġ§Tٝ8&ŭĉ'ġ“ÇkçÚjFÈú ĵ„µ^MNò¤m}Ċ‡ ĥ?vš‡ħöĥWâġ2¸W•ô;f9Ì¸$8•IôĠŸ|ÛÍñ~–$IÀñĊıIÙ¤F ‡Emx‹a1öş,—TMΤd˜Ĉ˜ġşpT“T·]jĊlÇá[‹™AĦ"Gwïş‡Ĝq3j8TaĠ–ë³-Ÿ›êC"ú}¤É ù'ƒ–ĥB*N´ŭ^JZrà2xxY8sİf§P‰„iˆżGƒŞPl•:Ñ~*zCŭA†ÒĊ _qOŜ–…Ó]ÚċèiZL0ÊRé[Ĵħô£ôgWPßQá{‹ï0k(ŻU{Ö[e2ñyŻ×Ëï*&3;ĠsXú ÂıQ\_­û”Ü¤­úr-żëÜMŻ:ŞÀUbJôÚŻ=Êoßçi[j§şKÁĦÉO` D2PżBçöi͸ “žZĵ„!ë²lj˘Û+ >ÓÄČ6_ĈV b¸’òµ-‰_òQ­tġ€ùÍg·Áy4ĦwhÈ.vdÀ Ĉ:t_2; WĊX- YٳȞÌIOĠĥ5!­3‹+eÜġòxé”/;Ĉġ67ìVéuΞĈıtá÷#\ë}[ì-j‰³\ĞŸ˜6ˆÍn°ïk -Žj)ÒGçìûBp{D™żóŽĝÜçÈĝ‘c§5Y…ç8żĈQñOßĦšf ‹b==½ûüC?é-ÇŞà1ıĥĦ·âÑ>öPÌ5(žĵĝayŻíëST%ACw}š‘qpz´ZËzœs8 ìXŸ’‹ŭĦ8˘6ÀCR˘îÊíœI8p…ç‘EĦw˙Â|wUéĉéìġ‹È’•~Qĉw•ŒçĦÛ½mĠ·BfˁBè?İy^.ĴU '¨;D+fMCS…ş-*`>BĞq /aÑ-0äC>şžĵ Ĥ||šÛµahBıÈ£ˆ$çїLžˆhä *ï-ĤXž;Ĉ\vÄ)ınĠÙñ'ë~ĵ—şÂYᚵ>ƒÔ <²hĠ)Ğş^{w€DŭD#Óó‰^ĞáÀ6ĉuLDx‚“kGñ—™!ŝÏ~­Ä›ĦDµ8˙¨ŻÛâtİhzó}NbIM42??ZׁE‡éWş$‚iτßҌ3ĵ:†ĦÛĈ"Ùùݳ<b[Ë~ÇŜ³7ħrF|èà‡Ûbëus#ÚŭĉċHÙĝġPÏà+Bwì0Ş ·˜Ÿ>k{ËziîËè‚Yá2²Ô.1•_YŜakŞ`BÑl­°àa>Ôîj(MuïHP8êĴŭ˜Òy‹uÄçß'{€”Ġûbıá6ĞRŽ8 ä›Hçĝ"JCYÖìKĜÎħŝĉB]ÁH¤‡HÒ׀3vİ,ˆ”7ú>³àRAVn7ĵ=_ó,wĞ“·¤ ħ˘hRWrϙy—%4p‹Ċc+boè5jaù{d“êÉÄ`itÇÜ=Ŭa.ĵj£ƒÈ) Q¤0Úß[ˆ1=Ó+ûÖë\ñı’Ġ˘ú ·KG,Vİ)XÎF£Ŭ4˘öˆ’_R ½]|ĊüıĝíŽİŻjlqɋ u”Ż3!´ĊHölÜt1cpù_wë*>m¸ĉóP°÷O^7kd.nhü°sg‚â îo§J “Ÿ5$ÔjˆF™ù>b€;ġZĠaPŸ&Ïï=/ÑĴ†ƒÖFÈğ&Žşa—eµ;Ö¸BĊùœúĴ <äÑh½Ö†ƒ‹Ż-„`Î":šüĦ‡3\ÙŜAÙ·ÊÛ ‰FA&R§d5ğ}A~g.Küè$fŜ{l2Z9²%_Ĝ™÷§'ĦàvĥëQĝ\żthŸÚX¸ħË*Žz"ȳQf­”¸ħ áÔ ûĈr]ʆá>Á7~;~ı£d8L}P×A”fAğĠŻf˜â>WbÂ4ĝüJŭ%ïÓt­ÏĤI0%ÊWŸ· ,B'ÙI,“Çœ`vm<4ÁC&6wÏĤÚÔGâXewµÂ…nû`ó×_h¨Le*†,ĊÇMC)1[Ñâ€F9gç#âÍ߃Ñ7O”×@EÍÊȖŒ†V@6“S˚‰1Ħ W°š I›Q°– ò×-3‚=ÌĴ%]ŽM°+j“Àħßöż‡X?&‘êQô :8S”9Óg%ĵÏĈIÜfÉrĵ²ħĥŒÇNĜìµĠ]3Ê_ç{°ĥ˜Uñ~ ĥġ/=ÚĜë f÷qkùa -ŸÈ—*ʁvžşĦMIÖAà*û™ĦĉġİÜÑô5#Cm4 °Çĵ-ABL3ıٕXÇR˙³E jʖt:pŭ–}ŽŸ˜O] ²s§uĦÎáÄô•WXxƒÍ!‚„’ó +Ú´irE9ԗÏ>™+¨ê°Ĥ—kRÉ7öÇ#xìÚÖ08f²ËѨ¤fžş-ĝBPñ5TÉĜÛvyÚñ5{ĊG‡ıO)lìp3ԑ =×gPŽŻŻ‹Lˆ"MSÀZgkğô”ïċ¸2E-h}ĦBl.ßU˘­Z!Ñ Éò•e  “·Ú ÎZ³Í³ï ;¤.zK[š(›˜`+ĊÀš#í‰öÑo‡½íwwÛd×ĠŭÂdÀ(ì°YŸú¨ÛTàߛkĜ›KŬu2½-‡‡ùe2=>=<ò‚í,£}f/!ƒ€h \‰á\, v}Uà÷iÀcĉħvÑ$ZÌ2× R.?·è*Y<{dú$(Ż iÉğZĠq…#9ġ ömÜvŭĵÒ°q£˜YŞ£WÄkJs˸|Edŭ&yš^´Úg޵@œ·ŜÜ`À7 #Ĵ"ê³tod֌ŸZ‡Kk´JŬ•T]âĠj°T9›6 G–‰´óŝ˘Ê´}_k³aOljĊÂ@òÔnñ·Z¤Ş&áÜ[•é´ÌĴIß,½ÏhsˆFkLYnÏO\‚X@Ñ*:ĦÖ(š ËÚé£lV!JÔ!zc ‰ ÇÛî~” Ó#ŜŭO’NâSĊ%׆t}L'ğO#sĉµY‘Žƒ•oì“Fı_}R‹ÒûXÔ-íDÑO…ĈdW}…½J²Ĉ‡£K §ÎHíÖÙIGRLĜ,½żŭy”üì,h§ÈA;Ûìì§jÊO\Ï'C-˘úÔîŸò[1Ùb Ġîúqî%2]šë>Xò•ïώ ĞìnàëüuàF‹Qmš¨œuLÁû‚R³T£çbŒ(jÄYÍVÛ^ĵùFħ=ÔߝW7­üB şDöZvˆi*ċ:Ñ|smŸÖoÊw›żXGÊâ(,aóm ÷~’ ë A*šrâtPŠŬŻx­Hbb|‚şÂġ×2##<6n òVóÛĦĠ­WòL_Ĉż5ñ·RĊÖÌBñ¤ŜĜó]swsŽ.´İÜËT7ĠKMHˆ“Jì‹ÉŠ2çôÁĤĊŬ9ĥ]MŠwï]‡G*eü‹§kxš–shÖmËĠixnE}L&ĴĜךïˆúşih\zħL0‰ŠnšñzL#.ÚRhjÈmÜŽ~–á›ù‹³4Ït¨[~6.Á³gĦ?ĵzŜ×ëŽÈ'bCħÌĊ“ b$Öğ5ŝĉkù,†iÍä’³X5€f˘3x°$l/Œ}T­ÀÂżQ- fËîŬ]ĞĝŽĴ;h\{}‡ğ~i(çzġıO]='K†pHXġ–‹§âáš^íêè÷lh‰(΄°ċžx½ÄĝĠç¤o˙eŽĞ_”1mAe#ċZbž†œżĤ?\gŞT†;áäŠ ŜÔ²Qs÷ü7RÚĜ{Ò£Ù]·°bҟ™Žħ5čmɇ] ŬÉĊœîµL^Lı†ĝí I~ßC(כ7+Ÿñ2–3ŠżÜ³ƒKw=Ĉ]ƒŒ ‚ÄîĉÉĉ:Œfħwô8›q4ĵÎ̤̈́­ZtóéĉĊ$k“àñ9·8Ħ"ĈhĦwRÉÉΒĤĠúoĝZG{):È{@µ?-ŭ˘òi1%‚n;˘nE"­çi6s3\ìq˜ĥg ”ê:ùÚ94~ˆK>~ݍ?%”Ì2#³òÇX›ë êgżpr-ŭ`*Ac\D0EKsĵÄó‚8×&žxBÒw­köğŜgB³ĥöN¨w¤KÓlŭĜ·v’ëbZ•‹˜ĈéIğMäĦ[eg„5ëÛŞĥe—k);/äA†rZ;µÇ„•ġä³ħQ†Ú8gxd›üşîĵx"h vĵĞŸIk·Ĥ8İùlÌVÁ ä>ïĴĉ{òGM1#ĝ°&ÓİÒĵ@ɢê3\ñAÖ+Q×sšX–!*T)Ô´“ìÑó —O|œ<ċG’8˜b$·âwÚ‰ ċ‹„jú °ñ´™¤:¨P ‘ŸbŽßg*wÁ“Iùĉ†óTï/F ˜Ú4Ħ6˜ÎFw‘À2ÏÀXÀ3.”×ol@:<°ÇY§ Nş­Í.pu,)6„§ÚA´âƒIħUÀbz!>‰Ÿe_ıŞ_íĠpDG9Xğ5×sDİI'­ H3_áÛKš(의5à’˙İ…P.ì–ÏêT`˘nŽc³2•3V G'Ċ9-?§ëµ] Ċ1Aï<ş4ŞÒxS­5˘Ċó²^wÛoÍuƒ5ÎİOáQHìZ×ènEë}“|[À@mñ•k8lš³4öOšÁÎtZw”NLıŬ]T47Ÿ²İÔî÷ċ€É8T¸äÎqäj*é'šr!ÂrÒ;LÖہ]ı‹Ì·ê}$=ñقù8ôê{‹‡Ĝ%#Ğ<ƍçÑü“ġ¤Š Ÿ²àÔ-Ïx&KĵíZëÔĈcdµÂ —!=Aµğfċ‰:̌T²oaž+iŸe“t‚Ċžĉ°Ò @¤ÔgŸë@ߘ=Ş= šç‘žt.żèSiêìG–q›‚‘‡šˆÙ¤na=Új/ŭ—˜Š‚L_Qw™îŬcOá(*öPŠû`/~‰Ê–{l=ùJü\™Ž”"*\5z·Kna÷Mï‰ÏƒÙ&#_T­²—Óƒš´üh§Ğ†ô]uÓZ\²1 ž ‹_JŸGÛ^_ôJËw†Š÷êsX˘Ud{mž[ä5ñÚĠ¸”~ÚÁ1ÈġͧŜ`S'ħƒÍɉ5ŞÙP‰,*ò0úğƒ”•µçşœOkVä7"|Ô$灃if ĥg/·ñę~ŞĦċĞgθRôÊEħ,âpnuÈp> I5ÛĴàĊ[eħ}ĉZڕ½~,ù4ÉY–ÉŻ‹ˆ8üŜı!Éo î£ħièú6䉒 é*ü8/Y§t‡ „€%(›Ĝ#ka–Ağ[ŝٍ˰Mİ`[šŽ,ïġ6ކZ7MюÖ£Rûéj˘y‹²˙àâB5<üpˆ­¸°–ġÎ3ĥcUÄ 71;ĊIĉE}†¨I"Ä~²Z%r1ˆĵf4´ĥ:ôÇìP;IÍYš]ÔÂ;‰,ï¨ĤsÑdîxAĞÏŻÊ´mѽ °Á[ò Ĵĝj/A“Á{VÔ\3ôIsĉ°-ŝGvĊ\{íżmÙ"܈›M ş>Ÿ° À‰ĥ€]hŞg s6äĤ3?ğÁü8ñÈUżŽZ­IİNE"Ŝ é‚ÔŻ-žÉÇGÖ­ ³–—×~Ÿxäíò§,Ĥ“ ñpĦ&ôĝpÎ08ÛSM€˜o C/yÌV¨y£‰(tŬ‰AÜİ…}É& R³:Èsĵ>Ğğ§ƒIŠBGÀëĵ™+ş½²VE%[Ĉ Ԍ6ÜÖCÈñvZHn*_š0W¤ ­thá÷(çmä“qÏŻĵÓ4….ÌżOߊ7œ"1r–„²ŝdF˘ß>ŭPġ4è$lú{—IQyú“Ĥ~˜oĦìad‹˜)ĉğì Ġ5%àRÈwMĞ`ıE²ó^´G:ñKƒƒA„W„í"büİ)W×ÄAŒçA£ĵœRۅ7ßh´?Cd½,} …0}ò“²uĤMù5N [”ëéP„)§I_9¤. „ĞiùċÄĊ‹3Ú½ ,{sOӍA/Ğ–·,â6Fö€œ7wùĵ Lw—¨‡IQ¨İÊQú'ŸïËĴ˘Š(’jLK_1ŸoD‹8>KšĤ=᝵ûQ’/^V°¸ó„²)ğ\2Ҍ@ğı×§U·üıĉöŠŸmÜhâߙu’ĜÁ²L›âĞ6)yħÌR²´ĥ­SÒ,g'ÌÏĤuÓöš°èµ1–sL¸×;àx%Ì`\Hżċ=c˙ k´‚ċ)PWn`Û´Èö1ž0ÜzÓKŻPMûKJUpĴ…Z{öŝŽ™ ‡d˙5ĵ˙âÀ^µŒîä“Ûjœ†Ücù Tô\Â÷˘Z”ğ+‚‘0ĦZ·/@÷D>'¸ˆ‚Úӎéáx‘Ĝ¨ùŻğïjŽw41V—ĞÙ,™1a ’tê8‡U˙ôè54´쑅¨” ×ıCž‚·P[úíŬĝ½aM¨ĊŜ6WÑ`ÌyžNIûĴûQ†>Sı’îoĜí^4ıYZsT}η]í<'˜­Ün ÖVĞĥˆ^²—·oĈKŻżèí?ÍÉş*!; ĝîċyüĠ• ÚpzÀ5ì˘|L‘OJ…„ċ˙=ñôğġhú<ĈíÛô[d#‚À żR ıŒñĥŬċğÄÈ>%ÜídĦ†9näÁO““Œ‡7°ïçĞĜXç jۓä3h:N}ġ1ÂĉÁqrâ@:KgÒ<ıëŒ EeÏŻ?˙QĤ4ĜzÍÔWʸép8w/ƒâŜaüĜzÖWz7„ü”ËYA­Í„XJ‹ƒ µô½N5COo ×kĉDÎ$ KP‹ÇjÙf˜‘ù½ħ7T$“°}Ŭ’x Ê"ĥ@Ĝ~yÒ谞ùà‘Gˆ2Q<nĤ­:ê³&ŸCJ]”í>4ħ^^·<ÌHµBZe1ıtf7Iz,-Ĉ^ŜÊ`Ż+ĝ|Qç —?o%ŬïO#-ép:[#zŝ†˜ŭ:9ù\ÍԄ(NĜ˙<ŠĥáßSfıĞÒöw>ŠgĵàĠ€Yá\Ot}Ù¤•v ÊЇǗùêœlXĊÏב§Qgfmżì˙3Ây*B3.? ¨+'›ÇÎz°;ÒĝözBf.ŭü^QĞr|M—ƒ°bágY%9M—2˜×§›cÍòĉĵR "ġ“a2İ,ò IÑ•„‡”éż·×Fù3AWJÓ!X…Mĝè_yšĠ aúmŜˆœÏ‡ûäïüC÷^D6oòj§ĤŝI4$‚ÍT—GžTMÓ–Ô *ÑĜĵvôÏeñĴ¤W“ĥ41Ĉ×|q§?1àAì¨ĥi•†èˆ{{´§ÊJÙXli=–=Ğ ³y˙MŒ°Ì"ŻŻĥ1Ú˜”ôU‰EÄGˆòĠU3•Ê] §œdWĝÛÊâü甐ÑĵÍ(Qb‘À'[;Bx–.ŬßiY,%îĝxüğÌ0~½>~ëĦ|´{û0'Ħî.˜—ꕌÜŝ7ĜɘĈ:VsĈ qEŒ}Ó4+ÇĤs˘Ĥėô@+meŜéıé¸ĦšÑsħĉÑÙ)ôe ѵÀí(\ġ6RÀ`Ŭ"VĞJ‚\ÊšĤRΚ’Ĵ„Dğ˝ƒDטĞà˘Œ?€£`çÔ&Ĉm˙ŸifR|i£ÈӇâÏß[ƒ-(Ŭ2_¨·“'¸bĵr(ŒĠ´Žúà5è鳸pWA²Cï${?'|”äc'~··,Û§=€$=‹³ò¨kcєóI!>rkF"äċĦÑë+ŠħiĤ2˘ıôqĴΐĜż­aA'§|ùà"8/ı_ö tÏ=JƒEĜĦİb&ßĥ04îĊ ¸‚œñ³v“Ÿk)_›ŭĞóŸÓ/>şıöYĴì×ßfQ D/ւFU”(ĝĴ…_³6;ô59öĠü>ç$ß\Öd²ÄċĊ4 NŻè)*£­~ Q0Ž– ùökîç€GóA UÒ¤ġÉ+´Ï"Lه™\§´ÀŬÒBFYá ¸ĊIÌ?V!œö˜X×Òv 0 ŭV„I“jnŬšĉ1j¨êġŜĝ†§V½ ˰ĉÎĴZZHħ˘ËË:ĠŭĠ ’ÒP%wĵ÷IE÷ñ1}ÓÒOÓÜĥ~ĥ†RJŻŝ|ĉì˙'‘ Ġeğˆôúr$˘à óğÓí>_ŝzÁÖX ½‘U|ÜËbìcġ@Lòۜcĥğ'H·ÄDÊ˘<­}žeo²@|qY(% Kn1”“qcQö 6VĞV(c‰„×NĤäÈ`l ‰^çÂY%ì‰ÏîWX먕9Câ="È@ àzƒŠT+ò[éL6[h[ĝnA>-Û)déN ġŜ‡ ¨M˜½‹Ċġrùİ“×a‚]Ŭ)\ÔµĦ³† ”oT\)ß7Â]?¸Íœ’è™#ïÀ;÷‡çĜ†íĉĤÂXQ˘jJm[”O.vˆCš‡3WY/Nĥàĝmż‚Dà¸+Ż7VC˜hœ |vŬàO­Cè0İŬî†R=büġ”‘pêvŬÄX„n¸$m£€ŻEâ.Ë:V~ûÁfé8LóĊ@‡1ue£ŸÀŒW•m_Ù+ŝöÜ;bÛñ˘XPŜê;°ċġ…#L sžt­N ,ǸûÎD\í*™¤Ċ}R1/ñ“ĥŬ†"Ò\ĵ´Ü¨ÌjF*Ĝƒ@B]¸ÂôäÌñ~&´Mžĥİ­á/˜‚Ċ˙ A f5‡î˘)xczNž–ĵï,^·U§#{ċSknôhÈĜƒĠÀ2˘'1*C–Ìdjĝi°ĦK܂iÄB |<òġŒ­FħİŽb7s‚½4Ÿñ]Š$4_\aÉ]ù|÷‡§W›£!!¨~ ŝԍŜsÊwÉ"™„˙Ĝ‘¨á}óC²Bg’1 #á";ßÉĦ >]˘M˘C˙א lġYĊïíÑ÷;ıî@ÀĞÌéÖgwÀô•9çcÇçéğÀetuD–)8–ĉkpŒg]‚ŬÚdRJĜÀŞşˆ„Ş Ĝ$´ċAx$ĠDzV\ïĴœ}ĉÀP;‡ÙèX?·à…fğߢ4SµÂÒU§Ħ‘£}¤ô£ôr9irGnċ+JéwèĦIXÀĉ\ëMÌİçž"ëꉳ#µr+îz`ŭLwOêÛŜ'Íܛğòâ,Û6%-S ħׇ4›Aµ`-d˙"žpoÍĞħ8L¸Ğ¨òÊ< O*\΀‡ĵTÌöĞ\ùĝjÀ=Ġċ醚0Âqˆ# ÜÍñèĊŝ¨ñ6îoZÇÔTQ=REÊh Ĵ#Ÿ{€y |Ŭí…İCĵ½ |[lşÏ:'šÔċ`_÷]FCŝŞ…ĴÌßn„×ŝ0FÎeMêéµì ÷yÂ8²ÏŠ4úJë¤Úk§EÉğ3y~êżú}2KpĤCò,ë“À'-+àAÁ›ò'Z•ŝĤĥ@ϝê”ı0)âÛdċ‚ò‰k4PêŽ7uĊ; _óJâk>}Ĉ°7-|Ê%¨CIY 8X˜Ÿ:b^·[„Ŭ)Jk²ĝzLܛ•ħUu_şŻ{½ŭÓÖED$èÚ;]ˆŽÄ|£sKŞ^Ïñşw˙öœ:ċ.¸ß)M|£örM0G|‘-tÁ=rA’ŝù-¨Nĉ˜ y³şMġĜ_ıħ“ŝÇ^ŠS·ĴFÓç·-WϕfčĞ(Èŝèl²FŻ$\fĤğ.RĜ cĞf@ĉ@³ajèŭê!Kz:<hoµ}öÊĠċĴê˘Š:aÎÛñZäĝ’ŽŸµvŻúœGı ë ĥO–òBÜ “ߎ;§œo&íŽAˆÜ0ÙÇ$5q‘ñ@ZġĈ„ĜwS4ï§ĠÇâ^ġĦĜÊ/’5ShCIëÓX_¤ğˆpêVvE.%÷ĝĝ<ŭѝ-½rwv¤ŠÇ’-Ŝ“|?òŞ[ŽĜ˘ôž8ڎ#‹ÙÔ—­˜]şÛî‰FäàÁCĜ‘ïĠ„İƒ•éŝĈv‡Ĝnüİ(íäTÔ´ħc P}t˙vM: x²Ö¤†È|"ĝJŭÌKdvÖ•ôlyñ]K@+ùŸ% ĜŻì]&ÔÜ8ĤR2 ‘$úßö­}„'2N~vġFİy0ÀÒZ’Ÿ óÊEÓ™%€`z]{—WċùP•>U°ÎH ‡ŭ­U/UÀqi2Ú%6ŭ Ë?˙K‚Ħ¤1xJ.§Ğn eî˜Ġ“&ĵÒ3Îd6plŽáR’u(n/ñ{52noê6˜Ĵ*jĦ“'eÉÜh?—nšġgQ‡ìüc0Ħ˙À½Jîç“‹j8‘.Ŝ*˙ü͌ËÊĈù¸À jlV)ÖaGf0O!}lx;fy63tĊĤf˜îċ'R4p·úÈ JĝœQ|ĵ^Â=Âùv²Ä£Ž-¤„Żô‚oĈ‚{MeòЏşñS`-!xjPÇĈ™íé'UZÇĵ°ĊOċKıÎĴzû ߜ›áĦ`K¸r´ÒÏÔg°lÄ–h1‚V§ġ÷-‹µçMŝë˖ñÌVŒ2£&Ñŝ˜$ä·Ù_)J Ùo.E$ĝĉ˘ċ0:ĥŸŭ€DŞaŝD…µ¨òGʜémĜçJFâG| íûс˜ÑĊ‡@#Ĵoò%¨yßı0,ğÀ´aŒÂ™Àrëhe)~â ´U"ˆFŻÇm¸Zî÷­o”ŝM£ÑÇuÄMN"í›)Ԅŝ°Ë³ ƒ}ôĞ{•4âÒPƒ7”üy`ċ‰=!<ü=2Âĝßp+>9Z*ž½n‡˜rY­Aê™x+Żq.ґhTĊ†^éµµÀVq´}áv\t€‡iR—€‘ċcġÁ+ĈùxݍRy•ıµ™~ƒßg¸¨HL¨×ħ³H%íÎuçó´ ƒÁĦ$Îĵk*Y.NŻúĈ ZäG!dĦü¸„pÉ2%Ç܀~ù"›§¸mwĵvvÈìSĞ@abŽĞçyoá;.ż)î ZoĞżÚ·I2ŻàJAƒ^–E砝§Ú”²BÛ\êv”Ş4µ¤›”ĵô fk˘èó=&¨­ òàî #u·g´Ó<À΄8ÛĥéôU€&žÛÇdËî¤59÷Qgŭq€OİT–ß×!éyDĞNMNŝÂw‡) 2žÜQMx]Óı{ŻM‹XµhGbdw¤Ó‹Ĉx8·q~Œe°ĵ5£ħÌHë›Ûá_ˆs ΞOu^ è-ÏAĊÏ6·fmÛ­Ûċ'A,Ċ´1ż”‚*cŭ ëI >Ċó"Z è<ġo‚ÄY_A¨·ċ“tÛŻ`]]†Ìè=œµ³Ò1ê÷ĝ™öieĴ[äCsjub§iì˙Y˘;ß ƒáTÀmU²°ıù~!Ó­G?<‡Ú)÷Â(Ñ^Ԑo”‹5EäK¤-÷ô璆jD…µ•ĵHíĝf”Ġ4+Ûk›‚ÛRߟ ü”ËS×>fà‹i~N>Z›È;Ï)}iĝ5XA“ĵÛiUN}Œí|ġû”Ħ֘ĵdUħ +Ž£:ï£~Q¤Ò ;/u‚Ìd$탙<:À>N°Ôœ%nlŠı°Ï÷0üÑż`i~”î‹p¨\„Žhé@N0D Í×$Xg EvlÚfmÂĝêΉkôĤ ÎQšĦıŝҀ‡À°Ĝ[ĦaÌjÎL³U']˜û….\† lŭëÀë ÷]š<J70G*4Ĉú5ġċĠäçRu}ŭ%I,†aƒÍ ‹ìĵì‹?2 ħĤ ŝÒm5öœ~pïîHĈcÙјğ%oŸ:LÉc,A\ӌ3ò+HÂjÙ½*-y#@l6ŽÉ!ÇFZˆĤB¨Ħ"LiWĦ 1°ċí8ÉȆ܆l ’€ĝUm:ggëôQjŠZ3ĝŽŜ‰BPqĥqÍğ³ùĊ$JÂËX ġDPjΚ`Ù˘{Úß✋ħ5ÊD 7÷… _]i‘ȉËG¤*ĵjš9ùsöċš›PBžıƒ‚ğÚtc$ıŒ`n´ĠàĦe+eİç a%ÜoԀû&²†öÇ9ï6Y|lŒ.6ĈħôX[n‘RvG*lĵ•ŸŞnDW÷šAì œµÔŝšĥ“a—ÛÏÚä@ sAÙĵ İúžp] ĤûŬÊĵÏğƒ+­,âĈ•Ę#áçÁŬÖǂ‹„™ĴŸêŝP8ëÀwjè!×˙JŠ1Eżîĥğ’GVÛè™f}ĠÉ2Hĉ{fï;è+°p˙É f{ë ĤšÜ“4($lŒ¸–8 ´ĵŻKћ;˜]bÁ-sô y#P'g' o9³xçn#9!ovs9"xZe™P Ż_³Ìşî¨F3ÈpŜß…И`ÏĈ‚Û—2+‘JĵÉd½>°ĤYF)¨$-Öc÷ƒLH,`Cë_‡ùô úʂíĥ N3a×%,a¤{_ĵòN tŭdÄÖÍ`g2œzß#ÌêñŒŻ´ŭÍÔ#HEdtŞ’£³á=’:Dàzrt,cŻ!ì•\%2ħ¨û-zv„qóÁäÛùµ;Ì3y=cŒú>Ĵ5UBÏh–¤nĦ„°Ö˙â´Ĵí´pñxǰ"%Ïq¨4°s„OÉrH€Ò1hoyz0U.PX+lAèÖżRĜ{Y ÄF·{ÎӍi+³Í ²ÚQ> stream xڍ·PœÛÒ.Œ܃ÜŬŬ-Hp œw îNp îîÁÁ-¸ğğ\öÙç;Ùçû˙Ş{kŞfĉi}şW÷zg(ɔUEMl€Rĥ GFV&>€¸‚ +€……‰…… ‘’RÍÂÑĝo1"ì`a âû‡8hèĝ&“0t|³S°äœĴĴìV.>Vn> ï˙ڂù†Î&&€œ-è€H)nkçĥ03w|Kó?_4Ĉ´V^^n†ıDm€` cC@ÁÑhó–ÑĜ jklttûŻ4ĉŽŽv|ÌÌ...L†6Lĥ`3!Z€‹…£9@è;M P4´ŝ]"%@ÍÜÂáoıŞ­İ£‹!xX[AoN  – *û dŭmüñoÀż{`ebŭO¸{˙Èô/gCcc[;C›È `ja (I}drtud‚Lŝ24´v°}ó7t6´°64z3ĝsC€”è'€á[˙.ÏÁlaçèÀä`aŭW‰Ì…yë²$ÈDÜÖĈrt@ü‹Ÿ„hüÖv7ĉżOÖ dëòĝ70µ™˜ŝU„‰“³:ÈÂŜ (+ño“7â™ÀÉÂÂÂÍËÚ€ĈĉÌ…Ws³ŝKÉú—ĝ­/;[;€é[@/ SàÛ˘‡ƒĦ3àvzyüSñß‘•`baì0šY€˙DM˙Ĉo‡ĥpè²ĵÍ+€ċŻ×齍—‰-ÈÚíùżÎ—ù£ÎG ymúż+ŝNLÌÖàÁÈÎ`ddò¸9Y^˙EÙâß,Xŝ¸Ê‚Lmĵ“}ëÒ˙vŝ÷ùÓü{7h˙KÑömhš?3ŝ™…“Ċĝíġ˙yÒ˙ċò˙7àEùżÍĝ˙&$ċdmŭ/5Íżô˙µĦ…µÛż ŜfÖÉñmŝlßĥôżM5ïĴÄÂÉĉke ßö@dfŭŸ6Z8HY¸M”-Í˙–żċê-™µ¨lë`ñ×­`deaù_ş·Í2ĥzğ9Ŝ&ò_*àÛâüwJIħ­É_ĈĈÉ0ƒ ŬYŜ‰“àÁúĥŠ&@×Í0€™ dëĝĉx+Ï `j FüëDı8Ì˘‰ŝF\fħ?ˆÀ,ŝñ˜%ŝ ^³ä7;€YözóSĝƒŜ,•ŝƒxXÌÊ€Yċz‹˘úq˜Ġŝ 7žê[Í˙ Ŝ7dĝ½ñ4úƒŜ²˙qĵĊ|ğ”lŝX˙Ġsf“?í-–‰ txğŸŝħ˜˙€o´M˙9˙BĥNàèß 1û|ËjŝĝVŠĊ?à[Ï-˙ßXŭUcŭĝVŽÍÈúFô‡È›+èmjŝĦmû§ú7gÛ˙Rż1·û£~#b÷ĥ‘ĥ˙hëġĈúFŭma}ópü“ŝŒ£‹í?Ôo|œŝßJqŝG§ß¸ıŭIŝĤt‚˙öŝŻ 7vƒßîĝŬAo˙?ĝ_ hŒ¸0kkÌ`YvW%Jè¸ŭSpŠr[ó-£Ç¸Ŭé>‘ĥ2Ŭ|#š8ԍĵ)Is-²HúìqĜ\Ü˙İġÑóéKĴÊŻíVÄù‰÷ŭßEkûˆˆĠDv<Ÿí=5üĴ ›!;ä(³íxP•sħî\z]kûJ–Fƒf·?íTrÉ#=•L2FŞG|ö+œĤÌ1ʘÁûçÈHüŽóÌmúúf 3kü•T.–Ñë(’=ßCg-ê~Ĉŭw™›C'>1ô5ĉè/*ħ½$9Ü9˘üUhòÌûöħu›Vë=÷mE•;ŝ…>ċ8 >34ĥlxÄj‹LœM!YGĈÙ²ÜŞĞìw³‘ƒRœĊĞ’5w-§ ïv×CV­û< N]°Š9Nb-)¨‡3˜2Ğ– 5$oÛlà)wċó€ñïáßĜġMĵ¨’ÄÍífé5.~ûżĠȆ–]e§ÏċÜ'Cœ÷7éĴħόÓlû;vĈLlġ!)ëëŭ÷ŞZ³$è ß×f;Ŭ6ÂD’'Ĥ§f7³×+# |ÑĞÙ>D˘MĞÜkísAĵ é;ĜÄ.Q/y­,ÏĉIÇĝŽ ußĵ>ĉô^zbOb3x].$ê…&(÷R³ĵûrìÇċİ^#‹S‰™Ş²˘u–NĤRÌÇÓİœ(NB}ŜşìBù:XÏ)D˙€WžPÀb°oÉĴ$*~ĉ£}Pğ%‹~²ëaRͧj­žŭcŸŭÀ6 |ä!~|7!ċkÇ&˜Í\¨÷BŻĠóËvğ$Ĵ~ŞU^Ñ|+%†—&,ĉ½s>>6p3l.Ç£YIA8fœŭŜŝIƒ§ˆ÷_‰yŭÍ}#ĵǏ/§iĜUáĦšt”BÉġ@Ìâ~$ħ§ żî $ ÜpĦfÍvğÔW”pÎkˆÈDOg’î­Sµıꜞ|{ï>•öȔĦŻpEJ´$0ÔqâüĴg*+†ŽŞ™Ünĵáù´Î „&ɎÖ7GK³9Wŭ2µM*n­Ż7êµĜÀhÏ+Òòkĝş‚ RŬúRŸŬèĉ˘Ž7Ĉĉ]UĈĦÙʰâi…ŻäO,áaŽÏkäHVY”ÁkċüQ>ċ 7ğ­^3Ç Eä9F·ü5"Ğ,̐tÛ.ïĞ˘*ò„.U9,V Ñv…çÌ­ %”Zû¸UĠúğ}°S`•ĥˆ(ĴÑé§Ĥ0Ú'â+iv3bßŝ6$“|¸Ĥeëa[„1‚fĥgäxġġËk§Noâ³á”}Új×Ô*W–“Yĥ³ĴÄ % Ż/Ñôgñ|J/ġÌ£·"_w§²Ĥ˘ĥq p†8š˘êJċQĐG)Jµ gŞdpDc}ÌXŜË~JÀżXá‡K~tö8ĉ‚Ÿ–^ĜqŒ´× ŠZŠĥ“Ċ-§Ĵ˘!ÑşrNŜáöb­…´.­”_Ĵ…$ċÊÇx—”¤߅NŸú°Vm{ġ… ç’: ˙p‚}ÙÀŠN ıĤ˘X/³‹SežQ·‹F²üHTŽŒŬH'š{°œ7Š ĞóR2(éP§ĝ+ÂĤÎx˘äœ‰ié^9¸;dê"]èSG0U3aҀkĊöáh³;èjGH•xQ•ݽ&BâóW.ûP[xşovôL7f–Ö:Ù`sGÂèŸÂì|lùŽ ç nT„R)d.7ö¤§¨ÇU­RL S¨xĊëüİ˘, £¸ aç^,mĊŸôrÉŭ›•X}\TÙGi1Hn˜ävh·U ‚ŻW–ULj[‰H×Áx{TÁ<ÛÓYîĠ}Òĥ!ĵ£ÓôqËï}Użcı{êé÷Ħŭp‘4œ3­ž<j´°yMäà d6ŞP|=˘&Hı–_êfßnÇ8żĜŻö+U2—HI­mÒ/Ääuʊq£#„§–µqlšŞà3Q$?MöÏKĝ8E¸c¨âšŬCĝdBւ™ĉ’ZOwž ç×ħĊğ“ĞZÑ'a‚e5ßCgDQġ q>T˘ï˜ÄáeÎ Œ]‘Q ÷ʔËĉ3(5ÂsQŻċŻcXç֒!ĵ)*à-’ğB +İeÓĜfli$“ĞoÔùáĤµŠ^DĤWé>·,2ÇÔà[|ƒÌy 1Î/ñħŽó xAf{żÜŜÌż°’™ĵ[èg6VİLî (39èHêt͞}6>ìû6Ü2ž“û¤mò›&€Ž/óÎ6ÒÄ $7WTáAÙ( "ˆô=6xżÒ&Nĵ>?´ßڌjh X”\Žĥ—dÄi‚ġ‹NI3Z]Íü˙·µso+áZÈûiüQ ;ñ´ÔŝCbtúQš&…(„™ĥEċG8%ğœáGcqƒ–™ì –´¨Ŝß Î2mQš>êŭ¸VıT$Zd‚JĴ„)Áa°¤]TÔşĦ=FnĜçÊûjڑ/ Ä?ĵäµs*éëMf…ôW4Âıú1Y$uúŸħħiË,n >%ÒÚòİ,NFĦç ŬN@²ë¨]„´KòJBùU¨%H-{½t¤ßZè4DÒ.ÂıËɵ"_Ğpî²ëYŻ{‹ïy^wĴÏxOĵÔIö…6ĠkñÈ2AŽÛdˆŸı£Ÿoˆm_BsoaxÀ쳨İWtȟG1PÍĝ-î’V}&è/YŜšÈeŭ(VU:ŽI.·UYÖyùÒsŜDl‡‹Ë‚3À†ĝİ(‡‰+ÏŭöÏŭƒa^â•éŽ,k‘´cġ3M„lĤtNÖ"<Äp=WĜ ~7Żô95ĊàÀ]şkĉĵ߈`HOe+oÇĥ{ì2˜‚ŝ0PZħCKÑN44‰NŬAψß,’$’ñ#ßnÄ-3NÙbĊ¨–á|Ò;4Í V×û„‹Á-ƒX8ÎÄs*II¨,?áct<ÔÙ;ldñänîFƒ ˜ÊrçUĝâƒ÷žµT½?‘+¸´ÈzÍÈA&Áşñ.[~ š“…¨dÛi[ÒÛÂ/G ĥl¨›ż[K BމPş H‚]bd;ôÛŻÊu)L$ÔtfÑï‘'{,{×ü-<•˜v%y]ŒTĦZúÄàŬcÖgSëÈêSÙÌΠÏ>asĦŻ-Áƒż‘6_,Ċj°˘úˆ~XiċŽž³ÖCĥr‚bŭä‰ğ”Äß+ŠŻ òâšq kêğŽÒÀşúĠġ.fJúTu-:òà˘{)f]ÍÊFI $Ä} í(MÍ'í ó‹Á‚Zġŭ çÙ …ŬÑ×ğ ݆Ċ6h£b!€P f7|Ï2pĜGFbş7°ÛĤšN‰ĦA8 Q·ôċu­·°ž99EÓÑe›5~ž3Ë-–§–ıeN£e³²jĦ°ıçÂÏ?N_ʋ€”\Y™p'ŞÉ—îéÔ;‰ÀĤÇÛò,!=3‘F?€4Tŝlž ŝ3µvîMԕŽXV$qhÈĴç&/|z{êŠ)˜m½Á÷S›7¨‘‘3ôĉö1³nT;žnĵżŻ’а÷Ih[şw)ßâĦÒRy¤’ÁRs×/á½Êb…w=ÊQ띍5bPX*{Ùò>/8.à ÒaŬÀİ—‡Ĵ†“‚ ÖĤè^]=ċIi˜ßÛkİ­ ÎD( làŬ0êhÒ= İYËxXHkġ'[çüç°,zŒÚŸ(Ŭ{)ŠÔ! qä¸T¤“o†ë–GƒmVĥjq)Żï{Z³j'ħġÊ•Ċ½ž–ż°-L[=_ccQöC!íóĞıçâ`óe“î"ÚY>™v1·ÄŜ „=’⯞ĤeÉT7<Ù˘â&ĝ#gc@8ì|×Җ1Á·´ŜV‰İ£ Ô˘á…K*BâD-Ğ ú^zA&Ċœšh\ öQf¤ċèN§¨F²xbï‰ğöÛvä[(Fĝʋ(Š|‹8ÄŝvkZÙğġûŝ+ÛJĠ÷n‹Yp÷/Ĝ J˘\,×°_cùÜáÇ<#ÇĠÁƒıœVŜ3|/í.vJù-ÏĞDaÊ~¨Ş|n†A­fštQ\}ŻŽµÚv*ġ^q’!ß§áAWä8£­2Ë⒠™ñïĊ³(˜xÌÇ=Jħ#ÄG~Uu‘ÙyIT³?^ı]oš~˙ê[”.Ê.,yĊ¤‚ž%† ı ğí— k<îİtQDßĴNLQŝ%¸SAŠyÛċ4MÌcX[gž>Óós ϟĦ }JWœ“Öħ€˙Zĥz›k–d'è4ġm0…eZfLˆf¤ÎI³}*ßŬ3Mm´nSCVa³Ò”n5/€Ğ~Ôx·bQ_ 9]…s̙тn[m>:äŝ2‰Ġ_#·Ù"Xx+×_NÌ40?X ŜÂcK†ĵމ&2›ĴÏğ ‘çlÔÜA`ûĥȍ×QŜSèÎ{µt85$…äôċòjƒSğé÷ê´ôWäSúÔ8Ä\Çı8^ĊԅÑUkYâìß=‚§@´ŞÑQÜŸïĴr?KŠé"çŞ:Š?êĤ4öF:›]‹Ì{ÛX™:‰óüÀ BAáU³Ó‰ÖÇĝ:Ú]mÁm×XÊ֐è˙éci-wÍwğN”Ĉ÷&"ğ´*z]Żĉ‹ş6vÂäGyÉ, 0.;ÂĥîµiËïd7œĊd¨ kÏ˘pû44Kp"È´¸ĤİZ­—Ì>^wncİÇ4K^ĵĴĦÇí,[ ßBzán`CwpwĞò¤QÜB>ÇżƒÈĤġ£Zí´Q$„ÙÌí€Oŭ #ÚÑ51zÁm'^–÷ħ3_NĴ™ċú:MĊû>Ïĉ•‹˙kT9‚³ò-–tċÓĉĥ2%Zİe´’£ŸOtóö&žµi›¨üFĤlVàz=İWƒHȗñĈšÍWĜâKMlŞŬ"ZXòûŸsUݳô9¸C1l;_RŠĊ2ܝaN ˆôÄ÷ôŒé÷|ŭ~E´ÔÁÒ}ŻŻĜV din şÍ™û<6ĝgÛOştuiÓ˘X̐ŻĤÛv —·0kpJŬŽZüħĝS>›ißñKŭ$µoA·2íâċDa&˜n cC3nŽ"‰HŬƒ˜1˘Ħè—żX(á% +"ˆÀ~1;%Ñ@iÔÓ~3ÔälÎÊúOö}èݞŠġĉKÏI•‡FFƒµJäb~…ÏĴ3ï ß[m€S‰nµġmÛÂ+Ü´ŸAе$ڑK|cS×l½o„Ŭ•Éb­–5v´„–)vnĤ4R3‰›°e;”87w·jĦ²¤ċÊÓ,ş—, RĊLüĴ‚“—í–,9µŽĉ—Ö Òŭ•rüI—ïT9\Ù°p§ĉÙûˉ%Ċ}MS!LuW°*&úDù›àë¤UÚ}ÚKoä;àt$^dïÌİhŜĴTĈĵU³ÑçëͽgÙß·;CPH9Ÿ0W0/3 %ާ.­î’rͅR c³ #‹•Ğhĵ-)•+‚š‡„ë5­?úŭ†JÉŜŞ?ğ/¸ù[LĠfît AĠN" Dá9MùĊküYùƒ4͇䍒ûçëú ġ#ĜĦÎ.ìÄIt÷@˘ˆĴdúñ[„MĜ‹M_K46dÂRâñë#Y³ne\6´ÑÚöĠjĈ&K‡ b{ìT#àJğÄkk²íùŭĦyy]Ĉpz*SîâĠÁ-ÂnJ-޳L;ôkjäOĉ~ŭVħéVl˘iBÛTD_ġk~ïáи˙4ĊŬO˘½3³ŭOíl$Ĥl"Pı™Ż?Ċ0E†Ö“<³m3$G[M'PQÍĴZ5Ĝ %¨0ÊëEĴğ¤Âŝ ÊFŻĝĠä†3„‚äuœî)ZÎÏ)EE BâÍî]Rs<œˆ”tĊ'û·|´ÔĝY×KyŒİĠ€­rü/ >ĤùĦò=ı]†l³ħǓ“a5ŬSaċ„@4H‹ ôUÜ,œê|VğĠ)“ĝ 8ŠĦwÈ|êD'Íïş[Ĥ=ż܈ĝ6Ú¸IŸŜħQœq Á0äÇa-ĊO`AhC’sĜ $³Ÿˆ›†_IšLf,3ÓĦh! k)Ĥ0g$(.AŬ4O§ue0ê°w£eŜ7ŽĝÊ3%$ ĞñL³›@ëXÑ6> ƒħ\ˆVN׿sA{î#`…şµİ"’7ôÓŬALܲfÜ;Ñ:£W^Ĉ7§wż›7!ı Êg.%@#U/1ġĥİçñž3TƒŽV²:XZ½f'ĊĊŬ™%rUŸE˜c]|´„·bI‰x†xUûÌAĥTOÜÙŻċ1—ŽżÀÌV&„Š˜?#6W‹`L~jiúPğş[iÔÍqMÑ1ĈŬújżĠÚt1ñZ½1ħ÷xy!#íêkt·³GZg‚žìÍèˆŜ.ÑR,›‡İf›pœÜfó,ÒèĉSòġWM ÊĞfp|Ÿcž çBµÍ\ÀħşŞ˙ô‚iù—V˙Kx7š'UzÍ8$â—ÏzhOžƒ]îú;*w‰ĉí" ƒ×BŭG?0ĥ ġ<`FÄ;)žĜ-WïÖ§t ̲–}Èq÷ĤĥcĜBKĤ˜? ç'€Jĝà'p×$9‹ÏÁLšŬèRÉç´ÌîĦ4Ä-b˜úCVĊNçàĝÄĉK|ô™Ïïş~Ïe{"—äğħ˘}OĈċߣŒżò `˜òıèĉÈ5l9 ;îv½ÏĠ&ĝRUO¨VŞ|é’V˜ùġA <=û£‹6K]‚x*yE Z2ZCkE]hHû!rĴq›•Í·U‡ʅ 4sY´ıòÌ!V-²ÖÔ˘b9sÁjŜ3ż7Hu½ƒ‹ĝ V½CYaéï µ uŭî°# 9·GM£JÔ)£—oiL9Mafè–ÓñrŜ° vş§2ñží<Ż9Úċĵ|jĽö-~ô-;9—†ùϳJ›óà‡°#žhCqìċ•´kh*ö€BË LY‰‹qòşÑğyôs$ëd†2-†#tĦ–Îù†_ğ6 f;Şf¸îcöŒÜ™8(Ÿñ×°ġìÏN!“%YŻ1âԝwú–ÍħùT°£‹?N¤zܵL)ĈCw›íΏs‚÷fŸ" =6eĝÊ'8ĝÄà2{О+ż’‘òÁW]‰ Ê12ݵŠĦ™ ÚK„VFšÖġ|•şÍË £e7íż­gĤŬ#ÇĤn{1>F9ž0ÊGĥıêsĞ•*ĥôgñe3ĉĈB¤Ċ“BG…M áÄ°%w×"`p§šI/;ó.+İvüv.ë>$ӭȘ?pkœĉĤĵ3­_ӕƒèĤ.RHЧ-3Ŭ}IĝêıŒh}“ÁwI÷œ{h:òށ?o‡Ĵşí˘ê¸{VÄÏU…T2s·À˘¸ „_˜8ó‰ÊGÊoĤ_Îê_ۘIfu¸¸şŝmRUĵ+ÌŭÂ`\mî: =n 5ì×UÈ~?‰a5‹2dŻ—m˙Í^,ĥ"{żĦ”¸yŻ*VWžèR_KĤüîFo%YeUW²ĥ³UIôV{Íĥ:öÊ>_$q‚ı`wnG£Ġd–q9çĞV„c‰Y4jR˘pcÖĉ7 UySy€kVZÇÉĠXdItħD?İŒŬİrì4ĠóàDç´y˙:bö—iFÇĵé+5.ÓÖ‚Ë ünÄĴri÷z½`÷™ŜÑ,ÔÜO6“4šh.€Ó[̟µn°ç+g£ß£KÓ éĵ+“Ó0{ŬıĉĜ•‚•{ËÏ+5Rû½(ċnX§3ı­Ŝ:‡CíÏüÀó‰\^ŞiFdCOëÙrbuöĜŝòv³ëÀĊİïû}˜ĝ`gkv!‰i4 í.żŒ†Üä!KÒĈ ‚ÒUÒDİ_]‘T˘ŒÒ“ÜpjŠÖ_T‚ÁGÁ>ÄÄ8ùeĴB ŸY&ż’“d ft‚ášÏL/Y§DHĝ~UEĞú(³šĈ [ŭŝsÙlî¨8%ü²ŽŠê#vIO\WNÄ^âñŜ\[f\Ç1Zı£Ôúĵ^ÊġÑÂŞIŝ(€ ŞŜf“ŭû—Ó%ú0WĉyŞêŸŞM IÒĉƒŸ@zĵlFŸ|#ßÇ|˙(I>ùógAÑĵ=ŽĥCšu; Î(UİY0ĥÇi²ár“ßüüäĝ#!‚lUNÎrIs¸ü78„äĉ3€³7%ôċrÈ֍XÉX<ŸVŽ3äëwÓM™Çj@3$z›Âŭ'ĵRԟkMCTÑ!§*˘u„ĜxœŠS(LHBĊĵ7 mÙÙσï ĵʁBbŒe<êb-HÂGhż7Ul­½??s²\œF‹K•ólKl[ì|Ú.—Ġ#}½ğ×Árv Ó2Ĵ´ŒÍD§ċ}äŭü¸Ž@„…'ŭħYŞel-01A)‚'='ˆ ú£bD‘¤èÄ´İÚk´-½ëYM6\&úÊ3qĞ­ö“aMhu<ĊZE€\ßÀÜ\D *$ú×#R:Ş[ XxiPÔüÔ,û‹µ•o=%–¸í[p²Uη=Ë_ħΑräŠFÉôŽz:êÌ0buü¤‚´žŬ³`+=µDgC÷•ò£•Ç/(TĴiSóìöçjĈó+v……y3Êáéî¨ÇŸÏ÷!;ĝ ;oMé3P~.£öJĤ :£’*P;(g3‰sĠPep·.á[ïùßovyĦﳞBċrC„vXŒż´CcDĈL—&+Ò'Í4eÙï”l/é½ÓĤ|qEËLèÊ_àĈb·} ĝÄ]Ù6vËDÚp8ĵG … ÑWßGç›ÙÔQ:9ݽçóxjkF’ì|ɽoçp'ŭePŸ'_½˜™z·ĥiĥ‚+ÇÉŝŽĈŒñz:ÁÒXğ͐l=ñ‘K|ĉGo‹x½™Œ…)ÜȋËO¤>Ğ„<Ò@Ô;/ħ³÷ĉiKŝâ|ƒE$ XĦšIÔşşC5VdH;ñQĉšÀ”#‘ïQdµ†Ûw]À1JÖpÀêÚuAI*ĵ&vgÄt<ŭìŜ†Úùò ˙lÑ%kÌSyÛñKĵ9}”~‰“Pœ <ßDf5šuiħ²’žĦıöŠĜzXçKŻ@p\KV: QîüĊÙhü™Xĵ1#+èè=²KÚ~ô¤zh\ŠŞé°â÷NfÖCšè‚ˆJau.lj˜‘[ ­ó-û(†“zŝ³ W;­müàŻ‹/Dˆ2ÑrÈĝ=AĝnΌ‡/:726[CUhR™"W=͞5Rr/´ìÎŻ)³a¸îŠWHïcZb˘ŽóíĴ… ML+JĥâY™î÷ß;nĈaµÌċÛw§o7q91ö'R†àıŒ0ıy9p)?0Ñz)Ûfŭ8}H-ĉܖġÂ@•]…Ŝ öàq{pEP&¤…Ĥ‘œ9eއV­( Ċ,BLâi³÷.Ĵ=ċĵBëPìó֒¸jêòµG˙ŽLBÚÜsU8‹sŠ„ûÉB2ŞOĝSş*6XÍR:' Ú Ôús÷¸‡ĥyQÖAd˘âSd*ö’Ĵ8šÚïísy-RlÇß;‚ùé5üšGéÉfeínÖW5€b$y ]›p’‚˜zşşŝŽğ%ħ›"xP ×İfgŬ³ÙCnż÷=Êb9Ò^ĴĈO2÷zWˆŸYßë_ħDĊ]h—x¤Dçmĉ‡żĵSÌig)Àf‚-~]ğs•kg_ÀÒr|ŸAVA˘yj§˙͵WŠìB&hè ù"·v·Ġ2NÁünÈ͙H…¨T׃¨žb˜‘,*nğr¤”+½%êĜ›H;u8z*,Ş-x˙‘S|6ûÂR×€{°ÉLoÇéŜ3ë†ĉ]ĤŭžPÄq×™§÷]]¸aö%˙ÉÀIşTŬÍQ’GÌ˘×ŞĤ²BÁ²¨ĈDîĉE+™ësè\ßŜĠŞġ‘Ÿò0]§=Œ´öy'd23°0 ßFĤƒ+àĤe-÷ÏċúÓÚ3™9g¤9·Š×ièö? â,Z“‰5·(ò WÇ3óG7 ŞÔ˙†÷k6tÏ ]’?ĦÙÑ?yäÏL& òŠ „ùE]›³‹ċkÉd:ˆĞ"#I—*šé ƒßĈ éÓ[ÏmyÇkê\ù‰;uŜj8C)$›Ih"é=Ÿ×?•ħYXjÔè´Rħ[êÚ\}{D£Àû{<Ĉ2ŜÈ7ƒ°á¸ġİ6}”J˘ÓšF@%Ĵ6]d%ğri%qjÍ3ƒ›^lÂqôöuË56ô B›@›ûÛF8° ĠAҀ/R9„''šĤ3Ċü³ĵÜ<Ħq­Z aàħëMGôúƒ,ĤÄùÒDn!t8ċ¸63†M‰g7Ž+#ÌĠ!òààġŠAlŭèĉnŝ}Áĵoğ˙)'–w vÁC&Şk˙ë`oZŸÚŜ“f'† bż: öZ(‡Š.—Í}uÀ,‚ǐUÌİt×éĦˆ%›%ÖDa$˜œñâS E臰xA§“liZÄ]THsžŞ ĝÎ7`m’ƒ@—‰ç Ĉ1oñŠ zcğxı–n;·ŜŜaÏ KšP‡œ÷ÍîQÛB‰>’he‹üOLŬ<ñ8$ĤĠáÙïëémG5ĥ“UjEtg˜!¸Ŭö,vRv•‘v6£€[úI…y‡Ż0*ž29ïğl .ùħ“Ħ]‡)wĵSO Ô°ĥm]“Ò|‘Ë#·‹k-Ŭ?é)G2³—ŽÛŽÔSú÷ĉH‘´S>ñbtPÌIÜs¸Kħ/ËDĝÌìeݞİòˆœƒ´ä@1Q˜‡#ŠòhèG1aÎRù6ŬΎ„”‡0Mñ‡]Ŭ{HĠ~vúž<Ô|˜Ħòv²}L$ĴuG™ÌûaTÏ2Wĉĥu‚Éi&r1h*%q´H”‚w$Ŭ0`ôŻħ•*2à‘_mmĦNàhyÎÜfĵvM°˜á6éÇ^‡Ş³{Â!ŒÓÚı˘çs²ZöuÉ>öûWœ÷œˆw7U˘ĝ0ħnJԐv6Ââ fÊɉ'—Ù°`żœÄŸ6áÁi-¤ĝçŠA QhÒ(Ĝĝ ÀáKîC—+Â&ílñ§Ià&òéĤä` ñFoŸ]!b£”|à0"é×NÒìĠr[ô9VÈâŽKÓiİ·[ •îgUŭġ 5ÊZŽYÊ|:BPĝ4Vd˜ĝĦ§Ż<ĦŒ*).ÓC½ġŜÒÖµÓDĴ†Ŝ#M{ï Ħ~Dg,˜89ùĥ̈UÈ@W†Û-w3ßù3¤ñH5û葸\c ;›EŝÚJ!ŝ¨4P]†èÒ_Ëß+ÄıÌb^uĉJ³ıĉ?@ƒ„tGKĵÔGŬÚC‡ĥoŭë¤ċ HÏZKşìò94rWŬK´˙£2ŞqToߋy/—˙?’ğCônÙìĤPqx€ġ€Se‚ù&ı½nepYÖ ħšh(ġŞšD"ÁòiÖÎNT˘¸ĴlñXµ&¤”Ĝ¸QJŽf—H=á-!îT;,Q>tnĦR²rŞ‹ ²ĥ™>>• ı1ÂËJĦ1dÚâVİo+wĥ`\™zÙ=ß U™êHyô7Ï@VÊz6Ñ ĈMR&ú‹i†è*蚎gèŞéà[~½'ò£=ÂĜĝÛÖ)ġEÖ¤¤ŭ€1{8j~ÑÂ.ÂW÷Hœ>›Ŭ(ûú!çaŝú$dÈĝ6òö“ö-Sˆbt]·ĴttĤŝixñŻZµÌöb²!È/™½BĠp Šx>“KüBUMĈŽÉbE%V„Êûàù‚,HÁ cˆÜëĠR¸²†ì•N(U½Se˜[rÔ³Ÿ&̲½Öƒ%jᢰ†ċ5İ÷ŞYĵĈğü\BUßİ—:Ĵğ`ޤÂoÄHElÇ÷îŠKÌż?ŠmĞĵ7ŭ@Ġ^ŽpŬcĴc%rb>)•‰ˆb‹D[arlo×k’ĥñli½C!nžäĞ.ÍÒWz–Ié^,#&Ÿ½?Q­Ÿkóš¸â>ÏóŜûôè“Ĥ£ö|%EżžsóĞ÷ ĦŝÀÌŭÂğĊ g¤ßğ*S°J”ğ/Ĉ/GĊè-œ´ĝÁ?U$rš²ÔHü w‘RáôGĠHfÀë@|%“ŬMşë ˘Mód9ŬûJDóCûlĝUӔü§ë~ï5ÑWÑ=Ĉ/}Ċ*3îĥˆN.y,ĠTÚòύü9Ù}ÈCÏl:&–Œ~qDb­n%şR‰6Ċƒ^ _ÏöထE³è?7Âî‘ÙÌIËÌtƒ`CU"ï$7c³wm²“¸Ês,1ÊÉéö‰Ö~İ+TĞúÁê ²›áµÄPs2ܰëÑÛğT,fAš”à3IKċé“ĤolVĤÎcŸ˜­v?ġ#Û>V{vZ“Şs˘;̤#/˙J$íCÂNĦċ@E Zŝ€ĴêÌòrâġˆÖ“{ҍy‹I]ZV’&3,NGD}²´›‘M„ñadWÛ1°iìߖêˆ4œÂMKê”<9ݵĦöİDÄZ™Ów_Ğ’eI-{;BYú³½Ï‹{K½™h@²ÌġŝÄ=)fIàĞ!+—pÓŭÂD^Œŭ „°ċRçq<zĞ‹€*ĝĥŸLÎX4TDψ°zN1YbĤÙħvôŽïž–N&sYïdUSc"ŸÄۍ߭]ĵZf{ĉñ Aƒ´#!o ea›dfÉhPÏ 2W<ĵŒŽwĝҝÔı^ĥ!èZ[ʁĥuHB/íîÙ ìòĞ·†~TéK/ş|VX:ϟVͧ8o%ñV·ûĤ}şRSo‘UƒöP‰t?x5Öĵĥx˜kŸD/˨żîqĴö”JXî­ĵfaëĈ8¸î³%)IĞ{€:·äÈ0½Ĥ ^CêVe9GÒŻ3 &ljÜ2ğ CŜ]Ĉû5žYšQ˜÷s~А”w>ËFE)`|í$„ħÍWCln`:RW"ŭ ÊX]Èı“<‘Û,¨:ÈdèÛgA"I•ímħÁàà›Ş>N–7†iÌÀˆ2/ŒM§>’p›',ĵ*­ċE µ&IŒ}ĝeÔ$ú[8§ġËsP…¨KPôuŽ˙ğç=I…Ù@OñJ´˘¨pŻÊ}iMĴĜ~ĞA;IŝZĴ[Ħe;—yMÌĉi[7ıcwÔR–7ßBÁ%ñ™3ë6òUŬ[Hħ[i ŽÎŽcD` Úù~^-GŸ°ëñŒĉĵŞ­~oÁ#Ȅúŝĵ]ĈíŜ`uÌpIµ'ÍşÂ@L/?÷$žé(Bëİ爽½³eġ1ĉ˘xú=Ä:7›à—4rĵ‚ zsQ’ô—¨íĜltˈAşQ‡xOùlBğPš´˜´›Û´İe`³Sŭé—ÖĜİBé˘.2N9IkU¨ŠzÌñ„eñ“1eK§ĝÏÉ!Ó ˜EB‹b_]ûMoP¨s& ‘uŞ{9?_ßÂħR?­x¨ßÙÀNŽ1'¨$żöñ•7’Òw*· Ï{K9ŻYÏĈğ.yޤ“w7MW“¤ŽH83g@O;ñB"DĞñ•Ş.ï‚0˘Ÿĵı·µ†üĴJl§UÄ;èÈÇnĈ"ÛżM@Yff­cŬ†zç6”ĝĝ7Nz‰Ä°úĴ°ù·IÀŭ öBŭ}߄!¤ÓìgAY½Žv´? Sĝž×3Gš~I‘YŒh£‚Y°&eµ—ûà‚oICfr.í;ĠD]âyI> ç;ĞOއ,û³LFÒĦ)}Ŭ9‰•$—ä†âŻ „âÁdè‚|'6¸Êp—ñMjħVċüXOàĴCS(4éšÇ{[¸ƒm{6ĊDf2“ŝûoßL‹ óÜY¤ħžNÓu´`KדĥñK­èw4ĤÇ^Ò(ˆâĝB´e½iِ!M,ÏBÎì,?ò `xğàşŸÍǞğ:c1c$Kŭ6O…3ž›—ËmûEıv^ B>l°ë˜+;7ƒóoïÊö“˜GR˜ħî uB[ym?nóSÀŻ2L˜@–%qŜĴ³%³¸0Ĥ> _ĥttğBĦó;MĜ¸Ú˘“ ŠcDMĦĈd£ûv*˙ĥwpPŞH[Žü*§ß]jîoF}Mp/.dy—LqòÄ2}O]KútèD.àŜĈ ¸[x÷ĵ¨,‘“·ŭĝRĴ A<“ÜĴ}ô×Íá)ˆŞÄMs%ä9@Á[xRJĴ1†ıFĊiHЉĵŝúNƒç(o¸.ß JËĦXrⓨË×6VĦBĈĥZtÂŬ™ìÜË1첄âaĦ(Ou@| Ó[´zğnx{}neüUŝ(2 rÏÁ1]:ètĠc#sÑkC}îˆsigÇA4ñtŠ“Né,a³ĦY\‹wġ@ Àäzö],Äx(-›Ñ䆸Š5Ê Dü?u[v7¨S] ;xÀpŬü(èĥJâ]?4ŝèßÌ,YÓcĥe‡ċwÑ-$ڒí7v×V¤žŝÓèqñ†¸{œġ]Çx‚–T×vĦí!*×ñŻPÀc°ş3äZG){n2ĉhMm~-²c:â^}½Ûr³ü)t¸· ]ù˜ov}¨7{:Û%ġ0ż§ê•†ıÚ !WÚ°Ï" CŜïÚïĝ&ċué,¤„ 4 ¸£Ê0äċς˙?m4Îr endstream endobj 236 0 obj << /Length1 1636 /Length2 8988 /Length3 0 /Length 10054 /Filter /FlateDecode >> stream xڍ·T›é. E‹[q VÜŬâîVB$ÁŬŬP´x)îZ(Z\‹Kq 8—ré̜™9ç˙׺we­ä{ĥï÷}ö^_èİ5´Ù¤,a`yԕ‹S £ŞĊ%àääaçääF£§×¸Úƒ˙£Ñ끝] 0¨ż dœÁ@×'™,ġÉN(ıÙ¸x\üÂ\œœnNNĦ˙œ…²@wˆ%@• ƒ‚]èe`Ž^Îk×§4˙y0‚˜\BBĴ¸¤ÀÎ PşÚ€ž2‚€ömvġúŻŒ˘6ŽÂì@v˜³µ8+Àâjğ€ŬÁ–€ß Ԁà?;cG£èĜ@\ŝ”kĴ\=€Î`À“ÀC]ž<Ü –`gÀSr€ĥ˘ @Ŭ ŭÓXċOVÀ_gàbçú;Ü_ŜżA 8A ˜ƒ#êZĴ ö`€şĵ ğЧ++µüm´w=ùŬ{ Ċ“Á•òRšàSƒµçr†8şş°ğ@ì·Èñ;ÌÓ)ËA-e``¨Ğ Úïúd!Î`Óħ{qüy³vP˜Ôç/`ZZŭnÂÒ͑C qr+Êŝeò$BûGf vqrr ñÀN°'Ȇwx/GJßâ§ü|aŽĞ§&À~+Óš  puvûùü[ñߍ‹ ` ı,ÀÖ(Ú?џÄ`Ğ?ñÓċ;C<ĈœOÜpŝŝüŭdúD/KÔŜëó?î—CF]M[N†ċώ˙ÖIK<>l<<6n>N€/@€Wà÷ßQ4€żŞàüÇUjŭYìÓ)ŭ§`÷żîŸñŻÙ`üw,5ĜiÁĈ8nÂÉÇ zúâúfú.˙˙ċ˙Ĉñ˙-HŜÍŜŝ5ú˙èħ÷úËà‰³nOüW…=MôMġÁÎĴ*ĜâĉżZEWàÓHA­í˙>Fˆ‹<ÄlİqÙüI–?ċşż‡ÌkÀ\ ż· €‹“ótO“²{Ú.OŒüC~œ˙N)Á,O7?èì ôB|"7À‡ëi-ÁžpÀÁ…ı>ıžÚóXÁœÑ~ß(żÀm~‹ŝ@<Ċ“Nġo$ĝ¤Óŝñ8t˙FBO–ÀżÑï>8,˙ıà 7ït°şĜü-{˘$‡—£ÍÓĤùÇëIùpĜ˙ 8ŝ\O˙ċû4`°Á§ŒÎ˙‚O‘]ŝù˙‚O½¸ŭ˙ë AnÎÎOĞĉQxş…˙à?öì Ħ-ÎÁ@"ĦĥuĦŸk¤È<ĜĥÇĊĤé·ġәĜ|ÛŬnħPŜ2Uż ^s”z;ԃ³ĵ%Çx!ıDġà³˙ħ%˘5Y³íÎ÷ŝu’ÖävÚÂÂŝ‰÷ûRġ}ÏÉÙt$w|œ|ġ‚ì>Âw*Ñç9ı bià_{ôòĴï+û:>·­ıSÍŻŒ~_6Ċ§kTpHùD^‹_‡k…Ŝ¤öĵÜҟŬğà Ú½döÜ´™ú´ĈÑHĦè‘êˆ9üF4GVpîĐGh×=s`²êA‘’ŭ>ìöe%R·ÎTUŝsëŭÚŜ@Ğ~GlÈ)ĞNŭ,•ĊŞù*û°Ž2˙-.£ċ-ı˘–œ¤(SÙÜ}á/ÖPò.íĜäĞÀ–\kàĝ’ÖM²è‰ĞÀlĤòézlҊž×Rp(ĝ}žĠr v9냳݆£ïYQ.ßEĴkĞ?½ë?Zò”ÓNÈH9ïò+ ³N”´ú¨]ÀÊÚ~ |d5ìyÇ Ğ ‚£˙dÖ=N§¸éW;˜§[ĊAPìÓġŽġwÊvƒ—0—‰˜˙ ³h1ïRSŞJ„•YûŸI&ŭèEÉI>ÑŻ݆£o°ĊÜÙć0…îñü%[Pb@8ĤcĤJ¤kÄ#ñí bÏyÑòN< 'ó” ˜Ċ™Ü„jŬÀ 9KЈ˜èâìYÙUT|œ 6/³·š­)[äĜT‰Ż°äÖ1„Ûw³Ñ|I…ğ̖_\È{żVôÈ^° ”ĵÛY ¨ĵ§MKŻ–o7 WĴ™8ï#ğáǝŒwñ žHQ ĈSgRž˘yV›ï.{QĠ·!ÎdUœ 5ġ³œLˆ’^Ş'…üj‡ĉò¤Ìá+ĜŠ¤Äşş‘Kİ…jû½ĝPZ@lö ÏG0 H?QñZıĉġ"*İPVäé–Y\o$‘¸]Aĵn½ŻĜùû|Ĝ넁7oïcj”…vĴÍá܀öàуDsr \î"÷²Íê#Zí ³µhĠšl›0ÏK+§÷3%N¤Â}íùK›a‘Û+÷˜àdŝeL/t‰{Ûġ“-Rà™fħöÜáa)ŭĝħR­ÌÌç•3E?•„(mŽÊ[ċ̵Ŭä^F•^Š£”½Ê˜4ü\öâ "Î\û4[½‰ÈÖİ:°âĞçp·š@ÀçŻzéž?°WZRĉ‚WÔ°kmavˆR‘M­TS‰Ħ Ñ-N?Ĵé|ò€ê “ àâŜ·?=x&uò6t7¸_á#NŒ *~§Rwş0 yğXıl†~-‚5™iOú.C ˆ˙5·Ş˜>ÑKċ:ß/ó lmc‹eGâpï´ja‚¸ÏO ÔĥŽH,ߚ;Ù[Eks:H5÷Ñ8{Î#µÄ>+~á+3ŝ¨ëpÀŭ­äÊ=–&ÉĜ -:üG†˘ğfr[Ywö.ĤOÉb&ÖïŜW¤4Ÿz14â=obĈˆ”0î°î¤˙’ü5†&ê °äm?ŝµÒ[?}\ĝÎÔ~,‡ĵ&Öç…ĉ gô¨N²^5úY\ùš6GÜÍ/QhYÈf£TH3/çi‡˙@EĴ5#5œ`rDÑéY3/(óċÁĠużĈnâ—ÔÖfN¨é‘ÇĜg| 8¤Ĝp´olGĝ½q’§8Ù̅ KÖ]à}{›.%!v˙ŞĦ!‚|¸L”vó Ŭ‹}ğûΌİ^á,)rË:W1BPpÁ"ŭe~’c$ž§#šċ,d&Mĵ0sŸzç%RIrspO·Zĥ&™Ŭzù^¸A.j }ëĦ—DözÉÈb‡jÙ=‰;Û֒Yµ"¸hŠ !¨9MB˘A#Îü•1Mö˜Œ]W@~ r™+Òc£ĉTڛ)ĤUòŸ]V7-癠QÙ!Ċ6DiÔé‚+c™¤+[ĉoYÍ£*ŭ9‡ÏJD1bzŞë›q..]‚s¨-âħ,ö‰ÎöqU÷ˆÓëWà7Y¤ÏùöqÈĥĉùĤ„Xž:Mh£mWö÷ŬˆFâKÂaF51Ĉ1xw>pħ\ÓçÀ†BÜ4 ŝ|{oUé|ğoxî6S½ÄÖÎÛògïŬ’ċԐ[£†Ĵ7à‰`[Ċŝĝi0ɽYĊá$Ôd×°^w&c´ô¨e–…—Ëĥ~nvchcFqžĞ½+™D–‘hü¸ĉÄ(GÓh)/*ÚŻš´ħ{áû ]@ÇmĜÊBż$Ú´UüĜ]|ĝ5úS£…=exĉŞzċ•L^/Ħ}aŠ€ĉGV{NU½ˆ{´(J"\ĈùĈ‡ô[—#êxŒÍM•Ÿ£H–ó²9&HËo<ż>#E Ajä5ÄĞÂa¤Áeï3N}ġ¤hŸï+Â˙d=ŸVÑZçĝPf›ÄÒxz;‡îĝ9+ÁsmÓ³\;ÎÁ{Üö°dëeë,ŽMc#,WÜĞıÁÔè‚ ‚ËşŽÓTЁ=f"Úóĵv!¨ñ^Ó7 #@H%mè~G*>·YräRÉŭ‚p/ÛU?E÷zÖócĵĥ7G˙7:4ı¸²h ,ûWpŭû×iŝ›6q41ßßÔuêU)‡ÏêêŠ\”is=ßúXMâŝ}}¸™7…Ş‘ĈM™jĈıÈÄ·P,0?ΗĦ,ĜşÎÏNĊ#ÛÓüYĈÇPB8~’ èi ÊÎÔËäY†ĤOÛĠŒ˘Z›ŸÛş”Û|#£WQ×tMD%Ñ2DżL˙ ml@$Ï~żîFnĴÁk˘•˘J[HïżIû£/ġÙúÉapĦtég#ÒÖĝL³ó.ctó5ôRÒ%ìxK :„R‡²¤˙ÍZÓ F˙òk“…pšá‚„8ĥN°:âCÓÚÌ<ôĝckÍa•„òbÙ& Éâ>£ÓN{Ÿ=뛷"Ü#‡Xj›Ùğé½9V*ċ^9ù Tĉ¸w­‹uOJ? y½Ĝ•VŠѧÜuœşŸo¸˘çÁ•U!Ó~ı)6ùE—‡ñC·ŠZĵ ‚5tDNC†pEÍ}-û½½Ğĵ´0ħ|‚¤}´xWÙ/ò,á'K¨çUġ­ĠÛÄ/g+Ħ@Ŭĝ[™üÜìG}ĤŜ&Q‰À’Ŭ•>…ñ€pU’7şĴ &Îo‘,ı}²/ú£ÖÎIò3ŭ_ĴWgœ‰AĈ†ĥ=eÍœ4=ĴJSÛċËĥܔÑ2*ĊI2 ĝ}é;’Ĥ¤6ż?e:,ì°z Rç€9|pú‰mĠPŝŝ‘S4í°tTÙôì5OètTLVġ8–×vŒUż6-Ödóó@mCáĜBÈŝ{Û ½¸>Ê|Ĉş³Û{ù*–=;áû16Ì–”î<ìgҗĉ"u‘YÍ×ĉ%îbd@njo—ĊrèġZ50ibkž4ÁaL˘˙-šŞv¨ÔÑUŒ<ħ ûġJìK.D8muô²´ríùŻŝÍES˘‡ùáa¤W‚ÛY§”Í}ä{ĠBü²Í% œñÌ*3ĴéFŒÏĥVg_ÀІtĊí \G*´S¸‚ĉ,ûݲ:ĥËé¨ħœìİáïÁžùwD ¤ĴH•=ÄÑLï›÷r5ġƒK:8êwÜ3²oÍÁÌÇ]îy_™Ì5\OùuOV†×r }ĈΝ½uÀöġu(_­ğı°ħ<—\-ğşş4Ï ëÈàŒÌK+Ž / MÚoòÉĜŠ‘ú„Ĵí _ż“hÊGóà,ç¸I{ËHdsš˙W§Ë^GÉ İU(£B)Ê?í–W:òÔi°”%Ŭˊdp‰9ĝ?§Ú‰ZóĊħĞ“`°F[—Û)ú…ÒŠ×Ĝ^ġ›AkĈÁT0{éÑ=ĝılZ*:Jl“%;x6*¨ _%èÔ=v{ŠMçĝ ŬĤµß­0™örİ;#ù&¤Ç^uf5ÂtQ!‘î£}ż“lÍV zŽ 8kż˙Xaœ,ñ,U³£ò{˘´*fpTƒn+L³ĉ™| ʨ:Êáñcg·6֛é÷'uژ>AĤm)cxĉBƒMRçT*’dċ´ìĦ¨À½Ö‚w êbĝNÄüβyú4OÁ$ÂìtJǟ÷oTi´•ˆÏRôkÒßIÒN.$ŭ2 óÖ *CE ÏŬî7mjġˆ·@´$\°öh}êöĜôóXh[䰑ŻŒç)ÌfÇ"§èïEµL‹­¨$]”&:Çdz/;İ:y‹ŝJvËż‘›qğPœ¤\˜[zAŝ í8üpüM9zxáHhÏ{ĉ›s•QׯSê„_ ñà3w¸½JtyQW‚FYN}\ÂĵVFĴ!´Úħcż7F“sŝ.o.Úí­İPxı'/ğžj^ĞFµ Ǟ(ӕŝlùÒ(üıĝ[3ċççë½Ú9Êx˘(`”ŠĞÒ›jó=޽âú1šî8ŸŠ§ġoiC‚ ^ADzFlµŽgÈm^í¨Ê›ÀĠœaìÓĈÎŞ?F G?éHu9~Œn€Îd‚Ù£şOm§żÇF·v­yíálŬɵ3>(É§ĵĉğbħכ™)ô¸ŭŞÍìh`¤>l)@ç]DÂ+ï#¤H[•G\Bdr\+äÌÔ a÷:½O^’‹¨ù4Ovù*s\— Ïş(ÎWßÏaädzVUĈ”}gâü%bçÚË.àĝzàìerÙÌi³6V,ooĵ6êDËĊàŠ˜Y­ϘSu<ÙÈRžšĜġ…oğI••ÇZBş)ËEĊäœOò¨Ô·çŞoħYGˆHôSĤğhháÔGP/‰ °ƒ>„ż¨mĤ,ú˜rÁ8+폞ҠX³~ ĤŜòH‚œ ³&Ĉ€škvşSŬ”Ö–bIF <#İĴVȌk8İîċ á­Ë0:ï½kv=ŒŬGE ÒjM­¸*i,)‰£Ġ*%Ċç< •sR!"cÉÏu×:0K>sœ×Šûéö"u8‰^G™FPr„¨²Ĝ¤ßiíÎaµœÂ-§ĦÁ`§:bß lÈÖİCÖOíϖÈ\ƒÊ†$Ž 7$Ĥި üvÀiïù£XF<„m!Ÿg$>°gaĊ|É;nv¤8N‰FÍktCt‹Bĝ=™ĜğMA~ç^EÖ­ġîÒÁKžġ‘SŜ8[Ó³Éӛ–²²WÚ9Ö%]: ·°Ĝ;;ß°éi7}ÄW“UUż³ÚbµqĈR}Ġ: ç_ % LĥżT)S§dZ̈ĈóîÎğ=u’2†"ħıË ˘GˆAb+‹.D ÌĴSd˜[ô_‘›ŠtH7Ö*^sĝıù"¢ÇÚgd|o$şqÈû(6Ѱ qÏBÀïÂl"kš*ä°ġl&?XïŞsËßǓâ“Pİİ!£´šf Ñ4<~ĠeR›œ\ ˆ‘£(ġÌȇcö­i´f’F(èħÛԍGQŞċ·Ä–F?—U˜É˘ê;H°sš}Bƒk*@·d³³=*òTİVTÖĥd,ï ‚›*íġ)^Q¸ –x)Í ;´!³MYµċ²'—R8—XÜe—":>2ÓA2c°1ħĴ*ˆƒŻĦ 7.iL$`3'/ĝ  ?‚/ŽÑҟĞ;Ċ­ħl"ùUĞ/|¤%^{–—˘íU ÒĜp˘ë‚ ]xEE—,>û2z1ġúM[ÔL:$ĝg!ëjÈX%Ù/]áµ-4úYâäċÄ×#Žbv8ġ6t×häĵ^JıËrJ§)<33Ï/éL˘ğĴ˜ çgŽúŞY5xjKe§}-kw|ïííĊħq.àsŻˆWmÑÛµ1-íKöê¨˙£ Œ‰!Fـ`oWA·Ò…}"ó“ôHsgĴ?}NBMq§5XöÎܛ/Is m7\”ÚŜÓ½~Šŭ£|½œ5%ÓµO7yz)ù£aG:›‡fĊŝĉR•Hdy^VçúX땏Ò7Ü`] tsĦÒ³-?{ï³ËĈï›ñ^žkŠ}°ŝ|–ˆ/£fTġ‚5jWös˙ ~ÓĉWáıŽOÑĜgdKê–ÜéTßġarÉùŜvL„ıâp×XġŞ,üşħïˊ™QȘ”‚)Äò ß# …L*J1 8VÎÚÊmĠÑvÜ?`19bLÊÔ҃fò@_‚­­Ò#ˆ<݃Òüó5 ‰Ĉ5‘SLĵVĥˍBp(GĥĴ'İ PİŻÙ÷(êeaP,yšm"Ê1ADo:w¤0ŽÄà eĤçŽrñ6Í܋ċûmGáSá×{#Hô‰8oVüAi"e÷˘ĴÍcÁĝ_é*֋KS­sGh3÷bZ<âÍtİ%Ëdßr-Üġ˜ E?½hfNTûm3ÈıÂ"×}ö*4Ï} ŬF#iXşx–p§ŭ}–{şĤÌYq×àtÚ?şi°ñ/îÓ; ½sß_Éñ‚#Ù £z‰?0³bĞçOQ•C9/‹ˆ'ĥçŜbf%~”ş [›ô#*†½Ôú$ÂĜóë,ùDĥ|ÖEjğZâ21‡J:ŞÜ‘Y­dĥ b²5£„ÍnhĊfùç^!d’ĉ ·QÙj•e_ħˆµüĴ 5&ŻĴIzi´Û1s°Ċ‘)Uĥ*ëu\†äauñúûç÷Tûù&ó­ċEÉ­•݉F+Zâj6˜ŬÀ´ú“+"ŠkĜJ[ÎÁğ…ĞL•Œ;G‹ÀKÈÎOĉ/ Ĥ8í=î¤ Ä,JGïĜôAê”0Ɇ\ƒ—ĥÎı_Öx÷ï^ħŜŬŝ@ ħñ$fZ$=ö5­M›çĊ`i‡MÖŻŭ×ïó÷^–àKğlˉÇúîĦo‚ÙlP%¨?$Ä,0ğ3aŽ04ŻéÓM (ĝa62²`¤p m t9tÇQœÔVäÛÈíÂZ.7äŜzHġoÉiċŞpwR“ş%ÏĜš5ħÊR‚Û[;%Àż¤›‚ckÍı}x:!Ì/Rd~ ÄŜzCLĽ0‘‚Pêêq·feӏí;,Ö7Óı°°,RXÎĜúm÷ĥ6QÜcß9üÒi VÍŜÜhsÓ5K"²äxÀ' Ĉğ0Bvĥ„‚ />Ĉ0WüŭWğzփ¨ËN™r½óâŭö }∀~*T.wĊ–ÉCôıÙöô Ó’ĵKäK;ó£ıcLµóI–öZϚˆ†DƒXžóC焔ô£EŬ¸ŬˆÒfó0„½.½ïŽ#(ĉÓÚÑÍâ$îŒvûUöÍż†óċÈ3eèwC^këżĈLmÒÌ(iFûŒġ‚#J9>éV'Ħ:ïĥŒk&ê^xċ<Ĉȗ—Él쑊.›9ĉ2îğĞÑİ´SšL·Ñµ‚=WhÏÙ:ÛÊıÀ Ħ/ĥÁuÎ;Öâp1$Ò5†´­‚ĠŠdAY×ñĊ(÷\MaĞq½ÊĦ+;›zI6âc‘7ÉT˘ÄŻ-FĊe ßTù|ˆ51Ä#BŜ~Hŝ2Î;ϏîSşZ[*ù•Ä|œ £ &·ž¨"[êìüû3ÉTŬ¤H9ĵĠàÏ?Ü€A?ôwZßÓ'Úğ/üĝŽLŻW%iÛV\ˆ'1¤ÈT}ˆTöC‹j¤ÈÈq/¨eu~_Ġ—ÉË9Ĥ\1Âû¸Œ)öPÜôıëTRá\:|ŝĴğd_Sĉç!äjĞ;>g pí0jĉĈÔŝôéR1ah\óhé­(9^şÍ î””`żĥJok#Ù*) ßïW94dŭñTñ;ÉÖ[ż7ĤŬrJšÔë ™Ab Š[ÀË ’!ŸĞ³Eġïù.¸ÎCœ.J“_,ÌWì`kDÜ"4ür]@°œ!9ÉrŸ ù.ƒVrçC£;¸ÓeŸşÈ£ZG½Ji%€6‘_Ĝ"ĴÔVĵ$ÊZî ġíl@9ĜkÎUÄ÷ö0JG~tlÊh!Oĵ£KßÔÈ ĝĥ‡½ŝÌ4o°MŜvž-C´qqd9!Ĵ;™Ŭú’ÖÛ^TöùRÑÉyœuքÖD|…âœt°ğìä‚ óéÏñÈqjNĴ€ĝÜk‘ûÏwŽë°TÔéÖ_€˘Š„ ŠAĉoqíô—ëvAZ½z„Â`Éj„÷x}ƒµ²ĠôĜ71)Ën#ħ7ıRĊh·ä˘5ó°µ”òy›ŜğHUníPf×h˜\Ç)‰Ş8ĉü*ĴÚ9ÜĴiŠĉ{~÷’ák6 ú;qŽYħ-ztşèˆ%x(Şg²šM—‚5ÛÓí|W¸ŭ§µ[Ŝԏ.n}Ȥlûí*ƒÇ—>?Ş€¨êWcl:{FG§‡àĉèĴwJ’ˆì¤’Ž[߁/äˆí?36 ĝ•ÁóNòêhk‰Š£Ì›ħתLéòüs*¸ÒÌÁ›Bg…_Ë8Şyžñ_)6'mŒÊ^É/ŝPr-ËÇĝ0NCvK/7òú~Œt endstream endobj 238 0 obj << /Length1 1373 /Length2 6090 /Length3 0 /Length 7029 /Filter /FlateDecode >> stream xڍvTlû7%1:¤‘I(½énI İ1 Ĝcäh”$$Q¤A@¤$$”.%E@RŝÓçyß÷˙ĵßwÎ÷³ŬW_×}ŭ~÷˙uc3QUg´\ ÂŠBÄÀò@uCS ,!‹ĝùÍXOĝ_Z˙8ĈFÉ˙/ğ:ĊâuP,Ŝ͍êùz!@ˆ´İÍ.X(Ä+<08Êà‹r†c€ĝÚ@3]àm/8ê/gƒżD€_ "ùwşż£'B ŝCa04Ò Š D \.O8ĥ–6+„˘œ;B=}ĝx¨á uÂ;üi ÔR5Bñóŭ= ƒÂúˆù <Oúɚ(gu4 Ga}żûÓ@`à0ü­‚ŝĴĠ…öGáŝ:ğ PÎ.żGpöġY Ŝp]ż=*Àtp,P Ëȁpo <ĉúÜ< ŝÇù­Ĉ÷‚óB{]#ÀC.püçġƒħ_xîŝ)  3†:Á](À²Ġp—żdüĉ1ˆà]0x ĝ÷çß';<ĥœÑ(ÏÀ˙¸˙Y.HËZ[ÓĜBĝÏÀ˙6İİĦ€8Qq ¨¸ˆ‹e‡f1†"ŝîüŸX]” (÷W³ĝ[úW~o_àob˙™ËG,(€Û‚À0üä˙ĉBŝoèŝċ˙˙îGË×ÓóUà·ù˙°B‘ÏÀżíxĵúbñĜ7D€úoWKĝ_t5„;#|‘˙mĠĊBñPEızŝû>Zˆ¸³1 sû *é-~́‚£}ż ( ŝ/žU0ü£áƒÇOš–ÔDÁÎżÙ%.% „b0@~ĊxI ˆƒàiè ĝƒ` H …ĈâC€ĝñB€.h à÷>%ċ€ ü³ô[ùGĈ×aŭÑä‚ùb0xšŭ‹É8 ‡Àa€éI4ìÖ=÷×÷ŜWĞrĝ‹)ŽñŻZf ŠâĤ1-§4dé‚/s"ç1GŞéŭtŸ—5Uf¸/p›oÈbšRMšÏ‚ÏRLGW›S#ÌmŞÖôpQpŠšĞĴ_x߉ n$lÓÏ÷ö•1.d<öïÖ¨éݘŭ=ıj²öRZŸòĵâ£h˘E‚mDé8ÓÓ VRĴ(ı^íĝáÑCŜ%·^Š0 d+Q˘g³ žt2ôċıı¸O;› +ñ!‡Ñ8µ =–O¸²âı˘q[ߒ8‰ÏívÚĦ“K2 ˆÙWÊ}Ä××\nµQ6  D´cĞf2ž­]ˆT†UyI­­ŸƒóúÂèvp“\ uŻyÚΟɨży|uI:.\÷:ğ˘âáÍ4î=̃?nníĥŒŞëÑ jnj-7Ħ=. ä5Ħā\žëˆòŽ<€~¸£UOÑ9…sވž}eí}6‘½ağHûB@: ûG!ŠŭZáX·ò1"÷Ûŝ-Ÿ½·ˆ(öŬq;ÑĉE}ZèàĦ5e† rz-i,˜l%mĠ²ÇŬš²“r1ÁŝêµSBÖ îsÜZmB‹8½×ß$)¨UrÂè×ŝèI¸1ĠĠ2ĉİäv/„GJƒ£ûîÄŜŠc{vm‡f… š|ç[­ċğš‘˃ŽÙö†(~ó„)ÒĤ’PŬŻt/¨û}5œ™˘§$’Lȏ2ĠĜlÌ\}%İ6rË:JšçGN~ċ%@Ĥ8>.X-z¤Ë°Œéf7*ñsœo„Œ…ĤnΚ?,½Ê§Ë?té½ÈX—·FԐ!uxN€ÇMg@ϖÊÜÛñÙF›y=i·ŬK3ŠnŞ3ĠóCHċéÚx“ÑN“~MsL`xĞí÷mÁ6agA8µÊ!ÌĝZ‡½…@qŝ¸Î˙í‹ö“›¸.ȧvç!@+LkşFĠm›ä2Í~ħáäϊ›İüöe- ñ;í ,‚ ­ìOż}ìé]˜ßÛFî6ħı4ħ‘]aà4M³:ÎĊĠ› @„G+&ŒIŜsFRéOr!_qż*ÎÙ;Ÿ˘ĥ˙Ú0é§Zó€ÖĝÀ]áÇıµmUŻ JÔ˙òMŜ3²Ó €ġΊĥMİQ’¨´ƒŬëŝcö_SİN˜Ĥş‹§üÒˆF%ED‹"áßߎ5‘+ƒL–·2•“4jĵáŜôO+9ÉkD òËÈ4·w€|‡Ÿ³™“ …$oв"­Ç…Á8a#ħӋÚáĜĜ›Šùġ½şzgœ]ğ1ê<>^¨Èê|ñHNâTQó|Ĉ½j“HòpÜĈè½8€àċĦ~¨D“ò/Âĉg;ĵoò£Iä*ĜoŜ¨^|bHC)òÙéËĦµ“3Ġ+~_öĵ: )ŬIŞpÇ^ߓ˜{(èÎÀŸUÏx4‹eiµéŽ ÖzVşëğ[ĠbŬ[hÖßĈw™e9&ÛÚÓ²_>9.ĥËċƒöXŬ4VwO›Ñ&S… äĴùĜœÎ*ê> ¤gíÒĉ}ÚäÔYsŭärNÛ%ĴXA¸{]ĝc—*ñġċc‹ôYJĊğ4Ú_ìŠú¤ä^?İ Ax•BÈÎòCyŜ·g{(èìrGáé¸Bót‡ĜY—!Nv‡Ħ½”éíV˘ìğ˜ċ¸WCéÇJ+•´Ü’7ȵ{”1ĊĥÁÒÙe4û áŝ%Ĵ)Ÿğ²Ô„1jɰġÙÜ|‰û~€ì̅ëožËƒql€k]…#Ş×ÈfŬCpŜ–öjċ7Ÿ~¸`dµ.&èsC'-ğM7š-*ĝ2œÌtS]meÚôpW×Ç>D¤ Ŝ,OĵWœni˜ÉïÍÜLĊĠúĵTÜ@ÚFFDĤ·ùÒ{ÚkğġqO‘Şœm.pf&ûP4ŸJ_Mĉ|Eâtjq“AèyŬM⊒éUċ•ĠMT›j~#.'·ú1·HócH,.[ó(vKlÒ4i$ÉÖä1ż&ÀDàϘŬè)6<ĦĞ n˛][´Ġ$ˆgĞÁ.7ˆŜ̓?>ôşĜÄn~Ħ`ŸGoÓ*qż ™/ë͎Ú;*w5WŠeì`Gué³X5ÇZv(ì"]zN×ï|ĞšH­œs—ıu€ö·˙8äĊñnm³Ĵ•rˆFœ^ÉŻs:ŬΜ½û]~GçĊ[²qU+˘ÍÍĉ´îËҟy µŜl]5j•k“ï…ÜŸ5ÑğÑLê&ܤâğÒŞ2#‹ygòWxyĠÂAÔĥ._W}ġ`×2[hôóV÷ž¸%úĜ!‰Ò¤¨ĥׅx0;Çġm ·lew|CwVïÊs kЇËĵÖĉ1˘ŒŒħ‡mĈĜd!Ù2Uħ*fÁ[GyÈYaĊêŠ;ŬŒ:¤–ùĈ# ûÁgDù^ÈÇ`žĉâV g™ġşO­l}wïXċîĤ‹•`[^j½o ÁLÔ6Z‡ĉ½au™İm™àżÚuÄ}x_ÛpÁ$t\1Éx`WcĜ“`ċÀ€ŜÜĞ×ú—Ŝò[ĴlÎäİüÎ<{ê×ċ²yù‰SàPen~ŬĈ€­”ĵœ•Ċ(=žÈ4{Ŝ•×n—ÈÒğ6g×ĤĦ,eı9üIÇjl,_ĝéĈn Onùĉkw^áŜŜ>ÛǓ¸ÔÁ´°ÀôġŠtğ‘ÚÛÇ%ì³ŝšG^äwÎ~œ_ŸëÚÙ8?_Ï×Ö˘[לïèñİTï>¸Ö͒@)ô­Œ½5;ù‚ŽžJ?vĝú~á ¸jcSâ˜Ĝۏ$SLĞʁËJ5£@+ä联Z =]H‚Òĝ˜xítï5’ÒÒ0ïê¨˘ž\àŭ_ŬŝŝÏÜ|J>kdsۇE¤WÀĠÖ*e'M}eR§ċtġ8Ŭ–¤)"%ĈWÖ#_£GÔß|يâVWlW;QŜ)zÛÁcK_ èpuè ­;ûé-Ĥ DĦ? gšKßB([Ċ;}Œúr‚ŭ Ïm˙EÌJ4>sYo0 Ŭĵ‘jàl3r mù#›^lS²4)Jl§ÙžP¨x„Іy@c:x×FıfûžÌ½$KÈá *!j eȀğŬIÜe^+qzŝÒo”¸3i°ç);\îbGƒ?ôӓ âoÂ*âëıç(>sÎÇä?@²2™‘*1uˆ>M˜â NI˘ş6´t×Bĵ:Sĝ ŬñPĞ˘‚Bğqî½ïı3ùEKxÀ_‚ñK^ĉŠ İ-/WCÉIĦ\ħOäwĞ8ž×ĵNK´ŝĸ\A´V¸Ñ ‚Ewò›ÙïòMâÇS°Gœ'âŸÌgPĦ;bەQÀ{méÁ=×÷Xç“~y ĵşDP˲BıçœÖ'ŠXÜéêìVKîƒŬZ&Ó=ß½'ö[vodÄy£_´Ċì=È0­Ö›i27KUßΝÙµx/݌~áMUCgiKûëŭĠïĞÜyŜñD%,,Ĉóïħ ‡WŬ—k;{MEü^Ê< Ġt"ˆìYk²‘bRd?TêÊ>É${ĵ×3™t\Ä{µÙ͌ÁTµfKIĵ{Ž4Šüö„²'-÷œí¨Ĉ·ÛÑ1‡‡Ä’!ܳ½ıĵċTĊŽFmħ§`£J²HşfġĠçÓj KŠ•›ú·i  ShËġíë1İŽz/>ħɉĊôš ”BÈÜÉJ{˘2 j~:žşœ 3‡WD²˜ ĴmŽ×{ċîŻ1Ì ‘ÛëÓ··”1¸$¨ŭĜĉĦ³!‹é cÙR%0÷’:ßŻü:ş|‘Şċ^4ĵËĠX˙Ñéû•:ß Šş³;ÎhóF‡JMèÒhà(ƒúf„Ó7šşĦ‡ÉĴ‚ĵżàE_È6„ 鐤=!¤—×Bâ(„Ùĵİ‡é ‚ınERĠ 9òñ›“êN6 2ı’_q¨|=•Ĉ9ŸÑÄġÔèĊÁİkô^Lu‰ëĥÛíÜ#n­„ƒ™f&â/WÑÔ6³†­$~êŻ Ì£Ñ#Ì˘–¸{—‹ċuŠ=“ŝGb# >=Ĥ‹˘\ħö‘êı/. ‚’~ÎeÜÉsmZ¤ ә[{w·÷Z§ ~íÇ ·˘p[ĴĦ<7?§as›ƒĴ:‹YßgA‹Ôh'ß {!‡¤“·YÛ/Ìğ|,È6nFd·ÈjêxߨjKĞ)×q÷ô‚.áöיn”ŸÇ9”o gÒLĞĥvè”t옇Ñîéşµj÷#›ÒĞĵ€3^Œ4×ċêħ"rĜli ÙÔ£Œ‰ç…3îŝˀókbôgӃRk”°‹…ÈÁ™-ρu_‹2–)KÔ3 &ċCÉ)!’1ôJ6µ6΁~ۅef‹R%à|Ä*\-ĵĠĵJĠ— é#^8ÚUVWŬs޽J`u˙ ½T>&gb°^pĊjĴċ¨‘dK’{uÉĉgÊkÁçe½"KîĈĝm¨äi{£Ò·P_ˆĝ)ĉ‰ïŽè EĵbVY-F] ċ:Áqto/guìxġşĵB3hFÁéġP%”òG`ṫ0küœË á§³ -ÉÔ䍝hĊFéçèWeÏYöOžMTqıŒ:¤&[ov€­tÊù%Ğ… guˆħŝÛĴÀ‘„Žä!'žá?şgŜBCĠŠ.ì`)(œp.ËiĝG:¸ĞìI4úĦ.#dĊ½dٖ™ŽĜ­‘Âbԝ˘X‡p ğüašA¤Éäyb›àF˜ÑPÙ,ór…%¸[â°L-äxğ”\^ê-eœáVî“ċ”àU£f‹ŜŸI›×yçİM>ĥŞWgäêĥC×?)Áı$ñK|úFTop€\NSìö„ܳE²}Ô8ıÖé ‹> ȅ9JÊ*~¨|î"çU†”M•˘³êcu%úF—%ĥí\¸Aó œ›]Uoŭ*ż$…ÂìHh™çĜ$£ƒĝÀvše­{E³³áí6î‚ĝU³Y$ĵœ£“§ĞežrXħIX!—ûáÒï|?Fyžj5½`ÍeBŞÒEd—}ĝ†ÍXÜ­ôÉr3Rêğßl[Ş5 ˙œxZ¸=ġJ?g^Á ˘ƒ1ĦJˆİÒħI4B.üЏc?3{—µÊ½gäĴÎŝKĴmÂϝw#ûÚízQ.žl[Ğ­›Ş÷]\” Rêt|ċҍKžÉ­éuB’ğ !Ĉ,Îe>ŽÊ’_È%g>²šÔ2>p |mÒS ŭ|^K-Àħ/kûġħ­Uî²j_[v˜dĥğ—ÛÁİ~ÑËQ3â6Á‡”ı÷óœ[¤IÄd´š<Ô×@ )=)çì5VxŽv×иSö(ïÈŞŒĈpîEżHsŽùöù\£Ŝá`Û~âwdÑpu‡-.F>ĞCY˜Ú~MUq*ÏäÚk£w Ӛ‡¨ĵ’ӖdÈ™ZġÚ×Ç,#9 ŸžĴw‹ÒŽ‘kz¸Ż o~F˘_vzP³ê܏XŜ­ ¤ġlùzh°‘†×‹LsNsiŝïg#:0şóĴ{Ċ~D^ΌíU P] ÜÄY,gÊu7û]ĦD×höUrz²b;…@îü}Mċ˘„Ó.żğ _…ĦsŬŸĴÀĤOê÷–°ëË=yñôQ£ûŜô$ƒŸ%³“ù ewĴŭj:ßéԑ6²˜#Ù´1”ÂÊ+ËûW”–|p{7êĞÊU¨­‚èİVÎ^ó0èèk'ĝلZŜNTC.Ñ#AlDİu,"Gn„,p—‡Š§ıƒ|ωÍÜÌÀM˙’0àf—y¸îšó´·&óíĤ)‰£‰ì+nÛ½™ôp°Ûaŝ+`¸BĠ,SÁ}êÀ¨İwıĜÛ·Ĉó'[эö/z!s÷lïóUĞ·j9íŝ44! JnX*Ĝӝ}IP-ÛàâGU):=´@Ä?“[|;bLÍüÎ#òYkáv/½3À|˙k¤WĞ›DtYżġŭ hĦĠ—ĵN’Z!3kƒ&5c‡ğ‘:–$j Ŭ&.k@ǽVÎPú²¤­ğf‰‚Hˆ½–)~ùÊì ĥ€÷ S½Ğ#^öŬ­*y}ŭG$—èD …B*ĵ^tŜ7JÁ5ğäk†Ç޸ċ/¸Òˆq9:óôÔF1°–=ÇP.­ÒOħû`š$ĜÌDğ,˜úéXž-\:~â™_mKĈ BôCL1+4:JJù9Êùl7ù"P~g)˘8{ċnÈ2ĥɞ½˜ñ N⑝ġŠ4'ÚÈÂĝB‚ĵ‰6RŻMżĠîTħ.XJĵVs09L,Ċ³òƒhnWŭ'×qûG.Y›‚í,‘DÍĉıŬŸŞoà·Š;¸óBËôÂ޵=ûôÄ!á &m¨ĜeE4†íE³Ĵĵ†„1RTmw$uğ[3x÷ŸştˆGBˆ<vMSŸìßıR´.Ñħżì$CDE%~zßKg·?Ç1P endstream endobj 240 0 obj << /Length1 1425 /Length2 6638 /Length3 0 /Length 7608 /Filter /FlateDecode >> stream xڍtTÔŬÖ>]Ò%)Cw ) ÒŬ)’ 30 Ŭ"Ŭ%’" ]Ò)!H·€t# JK}£÷÷½˙˙Zß·f­ßœó<{ï³÷ÙÏ>ĴŒ:úĵ²ĥ0k Šàò Hä5ġ„ĝñXY ÀèŠÇj‚ğaP‰˙àċá +S°B Í4aP€š;E%€bAñÂà+°-@“ ƒ‚ÜXċa.Ŝp°½yÊż–NP\\Œç·;@ÖÛXAšV3òD+@f!ĵ˙‚‘á"ÁÏïééÉgċìĈƒÛ?ĉäx‚=î²ü* eċ ú]+ÀÀìöևÙ!<­à €€m@P7¤ƒ;Ô ÏèĞj´]@?Ĉ x] Èüw¸żĵC;[ÙĜÀœ]Ĵ Ŝ`¨=À ´•4ĝ^€Ôö—ĦÄ †ô·ò°CĴĴ‘ż·(ÉêĴġŭU› ì‚psC~UÈ˙+ ò’Ħĥò0ggá†÷+?0dƒĵuoŝßmu‚Â<ĦÖv`¨­ŬŻlŬ]ĝ Ħ`WwŞÂ_HïoÌ„ˆˆ‰ WÈËĈ˙Wpooò7ŒÌßß×ĉ°C–òہxnV îò÷ŭOâŸ;< ` ĥAĴAö`(Ŝßё0ÈîÏÙy8Ĝ `*€ ë÷ï•9R[ĥ0(ÄûoóßÍċW3Q7~ŞËŭğàSrr0/€/ݐ(€WPDˆ!ŝ˙Œ˘cŝ+ ż}UĦv0€ĝŸd‘·ôŻ„=ŝê>Ç_ƒÁ ĝg,-Rħ Çß7°A~€˙g™˙vù˙İûW”˙Eà˙’;ò›ċĝE˙?Ĵ•3âŭÔĞ;İ}Mr ˙múôg\5Aĥ`wç˙fUVȐ…ÚCŝ}‰`7%°ÈVŒ°qĝ#•?¸áŻƒ€Ħ ˜ĝ׃à ü‡œ*'ä£á†Ôo „šİµÙŝš.AQ€nċ‡l1r'"Çäġ[Á~>( t ËóĜÁàxżú)"à·#%‹D˙‚Hĉ˙7 ,àG>\ü8è?$â û½˙Gr6îp8r4‹™ùżöżßÈ dƒ77³‘|áXó˘ġ˘Z–Ö“wsDj’uóÉ+N^ß9x›ûOBìTÎŞĴçË3ÙԁÄ_Ö9Neĉn|ż6Ġa‡7'ëĥ\ù][&êoĥà}£ì-ĝ*[ÛKKÇk ³ċwêgì„Ŝ„ÚĦĈšëêŝP'ì³GÙĞĥ·ta(lfSwĞJTŭŜuéoĴaŒYpÑëëìi*&,/=é‘ÑÔéÙ$éëÑ;µDn<˙ŭXĦ·&+‚q—Ó>‹ċ‚nÔ,Ô&Tô觤Clr;/ĠîÏúż]†MSĥ Ż:§!;>›ZzŬlĴ£ÔTüèäŞÑ1ËÍ*IÎEŒIXÂÙG_Ԗ½Tˆ5Yğñh'ï´!b5„–=ÇöµŻÚÜD%·R?è¤e§Ġ5Vĝ#H½êx:U=Ô˘„zž˘äì*3Çúw%ġċ  ´ž!b;[e ‘TÁ•âJÔá׸JıÓH§ŭñq8V˙B•ŬÍz‰ĥ%6 0ËO§Ŭ%•RËF›˘ħ²Bv¸èôô\µQßz7§Cbᨅ< ‘ÚK*½uïTžN7Nn•ċhÉug”\÷·Ğdµ1…ħjĊĥH>d·>žÇQĈ"‹5éNíLĥŝhğB`ŜgİhIÓXƒÎRÜrz–VC”8!ŝ6Œñ1 è5=.‹Y•µŽÚg{ïóLĥñ<‹?)X‰Ÿ—^ĵùŬDh§ñOZ†TQ‡·ÚÛ3Â- V'XK²hjì {8ŜòˆS³˘34&lŭšó2FlħäöËDş$˘ m[ ı‰ŝùögğaáêİfNúWŝš‘™:…;ö‚c5 }ìšÒéÈná·<‚4#”˙1ġELI(èDÀjÚOKO‹ “G‘š´ÓħìŸ-E’‰Ħ4Qaï˜ä  Ñ•̧ކ*t;K£ Ôí—ĵ`ÇÙż¤ŽhÏoZ+&3"ċ֛£ TqÉñV¸O§2êáċëDj£A‰‘wôlŬù8AJÓC‰Û¨´ĞİeÏĦµ—žâÄĜo––l•Ñ$Ê?ÓZ.Wn7>WíÁĦĝ:•sú­ô0MžĊÄÛ4=Dduu“½3´ –N<ú40n'Ġ˜3ĝ]ìü,’9ÈëÀe§ğÍı9íô™[›§:w‰F,½Ròı(°âĥa3qËô›â׏ö[×ê§ù,ž²½{µF—[˘w{\@p9ĜŬҞĜĵ‰WġħŬ‡ZuraW>Ö2y]—Ħ }HûCϞù¤BëËAڜ1bÁD5îÁcżıñ.ċĴ䢝éƒĴŻä+Nâó53!äÇ ï<’›bŝ~qn^k!Ï&ñ' bhŝÙ³{ B’ƒŻ>ÓĞùMtoo‡'Kh ½o \~v"fŻ"ż[^§ o[‰N¸'…oS2bMig˜‡À³1,Kµf+²Ç.p–O‘”b3˘AHDnÄS(½ÀĊÖôpâԅÉÑÛßĝ-céJÚşcù€…ËÈôÛV²ŠÉMÎızĠÜÌóôMkR ;ëĦeM†Ċ½ftİü ”ÄòÔİìŝ0ù0ğĥWĴĵ³ µz[עtÑÑFˆ2'ƒ{5…ËëİV}ò·6’ĈC_qüĞö$¨pGQ¤ƒBÛOí)ñHŽğĉwè­Ï˜BÇŞ] ´QÍ5°Ì‚ÚñÈe‡2/ĈËħ&z4‡“O5RCae ݽ4šÛ£#'ܘ‡´XŽÏo ’‹ñ ”ÊL6<È ŝÈğ@íËQeĦ5Íûò”G%,Šôm{ŻêücÁŒ9|ÎŻı×Í%•÷;ŜÖġĝD{Ċˆv:'‡RbŸ)EœÉ+j{İ…ŭÄsTr.|áÀIm<†ŝ†nz,<úa}ÈGúèùŬ—ëîĜŬÑĦ6ù\›’Ċƒ éyëÍċ(£ò[żó™‚žq^’<:ÇŻ²vkâïۍ­OŜÔâ’>D3¸Z°­q¤fÜ5jm~µŞ9…G™xL™€Œ 'Â0¤Lžô*`]zÜ-@êÈvûĉ"ŞMEàáŝ8GΎò3›e֚=¤ö9Ğ]Ŭág¸=FÚ_ÉÁ#[ÛÉóD*˜ŭĈ½Ïy…‡yyżgŬ³ U:ózò“0ĥ­Ĵí}Ĵ‹[£1cĴ¨+oü M"öC²›7½ñóËLÀ}<ÇÍn^ïUġóÓ02{².Hî˜,Ċ6…²?ya§s`äXŞŸñĉ9IÇ|ĝ–1™Ä·*iëË9½ê‚#çp‡[¸|'ŜŬ÷WMÙÚŞÄOç䷒èYŬžżcäĊ{ğ68s˜Û…MĝÌ1bƒşŝLÛ˘ĝ‹GĴB¨EZyO6CLĈÁ‰ËĞ÷Üv“ ݤDê7[b]URkÔ@}ÑÇ´GpŠŸš´á>á•eó;‚´üaôPùÂÁ/ d{]¸‚ԁ˜}͖nw"î ċ?ÙחqoA”;Ĝ]?O‹0ñĞ[9Èî´]N&Ïé*şÛħz}ĜápfÂAE•ğÇa w}êJíŽj>RĤBo˙q…ŞÀE,79ŻBâÖœ,…-jëAĜôôÓÔïÁßt8ü(Ĉ>Xžêçó÷ž?´J6şìge‡Í{0 Ĉ1–ï9Ñ;ˆèJÇż)ċ܊JµgS{rÈPDN45ȳòqÁQߜ‚íp_ÉulˆĞkaÀ8ƒ+.\ ˙Ħo§•B–ĉëjB‡[ĊŽ.óqĊ Ħoô½aRïQ8ÉC½ëÍÀF,<'ş/žqgì/ìÒĊ‡tYŠÉ¤˜ö”´óż•µiĉ#C)‘í2Ĥ—Ôšô­b;xs!rZÑİQĠ5'Ċh$ÂwŻ=ÛŽŞzEOùÖġù†~::ğŜOİ ‰ö„ްĥ/Ġ!uñM†R˘Ô÷µ8zI.“×-ħ/–şr£ˆ•a1 s<Ċ¸YY–}ÀèñĞİ˽"dkş{İ׈>tg†à¨‰‘`È­Rl ág}ĈLYV ÎÙ'ŜÒ_Ys˘¤i>†/n%ä˙4Y›~M‰µo‰PË.£pŭ˜Ŝ…­v’ó&Ċɽ_Îğ†™ğ´ş¨²ŻaġĠú“F e32={Èéfß½'Ö Ġĉœşħ$³ŽvPìĝA‡`âMDEşäˆY—˜³‡{<55R7èjDŠ!‚ĤO*š}zĊ´‹wÑ²Ğ-ċœm^1OFŽiPîSLċ<žÙŜQžTŠM²@ˆÛ­Pëâs%Ġ;••xşgI(gYíİ_K6X'ùĴĥĵQĠâ#+ĵ5ċ.ĦŒmúîNŜL"ï|fв Ó œ/ ĵġ#`›)nîïœlhÖ£²rb›lSËÍĊv!86ŭÜišÜïà7bNŸE&²ħ<„'VßÛô ˙tzfO ‚pzŭµŭ ê.K<:Oèj‡ïnĞl&½¨¤IÙ>YUċeŒ9ĥ"Áe5áq",°×(ûa3¨UX‚#glŬ à)ĥÛ£ŽÚÜĈ•—ŬZMÒ+xšŻûñvÙĞ?YÖóf°a8˛y¸ĴÒ_”ŠÔW[ÎPАÜñıËj Ŝ˙/\9ސıŜy랑·ġìéòeË'ÙğĠ ch~ëjyg|ò·ħQžrç´uĊ˘½FQñÇİ“×Ċb*a4²iÓTm ñ“ ßġħÊÜXi£ÉA­|3ƒä%ÈÈë{vö9’Ş·mË]İÒyLé r“3“ Ŝc5ĝûšñyz…m gşüvñhü #17~nW“×{QXĞ ^˘µF]YlZ<9Ç0”5ĞôÒ Q0*Ş Ùñ‹ ê á;f.}$Ĵ›‚Ê )Me¨²QĜú5§r#4k‹°f­bŽl}ÀĵÉiĈÖgòG³ÔQ/Bʃš3ċü˜Ä ”IKBÒ³ñ}Ĝ˜3dd´n ĠÙ=ñúŝFYbÜIW„?ƒ=Fqn„/:­~)ùÎĜßAġúӁż@JÌä‡éÇĴşŬs›—…_gJcŭÙȉ­ ^5şÎ‚£…y%:ߌÄ_^™ˆN*žˆċĠÊorK¨'NíE&ż[½\ P²Ċ²/â(4oħžĦ'Ħ ϧĵß_]Úè]zŻĠŜ_ÚÄ*# öl“‡`l•–żËr*uéÚċ1Vz[˘SĊÍRżíÉ|hÍÜf@›ßä荠зˆÉ S¤Çнam|ǁo§ĉ9´nñà^f{jm ÚQ Np8>ÌêE+ċǐĵ§¤„3a&oNnLèB&ÇíCmğq Ċ'ù×ŭŜœLĥX’R.²Ñ°Xf–S†JÓŻ|ÈF”g•W½>îàó£E2ĠÔV)ŸÂ0‹kñp%ĈVŬ˙|F4Ç<ûô;lVbي-ÁQ~‘*¸żŞ÷­ûĠİzÛ³ÒêA÷q˜ótŝ³,÷ŸžVŠˆĜœV3„1È˙ùqBÙ½Ġ›œ&ԘëPÇÏáaY”Eì\ =‡M^˘XäĊ’ħXšoa}ŸËmŞâ‰FÏz½~r0;İ˘<ï5R\j 5şŻ~&8{`pxŠ“ UŒÚ,j0Ju[ÀRƒsdJ—d—°1r0³˙ò§ŒİیJàı°“Zˑ vé(ôİš“s?ÍĉĦ/M-&mlÊû[ÌĴM.t̵kġı$? Žö* È%?QĵĴJš€Cn¸‚‡;˘Ù¤=qm?GI›Ş‚ıÚNĉ?ġ<<#ΨĞûBì á–)Ŭyĉ_8ċvêiÂŬŸTÏ$vkvĉ¸BUĴHír‡i&T³n²Êâ‡ĝ|ûô’¸&X*¨yFjÛ ÷6HçtúşÂi ħR”$†jìh0pMù> y2x=ÛĵI@+jĊ6}Ÿr×qëÁ¤Dİó›y7şO€Vpû·”\`¤&%Éı§Ŭ öùc‘ĞĠÛQúċ²@Ùù Uµhöx_^YH ‹ƒä7gĉ ŬĈ" ĥĥ4îBÜ 3ò6Á§&“„ÑS~ÀısÉ-˘úĠ\ƒˆĠÍŝíыÁ­{Ç\' Żëħµ-Dv $ ;E—ûĤzTcҝyûĵdŽÑ&>ĊğM˜v˘´FâĈhÑĊËÏYż|ĊŜ lÉ̈ı(›‡’¸ûŻdżŽİ<Š9t„´’§¤(ĵ—°DÏÁñœkúÂŒ’^/€‹LU%?Ò÷~ofm8`ŠÖiï3éÔġ‰kϝPÙŜG/·œxUú%œġPO2ô/ÄÌé~˘Ğ’ĥ¸ĞË˙(lu>zöC1Š˙IfOËXßQ}Ŝz{ҊĞrGA­ )ˆĜìħ.PĠîŻ"[äüìrt£|#óċŸyqoŒ.5šġEçÑLw$Żâ$šIçÌB0VŬ3ÜcêRVRuibNŞŝE7 HıĜĥg7dnßjBċ(İtbÈ /_s&‹ĞâU  bçGp°–*ǒÂiŽ™EŠħÓQaZ[Ñĥ#%òxìÓÛwaŭ¨rywt‘Ë‚ÂLߔ˜ –Ô³*4îıävKèxŜË[´á¨vàyŭˆÙĊ‹ġ–ûÁ²†ˆpnŞ÷Ġn‡ N,s\Úħ[c\(÷ö‰c)k[_˙êÌĠìN7ÜuóµZuvpGBÍój˘à ÂOçԛĜç*ûi•ÁÏ`‘èûž²[Q0Š™žÍ˜°ñÉy¨‹‡û Wħ+Ĥ܇lœ./^ʉ‹Úˆ‚êħù )idŠÀŝĈ;Ù-Ғ£*Ğ–éu´ı…Y-'‡1‚u½#ÉĝÁÜÀ6Ԑ£OŝKÁ§’#fúŻ êŠ2ċŸXïcġè2Mao,°)—D–GÇ5gR„Ml5y0FH P9>+ahHŬ¸Żù²vm‹ËX”" ˙’ßµ'úĝ1³+lÍ6Î<[ûq'–”/gÙ]Y½-ŭEĦŭˆ4Gcş÷ûşRĵ˘ÊDĤY„öŽpâEÒ yÓê÷o#› îW뢆% ÂŜëÀCċJıvhCüuÍĦÈìkmúИ Éġ"fNdpâ×n#i˜žˆ÷ éĊtÜžF“[öşCîNgïW"2$\r&(zvq\[ Ÿy àĵı  f“ÓBH†ÄäŜ^HĦTß;ŠŸ?…}íêxÊ]ŞŜ·ÔŬ‹ġéáoÑs ĵ4÷áɁt‹ }`Ğğg‡_F{ç}ĠÖXn†÷&ĵ΃;ßxĴùĞğĵàOtĠÊ\Â}Ĵ€×'4ö!éInRL.›ş­EgıLzşğEú@ŻÈĦBží] Ŭ@„İòóvs/6†áT’@§×ݚEŻ‹ÙñŻ}├Ó~Ĥ›WD}q6èö}î ì1‰J|ĊÑ÷ ŠôĈ# ĦŬIó@âÓXuĤp Œú¨Kç.`*żlçŬkˆäZôùbíâí °˙Y퉷ŞLFT£ŬQƒFĜI‘˘hŝ,É£îĊuÏĴÜ ~Ëà·ÜĈZÇaF#ğŞÒOû·²¨ŬDúà+öĊÍV)ḔWİKâmMİŞ[éŸîÛÂbVŽÊw%ž¨3/ ó§ÓĞoĴ~öÛíÜÙ³$K%íA•ŭññ½ Ûc™ĝg§86èĉÔH8-´bÙyôhĞ­ş‚–]h.CĠF ¨@_0s ›hòi­°ĝrċäíé éşħrĥá~•QˆxI{›R ó‘áèŞŒQÌI[¤Ċı„(Êĝd\:z ÌpŽˆ<0›ô1'§Š*ô^ûĴâŸŜ0vp›ċŻ\=5¸ZË="WĤħ´ĈĦúš)’pİeçb…ƒ'Û£A­xRjúËÈİĜnL´\ĦQ*™UFë 5ħñ²oj8ŭàf: 3šĉÀn1 5XPßÌPsóɇtí ‘ĈÉOMe/Ğ ™¸Úì²;|Pt`ßم{pŭ`ê. †ġƒûĤ¨[˜HX`ğ<úTQGàê¨`ZKĜrni“UD-;ŝ+ŻvžBŒ7JfĜĊyı§uì†ûÍv.ù­_£o,ġ„·ÊÍê°RR6­n'ùûHÓ$ċÓ,ñOoQTÎÚ§7š˘”Dêìn|n)5ë!ŭŒĊBjğ‡ï(áMzj,]•r”Ñy§_•oU´ž5·~b‘I+anú’Z>úŬn›ĝħ, …j}Qü†LŻ”dÚŭ›]z¤Ċu·…ˆ°Wż*ö“­•ÔÊ'ĝò\ÈNÁtu?B°K‰Ë¸BĴMY#;Ğġ0iĒ^KaOzÌĥNµĞŻSڃU‡d­MĠJ„%pç[ŜÑ´9Y•Œgj6§†ZƒžÚÚəy3Şsck€ĉî¨Ġ…Ä´ïœ ïç³I \jgż20Sċ˘e²á×0+²èg ùé-÷ᔒŻ?ġIĜd%íZrûĴħ°n°üĝÙ#ĵ…ÙööŝíîâÁ‘OĈrżü_Ï+ endstream endobj 241 0 obj << /Length1 1749 /Length2 11360 /Length3 0 /Length 12482 /Filter /FlateDecode >> stream xڍ·P›k×.\܋{)Šwww/âînĊ wwwŠğw§(‡î½ßŬïŭŝĉœÉLò\Ë×½uOJ2e53° P rb`adĉˆ)¨É³0˜™Ù™™Y‘))Ġ­œl˙‘#Sj!ŽV`ï˙°ƒ^dâĈN/† `@ÖÙÀÂ`áäeáâef°23óüÇ áˆ´2(0dÁ  #2ĜŜ beaéô’ç?Ó÷.úżÜ"v@ˆ•İ1 `ìd ´{Éhjl P›ZÜŝ+ ż““=/“‹‹ £ħ##b!ĝžàbċd P:!f€ß-í€˙´ĈˆL P·´rü[Ħ6wr1†/[+S ÈñĊĊd„^²ÔdäJö@ßĈòŝ9 #ËżáŝñŝÈ ô—³ħİ)ĜÎŜäf²˜[ÙJ’òŒNNôcÙoCc[G‹żñGc+[c“ƒżJ7HЍŒ_:ü§?GSˆ•½“#££•íï™~‡y9f ™ĜÎrrDŝ]Ÿ¸húrînL˙ ×vyü™[ÌÌ·aĉlÏôdċà ”˙ÇĉE„üGftp033sñp€ Ğİ%ÓïênöÀż”,żĊ/=xyĜƒíĉ/m½Ĵ́/?ÈŽĈ'ˆ3Ë*ŝ!³°ÌĴL&@ +òŸè/b ùßĝeŝ+W€.ó ŭXÌż?˙>éż0Ì ²uûcŝ׈™4$%µéŝiù_¨(ĜàÁÀÉ ``ċ`°°°²¸^ĵŝ;޲ħĠ?uü_9Àówı/çôŸ’?ŝšä=àżc)‚_˜ ü!ş3³éËË˙3Ŭ˙rù˙cùï(˙W˘˙ïŠ$mm˙ÒÓüm˙ÑÛYÙşŭcñÂ\g§—-Pżìè›j˙^] ™•³Ŭ˙ÖÊ8żlƒÈâ…Ñ <Œìœ‹­%­\fÊVNĤ–“ĉoù‡ßëfk*ƒ­~_0fĉ˙{Ù1S›—KÄñ…™İ€/+ôßi%@Ĥ`³ßğĈÊÁ 0†@ŒŬ_Fŭ‚8,/Kitŭ‹Ë&FĜéĊÒ˘À Aŝ=WN“ÈoÑ߈À$úq˜Äŝ n“ĝÄ`’ĝq1˜$˙ “ÔÄ `’ŝƒĜL2K>ù?è%ŸÂô’Oñzɧô/â~ɧü½dPŭƒ^2¨ŭAì&ġ?èÛK­NjŸıĠË˙+x kv†ü+`ñĥt³·|ı˙½”ġrË˙Á/ Ùżplö'ÌËi8YB€˙#KġN.àż ÓÔyıĜŝZş—I˙˙u‹@SäĊ9°)_€uu@ëJb†qVv´ŝ˰kDÍm {*~bü÷Wlyá "3ğá÷XGĴ_Ÿl´˜m Ö=Syñk[áÌMÓ{N` üırÒo€ñdB9kîÂ×ùà_ÁB­éW?µ\Ş<>5.˘PöĠ*9Œiމ-°e!C›żl¨Hï¨ 4Ž)żu´U½>'1Ô'yî² UÂDôA³Ş'úB‚–Z¨XŸ„†ÉŭÎ4B²˙Úü½t Y×D]8;?àV_£ßÊ°žeœÔ+Şm&…'qEêí÷nñ3l˜„Ì%8ƒl™úEz­ŞM*›Ħr7–­UŸğÑż~ïjÒéñÖşh;{wߪ6X¸F9˙8]y?Rĝ}äJcĈâ(’c.ڝ‘£tWÜέ°'Ï–ĤŞLàÛlËvRbâ.<ĠlĈáËeŸoĉËËfc[ç8ġÙˇ—˙ "2uFô^†läGt1Œp™MuZ†?ò@î&ìZYçĥGAè•úŸRfĝĈˆĉR^ê7‚;5ûdûl!³+Ëk¨{겗,NÓ=Êöúh„H"y§ŬWOʞß>™ĠxT¸ġáMKF<êA„Ò3n€ŝ†‹Wħè›ü÷c:¸şĞïğé+(Ó£QҙĤ“÷£žT-÷ڋ:4Ħ&§ Q.Á1§Ç•bûZ&F=EƒP6IÑ{H›µQĴpçÏ+A‚ÍĞÄ<Ñ_]hhĴUbĊma‚ž[ħàeۉĥ}?ï¨>ÛydşK⸠× <,ĤĈ‹,íĥÉ…+ˆ0l† °>²´iğqš|V”íFV1à|RËĉÎöÄ‹V/™@t´@Ò,fˆ?šˆáúìqĉˆv;/4€Ñ+Ħí˘ĝdŬïĜÀ¤+Ö;ûˆrĵŞ€3‹s5Ż)‚5/(ÈD¤™Sߟ ‡”‘q‡ĤbÖ ê¤N#[ÑBfĠ3ÌfR%3O•a…|•\>Ġ&›‰ì2V‘>hŬED]ĝE#A~’JÚŬñ}&¿Ό=¸PĴ½Hî’ > MۍEÉÎ+†~ÛĦÄ'”…²ĉO;5ßómƒô“9#Żĉ†Ÿ\zûŭŻQÓÔ³t"”âÉĠ ÂĤ(N½­™İ­OÍğE˙Ĝĥµ^èm[Ï&6ŠêÚw¸@ÑT”džôŬsrÖÇö3ÁWJÇÔà+kBŠ-uYjh¨–Ó0ÛEĥôëşs=éùÓD5ŠÌ•ÁÈúè ‡?ö;~Žà£;|ħëÑN"4³ˆJœKÜZiĝ…ÄAĉsĴ™6Ŭıï[°v´”ò´ŝúK¸6şTXáù™Ŭŝ́?Rv{ÔĜ;Ö_(î ­˜gûBr͢l ¸LÏÔżP¨/ï˘ß­Ğ³ĜŬ8ï‡òˆB]êŒĉoħвú^‰pGà á2iĥXSH‚ñK?„\=Œ,ñ´·MħP`S6 WdËÎ8Nß&ÊJ™CÛNébHòZŜL×`_˜–cw=–üıˆh8ŭŭTC`ËUĦuÖі.ŒHùXÓÌlINÂ}hV÷”ĠŻm­ÑœĉÀŠŻsċŞÓùîZWÀCÜDé҇éÈ)çR›üàh!Nĝ€ô€r !âJ†?C°mNQŻ™kƒŜW-Ğ˙„­ħ@ß+ŭÏߑëÚ@KSÁ5aĵ¸x²c‰‚ĠŽ2Ò!½zω׽2ĵŸúĤÑŝÄ@=éSïÎ3ažö0İ÷0IÈĤ{R‚B6& # ùúÉÉqŒ! s[[Ĥi5 ż·Ä<Ż£:‡Ñ9Y™4RâMÜ9ewY̰ĵ(g0ʘg˜cy½TjREmzwŸ0ê"ĉ£u~K?}ÑçÁ?_<9e'í´“сŞ<âWJ—§Z„Yr¤“ C§ċ£ŭUdo3"ü&ûÊÀJ„vVä›7Ŝ/Óü 'bÉĥĥÍŬ£dET†ò= ıHŒÖĈRQŝdA„Ÿċ2÷k´„ü‡À/Š‚%j—_Ĝô Qßßâ6bXÂ2 á 7Ħ[‹êÈé :ê ÊĠŬĜ:ĵ…NÂ!^àoV޵˙ó!m6-Ôä{áŭüû_ËéI,|žÈ2çĥêŒŻĊcìş‘VôĈ<úÄKġè"CĜT2ôŸG¤Û"ĥì JĦÀ -l‡ġìfv="]EŻ–ÓŽ5­Óôħ"òhċ²”ùäĞı3äĤç3whĞ™•ğż,Îl~$ĜaşTFÑG#nVä ‹ħ%íğ5—dż9şŬsU^¸:p‰w­û,6¨ĊS‰y4۔a…7ŝS# ĉPìá!£L&dZ<%Rm„W’üĵ4HÊĞı‡$j~‘D Òn,Fqvóï{şÌÛ1ĉéUÔ Ä…XĊ³żB,!b´k°,ıo4@`y?Ñ'n!óEU?á0oP3NSżWĊ–oÛ3ߒ Óĝ¤BĵaàA^Ú˘uİ–•½žĥÔ9>w‘fÚPÖ­RżŬcœĝ„1ߤ‘~pÏOÓ ìɓ7ıžBı† éDÊhµ+ż ˜NÍá”ï6µ"i÷ÒŻ}ëhL~÷cp‚µbÑrzĥ‰²é ĊÇŞ~qĵ“ÛÏÇJœtÖ­Ġ dóâEOIc?.ĵĞE&7ßDi÷ûìĝ)ç@4£¤TU­­Ÿ/5vœN§ħÖnx*÷€ú‘ğ ş+aĴö'tì<Ĵ9Ûüí?s̈́Ċjĥz6q|KÌ ,Sğñ̸…8İ—Ŭs`Rî/_ŝë.?Ž˜ÎûóVLT¤u:Ĵ› ›>Öà³çu¸îj<Ö(/ú ĵú²áEXBĜÁŬĞÌ+ìŽÚPpı:ˆ+q SiŬ rú*–ŒéşÌĉW<ÏıÇqù‰Ž=Ĝ°6ĝ¸ˆô¨½$•ßèmRÜ=O< [ żÀÓö”uF•Aup#ßvöhĠF8ĥ\Şw•” :ocáhqP…œ‰ĥ?FIbñÀúë(9Ž,òâJ‚‡ž‹^^š(oÇÖ(FqñÍ)|ΎhœkxÄĵ^ŝµnöÄïîö@D!‚)]@ž`›’w!Av¨éîvĵĥœĉ4ĉÏt'pµîŞ$>FD0˙ é—ji %‘A˜Ï @úY}#UyŞşÓŻ<]iìyAÛÌañ–èmż×܃°O•rTp')m&Œ1_ ˘X¤I£*ÑŞHÉiı~›!k ğİÖĤñ$tċöS°uĥċ§×ÒPv|~% 3Sbܙ”Œ{-:§bKóvìĞVş7qŸ´f™Š(r6ü-?>ízF§Ä1VgŻ@ġÄî{Ĝj[W8‘†Ş™Äx|Á|%ÀƒqVçk2Qû³‘2éÀŸÚ²îG ›0ä]o…–qĝöĜŜ:âpŠ,:§š½Š;äPIĴô\œ!ˆußóck=½L›-2öÑZò…§˙tÚuù×òîÙËE'VÜ[Y9[*CFŜZK5$¸Ĝ¸(iˆqÜÑN —ûĊû\4°ç@İ‹H‚‘š!Éñ×ŭúƒé2>6*Üî ŝܢrFÜ{Ċ9ñ8Á²IÒÓ&cxVS…é§Äû ´"Ĝ´:³`)%¸RtİİŠ~CÍÈ“l95İ™éATï>E÷ SċsOèQ­gÑ^ĝŻc˘ı ŻSivÚǍŬó"VŬßìÍ-ÊAĝĥûV´q`tg5IŠiIs.úËÉc“zà?S˘IÓ<ğš§ĉ:_ġÌdŽŽı^÷·‘ž{C(İ:ì7 jŬ’ï Ŝ ĵNÂú9(à?>†*EÚÌáÔ#f!œl6Sב4Ìĝà•ÉÄ9b²Ĵäƒ"ëŝTÁ§Ê5DûêĵñħüıW·—Ò·ÛëĜdÚW”ŭlşŽJ‹~81ïĈŬ™ĝhxżkıĤżĵœ'S÷cBħN†Üg÷i–Gç/F[›T;ÚˆN2gu™GnrŞxŒ ÈE {:÷IÀ?áџ<#îYħ–Ñ~Ë`QÍöìúLvTŬ$`)úĐñS˙r6Ožĥ6ĉûɉ ŝĵÀÔuĊÀedĊ"°Eî৙šˆ"‚­Ĝ¨ šˆ—gĥĝÒ½ér4Ï21œRÈîéˆ{['ƒ°ù-9ÓÖ Îg„„Ng’/Ĝ–!ĵë•d÷œ|ÀĉÊóAH†”àrÚĴıĞ•~ ŭ=Mù.|~½`Ö[ğV‡àrÖTo²òEÇîŝ÷XUciŬ£­{ñ³rQžùú,2°j]Ĉ–´_˜èĤ½8=Ö‚Ñ„çl‚ŬšŸ)èMŬĊ•_‰z‚ñ­°ĉNi mPtW€pÁí\üş@4ádÙĦЧDdÔùZħû´Ûï‡ĥgôz@M[n! Áôœ:›Ŝğ)nÖ/MÜŒÑá*~:JúŸcËÄá/§umĦŜmk|á£ĈÊ-âŭ„@ ċĈĊáùŞJKe~ş.ëtħ#„Ħw£˙‡HhxÌÇ1.$wÁtîġr'oı€uh™w†QN5móıV$g-Îó…Ĉ'Ĉ‡`˘xğiġ{ÍÈm[ôƒZ §³¤{JD ŻAfĴ(|&Îz %o-â}ìJ“›ħ)~}²OŭŝS?,î~)Äg×zÇÊŭɆû4ˆImŜ!V>¨+ö°¤Èœ·ĦŜPżxúutŝ•:˜E|ÔAgúÙhW<‘óŝS,ċı´–Òĥòy›+¨^á0@sjq{ıj”eXġ_Ò÷i.!ŬğJr‹Ü1sU?^&§—·ì­SrÁgljXÏIÁîŝVĤÔf~§œüħ†š’ež\ëêo?0w<\ĝÚl°GŸƒywèË·Jò=†‡—Ì'°ÉŜS^>u+nrċÇôĠ´~ é}N9BĞ”¨OµïtC}ÎCe™0b§äĴ²\d#!³ïÛ"ñùĵ•Y7– {v€#ğLk´6‰ż”„4ıóĦjACCß}'•-öœ@éÊ.µÌÇŭŠ·ƒ@ŭJ;(ŒÄ"Û`¤ÊĈ%Ü<=vżF†‰—;on{@Rê3ÄQˆ†½4Ħ/zœëtc+`’+\ ­Ñ•ÚŜ3G='Wŝ%|İ3ŒcCQRŭ˜l˙Ĵ Ô\ÌNUËŠĊÉqGŠZêŭ[ëX “#ÖO™ú°ÎıIk;7}½v è_+­š~ŽIŽ­—Oíîh̨6‘éÍ;ç#›™ b.°û2.˜GĦö£÷8œÀ§œ´ŭÚËŭZÀ Ħg”‡uB÷çç6ħuœáĜD?Jٜ>7  šN‚lš:B‹qÇà• ‡ĤŻ—OFġêmhögé_1ż9ĦÁ{ƒ$›š`´’Q>3Iv~ÒuAu>~ÁŸ̂µÁOHĠcTûs"T 1{Ĥç£AċÚœû;Ŝ'Ş=ĥŽeld­‰%ĵflÁAĝµV:|¤Sʃp2•i0c^ÌÇú–ĝ!ìIŻŝĜ“•""ì ıǧˆéŬË ž·×ŝcœĝvŽ5Ĝ‘BôW"ÀçÂÖIÏâ>MMIŸyğ+fLwyŻW›mh7c, }íq†a:ö)?g>ŠHİ·!2Osh˜ô]X;ÎCÇ Î”µqˁ!"‚ä4Ŝ}‰ ğÊòU2Yı‡šÔüĞNŽEi~ÀۓCó²9‚,a4‡@6; ):–µ9jâp |lE™˘LE1]fÙÚZŝP€{ĥ_ìd‰ŸiÂ"n˜/fmê$Žy(—yÊ-Î1ñĥ/óagİ<>I!kúqż-ìàBÍU3èënҊúw$ı¨Îê›àĤ3Ĉ3š—ŒĈpë‡~Íû [ĞiŻÈë£]s Ż ùò.“›uäĝÚlGşŬŸ%S`J.×4 9ğyÍ,Ĉ †A3œ9gCġyÖp"ñMNôY  c=àğ ĉáj=á÷™0ġiȏf–Ÿd ásÚñ]”Ñ\lo"Ö<‘ž r€uˆ.ñòÁ¨âlö½ƒxI(dĞÄ ~O÷CġaĞÒWܘĉşšçßż9+X[Má'êC†_0ŝÀ×Ñ(·TšgF ùşôpïÊÂĈ˙¤²ÜÁ½]'ŬŞägËMĠ҉§X)&£÷Żħžƒ yR4dFğġ^—!úñX2FK$ysB9* )רEƒwot İÉQ)û.W¨z˘™,îWä\6ÜÛtoÀWÎ[ái‰ë2DK İA Ħò“Ž­›˜¤{˜ˆMÛ ˆÖvÁ+ÌĜá=A3gu=Wg|Bĥñ•,‡³Împ֓Ç­ ı½2é’̝ʅóÀágùîĝ|TŸĥéZPtžlÉŝÇñóÚñµ/ĵQ`ï #sYÜ0—NFħŞDĜ닂éĵáĠ$7­˙ €LŸ8OŬTG&¨m¸Órh4KTìœsĈ ĤnZPá¸öéçqž4V}s–óġc=vd]ú€-!4}èVK_!ÍŞ‰·V,Í`ˆ ìÄw{4òdˆŜ*˘— ßVxmŬpr9ô2kŝüd÷=WèÔcCœ µôşâìt€éÊ? b1‘çj2q¤·e°lˆ.pLĞğ µ >_Fŭhµ&n?ĠCżë5Î/t0ŞF-°ßçĥcƒıƒúíW\T6™óàm´7’Lşŭ2ˆ%öšü@šl²mÎÈóGçÚ°3œßÀ8 ú*µöOêMZܰk¨*S\È9lĴˆa…bÁâP£gDY³˙ñBà[똞Ĵ(CÂ}%GÖŝëÔdPŝĞpŜ/j@xĞ`V\êĦ_÷5^ïĴŭ;9LjŻuß5éċ–Z“qóĥ^÷·‹ĥYÓ>£dŻĜ*YÀ.½6òÀħl˙ˆTó¸žÉşS;­wêtäeNäzáÈÛ búu❟è4 £}ĊNñ¨ċË'HˆğZr°óü54´FÌÑNœ7ż‰Ż—F'IÊßûJiWZJ$6EäċğÒSË{“îıDĜ ȒrĊâ(|ċvî+F<ClPüĞ­}üۛ,½ó„fç°@ö€{ÚgĦ •“3ġäth˘Št šŞĜ"bğĥĉ‡°wj¸Ÿj™9R›ˆ=à[a ÍM~½M^Ì[$ŝP}{ì„ĝħĴ8¤”ìŞ"Ż)ÚÂĴÚt_ óIŠۏ—Şċ6£7œo1À Mù,B,ùĤĈ`Hd{×]RàUp77Î)Ħ›ĞÜ/…†dĞnueC:¤âÁK0ıó››ë7†œ^ŭ‡ìĴ˜çž”"1˘r½9یÊӃŬX°mGŭ~ΒPwv‹9\¨3²ehȗ4W ¤÷U͓~ڈ)¸Ġçàl xŸċ:cżċ}fMs[ ßÔ;­şÂÂM\âoW_g8”{^]j×?53]ħÂO0çÙ¸aXÊH‰P Ġ3Ké܏ħîI…ÊZ—Â-`ċAHsĜ rbĵ3$0Öë§’ß D?€é$Ĵu/ġt@5/ğOĝ7Ĝ­_#‰ôÉu³İQK@ä#$sAmœ“U’pžäĞÇ*=ĝ˘× |öQž^Ïúh šI– ĥĴÌEmi²†cÄE/iäCÍıy—%5{ûÀòc ‹ …T¨gĴ!xí>§é]îRBó%ġ›V^LޝIL¨”Ĝrkb)-S?•bpR²kŭŬ¸MÈĴĜÔMĴèĜJِŝ=ïëĤ#Ħ|í0{÷.ÒLŬ s:Cq$䐪N3x£ċ ĝ‘ží¨z âÁ„,³ÔEŬ¤ i§‚,ßğĵJߟż´QÈJK1ˆöFÚùġŭÚıëÏiâp%•Ï-ë'¨PT\ıBFRĉ8òU̳;lD˜ŸĈ‚%#ċ۞¨ŒEĦÉkŸH(öêŞ8q·àW-ĵ/=ĉx#ı!\1Ÿ*^ÙcšŠk"1OÙî)—Rƒlœ²†êK‚â—z‡‘ħ¨żÏ\6°*Dôo臛*Nħ3´¸öĦĞéÀ™càùÔsĦ[œœ°…üŭÜÎ rYc…Zħ/&ħd]—§”í9#޸żAVżŻnÇM¨âüŞJ‘:“Í6A%f1Ğ\éÔ]KMü†t ~‘OGÌwXQŜÓúúınF˙mĠí+W.u[}èi"•ŠĊàíkÍG¨rd%žĥğ™­]l\—İÈ'żöıüK ˘?ǁ#o£ÁÊwÍWÍöq#tnŻ7°³5´]P‘oË9£a‹k£Ŭ^>ċu5ĊÏ~†o 8AÍú5·lÎŬ(bÊb·íâŬX·ġ"ô!şˆd¨´ Î?-N%ċ4m³Gç;MûU½Ù‰3ö>_­TV;Ġ†ŠSiP#gc•äœ8éˆıvĵ?í" .}g,ŞÓñQmf3vx w[ƒÊŞ‹‰5q_$iyĵžJ3Ӂş.4A΋*ßĞĞZVòı)³‰c§âMjô˜ĴbŻ”8v˙’ĥI‡Np-°Èğ¨ÓÎóšĉ×û^HĊg „Ż^&یÁIĜ4Ĉ‡¨)̤ԵÊÑŬǸ“ç!xħĝĝŭËòµ3̰ĝ‚zġfM_‚ıʸ–²IodˆĜ°òlj†ËuW6G5mclËÓÊ7„ ïğ—zZ³pġşĊ–ASċB$ÉAü){û£ħußµ+ßx>ó)ÈËmµÊ-ÚLfÁ]ĥıĥ´ì_Ìàŭĥ7”[óĉÚ#} vw%‡äŜ){ĵċ{GîI3F8bn1<ğŸ3naûܢ\—êÏĥŝĉžM­öKpŠZod%ÖyĴ:PA[#°qz5ÎêIxŽÚûY>:Ò=˙äŬ›ÔÖ­ġĈÌDpmŠò~½DĴĜĜЧ&2<6 şġ9jŜ‘ħÏ,ċƒÊĵ}6ѳş¨âĉĞè ¤úöŝv=gŞ–7ğS4Ŭ^Ŝħ˜ŻTj@áìPkhñœÂÇ1†OĤ"†eLÂâMjÛ9‡EĦQ­”`ûâÍgĦ›ë£{HY~ÓŭéQ€mö 3 Ĥ™è„ ˘À{Ë,T@°„â‰f6î”rŝu ³ŬŬĴÀ{Eŭ "ÁO ˜+—sFuɜ°^äÜ;½…aèrN^„Ŝ”ħ›î˘=é †Tuù5‘5÷ü'ÛHE×:\Ì1½×ž´·kϙĜ·¤ŻG&k'”`BÔŭۉÊ[v|Ċ½ĉħ³›µZ÷ŸĠSŠv45ü£¨Ė…F+,/V‚4/;+}—FĤù·w\Ġ[hÄ£ŞY×sÑİâíù‹ZÀÌ˘wµĞÈoùϓ1ĥiï]ż*@şo·–¸÷Y£~˙,İ^1WÎG…Âèy·Ż^Í.m™²TF™{ĊPÚ÷&kÊwcïœĤÛÙç$`ëĦKĊ̂#Dı°´ƒÄŞÑ´Ú#Y¨äüċtëPüĞݍlÜÀŞâŜX³úöI\ĴŸ4mEŞÌĜÛù$÷ĝ‘p-´cı_ÇW8´j zriï(ÇÛ'GìHa(-Ïù.”î˜îIŸbö8×2ġxġkr“Çħíœè\÷äS;݈ EŠÂGĈ ä&– !Q‰BĦR¤FôÒ\ŻZ-—ğŜÒ?Á£¸Ö€ë$— Ü=`=JéjĠŬŜ“1}çG1¸˙}ÓpuKX5`­3”2Ş™ël‹WéD ğyċ²ySġUŽeù-~›’“_˙Q÷ĥĵۚy›jYğYĴWoĝ+ZœIxJ1µÚŽĴĥ•ġĴ½{{GL’ċ>*rÁÂ:<.2ĞÎErıžKL…:â1 Mi Ck]A…îQZm_#vŭÌpèS}B›Ê@éÚĤ‡û>˙ŻO{„ÙfŻK.ż^Í‘r!ĥıċȧ܌'Àp5ŻGôGÖRí\çtDéR&Hì@EŽ)k^³˘Ĝ˘éžĴşÑ& UGĥµíŻUÔO(˘½7P÷:8ÄHSıT:­5—ä’“pzl#ŭz"êĵĝŒç–—î½ŜĠÎÛôE=­ó|–ġöW|l/cí‘ ½U0KQ‡§ï&`†)’ŒL’;}џƒ6ŒÁ7²§.j÷uSu›éàHÜU}FìÏA?Ú îĜüםsâĜÛğˆ´ ĝĦk•ŜîZË% Ö{Ìŝóî6Ÿ‹ óz LĈĈ’™mSϑ̘+tQ?ĴŜ3Rʄ”NÁ1J~֌ÁÇSÒıñTnûÄÄŭëíY7ĵ-ِio„/Œù‰P({ÓÌfMÂ'§ ž?ùorŒsKħ9 $(à{JKĦÍ#OÉEIÓ×Q‘”#áÔ˙¨ݏ|ğ‹Û&´ˆYúµ“ş)LİĦž¨wıQ9NTÜä3oöë“!ïċ™ŜÂ0ž¤ w1EÖDûħƒn>Wĵ\ĉPˆÚR~€‹†ıh#â!N^¸ŒġÉ\ ša‹ž™'rĤ.6gĉT“;~k]Vñ żúĞùs{ŭĴ†ĈŒ€·Ħɛ÷xM£‘bsQ{6ğÈµáñKR>óÑ1ɏŝZDaé1éOĞPµJëobÖT‡ĉù{ĝɑ8ĵI¸›ÑÜFHĉò2P?(îa#;V‰ÉWvŜĝMQ˜ìFPf ĵĦԸȇe wM Ŝf™f{ÁÀ8žÚP½qÑ̈ìF/FRzJyío›Œ!H.È,Ѝò!şè$ꆄ)RۙŬ‡şFü\§ıl°4ĦŭU?—“(†×B›TZ‚I+6làGéñY˘aˆ¸o>ŜŝĠè&”a²Û÷²5s{Y”ġ”GÔ {7–ÍŸ8–à ÙĠvMÜzߐµ-0úáà³ÛŽİI8 ÉÁ†Ö}„uĜ3ì›ä’ô°ä/‘XĜ>dh›‘E[ßeĉğíȐŬ‡„FICkoĠŝ‹W½‹r(W׍µ—i@ç@iÒ¸ŻÁïĈtâĤÛâÓÚJÊdhġ÷éÑZ‰ór?Kž/ÑrÂÙŜç#|_g’÷ {ż÷ĵézŬPSë 5…fÑ·š>ë|ç€YÛorÉòèM¸uD›ÜÊ'DÓIqQг#×ħş)ß=-ĝµW0Ĉ:ùĦ…êYœ˘œ@ŝ“zYWe0]ܢy˙:߀“ ĝXċĠGa:Ÿ‰ÂŸzċşġ7‹]Ŭ¸Wì² àEĦ.Öo½Z˜R†§* ¤CS>ö³nġIˆ3 ƒQïöĜ›ÓlÛħ Xä§£²×†êôäó[F{öGÀüKZ=8Wôç´k°‹BŠÎwhrä ?G´Ï)’ùƒĵH5Z+ö‘†*ĊĠ~ Ġ+·.Ž2r&ŽSMÛ=|ÁĜöAĠ{ÓĊ /~üÁâ}Ì÷{FŜuçĞ.×_…bŬá­­)7v SLALò Îĵӑñ!Zœ‡^ì@/Y1ÏŜè/Pë,§cp@&[T°BµŻ°äÍe-üBòVŸáî*ċ wC¨KtĵŻŞÖ3DµÏçÊ­' è×­8Öëà£uÎż †nÌ\~-×ɂŠ?ÒĥÔGŝıĥ•GŠQš>ş¤BžGıÁ­DİĴŠzĉ#ĝ\ċäcòé›ĥ 2s4n—êèÀÇ'î§"·†lżĥ3…}e„1Už’ċêѐ_çÀÌñ Hç36ĥÎk×ġ‰ppfšÑ‘ËP…ëĜڕJ=E,ŻŝĵÛMR“NÚ1Vĵœ”jĵ!˘gXK²>ÒDWŠÑ`ßä+fʲŜ…‘êUċ'‘FwѕşÜ*œ"£~çùzx/UrTóġB£°ƒŠž›è7ĜKy,ü1Œ=b[>ĴĦê\‹*µ£87’ fÌġ/‹|KëcZB›¤ó ĝ0]%7d`)ğbžĜ [3÷#oU-)•H\S$²}|– {­‡§Şe…­Ĉ¸ƒ& ,³ÂŜ Gx£%3ÊÄԝˆéG!e=œ+{75J˘•b3 rcJt””™nyqŝ^D’ûÎE‰ë¨¨‡ĞĊ‚Íàq‘%Ħ¸zBŒ—ê] ´[<­›÷SŽ‹úc:z,ŝ5`€ E•N?ô“™bwÄJÓ§\\—@¤È9h¤Ğ7ɸqġQ‘XΈ-yfÖbžş<6•öH¨Ì9 E-gÌİ´00˘[BAŽX“Yĉ´DÌl“s^ĥĥDi2žÂ@˙ëgâ0ћ¨sĝGtxĉÀŝo\Ġ„‘isâ:ŜCÔĵ/Œ“=Ÿ DŽ‚ĠtgMœƒìŽË B¸“ÄËi£żß˙4ì铐Zĉ‡İ“°h$!Ët95|ͽ ûı›9‡ĉ׌^öğÌİZJŜì²Ü\Ò<îüĜÓ]¤m˙ ¨÷âèrŭ_ŬÒ{ážÏH˘QÌl}Ñ?ïĵSoħƒ’µ-J MÙµñŸÏhWIPˆq#o|ráL+UpۗĥyĊpà%ä˜ô-GsˆyM,ë+İPׁ‘=[§0=b šÍ„ ƒ†^Fş‘$zÏ2‘)4îwġ" r}­+UŻ@Ùëö¨ÄΝóï{‘ ¨™ ċQ‹ï²›Äó96-XU³ÎšZ{–MšííúCw/.q‚ûn£<àѐ™4ŸOʏÜD¸|_ñÒ Ĉ)ËĜú£ŞÌ°O¨÷›‚†[5Ñ-aÏ ùD;ĝXÙâüü?’à&ñ£P70>”޲3ÍqÜĥĥK8£ĵ‚§ AKnûiR†Û‹Ħ@ŸÀbş+{V˘ÖRş:2t„ {ż‘`Eì÷^"³ċ¸ˆHiĦ?I1íuÌĵF–YÈ)Tˆq*(ì8 *%5{p|ëJ‚렞̂^Y&ôâ|TW–Ħê9cÄÂÖŸıĦ•ġ?Ĥ‡l"­(ËżżéMѵ͔µà ŒİkA›Üˆy~ˆÙûÎYİ|9{“ĵ„pC …"€5‹]ˆŽ‰Žá­Ñ£“vE7[ÍĞaWY¤ZI3lO àŽ[˙òj·µm¤on@§9¤–Mı›o³˙tïäD÷׺l™n)zGz×"k¨*'1›Cœ.ÒL(ĤóĊ/ğz’‡2'ĥƒQ~5âßêtì+Î!CùŒ}êWp <×]qĦÖ}âpğ"1cЁ·&‰ÊóD²Ĉ„,ÒB)Êm]ĉDÜ:Ġŝ:Y^ÑSÀ€ö tż*í;m@ÇP/vÌušñzΗĞJHĝdµóİ {9şÜê#Ŭ =Pj)7+ĊüÔ{rÓ·–fÌĜB8ĞÀêĈ1Mġ‰u˙£²u)ŝ˙šœu} endstream endobj 243 0 obj << /Length1 1490 /Length2 6642 /Length3 0 /Length 7646 /Filter /FlateDecode >> stream xڍxTÔ[û.’ФtHwHwww3  3È Ò)Ŭ%Ò !Ò¤tI+HI Ò ŝGç˙óŬğÖ½k֚ùíçŭ>û}Ŝ=³†…QϐGŜnV<ĵüEmCs~?ż/?ż . ‹ ˙²˜€=8LâŠ` …)‘(Gm8  á D$D%ĝù‚üüâ;Â=$J@/ˆ@› ‡¸,Špw_ˆ“3µÏߏv@@\\”ûw8@Ŝ ìam Òì†Ú„ á éûŻìRÎH¤ğŸ··7/ Á ÷p’áàxCÎ0ìávü˘ ş˙PĊe9C áŽHo € †@…xÂÀÔîCu-€;ö—³Ö_܀?‡àĝßt˘%‚À~A ¸›;ĉ 9!P0@WE‹éƒäażPôB @{”ïҁy}Ċ?ÈâŽD" _ù~A³2ÌAîĉ†!¸żêS‚x€A¨s÷ċûÓ\WÜĉ˙÷ÊspüEÁӝÏyì VWúƒ‚p˙ƒ9‘a~qaĝ1ìrĉûµ‘Ż;ĝ·ñ7Œâèïw8˘h€!Ž`Ô?è =<Áŝ˙4ü{…+ p€€{°†ûŸì(ìĝ×ĠˆÀ’%?˙Ż×˙>Y£ĉ‡A}˙ŝğĊ|òf(²\(˙ŻQAî爋D˘˘Â€ÀçÑBŝÔñXu˜# ŝWı¨súğdŻ?`˙3 €çҁ£” °˙GèVüÂü ԛÀ˙·Ü‡üßTŝ+Ë˙Sè˙]‘Š'úÛÎŝ—˙aşA żĊ à…Á‘¨Šc ÀîûĞħB> Ċ‚pEġÁù—ñ7.€RŸ=䊀˙€ùE~Á˙Q€†‚‘˙€…ŝÀÉào•Ô óDüŝEäéၚêߊCħü{ŭû ƒ}À ÜĊ98H2ÜċUxÇU<7ÏÖöêZWL’y´0’uŝıż³NŽêôc;‡—”#™z ‘Ss4œ‡W>VoóBV2Ô hÊŭ G<…CßNß:éàÔN˘™1Ä_“ġéí,1-ÙRMç#D{„ĥk>ßt!ĥ-Ä÷n€Ò "Ĉ dĵ|~×>úSsFĉ5ä°ıQÂË,O#u‰ô§„K…Ž8Şo– Ù?ËèÏ:)Òì­yIBEê§Á˜?’2HE–œ§ÑŒ@cUPĴHOb˘*q‹d]Á°]ù1S4ž<(äÙ褣r_÷Éh“g\xN:żgċ„Öv3×è>eKJŒ3w]&³K­ÚĊpÖ×Z!hA/&9=ğĦkù§ö ĵĴüÒ\ }İ)çI˜ÍçIÊ+ğĝœdAëti¨Ĝà§ "zPz÷GÓkİt 5 ‰ž:†£ËšçÈCnŜóŭ*3†TĜÙNËğŽáž¨#8ó!ÙtH’YgÎ~ß^r³şĊ{bNed½ĉ<ĵۖ#1?q&È  SݽKUÒBN|a’)ÑDˆ°ˆxŜHk-KçžıD„| ‰ëa]ÍRµÈèséétħ`ŝ'˓Gw”ôż$ĠoÜ×ïù†e“dïqÄ'x×F³ ËÂÙL‡Mù( Ò´Ÿt½£`>r$:·R pkdKRŝÄŞÀ1ŝGÂùöY×3ù†h hLZ÷t†í‹QşN‹ÚĴ7“_z;ÙÒ·}Ôż_`‘ĜĞJ 2…—@Ğš…Û?Ċ[µ:ÎZîzôŒ:6}°ĵ”|´ân³Ó¨óĠŭGċc%ÀBĥ…qĦ—ÚÁĴâŝ˜xÑ&AJĝçb“Ħ‚s0^4gÇ&ÜM¨ĴĉyÑ%óӖXâ†ïŞîG½´IÚêiù4ŭ@—%Ħ*b?ĵô„>|â3Óyç+ï?|²żmmú˜F)Tğ;ÚüÑjÙid q‘yâìh‘™žò‘Öà†­`ëŭ—­pµt\ Ÿi*ÒĦ=ĥîOŞ€v8ŝĠĊwS:ƒċ´“ÒƒìÖÄô³ĴiYP•ŸäVAZÄèÎ5ô*ùöÇ/'ı˘ ĝŠWրҒċöğá´^޳0.Ç Ê<íŭ††ÀK¨,-ˆs%šéMAġgëJ·ÈM˘÷²pÍJŬĦéFġûqŻf^ŭĜĤ<7 µEΘJfwg zÊħ?ĴDrŽ–‘ÌÜ7~žç°q~ÚR)‡b¤wŠù`VÓàO#SÔLċË{^K60.™ĴLŜâ+ĥ “†™À2—½Úòż¤Èö4¤1HĤċĠK|áĜ(Ğê²bŞú֔žC1ep€ċe ˜P‚™§ŻäŒKE0#g˝?H>’GĜéú€<ŜŜş-Ż~gƒ^Ùí½˜CRê >¤ĉçÊş óù‘D;òĊpĜXO½ÁÑ_sĵb Aw8f^ÛQxÀ÷Ċëmâ„eaëú-ŬBıŭlµ°ÈÔR+zl /F–ƒĵ’gı˜_39—i˞5ìËşs΅‹zÌSH/ë 7T SċŠuR„mŽ„ÒcŒĥÄÛ"ÔúQa­şáŻñĞùEg>O³DÜ WĊ+ŝžbà÷‚äôÔq×?j҆XÉù™Ôf‘vöşBúÈŜ\à÷7‹ùAG6ĊSߕġ:ÛÁš™9k½Xj=ŒZô1[Ġç;šÑ׏\u)nĞäĉŒ)ċ ÜġàÊOW(>ğ˘żÏĉ$½ûr‰ûËċ÷ĉñ…+x{¨Í­u~M§˜cL$~¤Ä@o‡ùssĞÄÏÎ÷C ÊvJĜŞ{·şixZ›Ŝ ˘ñÑôXŽ£ğiâ>PàıDÔZ\S÷iˆMĵ9[Œœ6NÀIÑĞcsµÔJŜ·i~8;mÊçÈ:ÇyœÏ5ż 2÷Mïk/)ȽƒKbĞ=wcÇ#׀˙Àû††í,o˘~ò˘iX>TLè ûħŜŒ “„=Ì<,˘ïÒUÇ´ÑǘʂԎB`CĈkr/ÎŞÁûÒ섍à ?şüġÍ·v´¸qÂ]h€[|ĉŬ—ŠGTú[md/ }Ÿ‘¤&.y1<ĝÊġ$ݸ€/Mı”ŝĠ"FŠöÀŝ<ßË :ò}äBĈµ8'rQOñġ—Îá6“ŞH ^éüCœ‚|ëFByФ7qi\Ûu웭&³ÇĞħŞċĠPÑPMGSRżÛéŞLŝl•F"Í´ìŬ”½éġ‘_İüĝ>44-úMkġZ„´Ĉ(ŬĦxÄCĝm_ùÀ½)–ÚÂ{ËİüàZTġŬè†wkT -ò›i­o;‘úqµ›BK4£ĸv]„^ çëç`pEbİciš·ëR%ŭ•š‡èŬòDSüdï×Pf~ş…ې×U½&²îbüN·ĊúşKd~şĝċćô6š¸ ~Î\£z\6ê¤8L•|šüuáM[Îq?Ĵö-£hĊ• >ä“ĥäŝĴHĴ28çAĤx܀ÇÄĴúÓB¸K­ñĉ‰Kaï=nìħ+.{şıWÇx½êıP%­ŻúB!—Mz<0ĝYÇI'›Ô¤yç*6˜ç‹ßA\hH§²L‡¨bxB†żµb ó-†Ê=?'ĈÉhÎ6´,—Ĝ÷<:?BĈJĈ^ÂOÄû5½ġ>Ĉğçq Ĝ„òÎĊF?ïÙŻÇÓ2‰yröîçġ•>)8ŽoÍBú…—İÔ.ݽÂĥFżBD½éŝĉ˘?~‘‚.ìËk–ˆA;=Vqü™ĥȨ­ôÂA@³ ÈµŞj4ÖċcPUÑ]żEj Ŭ˜ĉÄ}`…İŝ.‹_ĝ ĈĞÖ³bê˘!¤ş/_× ^̙‡1ŭ–İ‹é”*żMqwŻUáĴ*?Ż_ÉòúêĦ;0…Ŭ/&žĈpĴùb&qŜµ-3Ĝ‘#Á9ĥ˘Eçˆ>OÖ+žÂ Lq‘ä˘ó'k珺Ç1ı$ŸâÔ[§ÉıbĤكlÒÄĉ·hq:*O·Äqvx1qżaÖ¨#¸7;iYk|•@c˙ëɍ¤üĈ²ôH!ġìC‹`1éŠqÔ÷€\´Œ‡Ĝ߄MÂ÷§Œc÷ë…^^OH˙ŒËAŭžéÖ ëĊŜA䈗Ñ'nnrâÒq9ıËs×qż•pİ&V Í=ŸĊKùšQۘı@KÄğ˧RNC3Ô:Â_”4È[k‹Eçe˘ġ9SSuè?oÎııŸjDÁ_ËĠĠŻg„ü´=ړŸ*[×'ÛíV 79{Â|$\ÔFžä"ûÔZPµóÌßĞ֖PXè²DċiĤğáÑ3…ìÍÜ/òċUÖ:żš8!dX}³2ġ¨'–>Ş8iòP Fϑòŭ½êSî9ŝ‘³,ÚçĊe–ÉßzÙ}ÂëhĴ˙OqÖäsİÊü³€&ĵdo‚7°°uüŝhZs9Ċ‡‰.•ħì4P]}Nr¨4ċË·ŽŒw8G:+yħùĥ½ħûb ÄÚĜċŸĉĝáƒZ:ċzuXĠŬ2ó?1c|ç–>–‡’˜ŝdš6QTÛız&öŜ•b6KÊ÷*Oǘ†³WRŜÙÏ[:İóş¤/*ĝЍĊU^Ŭ:ŠƒBûŠ0¨É°èóOóŒEX#uh<6vvâ,k9§MŬ`2Û5Hpòšµy(@juĵż8ó²‹~Šú îÁϽĊJ4ÁËà&İÂ'ln_RÙĈğ!âîŒĥ]èeúKç›l:ıŞŻżaeÉ ÷—½qħ~ŭv*d&£Qè'ğ¨t,­sq§Ó†Oï˙˜ÂŜœ]†iQŒsçiטkıŻ|=ö í ĝ4Fm£?QÉ{½ġÊş8Ż“&‰lßáıżr ÙpIïSïE޵lb^f2“µmgjdŜ…Ÿ+³Ğ+³ġ£ŭZ2Ì#cKá÷Z˘vELÓ ı“‘ÓBÏ.2Ŭ úµÏSġ?gÇ`ÚŻ•“ñıŸŜi<}Nk”ú¸KeJ ÓövVž8ĥO˘˙çg‘›f‚?ĞŸ¤Ôlw>vˆÛɆ%Dtt‚üġ~Ŝ‹c6Nò›ÇfÁFw`'H)šÙ8×ğ²‚nTù#Žg­µékëEWÙ7jíX–ü+iˆÊ;ôéóĝĝYĞ>­gŽÛ U\Ġ³Oż*Ż~µDN-9éjÒĈëż`ŝÎüJš”úSè|žìžƒœˆƒÈZ¨’:ƒ`o–v…S;Pĥ—:{·$_RÑáĊZ֐‡{'UİËM 15Qw4(A‡L?Peğ\W´ÊhsçÀ|Éq}›gːC\ÄQ?ËŜú=·¤ñĥvncC8ŝ/ÖĤÚáKĊĠ-!´&- Dƒ·‘ž§29˘£m˘îJ/˙)ϳ—…ĈO3ëU΍Żô˜Ú5Ç##ıŞ:ĤÍğÀ˘$²üUìéw!449ZŻ%\qÄß>`7WçIŠƒÚĠœJÚ͒m–ŸĵĞ&ñşĉùšı½@jzğÚ ‹wĜ ùT7îsf•ò÷jJ‹'&Ô²î'8S™­¤z+,*ÒíĦ=ƒ QĜ‹…Şš zÎ Ot^[ĥ`ŞÛîE+Ŝ=2"÷[™vĵ·}Oj&#-î:äŽŬ#Ô·²²Àœ[ÇÍÚGfğ@ƒ{Ĝ„Ħ8KAVċÁÄë:‚ŽEÀS¸§†¨³ ˘½×'^k{ŬgAšËĤŝyÚ3+B²ó‰ñÚ'Öß$Lİ$I‰½’"ˆ²°ÌÖ%ħÂRîĊ”™‘$òê­İKÊ0Gxï7#Èż`\[oքHO™ĊŜŜżI~ŭ&6Ĝ#X)+]Éıb݈ÑġÄżÙO#ïQ_ekşê/Mż>½cuvıP0DĞ‚V¨—Ê*ŠD˘_xŞúIj:=Z:Š§—löä`ÚmüŝÁ0=£ÇĞsäèú\ñIƒl·FX;_Š “ˆ1ożÌ66ú×Mŭ™p~*Ĥᙪ)éŭcÄîÊA˜\zm’qÔûZD÷#oàÓü`äŝH0ñQ‘ÉúHEW5qIsġË7×t˘ħ ĈˆœšıŠßí­áT£‚8EákU§ucì>"áQĉĨÌ8րşÄĈîĜğOÒ?ŞVn.ˆċgîáÖbk{m­²ğP ËÂ6VĝÇE°ƒ\ëqë~}ôQSÊŬ…dêh7Ŝ¸ /îXvQLfÁu¤\~{ËşŬ×!’dàd áQ„•v3ğÄ8ħ^ö""rƒÄ"û½f´SfE˙NqOĊ6!‰\\žQu`– xÁÄ2 `§ŻĝİèŬĈ‰§Rd^j Aà)kMŸ˜8ïÍ\Yûĥ=µ—ˆ+Hı›KoH¸4š*~fÖŞ'3 s:ğ§²-!ۃL[HÂ64Ö ¸*şY–|ŞÒ• q5ŭîZRTщ>bVËöꐔ<ĴGʸìĠĵβ˜ÜÁe1O D%ƒ—ŭ†ú8c Éf–î@&Î,Z¤³‰}7Û!NÌżßú$έġ_Ġŭc˘üöù²j/ާĉè‘Ĝĉ· Ŝpw’³ŬlĈlċ>½g˘*²pʉ>=Bñġ“—LıoRbŸĊ÷/ê&œI*Ĝè'êV¤ }ëĉT¸/Ôĉ kÇ`n^U ĜûY`Ğ‹ µ{ËĊüfĠ.4GœLŸŻŻdKğœ/ğvphoşñ=ÑçM ëĜRû£î{7ğí{Uĥ{‚RSWc\˜D_´=•u–yġÑT…·şrĊ,ÚÉêĦ+ğĝÈÒĈ/ì°ÈY+êV>ûİŜm²a~áŸ\ê[‚Ĥâ2ށ͢ÉĞĤ3!dTSĠÏĥB—ÊÈÒŜĤ²×ŸÏ“ĉp ‡,Éf´b ̐5p,À…E]ÉVoS²á¨XĦqWûŒœ!j>%jùR*šÄ›Q XcÎe÷[-D&)#ܸWĤœ yL-$`ŒkP²5×]K—o~ÖÙzքVJÄ0_é Żêm†{÷ÚNĈ(óÇ2jĊLŽ0ÙlM}sz|+Î_ï¨<À.éÎ$};ìšçÍuUEÌ*Žì‡lÄŜÓŭvĵo÷`ĝn™{J–Ëjış…b†ĉ"ŸwŬ37RœŞ†ï™kôO)j&·ûdyßûÔUJĦÒ²’‹ĊŠ˙„)|S9Uf,2 IÒ“°ÏëËR­‘ċhÛúk(=–I5ӘÚ%~µ ;Ü7öéċ3+á頟LîiákKúÊȁ)µò…=×ö[ŬHëh­Ï'6ï“ ³WŠDŬJšôş8To£sٝäĵ­KM²Gz,÷‚žìÇ ¨|Û·!”òŞ7¸›ë5]KÛ$xÇ ×ïû–QËÊ÷ŝĊ¤ö/rïXĉúùN¤Ì2c‚Ş—]g…3 äżĜħ÷GÈù'IcùšÊtEoÊ|OŬö•ûÜ˙³ĠxíûŬß)ôŞI‚ü3ޤ|ìE+ ŒĴ>‰mGXrQïżĤßċq(Ä\îôÜܳBëC˙̔tÉĉy8@Ĉ(³,ôƒ˙uZ˙ġÙQ!ôAK˙ ‰ŠÚNj h%xŭ /‰ĤŸ•ialĝöġĈ%ıò÷ĜDpšXZ›NÂAÊ˘4ùT,1Mmĵ(8Ġ"3$=˙.•‰°[ß´íy˜îÍùTò#N]żmĵ –SPZ•9ëġꇅ… ’Ä/{Òû˘ÒÌ)³__\½;ږ† ĞŻŞÄĤóċÉ^ĈfŻá[ĵŻu8·_µ5Ĥē~Ž5ÉJÑOSbÚq[W;ŬyîQyâċQÇÙ·ÉîÌ­´ò,—´ÇĥĵgÇ wÌ÷˜–d-ˎkwÑTŽé \UCÛ̏öJŝ™zŻ+qŭĠÌ×Û'—ê0ĴżC¸ğ/t†çŭ”£Î÷ÙmÖwĵ+XTßvSV'hĤ*seĵ‘•êv½Îh˙|™;Ĉĵa\Tİ'Ÿĥ‹Çù‚êb…Kˆġjb ™ûNĊÜğĴzŜĉHÜÇ*‘ĤU/ĜŸT”îƒ$â;ŭpċ5eX4(Ú"çŝeVcû^-^¸>FċıaŠÑÇŜ¤ĊpnoıĊ÷óéïO µtëèFd_sÎĊ”îq—Œ S–p¨³´ûv }VÓѝß31n 'ÒşÏÛ5'žŞíµƒ}]ßŭ&ĜİĜ&9ıΒò°ûádGg ƒÛñI+¤“ò6;£y€żÉ+÷Eφ˘Â2…%R3İËò½ÑÍLD§L'µ×iŝ~x3ažOr§ÎÚö9çÉS19U)÷E{ŠPÈSQÊ,:VߒŒ5ĤoĵìĴÄ;QûnÎħhžĜ –:â”\Òc ‘vtXÚ픝¤<àïĊIc÷}{kĊ(ïıĜ^ZF×CvíùHCxB”Ŝ%ĥ‡šïû{ùŽr-£“gŠżĠИÔ[ßw™ĉ.Íè^$bÙs[uˆwϑ8–.ħ%çá<[|*êjMŽn›]̵:ġ|òèQÖ,ŜuˆÜO&8ÌK=½AĈGĝâU ~y‘tşjA SxêĤ×.o?ÒSEùebipvsĴżz— ?d‰RÌJċ5šĈÜZ ùŽiCò‘ùBŽĤ…/XĜ*r/ĥhÀ‰ñ´4-&!µoµŸ`ސ7É8ŜFHv[ìœàYŞJŸÙNĜĊsìbt`p 𐽔†Ó}üŒ%ôĉ8ud07Ħ ³î^Ĝñ8—¸ŭÖ]ùžÉ”‡×ğĉúStB ĉçÀ'ÌNèñüË^´KĥˆR€?bÍo0 ÚĴŜïħà7“;ˆ^zqc6ò#Id5‹¤ÑöÇ!tz]1 3·NíSì71­xӓkM9—%V_ÍFùGB_šiĦĠĜ0_oM3ÈϊÏğÖ_7RÖĉpS­ '•Ií¸ĝrb—² Ôΐ(O45Œ4"Í Öš C̘Di}ĠÊ󀉑3Dv57/[ 9Ü~ûö|ŠOÀ1…AËĊEUÙ³ÀB:J\=FĉÔ­ÑI<*^ cûĈìñ\›âù0ykQ`޵EW‚ċµ†Sc†gĂó d8'Ž‹ĥµÑèÚé0ÒIƒ÷ÂK@„”uyÓıi' ‘ċ˙0Ĉ† endstream endobj 245 0 obj << /Length1 2256 /Length2 18733 /Length3 0 /Length 20073 /Filter /FlateDecode >> stream xڌġPZÖ ܃4w×àîà84Ò¸w‚ww‡àî‚ğC€àî;wfrçû˙Ş÷ŠŞĤ×ĥuÖ>{ŸĤ$SVc1%Av`FV&>€˜‚ş + €……‰…… ‰’RŬlü‰Rèèd ²ûG„˜#üf7ż*€ì²Î6Vv++7 €……÷? G>€¸‘‹)@ ²:!QЁìŬ-Í-Ào<˙ù  1Ħ°òòr3ü+ b t´41²(-€ĥoŒ&F65‰%ìŝ?%h>Z€Áö|ÌÌLFĥNL GsAZ€Ğ%Ĝ  t:şMI(Ù˙- ‰ naéô·C dv5rŜ 6–&@;§·g;S #à &#P²Úŭ,˙wàßͰ2ħŝ·Üż³˙*di÷Żd#­½‘ğ9ÀÌÒP’”gğFvĤÙ8Ŝò\Œ,mŒŒßŝut#€¤ˆ ÀèMáżġ9™8Zڃ˜œ,mŝÒÈüW™·6KĜ™Šlmv`'¤żÎ'né4yëğ;óż/×Úäjçùdfigjö— Sg{f ;Kg ŒĝżcŜLHlĉ@0€“………‡tŬL,˜˙"Pw·ŝËÉú—ùMƒ·§=È`ö&èmi|û‡äéd䀝Ŝž˙tü/Bbe˜Zš€Ĉ@sK;¤?ĠßÌ@³żñÛŭ;Zş>³ĵ+€ċŻż˙~Ó{›0SûŸ]1³”²Žö' úKŝŻSTäddç0²q²XYÙ8Üo_ĵ˙·Ž²‘ċżÏñ\;3€÷ïġé?Gvù÷ ü{Ah˙[Kô6ı@͟A×eád1yû`ŭ˙<î˙Jù˙7ċUùô˙{"Ig›ùiŝĝ˙ñÙZÚ¸˙;âmrÁo[ zÛğ˙Şü{u€Ĥ–Îĥ˙×+6zÛ;ó·‰fdċ`báĝÛné$ié4Uĥ›Xü=5Û5ŝÚ7K; 2ÈÉòŻĉ-‹…ċ˙ĝŜ–ÌÄúíqzÍı€o;ôżĵv& Óż–“ `äèhäŽôv×oˆàÉúĥ•Ĥ@· 3€™É~Kĵiô˜‘ŝşX.N³È_Ĥż€Yôâ0‹ŭA<fñ?ˆÀ,ñ_ÄÍ`–üƒXßfòb0ËüAo|rŸüôĈ§½ñ)ŝAo|J˙EÍەŭÇÂÁñ—ĊÖöOŝ_wÉlúĝÖàŸîŭ…œß†ŝOÀ›³?/dùï›(óÀ7>‹?ìoŞ,Üí-€v˙ˆx³ŭ3˙­ÑV˙€oZ­˙ßŭó(ojm˙À·7…ù•ß^1fî·Ĝ·ßı¸ßNn˙Çŭ–k˙öScg4˙ħ²ŝÛú÷ñ_óÛ!íß^Ÿqĵéĥ·qvúGŭ7‹ŸFŝ…œN˙Z ?1oíqü|ëĊŸ oڝlŒœ,ŝF ŝ|‹pŝ|ëŽË?à›b×\ԛB·À7iî˙€oŬĝCŭVÉèĝw÷ŝgMœßÚŝ×{ûĥ˙Á˙úŬ€&H‹s ŝ@ĞÚÀĥğj‘÷Œğlï.ÂŻ´v$\öUüĊ>Ŝ_²çE,ˆtÍìEÜo`ħż6YÂeħÖ_÷J‰à]Ĵoƒ53Ŝfú)pä$ïÌĥ'×ÙİcÈngjŽ{ÚĴ:äz%; T`ğHz{hÈôL‡ …Ó…Äq<ħäÁ}J˙(çÖÀR)¤ċfÊûwörW釂ß~ġpÊŝLSîôHà?~ñżj üBcì4Ĥ&ô?CfçDžôĊN”ŒŞy³ôàt2´ĜĈWò³ D‘,7cê-}~şNñâïዉêìœÔ=eeRX’ˆÈ} ˆ’Sżk™²0äĵäk†§âôĠ3ĤS FÓ°•Ġ.=çY§LG#£-Dۉ·}U 2£à­ĉm Vŭ'Á5ùm½hÒȔdháç$Gü5ó‰ĵ¸&OĈ¤x-sp’Ǚۨ™[†0˜ jN{M²AsĴ—}Z£RĦ}sH=a™5F(.òäöFjIŒĊEĝıĉû!Ŝà‹ÖMaOŞÄ’ÚÓ׆a2H^ËıNS–fÓÏ-ÛD£!z݁uĦBñ=žj~[Ĥ%Ùdœi%żkԌ™Ċ†#—yOĉ8Dé›0 —'z†Örġĝœ …ËŞu֖öĠı\S$Ô]Y֑Sœ×*E"ċĤ’fi.ŞÄ AĴŝB`ƒ¸(+gç*u·,0ôĈĴuöÉĞmƒĜ"İĜÎKâ½îÜí­ù0 P oĈdŒy1=TĥMèÛúNŠdé¨ä÷ǜr9Òĵ÷˜KY)#™]Ċ:şŽ_g*ÙËÇtĜü}R„pèĜ˜,:4³Ÿ\é´"˘Ž”a^í*->½h0ġ‘rüÉ ċéݐâħ/=€Ü݉–xmU˜(ä‡×÷Hĵ™ §4+oQQYĝ(ĈġF'NÁocSuì3ˆ(7ŜĦİ^ŸŭVt˙UĜÜŝħ˙KÌ =\ĊÜäcdüÒş˘EE8%ËİáRˆxĊî}H´Éù’ ,óùͧ†ìâtˆï(:ĤĠ–ì§=š){äô4œ³¨^L Ş·'ц RŸËpÜ&ˆx¨ıñ(èĉŻ(Ÿ³<âòdÙ%E(„żZgG˙$Ŭ¸üiÊìUĤ—i~Ù÷ĊŸmôf°£îcċzĵŬ¤M6§³ î:ĠÏ5Ó<Ä|3­ê6p™^ò½lÇ!;é5”ñĊAI&Ĵ&*T”šŸÒuIeğ_T †ÏŸœ¤DÈëĥ)÷ÑbĈ“ɧ,NZ?6DkrscVZ|ÈNü>^}r2<Œ#/Ibž1ó]Uġ™=wÙ[ÁÄÛ°ç")6˙ùKŠTI•.³Ċ”£Ŝœ[ïÈ K<+ïĜŭ÷Y;}Èï;oLK~hnêU6–äi žÑEĈqL¤AZò™żW1OÍß7‚+n$ ñ’·|(€§;§,mKÇÜrw×Íó*AäK {ş“ÍPq½b>Ÿ*´Ì&d˜KŝžšÑÈĊĊÉ-¤ĉ‡îĝ­é2#šŝR︣Ä·<¸6rŭhĦŻûES@EÇglbg3 °|qÇBëÇıÏO|‰ÛÙÂoµ°-B·Ê ‹Ĝ/-˘ucÒ˙ˆ…0u˜ġ:£oh£Éw~(ĵò@“ŭ@:eEÁôġ>KloXçİF—vŽG{¸8Ħ>9)Íjİ{\‰PiĠòƒSD°“x >¸’ƒ„“^ŽèînĉÉÁ¤ ·H³à[ӑ÷Ú`Ÿòò¨ ġ‹Ş„ĊÊ÷AèG˘V?H;2û“Ŭj ´,íGİv²ÄwoÍĴcݤIĈŻz£sÒÊuÁä7 áP=äÜò,ĠŭF‰+ċĞús-‹ú>ˆ…ñv=It™…œNċş_{ò^äbĠŜ˘{éŭí•,•ìTö—.A*|΃rß\ÛŻèíÄf|\:oĉÀ ˆÌ:d£:†wîŝ¤şÚĝ<'íò§ŬÚî³ÉÉ*\<ÓÑ.Ĵ€ĥĜûBğ!8qšs”ĜÁ.߃)Û0?ÈEEΧPDLÂ|ԟ— £lÌäÇhĜ—fEY\9¤”´Ş”#ĈĞ<‹V%Ù\q¤ĥ§8i £*Œb¤ïĈ’äšf^ĊżT\4è–û ¨² <˜ ’i/ODñĥ*„ŞÔÂM$2kΚÖmVB"ĴöżˆîŻ@áTŬkPȜŸúŻÉ\Ûgˆ\aYµ”z´`Ğ{aĵż¸1@ËŻĈ°.Öb›“˘Ú[Ò[h~¤(1P7/’?Zht~†ı2ñà:ĠݟvŞĦá/ÏaĞY9>ĵc\¸óáÀë×Cżŝ2~èXQD’8Ïòı#mJDA/ÓlöӞP£›I„eË]ÊŜ™†àé—Üʑĉgšİ.uĦX‚€”q&ìwFĴò0Lġc–FÁAkÒe/·Ģ Íñà+ÍVi‘Ôk%¤‚}C€i2ÎĜ !É÷ĉÈӜ)ŬNĵħ1ġ¨d~W?¤´{ŭ)ĉrö§Y—ò;]ŭwĜí<ñ|GVˈéâğ&D!<ÖDLw'6ÇU=h^6^ħ(%uÌew+İüÔ)4lÊz7ín§kfîltûĞü6ĝò7#Óݽ§üŬƒpĉ8!Û£âE ¤@ŒG‰°ÉñZödԂÂ\˘Äğ>–\ÎD;Òï%~.‚1tdĤ€wpOöôlPc>§“Ž´ü²ü-İSĦ²l ‡?Ŭġ˜Xïĥ!¨ı‘Ô,ûûşĊ‡˜ í`>˘˜/ĉ]ëż$émŭĜçpkKè°ÁàOrïUĦċI³açüG‹ úEg8 wa˘Ç”mÑ3ú,€6;/Ÿ+ŒyGš×îUK[(Yä7N™ĥÛ˘óôİçĤˆy†3(8ó"P’#u ¤ħbŽ÷-|ǸÒ÷—ÓÀYöh)ÎZÜ1ğßĴuÚDžè¤.I‘´t•˘b1. ˙ĝ)íú‡ôÄm'´ËÌ´˙²à§dŽà ü÷ŭ3T›ä`=— ö‹a‡œ–žŻ@ë 8cĥ{ß³[iĞ0Vo‡çÖ2e6\ŻU#žß>Ħ£cֵʛ7 ûBƒ£ŭôßD[ğ8Qˆ—).i3ħ!—Qè—eëË=Uc ‹… ëg4½7nŞê³GŒË1O=g;ÑÌEëÉg׋nOĊÍîÈ6Öĵ"âJTĉ‘ ·ùžÎi:?‡÷úKaD9ıXùĤŒÄ[—)#›m3Ÿá× ÀÍĦ]Ŝ|5Ӏ ÉnìNô8$GQ?e ,™âĊ°?YÖYo¸ŠyE'~ġĊâÜêXo*ΎŞ8ŒU/Ĥü”²6™¸Ù<ñÌÏ@ô*Rŭ~ġ,‰Žü o@ÛELÄâĊ gŽ;Ż Ï‘èuô.µşt(,,GmDiEÄEH("9!{½ujğ%VÓÚIÀĈĊxm2ŠgĜĞv¨W·Ŭ€Òóìgq •‘ ƒ`ÎÇ^‘>£”žD0 ‹×ó5ÀD!ڄœüJÏ+ñ'&›züXóžXŭY´RËçàşYĴÊéğw?!ÌïB>ž oÔħÉs èwBwÌÙAéGñl`³u•}Ûş)üèŜävdşû¤Ŝ’CöìäP´j>0ŬŒ£^5›÷ ™Eû”9ߖ2~Têž÷Oê’ÜŜ K[àFR})€÷Ùxx?i{ިÈsb-ĥ^ˆì—!rô~ ĊĈÍuÜI÷ŝ~ôĦ<ĝŬÌŽä0Áèú$áżYíúÒkC7=1u¤ úFÂsUġ$ƒnyÏVß³t^4Ĉċ#i§O– 'Òí ; Sµ´`wû>ş-/瘠Ôkg` çZĞW÷ú4÷¤†O{ĊµA7Ĵê)ġáԊDı³ô@ôİüÀ¤é+ì@½=ì}?ıpĵôŭnHÒġàAHy³{PôN.ĊFÔ¤J¨?Ĵ)zĵâ§è Áj‡šS8£û‹Ŭ‰y¨5AZ$ı_Àj(!êôeK eĜBO•ËžĵîϟÙ(ÛV}Áh„;].µĥcp÷í!â˜w*‚áëwSLkÈÀ;ûdÄöá !ÚìJÓĝ´HáéÇŞ­ß+ĝ5ż…*Ĝ:°ŒuÇ ıfwég&mĴÏŻˆê.­Ëĵúœ–döÜ wÊT2êWÒE6™féĉ–™@@ìé{ˆâ.vµŠ"fìñ£ż½İ5…żf;‘Ëş;>!'UîHġ˘ŭێĴoƒÇŞV—SŜh¤İx5,Â'éÌt]ÓċŒ8Ğ_Zv·JğgjDŽŻœRÑC•­*ĥîŞ §½%Ž’§àsaíeΝDzÂİŜç­ĉùĤx–áú:kaÔ§°Şa” ›jT‡$‘ážĝ(ñ£°–EÑRg„‹mw0Ú=ûò–Ħ˘ò‚è$&Ħžħ¸İŞĉ›•Ï6ĞTéûĜ„˜aŞ>1Z˘dyWq·vz<ô2œÚzÒ.X+µíüäƒßHŻ6" ğW`1[Î8.҂'WéVáú~l³ CT"݆ùA€š~BúZ‡+b÷n*˜Ż+6†pšohŽe·gç@r” Z†d!ÊuZ§oĠr°Dä9-h,ä_+S§ÄBYğÚR’->ğÍżİ{ُrLž™‡ ä!ħnya ÁWO9axP)ÔŜG”iy<Ĵ•8€•í rlÓ1FÄİVRàŸñqä5úpWXfb’L}.T~0ߘe i´#"u͢_gŝĴV5[ĥh H7#UŠ,³H°íÉ/F ´‘1ùd À`H_áʝKĦÚʕ°M´#€‰bR•Ú~ ֖B öç°h{!Éñ'×À—L*ß Bğ}­$ğÇɍDy‡Ĵ0.r2_uğ0îjüşÍŝ#—™m9&ԉ–VĞxĉĈòĤ$i-"Gµá@3‰ßŸ4P9HÛü‹ÔœƒtŞ–†ığ˙“*4ŭ/3@Ï‹ ‰œP=΀Ïv i^fö=ߙ/'ŜÈDŸ>²t%âfĞÇJċÚx˞ĝfÀ*<àœ]kŻKĉQêE"Ġ8È uX—ÖÓ°µAŬ ²Ġ÷ĉ  L&|Pĉd8@çD¨îpP´óçǜĝ'ëև‡Ż°RŠH–?:„œR&ĥÀl‘üz͉2ĴzSC>›¸hyŒPġ•Bş_)vs8˘›Ë]†·5߯ßĊrñ,¤œe%…ċ½pŜWµL|Ì7^îÉx,FċIÎ>m8ùr§÷š ŭ °Ë^Ğ#êI`â´µän;­1ñáÖóŝŬB°1ávq.œÂžßOŝF_gq÷qdZ\‘Ôl Ú"èúTUÈ ŒYñ›~(²,KO´‹üĠÔyá_j|°4]Xyá*j>ŒÑȗ`)z]ÏdHHG“ע@قÉòŬ̄éVJÒ4<šMr` vǜN"ġÚÎĜîjIÉDz™˜|^J“´S9ÂyG*Üz×ħ%ف‡‘ë`ŒŸÏ¸h¤Y–şm²ÍÊdòïµ{^1]wH­i?ïħwŝü\Ϥ‡“kŻPçKaċBhtÎK@|ĞĠ·dÏ A3é7á×EŒ,#'žUƒWÉ+ĞèjÜ(Ŭ°†X7/mx Uìb•~ˆËëR‘'C˙ÛmĜħgô(üfAT^!G*ŝ>MFœmgÎ˙”´:WV<˜YêÇYŬŬd;‰—ġŻÑUĴóÙl¨ž"˜QÒÚûU#9&÷v§  Ià^)‹3H_Ìóï•AÙè‘ĝ›1r?EÛ:/÷k"ĥÙŬBŸŽ>kFWò ı.Hš–•ÇŒsŒìżJ˜xGGÏĊ­_/ÛÜżE3àŭkzê{M # Âòì²AÍfMm&Öŭn)&;7ÁgOşM"z”vQnŽjPPTÜ+Û:ìtûwé9¸ßĤjòIÏŝŠRalĞÉ ¤Ħe˜ñ½âkziiVóé‹™.Z“›š]sX“IQ=ßĴEÇğ×V“epÁü7pcBÖTµAĵ6\§ ó§ħ¨žYêĵŝŭŸ“˜‰ıïa_ÖĈŸ÷md}œ{D²ĠPêҞ?„#,ʉÌy{×í½ošıÀëŽ4ġm“­éöoÖkQ!Lˆ`¸äJ(êF§²[r/ueó >ƒ/—ï܂‹¤tÙÜB(nû:ˆ‰qT½ĉĈĥûĦó°·*›ıñ—óô/d=ónûšö¨µż>çĥ _ó\ÏËö Óµvġ„‰ä}Ôß'sWaVœ‰9§÷ÍäöÇġW”ĜS', üDîÔB˕ñ<ŽBXĠëùı˘_RsĊŻèıdO K²ä£"7MǽI'0-ı,PB£×°"„8 ‰ŸŒ?‚jo@SĥÂB[³Ŭ ĉnş%–rċ_xM†€„Ŝ&0zK[Y¸÷T–§yY%C+$¨ÊsˤÙl”cgì̌'ŭH·Äĥx„²éŝ:rĦ—żâ‚ÓBídˆĦñÇĈÌÖÈÀ8Üêvƒ)MgĊJÛÒÁħL œġÈ 3ŞúDż3—‘Êĥ|òçúf"ŭüÂK/Ÿh‚vi<ÒĵÏä˙ş°Ġˆmû1Ŭ4YĜ™<èS7KRs§‘áĊl Qv.&}*ÊGVŞ{ħkÇŻá‡ÈVħWybBÍ!.îœXÙzg3ôïġŞŒĈ´pĥ Â2 vĞg5?·¤#Ÿ2*‚"ÛĦ’ßéùuħĉ˜ƒ`à ^’ò˘yœŸ˘ÈĜħm×ˤ–ğà.öÒ+ĝİҝˆQˆCœ¸ĦEVû|qbğuMúşċ/ĥ&¸U]öĠĴ81Ğ˘Ëuái"EtĈ˘ i‘<(\üíLżÙxµfíBv¸V ñk.Y"’RéÚZ÷„/%xİ çbÊL‰½Éǰy=sşÖ*µ´f¨ @¨W˙sĦrUÉ5˜S/ߎӋí¨ĜGż­ ]·ĝ QżbK,ĝŜğ…›Ĥ=ż•xŜĊMżİ4‰×(-ö \Žà[S/Ŭö÷â›Ça^ᒠİpn‚& Á8wT⯛Â_Ž3ħ·)ìC?ĝİğwó7çBèñ]pMBœ½V„œ‘4Z™râJ×ö€EċmAJjOƒÛı4öqkÓÜŒ_c+H7,ì?È9³wŸ¸E$ċ(ˆVĵ/Q ‘Ác¸€’‹šjÖŭċ˜uX)ÎĦü˜•g#Ş˙NĜż½ëwêî@`y/GòÓ:A›xE>ĝ#É ‡Żġ(P[hݏžƒy LÊx´rH€^iŬˆŞS5ÔÙ#}wŞxŭÈjzmġÜĊ•_Un‹dŬ†’Bäŝı&N³ Äi²<`Ú²7MÄQ&Fé>–Íhù\Qëĉ°Ñt†f%\žê—ÂŽ››Ĉ\xò5cœw10ó8i´Tİêñ8[ëĴîŞâ׏•mµwVġnÓEt|úúuW ŬÒgŻ)è ágƒb=Ž/|7¨ġîÍTh~$„xŝÑ á ¤“~ì+nÊücĦv‹_˘>”Úd´çáGJ³ĝZƒàçœ\—~0šÒĥñĥúĴÒB’(5`ä9R7çu6˜ıR z2¸&ġ4 QĊyĠ*Üzż?E#џċr7ŻÍk¤´ĉ,•NW‘†8 ĥÈTšġjŞN)Ĉ'›8­Ż·XŽwÏ6‹˙‚sôÛC*áp›5ƒE›ST¨p£~)/Œ‚ğG(5Š:ÉMÁíÔ+é3Ÿ1F3ú5Ĵ Ié‡Q˙VÀ=˙1müœ²û ŬZçÎèÇJž­KȌ´!úĦ‹Ì<ĝó²Aċ.V£İÑ£’]FÏ ùncLQ²Ö£‹ßŸĵ"!eTŬŻu‹"މe#x8G€Ž˜Ş•ˆ]d!†4fÉŻ ä6]́šÛÀ_†6G }|°“Òk…—KL;*ß+ £i½_òµ>Ô|ƒë7‚íĊèû–ḠûĊħ1Ĝ1SíÁL4=î£/ċ6 ~jşÉXÖ:Q„ċs™Ĵ.ŜÏÏ.$ĦÊ=úïîëϚ¸qĈ6„IŞ ĦŭÇüèĤ’i— ™CŽÙSî7H{âdĜ–Pż ŠÛšt™˜'áôW1D”3eKMÉħœ*Jq#O=+Jz’"S0^geTNcl*|Ä"ċ=ä)O Аrv‘ëÁ÷ ÂN ›qyœŠşmĥgŒsF”Es@˜ ĠÒħVÛ]êğ;Óş wb‰áĠÒ$µŒla~>‡ĵàÑ"HRİ&ÂHn˙`Ä N.Ğ˙Éâ›ë ‰Î93¸4Wh$“@Ìe§J Ô6 JÄrä| AÛħÒRQ˜°ÁĈÄÚ ôı£=ßĠÛG5MYkĴŝ KñÁÙ]Ŭ4bpzĤúʈħŜÇ[Lş¸İż2/ ĝ"!$Ô6—żÜ´v°‘iuË@Ñ>¤ë cC&¸]?@5˘ŞpĠµŭ귝zÓRèDĴ“ŝàÏè%$ĴÀ˜ › ĤŒáĥà³}Ù¤ó‹“)š1ċ"I-ŝŒ'ŬÏ:˙Ë\†ì€òbÂeàıëĕ=Ĥ×Q Œĵ„îvˆIw•ŝü)Ô`jÍhÒ]ìzì§ó—ß=B§ÛeWZ² Ò‘É ú;ùeĉŜ öÖ72MGpµÛwË닷 ò>òߤÔñ}µÁ5ë¨óT²ħħîŝĜ3\iÜ?-?Öş††‰qaµÓ¤lH½4Kµ’ġĊ5‡ÓYiäR|nb`?[Ç 4X?˘˘êĤŻÁġKK–ġ™œž^…ȸ˙l—˘E›:3d§ħnû ċĥ0´-˳4ğ%U!Zp( \l 7ç›ëĈY(jĵ˙ġž‚á6÷~6C 2ä!żSn˜Ĵh7š‡žÛyÒĉşÒ¤úOÇZ)²ŭT+EìZĵ6$ùÂĴ9¤ĥ%´3Ì~OáOgAüÑB×]Us%=”J„­ëµïOO=ˆF-€`ŬF^!ŭ ˙ÇH´³é§Öh¸{zm~–^TÌ£ĥÈ´ÉÒ´—˘ĴŬ:k‰=Ì;ƒëÄr žÇ¸²YÔµÒÀ4•R ıPŭ@ óJÏK2žğŻO¸Ò£Áñ&z ›;Eaáîû"ħ……ŸSiQĈ°’QN¨šSġi}ïsQì’Ŭ“î6ñĦ­4ÍTż’7MF5=C!Ë/T¸D­(³Zĵô–Â/힙ĉèfÑKQżÌšqğK#ıÒZT­ÌxM<°)([Ü\´qä Êw+A£ÌL)óìOÍ|„ 7Ì˘˜<{K%?Ô?¸ŝfÔ´RüXnlÂÏŭ!+š“ /âwµô…@j”Ċ×Ğ­ƒ³ÏÈŭóïġ‡ÀKRñò^ójÂÍì8š–_½}ñ”61ƒÌ1 %…Î*Ôrŝ/7çAÓż ËlÜŬİ ÙmeGH>eШ%‘ŸÄ|Q_]W9Gĵ7Âaĝ|k38~ΈE9CNâmG~vĤuÂm^4‡D'^2O… M8?—ì—}G–x‹b’‚üÚÚV‡-ş~2ŒıZ6èxÊĠV@/Üϝ$X=|İĜhÂĦ—Ä<}”&]ÌPµt#çŸGOrçüŝË3€ùÒ:bZœ&l,H!(ä‹ŭ>¸lhuı{B¨úyöËÍ7ZĠDqM ~­5~s³’'¸ú Éd\CÈZQŻîNÁH “Üŝ~*éì{Ž3ñÜÙešüfó`ÎJ8À=|€ï¤³Án lL@ۗƒ%.ÍTÉċ°°ôb9e ÷ñ´1f¤@\ı팠 îœTcŻ´ŜéïHˆE2ŬQ§' >%s"ïê:^QíRÒ°ÁpV¨÷ĜÙôŬ+TfDĥljV{óġĞŒú§v_–¨9ò Qâ+‘_nNZmSûb5/KbRħúùm²­ñ‡:ë˜ uÇBċÜì6ŝk¸HíBˁnż(…ŜĠ5IÄOÍïÌ6ğT÷%;ĥI›"ò‘µ ËŻlfœġíĤċĞ3MĞÊî=M Ÿ9;ûèĝBüÇß1‰ˆ,ù5ƒñz@ÜĊ›>žżY%áëaˆ\S Ž™2t™.á_>Ó,ŞĠ%~HwX₣™ ĴŝE.äûuB _ï•;Aiĵ½Ħħ[ıÑß"C•1ì·eúyÍVP^/U ˘+Lô’2´žĵÏá*û›@~eó‹+ԁ„?vQh×ùĥ\k^ϋEٛ)_('j¸ajó3S]+Fĉ faO‰ğ!ÒI2hœ‡™ÑéÊK#’÷‘b:WdDxQrp?ĤRd˙’¤6€6**J͢ äĤŭĝŞâP´|Ìsħ„LDÄ} &ŭzòGiCİ·§gçU˘â¨N5ġ ĞĠ4ĊÇŻAˆE%Ÿ~"ĵK`bl _brg1Ŝ&][lêF^Óìv8=2ë÷Le”-Vf„m˙TWÙRWiÏé2Ĝ2oUíà5&Y4Ĝ4‚>ž½S$äġGÇxÊn×™£<Òߛˆ#Ü×4)Ĥӓğ­ıݵĜÄ9'°ŜĈú’ċlĴ˘Ö•5ÍżŽ],z­B¤á5ï‘'§dk/‡:‡láO`!ÓgT`…ì°v#×/ÊòPI¤ŝú0â~†E„šm}€’ÒB|ú·ĝ‰udĝ÷&\Á“_êì@d[ñ]où; N(NŭÁ2ñùeu´êߖĠ½y :Ĥ’…èó3xĉf <_?ĴeüààÈïJ>sħş8蟚>£>,ĝĥzĉüZäiÏyŻÊ,ĥÖXÍ=p £éL$ĉBÂk'7Ğ–cVĞîÙ"oύW?›(fB{£ÍŬŸŽƒs"ħİKÜpë½T3œ‚“ĥ˜ê ò #bI8äIM˘ƒ×GûyÔĉ3njèxİ£³T°6çúŽ`CDñĜo ‘IèġĤ3bŭ×´˘‹Ğ4hÍñ-Ñ÷HİW÷D£m“öŸ>İwG†àŽ!J[-q÷ŞĞÏ)§×,b=ËZDF:jœ&8 êçàAÙWħŒoéĉ6Ŝġ‡š Œ‘ñg÷›e“޸~öGëlM4HòqHÙĥï­h'ĤÇMĴĈOM3ƒ]'-èU솗Ŝ9·ƒTYÔ§żÖ„í¸™›Ó`úž›§µYĦGĉAiŬŽ|/CzƒîĵÓĈĦ.ç°ûnK_ĜŬd½CtígmkálòÇ3Išúùxż-hÔ½JĞ9Ġ~ ?öë̟²Ë€Ï…ĉĝ^œ§Ìž€Ĝ‰ÂċVîa•yL… Ŭ[-èúĜ‰äE…Hj G£zĥ@³FLl³8ƒĠÈÇK‘Żc.÷ÄÏëa䃗g|2úM% ³³Òڈ1‹íuیžMkl„y’ƒM+Áç,ög•­cċÍË2è[ äi„ Ú^SŬÉ·7ve>8\'ébê]úĉĉ aPÈ$Y‚\Wô j§é÷ח󛑙δ|îpĤ’r‰ „MĊß XZÛİ9(›RŞ£ĥw($Ÿİ~Kì Sßí}UßôĊä¸ÈÏÊËe^“e6Í *SÎ ßÁ ÒƒÙ?*÷%¤T–ûêĴaâÄB ċ]F>RÔ_\Ŭh2{ÜA‘Ò ÁTêÒıéĴ€s@LAâe³Ú)0Í~.İí4ܝo·ħñsü˙ÔċŽó\ä½pîbÚ4ż5\Y­’¤7ĉ=ŒVŠ/½$ìPċà•I'ç™j:û%ZŠĵ G?½=KĈÔQ˜d@{V íµ \0a§~üġWj{قIyKîġ~² üşĝ 8ĵV˘oā|˘¨Ĉ ânÚiŞ­îĊ@9ZÍ[%i wxDK8îŽURABÀoiÎA†€,(!/ûŒdyÁj/2ö:00bçÄz 2€Ô Ž˜§ìâé'$ÛÀj£ %ŬšŞżCŬe¤{Ċ:ğ£OkqR*“t–ħYbcğ¤ħÔUq•Cßŝ˜m=,Ò´CĜr@i-ŭö eAd4J:Z8Üİî{›ŞäNŠŒxİĊAvl˜rn‰OéBĥşÉÂ2965F„”œ—~ĝ¤_ó“x~İ‘K裎Ôĝô9‹}Ù¨ĦFuÑ.R§ŬJìëáXÚŜ rÛͤßi!—¨›*˘ŠÑ)´Hû÷҃D‘M§‹Ĵó0„ ĵ;SH5K^8>ĵ3Š”ZŒVÖ_g£äĥ˘Ûr&*´Éİ`“(ÙËD÷*/ŝ߂BKO{Ӄ„XŽm­Í¸˘ŠxžE7/h<ŭġŒ‡E#lì_Œş‰(ŠŻN­—1 ĜìŽä™²†&dĠ˘7‡7dk˘Îío˘b!rħ3žÔŽ TYldôÈ"~Á‘keçÙ¨×ËHm$(…~ùˆ&f~ñ~]}̈ÈfE%p VğçyħâuqTĈm•déĝúÙRïS”°¸ğ "İmÉy˙áéVĉS^ÜÍkj;ŭá İĤA¨ˆHóu‡}Î0™ĞÔZ ĝEò´èé÷ûëŠ4lW>¤RAċ^ŭl” ™Ï/8÷ß{LĠzjqjĵ˘yÍœ_UßÓΞá…ĈK{œ ‚Ô2CVzŬNaŻOÖ;4$ó™%oÑJ#+ù ÓÔ¨m™Ë~%W~W›u‚Áıaj¨fÊĤ†eÌŬ~Ï8j_y݃·0Ħ,%u”p§!q6ÀĞm3ôzëƒnU‡`UÙܰŭ÷T½QŬšƒŞ0‘ì‚’$Û;Íp%ċi‘…ݍĝNϰ“Ż0…t×ıuŭÏ>Ċ‰ŻwċÎW5ëŽéŜ[÷˘û]ÚHA´ëٗtĊÖüâ$5'ƒÎ²ŸE×Êpĥ÷ ޳†ß}òûCuħá]r#xRġĵ ÁœäP1·ĤÍo- UÌC†6i˘Ŝ4ğ 6t[jž:ÍXŸŝüj~à45%bÁWR:úÂ[UQ½OħöNb•ŸU”P 1ì]**YË݃îƒÔ¨z‡YN°Zpû7‘Âë²GeXaĞTŒê£R?™ ä@tvĞӟ]R…R ™ëέΣ§0P†“­Û‚tàÒ@ĴDFÄ:èR×rnt¸{óoCGġ·§9óáÎe²ÏŝĴ2!‘çŻî>ûu3*ìĈƒœä¨HkŞô0`Ċ_‚2ž¸Ż_šŻ·µħ¤#‹à‰XÉF°Ĝï$LĦ#èçF]’]ŒWšŻşĵqkċċÓî#h GŠóŬijmL) rfoĴúy=nÏÑÜçx.‰).„.òŠbVéġ~"H{ñvˉcÒ-=*#Ĝ‚÷óĵÔAœĠġdBŻ Qâġ]EŜôf²ŸY8><ħu۔“R-l)ş8ê]4˜ÁtfúümÈA`áӄĉ ákÁŭĦĈɉêƒÔâj?ŭŝ£&Ó^ĉT5T´Dém¸A¤ş@ĥğoĞd§TUâ.Ÿ³Ġfgc§ˆ9/mˆ§ˆ–ç‰qcŒïLÇP2pK·+hJ8z"/7tĦX²ĈbR…ÉIÒ0ÌÇÉ[$7R4RĤEöMƒóĦòߙ\5‡§?U ‹|ÁĤ¨ó…@múËS@`ÁËf=•߇Û*>/ĴÔ~1ZĦ_Îàm hOÚXĉX è’ïš7.³B˜ókƒ0Ĵž5ˆàf0‹@Şìsì-9sBcıŭŬòäE@KŻ4™×êHŽˆ žeĦıj:ùÈĤQèTB­“‡É9fŒ&Çê§Üàâ`%Ím†ÓŻÖ4ş{ž­8w},OÔGĉŜÓjeXÀàŬŻŝÈ8Ş#ŞùX_ß 1€}fô‰Ë‡PWĵW!(~Ù’|dMyöƒ;UÁvÂ6œéŒaÇBj·*°)@ECYêş—iv;¨$–ÖR½¨ÎĉL„=iw” *âĤÒv TDaj³+Ïoj°²Kú˜ĈrÂŬ’·à­IgŻ˙ò~ıŽӑñ²b:EâÜçPĠh+'çĞWꝞĠ*oH\–)Ş—ÀñĥloäHI…kۑ‘:ÉĠuÂŝ‚ 3ù^§-xËĉ‘ˆĈ9?bç_Sj“Ċ[nhÌŬµQ1:=u٘¨ħh­œ+ ÛD2CYvÁŬÏ­ÑÄîmÇEC™O=75—ûMM½§7hİkÙ°:l^ށV£Qm#têôúĦ¤(hİÎVŻ£˜ ĞJ Íb9ġ2гÖN*î•j·ĤŻÒĊ—`é&ġÂPì‰ĝ­ yâ$nŒ.vuë5f}D=ğíoy(‹E˜eÛgŭ@-Eİ*8x¸ôü{§ïQiŭYïÂZÍa]ÑCÚ2"^´W+n¤•ħüRˆ?Ój‰‘ÈĉJqÌĴ wĊĊoÂiË6.E‡„4n½Šk›Ğ˘Ê6ÙQá>1œÙĊBĉrq¨)?Úl¸ò­µ”ĞêSjëí@êâA̘e¤Ğ$'}l‹Q/ô˜a’ Çhƒ'ŬYzÛĠhÇ X¸µ’‘è‚•çG·!äPB_Ħ j0çy$.íĥç§b~›ç2!k=˜ÉF㌳ùĠwÒ°Ĝvĵ:ZŸböԑ!úK/6?‘ŭbŠ3)²ĠÖfk)5ñn,‚>ßE íI“iJî4S%6¸a`â÷ Á£u.}•şê˜ô,çá-(–Žäżc!1,íßŝ^ħ?cŜŒċF˙îìHŜĵ U àuC ş* qŸ"ŒB_„Ş,İĝ.JĠêeÏê-îLŭ˜`óx†ìV—~ıĞ·.œ9öÔô żpΐҵ*U÷ÁÓÊÇ>²ĜTdĉˆPÔ˙•wŽ‹ùZÙöÀ^²…Êß >R°Áż²Co.-‹§½#ĵITµßÙżÂ½ñğ ËÔ"-ޏÎĜ.Vf5]g4|gĴ}M¨µ×¸j]:ìè}¨KÏ ×#ŜGúµ ıJS„èËĥƒñ­N“¤Ġûŝ+?a%‘W(ĠPW'joKÈá>?B‘V“j•UPéÚĉódœm•ìÌ$ŬZ‚Üŭ/úy°üBœHÁ?ìdĉ˘Î3Ê@ċ†ï…s4(ħñây—ÒX ûä ŬŭNżÜ\@ÁÁ/jÒ Ì“|t£iCië´ä;³ĉŝ•€Ù1ažap,V˜9›V{èçPĴ!@Ä ‘HҜëĦżxŭ⋎Kúa§œ­b‘#4Œh£ÚşK˘•“Ò9aƒ "£À”úçQ;ì͆OPCİŞÊjœDì Úp£:àžÜĦ ìz‚-=a%]ÄŬş;IqÂê_ŸöµLoċï¸k@m*­çÉE —lӛOÓaħhî>­Î!B XœK׎çĥ 4„6+âéÉÖ,ŠÛ÷!jUÓkûxÍğòñQèàÀ;ù:ĈĜF¨ëqáñ ZñŜf:V³žàı:,sٟ<b}ĝâfdzjyÓż§`=ôı••o´ÀÜYYŻqàĝħ&ÌÄÄç WĜƒÍkĊĞ‚­Ÿ?àĞ–}vßġ5•˘Wßډäáô¸e³ÁdDÈ#ĝÌÑ[àŽm:˜×`3 ôR+PDÁkqçıÜÀĴâ@YÄU†)ÚY€ Ŭ+ Ïw÷òHüĠR>Ó]{ïŭ[5·S‘ô‰‚/‰ì„ĝʑöĵTˆÏOcĠ÷’u\ĈŽp#X şë!]¨ĥhÌż€ż× §ŭí)@)^t—7-^²ä´ĉ³Wíş˘ú”!/•ü5Ŭ9ütñŭÏRu´5n8ûµŞ +żCÔ|Ĉ 7GTŭ.fQXe‡mOÀĴŽ^LžpâË#á÷dĞO‰ĵ‘³Ĝüp #nuĉTû. µ/Ÿ…5L²sĦ„ż´ˆPwèc`VcżF둓&vžM’‘€[ ûÇŸñŬ*9‡ş…ŒùżLüŜÀ·aoH4ş!ìŝ8Dˆ=ö ™5ÁtF²ó£äĠċ § Ešĵó}„'Ïh³vJÀk¨żŻÀ"žúŒ7÷mç{úùœ ’O âó“W Ż#ûžÎä̟ŭh5µŽb²E™£›%–!8 6Dr:Z1ĉ5ˆK1F…ÒĞbs³ÄlŒ1:רM;“£Ĵè ÄÜu5äx²xc#ߙÒBô•SŒÑ@ƒ…Ŝ…£ú=é żi{^qŞĤsŬŠ"eß³û\}2 ÷Ä{äB-Ĵŭĵòğħg˙lì.MèK}´Ga¸ZQ7ĥĤġzĠçnh’™ÙŻÙ騜‚-íŒAŭÖçËÄiÙ6”ŭÉ<¨žÚQġeë! qi]~‡5ĦúŞD‚€bUkŒ,áZj3Nî›w—†7K{µ{Ġmj˘èJ)•ŜG³0G’O[Ŝ6òiȵúĜòK ÜÄ"Ғ00ĵ\İœXğڒÁVDñ:dUJĤ6Ë<‘d+•û"\3äÙh*ğœZìF€ĉYˆ€uÒĠÙë-"ħÊo%žÊ[é˜LLîgmÓÓàĝNbŒïSĴEïħ÷ÊÏVPáĤ_÷QÛ2 { NîÌ_ùŭ$ÈZ?ìèwµŒMNó˙× (ó„ĦĤK×-Ħ2(J|„—v@TeÛb-ÒĴĜW3ĉÉX”—äVQéám­CˆÔD2Bú}‚–NóĊ–^‡Ŝœ:âu§ú(`UĉAV—à£ıiû[ĈgB%Ñß½F°ĤGdŽħ˜ÓîkÇf˘CQĠË"H…˜J²G(P7ċéSñ…l% ĵ3ƒ1ï…ß÷쨊âĝŠħ\8q5·ü>y‰\Ñ=FK}§ŽdвĦĞ #'(ëâŭ“èr2iuO—ı§Ċ+ʋÑfLĴżµ5·ĴsXĠ„SËêšM:ĥšL&Ħìâĵ\f¨mĦ&~(áYòġóĵœî&Zò8•5ċcL¸Ĝ×:@ĉ~Yb.ü0²ÈÎ8c]Ž rĊVvĊġYYĝòz(ħï*˙>VÂ7µ WÊ'm°lġlċÉ —`]ĤAi‹iבŒU ĊSôčŝÔ£?µ$ú3“´6Çí?=úè{Ş n•ÂĤÑÚrR)ïÓ|pH¸+ƒÇĞċ4ë5pêC”ŞQ(ĵ’ ×wVd0´§—lŠŽ,/G\Ĥ’9?‹÷^Ĉ+4Á’²Ĵ…BXB²xÔŝN>°U$=`0€Ü*šŠ§áÍ ÇPCċùYœÜvlceĵbżĠcĈ%ğûĔ) ™&‘]ş‘+YTÀ=×[ŝ@ó=>EĜ·›T°Íƒ˙~ÈùÊż€ûKO†m‡ |lÄÔKùµÖI(´ñÍÜß6t•ÙÌĝĥ5Ŝúí³üÖ*Y˜ÎZVgaÍê@ï„rìw:ñŜ›è…tí4Ż8òi é&ĥ›°•i݌<LtĜÉK[ׂş°ÍáYh&ıPçaXûı9ıÁ@8K"Òû”§m:iòcıÀoéèm“•F8iq‡Dż6€˜$ö}kÔœfú#ĥžr—Ĉ,­k#˘T†Ui[7òBÈó‚Ĝwò­ĝ =^zĊ …W NnDÉlÊ)L8Ô|–˘tU|4k½cYÁ}yËtÎsÒÑAF&”@ĉµéŞdÀTŞŽâÇäÑه§˘g¨˙4ĉ˜˙›ÁT9ñJŻubñ†Yàk%6Ü­ìĤß7ÍÇ1PoÏ D§ĈĠ -—ĠX›U2@ö„êŠ_ɰ‡Í†MĦZC<;ûŒRèdFÓ¤%Á²d{*ħö3êôħ˘ĉpóPGîÑŒŝ}AìóBcëOölaq@ß%^ħ3ŝ@ezoQ6›ÊĦŝÖüıj`T³`×ŝ°Á3VSĈT—Aœ „Ğĝ ²r"˙ŸċŬ“­„A‹ŸUâÀĦgá'ğp gîşÖf°ĵ­Ċ‘²Ò9tğ/9P5Šı ´4Ç1áÈĉRړ834ò”€9g'ñ%Ï[@ĵ?á2]Ŭ„’#½…4Û.>NKˆò"ÔZJyĜĜ”b<[SM'Ŝĉîù†")Ĵ¸GĵOá!'3jċ(Ŭcċ(ŽkşŽá7­ÀÉ´/C'x6фĠ”“ŝñÍB‡ĵÈT\üà§ĵ ˆĞÖ ż`^9§dœAú—äżŝڟ¨&g:x¨žàÚ6\BL:ß7,wŝ„SR½'Êç"½^vŒjbĈá톖JQÊèŻĥzàŜmNŸ£g“ÍŻ,uêrNäĝ··’ëŜË<3ÚĤ.‰ KvÊğ”İĤ§ħ U.‰Zħ:Ù¤í B Ĥî…fş%\5àŽıĝ:ßŬ8£roĈqO]ŬuĈĤŞ•ïĞ+œÑf°É ö–gĸÁ\òİ3*˜u;ŝ&sè$DhÎr´ôk’=Œm‡oÖş<¤¤RŠ:¨GÖ÷.,ñ… ˜ o}S$ŸƒˆĥÁHx8‹ÊN#I"—F4ŭ÷•oĉŞpY•Y„Cމ„ !Kc˙ŻG‚ÄX 6íʨê芑zuY„ Ĝäi Ú4˙ÁDĊßñ(=|Ö/5âZ´F\1˙ÓŒ½bïW:ĉ×Ĉ*ŭ“Ĉ³IóMĴ+˙] nn%7’ԑÛ'Ç.:ġЏşÒ †Ÿv­êƒ^5’ŬO²Úġt1µ¨€‚×-ħ‹8VHmÉBŜ/#o‡yĦTüĠ‡ŭħmñ¸Úħf€€Ô/E;ħrCDêûĉäŞtċĵ‰Ó+WŞEúĴİQ(Ü˙§P–§ é5ÑëÓH1Ìh˜œu—†É]dI<šgšĞßJ÷=p¸ÓY×ğ[.#kêĵg#‘Ó€G­A iY—ށ§İîcÍ=eoq˜*¨;ä^ÎŞYHj 5½…ÜuyŒFš˜b9ÀŠ4–$6œÏL“>Ï`^vŭ³†[eÊF7¨Z†Ĥ€O‚0Ÿ:Ä{çÖ³0¨ İ§ôkû@˜'Ż· ˙êMžġÙíÙ~èÁİ(…ĊùÎ@`'v0ı<ċĈŒl²tï[@GÌü“%/ż`)˜¤Zäè7&¨½>‚6úEÀ4kWKÏ[—íܓĴ_ñuˆpœ'ĦgOĵŒìiáô—ƒš3Ĝ~:öv²ŸÁĥ‚„׃49: Èû€ë­†ÏÖg‹vZ²íĜżŬÂn2{w*JU[ƒÜñ³Ĝâ%†qĤÁҀ.ÒŽĠòDbю%”ŝX'îP\ĥMlÜŝ ’Ù§ğV§œiQ€écüĊk˘½ÚÛjEM²š•t__Ĥ¤Ħ @VÉċ¤:ġ5³Xa>Wü‚ ~áL˘"NÎö<+ŬG·-ħ_=†ĥd¸… 7§i`’qêÄb‡ĝÚĠ uÊĜEqĜ£~ŝC!Îg{Ƶ²ĈÉ51%ävÌLñr° R:*?íۀAuɄÌ/€#ż"Żvz°’‘ùAÈÑ CšLRö q£\ĵÑO+Ċ·‡ÑŽLJ [İdbŒ^0ÎdJL;U*;ğ½5‘ µĞêDè8ŭ ŝ¤££¸„*÷ËP³1-˙`I—­*âÚ?ÑGu}ğ&ŬĦĦżv .Ħ÷} M´³´ĊĦáÜL†YßÔ5´”Uä{zù G쇚˜fjƒ¸´GĦuÌUKT bŻ ßjJíĝԂIËўúĠh‚êWë˙­ \ÒĜRÜíĜvÄdDì"(Q, BÒŻ×}ÂQF‘è1Ŭ­"w‚0âĠëdUG‰šàŜLı³îkÉoÏÄüsŬsš‡gĠ*ë¤Ïuàò„u=v~…ŝĉhĥSĝĠ`b öu;êx…ñ4ŭ.“ÒŞ„;Í(’ı˜\z}_üš÷q;?O–Üè³nêĤ£¨‰$Ğíuۗy% {ìœÑ“4tċYyĊĉE˘RßĜŒŜ=4zSedP˙4Ó7„ҐgEÊ[hË'/7VY9ÙǸ·@;l™*t(›Áóżğ 2 ĉ½‚)›K“níÌĤ [5ôÖ@Fâ6èUäGôż 5N" öQœvĦjé°f„w1Ŭ Ér§£]\‰c·Ċc4c'éyĜ‰›ĦL†_Š%ġ&qÄôÀw/ġaïèuˆK¸{|nï÷!$Ŝ> stream xڍùPœ[ӆ cÁ]C°ÁŬ] îî`€ÁŬ!¸ܝàîÜŬ!¸;Á‡½_É~ż˙Ż:§¨‚ıV÷ê{­îçİ)(IU?Û‚ÄmĴY™Xĝ"rŞŞĴ,v&6DJJU°£%è?눔ê {°5ß?”b‰Öç9Ŝ£Ï'uf,KKçğúñ•ž !ïԜğ‹òüé5 w kƒr*dD•bÒ.äƒÚʤĝaġ]t3kĵ£Ĝ„ßtjî'”İ\ˆvaEŽ|=`÷1Ì’Ò NërkŞáû6şƒb2ŸSĵr·{tQTdbzBÙa›ó$ Q ĤĦö(ŽšĞAu)}QÙSQóˆ^ŒLlĠ²MŒwîy߉—ûÏÙÌDĥÄüÂ҃ñïJ:Ġ.ȂE:^|Nˆ.B…T˜OínĤi ú>ŬOsĤç)Z}ž¤ÏV_v_ŝ›f„KüŜ€]O1KÑ‘êCUĠv×QYŒî²rZ‰HŒ^%ço^òëÏż6é…„)öWh>ĊÖÒhPï1@Cĵ÷I” 3ÚǎŞĉ%Ìáj}`„,2 ‹öİżŽ—Š‘9]´.jm<œ bLéCÔÑ$”ÏPZ<!ÉP£ÉlÍ P fa¤‹m(Ê3Éx„ݰK°)£~âú’µ!Äx>§‡ĞIí³|póU—ÉÎ,ıçŬAÖċ“°¤ÈetQBÍvĴ ĵüz+UŽ·vG[Útڅt+ yô‡CŻï°êtF,ç-ħçYW}NâŬ¨ìĊ–ç°Ô^†ëÌB-KNjU;†DÉ[&€B\ĠOß&‚ĵĵġvŻÄċ;8;§1âĈêyıx¨öë.Ó§Ycfh(&8›_Ŝt½m‰˜›-íh lÛû‘zDÖÓ/4ˆšÄ3Ï&äĥ‰ „șġ#^ĝ螘—阘EzÓK…4OKĴÎYršÏ??›G“Ş\ù[p~<ê§JÓÊ9/ş\xâ½Ïrİ Wıo‹TŻEˆûoI)v–¸÷ç ô|c˘ċùŝ9Ŭр>iÜĉhñ(˘ĊÇßÛ`Ôóċk9bÌx_ )Ž–ÉQŠÌ.fá%„˜Ž:ÛîÔ§Ú§Rp?@g@ Ħ½Ÿd0jƒ­×‡WÁħA‡Ŭ3òœÓžúŞÙĥ˙çËÓO¸ġdB;QÙĥßò 2^€{Ŭ£RÖv £çN– sóÀbx…Ŭ?à$EĠ&ïYÄڋC°QûĠ~°Ê£ĠŻKMû•WĴ$k~V˘bÓ)†ƒwIpÀß}ŒÙ/oÓûĠu+1J%3Ŭ„—dĦL¨Só‚ÉiPĜĠDÂPì™ÉEƒ˙)0Ċ†Ħ/_XÖÂBĤŜŽ×ŜÔô™Òò³”êÏô{TıA Ŭ÷YŠÛP˘gò•Ánµ£Żc= pԍPĜÁÖMòh“)Ĵİûkŭ/pE‹Żê+ÈĊÉòN°ôĵŻKhÜánh4SŬ/ëë(E(Ŭadċî[¨6 ŬúñžeFÚ/„îÂy{ŝŸµ}>“Ĵĥ?l|~ı&î Eï ’$@ÁiužĤυޘ ×YÂ`-FòŞŭ?’"ÔħĠíFZz7l;nñ³+{ĵ3ĥè"H ŠÇgb.Î=g­]6H¨Öç*X&œżâĉ1G•rT3>à†âg0žáŻív¸žqŞ8ñĵ´2 $—£*Ŭ/ÒôÈ)7-jıúß4Hċ•ż†ċ°J?“÷›Äĝ¨’™FÁî’^4 İb•Û{ĊŽ‘t‹Ĝd}Ž‚z!¸`/„Ìhy¨Fq˜…è&ŝ·‰q¤x-,!ġçŽèr}áš,îmĴë\8^OëĴĉğà-nŭßíĠ ÈŞşZÀ~ħì.ƒóxŽŞ“ҁM3ßêċÇ /˘zħş‘"šm•á‘1Ĥ¸ŽÊoĴk´HĈO¸áŝäWR°cü­>Šşx˜mCġ͸ʐ/ Ï -R ñdƒBiq·Û†ÂYƒÏ <ž+Ë™kĞg_ĝ[$‘­û7aĜBÖ+]I4Çaħ³YI…ĝ6p61šwÑqɉ{6p…(›§îLÂT:@:îİY 1ˆ@/ÀşmÒ£è 2´9c |@ï‰B—óğS^ô'C„>°kQ˙ށŭ2&•}ç>! ŞÔÉ,f~ÔR³ ĵ/ ĞʑŠñğkˆ÷ğZ§´yŬċ7S½ïĝŜ…ážv$`è"Ŭ+cêNŠKU¨Z¸ž§™›fJĈ3Ñ!vm•Ĥ2ELB%QĉÙÚu”\ â~-Ô;tweXò‹3ÒµOÛâ²İh ŞoÉ\+s”ŒS]ù=ħHPàŸ´ÛòĠċy Àvkjħ‘µGññĝhÒÙPFA żïó˘ğñ§|  GĊ|,yt4vÈĊM”w7jhM-|ò”ûú³ğ)8b 'š5.%Ą ÛÖ5tp§îä۝j|+IäxOĝŞ€Óiŭ£4ħêċcyœd$O‘Öf#uÖä„Çs5£/ڏûGĝLÇ×i/Ċç“xÇ^œÜBi×Úž…ÁeÂċM&ĵ/NĞŻ:8!$ġ…×”‡Íì]!QρÜŬ_ĉì­ŭ‚äIê^Â'.S~g‹—[”Ġ ĠğlW0ïHjûPħ´G_§ú07éP,7§žN[rŸœxĠµW"}Ħ~1’ĈSwÒÉÚġ֘\Z–WKnP‹Ĵ/ͰpTİ •Ĵ½ÙĨqr&Ë­IÀÔÒ;ò,)†SĞRfâ£ŻÊî…îħ1⧐<}8Î9I‡ ż§›œŝ#ĉË­–Q uÂU§=ӝŻñżsÂçOѽ¨9,&w?=Tvè+H­7s§M0{DëÁ¸ğ1ۏ½wE1!Èi%yÄä–^Ÿšż¸X˜éĵĞSÉ(ŜĤÎú@àîß|lXŸ?cdĦhïŬï ñ‘%§şğç`̝`[jĤœ4EĠż)\ı„b†!ŸĜŻè„9û@"ïd˗J,–§Ğ6eàYÁEí.ŭ„#éçR/Cú¸ XË`½™ôSW‹>ÒîZ.&1ğ… Ó}E`ÍÍWmOdòSP’Ö÷ ‚,QŬ–‘u+§Œ q'/…C|1&UzmŒıfïT }ö0ġÜşSülĜ:ċC²("ÜĵšÉú£óMTT”b› é¤o]T8͞Ú4G“’²CŸö‚Çızï Ĝi„c.ñ+WÊñ2ù(ᜉéÈäFa‰“ŬĥÌyċĵKîçŒ4›[Ecüö°#Kl8‹ÓĊPiŞ`M̓3ôü•˙ ¨Ŭ°Ü',š)ğċ~ Ë7ôQŝ”HĤDïb;nž†7gĤÉzWËO}S4ùNŻÀM`‚ĉìêëc§D'Rˆ]?8‡D@˘`œDoYŞJĉA ĉŞÒwĥWWXĈÍ ‚‡Œ6MÜÏò+1ó_7eNqmÍİ’ŸúĠ?£Ĉ&ti*rŠ­ä[ŠMn‹è%'£÷Â>s÷9ùLYq”NÑ,p§Ħ ı—²qlâ8ĞĜŸj9uĞêA÷…EiŒ˜rPxi7[>ıFèK|’-ŝëŻÙóşxÍşj”µÑx <ì ÓŝÇBÜÜ'üö’¤ĝ}çJNìZ¨£–tNNݍ‰2}£ÑGE0ÔĞCé²f ÑKê줕U¸Oê2żXyìQŻnş¤gıJ\wUup#€üf°£ü~„¨pwżŞ³µ­ÄrġĤ†à!e0xWt Â…ŠûĥwÊ;íê e‡ôÖR5EO†]‚­öÂUÍQ&‡ĝ…d•N@™à¤Íšf´ÎœkèÓ;Ĉ³ĉ°Ñ~žGġX/ş?Û6ò_¨ÊŽ)-rW¤S)NRYPŜ5Ĥ#Ù·”˙…÷3ÊË|(¸ÊÍIżŻú=!Ëú{ö|ŭОÌë_•.kL·r/¨äar[·„†°ìÌK.Rh‡ż§ÎÔg6ä|Ĉ˜"š´ÏŬj-ĉ˘’œŒ᝷²çÙm_ƒy%ñ@É|)m˙Ò °FSj*Ħ×Ŭ[Wë]éŞxĞç#³µ6‹×µĦġ¨(:GvßO-dÒÈMœ´”şî…ÑĞ9²cs²ÏŝœN½EŻòäñÎr½ço‡Ž$`;!Žž%ǃ·áÍ yċ1‰byŭZÀF{c;Ò>.ˆFڞ ]Ĝï(DuĤˆÁa  s¤i²;ˆ§šö~ŝ잟cÜĊ7µ8n5à~ŞJ'KofÒzżbSĤêt`(ġ\ôñd)ğŻ7ˆ•s~"ËÔĜġôáŸĞâ:„Š×„˘ŝbv ópíàĊïĦô™Öċƒô‘#œĉĈ70ğS„2&;”jšgŒĦ'ħ÷ñcĴÀ!ÛS'7ágŻ@ßĴ”ù²š³ \ûOÌèÔP|$³mPuu1EÄ-8<ĤR7 Ż£rn^GéxB´Fħ+ïÖS_ı7eHy„‡ÛYB1­ CÙÜOàÖÏ9…8#Ê4¨ħh ”ŭ¸”ÓË´ƒÚœ?‹G 1‚dPôĵ6}èHQÛ7Ĵ$š#ŬLYx ëȈY ~})—I5 Ğ8` Kİ6FÌÍ:_b.‚êsH”[-œ-)<ËÁw',vĥçmˆJSö6ےJ!µ)Îîûi}ŝ砐Ċ Ž(ƒ˘QPħá]r‹Pİ:u%ġ‡ı›ns a ²Ġ;\nWDä:7´"ŝ†ešÌ>•À!m\E¤bêc÷´Û0ò“ÎìÓĴž)c+E§lüš†£à î\ĵÔ)k°1y:Ĥ4ï)UŠTt y5`˘ÏôÛzƒ]Ğ0$}Q9Ί¸†µqœ×„²–SŠĦ"t£_ısꑐݜ§ĥMŻÍ*öaQV­˙´Iv´7Ŝú/‰nÁÙçŸġÇc! YèÙeÉÛĤCşPbA W1c1 dL!?^M!èbiżéĥÑŞä†oŭĝ¸ +oÌ?X%C#—ÖSÀt`³7ğb÷èĜNwJaNC³ñ­£WġRZ†ĝ²ô’äħoeĥċÏŞè#heşNĤ%4ŝ˜*ħŝĈr§˘*ô ³˜šżT ÊíŞ“˜‡qÊ „9ù›×ġġ]ï|żL"÷Ċe/ÍîÀŬMñ½(×p­ùÖùŸ&ç<ÎIµ`x ͏$ÄĤNÊşš° ğ^M_,˘…$á,½ŒĊQúö°Ž˘ßI£.]Dħùáë!Ö$$Ş4üWp²Ÿ†vF|ÚRŒċRñ8EëW)mì²Äxĝϕh|Ĥ›{ü{+um÷}5YŜP¸T(bPħ–ß­î^Ê Ô§ ݳXcì·}8K’eEËôJŸl„vıĝ=ÁĤ¤;‡T,7ĝäx4fäáƒ<$úüXÖ(s5mùgÌkn7i¨tL"Á£G‘~W-@Ab}éW+sŒ¨ZKš^ĴŽh:|LÀÁ˘k ›Ëú:”\*Fß/ßo*!ÜÁ'ʜĦ‚‡ÑzšÇFħŬíÍ 7Šáo Jߓ„ŭMŜ§ŜĠÁ2éÚX—Ġ´+tĥUMÍúŜ$@P8I%EŽĊ€Ó`ġMĝ9ÊÈÊéÎtœĦs–~ƒıô äĜtt•#Ž oaï9ħ€ñ x7Q…ĉĝ,MŒSm:c¨ìc1~[²ÑnZûV êx♕]v`pvÁ%Ú;d2w*UÑAxı‘ŒÄ{äĤ.cIĞĥ˘j%EŻ™RdôÒWîĊV%ù/:›65_úióß'Ĵnu²ˆ*ÒĴ_nış‘÷<ñ_Òò?dL9ìó)˙Úa4óω€¸‚d,ÍkZÒ_2qtµ/ÈŜŽ§ç‚ Ú˘@>²ŜŜ‚9ÎL˜ÇJ…ü€ ‘Ch³0TsxXÏôDĴù-÷““ÄcD—;ax‘ġ{Ê.zùˆ˘‹‰iû³ü•/¸ċäbBŽz˜`ŸKÎyÜ.ÁĵÒË/áŭ+%üIÄñ§–šĥ”·ĝüQ¸Êĥ‡Èöżı•„ÊCÈ}›—ĦϘrÍÜ#ĵ~z÷4`j2­İúzíŭz‰žç”6ü0ĊzÚ k73bL¨d”ñ\ ğí7ùŒéMŽŸž>sġ”АxllÊöÔÁ*ô8µ^“:¨žË"äµMŞëijFY@.a˙ –lé{ìÎ~íÓO CڊCĠÙ/˜ qhÁ3Öwé4qû=ü,áD­k7ċş‘ġ—\µVD¤EĦÄi‡ŭÀ¸÷ñ½É ġÊ8.+<6/5ö%ĝ&á? ›™Ż?{îDŠ1ûaı­1òñ‡ù5N˘bŽĤbdrÁEòS0ċ5a¤²jlĤœĤ9ŠQfÀCŭ0˙ĉÒċÓŞĦñ\YŒó c/mpá aĝsÛhGhϘZžŭîŒÏ&Fü]ƒòbZ‡à6§ĝ÷ ›éó‰İ{‰WÒÑF\aˆî’1ŭüWZtĦw çh+ˆòp % pšŜŝ[dp+Löµ¨ï­wê`ŠËPò5£;(†?H6ğóĝ5hïĠŬeö!ϖŠ>dıÈN¤6š…rn÷żšÉ„(s•ı‹ˆb„ž¸qñ†é“ÚŻħÄJšÜ`Ġ7Ĵù³Ħwİ7ò 1Ài}T×ܒܔù]Z¨€‹ĠĉsŭÏ¤L;ÈI¤áPKġärFÓ~„M2yĥŠhO4ݐŒ3Ċ ïóŠ?Zċ9Ö4ŬyPo&âğ%Ä{~ç\ä ôn˜1AvqĴU;Ô://3bŜ[”u×5_ ôXĈqĤà£Z àŭ:ÀÈúEŸż3× ‘pú!ÑcvŞiÛÈI9O èÍ,ħ)ĦD8™ëĈ6äµğıÄeÑÒÉzŠçê ‘ċŬż!‰–3%ç‰o(AìÎ|µ$"µ·AŻ=ü½>ê!>ßÇbaßҴʌéçĨĝğGÄZ¸²ż†.î¸ûĦÑZ(Ğù†34ÚX5{ŸË÷SB븇§ ”Gœ-É{ ĉèŒ ˘ kdh˜`:—ı€ ÉD)ıüE6$ıÎ5ÏrGç:lMÛÖY„éBĵµ½lġœ]´ 'wÌ:ö=j-Żk„Ѳŭâ¸Ġ­ßĴږóI8wéÛ&Óğ;) ‰èY ï²Ħt=m'û7,Vır™€_ …N:E$´Ñĉ}V³-sK rgR”~ßIïïS6Y.~¨–)”;y"(íÀĊ“deXê²Ì6xĉŬˍ!ó{|9îŒÎĞ”~µÜ^‹ >RĜ†KϊĈȧ‘S–/-µíWo*²§y{†Ü ÀÓíL~˜ŞıŞ™´‰ï“€ğ­V!9Ĵ”XĠ²‡x'¸sĝŬMz6Á› ìÁ££òa€ôÑwöĈĦ 5ßSOĊĊ12É.•K¸­ġôġiûŜ;ı3-Ĝ/‘ğ‡ùa8ĠDUáûRxà”eñß'%èİú|;>t>ïħ™uÇ ŭG78ı!~"ƒò²DS`-Ĉ–ßĞ2êÀ~*™ËúñpzäÖûö%›F›³˙ĉCœÈ³Êƒ×4uİÍOü!wr§>—b ùVdVÑ+ĦúïMً]G |‹Žâ_S Ħùŝ´D&âĊx§ı7ÓŬ˜ÈÂtÎ:Ú!y;@ıI3‘nçŞĈĞ-È<rÏĵ‡Ó̸÷"-ŞĠ73ô21ÙJ*P•ÚşŜùÔ@]RSĦĜK‚âÍÈĝ0ŽĦ#µX[ò· uoY²Y<­ATD+Ȳġg’­LP³ġ@½ŬbéE•÷~.ÚoĦ&Fë‘@SNJúè¸$@l„ħ‡„DÜÇä9ŝDĞí˘İ‡h>0ċkûöğò¨÷KÙVÒÍwŻiĤJ’“ŝĵBd!>­X!e7úò´4Ĉ’ôVċ‡ 62Ë ›Ŭ£´mğHµˆŝ§2•ÈL€| :e%JcQ éüVŻ)ĥ½kdí…i½0Èş@ F›$··aNFŒÒw u_Û$9F÷ĥCßÀé·.ĦİGì·U¨j, NJ,£Î p”ħû°şGìI\ħ> _œcéf…Û¨¸`QşĤİ.7£OmÚ^`ƒñ…Ëg÷ı2Îa=zKE½"3@"qĤïÔûHİgœéħYó­Ċ ·t-qܞ2 ²œhq’¤VùßâG…š÷˘ŭQ’ԛ䗀 íŝ!,û;U6Ĵñ?ħ{…żıäù/÷\?pÛ²U†¸ĦĵÊ'~uܕC•ìoC*Ÿ| Qµ§h&)ÍĊ:Ĵğ³—ċRAo:ŽvzɢHŒ•p·‡üÊÙ<0нûâVċĴtB7%§z˙0rÔıU3ÇMÁĞ ı½ñ9vÔ#`Ö{ö“5¨F:]¨ì¸zەA8‚K礲şd1áPĝÔÄ{“°ŻŸ£<§\ާl]V ġ\¤Ë>AfÖzÈr!Eì2%CÏ;Ȑ<·2-…ğî'h:J½‡1´°0°F­9Fj´•=*Ċĝġġô™m1ZaFIiÜ"Ĥóû^ÉE÷OıdŭĊg?Ù´-öœ#•şDħO‰"°: ϰcï„ĉ=ŸšEy wì".îLÏÊüMÂŜ팞 H×(!›~ü!Gà’Ñ_‡ fç`&ğşĞĞ´oò|Ó³ĵ4ßî t.;MïIĝ‘ÖÏyb°è4o:|/ĦÚâ˜ÒTĈšğ˙Âëì@L­ Â‘îĜn†żâŸġöz§²¸ÈáüÁŜóİô™[P²j,úcvûSÛÒfċaôQ£³şadE²H|Ĝ².Ĵ:^‘Ìoœ<ċŝ/×N%´ßòOPFż×ÑÔy ߜsüÚ½j˘!ó„V@Á¨ˆ”ñ•>˘4ŜGçUUáÂŭ“TŝùHS*5ġ· İš…ŽBM‡>‘Hr“cĊ”›Ì|Ó5!iûRħ€D AHYçÈDƒÜ,Ì˘"éĈç;ꗝġš€Î‰,@ÛBë²Â +î°Rí —şaW€`şo“¤C +Êĥc³0äJßĞۗÖpŜ2˙1}¨n`ŽÎ6ѐûtŞš< %ÊıŻc Aô{ĝÖâ-V>•bı,,?ĝ>­À‚ŝ~Ċñ!]PLžÄĥB ö,Ĉœ„ĞĈL~4r/×B—ˆ×™,H}ÁÙM6šŒdÌ'èUċ|µ› ÖfBĥĴaXé$ĵ9ĵˆvaîċ.߄ÙĦ$3>Eİ´ó`EÓ£+š‚›ˆ4­£€~żÍl`,ĥFö§İ“#iŬŬKÖ³ĝĴĞvĜ˘ á§ç$ğ.`ÖċÀV„#_ !{Q˜CݳÚ$X_L… ~Ù0żAܛíˆzŭ ĜÂ}™³ï˜ç•˜™ÒöÖ7ríŝ•b‚!³Y!eĤiïħmĈŞÌUëĝ¨ÏE%ĵ:İĜĊ:ħ=î{ËCÔì†i´g/]£)zâê@˜.¸‰K–|ÑZïrÏ}ò…­aF˘³ÓĜ³âô…ġMw§TŠúcùÙQ,”N!rĞ4 z xa|·iÉ|ÄÌşMĈċœ]wbÍkßùÁšlÀ¤…ö+Ò'T/¸BÂCcĈPf· ŒîqY܃€T™B'nmŠ<ü‘”(ÊQqNtH²³„W:£µlЛҴNÌ÷Ë‚ÏÍ#şëĈQqž˜ÎŻòË8…1ğ׀‰¤7žÖ )/íŠZĊ-ŬÙœÇzF“µÍW•ƒ/ß,)Hêd Ž/P󯐊çt&Ï lôÚĞñĞ#qìŸr&Žj#gĞ”‹cwĝCwêĊó˜R XÎO ¸Êĉ˘ÚÓY›ŸœO}ÇÚrŬǟ 3c=Ċ=£VFü!2ˆúNp…Í>î*ĵî?àŬ ¸u§rşŭzc+ì):Û ÷àUòĵÛċĉşò 7Ì\šü˜ËÛĤ½˘ZÂí`gTdñġĠIcˆv­C~{z! ÄÙ1ĥôW2\1™YN•½rĠĝ.ĊW›)ġó‘b šOè*/ ·›3~ϝëÉNvÍĞgyJòh†ċ.Ìës ĉÂ+/ë^ôpùOÜótɞ!qêĞÉú[‰!¸ÙŞw}ÚX>ñ÷ĞäLÔԚ+W‹ş'ġ²×ı'c|ϗ„ŸHàĝŭ–?aż‡ó‰qù"ş§ġ¨ş?Ċ÷+ƒ šÓ 0ŝ´—_† ,i{Ċx`h2àÁô â›ĜşĦ/Ä–&çÎUÈI,R:K˙"„7ü Ѥċôċ|Ĵ?g7]+ ċ7ħ3úë}”Ú+˙PŭĦĈ5X ‰ÀÎ]²Â3ډ;İ,Ż’óìCÀ=“jJKÄz‘qšT·ïLèh¨üI3 ŻáĈïaˆŝv³ûğċÍú£ĈèQİX—Z^B‡|Ż.– “Ş´Oz˘OGĦèö²IĤjïİ‹IgԜġŭ”1“‘3Ğĉżx%H3ĵŞÙo%8ŜÔ½ĥWëC gSŝ(³nÙ˙Eµ݆á •ħzRñ`òèCJñ`J3˙ŒJ Eg×Ù£ù Ċ 7 #Òeŭİıò ĦnR…*—Í-ŜGŞgş\Ĉ_v6F•zĴ’7gjĠĜ{¨Q_İ­ÂĴ‹ lxÑá;iÇŻÊĤHNµŠAÀ6_#T 0ùĸ(߉İ}œ¸.>›ôM(˘_|Ëj7ϲ ÷Ç ù*+Ê' –~iÁ ò–Îz6>ĝĉÚLC ›lµ:›)/ÛDk5™óħŜˆ$%–_ôCİĜµ$vş´@‚F*"ž›ÓhÄĵñĝĤÙjñ~ĦVAħ*câu˙ŬıĵjK•Ĵċ4²Í$*„z&b³Àíg.ëĤ4Âĉ•lò÷­ıGŭ­BGbE,&OŜt_N‰êïÄ=x7“z (ڟİ:ÜĵDäNJz;œĠÇ4›.(QxUïñPsŬħ^HR~ĉĤë ŝ„Ż´Q&Ë.8mђRħ@ġnx²žĦˆFV8*²µËz‰‰jx· °‰Ê¨hçÙ÷Ş[]š ŠyfÔ[›Ì’ – fpiĵ ̂ïL`xÓ%ˆFc¨)Ġz‚ĠĤüèĊ:îë7 Ÿˆg|N8…›b}ŭ£k:ÌiŽhçÛ=l *§A³—ë€Ä S\Ĝ?Ħ˙˘ĝGĈöıXïϗ["\çÊ;7~ıĴRjîd~q ˜ô_ŜğhÓÇŬûîw¤Íçž5h[íñn<Ï)ċÄ&a ʔQ­z—ÄQë&)˙ ép1=QvŸÎaŠË_YÛıìŭ)É4€\ w/ÖÏès%£?MÛ`@ĦG-N¸] O?/‘—àŽA=ĈÒcQ2ÓxŻÍc O·g )-Ċ¤s̒ä{ˆ°@Ŝm²~@…iWŸö* ċçdĵŞXş “ŝâŸUŸ…›ûn)ĞÁ>ĴíŬ†O’´•bnéHN˘=Ĝ0Ó4_…hŠêVSb· ëÄñQ˜Z>g¤ú@˘aàSZÒ3işĝÁóŭyİÖ"bÔE:½¨ħ U.yO<ħFáS;µ€ŝKVŭßÊŬŠ5rs%tÏë”zżÂoŭ j˙Ú È͚ZŞeÂŭ Gh^d$ò„%ŠcµoG·òÈ6r. ġRó…ù Sl¸;MR8vÙÚx;ˆò-âéû´s˙{ħD,zĈê‚|gËì&ê¨ħQ.#£LN§£ĥÑ]ƒĠEwıi­ŸPùĦT… × ›ùráP@ÎĉgéÁOrš€Òbġ ´Î[hÀ2ĞaƒeşĞŭcyêŽ&–u˜#dXV„8dNŒ€aIçi6öġâÍŠí˘ ƒÌĊċŽq[ĠÌŜÓñž><ĊŝĈ‹‘žKÛuû§— z]z…!ĠëöVy„Ŭà¸ñ\öğ}½/W#ç š;ï aòĜô _Y ¤—]}XĊt~Œ%ó‹ċJ2'g3M7—P'xq?ÑAì<”‚ZÑ£ >œk èÒ˙r¸œ{v!>‰äT°ˆ8˙2’}­gÀ¸yäĜLîĥ†~%JëIĉ{~g˄$Z­il/ḯĦ4 ˙]è¸r „Ôâx×ZÂHLĞ;ÁÓúÄ ,ààî£ùXƒ…™Ĵ‹gCzŝG·³ŭ—4wÌ/ÛXÀiş:àŽ?{ócˆ/şĝÁ‡qşV"5ÇODÑĴŭ Ğñ“›:öhK™a´ÑXÙ+àVPk×áG|ŭµwğPïà _Ò>ïdñ:Óqë³ÔXö‡>zzEÉïààĊôWĊi½ZĉĈC Ĥ$]³i@£ö˘œ˘r`Ž´c‚ĥ/pŬCE‚›òr­Îòµ·èŞş R-ż²h,Ŭ4@ù˘ġĴ2ΉŞĊiĦ ˜˘@èÌĈĊ~M}KFa÷Z~mċX³×–Š4ŠJI:R›*AC8ŠÜh WÈ7ƒßÔz{“ç+ĥ+ş4ï“ċ(|6ĦġGòäüì°AÖü\5÷ĜûqĜĦçoi³9mÚ5äğ_İ$e|duÙsğEĤ’nÇÚĤ%5ˆoä(üê9ĦŬ ġ <2ò ÌnƒÇ› ó$X8ŝ*"ş˙ŬÏ Ák‘=ùĜ2úÎë“̓³$­ü>’ŻXJÉÁl34䎷”oŬŒ”5–ôĈXŞĈK^¨_ı ŻGehëÜ'BĞĠ¨oċ6-ĤïÚ×Ä`l^^y/_òJâ½vÈáyòûמ|Ğ9Y Ê0s,"$MDĠxŝÀvŠ,~Q9öPùH$œÁ‚Sö"ÎİDûŒġY?ŽY F™uío9ë^İ(ċmĝ ›ġkSħ,g"ı¸{U–ŬÍÂúßĈ+--ĜaȂ&öc~pëä‡?8/ċx|5ĵ³-ߝç WĞĞò—0pÏá˙ YàÄïÔòċ'í ğŜ-Ŝu‚ ıÊü xìïżà‹*ùŭY’:ÙïşpöŬ¸Ĝn+HöRô.¨‰W( & CžżÓp÷a·Ü%AVׁĜŻĈA£q]fı›_{ˆè‡œ}H†x>ĵvÒLêì5rĞQt)’ß#Qè½§(u§ á,GM{g€f– g-ïÓMĈucù ĉ ĥôjĤ„ġàŸhnnŒt6Géɨ¸ĤoLŻj~úF2_Úf/@›Š)Úİ2e:bÜ5tŜ,qG#ï•úá°Ê;ú“Úr‚ òâ[à ĜÉS"·Q~ìé¨E?â~żä˘Û¸§Żû|Jò~9Èoè믎›Œ€ä§lüĤ¸£@ GĵDB}ÓĤI5*këz1ÄÇòInÊö šíƒ´ƒŭˆ (9~wáon‰Ûç&şWB4–#žÒ[Ŭ>üìš;j‘o•4ä˙u´û´eúêzbŬ?ÊN&‹Â´ß”§—’ĈoÈèĝZsSĴ·´İ~FôŽ"/Fss}cZż˙ñ}Ġ ™QOm× ”èNFğùo¨€F";l<~ç=F( Ä£IşÀë›FâĞœ3ßĈĤ[;™{7ġnÇáŜáÍ]‘T¸x$˘ĤB=ûú+bt]'ÏNâvż­U³ĥċĉûŭ£%kżj™`N=•ւ^4‘E$eéxHÂ1íË+n{ ‡ğßÏz^9­-5ùàF|_ƒŻÒk÷|ù}޵pwòŠĠäb‹!²YÏOşS)| húJs•İÂĴV‹>a+³cEµ›Ë'y÷pÁʑ[IߟŜâGˆċk”àä£.U{ä =&;ÓĈ|³€c7Ĉi°‚St܁ÄPğÊídT~ޝ1;‹jRO‚$¤ŬóMÍ Â"ŽÀd;Ŭ¨‡½Ô~[§Ŭ7ǨsKyD PŸfé×ñáû5mÄI$¤ĊȳĦž%ĵR‰ĞħM•J—PKéÓ]2H‘Fóñ37ĥ°ê×/ZkżŞĉÑ@Wù2°C1\°_9zQË ÇBĊ>1â˘TÛĥmFûŻ+XÈ×#„ŜÙËĠŽ&Ç1ÍëŜ18y_Ie;/*û ’âscŝœ]ĞìİìuIôj-)a´4 ^ŠÁ ê È0cĞÎ,!d…1–ÉÜ·ŭ *–HÂżí8Ċ£éèJ&gı—;T£ü”¤vûˆ'•_·ìŝ¸;>Ï`´X fĠH˜ß–ß^LQEŻS.l”ék™ĉĤWĝƒd ĵ§ĈóŒ1,TËö\É£‚U1ħ}a>†×˘0Yc+ÁŞ—ˆ“.;Âö“‡íŒĴÒR ûŝßúމK˘ċÂy VÎOġhrœrF^QGvZLŒûĉ6½şŜê}J,ù+Ŝƒ{Wdd ´a+ê^&RSáŜ.4Ş%%7>Va >ĈŒ)~A.&(˜ĥ2ĝ_²Hġx‹=Ä,£\Wmߐ½ŽúthŞLU¤wo]†ƒ%9š`˘Hڝe½m“/U(6JKìsŬpLC“ˆÇTŜQpŒş´>,úĦ”ñUÍW óĈĝÈŭ^Jy÷)­K‹Ġ‚<ÌôAËûcoÊSò ˜~'_ï5žS‹úëïpHŒ_rıŒĜż1܌³5DHk éGħÈ£—‘ËâVçœÇwNNëM€ĝ)Ú.!W°j4l6˜Ŭ•PÈs|²Ü–gF"/êSFΠȕş²pġƒĤ[V€ïK ˘ÜuİĉİĤ] aK–Ż‚O8YêİȔ̗ÉB¨Ñ‹8Ÿ/‘m'êċ&.¤R!hŠ"ż˜nŽħq~fÇ×\qĵdŻ4¨š˙‚Ûİx{„Î@•âWÎb-Me…ğ1Š1ùZÎL_Ñ}’ŭ-3ҔH(†yœŸD/ħûsÚ?ġh6$tEùŜ$Á"ĝġ=iÀJ™*ˆ$ueѧÙË …|2Ü3ĵŜ-ät!—0ġĥèÏ£Ëìŭy×c_”;˙µŒ]Şîl9ÈkÒyÂ+I_U¨´ŭĠ<”>n Òn9Ċ<ÁQB”Œ\â-ŻĊ,ô µ–¸ċSû訏$œ ݃ƒt#ÖŻÒ5ä/,ĈGœhmĊê‰ ġĦïé#–tA&i‡÷şRëĴzµ_)Ĵz‚xr’0µa Nàáqċ™Ż›xücT1ɁĠĝ‘-0†1ĤZĤĜ ı)ÓÁNżš4nŸJ¸<¸uÔèĠċWÔ'’ÈúL;žûû=äTp€:Ô+]Ȇ)Ä 1ÇËpÒ°*Ñ4¸B#°›Í˘lŬĵÊ*vĠĴ°{‘)Şû1çlS˙ğñ?ûƒ „­Ñâ(Ċ†¸ċ0K†wçşüe4çú ’N§?eĞıÙwAċŒ%ŝ2·ċċñü#Œq iÛëŞ÷zJhMä'çï´=#wkûĈ´pïïíìúúÑğ½‹óK~ħ|+—l‹¤fıJ´ˆĉ6PLÊ„cñϑżs^—ŝĈ;›‘u; RàKdêż¤PĈ"EHF²ñ„^=Ê|m˘ÌÑöè)3‰'ŭF­т4öĠpVÄ/8 …m-ÙË b.P#;Hr]яni'*ž£(@}*§ïlü0 ÑÀ ĦÚĈ½íe&ġԋ` 6‡;frĊÈ™ĈŒ”2˜ĉ׌NU~˜°gH=GĊĉbÖèµ´8l|Â=g˙úi)/7AĞA‰÷a­Ŭı”X&+ZŬ²oĴĴ¸dߪEÈ…‘Eßf‚Ï@Œ vÊ_;Br8ô2ĤAßÈ}”Ô[ —“Ähä,zߟvÁ­-­Û@ô [‚ĉWjÈ×g-Ž`÷ş}vI²aiâl°!AZ‡£)_O˘™[K-¤§Žv×tçÇC¨÷HŬwž›„¸ÈíuŠA·²+ŭqÉâ éŝıé‰mĵ°í…Òg(ĝğÛo'kduÊââĥ$ ŽÎ{új>ÏnCɝëNÒT0MYú™f—Ġ•E7q<ÊüTdùk·Ÿ3zËM’Êë ûvŞ"ŸHğÄL>*ïsüçßĥË\lĠT)Ӗ$úŭq—F‡ô›ċ?‚ƒÉëÌĊ¤ñ·8ê¨ nòÀĝ\/L×D ûZʅ+ĝÉìŻü$¨Ìş]”Οôiï^^ĜPnĵ²(ġIŻÚGmğr˘‡Ĵë¤B—ˆ”"ÊcÏÈíPĥ”žşíŻ­Ŭúp=(ì–Ĝ+Œ+gÔ8…BÙ7’şöb4Άpî(iIˆ›k·™úù>óì½üÌâÂïĜvI™Wì7ċŬ2†§­ñâ@ĜÂ8jòû˙‚d9 endstream endobj 253 0 obj << /Producer (pdfTeX-1.40.20) /Creator (TeX) /CreationDate (D:20191204045328+01'00') /ModDate (D:20191204045328+01'00') /Trapped /False /PTEX.Fullbanner (This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) kpathsea version 6.3.1) >> endobj 169 0 obj << /Type /ObjStm /N 83 /First 759 /Length 4441 /Filter /FlateDecode >> stream xÚí•™Ñ'.3„S2όUeʌSĥ§¤‚ PVRaLf3˜X˜h Xħ΀(°êTÀŸ9'q%dÎ ĦòĴ0¨-%3Ÿ§”Êĵ Vt¤SÊfÁÁ ŠLĉyNš„™ĥÀ—[Pœv8•+”7/hj‚ā‰ĠyOœƒ&€™7h XÁLĉá ÒıÌÀD0˘WVá p)jVÀĥÔ@ f GmLŠ4Ž{!GóeÒäÈJ荴H&ʃRàÓ áÓÂiôŞ&…G)áÏ- jszÀİş ?ZOƒ§ WXƒd€cim<àĤ™ĊŬgž<½Ċò?8ċr—÷”EHh`Ç)ğxÖİ"ô~ŝı'>ÜŜT™8ü>y:/çUOŸĵÍdï˙Hv_LĈóžxQOgóƒër í‰7e|u÷ÄÇz0żže_€ë<³`—üÎ˙~òŠm5ğŬyíÛ5éöÄéâbN!_²GŒ=Żfŭi}3ŸL!ò}O<+gne„ÇŭÉ _QlʒxÍnO<Ż//Ği5îW ‹VbvSö+Q}ïˑĝc1™Wƒ‹Ħ/FĠtV_Ċ`2–SqSMûĠx.ÊÌfċxÀÀ3@:ĴÄM (‡ĠċœgÓúê@gójZω›áb&ú“Ѩ×·7×ĠħĠ“˜ ËÙµĝğšNÄd\‰ù_1żžV•¸œ,Ĥâ²ŝ³³úğ˜U™ŠŽkìO†“1,jž ĞÙLT,ÊĦ¸šV`)pWÍĉ5ì•sħ/ž‰ñ\Šâx%ŽÄkñ‹x#ŜŠwâXœˆ_Ċ{q*>ˆ3ñ›ĝ(>‰sñY\LËŝ·jN2]À”YĞ|ŭşî×Óŝb$¨?™VÀA |—âBôĊ@€,âJ\‹Zü.‰Ħ‰ħ˜ˆñ‡˜Š™˜‹…ĝSü%‹[ñ7aŻ"Ċ)?%”ĉġpP‰‹ĊpXÍĊátç!.À+Äċp2­Ç­-i­ë›Y=ƒòê ´hiĉ˙rX}G£ÌŻ' 2îiżœ‚òġ0WLJ ÉÏĵŸR>fÌzF·ĵUŞĥÑK9Ÿ–ƒjTNż‰Ù #|tÒ*âoŜ?ÔàĠ(aêƒÉ_cAn‹8„ó˘ż˜˘÷ߊ[pİ‹éä[5FeÏŞ>yK‹Ĥ?ıı´ĤƒK4r\ñá*9\µ§j†İĤN`êĤ5Œ™Ü„Á' >IÀ' =5¨˙Ĵq•°àƒ >¸H.Ú·ĵ9'%Ü6Ë_›ìA)ĉçŸ!?BY 0K½‡ıNJ€§XĜ¸8‡LgŠfNΓĝt|ñ;a:an× w4¢À´€'ÓI˙´šC–'Ï_@ĴϳŻËıì¤ĵ‚~œAXÌ LQœßW3Șװˆ· ôòÙä{ö…l°{ jo䞐kO0WÍİÒH2ĉeŜ,gŞ‹‹b×EÑO#Jb§˘<˜eżÎ²û÷°  Xžc ™·fqTĈ‰Eíc„ôë.ĉws1Żìbİdiˆm2ñ½'Ñ­Ëhž\ĈT˜DĈ%ıRwrŬuż\ë—ip˙RŸÜrç<­½T.×ċ ğȅ_ü˙ċZóCü-êIäÚrn–ċÁüûuŝŬ“óßòüP6\góéŬçžl~ñÁì™Ż½/EQìÁqynó|mvŸ¤#ğğR6Ż6ôş•¸{vRîÉ8nUĝ‹0A:·WÄÑ{żâH†ħvÏĊ‘!HTöT3&L2µ"ĝ=›9ëPŸÊÁĵ(䞁9AJXÀ@ǘ=üµ GÇxœÊœ{ĝshž#ˆÊAp(L@6ĵ$FM‡rb{Ê Ĉà™”ŜÓÀĥ‡ħPĤr똨ÌN³al´ŻIE<ŞÖulĞx˜ĞYP@ñ .ş˙˙ÛùôˆfÉŞŜK´?sĤs´›Ö´Ëzß2z-÷ß ÀFÏ=‡ÇáÙsÀÛÈ9=S°İyÉ.:Ή>Á˜}GĈ˜îj‹ ĥğ8½Ïq&#ÓJax0EĞ(³Ċ`˜pVQèj\%8íI u€r8YşN0q¤ùHAŒ ²P¤À4†€xÒGQ™ê5ĠJ*Ż ÍÈníSÔwğ–žÁUĥ[(zN˘§dkħè=ş9íEğCÒÁµ‰c9YX·TaaÍâµWHĵg<è VµÌ¤kxRG/ԁ.Uĵöĵ ¨ŸJ(rô,°êm è4ädµu‡q€:òWëIËt7y…X…ğné–âħˆîQ g@B°Ħ#Ŭ¸Ĉ‘ä95À 4]ĠôÈp 1” àîkÀá % Mw¨CMZ‰ëàOt¨5òğ|cŜçO%I;MŬĤ@ëñSÚ"ç;ŸVɒĴáèñÄ#ÂiÇ~AÑÁ) ˙é4CxxÎFì3'ĈŸlJU‘<ˆ‰h•Ĉ4Ċ£†Ô#¸CAni·Žè–E/ ]6´Z4û2—hi)Žë n4şġ2RdhžwP†žM‘`hgwsxŸ1bL8# ´¤pŸYÖ"ĵÚYN8­)x ’. 0OAÎ(IèÁ(`šÂ’SğĠDXTşżlœ{76𣀍ou†àé*žòè|g+¤“j#•È‚sBJI?ùbKì‹ĞKV8ò […ε°ĵo,òaà„VêöXC<#t ¤Ġš§@óI¸i.–6şoWŜ¤u>‡\Qe™DI‡ÂdşY •Ŝ>6İ>iïżà6 ?. ;AWg‰ Y´F2OĴGĞK6UŽh ğ Í:`ÚÓ\:ħA’]€ç<eĵÍ44‹ÊäQKLŭÚRuħ½ò畜|E²Fċqñfé ˆA– 2u+h<i!4ÏR(c+D1Ċ@1ÁóMÜmû‹§[."·”Ĉyä–ÎU,ı 4Ċb€ŬËŞà,`şeWĦ“!G9²†ÌéA<ù&V 2Î=_ ¤xäĞLXJŝĈ\X˜s—ÌW²ĥħ&Û&Î^˘5y5µħË]ğÂĥˆ'[h†0TRK#Ù&Ŭe]ñœGâüLPb(,p‹GŒˆù+ ¸ĥQq‡#Ż-ĦÛ\S rçˆkN$š ´â+×tRQLCĵ‘_>“7•HĜüq#ĥċık,UPÀ˳î Ñm‘…vĤĠmí> 5+] ż/ó‰Š÷4%Píİ£y·ÇìòœGĤÇ8BÑQMFĴîr ehÍúGŽŒ' ˆ.cĠÛ¸‚Äï3†ï Ž…ż PĦ¸Â œ!µ*¨•:<„/^9´ħÒé8÷X[‰Ġ>Sˆ4i T˧+ÖáE‘jb}ž0f“;ş0ğı*W&žċuş˘n EًÎĤ8 F[CÁÍÁl:HÏż‹>hǜkwÄà›”úşÒtĠġ6ñïrïÊìĵ~öëëƒ˙;xûì“ÌacX^Í2ÏèçŸĴË~˘Ŝ/l¤jYìϰS4ċÍ+ê•ğž@2¸÷“ÄÍ£y9ĴûûĜş”úÓy5ú ËàžĝAÊ×ċüŸ"ìêz‡°sèL|¤~ŸžĦ´S¨;–°ˆÛ”.ĊeÍ NÔê„Bħ…¤nۄ¨$éÄâ&İ›Ĥy û‡¸3jğĤ°*é'ú_Ö׋¤TÊĴw…m×˙éñÇ_Ŝ°ŝĠŭkÔżµé4úϽô˙2êżÑ>ömuŬVÜ%voġnĠ)ömÑ+5Ĵ-+×í˘Ü“żż˙Ê}{´ÍıµŠÎ˙ċêğ”ûú4Ğ·P‰vµ\×îğĥwŽÚé@Ë2úFFñöÉĞŭc@ŬKäċ›E–ÈÊ-‹ İÈôĜŠĴi‹ÈÎKı*–Îw1ŬËó³ŻIŽgÛl'mۈ‰ c[C#mY(ı‹PgŻ^‡ĈyżM$“7ĥÉcÜħu~àŒi³ĉöVÍ2iG½ÇġË-¨Ŭ-ÁWqì}…+˙_w7Çpċñû–ëcS˙kĵS¨ûġ!ġŽŽÈ¤o’o˘ĤÁµğ“¸µëŜ7“n˙=Xĵùüĉù/çdĉûíҁÍ1k8ïw YıÍ-ìfO8Zıî?Ĉ ż1h×6‡flŒĥŬZŬe?oUxğAyv—0:8~wzx@ê*ĥ¨Ksċ˘ ÷Ž"ğE]6½tžêî€tvJİ‘žğk[?n‘cò²Ĝ;e³ç/OÎPì-RĞ˘)Ԕz’Ë£Ĝ~yÄ.òeqşÄġúó/ŸÎE^ŭŭÊ~³E›"4/òÇ$­N6—ŠÓU0$XòK♝ĜÇ·/^½À˜>}³í²w޵—~Tíîa°ġÛ~ı´Ĉh˙”è!:0Ċ1Gñ­ì”÷?½==˙ŒZ9ßĤ@ ‡ZÁĴ^Ĝ­–Efò­ji^•óëôġƒĉµ€6ÇĊlA­ċË ;Ġ5'ŸÏ?aĜ^’ÚÖ-Ì•¤ÎßÓ/–k€Î/š,°’ÜğoX[r÷CÒ6%ä˜|ïLıf§ĴqĝÛˏ/OPóĥV_ xHĝ• .Ñğ”KzÇÇîŠQêéjŻTëüŠLŞùî%—ğT|ÁjJÊĵɛ3w)µĜĴÔġĤÚ7£Ö~DX~“ _Σ˘î/ıôÒ*0ô…ïĝíL~ġ;ô*ùâŝäeĜüê·ÌUòa•ĵ˗^y³ ù(í›Ò }­Öè§âğTzµ;ù•ï4ĞÄ͚îċVÓçğS_İœ7żÂ×Ç/t ñ"!ŝÑWêUÑ×ÜÎĜ%ê&Ħw§\_=$Ä1‘ĥF7ğÓ^-nV¨u§èŜ'ÔŭîÔW‹ˆUêk>·oİìûj_îv¸mÜîäWÓĜ*y˙ŻKÉoȟĜ:–ĉ½ŻÓD‡ú̲/ÜÉ-½ì?28ÊĝwşŻÁÍ?İdœÜ3ŜËĝĠ•Ìr§Ğ“Ĉî_ˆD¸kߏŸáÁdìm•ħ+WÊH#jFŞHƒĉ{¨#İ#.ŝĉ…/‘ÇÏhNĉ£aı]WFëéôYDE¤QìBĉK4|Äċ£>Êâzˆ4Âi˜m4?g@™›ĝɝÜĝ,ĝN2.S¤Œ‚òɊĈà‘Ù¸_·ş‹fñġ‚ĤŸúNÉ]+j –¨•C%Ô¨“ĞŸn Ì?yâö endstream endobj 254 0 obj << /Type /XRef /Index [0 255] /Size 255 /W [1 3 1] /Root 252 0 R /Info 253 0 R /ID [ ] /Length 694 /Filter /FlateDecode >> stream xÚ%“9L”Q…ïùg]DY]Ĝ„T6QQ\ÁX-Œ•AHL(0FŒ1 ……ˆP Ĉ b,´pݰ3jkb˘8çLóċž{ï˙ŝ÷î;ÏÌlŬ3 €0˜%Y8rÍD0°"yˆUáÁ0¤\q€ı(Âó}QĦ‘2šÀbî+×JıˆĊ͇”ó‰…@ K˜Tß>â s›ˆxXڒ ” D"ċ.F)DċF‰dÊrb7e‘ +xİUÚ)7é°òNí` ‘ОïŞ/Sı,"Ö°Î ż cäİ ùD6Ĵ#O2‡ĜJäı°ëŻU¨" `ƒ³úo ÑÉ\!QD”ÛXĜ˨˜ĜNì$v°P¨”(#tJž- ³i•D$ŞaWjúV+×µŻ,P˙;ğyWRwı6y[{n£¤M°é)µè[`>Ş‹R·Ġ{üD-²J;lqZR‡î€½˜“—ÜÓv}ïRG­’´ĵKĉ˘${úŜe ‹ÊÑò.XŞ‘¤³]6ì½$=îr Ŭñ¸‚~vô³“•i`'ïÒĊxyy%Àúĵ˘RxMıŠÊà…˘ ŜÄÉ x³‘ UÂû·`u3 P‚˘jĝĈŝ„ K$ká[½¤¨ïŻáFFROR ‘\?ü£+˙ԌŭŠĦ endstream endobj startxref 298397 %%EOF music-1.1.16/doc/eventsource.10000644000175000017500000000755213571617503013053 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH EVENTCOUNTER 1 "March 5, 2009" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME contsink, eventcounter, eventgenerator, eventlogger, eventselect, eventsink, eventsource, messagesource, viewevents \- utility applications which can be used together with other MUSIC-aware applications in multi-simulations .SH SYNOPSIS .B contsink .RB [ "\-tdih " ] .br .B eventcounter .RB [ "\-tbmh " ] .I "n_units prefix " [ .I suffix ] .br .B eventgenerator .RB [ "\-tbfmih " ] .I "n_units" .br .B eventlogger .RB [ "\-tlbmih " ] .br .B eventselect .RB [ "\-th " ] .I n_units units .br .B eventsink .RB [ "\-tmih " ] .I "n_units prefix " [ .I suffix ] .br .B eventsource .RB [ "\-tbmih " ] .I "n_units prefix " [ .I suffix ] .br .B messagesource .RB [ "\-tbh " ] .I "prefix " [ .I suffix ] .br .B viewevents .RB [ "\-tshT " ] .I "configfile" .SH DESCRIPTION This manual page documents briefly a set of MUSIC-aware utility applications provided together with MUSIC library. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBeventcounter\fP receives spikes through a MUSIC input port, counts all spikes for each index and writes the frequencies to a set of files with names .I "prefix rank suffix" .PP \fBeventgenerator\fP generates spikes from a Poisson distribution. .PP \fBeventlogger\fP logs spikes from a MUSIC port. .PP \fBeventselect\fP receives events from an input port of width .I "n_units " and sends events for the subset of id:s specified in the file .I "units" .PP \fBeventsink\fP receives spikes through a MUSIC input port and writes these to a set of files with names .I "prefix rank suffix" .PP \fBeventsource\fP reads spikes from a set of files with names .I "prefix rank suffix" and propagates these spikes through a MUSIC output port. .PP \fBviewevents\fP reads spikes from a MUSIC input port and displays them as a 3D graphical representation. .SH OPTIONS The utilities follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. .TP .B \-b ticks, \-\-maxbuffered ticks Specify maximal amount of data buffered. .TP .B \-f freq, \-\-frequency Specify average frequency (default 10 Hz). .TP .B \-h, \-\-help Show usage information. .TP .B \-i, \-\-indextype Select global (default) or local indices. (Used for testing and benchmarking purposes.) .TP .B \-l latency, \-\-acclatency latency Specify acceptable data latency (s). .TP .B \-m type, \-\-imaptype type Select linear (default) or roundrobin index map. .TP .B \-s scaling, \-\-scaletime scaling Specify real time to simulated time scale factor (s). If omitted, the visualization runs at full speed. .TP .B \-t timestep, \-\-timestep timestep Specify time between tick() calls (default 0.01 s). .TP .B \-T title, \-\-title title Specify window title. .SH SEE ALSO .BR music (1) .\" .BR baz (1). .\" .br .\" The programs are documented fully by .\" .IR "The Rise and Fall of a Fooish Bar" , .\" available via the Info system. .SH AUTHOR MUSIC was written by Mikael Djurfeldt and –rjan Ekeberg for INCF. viewevents was written by Johannes Hjorth for INCF. .PP This manual page was written by Mikael Djurfeldt , for the Debian project (but may be used by others). music-1.1.16/doc/viewevents.10000644000175000017500000000755213571617503012710 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH EVENTCOUNTER 1 "March 5, 2009" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME contsink, eventcounter, eventgenerator, eventlogger, eventselect, eventsink, eventsource, messagesource, viewevents \- utility applications which can be used together with other MUSIC-aware applications in multi-simulations .SH SYNOPSIS .B contsink .RB [ "\-tdih " ] .br .B eventcounter .RB [ "\-tbmh " ] .I "n_units prefix " [ .I suffix ] .br .B eventgenerator .RB [ "\-tbfmih " ] .I "n_units" .br .B eventlogger .RB [ "\-tlbmih " ] .br .B eventselect .RB [ "\-th " ] .I n_units units .br .B eventsink .RB [ "\-tmih " ] .I "n_units prefix " [ .I suffix ] .br .B eventsource .RB [ "\-tbmih " ] .I "n_units prefix " [ .I suffix ] .br .B messagesource .RB [ "\-tbh " ] .I "prefix " [ .I suffix ] .br .B viewevents .RB [ "\-tshT " ] .I "configfile" .SH DESCRIPTION This manual page documents briefly a set of MUSIC-aware utility applications provided together with MUSIC library. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBeventcounter\fP receives spikes through a MUSIC input port, counts all spikes for each index and writes the frequencies to a set of files with names .I "prefix rank suffix" .PP \fBeventgenerator\fP generates spikes from a Poisson distribution. .PP \fBeventlogger\fP logs spikes from a MUSIC port. .PP \fBeventselect\fP receives events from an input port of width .I "n_units " and sends events for the subset of id:s specified in the file .I "units" .PP \fBeventsink\fP receives spikes through a MUSIC input port and writes these to a set of files with names .I "prefix rank suffix" .PP \fBeventsource\fP reads spikes from a set of files with names .I "prefix rank suffix" and propagates these spikes through a MUSIC output port. .PP \fBviewevents\fP reads spikes from a MUSIC input port and displays them as a 3D graphical representation. .SH OPTIONS The utilities follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. .TP .B \-b ticks, \-\-maxbuffered ticks Specify maximal amount of data buffered. .TP .B \-f freq, \-\-frequency Specify average frequency (default 10 Hz). .TP .B \-h, \-\-help Show usage information. .TP .B \-i, \-\-indextype Select global (default) or local indices. (Used for testing and benchmarking purposes.) .TP .B \-l latency, \-\-acclatency latency Specify acceptable data latency (s). .TP .B \-m type, \-\-imaptype type Select linear (default) or roundrobin index map. .TP .B \-s scaling, \-\-scaletime scaling Specify real time to simulated time scale factor (s). If omitted, the visualization runs at full speed. .TP .B \-t timestep, \-\-timestep timestep Specify time between tick() calls (default 0.01 s). .TP .B \-T title, \-\-title title Specify window title. .SH SEE ALSO .BR music (1) .\" .BR baz (1). .\" .br .\" The programs are documented fully by .\" .IR "The Rise and Fall of a Fooish Bar" , .\" available via the Info system. .SH AUTHOR MUSIC was written by Mikael Djurfeldt and –rjan Ekeberg for INCF. viewevents was written by Johannes Hjorth for INCF. .PP This manual page was written by Mikael Djurfeldt , for the Debian project (but may be used by others). music-1.1.16/doc/messagesource.10000644000175000017500000000755213571617503013356 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH EVENTCOUNTER 1 "March 5, 2009" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME contsink, eventcounter, eventgenerator, eventlogger, eventselect, eventsink, eventsource, messagesource, viewevents \- utility applications which can be used together with other MUSIC-aware applications in multi-simulations .SH SYNOPSIS .B contsink .RB [ "\-tdih " ] .br .B eventcounter .RB [ "\-tbmh " ] .I "n_units prefix " [ .I suffix ] .br .B eventgenerator .RB [ "\-tbfmih " ] .I "n_units" .br .B eventlogger .RB [ "\-tlbmih " ] .br .B eventselect .RB [ "\-th " ] .I n_units units .br .B eventsink .RB [ "\-tmih " ] .I "n_units prefix " [ .I suffix ] .br .B eventsource .RB [ "\-tbmih " ] .I "n_units prefix " [ .I suffix ] .br .B messagesource .RB [ "\-tbh " ] .I "prefix " [ .I suffix ] .br .B viewevents .RB [ "\-tshT " ] .I "configfile" .SH DESCRIPTION This manual page documents briefly a set of MUSIC-aware utility applications provided together with MUSIC library. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBeventcounter\fP receives spikes through a MUSIC input port, counts all spikes for each index and writes the frequencies to a set of files with names .I "prefix rank suffix" .PP \fBeventgenerator\fP generates spikes from a Poisson distribution. .PP \fBeventlogger\fP logs spikes from a MUSIC port. .PP \fBeventselect\fP receives events from an input port of width .I "n_units " and sends events for the subset of id:s specified in the file .I "units" .PP \fBeventsink\fP receives spikes through a MUSIC input port and writes these to a set of files with names .I "prefix rank suffix" .PP \fBeventsource\fP reads spikes from a set of files with names .I "prefix rank suffix" and propagates these spikes through a MUSIC output port. .PP \fBviewevents\fP reads spikes from a MUSIC input port and displays them as a 3D graphical representation. .SH OPTIONS The utilities follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. .TP .B \-b ticks, \-\-maxbuffered ticks Specify maximal amount of data buffered. .TP .B \-f freq, \-\-frequency Specify average frequency (default 10 Hz). .TP .B \-h, \-\-help Show usage information. .TP .B \-i, \-\-indextype Select global (default) or local indices. (Used for testing and benchmarking purposes.) .TP .B \-l latency, \-\-acclatency latency Specify acceptable data latency (s). .TP .B \-m type, \-\-imaptype type Select linear (default) or roundrobin index map. .TP .B \-s scaling, \-\-scaletime scaling Specify real time to simulated time scale factor (s). If omitted, the visualization runs at full speed. .TP .B \-t timestep, \-\-timestep timestep Specify time between tick() calls (default 0.01 s). .TP .B \-T title, \-\-title title Specify window title. .SH SEE ALSO .BR music (1) .\" .BR baz (1). .\" .br .\" The programs are documented fully by .\" .IR "The Rise and Fall of a Fooish Bar" , .\" available via the Info system. .SH AUTHOR MUSIC was written by Mikael Djurfeldt and –rjan Ekeberg for INCF. viewevents was written by Johannes Hjorth for INCF. .PP This manual page was written by Mikael Djurfeldt , for the Debian project (but may be used by others). music-1.1.16/doc/Makefile.in0000644000175000017500000004374313571626611012476 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 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@ subdir = doc ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.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 CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__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 am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(dist_man1_MANS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(dist_man1_MANS) $(srcdir)/Makefile.in ChangeLog 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@ BINDIR = @BINDIR@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXAMPLESDIR = @EXAMPLESDIR@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ FGREP = @FGREP@ GREP = @GREP@ HAVE_PYTHON = @HAVE_PYTHON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LAUNCHSTYLE = @LAUNCHSTYLE@ 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@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPI_CFLAGS = @MPI_CFLAGS@ MPI_CXXFLAGS = @MPI_CXXFLAGS@ MPI_LDFLAGS = @MPI_LDFLAGS@ MPI_UTILS = @MPI_UTILS@ MUSICCONFIGDIR = @MUSICCONFIGDIR@ MUSIC_ANYSOURCE = @MUSIC_ANYSOURCE@ MUSIC_HAVE_LONG_LONG = @MUSIC_HAVE_LONG_LONG@ MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER = @MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER@ MUSIC_HAVE_SIZE_T = @MUSIC_HAVE_SIZE_T@ MUSIC_ISENDWAITALL = @MUSIC_ISENDWAITALL@ MUSIC_USE_MPI = @MUSIC_USE_MPI@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPTIONAL_UTILS = @OPTIONAL_UTILS@ 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@ PKGDATADIR = @PKGDATADIR@ PKGEXTRABINDIR = @PKGEXTRABINDIR@ PYBUFFER_CPPFLAGS = @PYBUFFER_CPPFLAGS@ PYBUFFER_CXXFLAGS = @PYBUFFER_CXXFLAGS@ PYEXECDIR = @PYEXECDIR@ PYMUSIC_CPPFLAGS = @PYMUSIC_CPPFLAGS@ PYMUSIC_CXXFLAGS = @PYMUSIC_CXXFLAGS@ PYMUSIC_SUBDIR = @PYMUSIC_SUBDIR@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ ROS_SUBDIR = @ROS_SUBDIR@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTDIR = @TESTDIR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ dist_man1_MANS = music.1 musicrun.1 music_tests.1 contsink.1 eventcounter.1 \ eventgenerator.1 eventlogger.1 \ eventselect.1 eventsink.1 eventsource.1 messagesource.1 viewevents.1 EXTRA_DIST = music-manual.pdf figures/dataconvergence.asy figures/datamapping.asy \ figures/messysim.asy figures/multisim.asy figures/receiverport.asy \ figures/remapping.asy figures/remapping2.asy figures/senderport.asy \ figures/ticklogic.asy figures/ticklogic2.asy figures/timeline.asy \ music-c-int.h music-manual.tex music-rfc.bib figures = figures/multisim.pdf \ figures/datamapping.pdf \ figures/ticklogic.pdf \ figures/ticklogic2.pdf \ figures/timeline.pdf \ figures/remapping.pdf \ figures/remapping2.pdf CLEANFILES = music-manual.aux \ music-manual.bbl \ music-manual.blg \ music-manual.idx \ music-manual.ilg \ music-manual.ind \ music-manual.lof \ music-manual.log \ music-manual.toc \ music-manual.stamp1 \ $(figures) linked_mans = eventgenerator.1 eventlogger.1 eventselect.1 eventsink.1 \ eventsource.1 viewevents.1 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-man1: $(dist_man1_MANS) @$(NORMAL_INSTALL) @list1='$(dist_man1_MANS)'; \ list2=''; \ 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='$(dist_man1_MANS)'; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ } | 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) tags TAGS: ctags CTAGS: cscope cscopelist: 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 $(MANS) installdirs: for dir in "$(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-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic 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-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 Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-man uninstall-man: uninstall-man1 .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-man1 install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags-am uninstall uninstall-am uninstall-man \ uninstall-man1 .PRECIOUS: Makefile music-manual.pdf: music-manual.bbl music-manual.ind pdflatex music-manual pdflatex music-manual music-manual.bbl: music-manual.stamp1 bibtex music-manual music-manual.ind: music-manual.stamp1 makeindex music-manual music-manual.stamp1: music-manual.tex music-rfc.bib music-c-int.h wavetest.music waveproducer.cc waveconsumer.cc $(figures) test -f music-manual.tex || ln -s $(srcdir)/music-manual.tex test -f music-rfc.bib || ln -s $(srcdir)/music-rfc.bib test -f music-c-int.h || ln -s $(srcdir)/music-c-int.h pdflatex music-manual touch music-manual.stamp1 wavetest.music: ln -s $(srcdir)/../examples/wavetest.music waveproducer.cc: ln -s $(srcdir)/../examples/waveproducer.cc waveconsumer.cc: ln -s $(srcdir)/../examples/waveconsumer.cc $(figures): figures/%.pdf : figures/%.asy test -d figures || mkdir figures asy -f pdf -o $@ $< $(linked_mans): cd $(srcdir) && ln eventcounter.1 $@ # 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: music-1.1.16/doc/contsink.10000644000175000017500000000755213571617503012341 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH EVENTCOUNTER 1 "March 5, 2009" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME contsink, eventcounter, eventgenerator, eventlogger, eventselect, eventsink, eventsource, messagesource, viewevents \- utility applications which can be used together with other MUSIC-aware applications in multi-simulations .SH SYNOPSIS .B contsink .RB [ "\-tdih " ] .br .B eventcounter .RB [ "\-tbmh " ] .I "n_units prefix " [ .I suffix ] .br .B eventgenerator .RB [ "\-tbfmih " ] .I "n_units" .br .B eventlogger .RB [ "\-tlbmih " ] .br .B eventselect .RB [ "\-th " ] .I n_units units .br .B eventsink .RB [ "\-tmih " ] .I "n_units prefix " [ .I suffix ] .br .B eventsource .RB [ "\-tbmih " ] .I "n_units prefix " [ .I suffix ] .br .B messagesource .RB [ "\-tbh " ] .I "prefix " [ .I suffix ] .br .B viewevents .RB [ "\-tshT " ] .I "configfile" .SH DESCRIPTION This manual page documents briefly a set of MUSIC-aware utility applications provided together with MUSIC library. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBeventcounter\fP receives spikes through a MUSIC input port, counts all spikes for each index and writes the frequencies to a set of files with names .I "prefix rank suffix" .PP \fBeventgenerator\fP generates spikes from a Poisson distribution. .PP \fBeventlogger\fP logs spikes from a MUSIC port. .PP \fBeventselect\fP receives events from an input port of width .I "n_units " and sends events for the subset of id:s specified in the file .I "units" .PP \fBeventsink\fP receives spikes through a MUSIC input port and writes these to a set of files with names .I "prefix rank suffix" .PP \fBeventsource\fP reads spikes from a set of files with names .I "prefix rank suffix" and propagates these spikes through a MUSIC output port. .PP \fBviewevents\fP reads spikes from a MUSIC input port and displays them as a 3D graphical representation. .SH OPTIONS The utilities follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. .TP .B \-b ticks, \-\-maxbuffered ticks Specify maximal amount of data buffered. .TP .B \-f freq, \-\-frequency Specify average frequency (default 10 Hz). .TP .B \-h, \-\-help Show usage information. .TP .B \-i, \-\-indextype Select global (default) or local indices. (Used for testing and benchmarking purposes.) .TP .B \-l latency, \-\-acclatency latency Specify acceptable data latency (s). .TP .B \-m type, \-\-imaptype type Select linear (default) or roundrobin index map. .TP .B \-s scaling, \-\-scaletime scaling Specify real time to simulated time scale factor (s). If omitted, the visualization runs at full speed. .TP .B \-t timestep, \-\-timestep timestep Specify time between tick() calls (default 0.01 s). .TP .B \-T title, \-\-title title Specify window title. .SH SEE ALSO .BR music (1) .\" .BR baz (1). .\" .br .\" The programs are documented fully by .\" .IR "The Rise and Fall of a Fooish Bar" , .\" available via the Info system. .SH AUTHOR MUSIC was written by Mikael Djurfeldt and –rjan Ekeberg for INCF. viewevents was written by Johannes Hjorth for INCF. .PP This manual page was written by Mikael Djurfeldt , for the Debian project (but may be used by others). music-1.1.16/ChangeLog0000644000175000017500000001163213571617503011426 000000000000002014-07-22 Ekaterina Brocke * Version 1.1.15 2014-07-21 Mikael Djurfeldt * Version 1.1.14 2014-07-21 Mikael Djurfeldt * Version 1.1.13 2014-07-17 Mikael Djurfeldt * Version 1.1.12 2014-07-16 Mikael Djurfeldt * Version 1.1.11 2013-07-11 Mikael Djurfeldt * Version 1.1.9 2012-09-20 Mikael Djurfeldt * Version 1.1.8 * configure.ac: New configuration options --enable-isend, --enable-anysource. 2012-08-24 Mikael Djurfeldt * PORTING: New file. 2012-08-23 Mikael Djurfeldt * Version 1.1.7 2012-08-22 Mikael Djurfeldt * Version 1.1.6 2012-08-21 Mikael Djurfeldt * Version 1.1.5 2012-08-20 Mikael Djurfeldt * Version 1.1.3 2012-08-13 Mikael Djurfeldt * Version 1.1.2 2012-08-07 Mikael Djurfeldt * Version 1.1.1 2012-08-03 Mikael Djurfeldt * configure.ac: Updated to version 1.1.0. * configure.ac: Generate music/version.hh.in. 2012-03-15 Mikael Djurfeldt * configure.ac (AM_PATH_PYTHON): Added. * music: New directory. Python interface for configuring MUSIC. 2012-01-30 Mikael Djurfeldt * configure.ac: Make sure that MPI libraries are listed at the end of the command line in AC_CHECK_FUNCS. 2011-03-04 Mikael Djurfeldt * configure.ac: Support for Cray XE6. 2010-07-28 Mikael Djurfeldt * Release 1.0.7 2009-10-25 Mikael Djurfeldt * Release 1.0.6 2009-10-24 Mikael Djurfeldt * Release 1.0.5 2009-10-13 Mikael Djurfeldt * configure.ac: Support for MPICH 2 (Thanks to Eilif Mĵller.) 2009-04-01 Mikael Djurfeldt * Release 1.0.4 2009-03-13 Mikael Djurfeldt * Release 1.0.3 2009-03-12 Mikael Djurfeldt * Release 1.0.2 2009-03-11 Mikael Djurfeldt * configure.ac: Added AM_MAINTAINER_MODE. 2009-03-09 Mikael Djurfeldt * Makefile.am (debian-source): Copy manual source into debian source tree. 2009-03-08 Mikael Djurfeldt * Release 1.0.1 * configure.ac (CXXFLAGS): Added -pedantic -Wall -Wno-long-long. 2009-03-07 Mikael Djurfeldt * configure.ac: Renamed package to incf-music (since people in the Debian community has complained about the too generic package name). 2009-03-06 Mikael Djurfeldt * Makefile.am (EXTRA_DIST): Added debian subdirectory to distribution. 2009-03-03 Mikael Djurfeldt * Release 1.0 2009-02-11 Mikael Djurfeldt * mpidep: New directory for MPI dependent code. * configure.ac: Generate mpidep/Makefile. * configure.ac: Test if ompi_comm_free exists instead of ompi_comm_create which doesn't exist in OpenMPI 1.3. * configure.ac: Pass variables to be substituted one-by-one to AC_SUBST. 2008-11-03 Mikael Djurfeldt * configure.ac (OPTIONAL_UTILS): New variable. Add viewevents conditionally depending on existence of GL/glut.h. 2008-10-16 Mikael Djurfeldt * configure.ac: Use $CXX instead of $MPI_CXX in tests for configuration of MPI implementation dependent code. 2008-09-23 Mikael Djurfeldt * configure.ac: Setup MPI_C; Test for MPI::Init_thread. 2007-11-07 Mikael Djurfeldt * configure.ac: Don't try to build shared libraries on BGL. * autogen.sh, aclocal.sh: Suppress error messages from which. 2007-11-06 Mikael Djurfeldt * configure.ac: Rewritten to make better use of AC_PROG_CXX; Logic added to manage subdirectory rudeconfig directly (tests moved from original rudeconfig configure.ac). 2007-11-02 Mikael Djurfeldt * configure.ac: Test for ompi_comm_create (used to identify OPENMPI); Moved configuration of rudeconfig to beginning. * Makefile.am (SUBDIRS): Added rudeconfig. 2007-11-01 Mikael Djurfeldt * configure.ac: Added AC_CONFIG_SUBDIRS(rudeconfig). * rudeconfig: Added. 2007-10-25 Mikael Djurfeldt * configure.ac: Added test for rts_get_personality; Generate utils/Makefile. * Makefile.am (SUBDIRS): Added utils. 2007-10-18 Mikael Djurfeldt * configure.ac: Introduced guessing of host MPI framework. Handle openmpi version of mpiCC. 2007-09-13 Mikael Djurfeldt * AUTHORS, COPYING, INSTALL, NEWS, README, ChangeLog, configure.ac, Makefile.am, autogen.sh, aclocal.sh: New files music-1.1.16/missing0000755000175000017500000001533613571626611011260 00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1996-2018 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: music-1.1.16/mpidep/0000755000175000017500000000000013571740113011201 500000000000000music-1.1.16/mpidep/Makefile.am0000644000175000017500000000046213571617503013165 00000000000000## Process this file with Automake to create Makefile.in ACLOCAL = $(top_srcdir)/aclocal.sh noinst_LTLIBRARIES = libmpidep.la libmpidep_la_SOURCES = mpidep.cc mpidep.hh libmpidep_la_CXXFLAGS = -I$(top_srcdir)/src -I$(top_srcdir) @MPI_CXXFLAGS@ MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) music-1.1.16/mpidep/mpidep.cc0000644000175000017500000000774513571617503012731 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "config.h" #include #include #include #include extern "C" { #include } #include "mpidep.hh" // Implementation-dependent code #ifndef CRAY_XE6 #ifdef HAVE_RTS_GET_PERSONALITY #define BGL #else #ifdef HAVE_OMPI_COMM_FREE #define OPENMPI #else #ifdef HAVE_MPICH2 #define MPICH2 #else #define MPICH #endif #endif #endif #endif #ifdef BGL #include #endif #ifdef CRAY_XE6 extern "C" { #include } #endif /* * Predict the local MPI process rank before having called MPI::Init * * MPI implementations typically passes meta information either through * argc and argv (MPICH) or through the environment (OpenMPI). * * return -1 on failure */ int getRank (int argc, char *argv[]) { #ifdef BGL BGLPersonality p; rts_get_personality (&p, sizeof (p)); int pid = rts_get_processor_id (); unsigned int rank, np; rts_rankForCoordinates (p.xCoord, p.yCoord, p.zCoord, pid, &rank, &np); return rank; #endif #ifdef MPICH2 char *pmi_rank = getenv("PMI_RANK"); int rank; if (pmi_rank==NULL) return -1; else { rank = atoi(pmi_rank); if (rank<0) return -1; return rank; } #endif #ifdef MPICH int seenP4arg = 0; int rank; const std::string rankopt = "-p4rmrank"; for (int i = argc - 2; i > 0; --i) { if (!strncmp (argv[i], "-p4", 3)) seenP4arg = 1; if (argv[i] == rankopt) { std::istringstream iss (argv[i + 1]); iss >> rank; return rank; } } return seenP4arg ? 0 : -1; #endif #ifdef OPENMPI char* vpid = getenv ("OMPI_MCA_ns_nds_vpid"); if (vpid == NULL) vpid = getenv ("OMPI_COMM_WORLD_RANK"); if (vpid == NULL) return -1; std::istringstream iss (vpid); int rank; iss >> rank; return rank; #endif #ifdef CRAY_XE6 std::ifstream fnid ("/proc/cray_xt/nid"); int nid; fnid >> nid; fnid.close (); std::ifstream fnids (getenv ("MUSIC_NODEFILE")); int n = 0; int i; while (fnids) { fnids >> i; if (i == nid) { int core = sched_getcpu (); return 24 * n + core; } ++n; } return -1; #endif } #ifdef MPICH std::string getSharedDir () { std::ostringstream dirname; char* musicSharedDir = getenv ("MUSIC_SHARED_DIR"); if (musicSharedDir) dirname << musicSharedDir; else { char* home = getenv ("HOME"); dirname << home; } return dirname.str (); } #endif std::string getFirstArg (int argc, char** argv) { for (int i = 1; i < argc; ++i) if (*argv[i] != '-') // skip options return argv[i]; return ""; } /* * Retrieve first argument (the name of the music configuration file) * given to the music utility. * * Be robust against rank == -1 (which occurs when getRank fails). */ std::istream* getConfig (int rank, int argc, char** argv) { #ifdef MPICH std::ostringstream fname; fname << getSharedDir () << "/.musicconf"; std::string confname; if (rank == 0) { std::ofstream f (fname.str ().c_str ()); confname = getFirstArg (argc, argv); f << confname; } else if (rank > 0) { std::ifstream f (fname.str ().c_str ()); f >> confname; } else // rank == -1 confname = getFirstArg (argc, argv); return new std::ifstream (confname.c_str ()); #else return new std::ifstream (getFirstArg (argc, argv).c_str ()); #endif } music-1.1.16/mpidep/ChangeLog0000644000175000017500000000270613571617503012706 000000000000002012-08-13 Mikael Djurfeldt * mpidep.cc (getRank): CRAY_XE -> CRAY_XE6; ifstream -> std::ifstream 2011-03-04 Mikael Djurfeldt * mpidep.cc (getRank): Support for Cray XE6. (However, execvp in the music launcher does not work on Cray. Use option -e.) 2010-07-28 Mikael Djurfeldt * Release 1.0.7 2009-10-25 Mikael Djurfeldt * Release 1.0.6 2009-10-24 Mikael Djurfeldt * Release 1.0.5 2009-10-13 Mikael Djurfeldt * mpidep.cc (getRank): Support for MPICH 2. (Thanks to Eilif Mĵller.) 2009-10-04 Mikael Djurfeldt * mpidep.cc (getRank): Handle rank 0 and correctly detect cases where command line has unexpected form. 2009-04-01 Mikael Djurfeldt * Release 1.0.4 2009-03-13 Mikael Djurfeldt * Release 1.0.3 2009-03-12 Mikael Djurfeldt * Release 1.0.2 2009-03-08 Mikael Djurfeldt * Release 1.0.1 2009-03-04 Mikael Djurfeldt * mpidep.cc (getConfig): Don't reports errors here. Leave that to utils/music.cc; Skip optional arguments when looking for config file name. 2009-03-03 Mikael Djurfeldt * Release 1.0 2009-02-11 Mikael Djurfeldt * Makefile.am, mpidep.hh, mpidep.cc: New files. music-1.1.16/mpidep/mpidep.hh0000644000175000017500000000160413571617503012727 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_MPIDEP_HH #include int getRank (int argc, char *argv[]); std::istream* getConfig (int rank, int argc, char** argv); #define MUSIC_MPIDEP_HH #endif music-1.1.16/mpidep/Makefile.in0000644000175000017500000005137713571626611013211 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 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@ subdir = mpidep ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.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 CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libmpidep_la_LIBADD = am_libmpidep_la_OBJECTS = libmpidep_la-mpidep.lo libmpidep_la_OBJECTS = $(am_libmpidep_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 = libmpidep_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(libmpidep_la_CXXFLAGS) \ $(CXXFLAGS) $(AM_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) depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libmpidep_la-mpidep.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 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libmpidep_la_SOURCES) DIST_SOURCES = $(libmpidep_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)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp \ ChangeLog DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = $(top_srcdir)/aclocal.sh AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BINDIR = @BINDIR@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXAMPLESDIR = @EXAMPLESDIR@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ FGREP = @FGREP@ GREP = @GREP@ HAVE_PYTHON = @HAVE_PYTHON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LAUNCHSTYLE = @LAUNCHSTYLE@ 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@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPI_CFLAGS = @MPI_CFLAGS@ MPI_CXXFLAGS = @MPI_CXXFLAGS@ MPI_LDFLAGS = @MPI_LDFLAGS@ MPI_UTILS = @MPI_UTILS@ MUSICCONFIGDIR = @MUSICCONFIGDIR@ MUSIC_ANYSOURCE = @MUSIC_ANYSOURCE@ MUSIC_HAVE_LONG_LONG = @MUSIC_HAVE_LONG_LONG@ MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER = @MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER@ MUSIC_HAVE_SIZE_T = @MUSIC_HAVE_SIZE_T@ MUSIC_ISENDWAITALL = @MUSIC_ISENDWAITALL@ MUSIC_USE_MPI = @MUSIC_USE_MPI@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPTIONAL_UTILS = @OPTIONAL_UTILS@ 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@ PKGDATADIR = @PKGDATADIR@ PKGEXTRABINDIR = @PKGEXTRABINDIR@ PYBUFFER_CPPFLAGS = @PYBUFFER_CPPFLAGS@ PYBUFFER_CXXFLAGS = @PYBUFFER_CXXFLAGS@ PYEXECDIR = @PYEXECDIR@ PYMUSIC_CPPFLAGS = @PYMUSIC_CPPFLAGS@ PYMUSIC_CXXFLAGS = @PYMUSIC_CXXFLAGS@ PYMUSIC_SUBDIR = @PYMUSIC_SUBDIR@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ ROS_SUBDIR = @ROS_SUBDIR@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTDIR = @TESTDIR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LTLIBRARIES = libmpidep.la libmpidep_la_SOURCES = mpidep.cc mpidep.hh libmpidep_la_CXXFLAGS = -I$(top_srcdir)/src -I$(top_srcdir) @MPI_CXXFLAGS@ MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu mpidep/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu mpidep/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_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}; \ } libmpidep.la: $(libmpidep_la_OBJECTS) $(libmpidep_la_DEPENDENCIES) $(EXTRA_libmpidep_la_DEPENDENCIES) $(AM_V_CXXLD)$(libmpidep_la_LINK) $(libmpidep_la_OBJECTS) $(libmpidep_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmpidep_la-mpidep.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .cc.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 $@ $< .cc.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) '$<'` .cc.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 $@ $< libmpidep_la-mpidep.lo: mpidep.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmpidep_la_CXXFLAGS) $(CXXFLAGS) -MT libmpidep_la-mpidep.lo -MD -MP -MF $(DEPDIR)/libmpidep_la-mpidep.Tpo -c -o libmpidep_la-mpidep.lo `test -f 'mpidep.cc' || echo '$(srcdir)/'`mpidep.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmpidep_la-mpidep.Tpo $(DEPDIR)/libmpidep_la-mpidep.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='mpidep.cc' object='libmpidep_la-mpidep.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmpidep_la_CXXFLAGS) $(CXXFLAGS) -c -o libmpidep_la-mpidep.lo `test -f 'mpidep.cc' || echo '$(srcdir)/'`mpidep.cc 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: 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-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/libmpidep_la-mpidep.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-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)/libmpidep_la-mpidep.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: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ 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-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 .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: music-1.1.16/config.h.in0000644000175000017500000000521113571626610011672 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Define if this is a Cray XE6 system. */ #undef CRAY_XE6 /* Define to 1 if you have the MPI::Init_thread method */ #undef HAVE_CXX_MPI_INIT_THREAD /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if the system has the type `long long'. */ #undef HAVE_LONG_LONG /* Define to 1 if you have the `mallinfo' function. */ #undef HAVE_MALLINFO /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have MPICH2. */ #undef HAVE_MPICH2 /* Define to 1 if you have the `MPI_Comm_create_errhandler' function. */ #undef HAVE_MPI_COMM_CREATE_ERRHANDLER /* Define to 1 if you have the `ompi_comm_free' function. */ #undef HAVE_OMPI_COMM_FREE /* Define to 1 if you have the `rts_get_personality' function. */ #undef HAVE_RTS_GET_PERSONALITY /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_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 `strrchr' function. */ #undef HAVE_STRRCHR /* 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 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 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Define to empty if `const' does not conform to ANSI C. */ #undef const /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif /* Define to `unsigned int' if does not define. */ #undef size_t music-1.1.16/src/0000755000175000017500000000000013571740113010512 500000000000000music-1.1.16/src/FIBO.cc0000644000175000017500000000452713571617503011476 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include #include #include "music/FIBO.hh" namespace MUSIC { FIBO::FIBO (int es) { configure (es); } void FIBO::configure (int es) { elementSize = es; size_ = elementSize * nInitial; if (es > 0) buffer.resize (size_); current = 0; } bool FIBO::isEmpty () { return current == 0; } void* FIBO::insert () { if (current == size_) grow (2 * size_); // Here we use the assumption that vector memory is contiguous // Josuttis says this is the intention of STL even though the // first version of the report is not clear about this. void* memory = static_cast (&buffer[current]); current += elementSize; return memory; } void FIBO::insert (void* elements, int n_elements) { int blockSize = elementSize * n_elements; if (current + blockSize > size_) grow (3 * (current + blockSize) / 2); // Here we use the assumption that vector memory is contiguous // Josuttis says this is the intention of STL even though the // first version of the report is not clear about this. void* memory = static_cast (&buffer[current]); memcpy (memory, elements, blockSize); current += blockSize; } void FIBO::clear () { current = 0; } void FIBO::nextBlockNoClear (void*& data, int& blockSize) { data = static_cast (&buffer[0]); blockSize = current; } void FIBO::nextBlock (void*& data, int& blockSize) { nextBlockNoClear (data, blockSize); clear (); } void FIBO::grow (int newSize) { size_ = newSize; buffer.resize (size_); } } music-1.1.16/src/Makefile.am0000644000175000017500000000710013571617503012472 00000000000000## Process this file with Automake to create Makefile.in ACLOCAL = $(top_srcdir)/aclocal.sh lib_LTLIBRARIES = libmusic.la libmusic-c.la libmusic_la_SOURCES = \ runtime.cc music/runtime.hh \ setup.cc music/setup.hh \ error.cc music/error.hh music/debug.hh \ linear_index.cc music/linear_index.hh \ index_map.cc music/index_map.hh \ music/data_map.hh \ array_data.cc music/array_data.hh \ configuration.cc music/configuration.hh \ application_map.cc music/application_map.hh \ application_mapper.cc music/application_mapper.hh \ ioutils.cc music/ioutils.hh \ connectivity.cc music/connectivity.hh \ spatial.cc music/spatial.hh \ music/application_graph.hh \ temporal.cc music/temporal.hh \ parse.cc music/parse.hh \ port.cc music/port.hh \ sampler.cc music/sampler.hh \ event_router.cc music/event_router.hh \ event_routing_map.cc music/event_routing_map.hh \ distributor.cc music/distributor.hh \ collector.cc music/collector.hh \ clock.cc music/clock.hh \ subconnector.cc music/subconnector.hh \ connector.cc music/connector.hh \ multibuffer.cc music/multibuffer.hh \ connection.cc music/connection.hh \ permutation_index.cc music/permutation_index.hh \ index_map_factory.cc music/index_map_factory.hh \ scheduler_agent.cc music/scheduler_agent.hh \ scheduler.cc music/scheduler.hh \ BIFO.cc music/BIFO.hh \ FIBO.cc music/FIBO.hh music/message.hh \ interval.cc music/interval.hh music/interval_tree.hh \ music/interval_table.hh music/ordered_ilist.hh \ music/communication.hh music/memory.hh memory.cc \ music/predict_rank.hh predict_rank.cc \ music/version.hh version.cc libmusic_la_HEADERS = music.hh libmusic_la_CXXFLAGS = -I$(top_srcdir) @MPI_CXXFLAGS@ libmusic_la_LDFLAGS = $(top_builddir)/mpidep/libmpidep.la $(top_builddir)/rudeconfig/librudeconfig.la \ -version-info 1:0:0 -export-dynamic @MPI_LDFLAGS@ libmusic_ladir = $(includedir) libmusic_c_la_SOURCES = \ music-c.cc music-c-c.c music-c.h \ predict_rank-c.cc libmusic_c_la_HEADERS = music-c.h music/predict_rank-c.h libmusic_c_la_CXXFLAGS = -DBUILDING_MUSIC_LIBRARY @MPI_CXXFLAGS@ libmusic_c_la_CFLAGS = -DBUILDING_MUSIC_LIBRARY @MPI_CFLAGS@ libmusic_c_la_LDFLAGS = \ -version-info 1:0:0 -export-dynamic \ $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ libmusic_c_ladir = $(includedir) libmusic_c_la_DEPENDENCIES = libmusic.la musicincludedir = $(includedir)/music musicinclude_HEADERS = music/runtime.hh music/setup.hh \ music/interval.hh music/interval_tree.hh \ music/interval_table.hh music/ordered_ilist.hh \ music/index_map.hh music/data_map.hh \ music/linear_index.hh music/array_data.hh \ music/configuration.hh music/connectivity.hh \ music/application_map.hh music/ioutils.hh \ music/application_mapper.hh \ music/application_graph.hh \ music/spatial.hh music/temporal.hh music/error.hh \ music/debug.hh music/port.hh music/clock.hh \ music/connector.hh music/subconnector.hh \ music/connection.hh music/multibuffer.hh \ music/permutation_index.hh \ music/scheduler_agent.hh music/scheduler.hh \ music/index_map_factory.hh \ music/sampler.hh music/BIFO.hh \ music/FIBO.hh music/event_router.hh \ music/event_routing_map.hh \ music/collector.hh music/distributor.hh \ music/cont_data.hh music/event.hh \ music/message.hh music/music-config.hh \ music/predict_rank.hh music/predict_rank-c.h \ music/communication.hh music/version.hh \ music/memory.hh MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) music-1.1.16/src/distributor.cc0000644000175000017500000000713313571617503013325 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/distributor.hh" #include "music/debug.hh" #if MUSIC_USE_MPI // distributor.hh needs to be included first since it causes inclusion // of mpi.h (in data_map.hh). mpi.h must be included before other // header files on BG/L #include #include #include "music/event.hh" namespace MUSIC { Distributor::Interval::Interval (IndexInterval& interval) { setBegin (interval.begin ()); setLength (interval.end () - interval.begin ()); } void Distributor::configure (DataMap* dmap) { dataMap = dmap; } IntervalTree* Distributor::buildTree () { IntervalTree* tree = new IntervalTree (); IndexMap* indices = dataMap->indexMap (); for (IndexMap::iterator i = indices->begin (); i != indices->end (); ++i) { MUSIC_LOGR ("adding (" << i->begin () << ", " << i->end () << ", " << i->local () << ") to tree"); tree->add (*i, i->local ()); } tree->build (); return tree; } void Distributor::addRoutingInterval (IndexInterval interval, FIBO* buffer) { BufferMap::iterator b = buffers.find (buffer); if (b == buffers.end ()) { buffers.insert (std::make_pair (buffer, Intervals ())); b = buffers.find (buffer); } Intervals& intervals = b->second; intervals.push_back (Interval (interval)); } void Distributor::IntervalCalculator::operator() (int& offset) { interval_.setBegin (elementSize_ * (interval_.begin () - offset)); interval_.setLength (elementSize_ * interval_.length ()); } void Distributor::initialize () { IntervalTree* tree = buildTree (); for (BufferMap::iterator b = buffers.begin (); b != buffers.end (); ++b) { FIBO* buffer = b->first; Intervals& intervals = b->second; sort (intervals.begin (), intervals.end ()); int elementSize = dataMap->type ().Get_size (); int size = 0; for (Intervals::iterator i = intervals.begin (); i != intervals.end (); ++i) { IntervalCalculator calculator (*i, elementSize); tree->search (i->begin (), &calculator); size += i->length (); } buffer->configure (size); } delete tree; } void Distributor::distribute () { for (BufferMap::iterator b = buffers.begin (); b != buffers.end (); ++b) { FIBO* buffer = b->first; Intervals& intervals = b->second; ContDataT* src = static_cast (dataMap->base ()); ContDataT* dest = static_cast (buffer->insert ()); for (Intervals::iterator i = intervals.begin (); i != intervals.end (); ++i) { MUSIC_LOGR ("src = " << static_cast (src) << ", begin = " << i->begin () << ", length = " << i->length ()); memcpy (dest, src + i->begin (), i->length ()); dest += i->length (); } } } } #endif music-1.1.16/src/error.cc0000644000175000017500000000455113571617503012105 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/music-config.hh" #if MUSIC_USE_MPI #include #endif #include "music/error.hh" #include #include namespace MUSIC { void error () { #if MUSIC_USE_MPI MPI::COMM_WORLD.Abort (1); #else abort(); #endif } void hang () { while (true) ; } void error (std::string msg) { std::cerr << "Error in MUSIC library: " << msg << std::endl; error (); } void error (std::ostringstream& ostr) { error (ostr.str ()); } static int getRank () { #if MUSIC_USE_MPI if (MPI::Is_initialized ()) return MPI::COMM_WORLD.Get_rank (); #endif return -1; } void error0 (std::string msg) { if (getRank () <= 0) error (msg); else // Give process #0 a chance to report the error hang (); } void errorRank (std::string msg) { std::ostringstream text; int rank = getRank (); if (rank >= 0) text << "rank #" << rank << ": "; text << msg; error (text.str ()); } void checkOnce (bool& flag, std::string msg) { if (flag) errorRank (msg); flag = true; } void checkInstantiatedOnce (bool& isInstantiated, std::string className) { std::ostringstream msg; msg << className << " constructor was called a second time.\n" "Only one " << className << " object can exist at any instance of time."; checkOnce (isInstantiated, msg.str ()); } void checkCalledOnce (bool& isCalled, std::string funcName, std::string suffix) { std::ostringstream msg; msg << funcName << " called twice" << suffix; checkOnce (isCalled, msg.str ()); } } music-1.1.16/src/music.hh0000644000175000017500000000161213571617503012101 00000000000000#ifndef MUSIC_HH /* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/runtime.hh" #include "music/setup.hh" #include "music/permutation_index.hh" #include "music/array_data.hh" #define MUSIC_HH #endif /* MUSIC_HH */ music-1.1.16/src/version.cc0000644000175000017500000000147113571617503012437 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/version.hh" namespace MUSIC { const char* version () { return MUSIC_VERSION; } } music-1.1.16/src/sampler.cc0000644000175000017500000001247013571617503012416 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/sampler.hh" #include "music/debug.hh" #if MUSIC_USE_MPI // array_data.hh needs to be included first since it causes inclusion // of mpi.h (in data_map.hh). mpi.h must be included before other // header files on BG/L #include "music/array_data.hh" #include "music/index_map_factory.hh" #include "music/error.hh" #include namespace MUSIC { Sampler::Sampler () : dataMap_ (0), interpolationDataMap_ (0) { } Sampler::~Sampler () { if (dataMap_ != 0) delete dataMap_; if (interpolationDataMap_ != 0) delete interpolationDataMap_; } /* * Called during port mapping */ void Sampler::configure (DataMap* dataMap) { dataMap_ = dataMap->copy (); } void Sampler::initialize () { elementSize = dataMap_->type ().Get_size (); size = 0; IndexMap* indices = dataMap_->indexMap (); IndexMapFactory newIndices; for (IndexMap::iterator i = indices->begin (); i != indices->end (); ++i) { int localIndex = size; newIndices.add (i->begin (), i->end (), localIndex); size += i->end () - i->begin (); } newIndices.build (); prevSample_ = new ContDataT[elementSize * size]; sample_ = new ContDataT[elementSize * size]; interpolationData_ = new ContDataT[elementSize * size]; interpolationDataMap_ = new ArrayData (interpolationData_, dataMap_->type (), &newIndices); MUSIC_LOGR ("prev = " << static_cast (prevSample_) << ", sample = " << static_cast (sample_) << ", interp = " << static_cast (interpolationData_)); } /* * Called during configuration of interpolating connectors */ DataMap* Sampler::interpolationDataMap () { if (interpolationDataMap_ == 0) initialize (); return interpolationDataMap_; } void Sampler::newSample () { hasSampled = false; } void Sampler::sampleOnce () { if (!hasSampled) { sample (); hasSampled = true; } } void Sampler::sample () { ContDataT* dest = insert (); int pos = 0; IndexMap* indices = dataMap_->indexMap (); for (IndexMap::iterator i = indices->begin (); i != indices->end (); ++i) { ContDataT* src = static_cast (dataMap_->base ()); int iSize = elementSize * (i->end () - i->begin ()); memcpy (dest + pos, src + elementSize * (i->begin () - i->local ()), iSize); pos += iSize; } } ContDataT* Sampler::insert () { swapBuffers (sample_, prevSample_); return sample_; } void Sampler::swapBuffers (ContDataT*& b1, ContDataT*& b2) { ContDataT* tmp; tmp = b1; b1 = b2; b2 = tmp; } void Sampler::interpolate (double interpolationCoefficient) { interpolateTo (interpolationDataMap_, interpolationCoefficient); } void Sampler::interpolateToApplication (double interpolationCoefficient) { interpolateTo (dataMap_, interpolationCoefficient); } void Sampler::interpolateTo (DataMap* dataMap, double interpolationCoefficient) { int pos = 0; IndexMap* indices = dataMap->indexMap (); for (IndexMap::iterator i = indices->begin (); i != indices->end (); ++i) { int localIndex = i->begin () - i->local (); int iSize = i->end () - i->begin (); if (dataMap->type () == MPI::DOUBLE) interpolate (pos, iSize, interpolationCoefficient, static_cast (dataMap->base ()) + localIndex); else if (dataMap->type () == MPI::FLOAT) interpolate (pos, iSize, interpolationCoefficient, static_cast (dataMap->base ()) + localIndex); else error ("internal error in Sampler::interpolateTo"); pos += iSize; } } void Sampler::interpolate (int from, int n, double interpolationCoefficient, double* dest) { MUSIC_LOGR ("interpolate to dest = " << static_cast (dest) << ", begin = " << from << ", length = " << n); double* prev = (static_cast (static_cast (prevSample_)) + from); double* succ = (static_cast (static_cast (sample_)) + from); for (int i = 0; i < n; ++i) dest[i] = ((1.0 - interpolationCoefficient) * prev[i] + interpolationCoefficient * succ[i]); } void Sampler::interpolate (int from, int n, float interpolationCoefficient, float* dest) { float* prev = (static_cast (static_cast (prevSample_)) + from); float* succ = (static_cast (static_cast (sample_)) + from); for (int i = 0; i < n; ++i) dest[i] = ((1.0 - interpolationCoefficient) * prev[i] + interpolationCoefficient * succ[i]); } } #endif music-1.1.16/src/collector.cc0000644000175000017500000000750713571617503012746 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/collector.hh" #include "music/debug.hh" #if MUSIC_USE_MPI // collector.hh needs to be included first since it causes inclusion // of mpi.h (in data_map.hh). mpi.h must be included before other // header files on BG/L #include #include #include "music/event.hh" namespace MUSIC { Collector::Interval::Interval (IndexInterval& interval) { setBegin (interval.begin ()); setLength (interval.end () - interval.begin ()); } void Collector::configure (DataMap* dmap, int maxsize) { dataMap = dmap; maxsize_ = maxsize; } IntervalTree* Collector::buildTree () { IntervalTree* tree = new IntervalTree (); IndexMap* indices = dataMap->indexMap (); for (IndexMap::iterator i = indices->begin (); i != indices->end (); ++i) { MUSIC_LOGR ("adding (" << i->begin () << ", " << i->end () << ", " << i->local () << ") to tree"); tree->add (*i, i->local ()); } tree->build (); return tree; } void Collector::addRoutingInterval (IndexInterval interval, BIFO* buffer) { BufferMap::iterator b = buffers.find (buffer); if (b == buffers.end ()) { buffers.insert (std::make_pair (buffer, Intervals ())); b = buffers.find (buffer); } Intervals& intervals = b->second; intervals.push_back (Interval (interval)); } void Collector::IntervalCalculator::operator() (int& offset) { interval_.setBegin (elementSize_ * (interval_.begin () - offset)); interval_.setLength (elementSize_ * interval_.length ()); } void Collector::initialize () { IntervalTree* tree = buildTree (); for (BufferMap::iterator b = buffers.begin (); b != buffers.end (); ++b) { BIFO* buffer = b->first; Intervals& intervals = b->second; sort (intervals.begin (), intervals.end ()); int elementSize = dataMap->type ().Get_size (); int size = 0; for (Intervals::iterator i = intervals.begin (); i != intervals.end (); ++i) { IntervalCalculator calculator (*i, elementSize); MUSIC_LOGX ("searching for " << i->begin ()); tree->search (i->begin (), &calculator); size += i->length (); } buffer->configure (size, maxsize_); } } void Collector::collect (ContDataT* base) { ContDataT* dest = static_cast (base); for (BufferMap::iterator b = buffers.begin (); b != buffers.end (); ++b) { BIFO* buffer = b->first; Intervals& intervals = b->second; ContDataT* src = static_cast (buffer->next ()); if (src == NULL) // Out of data (remote has flushed) return; for (Intervals::iterator i = intervals.begin (); i != intervals.end (); ++i) { MUSIC_LOGX ("collect to dest = " << static_cast (dest) << ", begin = " << i->begin () << ", length = " << i->length ()); memcpy (dest + i->begin (), src, i->length ()); src += i->length (); } } } void Collector::collect () { collect (static_cast (dataMap->base ())); } } #endif music-1.1.16/src/event_router.cc0000644000175000017500000000403613571617503013473 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/event.hh" #include "music/event_router.hh" #include #include #include namespace MUSIC { OutputRoutingData::OutputRoutingData (const IndexInterval &i, FIBO* b) : EventRoutingData(i), buffer_ (b) { } void OutputRoutingData::process (double t, int id) { Event* e = static_cast (buffer_->insert ()); e->t = t; e->id = id; } void DirectRouter::processExtra (double t, int id) { unsigned int pos = extra_.size (); extra_.resize (pos + sizeof (Event)); Event* e = static_cast (static_cast (&extra_[pos])); e->t = t; e->id = id; } void DirectRouter::setOutputBuffer (void* buffer, unsigned int size) { if (size == size_) { // Buffer relocated buffer_ = static_cast (buffer); return; } #if 0 if (size - size_ != extra_.size ()) std::cout << "Rank " << MPI::COMM_WORLD.Get_rank () << ": DirectRouter: Had " << extra_.size () << " extra spike space, size changed from " << size_ << " to " << size << " = " << size - size_ << std::endl; #endif assert (size - size_ == extra_.size ()); buffer_ = static_cast (buffer); memcpy (buffer_ + size_, &extra_[0], extra_.size ()); extra_.clear (); std::vector (extra_).swap (extra_); // trim size_ = size; } } music-1.1.16/src/connectivity.cc0000644000175000017500000001356413571617503013476 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009, 2012 INCF * * MUSIC 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. * * MUSIC 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 . */ #include #include "music/music-config.hh" #include "music/debug.hh" #include "music/connectivity.hh" #include "music/ioutils.hh" #include "music/error.hh" namespace MUSIC { int ConnectorInfo::maxPortCode_; #if __cplusplus <=199711L ConnectivityInfo* const Connectivity::NO_CONNECTIVITY = NULL; #endif void ConnectorInfo::registerPortCode (int portCode) { ConnectorInfo::maxPortCode_ = std::max (portCode, ConnectorInfo::maxPortCode_); } void ConnectivityInfo::addConnection (std::string recApp, std::string recName, int recCode, int rLeader, int nProc, int commType, int procMethod ) { portConnections_.push_back (ConnectorInfo (recApp, recName, recCode, rLeader, nProc, commType, procMethod)); } void Connectivity::add (std::string localPort, ConnectivityInfo::PortDirection dir, int width, std::string recApp, std::string recPort, int recPortCode, int remoteLeader, int remoteNProc, int commType, int procMethod ) { std::map::iterator cmapInfo = connectivityMap.find (localPort); ConnectivityInfo* info; if (cmapInfo == connectivityMap.end ()) { MUSIC_LOG ("creating new entry for " << localPort); int index = connections_.size (); connections_.push_back (ConnectivityInfo (localPort, dir, width)); info = &connections_.back (); MUSIC_LOG ("ci = " << info); connectivityMap.insert (std::make_pair (localPort, index)); } else { MUSIC_LOG ("found old entry for " << localPort); info = &connections_[cmapInfo->second]; if (info->direction () != dir) error ("port " + localPort + " used both as output and input"); } info->addConnection (recApp, recPort, recPortCode, remoteLeader, remoteNProc, commType, procMethod ); } ConnectivityInfo* Connectivity::info (std::string portName) { std::map::iterator info = connectivityMap.find (portName); if (info == connectivityMap.end ()) return NO_CONNECTIVITY; else return &connections_[info->second]; } bool Connectivity::isConnected (std::string portName) { return connectivityMap.find (portName) != connectivityMap.end (); } ConnectivityInfo::PortDirection Connectivity::direction (std::string portName) { return connections_[connectivityMap[portName]].direction (); } int Connectivity::width (std::string portName) { return connections_[connectivityMap[portName]].width (); } PortConnectorInfo Connectivity::connections (std::string portName) { return connections_[connectivityMap[portName]].connections (); } void Connectivity::write (std::ostringstream& out) { out << connectivityMap.size (); std::map::iterator i; for (i = connectivityMap.begin (); i != connectivityMap.end (); ++i) { out << ':' << i->first << ':'; ConnectivityInfo* ci = &connections_[i->second]; out << ci->direction () << ':' << ci->width () << ':'; PortConnectorInfo conns = ci->connections (); out << conns.size (); PortConnectorInfo::iterator c; for (c = conns.begin (); c != conns.end (); ++c) { out << ':' << c->receiverAppName (); out << ':' << c->receiverPortName (); out << ':' << c->receiverPortCode (); out << ':' << c->remoteLeader (); out << ':' << c->nProcesses (); out << ':' << c->communicationType(); out << ':' << c->processingMethod(); } } } void Connectivity::read (std::istringstream& in, std::map leaders) { int nPorts; in >> nPorts; for (int i = 0; i < nPorts; ++i) { in.ignore (); std::string portName = IOUtils::read (in); in.ignore (); int dir; in >> dir; ConnectivityInfo::PortDirection pdir = static_cast (dir); in.ignore (); int width; in >> width; in.ignore (); int nConnections; in >> nConnections; for (int i = 0; i < nConnections; ++i) { in.ignore (); std::string recApp = IOUtils::read (in); in.ignore (); std::string recPort = IOUtils::read (in); in.ignore (); int recPortCode; in >> recPortCode; ConnectorInfo::registerPortCode (recPortCode); in.ignore (); // leader information is not available through configuration string // application color is used instead int color; in >> color; in.ignore (); int nProc; in >> nProc; in.ignore (); int commType; in >> commType; in.ignore (); int procMethod; in >> procMethod; add (portName, pdir, width, recApp, recPort, recPortCode, leaders[color], nProc, commType, procMethod ); MUSIC_LOG ("add (portName = " << portName << ", pdir = " << pdir << ", width = " << width << ", recApp = " << recApp << ", recPort = " << recPort << ", rLeader = " << leaders[color] << ", nProc = " << nProc << ", commType = " << commType << ", procMethod = " << procMethod << ")"); } } } } music-1.1.16/src/connection.cc0000644000175000017500000000234513571617503013112 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/connection.hh" #if MUSIC_USE_MPI namespace MUSIC { OutputConnection::OutputConnection (Connector* connector, int maxBuffered, int elementSize) : Connection (connector, maxBuffered), elementSize_ (elementSize) { } InputConnection::InputConnection (Connector* connector, int maxBuffered, ClockState accLatency, bool interpolate) : Connection (connector, maxBuffered), accLatency_ (accLatency), interpolate_ (interpolate) { } } #endif music-1.1.16/src/music-c.cc0000644000175000017500000002700413571617503012312 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music.hh" #if MUSIC_USE_MPI #include #include extern "C" { #include "music-c.h" /* Setup */ MUSIC_Setup * MUSIC_createSetup (int *argc, char ***argv) { return (MUSIC_Setup *) new MUSIC::Setup (*argc, *argv); } MUSIC_Setup * MUSIC_createSetupThread (int *argc, char ***argv, int required, int *provided) { return (MUSIC_Setup *) new MUSIC::Setup (*argc, *argv, required, provided); } /* Communicators */ MPI_Comm MUSIC_setupCommunicatorGlue (MUSIC_Setup *setup) { MUSIC::Setup* cxxSetup = (MUSIC::Setup *) setup; return (MPI_Comm) cxxSetup->communicator (); } /* Port creation */ MUSIC_ContOutputPort * MUSIC_publishContOutput (MUSIC_Setup *setup, char *id) { MUSIC::Setup* cxxSetup = (MUSIC::Setup *) setup; return (MUSIC_ContOutputPort *) cxxSetup->publishContOutput (id); } MUSIC_ContInputPort * MUSIC_publishContInput (MUSIC_Setup *setup, char *id) { MUSIC::Setup* cxxSetup = (MUSIC::Setup *) setup; return (MUSIC_ContInputPort *) cxxSetup->publishContInput(id); } MUSIC_EventOutputPort * MUSIC_publishEventOutput (MUSIC_Setup *setup, char *id) { MUSIC::Setup* cxxSetup = (MUSIC::Setup *) setup; return (MUSIC_EventOutputPort *) cxxSetup->publishEventOutput(id); } MUSIC_EventInputPort * MUSIC_publishEventInput (MUSIC_Setup *setup, char *id) { MUSIC::Setup* cxxSetup = (MUSIC::Setup *) setup; return (MUSIC_EventInputPort *) cxxSetup->publishEventInput(id); } MUSIC_MessageOutputPort * MUSIC_publishMessageOutput (MUSIC_Setup *setup, char *id) { MUSIC::Setup* cxxSetup = (MUSIC::Setup *) setup; return (MUSIC_MessageOutputPort *) cxxSetup->publishMessageOutput(id); } MUSIC_MessageInputPort * MUSIC_publishMessageInput (MUSIC_Setup *setup, char *id) { MUSIC::Setup* cxxSetup = (MUSIC::Setup *) setup; return (MUSIC_MessageInputPort *) cxxSetup->publishMessageInput(id); } /* void MUSIC_destroyContOutput (MUSIC_ContOutputPort* Port) { delete (MUSIC::ContOutputPort *) Port; } void MUSIC_destroyContInput (MUSIC_ContInputPort* Port) { delete (MUSIC::ContInputPort *) Port; } void MUSIC_destroyEventOutput (MUSIC_EventOutputPort* Port) { delete (MUSIC::EventOutputPort *) Port; } void MUSIC_destroyEventInput (MUSIC_EventInputPort* Port) { delete (MUSIC::EventInputPort *) Port; } void MUSIC_destroyMessageOutput (MUSIC_MessageOutputPort* Port) { delete (MUSIC::MessageOutputPort *) Port; } void MUSIC_destroyMessageInput (MUSIC_MessageInputPort* Port) { delete (MUSIC::MessageInputPort *) Port; } */ /* General port methods */ int MUSIC_ContOutputPort_isConnected (MUSIC_ContOutputPort *Port) { MUSIC::ContOutputPort* cxxPort = (MUSIC::ContOutputPort *) Port; return cxxPort->isConnected (); } int MUSIC_ContInputPort_isConnected (MUSIC_ContInputPort *Port) { MUSIC::ContInputPort* cxxPort = (MUSIC::ContInputPort *) Port; return cxxPort->isConnected (); } int MUSIC_EventOutputPort_isConnected (MUSIC_EventOutputPort *Port) { MUSIC::EventOutputPort* cxxPort = (MUSIC::EventOutputPort *) Port; return cxxPort->isConnected (); } int MUSIC_EventInputPort_isConnected (MUSIC_EventInputPort *Port) { MUSIC::EventInputPort* cxxPort = (MUSIC::EventInputPort *) Port; return cxxPort->isConnected (); } int MUSIC_MessageOutputPort_isConnected (MUSIC_MessageOutputPort *Port) { MUSIC::MessageOutputPort* cxxPort = (MUSIC::MessageOutputPort *) Port; return cxxPort->isConnected (); } int MUSIC_MessageInputPort_isConnected (MUSIC_MessageInputPort *Port) { MUSIC::MessageInputPort* cxxPort = (MUSIC::MessageInputPort *) Port; return cxxPort->isConnected (); } int MUSIC_ContOutputPort_hasWidth (MUSIC_ContOutputPort *Port) { MUSIC::ContOutputPort* cxxPort = (MUSIC::ContOutputPort *) Port; return cxxPort->hasWidth (); } int MUSIC_ContInputPort_hasWidth (MUSIC_ContInputPort *Port) { MUSIC::ContInputPort* cxxPort = (MUSIC::ContInputPort *) Port; return cxxPort->hasWidth (); } int MUSIC_EventOutputPort_hasWidth (MUSIC_EventOutputPort *Port) { MUSIC::EventOutputPort* cxxPort = (MUSIC::EventOutputPort *) Port; return cxxPort->hasWidth (); } int MUSIC_EventInputPort_hasWidth (MUSIC_EventInputPort *Port) { MUSIC::EventInputPort* cxxPort = (MUSIC::EventInputPort *) Port; return cxxPort->hasWidth (); } int MUSIC_ContOutputPort_width (MUSIC_ContOutputPort *Port) { MUSIC::ContOutputPort* cxxPort = (MUSIC::ContOutputPort *) Port; return cxxPort->width (); } int MUSIC_ContInputPort_width (MUSIC_ContInputPort *Port) { MUSIC::ContInputPort* cxxPort = (MUSIC::ContInputPort *) Port; return cxxPort->width (); } int MUSIC_EventOutputPort_width (MUSIC_EventOutputPort *Port) { MUSIC::EventOutputPort* cxxPort = (MUSIC::EventOutputPort *) Port; return cxxPort->width (); } int MUSIC_EventInputPort_width (MUSIC_EventInputPort *Port) { MUSIC::EventInputPort* cxxPort = (MUSIC::EventInputPort *) Port; return cxxPort->width (); } /* Mapping */ /* No arguments are optional. */ void MUSIC_ContOutputPort_map (MUSIC_ContOutputPort *Port, MUSIC_ContData *dmap, int maxBuffered) { MUSIC::ContOutputPort* cxxPort = (MUSIC::ContOutputPort *) Port; MUSIC::ContData* cxxDmap = (MUSIC::ContData *) dmap; cxxPort->map (cxxDmap, maxBuffered); } void MUSIC_ContInputPort_map (MUSIC_ContInputPort *Port, MUSIC_ContData *dmap, double delay, int maxBuffered, int interpolate) { MUSIC::ContInputPort* cxxPort = (MUSIC::ContInputPort *) Port; MUSIC::ContData* cxxDmap = (MUSIC::ContData *) dmap; cxxPort->map (cxxDmap, delay, maxBuffered, interpolate); } void MUSIC_EventOutputPort_mapGlobalIndex (MUSIC_EventOutputPort *Port, MUSIC_IndexMap *indices, int maxBuffered) { MUSIC::EventOutputPort* cxxPort = (MUSIC::EventOutputPort *) Port; MUSIC::IndexMap* cxxIndices = (MUSIC::IndexMap *) indices; cxxPort->map (cxxIndices, MUSIC::Index::GLOBAL, maxBuffered); } void MUSIC_EventOutputPort_mapLocalIndex (MUSIC_EventOutputPort *Port, MUSIC_IndexMap *indices, int maxBuffered) { MUSIC::EventOutputPort* cxxPort = (MUSIC::EventOutputPort *) Port; MUSIC::IndexMap* cxxIndices = (MUSIC::IndexMap *) indices; cxxPort->map (cxxIndices, MUSIC::Index::LOCAL, maxBuffered); } typedef void MUSIC_EventHandler (double t, int id); void MUSIC_EventInputPort_mapGlobalIndex (MUSIC_EventInputPort *Port, MUSIC_IndexMap *indices, MUSIC_EventHandler *handleEvent, double accLatency, int maxBuffered) { MUSIC::EventInputPort* cxxPort = (MUSIC::EventInputPort *) Port; MUSIC::IndexMap* cxxIndices = (MUSIC::IndexMap *) indices; MUSIC::EventHandlerGlobalIndexProxy* cxxHandleEvent = cxxPort->allocEventHandlerGlobalIndexProxy (handleEvent); cxxPort->map (cxxIndices, cxxHandleEvent, accLatency, maxBuffered); } void MUSIC_EventInputPort_mapLocalIndex (MUSIC_EventInputPort *Port, MUSIC_IndexMap *indices, MUSIC_EventHandler *handleEvent, double accLatency, int maxBuffered) { MUSIC::EventInputPort* cxxPort = (MUSIC::EventInputPort *) Port; MUSIC::IndexMap* cxxIndices = (MUSIC::IndexMap *) indices; MUSIC::EventHandlerLocalIndexProxy* cxxHandleEvent = cxxPort->allocEventHandlerLocalIndexProxy (handleEvent); cxxPort->map (cxxIndices, cxxHandleEvent, accLatency, maxBuffered); } void MUSIC_MessageOutputPort_map_no_handler (MUSIC_MessageOutputPort *Port) { MUSIC::MessageOutputPort* cxxPort = (MUSIC::MessageOutputPort *) Port; cxxPort->map (); } void MUSIC_MessageOutputPort_map (MUSIC_MessageOutputPort *Port, int maxBuffered) { MUSIC::MessageOutputPort* cxxPort = (MUSIC::MessageOutputPort *) Port; cxxPort->map (maxBuffered); } typedef void MUSIC_MessageHandler (double t, void *msg, size_t size); void MUSIC_MessageInputPort_map (MUSIC_MessageInputPort *Port, MUSIC_MessageHandler *handleMessage, double accLatency, int maxBuffered) { MUSIC::MessageInputPort* cxxPort = (MUSIC::MessageInputPort *) Port; MUSIC::MessageHandlerProxy* cxxHandleMessage = cxxPort->allocMessageHandlerProxy (handleMessage); cxxPort->map (cxxHandleMessage, accLatency, maxBuffered); } /* Index maps */ MUSIC_PermutationIndex * MUSIC_createPermutationIndex (int *indices, int size) { void* data = static_cast (indices); return (MUSIC_PermutationIndex *) new MUSIC::PermutationIndex (static_cast (data), size); } void MUSIC_destroyPermutationIndex (MUSIC_PermutationIndex *Index) { delete (MUSIC::PermutationIndex *) Index; } MUSIC_LinearIndex * MUSIC_createLinearIndex (int baseIndex, int size) { return (MUSIC_LinearIndex *) new MUSIC::LinearIndex (baseIndex, size); } void MUSIC_destroyLinearIndex (MUSIC_LinearIndex *Index) { delete (MUSIC::LinearIndex *) Index; } /* Data maps */ /* Exception: The map argument can take any type of index map. */ MUSIC_ArrayData * MUSIC_createArrayData (void *buffer, MPI_Datatype type, void *map) { MUSIC::IndexMap* cxxMap = (MUSIC::IndexMap *) map; return (MUSIC_ArrayData *) new MUSIC::ArrayData (buffer, type, cxxMap); } /* Exception: MUSIC_createLinearArrayData corresponds to c++ MUSIC::ArrayData::ArrayData (..., ..., ..., ...) */ MUSIC_ArrayData * MUSIC_createLinearArrayData (void *buffer, MPI_Datatype type, int baseIndex, int size) { return (MUSIC_ArrayData *) new MUSIC::ArrayData (buffer, type, baseIndex, size); } void MUSIC_destroyArrayData (MUSIC_ArrayData *ArrayData) { delete (MUSIC::ArrayData *) ArrayData; } /* Configuration variables */ /* Exceptions: Result is char * Extra maxlen argument prevents buffer overflow. Result is terminated by \0 unless longer than maxlen - 1 */ int MUSIC_configString (MUSIC_Setup *setup, char *name, char *result, size_t maxlen) { MUSIC::Setup* cxxSetup = (MUSIC::Setup *) setup; std::string cxxResult; int res = cxxSetup->config (string (name), &cxxResult); strncpy(result, cxxResult.c_str (), maxlen); return res; } int MUSIC_configInt (MUSIC_Setup *setup, char *name, int *result) { MUSIC::Setup* cxxSetup = (MUSIC::Setup *) setup; return cxxSetup->config (string(name), result); } int MUSIC_configDouble (MUSIC_Setup *setup, char *name, double *result) { MUSIC::Setup* cxxSetup = (MUSIC::Setup *) setup; return cxxSetup->config (string(name), result); } /* Runtime */ MUSIC_Runtime * MUSIC_createRuntime (MUSIC_Setup *setup, double h) { MUSIC::Setup* cxxSetup = (MUSIC::Setup *) setup; return (MUSIC_Runtime *) new MUSIC::Runtime (cxxSetup, h); } void MUSIC_tick (MUSIC_Runtime *runtime) { MUSIC::Runtime* cxxRuntime = (MUSIC::Runtime *) runtime; cxxRuntime->tick (); } double MUSIC_time (MUSIC_Runtime *runtime) { MUSIC::Runtime* cxxRuntime = (MUSIC::Runtime *) runtime; return cxxRuntime->time (); } /* Finalization */ void MUSIC_destroyRuntime (MUSIC_Runtime *runtime) { MUSIC::Runtime* cxxRuntime = (MUSIC::Runtime *) runtime; delete cxxRuntime; } } #endif music-1.1.16/src/connector.cc0000644000175000017500000007026413571617503012752 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/connector.hh" #include "music/debug.hh" #if MUSIC_USE_MPI // connector.hh needs to be included first since it causes inclusion // of mpi.h (in data_map.hh). mpi.h must be included before other // header files on BG/L #include "music/error.hh" #include "music/communication.hh" #include "music/event_router.hh" #include #include namespace MUSIC { std::map Connector::flagMap_; unsigned int Connector::nextFlag_ = 1; unsigned int Connector::nextProxyFlag_ = 1; Connector::Connector (ConnectorInfo info_, IndexMap* indices, Index::Type type, MPI::Intracomm c) : info (info_), indices_ (indices->copy()), type_ (type), comm (c), idFlag_ (0), finalized_ (false) { } Connector::Connector (ConnectorInfo info_, IndexMap* indices, Index::Type type, MPI::Intracomm c, MPI::Intercomm ic) : info (info_), indices_ (indices->copy()), type_ (type), comm (c), intercomm (ic), idFlag_ (0), finalized_ (false) { } bool Connector::isLeader () { return comm.Get_rank () == 0; } void Connector::createIntercomm () { intercomm = comm.Create_intercomm (0, MPI::COMM_WORLD, info.remoteLeader (), CREATE_INTERCOMM_MSG); } void Connector::freeIntercomm () { intercomm.Free (); } void Connector::spatialNegotiation () { SpatialNegotiator *spatialNegotiator_ = createSpatialNegotiator (); width_ = spatialNegotiator_->getWidth (); maxLocalWidth_ = spatialNegotiator_->maxLocalWidth (); spatialNegotiation (spatialNegotiator_); delete spatialNegotiator_; delete indices_; } void Connector::spatialNegotiation (SpatialNegotiator * spatialNegotiator_) { if (spatialNegotiator_ == NULL) error ("spatialNegotiator was not initialized"); std::map subconnectors; NegotiationIterator i = spatialNegotiator_->negotiate (info.nProcesses (), this); // only for debugging for ( ;!i.end (); ++i) { std::map::iterator c = subconnectors.find (i->rank ()); Subconnector* subconn; if (c != subconnectors.end ()) subconn = c->second; else { subconn = makeSubconnector (i->rank ()); if(subconn == NULL) error ("Subconnector was not initialized"); subconnectors.insert (std::make_pair (i->rank (), subconn)); rsubconn.push_back (subconn); } MUSIC_LOG (MPI::COMM_WORLD.Get_rank () << ": (" << i->begin () << ", " << i->end () << ", " << i->local () << ", " << i->displ() << ") -> " << i->rank ()); addRoutingInterval (i->interval (), subconn); } } // The following ordering of subconnectors leads to a reasonably // efficient communication schedule where the number of // communications that weill have to happen sequentially is O(P) // where P is the number of processors. // // Mikael Djurfeldt et al. (2005) "Massively parallel simulation // of brain-scale neuronal network models." Tech. Rep. // TRITA-NA-P0513, CSC, KTH, Stockholm. bool lessInputSubconnector (const Subconnector* c1, const Subconnector* c2) { return (c1->remoteRank () < c2->remoteRank () || (c1->remoteRank () == c2->remoteRank () && c1->receiverPortCode () < c2->receiverPortCode ())); } bool lessOutputSubconnector (const Subconnector* c1, const Subconnector* c2) { if ((c1->remoteRank () > c1->localRank () && c2->remoteRank () <= c1->localRank ()) || (c1->remoteRank () <= c1->localRank () && c2->remoteRank () > c1->localRank ())) return c1->remoteRank () > c2->remoteRank (); else return lessInputSubconnector (c1, c2); } void Connector::initialize () { sort (rsubconn.begin (), rsubconn.end (), isInput () ? lessInputSubconnector : lessOutputSubconnector); } void Connector::finalize () { bool dataStillFlowing = false; for (std::vector::iterator s = rsubconn.begin (); s != rsubconn.end (); ++s) (*s)->flush(dataStillFlowing); finalized_ = !dataStillFlowing; } void Connector::tick () { for (std::vector::iterator s = rsubconn.begin (); s != rsubconn.end (); ++s){ (*s)->maybeCommunicate(); } } SpatialNegotiator * OutputConnector::createSpatialNegotiator () { return new SpatialOutputNegotiator(indices_, type_, comm, intercomm ); } #if MUSIC_ISENDWAITALL void OutputConnector::tick () { std::vectorrequests; for (std::vector::iterator s = rsubconn.begin (); s != rsubconn.end (); ++s){ (*s)->maybeCommunicate(requests); } //The spec guarantees vectors store their elements contiguously: MPI::Request::Waitall(requests.size(), (MPI::Request *)&requests[0]); } #endif //MUSIC_ISENDWAITALL SpatialNegotiator * InputConnector::createSpatialNegotiator () { return new SpatialInputNegotiator(indices_, type_, comm, intercomm); } /******************************************************************** * * Cont Connectors * ********************************************************************/ void ContConnector::initialize () { Connector::initialize(); initialCommunication(); } ClockState ContConnector::remoteTickInterval (ClockState tickInterval) { ClockState::Serialized sRemoteTickInterval; if (isLeader ()) { // exchange tickInterval with peer leader sRemoteTickInterval = tickInterval.serialize (); intercomm.Sendrecv_replace (&sRemoteTickInterval, 2, MPI::UNSIGNED_LONG, 0, TICKINTERVAL_MSG, 0, TICKINTERVAL_MSG); } // broadcast to peers comm.Bcast (&sRemoteTickInterval, 2, MPI::UNSIGNED_LONG, 0); return sRemoteTickInterval.deserialize (); } ContOutputConnector::ContOutputConnector (ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MPI::Intracomm comm, Sampler& sampler, MPI::Datatype data_type) : Connector (connInfo, indices, type, comm), ContConnector (sampler, data_type), connector(NULL) { } ContOutputConnector::ContOutputConnector ( Sampler& sampler, MPI::Datatype type) : ContConnector (sampler, type), connector(NULL) { } ContOutputConnector::~ContOutputConnector() { if (connector != NULL) delete connector; } Subconnector* ContOutputConnector::makeSubconnector (int remoteRank) { return new ContOutputSubconnector (//synchronizer (), intercomm, remoteLeader (), remoteRank, receiverPortCode (), data_type_); } void ContOutputConnector::specialize (Clock& localTime) { ClockState tickInterval = localTime.tickInterval (); ClockState rTickInterval = remoteTickInterval (tickInterval); localTime_ = &localTime; remoteTime_.configure (localTime_->timebase (), rTickInterval); if (tickInterval < rTickInterval) connector = new InterpolatingContOutputConnector (this); else connector = new PlainContOutputConnector (this); } void ContOutputConnector::addRoutingInterval (IndexInterval i, Subconnector* subconn) { OutputSubconnector*osubconn= dynamic_cast(subconn); distributor_.addRoutingInterval (i, osubconn->outputBuffer()); } void ContOutputConnector::initialCommunication() { for (std::vector::iterator s = rsubconn.begin (); s != rsubconn.end (); ++s) (*s)->initialCommunication (0.0); } void PlainContOutputConnector::initialize () { distributor_.configure (sampler_.dataMap ()); distributor_.initialize (); // synch.initialize (); // put one element in send buffers distributor_.distribute (); } void PlainContOutputConnector::preCommunication () { if (sample ()) { // copy application data to send buffers distributor_.distribute (); } } // Start sampling (and fill the output buffers) at a time dependent // on latency and receiver's tick interval. A negative latency can // delay start of sampling beyond time 0. The tickInterval together // with the strict comparison has the purpose of supplying an // interpolating receiver side with samples. bool PlainContOutputConnector::sample () { return (localTime_->integerTime () + latency + remoteTime_.tickInterval () > 0); } void InterpolatingContOutputConnector::initialize () { // Set the remoteTime which is used to control sampling and // interpolation. // // For positive latencies, the integer part (in terms of receiver // ticks) of the latency is handled by filling up the receiver // buffers using InputSynchronizer::initialBufferedTicks (). // remoteTime then holds the fractional part. if (latency > 0) { ClockState startTime = - latency % remoteTime_.tickInterval (); if (latency >= localTime_->tickInterval ()) startTime = startTime + remoteTime_.tickInterval (); remoteTime_.set (startTime); } else remoteTime_.set (- latency); distributor_.configure (sampler_.interpolationDataMap ()); distributor_.initialize (); // synch.initialize (); // put one element in send buffers sampler_.sample (); sampler_.interpolate (1.0); distributor_.distribute (); } // After the last sample at 1 localTime will be between remoteTime // and remoteTime + localTime->tickInterval. We trigger on this // situation and forward remoteTime. bool InterpolatingContOutputConnector::sample() { ClockState sampleWindowLow = remoteTime_.integerTime () - localTime_->tickInterval (); ClockState sampleWindowHigh = remoteTime_.integerTime () + localTime_->tickInterval (); return (sampleWindowLow <= localTime_->integerTime () && localTime_->integerTime () < sampleWindowHigh); } bool InterpolatingContOutputConnector::interpolate() { ClockState sampleWindowHigh = remoteTime_.integerTime () + localTime_->tickInterval (); return (remoteTime_.integerTime () <= localTime_->integerTime () && localTime_->integerTime () < sampleWindowHigh); } double InterpolatingContOutputConnector::interpolationCoefficient() { ClockState prevSampleTime = localTime_->integerTime () - localTime_->tickInterval (); double c = ((double) (remoteTime_.integerTime () - prevSampleTime) / (double) localTime_->tickInterval ()); MUSIC_LOGR ("interpolationCoefficient = " << c); // NOTE: preliminary implementation which just provides // the functionality specified in the API if (interp) return c; else return round (c); } void InterpolatingContOutputConnector::preCommunication () { if (sample ()){ // sampling before and after time of receiver tick sampler_.sampleOnce (); } if (interpolate ()) { sampler_.interpolate (interpolationCoefficient ()); remoteTime_.tick(); distributor_.distribute (); } } ContInputConnector::ContInputConnector (ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MPI::Intracomm comm, Sampler& sampler, MPI::Datatype data_type, double delay) : Connector (connInfo, indices, type, comm), ContConnector (sampler, data_type), delay_ (delay), connector(NULL) { } ContInputConnector::ContInputConnector ( Sampler& sampler, MPI::Datatype type, double delay) : ContConnector (sampler, type), delay_ (delay), connector(NULL) { } ContInputConnector::~ContInputConnector() { if (connector != NULL) delete connector; } Subconnector* ContInputConnector::makeSubconnector (int remoteRank) { int receiverRank = intercomm.Get_rank (); return new ContInputSubconnector (//synchronizer (), intercomm, remoteLeader (), remoteRank, receiverRank, receiverPortCode (), data_type_); } bool ContInputConnector::divisibleDelay (Clock& localTime) { ClockState delay (delay_, localTime.timebase ()); return (delay % localTime.tickInterval ()) == 0; } void ContInputConnector::specialize (Clock& localTime) { ClockState tickInterval = localTime.tickInterval (); ClockState rTickInterval = remoteTickInterval (tickInterval); localTime_ = &localTime; remoteTime_.configure (localTime_->timebase (), rTickInterval); if (tickInterval < rTickInterval || (tickInterval == rTickInterval && !divisibleDelay (localTime))) connector = new InterpolatingContInputConnector(this); else connector = new PlainContInputConnector (this); } void ContInputConnector::initialCommunication() { double initialBTicks = initialBufferedTicks(); for (std::vector::iterator s = rsubconn.begin (); s != rsubconn.end (); ++s) (*s)->initialCommunication (initialBTicks); } // Return the number of copies of the data sampled by the sender // Runtime constructor which should be stored in the receiver // buffers at the first tick () (which occurs at the end of the // Runtime constructor) int ContInputConnector::initialBufferedTicks () { if (remoteTime_.tickInterval () < localTime_->tickInterval ()) { // InterpolatingOutputConnector - PlainInputConnector if (delay_ <= 0) return 0; else { // Need to add a sample first when we pass the receiver // tick (=> - 1). If we haven't passed, the interpolator // could simply use an interpolation coefficient of 0.0. // (But this will never happen since that case isn't // handled by an InterpolatingOutputConnector.) int ticks = (delay_ - 1) / localTime_->tickInterval (); // Need to add a sample if we go outside of the sender // interpolation window if (delay_ >= remoteTime_.tickInterval ()) ticks += 1; return ticks; } } else { // PlainOutputConnector - InterpolatingInputConnector if (delay_ <= 0) return 0; else // Need to add a sample first when we pass the receiver // tick (=> - 1). If we haven't passed, the interpolator // can simply use an interpolation coefficient of 0.0. return 1 + (delay_ - 1) / localTime_->tickInterval (); } } void ContInputConnector::addRoutingInterval (IndexInterval i, Subconnector* subconn) { InputSubconnector*isubconn= dynamic_cast(subconn); collector_.addRoutingInterval (i, isubconn->inputBuffer()); } void PlainContInputConnector::initialize () { // collector_.configure (sampler_.dataMap (), synch.allowedBuffered () + 1); collector_.configure (sampler_.dataMap (), CONT_BUFFER_MAX); collector_.initialize (); } void PlainContInputConnector::postCommunication () { // collect data from input buffers and write to application collector_.collect (); } void InterpolatingContInputConnector::initialize () { if (latency > 0) remoteTime_.set (latency % remoteTime_.tickInterval () - 2 * remoteTime_.tickInterval ()); else remoteTime_.set (latency % remoteTime_.tickInterval () - remoteTime_.tickInterval ()); // collector_.configure (sampler_.interpolationDataMap (), // synch.allowedBuffered () + 1); collector_.configure (sampler_.interpolationDataMap (), CONT_BUFFER_MAX); collector_.initialize (); // synch.initialize (); } bool InterpolatingContInputConnector::sample () { return localTime_->integerTime () > remoteTime_.integerTime (); } double InterpolatingContInputConnector::interpolationCoefficient () { ClockState prevSampleTime = remoteTime_.integerTime () - remoteTime_.tickInterval (); double c = ((double) (localTime_->integerTime () - prevSampleTime) / (double) remoteTime_.tickInterval ()); MUSIC_LOGR ("interpolationCoefficient = " << c); // NOTE: preliminary implementation which just provides // the functionality specified in the API if (interp) return c; else return round (c); } void InterpolatingContInputConnector::postCommunication () { if (first_) { collector_.collect (sampler_.insert ()); remoteTime_.tick(); first_ = false; } else if (sample ()) { collector_.collect (sampler_.insert ()); remoteTime_.tick(); } sampler_.interpolateToApplication (interpolationCoefficient ()); } /******************************************************************** * * Event Connectors * ********************************************************************/ Subconnector* EventOutputConnector::makeSubconnector (int remoteRank) { ////// /* int world_size = MPI::COMM_WORLD.Get_size(); if (MPI::COMM_WORLD.Get_rank() < world_size/2) std::cout << remoteRank << std::flush << std::endl;*/ return new EventOutputSubconnector (//&synch, intercomm, remoteLeader (), remoteRank, receiverPortCode ()); } void EventOutputConnector::addRoutingInterval (IndexInterval i, Subconnector* subconn) { OutputSubconnector* osubconn= dynamic_cast(subconn); routingMap_-> insert (i, osubconn->outputBuffer()); } Subconnector* EventInputConnector::makeSubconnector (int remoteRank) { int receiverRank = intercomm.Get_rank (); if (type_ == Index::GLOBAL){ EventInputSubconnectorGlobal *subcc = new EventInputSubconnectorGlobal (//&synch, intercomm, remoteLeader (), remoteRank, receiverRank, receiverPortCode (), handleEvent_); rRank2Subconnector[remoteRank] = subcc; flushes++; return subcc; } else { #if MUSIC_ANYSOURCE error( "LOCAL Indices are not supported with MUSIC_ANYSOURCE"); #endif return new EventInputSubconnectorLocal (//&synch, intercomm, remoteLeader (), remoteRank, receiverRank, receiverPortCode (), handleEvent_); } } void EventInputConnector::addRoutingInterval(IndexInterval i, Subconnector* subconn) { //routingMap_-> insert (i, handleEvent_.global()); } #if MUSIC_ANYSOURCE void EventInputConnector::tick () { //SPIKE_BUFFER_MAX size //MPI::BYTE type //SPIKE_MSG tag int size = rsubconn.size(); char data[SPIKE_BUFFER_MAX]; MPI::Status status; while(size > 0 && flushes > 0){ intercomm.Recv (data, SPIKE_BUFFER_MAX, MPI::BYTE, MPI_ANY_SOURCE, SPIKE_MSG, status); int msize = status.Get_count(MPI::BYTE); if (rRank2Subconnector[status.Get_source()]->receive(data, msize)) flushes--; if( msize < SPIKE_BUFFER_MAX) size--; } } #endif //MUSIC_ANYSOURCE /******************************************************************** * * Message Connectors * ********************************************************************/ MessageOutputConnector::MessageOutputConnector (ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MPI::Intracomm comm, std::vector& buffers) : Connector (connInfo, indices, type, comm), buffer (1), bufferAdded (false), buffers_ (buffers) { } Subconnector* MessageOutputConnector::makeSubconnector (int remoteRank) { return new MessageOutputSubconnector (//&synch, intercomm, remoteLeader (), remoteRank, receiverPortCode (), &buffer); } void MessageOutputConnector::addRoutingInterval (IndexInterval i, Subconnector* subconn) { if (!bufferAdded) { buffers_.push_back (&buffer); bufferAdded = true; } } void MessageOutputConnector::postCommunication () { } MessageInputConnector::MessageInputConnector (ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MessageHandler* handleMessage, MPI::Intracomm comm) : Connector (connInfo, indices, type, comm), handleMessage_ (handleMessage) { } Subconnector* MessageInputConnector::makeSubconnector (int remoteRank) { int receiverRank = intercomm.Get_rank (); return new MessageInputSubconnector (//&synch, intercomm, remoteLeader (), remoteRank, receiverRank, receiverPortCode (), handleMessage_); } /******************************************************************** * * Collective Connector * ********************************************************************/ CollectiveConnector::CollectiveConnector (bool high) : high_ (high), subconnector_ (NULL) { //idFlag_ = makeFlag (); } void CollectiveConnector::createIntercomm () { Connector::createIntercomm (); intracomm_ = intercomm.Merge (high_); } void CollectiveConnector::freeIntercomm () { intracomm_.Free (); Connector::freeIntercomm (); } ContCollectiveConnector::ContCollectiveConnector (MPI::Datatype type, bool high): CollectiveConnector (high), data_type (type) { } Subconnector* ContCollectiveConnector::makeSubconnector (void *param) { std::multimap< int, Interval> intrvs = *static_cast< std::multimap< int, Interval>*> (param); if (subconnector_ == NULL) { subconnector_ = new ContCollectiveSubconnector (intrvs, width (), intracomm_, data_type); } return subconnector_; } EventCollectiveConnector::EventCollectiveConnector (bool high) : CollectiveConnector (high), router_ (NULL) { idFlag_ = makeFlag (this); } Subconnector* EventInputCollectiveConnector::makeSubconnector (void *param) { if (subconnector_ == NULL) subconnector_ = new EventInputCollectiveSubconnector (router_); return subconnector_; } EventInputCollectiveConnector::EventInputCollectiveConnector (ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MPI::Intracomm comm, EventHandlerPtr handleEvent) : Connector (connInfo, indices, type, comm), EventInputConnector (handleEvent), EventCollectiveConnector (true) { int procMethod = connInfo.processingMethod (); if (procMethod == ConnectorInfo::TREE) if (handleEvent.getType () == Index::GLOBAL) router_ = new TreeProcessingInputGlobalRouter (); else router_ = new TreeProcessingInputLocalRouter (); else if (handleEvent.getType () == Index::GLOBAL) router_ = new TableProcessingInputGlobalRouter (); else router_ = new TableProcessingInputLocalRouter (); } EventInputCollectiveConnector::~EventInputCollectiveConnector() { delete router_; } void EventInputCollectiveConnector::spatialNegotiation (SpatialNegotiator* spatialNegotiator_) { routingMap_input = new InputRoutingMap (); Subconnector* subconn = EventInputCollectiveConnector::makeSubconnector (NULL); rsubconn.push_back (subconn); for (NegotiationIterator i = spatialNegotiator_->negotiateSimple (); !i.end (); ++i) addRoutingInterval (i->interval (), subconn); routingMap_input->fillRouter (router_); delete routingMap_input; router_->buildTable (); } void EventInputCollectiveConnector::addRoutingInterval (IndexInterval i, Subconnector* subconn) { routingMap_input->insert (i, &handleEvent_); } EventOutputCollectiveConnector::EventOutputCollectiveConnector (ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MPI::Intracomm comm, DirectRouter* router) : Connector (connInfo, indices, type, comm), EventOutputConnector (NULL), EventCollectiveConnector (false), directRouter_ (router) { } EventOutputCollectiveConnector::~EventOutputCollectiveConnector() { } Subconnector* EventOutputCollectiveConnector::makeSubconnector (void *param) { // EventRouter * router_ = static_cast(param); if(subconnector_ == NULL){ subconnector_ = new EventOutputCollectiveSubconnector (); } return subconnector_; } void EventOutputCollectiveConnector::spatialNegotiation (SpatialNegotiator* spatialNegotiator_) { EventOutputCollectiveSubconnector* subconn = dynamic_cast (EventOutputCollectiveConnector::makeSubconnector (NULL)); rsubconn.push_back (subconn); subconn->setRouter (directRouter_); //spatialNegotiator_->negotiateSimple (); } ContInputCollectiveConnector::ContInputCollectiveConnector (ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MPI::Intracomm comm, Sampler& sampler, MPI::Datatype data_type, double delay) : Connector(connInfo, indices,type, comm), ContInputConnector(sampler, data_type, delay), ContCollectiveConnector(data_type, true) { } void ContInputCollectiveConnector::spatialNegotiation (SpatialNegotiator* spatialNegotiator_) { std::multimap< int, Interval> receiver_intrvs; std::vector intrvs; std::map remoteToCollectiveRankMap; receiveRemoteCommRankID(remoteToCollectiveRankMap); for (NegotiationIterator i = spatialNegotiator_->negotiate (info.nProcesses (), this); !i.end (); ++i) { int begin = (i->displ())*data_type_.Get_size(); // length field is stored overlapping the end field int end = (i->end() - i->begin()) * data_type_.Get_size(); receiver_intrvs.insert (std::make_pair ( remoteToCollectiveRankMap[i->rank ()], Interval(begin, end))); intrvs.push_back(i->interval()); } Subconnector *subconn = ContCollectiveConnector::makeSubconnector(&receiver_intrvs); rsubconn.push_back (subconn); for (std::vector::iterator it=intrvs.begin() ; it < intrvs.end(); it++ ) addRoutingInterval ((*it), subconn); } void ContInputCollectiveConnector::receiveRemoteCommRankID(std::map &remoteToCollectiveRankMap) { int nProcesses, intra_rank; nProcesses = intercomm.Get_remote_size(); for (int i =0; i < nProcesses; ++i) { intercomm.Recv (&intra_rank, 1, MPI::INT, i, SPATIAL_NEGOTIATION_MSG); remoteToCollectiveRankMap.insert(std::make_pair(i,intra_rank)); MUSIC_LOG0( "Remote Communication Rank:" << i << "is mapped to Collective Communication Rank:" << intra_rank ); } } ContOutputCollectiveConnector::ContOutputCollectiveConnector(ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MPI::Intracomm comm, Sampler& sampler, MPI::Datatype data_type): Connector(connInfo, indices,type, comm), ContOutputConnector( sampler, data_type), ContCollectiveConnector(data_type, false) { } void ContOutputCollectiveConnector::spatialNegotiation ( SpatialNegotiator* spatialNegotiator_) { sendLocalCommRankID(); std::map empty_intrvs; Subconnector *subconn = ContCollectiveConnector::makeSubconnector(&empty_intrvs); rsubconn.push_back (subconn); spatialNegotiator_->negotiate (info.nProcesses (), this); for (NegotiationIterator i = spatialNegotiator_->negotiateSimple (); !i.end (); ++i) addRoutingInterval (i->interval(), subconn); } void ContOutputCollectiveConnector::sendLocalCommRankID() { int nProcesses, intra_rank; nProcesses = intercomm.Get_remote_size(); intra_rank = intracomm_.Get_rank(); std::map rCommToCollCommRankMap; for (int i =0; i < nProcesses; ++i){ intercomm.Ssend(&intra_rank, 1, MPI::INT, i, SPATIAL_NEGOTIATION_MSG); } } } #endif music-1.1.16/src/memory.cc0000644000175000017500000000246613571617503012267 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2012 INCF * * MUSIC 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. * * MUSIC 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 . */ #include extern "C" { #ifdef __APPLE__ #include #else #include #endif } #include "music/memory.hh" #include "../config.h" namespace MUSIC { void reportMem () { #ifdef HAVE_MALLINFO struct mallinfo minfo = mallinfo (); std::cout << "Allocated with sbrk (arena): " << minfo.arena << std::endl; std::cout << "Allocated with mmap (hblkhd): " << minfo.hblkhd << std::endl; std::cout << "Chunks handed out by malloc (uordblks): " << minfo.uordblks << std::endl; std::cout << "Free memory in pool (fordblks): " << minfo.fordblks << std::endl; #endif } } music-1.1.16/src/BIFO.cc0000644000175000017500000001136013571617503011467 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/BIFO.hh" #include "music/debug.hh" #if MUSIC_USE_MPI #include #include "music/error.hh" namespace MUSIC { void BIFO::configure (int elementSize, int maxBlockSize) { elementSize_ = elementSize; maxBlockSize_ = maxBlockSize; size = maxBlockSize_; buffer.resize (size); beginning = 0; end = 0; current = 0; top = 0; } // Duplicate the single element in the buffer to a total of nElements // 0 is allowed as argument in which case the buffer is emptied void BIFO::fill (int nElements) { int neededSize = nElements * elementSize_; if (neededSize > size) grow (neededSize); if (end - current != elementSize_) error ("internal error: BIFO in erroneous state before fill"); beginning = 0; if (nElements == 0) { end = 0; current = 0; top = 0; return; } // Here we use the assumption that vector memory is contiguous // Josuttis says this is the intention of STL even though the // first version of the report is not clear about this. if (current != 0) { memcpy (&buffer[0], &buffer[current], elementSize_); current = 0; } top = elementSize_; end = nElements * elementSize_; while (top < end) { memcpy (&buffer[top], &buffer[0], elementSize_); top += elementSize_; } } bool BIFO::isEmpty () { return current == end; } void* BIFO::insertBlock () { beginning = end; // set insertion point to end of last block if (current <= end) // reading below inserting? { // Inserting above current data // Is it time to wrap around the insertion point? This should // only be done if we can fit a maximal block below current // (current > maxBlockSize_). We need to use > since a // maximal block otherwise could cause an empty buffer. if (current > maxBlockSize_) beginning = 0; // Wrap around! else if (beginning + maxBlockSize_ > size) // Need to enlarge? // (The peculiar choice of growing just as much as we need // is made since buffers can be VERY large in large scale // simulations.) grow (beginning + maxBlockSize_); } else { // Inserting below current data if (current - beginning <= maxBlockSize_) // Too tight? { // delta is how much more space we need + epsilon (8 to be // nice to memory) int delta = maxBlockSize_ - (current - beginning) + 8; if (size - top < delta) // Need to enlarge? // (The peculiar choice of growing just as much as we need // is made since buffers can be VERY large in large scale // simulations.) grow (size + delta); // Now move entire upper chunk of data: memmove (&buffer[current + delta], &buffer[current], top - current); current += delta; top += delta; } } return static_cast (&buffer[beginning]); } void BIFO::trimBlock (int blockSize) { if (blockSize > 0) { end = beginning + blockSize; if (end > size) { std::ostringstream msg; msg << "BIFO buffer overflow; received " << blockSize / elementSize_ << ", room " << (size - beginning) / elementSize_ << ", permitted " << maxBlockSize_ / elementSize_; error (msg); } if (current <= end) top = end; } } void* BIFO::next () { if (isEmpty ()) { MUSIC_LOGR ("attempt to read from empty BIFO buffer"); return NULL; } if (current == top) { // wrap around current = 0; top = end; } // Here we use the assumption that vector memory is contiguous // Josuttis says this is the intention of STL even though the // first version of the report is not clear about this. void* memory = static_cast (&buffer[current]); /* remedius * could it be possible that elementSize > size of received data? no * changed from current+=elementSize_ to the following line: */ current += std::min(elementSize_,top-current); return memory; } void BIFO::grow (int newSize) { size = newSize; buffer.resize (size); } } #endif music-1.1.16/src/clock.cc0000644000175000017500000000324213571617503012043 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/clock.hh" namespace MUSIC { ClockState::ClockState (double t, double tb) { double dstate = t / tb; if (dstate >= 0.0) state = dstate + 0.5; else state = dstate - 0.5; } ClockState ClockState::Serialized::deserialize () { return (static_cast (upper) << 32) | lower; } ClockState::Serialized ClockState::serialize () { Serialized s; s.upper = (state >> 32); s.lower = state & 0xffffffffLL; return s; } Clock::Clock (double tb, double h) { configure (tb, ClockState (h, tb)); } void Clock::configure (double tb, ClockState ti) { state_ = 0; timebase_ = tb; tickInterval_ = ti; } void Clock::reset () { state_ = 0; } void Clock::tick () { state_ += tickInterval_; } void Clock::ticks (int n) { state_ += n * tickInterval_; } double Clock::time () const { return timebase_ * state_; } } music-1.1.16/src/music-c-c.c0000644000175000017500000000040513571617503012363 00000000000000 #if MUSIC_USE_MPI #include #include "music-c.h" /* Communicators */ MPI_Comm MUSIC_setupCommunicatorGlue (MUSIC_Setup *setup); MPI_Comm MUSIC_setupCommunicator (MUSIC_Setup *setup) { return (MPI_Comm) MUSIC_setupCommunicatorGlue (setup); } #endif music-1.1.16/src/predict_rank.cc0000644000175000017500000000156313571617503013421 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2011 CSC, KTH * * MUSIC 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. * * MUSIC 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 . */ #include "music/predict_rank.hh" #include "mpidep/mpidep.hh" namespace MUSIC { int predictRank (int argc, char** argv) { return getRank (argc, argv); } } music-1.1.16/src/port.cc0000644000175000017500000004464613571617503011751 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/port.hh" #if MUSIC_USE_MPI #include "music/event_router.hh" #include "music/setup.hh" // Must be included first on BG/L #include "music/error.hh" namespace MUSIC { Port::Port (Setup* s, std::string identifier) : portName_ (identifier), setup_ (s), isMapped_ (false) { s->maybePostponedSetup (); ConnectivityInfo_ = s->portConnectivity (portName_); setup_->addPort (this); } bool Port::isConnected () { return ConnectivityInfo_ != Connectivity::NO_CONNECTIVITY; } void Port::checkConnected (std::string action) { if (!isConnected ()) { std::ostringstream msg; msg << "attempt to " << action << " port `" << portName_ << "' which is unconnected"; error (msg); } } void Port::assertOutput () { checkCalledOnce (isMapped_, "OutputPort::map (...)", " for port " + portName_); checkConnected ("map"); if (ConnectivityInfo_->direction () != ConnectivityInfo::OUTPUT) { std::ostringstream msg; msg << "output port `" << ConnectivityInfo_->portName () << "' connected as input"; error (msg); } } void Port::assertInput () { checkCalledOnce (isMapped_, "InputPort::map (...)", " for port " + portName_); checkConnected ("map"); if (ConnectivityInfo_->direction () != ConnectivityInfo::INPUT) { std::ostringstream msg; msg << "input port `" << ConnectivityInfo_->portName () << "' connected as output"; error (msg); } } bool Port::hasWidth () { checkConnected ("ask for width of"); return ConnectivityInfo_->width () != ConnectivityInfo::NO_WIDTH; } int Port::width () { checkConnected ("ask for width of"); int w = ConnectivityInfo_->width (); if (w == ConnectivityInfo::NO_WIDTH) { std::ostringstream msg; msg << "width requested for port `" << ConnectivityInfo_->portName () << "' which has unspecified width"; error (msg); } return w; } void Port::checkIndexMap (IndexMap* indexMap) { if (indexMap->begin () != indexMap->end ()) { IndexMap::iterator i = indexMap->begin (); IndexInterval last = *i; ++i; for (; i != indexMap->end (); ++i) { if (i->begin () < last.end ()) { std::ostringstream os; os << "Mapping port " << portName_ << " using index map with overlaps: [" << last.begin () << ", " << last.end () << "), [" << i->begin () << ", " << i->end () << ")"; error (os); } last = *i; } } } void OutputPort::mapImpl (IndexMap* indices, Index::Type type, int maxBuffered, int dataSize) { checkIndexMap (indices); // The timing algorithm in uses a different definition of // maxBuffered. While the interface in port.hh counts the number // of "ticks of data" which must be stored, the timing algorithm // counts the offset in time between the processes in sender // ticks. if (maxBuffered != MAX_BUFFERED_NO_VALUE) maxBuffered -= 1; // Retrieve info about all remote connectors of this port PortConnectorInfo portConnections = ConnectivityInfo_->connections (); indices_ = indices; index_type_ = type; for (PortConnectorInfo::iterator info = portConnections.begin (); info != portConnections.end (); ++info) { // Create connector Connector* connector = makeConnector (*info); setup_->addConnection (new OutputConnection (connector, maxBuffered, dataSize)); } } void InputPort::mapImpl (IndexMap* indices, Index::Type type, double accLatency, int maxBuffered, bool interpolate) { checkIndexMap (indices); // The timing algorithm in uses a different definition of // maxBuffered. While the interface in port.hh counts the number // of "ticks of data" which must be stored, the timing algorithm // counts the offset in time between the processes in sender // ticks. if (maxBuffered != MAX_BUFFERED_NO_VALUE) maxBuffered -= 1; // Retrieve info about all remote connectors of this port PortConnectorInfo portConnections = ConnectivityInfo_->connections (); PortConnectorInfo::iterator info = portConnections.begin (); indices_ = indices; index_type_ = type; Connector* connector = makeConnector (*info); ClockState integerLatency (accLatency, setup_->timebase ()); setup_->addConnection (new InputConnection (connector, maxBuffered, integerLatency, interpolate)); } /******************************************************************** * * Cont Ports * ********************************************************************/ void ContOutputPort::map (DataMap* dmap) { assertOutput (); int maxBuffered = MAX_BUFFERED_NO_VALUE; mapImpl (dmap, maxBuffered); } void ContOutputPort::map (DataMap* dmap, int maxBuffered) { assertOutput (); if (maxBuffered <= 0) { error ("ContOutputPort::map: maxBuffered should be a positive integer"); } mapImpl (dmap, maxBuffered); } void ContOutputPort::mapImpl (DataMap* dmap, int maxBuffered) { sampler.configure (dmap); type_ = dmap->type (); OutputPort::mapImpl (dmap->indexMap (), Index::GLOBAL, maxBuffered, 0); } Connector* ContOutputPort::makeConnector (ConnectorInfo connInfo) { Connector * conn; if(connInfo.communicationType() == ConnectorInfo::POINTTOPOINT){ conn = new ContOutputConnector (connInfo, indices_, index_type_, setup_->communicator (), sampler, type_); } else conn = new ContOutputCollectiveConnector(connInfo, indices_, index_type_, setup_->communicator (), sampler, type_); return conn; } void ContOutputPort::tick () { sampler.newSample (); } void ContInputPort::map (DataMap* dmap, double delay, bool interpolate) { assertInput (); int maxBuffered = MAX_BUFFERED_NO_VALUE; mapImpl (dmap, delay, maxBuffered, interpolate); } void ContInputPort::map (DataMap* dmap, int maxBuffered, bool interpolate) { assertInput (); mapImpl (dmap, 0.0, maxBuffered, interpolate); } void ContInputPort::map (DataMap* dmap, double delay, int maxBuffered, bool interpolate) { assertInput (); mapImpl (dmap, delay, maxBuffered, interpolate); } void ContInputPort::mapImpl (DataMap* dmap, double delay, int maxBuffered, bool interpolate) { sampler.configure (dmap); delay_ = delay; type_ = dmap->type (); InputPort::mapImpl (dmap->indexMap (), Index::GLOBAL, delay, maxBuffered, interpolate); } Connector* ContInputPort::makeConnector (ConnectorInfo connInfo) { Connector * conn; if(connInfo.communicationType() == ConnectorInfo::POINTTOPOINT){ conn = new ContInputConnector (connInfo, indices_, index_type_, setup_->communicator (), sampler, type_, delay_); } else conn = new ContInputCollectiveConnector (connInfo, indices_, index_type_, setup_->communicator (), sampler, type_, delay_); return conn; } /******************************************************************** * * Event Ports * ********************************************************************/ EventOutputPort::EventOutputPort (Setup* s, std::string id) : Port (s, id), routingMap (new OutputRoutingMap () /* deleted in buildTable */) { /* remedius * Depending on the communication type () and * processing method () that was introduced as * runtime configuration options, * particular processing router should be created on the output side. * When collective communication type is used, * then the processing method has to be TABLE on the output side, as in this case * the processing on the output side means just an insertion of the event to the buffer. * The difference between point-to-point and collective communication types is that on the output side * in the latest case we have only one common buffer (one CollectiveSubconnector) and processing is happening on the receiver side. */ if (isConnected ()) { bool mixed = false; PortConnectorInfo::iterator c = ConnectivityInfo_->connections ().begin (); int commType = c->communicationType (); int procMethod = c->processingMethod (); for (++c; c != ConnectivityInfo_->connections ().end (); ++c) { if (c->processingMethod () != procMethod) error ("MUSIC: can't use both tree and table for same port"); if (c->communicationType () != commType) mixed = true; } if (!mixed) { if (commType == ConnectorInfo::COLLECTIVE) router = new DirectRouter (); else if (procMethod == ConnectorInfo::TREE) router = new TreeProcessingOutputRouter (); else router = new TableProcessingOutputRouter (); } else { if (procMethod == ConnectorInfo::TREE) router = new HybridTreeProcessingOutputRouter (); else router = new HybridTableProcessingOutputRouter (); } } } EventOutputPort::~EventOutputPort() { if (router != NULL) delete router; } void EventOutputPort::mapImpl (IndexMap* indices, Index::Type type, int maxBuffered) { OutputPort::mapImpl (indices, type, maxBuffered, (int) sizeof (Event)); } void EventOutputPort::map (IndexMap* indices, Index::Type type) { assertOutput (); EventOutputPort::mapImpl (indices, type, MAX_BUFFERED_NO_VALUE); } void EventOutputPort::map (IndexMap* indices, Index::Type type, int maxBuffered) { assertOutput (); if (maxBuffered <= 0) { error ("EventOutputPort::map: maxBuffered should be a positive integer"); } EventOutputPort::mapImpl (indices, type, maxBuffered); } Connector* EventOutputPort::makeConnector (ConnectorInfo connInfo) { Connector *conn; // we need to choose a right connector according to the communication type if (connInfo.communicationType () == ConnectorInfo::POINTTOPOINT) conn = new EventOutputConnector (connInfo, indices_, index_type_, setup_->communicator (), routingMap); else conn = new EventOutputCollectiveConnector (connInfo, indices_, index_type_, setup_->communicator (), router->directRouter ()); return conn; } void EventOutputPort::insertEventImpl (double t, int id) { router->processEvent(t, id); } void EventOutputPort::insertEvent (double t, GlobalIndex id) { insertEventImpl(t, id); } void EventOutputPort::insertEvent (double t, LocalIndex id) { insertEventImpl(t, id); } void EventOutputPort::buildTable () { routingMap->fillRouter (router); delete routingMap; router->buildTable (); } EventInputPort::EventInputPort (Setup* s, std::string id) : Port (s, id) { } void EventInputPort::map (IndexMap* indices, EventHandlerGlobalIndex* handleEvent, double accLatency) { assertInput (); int maxBuffered = MAX_BUFFERED_NO_VALUE; mapImpl (indices, Index::GLOBAL, EventHandlerPtr (handleEvent), accLatency, maxBuffered); } void EventInputPort::map (IndexMap* indices, EventHandlerLocalIndex* handleEvent, double accLatency) { assertInput (); int maxBuffered = MAX_BUFFERED_NO_VALUE; mapImpl (indices, Index::LOCAL, EventHandlerPtr (handleEvent), accLatency, maxBuffered); } void EventInputPort::map (IndexMap* indices, EventHandlerGlobalIndex* handleEvent, double accLatency, int maxBuffered) { assertInput (); if (maxBuffered <= 0) { error ("EventInputPort::map: maxBuffered should be a positive integer"); } mapImpl (indices, Index::GLOBAL, EventHandlerPtr (handleEvent), accLatency, maxBuffered); } void EventInputPort::map (IndexMap* indices, EventHandlerLocalIndex* handleEvent, double accLatency, int maxBuffered) { assertInput (); if (maxBuffered <= 0) { error ("EventInputPort::map: maxBuffered should be a positive integer"); } mapImpl (indices, Index::LOCAL, EventHandlerPtr (handleEvent), accLatency, maxBuffered); } void EventInputPort::mapImpl (IndexMap* indices, Index::Type type, EventHandlerPtr handleEvent, double accLatency, int maxBuffered) { type_ = type; handleEvent_ = handleEvent; InputPort::mapImpl (indices, type, accLatency, maxBuffered, false); } Connector* EventInputPort::makeConnector (ConnectorInfo connInfo) { // we need to choose a right connector according to the communication type Connector *conn; if(connInfo.communicationType() == ConnectorInfo::POINTTOPOINT) conn = new EventInputConnector (connInfo, indices_, index_type_, setup_->communicator (), handleEvent_); else conn = new EventInputCollectiveConnector(connInfo, indices_, index_type_, setup_->communicator (), handleEvent_); return conn; } EventHandlerGlobalIndexProxy* EventInputPort::allocEventHandlerGlobalIndexProxy (void (*eh) (double, int)) { cEventHandlerGlobalIndex = EventHandlerGlobalIndexProxy (eh); return &cEventHandlerGlobalIndex; } EventHandlerLocalIndexProxy* EventInputPort::allocEventHandlerLocalIndexProxy (void (*eh) (double, int)) { cEventHandlerLocalIndex = EventHandlerLocalIndexProxy (eh); return &cEventHandlerLocalIndex; } /******************************************************************** * * Message Ports * ********************************************************************/ MessagePort::MessagePort (Setup* s) : rank_ (s->communicator ().Get_rank ()) { } MessageOutputPort::MessageOutputPort (Setup* s, std::string id) : Port (s, id), MessagePort (s) { } void MessageOutputPort::map () { assertOutput (); int maxBuffered = MAX_BUFFERED_NO_VALUE; mapImpl (maxBuffered); } void MessageOutputPort::map (int maxBuffered) { assertOutput (); if (maxBuffered <= 0) { error ("MessageOutputPort::map: maxBuffered should be a positive integer"); } mapImpl (maxBuffered); } void MessageOutputPort::mapImpl (int maxBuffered) { // Identify ourselves LinearIndex indices (rank_, 1); OutputPort::mapImpl (&indices, Index::GLOBAL, maxBuffered, 1); } Connector* MessageOutputPort::makeConnector (ConnectorInfo connInfo) { return new MessageOutputConnector (connInfo, indices_, index_type_, setup_->communicator (), buffers); } void MessageOutputPort::insertMessage (double t, void* msg, size_t size) { // One output buffer per OutputConnector (since different // connectors may need to send at different times) for (std::vector::iterator b = buffers.begin (); b != buffers.end (); ++b) { MessageHeader header (t, size); (*b)->insert (header.data (), sizeof (MessageHeader)); (*b)->insert (msg, size); } } MessageInputPort::MessageInputPort (Setup* s, std::string id) : Port (s, id), MessagePort (s) { } void MessageInputPort::map (MessageHandler* handleMessage, double accLatency) { assertInput (); int maxBuffered = MAX_BUFFERED_NO_VALUE; mapImpl (handleMessage, accLatency, maxBuffered); } void MessageInputPort::map (int maxBuffered) { assertInput (); if (maxBuffered <= 0) { error ("MessageInputPort::map: maxBuffered should be a positive integer"); } mapImpl (0, 0.0, maxBuffered); } void MessageInputPort::map (double accLatency, int maxBuffered) { assertInput (); if (maxBuffered <= 0) { error ("MessageInputPort::map: maxBuffered should be a positive integer"); } mapImpl (0, accLatency, maxBuffered); } void MessageInputPort::map (MessageHandler* handleMessage, int maxBuffered) { assertInput (); if (maxBuffered <= 0) { error ("MessageInputPort::map: maxBuffered should be a positive integer"); } mapImpl (handleMessage, 0.0, maxBuffered); } void MessageInputPort::map (MessageHandler* handleMessage, double accLatency, int maxBuffered) { assertInput (); if (maxBuffered <= 0) { error ("MessageInputPort::map: maxBuffered should be a positive integer"); } mapImpl (handleMessage, accLatency, maxBuffered); } void MessageInputPort::mapImpl (MessageHandler* handleMessage, double accLatency, int maxBuffered) { handleMessage_ = handleMessage; // Receive from everybody LinearIndex indices (0, handleMessage ? Index::WILDCARD_MAX : 0); InputPort::mapImpl (&indices, Index::GLOBAL, accLatency, maxBuffered, false); } Connector* MessageInputPort::makeConnector (ConnectorInfo connInfo) { return new MessageInputConnector (connInfo, indices_, index_type_, handleMessage_, setup_->communicator ()); } MessageHandlerProxy* MessageInputPort::allocMessageHandlerProxy (void (*mh) (double, void*, size_t)) { cMessageHandler = MessageHandlerProxy (mh); return &cMessageHandler; } } #endif music-1.1.16/src/array_data.cc0000644000175000017500000000266213571617503013064 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ // This header file needs to be included first since array_data.hh // includes which musy be included first on BG/L #include "music/array_data.hh" #if MUSIC_USE_MPI #include "music/linear_index.hh" namespace MUSIC { ArrayData::ArrayData (void* buffer, MPI::Datatype type, IndexMap* map) : DataMap (buffer), type_ (type), indexMap_ (map->copy ()) { } ArrayData::~ArrayData () { delete indexMap_; } ArrayData::ArrayData (void* buffer, MPI::Datatype type, int baseIndex, int size) : DataMap (buffer) { type_ = type; indexMap_ = new LinearIndex (baseIndex, size); } DataMap* ArrayData::copy () { return new ArrayData (base (), type_, indexMap_); } } #endif music-1.1.16/src/setup.cc0000644000175000017500000002405613571617503012116 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/setup.hh" #if MUSIC_USE_MPI #include #include "music/runtime.hh" #include "music/parse.hh" #include "music/error.hh" #include "music/application_mapper.hh" #include #include namespace MUSIC { bool Setup::isInstantiated_ = false; static std::string err_MPI_Init = "MPI_Init was called before the Setup constructor"; const char* const Setup::opConfigFileName = "--music-config"; const char* const Setup::opAppLabel = "--app-label"; Setup::Setup (int& argc, char**& argv) : argc_ (argc), argv_ (argv) { checkInstantiatedOnce (isInstantiated_, "Setup"); if (MPI::Is_initialized ()) errorRank (err_MPI_Init); maybeProcessMusicArgv (argc, argv); MPI::Init (argc, argv); init (argc, argv); } Setup::Setup (int& argc, char**& argv, int required, int* provided) : argc_ (argc), argv_ (argv) { checkInstantiatedOnce (isInstantiated_, "Setup"); if (MPI::Is_initialized ()) errorRank (err_MPI_Init); maybeProcessMusicArgv (argc, argv); #ifdef HAVE_CXX_MPI_INIT_THREAD *provided = MPI::Init_thread (argc, argv, required); #else // Only C version provided in libmpich MPI_Init_thread (&argc, &argv, required, provided); #endif init (argc, argv); } Setup::~Setup () { for (std::vector::iterator i = ports_.begin (); i != ports_.end (); ++i) (*i)->setupCleanup (); if (launchedByMusic ()) delete temporalNegotiator_; // delete connection objects for (std::vector::iterator i = connections_->begin (); i != connections_->end (); ++i) delete *i; delete connections_; delete config_; isInstantiated_ = false; } void Setup::init (int& argc, char**& argv) { int myRank = MPI::COMM_WORLD.Get_rank (); std::string config = ""; launchedByMusic_ = false; postponeSetup_ = false; if (launchedWithExec (config)) { assert(config.length() > 0); launchedByMusic_ = true; if (!config.compare (0, 8, "POSTPONE")) postponeSetup_ = true; config_ = new Configuration (config); } else if (launchedMPMD (argc, argv, config)) { launchedByMusic_ = true; std::string config_file; loadConfigFile (config, config_file); std::string app_label; std::string binary (argv[0]); // argv[0] is the name of the program, // or an empty string if the name is not available if (!getOption (argc, argv, opAppLabel, app_label) && binary.length () == 0) { std::ostringstream oss; oss << "MUSIC: use --app-label to specify application label"; error0 (oss.str ()); } std::istringstream config_istream (config_file); config_ = new Configuration (); ApplicationMapper app_mapper(config_); app_mapper.map(&config_istream, binary, app_label); } else config_ = new Configuration (); connections_ = new std::vector; // destroyed by runtime if (launchedByMusic ()) { // launched by the music utility if (!postponeSetup_) { fullInit (); argc = argc_; argv = argv_; } comm = MPI::COMM_WORLD.Split (config_->Color (), myRank); } else { // launched with mpirun comm = MPI::COMM_WORLD; timebase_ = MUSIC_DEFAULT_TIMEBASE; } } bool Setup::getOption (int argc, char** argv, std::string option, std::string& result) { result.assign(""); for (int i = 1; i < argc; ++i) if (option.compare(argv[i]) == 0 && argc > i){ result.assign(argv[i+1]); // skip options return true; } return false; } bool Setup::launchedWithExec (std::string &result) { // is _MUSIC_CONFIG_ env variable is set ? char* res = getenv (Configuration::configEnvVarName); if (res != NULL) { result.assign (res); return true; } else return false; } bool Setup::launchedMPMD (int argc, char** argv, std::string& config) { // if given option --music-config, // the launch is categorized as MPMD if (!getOption(argc, argv, opConfigFileName, config) ) return false; else return true; } void Setup::loadConfigFile (std::string filename, std::string &result) { std::ifstream config; char* buffer; int size = 0; int myRank = MPI::COMM_WORLD.Get_rank (); // Rank #0 is reading a file and broadcast it to each rank in the launch if (myRank == 0) { config.open (filename.c_str ()); if (!config.is_open ()) { std::ostringstream oss; oss << "MUSIC: Couldn't open configuration file: " << filename << '\n'; error0 (oss.str ()); } size = config.tellg (); config.seekg (0, std::ios_base::end); long cur_pos = config.tellg (); size = cur_pos - size; config.seekg (0, std::ios_base::beg); } // first broadcast the size of the file MPI::COMM_WORLD.Bcast (&size, 1, MPI::INT, 0); buffer = new char[size]; if (myRank == 0) config.read (buffer, size); // then broadcast the file but itself MPI::COMM_WORLD.Bcast (buffer, size, MPI::BYTE, 0); // parseMapFile (app_name, std::string (buffer, size), result); if (myRank == 0) config.close (); result.assign (buffer); delete[] buffer; } void Setup::maybeProcessMusicArgv (int& argc, char**& argv) { char* MUSIC_ARGV = getenv ("MUSIC_ARGV"); if (MUSIC_ARGV != NULL) { std::string cmd; std::string argstring; char* s = index (MUSIC_ARGV, ' '); if (s == NULL) { cmd = std::string (MUSIC_ARGV); argstring = ""; } else { cmd = std::string (MUSIC_ARGV, s - MUSIC_ARGV); argstring = std::string (s + 1); } argv = parseArgs (cmd, argstring, &argc); } } void Setup::maybePostponedSetup () { if (postponeSetup_) { delete config_; config_ = new Configuration (); fullInit (); } } void Setup::errorChecks () { ApplicationMap* apps = applicationMap (); int nRequestedProc = apps->nProcesses (); int nMPIProc = MPI::COMM_WORLD.Get_size (); if (nMPIProc != nRequestedProc) { std::ostringstream msg; msg << "configuration file specifies " << nRequestedProc << " MPI processes but MUSIC was given " << nMPIProc << std::endl; error0 (msg.str ()); } } void Setup::fullInit () { errorChecks (); if (!config ("timebase", &timebase_)) timebase_ = MUSIC_DEFAULT_TIMEBASE; // default timebase string binary; config_->lookup ("binary", &binary); string args; config_->lookup ("args", &args); argv_ = parseArgs (binary, args, &argc_); temporalNegotiator_ = new TemporalNegotiator (this); } bool Setup::launchedByMusic () { return launchedByMusic_; } MPI::Intracomm Setup::communicator () { return comm; } ConnectivityInfo* Setup::portConnectivity (const std::string localName) { return config_->connectivityMap ()->info (localName); } ApplicationMap* Setup::applicationMap () { return config_->applications (); } int Setup::applicationColor () { return config_->Color(); } std::string Setup::applicationName() { return config_->Name(); } int Setup::leader () { return config_->Leader (); } int Setup::nProcs () { return comm.Get_size (); } ConnectivityInfo::PortDirection Setup::portDirection (const std::string localName) { return config_->connectivityMap ()->direction (localName); } int Setup::portWidth (const std::string localName) { return config_->connectivityMap ()->width (localName); } PortConnectorInfo Setup::portConnections (const std::string localName) { return config_->connectivityMap ()->connections (localName); } bool Setup::config (string var, string* result) { return config_->lookup (var, result); } bool Setup::config (string var, int* result) { return config_->lookup (var, result); } bool Setup::config (string var, double* result) { return config_->lookup (var, result); } bool Setup::config (string var, bool* result) { return config_->lookup (var, result); } ContInputPort* Setup::publishContInput (std::string identifier) { return new ContInputPort (this, identifier); } ContOutputPort* Setup::publishContOutput (std::string identifier) { return new ContOutputPort (this, identifier); } EventInputPort* Setup::publishEventInput (std::string identifier) { return new EventInputPort (this, identifier); } EventOutputPort* Setup::publishEventOutput (std::string identifier) { return new EventOutputPort (this, identifier); } MessageInputPort* Setup::publishMessageInput (std::string identifier) { return new MessageInputPort (this, identifier); } MessageOutputPort* Setup::publishMessageOutput (std::string identifier) { return new MessageOutputPort (this, identifier); } void Setup::addPort (Port* p) { ports_.push_back (p); } void Setup::addConnection (Connection* c) { connections_->push_back (c); } } #endif music-1.1.16/src/spatial.cc0000644000175000017500000003530013571617503012405 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/spatial.hh" // Must be included first on BG/Ls #include "music/debug.hh" #if MUSIC_USE_MPI #include #include "music/error.hh" #include "music/communication.hh" #include "music/connector.hh" // used only for debugging namespace MUSIC { NegotiationIterator::BufferTraversal::BufferTraversal (std::vector& buffers_) : buffers (buffers_), buffer (0), interval (0) { findInterval (); } void NegotiationIterator::BufferTraversal::findInterval () { while (buffer < buffers.size () && interval == buffers[buffer].size ()) { // Check next buffer ++buffer; interval = 0; } } bool NegotiationIterator::BufferTraversal::end () { return buffer == buffers.size (); } void NegotiationIterator::BufferTraversal::operator++ () { ++interval; findInterval (); } SpatialNegotiationData* NegotiationIterator::BufferTraversal::dereference () { return &buffers[buffer][interval]; } void NegotiationIterator::init (Implementation* impl) { implementation_ = impl; end_ = false; ++*this; } NegotiationIterator::~NegotiationIterator () { delete implementation_; } NegotiationIterator::NegotiationIterator (const NegotiationIterator& i) : implementation_ (i.implementation_->copy ()), current_ (i.current_), end_ (i.end_) { } const NegotiationIterator& NegotiationIterator::operator= (const NegotiationIterator& i) { delete implementation_; implementation_ = i.implementation_->copy (); current_ = i.current_; end_ = i.end_; return *this; } NegotiationIterator& NegotiationIterator::operator++ () { if (implementation_->end ()) end_ = true; else { current_ = *implementation_->dereference (); ++*implementation_; while (!implementation_->end () && implementation_->dereference ()->begin () == current_.end () && implementation_->dereference ()->local () == current_.local () && implementation_->dereference ()->rank () == current_.rank ()) { // join intervals current_.setEnd (implementation_->dereference ()->end ()); ++*implementation_; } } return *this; } SpatialNegotiationData* NegotiationIterator::operator-> () { return ¤t_; } SpatialNegotiator::SpatialNegotiator (IndexMap* ind, Index::Type type_, MPI::Intracomm c) : comm(c), indices (ind), type (type_) { nProcesses = comm.Get_size (); localRank = comm.Get_rank (); negotiateWidth (); } void SpatialNegotiator::negotiateWidth () { // First determine local least upper bound and width int u = 0; int w = 0; for (IndexMap::iterator i = indices->begin (); i != indices->end (); ++i) { if (i->end () > u) u = i->end (); w += i->end () - i->begin (); } // Now take maximum over all processes std::vector m (nProcesses); comm.Allgather (&u, 1, MPI::INT, &m[0], 1, MPI::INT); for (unsigned int i = 0; i < nProcesses; ++i) if (m[i] > u) u = m[i]; width = u; comm.Allgather (&w, 1, MPI::INT, &m[0], 1, MPI::INT); for (unsigned int i = 0; i < nProcesses; ++i) if (m[i] > w) w = m[i]; maxLocalWidth_ = w; } void SpatialOutputNegotiator::negotiateWidth () { if (localRank == 0) { // Receiver might need to know sender width intercomm.Send (&width, 1, MPI::INT, 0, WIDTH_MSG); int remoteWidth; intercomm.Recv (&remoteWidth, 1, MPI::INT, 0, WIDTH_MSG); if (remoteWidth != width) { std::ostringstream msg; msg << "sender and receiver width mismatch (" << width << " != " << remoteWidth << ")"; error (msg.str ()); } } } void SpatialInputNegotiator::negotiateWidth () { if (localRank == 0) { int remoteWidth; intercomm.Recv (&remoteWidth, 1, MPI::INT, 0, WIDTH_MSG); // NOTE: For now, the handling of Index::WILDCARD_MAX is a bit // incomplete since, if there is any index interval on the // receiver side with index larger than the sender side width, // we will still choose sender side width as receiver side // width. /* remedius * temporal fix is width = remoteWidth; shouldn't be like this!!! */ if (width == Index::WILDCARD_MAX || width < remoteWidth ) width = remoteWidth; intercomm.Send (&width, 1, MPI::INT, 0, WIDTH_MSG); } // Broadcast result (if we used a wildcard) comm.Bcast (&width, 1, MPI::INT, 0); if (maxLocalWidth_ == Index::WILDCARD_MAX) maxLocalWidth_ = width; } NegotiationIterator SpatialNegotiator::canonicalDistribution (int width, int nProcesses) { class Wrapper : public NegotiationIterator::Implementation { int i; int r; int w; int nPerProcess; SpatialNegotiationData data; public: Wrapper (int width, int nProcesses) : i (0), r (0), w (width) { nPerProcess = w / nProcesses; if (w % nProcesses > 0) ++nPerProcess; } bool end () { return i >= w; } void operator++ () { ++r; i += nPerProcess; } SpatialNegotiationData* dereference () { int high = std::min (i + nPerProcess, w); data = SpatialNegotiationData (IndexInterval (i, high, 0), r, 0); return &data; } Implementation* copy () { return new Wrapper (*this); } }; return NegotiationIterator (new Wrapper (width, nProcesses)); } NegotiationIterator SpatialNegotiator::wrapIntervals (IndexMap::iterator beg, IndexMap::iterator end, Index::Type type, int rank) { class Wrapper : public NegotiationIterator::Implementation { protected: SpatialNegotiationData data; IndexMap::iterator i; private: IndexMap::iterator end_; protected: int rank_; int cur_displ_; public: Wrapper (IndexMap::iterator beg, IndexMap::iterator end, int rank) : i (beg), end_ (end), rank_ (rank) { cur_displ_ = 0; } bool end () { return i == end_; } void operator++ () { cur_displ_ +=(i->end() - i->begin()); ++i; if(end()) cur_displ_ = 0;} }; class GlobalWrapper : public Wrapper { public: GlobalWrapper (IndexMap::iterator beg, IndexMap::iterator end, int rank) : Wrapper (beg, end, rank) { } SpatialNegotiationData* dereference () { data = SpatialNegotiationData (*i, rank_, cur_displ_); data.setLocal (0); return &data; } Implementation* copy () { return new GlobalWrapper (*this); } }; class LocalWrapper : public Wrapper { public: LocalWrapper (IndexMap::iterator beg, IndexMap::iterator end, int rank) : Wrapper (beg, end, rank) { } SpatialNegotiationData* dereference () { data = SpatialNegotiationData (*i, rank_, cur_displ_); return &data; } Implementation* copy () { return new LocalWrapper (*this); } }; Wrapper* w; if (type == Index::GLOBAL) w = new GlobalWrapper (beg, end, rank); else w = new LocalWrapper (beg, end, rank); return NegotiationIterator (w); } // Compute intersection intervals between source and dest. Store // the resulting intervals with rank from source in buffer // belonging to rank in dest. void SpatialNegotiator::intersectToBuffers (std::vector& source, std::vector& dest, std::vector& buffers) { // Cleanup old buffer content for (std::vector::iterator i = buffers.begin (); i != buffers.end (); ++i) i->clear (); for (std::vector::iterator d = dest.begin (); d != dest.end (); ++d) for (std::vector::iterator s = source.begin (); s != source.end (); ++s) intersectToBuffers2 (*s, *d, buffers); } void SpatialNegotiator::intersectToBuffers (NegotiationIterator source, NegotiationIterator dest, std::vector& buffers) { // Cleanup old buffer content for (std::vector::iterator i = buffers.begin (); i != buffers.end (); ++i) i->clear (); intersectToBuffers2 (source, dest, buffers); } void SpatialNegotiator::intersectToBuffers2 (NegotiationIterator source, NegotiationIterator dest, std::vector& buffers) { while (!source.end () && !dest.end ()) { MUSIC_LOGX("(" << source->begin () << ", " << source->end () << ", " << source->local () << ", " << source->rank () << ") and (" << dest->begin () << ", " << dest->end () << ", " << dest->local () << ", " << dest->rank () << ")"); if (source->begin () < dest->begin ()) if (dest->begin () < source->end ()) if (dest->end () < source->end ()) { // NOTE: put into helper function to get overview SpatialNegotiationData d (dest->begin (), dest->end (), dest->local () - source->local (), source->rank (), source->displ()+(dest->begin()-source->begin()) ); buffers[dest->rank ()].push_back (d); ++dest; } else { SpatialNegotiationData d (dest->begin (), source->end (), dest->local () - source->local (), source->rank (), source->displ()+(dest->begin()-source->begin()) ); buffers[dest->rank ()].push_back (d); ++source; } else ++source; else if (source->begin () < dest->end ()) if (source->end () < dest->end ()) { SpatialNegotiationData d (source->begin (), source->end (), dest->local () - source->local (), source->rank (), source->displ() ); buffers[dest->rank ()].push_back (d); ++source; } else { SpatialNegotiationData d (source->begin (), dest->end (), dest->local () - source->local (), source->rank (), source->displ() ); buffers[dest->rank ()].push_back (d); ++dest; } else ++dest; } } void SpatialNegotiator::send (MPI::Comm& comm, int destRank, NegotiationIntervals& intervals) { SpatialNegotiationData* data = &intervals[0]; int nIntervals = intervals.size (); // first send size comm.Send (&nIntervals, 1, MPI::INT, destRank, SPATIAL_NEGOTIATION_MSG); comm.Send (data, sizeof (SpatialNegotiationData) / sizeof (int) * nIntervals, MPI::INT, destRank, SPATIAL_NEGOTIATION_MSG); } void SpatialNegotiator::receive (MPI::Comm& comm, int sourceRank, NegotiationIntervals& intervals) { int nIntervals; comm.Recv (&nIntervals, 1, MPI::INT, sourceRank, SPATIAL_NEGOTIATION_MSG); intervals.resize (nIntervals); comm.Recv (&intervals[0], sizeof (SpatialNegotiationData) / sizeof (int) * nIntervals, MPI::INT, sourceRank, SPATIAL_NEGOTIATION_MSG); } void SpatialNegotiator::allToAll (std::vector& out, std::vector& in) { if (out.size () != nProcesses || in.size () != nProcesses) error ("internal error in SpatialNegotiator::allToAll ()"); in[localRank] = out[localRank]; for (unsigned int i = 0; i < localRank; ++i) receive (comm, i, in[i]); for (unsigned int i = localRank + 1; i < nProcesses; ++i) send (comm, i, out[i]); for (unsigned int i = 0; i < localRank; ++i) send (comm, i, out[i]); for (unsigned int i = localRank + 1; i < nProcesses; ++i) receive (comm, i, in[i]); } NegotiationIterator SpatialNegotiator::negotiateSimple() { return wrapIntervals (indices->begin (), indices->end (), type, localRank); } SpatialOutputNegotiator::SpatialOutputNegotiator (IndexMap* indices, Index::Type type, MPI::Intracomm c, MPI::Intercomm ic) : SpatialNegotiator (indices, type, c) { intercomm = ic; negotiateWidth (); } NegotiationIterator SpatialOutputNegotiator::negotiate (int remoteNProc, Connector* connector) { #ifdef MUSIC_DEBUG connector_ = connector; #endif local.resize (nProcesses); results.resize (nProcesses); remote.resize (remoteNProc); NegotiationIterator mappedDist = wrapIntervals (indices->begin (), indices->end (), type, localRank); NegotiationIterator canonicalDist = canonicalDistribution (width, nProcesses); // NOTE: Find a better name for variable `results' intersectToBuffers (mappedDist, canonicalDist, results); // Send to virtual connector allToAll (results, local); // Receive from remote connector for (int i = 0; i < remoteNProc; ++i) receive (intercomm, i, remote[i]); results.resize (remoteNProc); intersectToBuffers (local, remote, results); // Send to remote connector for (int i = 0; i < remoteNProc; ++i) send (intercomm, i, results[i]); results.resize (nProcesses); intersectToBuffers (remote, local, results); // Send back to real connector allToAll (results, local); return NegotiationIterator (local); } SpatialInputNegotiator::SpatialInputNegotiator (IndexMap* indices, Index::Type type, MPI::Intracomm c, MPI::Intercomm ic) : SpatialNegotiator (indices, type, c) { intercomm = ic; negotiateWidth (); } NegotiationIterator SpatialInputNegotiator::negotiate ( int remoteNProc, Connector* connector) { #ifdef MUSIC_DEBUG connector_ = connector; #endif remote.resize (remoteNProc); NegotiationIterator mappedDist = wrapIntervals (indices->begin (), indices->end (), type, localRank); NegotiationIterator canonicalDist = canonicalDistribution (width, remoteNProc); intersectToBuffers (mappedDist, canonicalDist, remote); for (int i = 0; i < remoteNProc; ++i) send (intercomm, i, remote[i]); for (int i = 0; i < remoteNProc; ++i) receive (intercomm, i, remote[i]); return NegotiationIterator (remote); } } #endif music-1.1.16/src/music-c.h0000644000175000017500000001516713571617503012163 00000000000000#ifndef MUSIC_C_H /* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/music-config.hh" #if MUSIC_USE_MPI #include #if MUSIC_HAVE_SIZE_T #include #else typedef int size_t; #endif /* Setup */ typedef struct MUSIC_Setup MUSIC_Setup; MUSIC_Setup *MUSIC_createSetup (int *argc, char ***argv); MUSIC_Setup *MUSIC_createSetupThread (int *argc, char ***argv, int required, int* provided); /* Communicators */ #ifndef BUILDING_MUSIC_LIBRARY MPI_Comm MUSIC_setupCommunicator (MUSIC_Setup *setup); #endif /* Ports */ typedef struct MUSIC_ContOutputPort MUSIC_ContOutputPort; typedef struct MUSIC_ContInputPort MUSIC_ContInputPort; typedef struct MUSIC_EventOutputPort MUSIC_EventOutputPort; typedef struct MUSIC_EventInputPort MUSIC_EventInputPort; typedef struct MUSIC_MessageOutputPort MUSIC_MessageOutputPort; typedef struct MUSIC_MessageInputPort MUSIC_MessageInputPort; MUSIC_ContOutputPort *MUSIC_publishContOutput (MUSIC_Setup *setup, char *id); MUSIC_ContInputPort *MUSIC_publishContInput (MUSIC_Setup *setup, char *id); MUSIC_EventOutputPort *MUSIC_publishEventOutput (MUSIC_Setup *setup, char *id); MUSIC_EventInputPort *MUSIC_publishEventInput (MUSIC_Setup *setup, char *id); MUSIC_MessageOutputPort *MUSIC_publishMessageOutput (MUSIC_Setup *setup, char *id); MUSIC_MessageInputPort *MUSIC_publishMessageInput (MUSIC_Setup *setup, char *id); /* remedius * Free of the ports is done by the Runtime instance */ /*void MUSIC_destroyContOutput (MUSIC_ContOutputPort* port); void MUSIC_destroyContInput (MUSIC_ContInputPort* port); void MUSIC_destroyEventOutput (MUSIC_EventOutputPort* port); void MUSIC_destroyEventInput (MUSIC_EventInputPort* port); void MUSIC_destroyMessageOutput (MUSIC_MessageOutputPort* port); void MUSIC_destroyMessageInput (MUSIC_MessageInputPort* port); */ /* General port methods */ int MUSIC_ContOutputPort_isConnected (MUSIC_ContOutputPort *port); int MUSIC_ContInputPort_isConnected (MUSIC_ContInputPort *port); int MUSIC_EventOutputPort_isConnected (MUSIC_EventOutputPort *port); int MUSIC_EventInputPort_isConnected (MUSIC_EventInputPort *port); int MUSIC_MessageOutputPort_isConnected (MUSIC_MessageOutputPort *port); int MUSIC_MessageInputPort_isConnected (MUSIC_MessageInputPort *port); int MUSIC_ContOutputPort_hasWidth (MUSIC_ContOutputPort *port); int MUSIC_ContInputPort_hasWidth (MUSIC_ContInputPort *port); int MUSIC_EventOutputPort_hasWidth (MUSIC_EventOutputPort *port); int MUSIC_EventInputPort_hasWidth (MUSIC_EventInputPort *port); int MUSIC_ContOutputPort_width (MUSIC_ContOutputPort *port); int MUSIC_ContInputPort_width (MUSIC_ContInputPort *port); int MUSIC_EventOutputPort_width (MUSIC_EventOutputPort *port); int MUSIC_EventInputPort_width (MUSIC_EventInputPort *port); /* Mapping */ /* Data maps */ typedef struct MUSIC_DataMap MUSIC_DataMap; typedef struct MUSIC_ContData MUSIC_ContData; typedef struct MUSIC_ArrayData MUSIC_ArrayData; /* Index maps */ typedef struct MUSIC_IndexMap MUSIC_IndexMap; typedef struct MUSIC_PermutationIndex MUSIC_PermutationIndex; typedef struct MUSIC_LinearIndex MUSIC_LinearIndex; /* No arguments are optional. */ void MUSIC_ContOutputPort_map (MUSIC_ContOutputPort *port, MUSIC_ContData *dmap, int maxBuffered); void MUSIC_ContInputPort_map (MUSIC_ContInputPort *port, MUSIC_ContData *dmap, double delay, int maxBuffered, int interpolate); void MUSIC_EventOutputPort_mapGlobalIndex (MUSIC_EventOutputPort *Port, MUSIC_IndexMap *indices, int maxBuffered); void MUSIC_EventOutputPort_mapLocalIndex (MUSIC_EventOutputPort *Port, MUSIC_IndexMap *indices, int maxBuffered); typedef void MUSIC_EventHandler (double t, int id); void MUSIC_EventInputPort_mapGlobalIndex (MUSIC_EventInputPort *port, MUSIC_IndexMap *indices, MUSIC_EventHandler *handleEvent, double accLatency, int maxBuffered); void MUSIC_EventInputPort_mapLocalIndex (MUSIC_EventInputPort *port, MUSIC_IndexMap *indices, MUSIC_EventHandler *handleEvent, double accLatency, int maxBuffered); void MUSIC_MessageOutputPort_map_no_handler (MUSIC_MessageOutputPort *port); void MUSIC_MessageOutputPort_map (MUSIC_MessageOutputPort *port, int maxBuffered); typedef void MUSIC_MessageHandler (double t, void *msg, size_t size); void MUSIC_MessageInputPort_map (MUSIC_MessageInputPort *port, MUSIC_MessageHandler *handleMessage, double accLatency, int maxBuffered); /* Index maps */ MUSIC_PermutationIndex *MUSIC_createPermutationIndex (int *indices, int size); void MUSIC_destroyPermutationIndex (MUSIC_PermutationIndex *Index); MUSIC_LinearIndex *MUSIC_createLinearIndex (int baseIndex, int size); void MUSIC_destroyLinearIndex (MUSIC_LinearIndex *Index); /* Exception: The map argument can take any type of index map. */ MUSIC_ArrayData *MUSIC_createArrayData (void *buffer, MPI_Datatype type, void *map); /* Exception: MUSIC_createLinearArrayData corresponds to c++ MUSIC::ArrayData::ArrayData (..., ..., ..., ...) */ MUSIC_ArrayData *MUSIC_createLinearArrayData (void *buffer, MPI_Datatype type, int baseIndex, int size); void MUSIC_destroyArrayData (MUSIC_ArrayData *arrayData); /* Configuration variables */ /* Exceptions: Result is char * Extra maxlen argument prevents buffer overflow. Result is terminated by \0 unless longer than maxlen - 1 */ int MUSIC_configString (MUSIC_Setup *setup, char *name, char *result, size_t maxlen); int MUSIC_configInt (MUSIC_Setup *setup, char *name, int *result); int MUSIC_configDouble (MUSIC_Setup *setup, char *name, double *result); /* Runtime */ typedef struct MUSIC_Runtime MUSIC_Runtime; MUSIC_Runtime *MUSIC_createRuntime (MUSIC_Setup *setup, double h); void MUSIC_tick (MUSIC_Runtime *runtime); double MUSIC_time (MUSIC_Runtime *runtime); /* Finalization */ void MUSIC_destroyRuntime (MUSIC_Runtime *runtime); #endif #define MUSIC_C_H #endif /* MUSIC_C_H */ music-1.1.16/src/scheduler.cc0000644000175000017500000004715413571617503012740 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2012 INCF * * MUSIC 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. * * MUSIC 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 . */ //#define MUSIC_DEBUG #include "music/scheduler.hh" #include "music/scheduler_agent.hh" #include "music/debug.hh" #if MUSIC_USE_MPI #include #include #include #include #ifdef MUSIC_DEBUG #include #endif namespace MUSIC { Scheduler::Scheduler (MPI::Intracomm comm, int leader) : nodes (NULL), appl_data_ (NULL), conn_data_ (NULL) { comm_ = comm; leader_ = leader; } Scheduler::~Scheduler () { if (nodes != NULL) delete nodes; if (appl_data_ != NULL) delete[] appl_data_; if (conn_data_ != NULL) delete[] conn_data_; } void Scheduler::initialize (TemporalNegotiatorGraph *appl_graph, std::vector& connectors) { nodes = new SGraph (appl_graph->local_node_color (), appl_graph->nNodes (), appl_graph->getNConnections ()); setApplications (appl_graph); setConnections (appl_graph, connectors); color_ = appl_graph->local_node_color (); iter_node = nodes->begin (); iter_conn = 0; pushForward (); std::vector::iterator agent; for (agent = agents_.begin(); agent != agents_.end(); agent++) (*agent)->initialize(connectors); initializeAgentState (); } void Scheduler::setAgent (SchedulerAgent* agent) { agents_.push_back (agent); } void Scheduler::initializeAgentState () { cur_agent_ = agents_.begin (); } AEdge Scheduler::pushForward () { while (true) { #if 0 // std::vector::iterator node; for (; iter_node < nodes.size (); ++iter_node ) { Node *node = nodes.at(iter_node); if (iter_conn < 0 && node->nextReceive () > node->localTime ().time ()) node->advance (); std::vector* conns = node->outputConnections (); // std::vector::iterator conn; for (++iter_conn; iter_conn < static_cast (conns->size ()); ++iter_conn) { SConnection *conn = conns->at(iter_conn); //do we have data ready to be sent? if (conn->nextSend () <= conn->preNode ()->localTime () && conn->nextReceive () == conn->postNode ()->localTime ()) { SConnection sconn = *conn; sconn.postponeNextSend( conn->preNode()->localTime()); conn->advance(); return sconn; } } iter_conn = -1; } #endif for (; iter_node < nodes->end (); iter_node++) { if (iter_conn == 0) iter_conn = (*iter_node).begin_o (); else { advanceConnection ( (**iter_conn).data ()); ++iter_conn; } for (; iter_conn < (*iter_node).end_o (); iter_conn++) { //do we have data ready to be sent? if ( (*iter_conn)->data ().nextSend <= (*iter_conn)->pre ().data ().localTime && (*iter_conn)->data ().nextReceive == (*iter_conn)->post ().data ().localTime) { last_sconn_ = * (*iter_conn); last_sconn_.data ().postponeNextSend ( (*iter_conn)->pre ().data ().localTime); return last_sconn_; } } iter_conn = 0; } for (iter_node = nodes->begin (); iter_node < nodes->end (); iter_node++) { Clock next_recv = nextApplicationReceive (*iter_node); if ((*iter_node).data ().localTime < next_recv) (*iter_node).data ().localTime.tick (); } iter_node = nodes->begin (); } } #if 0 void Scheduler::createMultiConnectors (Clock localTime, std::vector& connectors, MultiBuffer* multiBuffer, std::vector& multiConnectors) { //if (MPI::COMM_WORLD.Get_rank () == 2) // std::cout << "prep localTime = " << localTime.time () << std::endl; // We need to create the MultiConnectors ahead of time since their // creation requires communication between all members of // COMM_WORLD. Temporary solution: Create all MultiConnectors // that will be needed during the first 100 steps. std::vector > schedule; std::vector multiProxies; multiProxies.resize (Connector::proxyIdRange ()); for (int self_node = 0; self_node < (int) nodes.size (); ++self_node) { localTime.reset (); createMultiConnNext (self_node, localTime, connectors, multiBuffer, schedule); localTime.ticks (-1); std::vector cCache; for (int i = 0; i < 100; ++i) { localTime.tick (); createMultiConnStep (self_node, localTime, connectors, multiBuffer, multiConnectors, multiProxies, cCache, schedule, false); } createMultiConnStep (self_node, localTime, connectors, multiBuffer, multiConnectors, multiProxies, cCache, schedule, true); schedule.clear (); // Now reset node and connection clocks to starting values for (std::vector::iterator node = nodes.begin (); node != nodes.end (); ++node) (*node).localTime.reset (); for (std::vector::iterator conn = connections.begin (); conn != connections.end (); ++conn) { (*conn)->resetClocks (); (*conn)->advance (); } } } void Scheduler::createMultiConnNext (int self_node, Clock& localTime, std::vector& connectors, MultiBuffer* multiBuffer_, std::vector > &schedule) { while (schedule.empty () // always plan forward past the first time point to make // sure that all events at that time are scheduled || schedule.front ().first == schedule.back ().first) { std::vector::iterator node; for ( node=nodes.begin (); node < nodes.end (); ++node ) { if ((*node)->nextReceive () > (*node)->localTime ().time ()) (*node)->advance (); std::vector* conns = (*node)->outputConnections (); std::vector::iterator conn; for (conn = conns->begin (); conn < conns->end (); ++conn) //do we have data ready to be sent? if ((*conn)->nextSend () <= (*conn)->preNode ()->localTime () && (*conn)->nextReceive () == (*conn)->postNode ()->localTime ()) { if (self_node == (*conn)->postNode ()->getId () //input || self_node == (*conn)->preNode ()->getId ())//output { double nextComm = (self_node == (*conn)->postNode ()->getId () ? (*conn)->postNode ()->localTime ().time () : (*conn)->preNode ()->localTime ().time ()); schedule.push_back (std::pair(nextComm, (*conn)->getConnector ())); } MUSIC_LOG0 ("Scheduled communication:"<< (*conn)->preNode ()->getId () <<"->"<< (*conn)->postNode ()->getId () << "at(" << (*conn)->preNode ()->localTime ().time () << ", "<< (*conn)->postNode ()->localTime ().time () <<")"); (*conn)->advance (); } } } } void Scheduler::createMultiConnStep (int self_node, Clock& localTime, std::vector& connectors, MultiBuffer* multiBuffer_, std::vector& multiConnectors, std::vector& multiProxies, std::vector& cCache, std::vector > &schedule, bool finalize) { std::set* connsToFinalize; int finalCount = 0; if (finalize) { connsToFinalize = new std::set; for (std::vector::iterator c = connectors.begin (); c != connectors.end (); ++c) connsToFinalize->insert ((*c)->receiverPortCode ()); } while (schedule[0].first <= localTime.time() || (finalize && //!connsToFinalize->empty () ++finalCount <= 4000)) { std::vector< std::pair >::iterator comm; for (comm = schedule.begin (); comm != schedule.end() && comm->first <= localTime.time (); ++comm) { Connector* connector = comm->second; if (connector == NULL) continue; if (finalize) connsToFinalize->erase (connector->receiverPortCode ()); if (!connector->idFlag ()) continue; unsigned int multiId = 0; unsigned int multiProxyId = 0; if (!connector->isProxy ()) { multiId = connector->idFlag (); cCache.push_back (connector); } else { dynamic_cast (connector)->setNode (self_node); multiProxyId = connector->idFlag (); } bool isProxy = connector->isProxy (); int remoteLeader = connector->remoteLeader (); bool direction = connector->isInput (); // yes, horrible quadratic algorithm for now for (std::vector< std::pair >::iterator c = comm + 1; c != schedule.end () && c->first <= localTime.time(); ++c) { if (c->second == NULL || c->second->idFlag () == 0) continue; if (c->second->isProxy ()) dynamic_cast (c->second)->setNode (self_node); // lumping criterion if (!(c->second->isProxy () ^ isProxy) && c->second->remoteLeader () == remoteLeader && c->second->isInput () == direction) { if (finalize) connsToFinalize->erase (c->second->receiverPortCode ()); if (!c->second->isProxy ()) { cCache.push_back (c->second); multiId |= c->second->idFlag (); } else { multiProxyId |= c->second->idFlag (); } c->second = NULL; // taken } } //if (MPI::COMM_WORLD.Get_rank () == 2) // std::cout << "Prep multiId = " << multiId << std::endl; if (cCache.size () == 0) { if (!multiProxies[multiProxyId]) { std::cout << "Rank " << MPI::COMM_WORLD.Get_rank () << ": *" << std::endl << std::flush; MPI::COMM_WORLD.Create (MPI::GROUP_EMPTY); MPI::COMM_WORLD.Barrier (); //*fixme* Impossible to delete the following object multiProxies[multiProxyId] = true; } } else if (multiConnectors[multiId] == NULL) { multiConnectors[multiId] = new MultiConnector (multiBuffer_, cCache); } cCache.clear (); } schedule.erase (schedule.begin (), comm); createMultiConnNext (self_node, localTime, connectors, multiBuffer_, schedule); } if (finalize) delete connsToFinalize; } #endif void Scheduler::reset (int color) { if (color < 0) color = nodes->local_node_color (); color_ = color; reset (); nodes->setTempColor (color); std::vector path; nodes->depthFirst (nodes->at (color), path); cur_agent_ = agents_.begin (); iter_node = nodes->begin (); iter_conn = 0; pushForward (); } void Scheduler::reset () { nodes->reset (); for (SGraph::iterator n = nodes->begin (); n < nodes->end (); n++) { (*n).data ().localTime.reset (); for (SNode::edge_iterator e = (*n).begin_o (); e < (*n).end_o (); e++) { (*e)->data ().reset (); advanceConnection ( (**e).data ()); } } } void Scheduler::tick (Clock& localTime) { // tick is done when at least one of the agent will schedule the future communication // next tick will start from the last successful agent // this algorithm is based on temporally ordered SConnections bool done = false; for (; !done; cur_agent_++) { if (cur_agent_ == agents_.end ()) cur_agent_ = agents_.begin (); if ( (*cur_agent_)->tick (localTime)) done = true; } } void Scheduler::finalize (Clock& localTime, std::vector& connectors) { /* remedius * set of receiver port codes that still has to be finalized */ std::set cnn_ports; for (std::vector::iterator c = connectors.begin (); c != connectors.end (); ++c) #if 0 if (! (*c)->needsMultiCommunication ()) #endif { cnn_ports.insert ( (*c)->receiverPortCode ()); } #if 0 for (std::vector::iterator a = agents_.begin (); a != agents_.end (); ++a) (*a)->preFinalize (cnn_ports); #endif for (; !cnn_ports.empty (); cur_agent_++) { if (cur_agent_ == agents_.end ()) cur_agent_ = agents_.begin (); (*cur_agent_)->finalize (cnn_ports); } } Clock Scheduler::nextApplicationReceive (SNode &node) { SNode::edge_iterator in_conn; Clock nextTime; nextTime.set(ClockState(LLONG_MAX)); for (in_conn = node.begin_i (); in_conn < node.end_i (); ++in_conn) { SConnData &data = (*in_conn)->data (); if (data.nextReceive < nextTime) nextTime = data.nextReceive; } return nextTime; } void Scheduler::advanceConnection (SConnData &data) { advanceConnectionClocks (data); Clock r = data.nextReceive; Clock s = data.nextSend; advanceConnectionClocks (data); while (data.nextReceive == r) { s = data.nextSend; advanceConnectionClocks (data); } data.nextReceive = r; data.nextSend = s; MUSIC_LOG0 (pre_id << "->"<nNodes ()]; int i = 0; TemporalNegotiatorGraph::iterator it; for (it = appl_graph->begin (); it < appl_graph->end (); ++it, ++i) { appl_data_[i].color = (*it).data ().color; appl_data_[i].leader = (*it).data ().leader; appl_data_[i].nProcs = (*it).data ().nProcs; appl_data_[i].localTime.configure ( (*it).data ().timebase, (*it).data ().tickInterval); nodes->addNode ( SNode ( (*it).data ().nOutConnections, (*it).data ().nInConnections, appl_data_[i]), (*it).data ().color); } } void Scheduler::setConnections (TemporalNegotiatorGraph *appl_graph, std::vector& connectors) { conn_data_ = new SConnData[appl_graph->getNConnections ()]; int k = 0; SGraph::iterator inode; for (inode = nodes->begin (); inode < nodes->end (); inode++) { TemporalNegotiationData &data = appl_graph->at ( (*inode).data ().color).data (); for (int i = 0; i < data.nOutConnections; ++i) { Connector *connector; bool foundLocalConnector = false; ConnectionDescriptor &descr = data.connection[i]; SNode &pre = *inode; SNode &post = nodes->at (descr.remoteNode); for (std::vector::iterator c = connectors.begin (); c != connectors.end (); ++c) { if (descr.receiverPort == (*c)->receiverPortCode ()) { foundLocalConnector = true; connector = *c; (*c)->setInterpolate (descr.interpolate); (*c)->setLatency (descr.accLatency); (*c)->initialize (); break; } } #if 1 if (!foundLocalConnector) { if (descr.multiComm) connector = new ProxyConnector (pre.data ().color, pre.data ().leader, pre.data ().nProcs, post.data ().color, post.data ().leader, post.data ().nProcs); else connector = new ProxyConnector (); } #endif conn_data_[k].descr = descr; conn_data_[k].connector = connector; conn_data_[k].nextSend.configure (pre.data ().localTime.timebase (), pre.data ().localTime.tickInterval ()); conn_data_[k].nextReceive.configure ( post.data ().localTime.timebase (), post.data ().localTime.tickInterval ()); SConnection &edge = nodes->addEdge ( SConnection (pre, post, conn_data_[k++])); advanceConnection (edge.data ()); } } } void Scheduler::SGraph::handleLoop (SNode &x, std::vector & path) { if (&x == &nodes_[tmp_color_]) { // Mark connections on path as loop connected to self_node for (std::vector::iterator c = path.begin (); c != path.end (); ++c) (*c).data ().isLoopConnected = true; } } } #endif music-1.1.16/src/index_map.cc0000644000175000017500000000312713571617503012716 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include #include "music/index_map.hh" namespace MUSIC { int Index::WILDCARD_MAX = std::numeric_limits::max (); bool operator< (const IndexInterval& a, const IndexInterval& b) { return (a.begin () < b.begin () || (a.begin () == b.begin () && a.end () < b.end ())); } const IndexInterval IndexMap::iterator::operator* () { return **implementation_; } const IndexInterval* IndexMap::iterator::operator-> () { return implementation_->dereference (); } bool IndexMap::iterator::operator== (const iterator& i) const { return implementation_->isEqual (i.implementation ()); } bool IndexMap::iterator::operator!= (const iterator& i) const { return !implementation_->isEqual (i.implementation ()); } IndexMap::iterator& IndexMap::iterator::operator++ () { ++*implementation_; return *this; } } music-1.1.16/src/configuration.cc0000644000175000017500000001730613571617503013625 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009, 2012 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/configuration.hh" // Must be included first on BG/L #include "music/debug.hh" extern "C" { #include } #include "music/ioutils.hh" #include "music/error.hh" #include #include namespace MUSIC { const char* const Configuration::configEnvVarName = "_MUSIC_CONFIG_"; // const char* const Configuration::mapFileName = "music.map"; /* * This is the syntax of the _MUSIC_CONFIG_ variable: * * POSTPONE:COLOR means that configuration is postponed until the * first port is created. At this time, the variable is expected to * contain the full configuration information: * * * APPLICATIONNAME:COLOR:APPLICATIONMAP:CONNECTIVITYMAP:CONFIGDICT * * APPLICATIONNAME = name of this application (string) * * COLOR = index of section in music configuration file * * APPLICATIONMAP = SIZE:...:NAMEk:NPROCk:... * * SIZE = number of applications (integer) * * NAMEk = name of application k * * NPROCk = number of processes in application k * * CONNECTIVITYMAP = SIZE:...:PORTNAMEk:DIRECTIONk:WIDTHk:CONNECTIONSk:... * * SIZE = number of ports of this application * * PORTNAMEk = port name * * DIRECTIONk = port direction, 0 = OUTPUT, 1 = INPUT * * WIDTHk = port width * * CONNECTIONSk = SIZE:...: * RECAPPNAME:RECPORTNAME:RECPORTCODE:REMOTELEADER:NREMOTEPROCS * :COMMTYPE:PROCMETHOD:... * * RECAPPNAME = name of receiving application * * RECPORTNAME = name of receiver port * * RECPORTCODE = code unique for every receiver port * * REMOTELEADER = lowest rank of the remote application * * NREMOTEPROCS = number of processes in the remote application * * COMMTYPE = communication algorithm, 0 = collective, 1 = point-to-point * * PROCMETHOD = processing method, 0 = tree, 1 = table * * CONFIGDICT = ...:VARNAMEk=VALUEk:... */ Configuration::Configuration () { init (); } #if MUSIC_USE_MPI Configuration::Configuration (std::string configStr) { init (); parse (configStr); } #endif Configuration::~Configuration () { delete connectivityMap_; delete applications_; if (defaultConfig_ != NULL) delete defaultConfig_; } void Configuration::init () { applications_ = new ApplicationMap (); connectivityMap_ = new Connectivity (); defaultConfig_ = NULL; } #if MUSIC_USE_MPI void Configuration::parse(std::string configStr) { std::istringstream env (configStr); setName (IOUtils::read (env)); env.ignore (); // do not need color information, // but we can use for error check env.ignore (); env.ignore (); applications_->read (env); env.ignore (); std::map leaders = applications_->assignLeaders( Name ()); connectivityMap_->read (env, leaders); // parse config string while (!env.eof ()) { env.ignore (); std::string name = IOUtils::read (env, '='); env.ignore (); std::string v = IOUtils::read (env); // std::cerr << name << " " << v << std::endl; insert (name, v ); } } #endif void Configuration::write (std::ostringstream& env, Configuration* mask) { std::map::iterator pos; for (pos = dict_.begin (); pos != dict_.end (); ++pos) { std::string name = pos->first; if (!(mask && mask->lookup (name))) { env << ':' << name << '='; IOUtils::write (env, pos->second); } } } void Configuration::writeEnv () { std::ostringstream env; env << Name () << ':' << Color () << ':'; applications_->write (env); env << ':'; connectivityMap_->write (env); write (env, 0); if (defaultConfig_ != NULL) defaultConfig_->write (env, this); setenv (configEnvVarName, env.str ().c_str (), 1); } bool Configuration::lookup(std::string name) { return dict_.find(name) != dict_.end(); } bool Configuration::lookup(std::string name, std::string* result) { std::map::iterator pos = dict_.find(name); if (pos == dict_.end()) return defaultConfig_ && defaultConfig_->lookup(name, result); *result = pos->second; return true; } bool Configuration::lookup(std::string name, int* result) { std::map::iterator pos = dict_.find(name); if (pos == dict_.end()) return defaultConfig_ && defaultConfig_->lookup(name, result); std::istringstream iss(pos->second); if (! (iss >> *result).fail()) return true; std::ostringstream oss; oss << "var " << name << " given wrong type (" << pos->second << "; expected int) in config file"; error(oss.str()); return true; // Doesn't happen! Just for compiler! } bool Configuration::lookup(std::string name, double* result) { std::map::iterator pos = dict_.find(name); if (pos == dict_.end()) return defaultConfig_ && defaultConfig_->lookup (name, result); std::istringstream iss(pos->second); if (! (iss >> *result).fail()) return true; std::ostringstream oss; oss << "var " << name << " given wrong type (" << pos->second << "; expected double) in config file"; error(oss.str()); return true; // Doesn't happen! Just for compiler! } bool Configuration::lookup (std::string name, bool* result) { std::map::iterator pos = dict_.find (name); if (pos == dict_.end ()) return defaultConfig_ && defaultConfig_->lookup (name, result); std::istringstream iss(pos->second); if (! (iss >> std::boolalpha >> *result).fail ()) return true; std::ostringstream oss; oss << "var " << name << " given wrong type (" << pos->second << "; expected bool) in config file"; error(oss.str ()); return true; // Doesn't happen! Just for compiler! } std::string Configuration::Name () { return app_name_; } void Configuration::setName (std::string app_name) { app_name_ = app_name; } int Configuration::Color() { return applications_->lookup (app_name_)->color (); } int Configuration::Leader() { ApplicationInfo* info = applications_->lookup (app_name_); return info == 0 ? -1 : info->leader (); } void Configuration::insert (std::string name, std::string value) { dict_.insert (std::make_pair (name, value)); } ApplicationMap* Configuration::applications () { return applications_; } Configuration* Configuration::defaultConfig () { if (defaultConfig_ == NULL) defaultConfig_ = new Configuration(); return defaultConfig_; } Connectivity* Configuration::connectivityMap () { return connectivityMap_; } const Configuration::ConfigDict & Configuration::getDict() { return dict_; } void Configuration::setDict(const Configuration::ConfigDict &dict) { dict_ = dict; } void Configuration::resetDict() { dict_ = Configuration::ConfigDict (); } } music-1.1.16/src/ioutils.cc0000644000175000017500000000322213571617503012436 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include #include "music/ioutils.hh" namespace MUSIC { namespace IOUtils { void write (std::ostringstream& out, std::string s) { std::istringstream value (s); while (true) { int c; switch (c = value.get ()) { case '\\': case ':': out << '\\'; default: out << (char) c; continue; case EOF: break; } break; } } std::string read (std::istringstream& in, int delim) { std::ostringstream value; while (true) { int c = in.peek (); switch (c) { case '\\': in.get (); value << (char) in.get (); continue; default: if (c == delim) break; value << (char) in.get (); continue; case EOF: break; } break; } return value.str (); } std::string read (std::istringstream& in) { return read (in, ':'); } } } music-1.1.16/src/multibuffer.cc0000644000175000017500000006304513571617503013303 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2012 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/multibuffer.hh" #include "music/debug.hh" #include #include extern "C" { #include } #if MUSIC_USE_MPI namespace MUSIC { /******************************************************************** * * MultiBuffer * ********************************************************************/ MultiBuffer::MultiBuffer (MPI::Intracomm comm, int localLeader, std::vector& connectors) : localLeader_ (localLeader) { //bool hang = true; //while (hang) ; MPI::Group worldGroup = MPI::COMM_WORLD.Get_group (); MPI::Group localGroup = comm.Get_group (); int localSize = localGroup.Get_size (); // maps leaders to vectors mapping local ranks to COMM_WORLD ranks RankMap* rankMap = new RankMap (); setupRankMap (comm.Get_rank (), rankMap); #if 0 std::ostringstream ostr; ostr << "Rank " << MPI::COMM_WORLD.Get_rank () << ": rankMap "; for (RankMap::iterator i = rankMap->begin (); i != rankMap->end (); ++i) { ostr << i->first << ": "; std::vector& ranks = i->second; for (std::vector::iterator j = ranks.begin (); j != ranks.end (); ++j) ostr << *j << " "; ostr << " "; } std::cout << ostr.str () << std::endl; #endif for (std::vector::iterator c = connectors.begin (); c != connectors.end (); ++c) { // supports multicommunication? if (!(*c)->idFlag ()) continue; CollectiveConnector* connector = dynamic_cast (*c); // We create InputSubconnectorInfo:s also for output connectors. // In this case s will be NULL. InputSubconnector* s = dynamic_cast (connector->subconnector ()); std::pair res = inputConnectorMap_.insert (InputConnectorMap::value_type (connector, InputSubconnectorInfo (s))); InputSubconnectorInfo& isi = res.first->second; // decide group leader and size int outputLeader; int outputSize; int inputLeader; int inputSize; if (connector->isInput ()) { outputLeader = connector->remoteLeader (); outputSize = connector->remoteNProcs (); inputLeader = localLeader; inputSize = localSize; } else { outputLeader = localLeader; outputSize = localSize; inputLeader = connector->remoteLeader (); inputSize = connector->remoteNProcs (); } // setup BufferInfo array isi.setSize (outputSize); if (!connector->isInput ()) { // create OutputSubconnectorInfo OutputSubconnector* s = dynamic_cast (connector->subconnector ()); BufferInfo* bi = &*(isi.begin () + comm.Get_rank ()); outputConnectorMap_.insert (OutputConnectorMap::value_type (connector, OutputSubconnectorInfo (s, bi))); } // register output group std::vector& worldRanks = (*rankMap) [outputLeader]; registerGroup (outputLeader, worldRanks); // setup Block array Blocks::iterator pos = getBlock (outputLeader); if (pos == block_.end () || pos->rank () != outputLeader) { // outputLeader not found in block_ // fill it in, creating one new Block for each rank // with one BufferInfo per Block int i = 0; for (BufferInfos::iterator bi = isi.begin (); bi != isi.end (); ++bi, ++i) { int worldRank = worldRanks[i]; pos = getBlock (worldRank); int offset = pos - block_.begin (); block_.insert (pos, Block ()); pos = block_.begin () + offset; pos->setRank (worldRank); pos->push_back (&*bi); } } else { // outputLeader's group of ranks already had Blocks in block_ // Insert one BufferInfo per Block int i = 0; for (BufferInfos::iterator bi = isi.begin (); bi != isi.end (); ++bi, ++i) { getBlock (worldRanks[i])->push_back (&*bi); } } // register input group worldRanks = (*rankMap) [inputLeader]; registerGroup (inputLeader, worldRanks); pos = getBlock (inputLeader); if (pos == block_.end () || pos->rank () != inputLeader) { // inputLeader's group of ranks were not represented in block_ // Create empty Block:s for them for (int i = 0; i < inputSize; ++i) { int worldRank = worldRanks[i]; pos = getBlock (worldRank); int offset = pos - block_.begin (); block_.insert (pos, Block ()); pos = block_.begin () + offset; pos->setRank (worldRank); } } } #if 0 { std::ostringstream ostr; ostr << "Rank " << MPI::COMM_WORLD.Get_rank () << ": block_ ranks "; for (Blocks::iterator b = block_.begin (); b != block_.end (); ++b) ostr << b->rank () << ' '; std::cout << ostr.str () << std::endl; } #endif delete rankMap; // setup Block and BufferInfo fields unsigned int start = 0; // reserve space for error block staging area for (Blocks::iterator b = block_.begin (); b != block_.end (); ++b) start = std::max (start, b->headerSize ()); MPI::COMM_WORLD.Allreduce (MPI::IN_PLACE, &start, 1, MPI::UNSIGNED, MPI::MAX); errorBlockSize_ = start; for (Blocks::iterator b = block_.begin (); b != block_.end (); ++b) { b->setStart (start); start += sizeof (HeaderType); // error flag unsigned int size = b->headerSize (); if (size < errorBlockSize_) { start += errorBlockSize_ - size; // add some slack size = errorBlockSize_; } b->setSize (size); for (BufferInfoPtrs::iterator bi = b->begin (); bi != b->end (); ++bi) { start += sizeof (HeaderType); // data size field (*bi)->setStart (start); (*bi)->setSize (0); } } // allocate buffer size_ = start; buffer_ = BufferType (malloc (size_)); // clear flags in staging area clearFlags (); // write header fields into buffer for (Blocks::iterator b = block_.begin (); b != block_.end (); ++b) { b->clearBufferFlags (buffer_); for (BufferInfoPtrs::iterator bi = b->begin (); bi != b->end (); ++bi) (*bi)->writeDataSize (buffer_, 0); } } void MultiBuffer::setupRankMap (int localRank, RankMap* rankMap) { int worldRank = MPI::COMM_WORLD.Get_rank (); int worldSize = MPI::COMM_WORLD.Get_size (); std::vector rankInfos (worldSize); rankInfos[worldRank] = RankInfo (localLeader_, localRank); MPI::COMM_WORLD.Allgather (MPI::IN_PLACE, 0, MPI::DATATYPE_NULL, &rankInfos.front (), sizeof (RankInfo) / sizeof (int), MPI::INT); for (int wr = 0; wr < worldSize; ++wr) { RankInfo& ri = rankInfos[wr]; std::vector& worldRanks = (*rankMap)[ri.leader]; if (worldRanks.size () <= static_cast (ri.localRank)) worldRanks.resize (ri.localRank + 1); worldRanks[ri.localRank] = wr; } } void MultiBuffer::registerGroup (unsigned int leader, std::vector& worldRanks) { if (groupMap_.find (leader) == groupMap_.end ()) { Intervals& ivals = groupMap_[leader]; assert (!worldRanks.empty ()); std::vector::iterator wr = worldRanks.begin (); int first = *wr; int last = first; for (++wr; wr != worldRanks.end (); ++wr) if (*wr == last + 1) last = *wr; else { ivals.push_back (Interval (first, last)); first = last = *wr; } ivals.push_back (Interval (first, last)); } } unsigned int MultiBuffer::computeSize (bool twostage) { // compute required total size unsigned int summedSize = 0; unsigned int thisRankSize = 0; int thisRank = MPI::COMM_WORLD.Get_rank (); for (Blocks::iterator b = block_.begin (); b != block_.end (); ++b) { unsigned int size; if (!twostage && !b->errorFlag (buffer_)) size = b->size (); else { // this block requires more space unsigned int blockSize = sizeof (HeaderType); // error flag int i = 0; for (BufferInfoPtrs::iterator bi = b->begin (); bi != b->end (); ++bi, ++i) { blockSize += sizeof (HeaderType); // size field unsigned int requested = b->requestedDataSize (buffer_, i); if (requested > (*bi)->size ()) { blockSize += requested; } else blockSize += (*bi)->size (); } size = std::max (errorBlockSize_, blockSize); } summedSize += size; if (b->rank () == thisRank) thisRankSize = size; } return thisRankSize + summedSize; } void MultiBuffer::restructure (bool twostage) { unsigned int size = computeSize (twostage); // resize multi-buffer if (size > size_) { buffer_ = BufferType (realloc (buffer_, size)); size_ = size; } // relocate buffers unsigned int newStart = size; for (Blocks::reverse_iterator b = block_.rbegin (); b != block_.rend (); ++b) { if (!twostage && !b->errorFlag (buffer_)) { // move entire block with one memmove newStart -= b->size (); unsigned int oldStart = b->start (); unsigned int offset = newStart - oldStart; if (offset == 0) break; // we know that there are no further error flags set memmove (buffer_ + newStart, buffer_ + oldStart, b->size ()); b->setStart (newStart); for (BufferInfoPtrs::iterator bi = b->begin (); bi != b->end (); ++bi) (*bi)->setStart ((*bi)->start () + offset); } else { unsigned int lastStart = newStart; // at least one of the buffers requires more storage int i = b->nBuffers () - 1; for (BufferInfoPtrs::reverse_iterator bi = b->rbegin (); bi != b->rend (); ++bi, --i) { unsigned int oldPos = (*bi)->start () - sizeof (HeaderType); unsigned int oldSize = (*bi)->size (); unsigned int requested = b->requestedDataSize (buffer_, i); if (requested > oldSize) (*bi)->setSize (requested); newStart -= (*bi)->size (); (*bi)->setStart (newStart); newStart -= sizeof (HeaderType); // only touch buffer contents if the block belongs to // current rank => error staging area is used for // requested buffer sizes and buffer contains output // data if (b->rank () == MPI::COMM_WORLD.Get_rank () && newStart > oldPos) memmove (buffer_ + newStart, buffer_ + oldPos, oldSize + sizeof (HeaderType)); } newStart -= sizeof (HeaderType); // error flag *headerPtr (buffer_ + newStart) = *headerPtr (buffer_ + b->start ()); unsigned int blockSize = lastStart - newStart; if (blockSize < errorBlockSize_) { newStart -= errorBlockSize_ - blockSize; blockSize = errorBlockSize_; } b->setStart (newStart); b->setSize (blockSize); b->clearBufferErrorFlag (buffer_); } } clearErrorFlag (); // update all existing multiConnectors for (std::vector::iterator c = multiConnectors.begin (); c != multiConnectors.end (); ++c) (*c)->update (); } MultiBuffer::Blocks::iterator MultiBuffer::getBlock (int rank) { // binary search (modified from Wikipedia) int imin = 0; int imax = block_.size () - 1; while (imax >= imin) { /* calculate the midpoint for roughly equal partition */ int imid = (imin + imax) / 2; // determine which subarray to search if (block_[imid].rank () < rank) // change min index to search upper subarray imin = imid + 1; else if (block_[imid].rank () > rank) // change max index to search lower subarray imax = imid - 1; else // block found at index imid return block_.begin () + imid; } // rank not found---return position where rank should be inserted return block_.begin () + imin; } MultiBuffer::InputSubconnectorInfo* MultiBuffer::getInputSubconnectorInfo (Connector* connector) { InputConnectorMap::iterator pos = inputConnectorMap_.find (connector); assert (pos != inputConnectorMap_.end ()); return &pos->second; } MultiBuffer::OutputSubconnectorInfo* MultiBuffer::getOutputSubconnectorInfo (Connector* connector) { OutputConnectorMap::iterator pos = outputConnectorMap_.find (connector); assert (pos != outputConnectorMap_.end ()); return &pos->second; } void MultiBuffer::dumpBlocks () { for (Blocks::iterator b = block_.begin (); b != block_.end (); ++b) std::cout << b->rank () << std::endl; } /******************************************************************** * * MultiConnector * ********************************************************************/ MultiConnector::MultiConnector (MultiBuffer* multiBuffer) : multiBuffer_ (multiBuffer), recvcountInvalid_ (false) { connectorCode_ = ConnectorInfo::allocPortCode (); buffer_ = multiBuffer_->buffer (); groupMap_ = new GroupMap; multiBuffer_->addMultiConnector (this); } //*fixme* code repetition MultiConnector::MultiConnector (MultiBuffer* multiBuffer, std::vector& connectors) : multiBuffer_ (multiBuffer), recvcountInvalid_ (false) { buffer_ = multiBuffer_->buffer (); groupMap_ = new GroupMap; multiBuffer_->addMultiConnector (this); for (std::vector::iterator c = connectors.begin (); c != connectors.end (); ++c) add (*c); initialize (); } void MultiConnector::mergeGroup (int leader, bool isInput) { if (groupMap_->find (leader) == groupMap_->end ()) { MCGroupInfo& g = (*groupMap_)[leader]; g.worldRankIntervals = &multiBuffer_->getWorldRankIntervals (leader); g.blank = isInput; } else // Only groups which provide output communicate. Groups which // only have inputs are blanked. "Blanked" means that the // corresponding recvcount in Allgather is 0. (*groupMap_)[leader].blank &= isInput; } void MultiConnector::add (Connector* connector) { if (connector->isInput ()) { // The following has to be done here so that multiConnector // groups are created the same way in all applications. // // BUT: Do we need to sort the connectors? We do if the // scheduler can deliver connectors in different order in // different applications. connectorIds_.push_back (std::make_pair (connector->remoteLeader (), multiBuffer_->localLeader ())); mergeGroup (multiBuffer_->localLeader (), true); mergeGroup ((connector)->remoteLeader (), false); inputSubconnectorInfo_.push_back (multiBuffer_ ->getInputSubconnectorInfo (connector)); } else { connectorIds_.push_back (std::make_pair (multiBuffer_->localLeader (), connector->remoteLeader ())); mergeGroup ((connector)->remoteLeader (), true); mergeGroup (multiBuffer_->localLeader (), false); outputSubconnectorInfo_.push_back (multiBuffer_ ->getOutputSubconnectorInfo (connector)); } } void MultiConnector::initialize () { bool isContiguous = true; { #ifdef MUSIC_DEBUG std::ostringstream ostr; ostr << "Rank " << MPI::COMM_WORLD.Get_rank () << ": Create "; #endif int nRanges = 0; for (GroupMap::iterator g = groupMap_->begin (); g != groupMap_->end (); ++g) nRanges += g->second.worldRankIntervals->size (); int (*range)[3] = new int[nRanges][3]; int i = 0; for (GroupMap::iterator g = groupMap_->begin (); g != groupMap_->end (); ++g) { int leader = g->first; Intervals& ivals = *g->second.worldRankIntervals; #ifdef MUSIC_DEBUG ostr << leader << ", "; #endif int size = 0; int next = ivals[0].first; for (Intervals::iterator ival = ivals.begin (); ival != ivals.end (); ++ival) { range[i][0] = ival->first; range[i][1] = ival->last; range[i][2] = 1; ++i; if (ival->first != next) isContiguous = false; next = ival->last + 1; size += ival->last - ival->first + 1; } g->second.size = size; } #ifdef MUSIC_DEBUG ostr << std::endl; std::cout << ostr.str () << std::flush; #endif group_ = MPI::COMM_WORLD.Get_group ().Range_incl (nRanges, range); delete[] range; } sort (connectorIds_.begin (), connectorIds_.end ()); std::ostringstream idstr_; std::vector >::iterator cid = connectorIds_.begin (); idstr_ << cid->first << cid->second; ++cid; for (; cid != connectorIds_.end (); ++cid) idstr_ << ':' << cid->first << cid->second; id_ = "mc" + idstr_.str (); if (!isContiguous || group_.Get_size () < MPI::COMM_WORLD.Get_size ()) comm_ = MPI::COMM_WORLD.Create (group_); else comm_ = MPI::COMM_WORLD; MPI::COMM_WORLD.Barrier (); std::vector ranks (size ()); std::vector indices (size ()); for (int rank = 0; rank < size (); ++rank) ranks[rank] = rank; MPI::Group::Translate_ranks (group_, size (), &ranks[0], MPI::COMM_WORLD.Get_group (), &indices[0]); #ifdef MUSIC_TWOSTAGE_ALLGATHER twostage_ = true; #endif for (int rank = 0; rank < size (); ++rank) { Blocks::iterator b = multiBuffer_->getBlock (indices[rank]); #ifdef MUSIC_DEBUG if (b == multiBuffer_->blockEnd () && MPI::COMM_WORLD.Get_rank () == 0) { std::cout << "asked for rank " << indices[rank] << " among:" << std::endl; multiBuffer_->dumpBlocks (); } #endif assert (b != multiBuffer_->blockEnd ()); block_.push_back (&*b); #ifdef MUSIC_TWOSTAGE_ALLGATHER // *fixme* need better criterion in the case of MC:s with // proxy connectors if (b->nBuffers () > 1) twostage_ = false; else if (twostage_ && b->nBuffers () > 0) { BufferInfo* bi = *b->begin (); // Should store this information in separate data structure bi->setRank (rank); } #endif } recvcounts_ = new int[size ()]; displs_ = new int[size ()]; blank_ = new bool[size ()]; int i = 0; for (GroupMap::iterator g = groupMap_->begin (); g != groupMap_->end (); ++g) { int leader = g->first; int size = (*groupMap_)[leader].size; int limit = i + size; for (; i < limit; ++i) blank_[i] = g->second.blank; } assert (i == size ()); delete groupMap_; restructuring_ = true; update (); restructuring_ = false; } void MultiConnector::update () { buffer_ = multiBuffer_->buffer (); for (OutputSubconnectorInfos::iterator osi = outputSubconnectorInfo_.begin (); osi != outputSubconnectorInfo_.end (); ++osi) { unsigned int dataSize = (*osi)->subconnector ()->dataSize (); BufferInfo* bi = (*osi)->bufferInfo (); bi->writeDataSize (buffer_, dataSize); (*osi)->subconnector ()->setOutputBuffer (buffer_ + bi->start (), bi->size ()); } for (int r = 0; r < size (); ++r) { Block* block = block_[r]; #ifdef MUSIC_TWOSTAGE_ALLGATHER if (twostage_) { if (block->begin () != block->end ()) displs_[r] = (*block->begin ())->start (); else displs_[r] = 0; } else #endif { int newRecvcount = blank_[r] ? 0 : block->size (); if (!restructuring_ && r == rank () && newRecvcount > recvcounts_[r]) // Another MultiConnector has caused MultiBuffer // restructuring. We need to postpone modifying recvcount // until our partner knows the new size. recvcountInvalid_ = true; else recvcounts_[r] = newRecvcount; displs_[r] = block->start (); } } } bool MultiConnector::writeSizes () { bool dataFits = true; for (OutputSubconnectorInfos::iterator osi = outputSubconnectorInfo_.begin (); osi != outputSubconnectorInfo_.end (); ++osi) { (*osi)->subconnector ()->nextBlock (); unsigned int dataSize = (*osi)->subconnector ()->dataSize (); if (!recvcountInvalid_) (*osi)->bufferInfo ()->writeDataSize (buffer_, dataSize); if (dataSize > (*osi)->bufferInfo ()->size ()) dataFits = false; } if (recvcountInvalid_ // another MultiConnector caused restructuring || !dataFits) { displs_[rank ()] = 0; // error block staging area multiBuffer_->setErrorFlag (); int i = 0; for (OutputSubconnectorInfos::iterator osi = outputSubconnectorInfo_.begin (); osi != outputSubconnectorInfo_.end (); ++osi, ++i) { unsigned int size = (*osi)->bufferInfo ()->size (); unsigned int dataSize = (*osi)->subconnector ()->dataSize (); multiBuffer_->writeRequestedDataSize (i, std::max (size, dataSize)); } return false; } return true; } void MultiConnector::fillBuffers () { for (OutputSubconnectorInfos::iterator osi = outputSubconnectorInfo_.begin (); osi != outputSubconnectorInfo_.end (); ++osi) (*osi)->subconnector ()->fillOutputBuffer (); } void MultiConnector::processInput () { for (InputSubconnectorInfoPtrs::iterator isi = inputSubconnectorInfo_.begin (); isi != inputSubconnectorInfo_.end (); ++isi) { InputSubconnector* subconnector = (*isi)->subconnector (); for (BufferInfos::iterator bi = (*isi)->begin (); bi != (*isi)->end (); ++bi) subconnector->processData (buffer_ + bi->start (), bi->readDataSize (buffer_)); } } #ifdef MUSIC_TWOSTAGE_ALLGATHER void MultiConnector::processReceived () { for (InputSubconnectorInfoPtrs::iterator isi = inputSubconnectorInfo_.begin (); isi != inputSubconnectorInfo_.end (); ++isi) { InputSubconnector* subconnector = (*isi)->subconnector (); for (BufferInfos::iterator bi = (*isi)->begin (); bi != (*isi)->end (); ++bi) subconnector->processData (buffer_ + bi->start (), recvcounts_[bi->rank ()]); } } void MultiConnector::checkRestructure () { bool dataFits = true; doAllgather_ = false; int r = 0; for (BlockPtrs::iterator b = block_.begin (); b != block_.end (); ++r, ++b) { int size = recvcounts_[r]; if (size) doAllgather_ = true; if (size & TWOSTAGE_FINALIZE_FLAG) { block_[r]->setFinalizeFlag (buffer_); recvcounts_[r] &= ~TWOSTAGE_FINALIZE_FLAG; } BufferInfoPtrs::iterator bipi = (*b)->begin (); if (bipi != (*b)->end ()) { BufferInfo* bi = *bipi; if (size > bi->size ()) dataFits = false; } } if (!dataFits) { int r = 0; for (BlockPtrs::iterator b = block_.begin (); b != block_.end (); ++r, ++b) { BufferInfoPtrs::iterator bipi = (*b)->begin (); if (bipi != (*b)->end ()) { int size = recvcounts_[r]; BufferInfo* bi = *bipi; if (size < bi->size ()) size = bi->size (); bi->writeDataSize (buffer_, size); } } BufferInfoPtrs::iterator bipi = block_[rank()]->begin (); int bsize = 0; if (bipi != block_[rank ()]->end ()) bsize = (*bipi)->size (); multiBuffer_->writeRequestedDataSize (0, std::max (recvcounts_[rank ()], bsize)); multiBuffer_->restructure (true); } } #endif static void dumprecvc (std::string id, int* recvc, int* displs, int n) { std::ostringstream ostr; #if 1 ostr << "Rank " << MPI::COMM_WORLD.Get_rank () << ": " << id << ": Allgather " << *recvc; for (int i = 1; i < n; ++i) ostr << ", " << recvc[i]; #else ostr << "Rank " << MPI::COMM_WORLD.Get_rank () << ": " << id << ": Allgather " << *displs << ':' << *recvc; for (int i = 1; i < n; ++i) ostr << ", " << displs[i] << ':' << recvc[i]; #endif ostr << std::endl; std::cout << ostr.str () << std::flush; } void MultiConnector::tick () { #ifdef MUSIC_TWOSTAGE_ALLGATHER if (twostage_) { // *fixme* nextBlock () OutputSubconnectorInfos::iterator osi = outputSubconnectorInfo_.begin (); int recvc; if (osi != outputSubconnectorInfo_.end ()) recvc = (*osi)->subconnector ()->dataSize (); else recvc = 0; if (block_[rank ()]->finalizeFlag (buffer_)) recvc |= TWOSTAGE_FINALIZE_FLAG; recvcounts_[rank ()] = recvc; comm_.Allgather (MPI::IN_PLACE, 0, MPI::DATATYPE_NULL, recvcounts_, 1, MPI::INT); checkRestructure (); // sets doAllgather_ if (doAllgather_) { fillBuffers (); #ifdef MUSIC_DEBUG dumprecvc (id_, recvcounts_, displs_, comm_.Get_size ()); #endif comm_.Allgatherv (MPI::IN_PLACE, 0, MPI::DATATYPE_NULL, buffer_, recvcounts_, displs_, MPI::BYTE); processReceived (); } } else #endif { if (writeSizes ()) // Data will fit fillBuffers (); #ifdef MUSIC_DEBUG dumprecvc (id_, recvcounts_, displs_, comm_.Get_size ()); #endif comm_.Allgatherv (MPI::IN_PLACE, 0, MPI::DATATYPE_NULL, buffer_, recvcounts_, displs_, MPI::BYTE); for (BlockPtrs::iterator b = block_.begin (); b != block_.end (); ++b) if ((*b)->errorFlag (buffer_)) { restructuring_ = true; multiBuffer_->restructure (false); restructuring_ = false; recvcountInvalid_ = false; fillBuffers (); #ifdef MUSIC_DEBUG dumprecvc (id_, recvcounts_, displs_, comm_.Get_size ()); #endif comm_.Allgatherv (MPI::IN_PLACE, 0, MPI::DATATYPE_NULL, buffer_, recvcounts_, displs_, MPI::BYTE); break; } processInput (); } } bool MultiConnector::isFinalized () { bool finalized = true; for (int i = 0; i < size (); ++i) if (!blank_[i] && !block_[i]->finalizeFlag (buffer_)) finalized = false; return finalized; } void MultiConnector::finalize () { if (!blank_[rank ()]) block_[rank ()]->setFinalizeFlag (buffer_); } } #endif // MUSIC_USE_MPI music-1.1.16/src/linear_index.cc0000644000175000017500000000332613571617503013414 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/linear_index.hh" namespace MUSIC { LinearIndex::iterator::iterator (LinearIndex* li) : indices_ (li) { } const IndexInterval LinearIndex::iterator::operator* () { return indices_->interval_; } const IndexInterval* LinearIndex::iterator::dereference () { return &indices_->interval_; } void LinearIndex::iterator::operator++ () { indices_ = 0; } bool LinearIndex::iterator::isEqual (IteratorImplementation* i) const { return indices_ == static_cast (i)->indices_; } LinearIndex::LinearIndex (GlobalIndex baseindex, int size) : interval_ (baseindex, baseindex + size, static_cast (baseindex)) { } IndexMap::iterator LinearIndex::begin () { return IndexMap::iterator (new iterator (this)); } const IndexMap::iterator LinearIndex::end () const { return IndexMap::iterator (new iterator (0)); } IndexMap* LinearIndex::copy () { return new LinearIndex (*this); } } music-1.1.16/src/ChangeLog0000644000175000017500000010271613571617503012221 000000000000002013-07-09 Mikael Djurfeldt * runtime.cc (Runtime::Runtime): Only create scheduling agents if launched by MUSIC. 2012-09-26 Mikael Djurfeldt * Makefile.am, connector.cc, event_router.cc, multibuffer.cc, music/connectivity.hh, music/connector.hh, music/multibuffer.hh, music/runtime.hh, music/scheduler.hh, music/subconnector.hh, port.cc, runtime.cc, scheduler.cc, subconnector.cc: Implementation of multiconnectors. 2012-09-15 Mikael Djurfeldt * connector.cc (lessOutputSubconnector): Make less condition consistent. 2012-09-14 Mikael Djurfeldt * connector.cc (Connector::initialize): Sort input and output subconnectors according to different criteria in order to obtain the communication schedule described in Mikael Djurfeldt et al. (2005) "Massively parallel simulation of brain-scale neuronal network models." * music/connector.hh (Connector::isInput) (InputConnector::isInput): New member function. * music/subconnector.hh (Subconnector::localRank): New member function. 2012-09-08 Mikael Djurfeldt * music/clock.hh, clock.cc (Clock::reset): New member function. 2012-09-04 Mikael Djurfeldt * scheduler.cc (Scheduler::nextCommunication): Make sure that all events from the first point in time are scheduled. * music/scheduler.hh (SConnection): Renamed from Connection in order not to be confused with connection.hh::Connection. * connector.cc (Connector::isProxy): New member function. * music/scheduler.hh, scheduler.cc (Scheduler::addConnection): New argument multiComm. (Scheduler::Connection): New member multiComm. * music/temporal.hh, temporal.cc (ConnectionDescriptor): New member multiComm. (TemporalNegotiator::collectNegotiationData): Set multiComm. (TemporalNegotiator::fillScheduler): Pass multiComm to Scheduler::addConnection. 2012-09-03 Mikael Djurfeldt * scheduler.cc (Scheduler::initialize): Setup ProxyConnector representing a distant connection. * music/scheduler.hh (Scheduler::Node): New member functions leader and nProcs. * music/scheduler.hh, scheduler.cc (Scheduler::addNode, Scheduler::Node::Node): New arguments leader and nProcs. * music/setup.hh, setup.cc (Setup::nProcs): New member function. * music/temporal.hh (TemporalNegotiationData): Added new members leader and nProcs. * temporal.cc (TemporalNegotiator::collectNegotiationData): Set leader and nProcs. (TemporalNegotiator::fillScheduler): Pass leader and nProcs to Scheduler::addNode. * music/connector.hh (ProxyConnector): New class. These objects will represent connections which the local application doesn't participate in but still need to be aware of in order to schedule common collective communication events. 2012-09-02 Mikael Djurfeldt * music/event_router.hh, event_router.cc (DirectRouter): New class. * music/setup.hh, setup.cc (Setup::leader): Added selector. * music/configuration.hh, configuration.cc (Configuration::leader): Added selector. 2012-08-27 Mikael Djurfeldt * music/spatial.hh, spatial.cc: Simplification made possible by previous change. * spatial.cc (SpatialNegotiator::send) (SpatialNegotiator::receive): First send size of receive buffer in order to avoid successive resizing. This is kinder to the memory allocator. 2012-08-25 Mikael Djurfeldt * music/memory.hh, memory.cc: New files. * Makefile.am, runtime.cc: Report memory usage for world rank #0 using mallinfo. * music/runtime.hh, runtime.cc, music/connector.hh: Initial support for MultiConnector:s. MultiConnector is an object governing simultaneous communication through a set of Connector:s. * runtime.cc, music/connector.hh, music/subconnector.hh: Added some debugging/analysis code. 2012-08-23 Mikael Djurfeldt * music/scheduler.hh (Scheduler::Node::outputConnections), scheduler.cc: Pass outputConnections as a pointer rather than as a vector. * event_routing_map.cc (OutputRoutingMap::fillRouter): Bugfix: return -> continue. * interval.cc: New file. * music/interval.hh: Make Interval:s printable. * music/music-config.hh-in: (and many other files) Some #include reorganization: Let those who need it include music-config.hh as the common first header file. * music/ordered_ilist.hh (OrderedIList::iterator): Satisfy BG/P compiler which complained that an OrderedIList member creates a circular reference with respect to type. 2012-08-22 Mikael Djurfeldt * music/port.hh, port.cc (Port::checkIndexMap): New member. * port.cc (OutputPort::mapImpl, InputPort::mapImpl: Use checkIndexMap. * event_routing_map.cc (OutputRoutingMap::fillRouter): Ask EventRouter if it needs as few points as possible rather than as few intervals as possible, and close gaps only in the latter case. This is important when using the new table based routing together with simulators with round-robin allocation, such as NEST. * music/event_router.hh: Let table based routers say that they need few points rather than intervals. 2012-08-21 Mikael Djurfeldt * music/interval_table.hh, music/ordered_ilist.hh: Introduced an interval table optimization variable MUSIC_ITABLE_FLAVOR with the options MUSIC_VANILLA, MUSIC_TRIMMED, MUSIC_COMPACT and MUSIC_SCATTERED explained at the top of music/interval_table.hh. * music/event_router.hh: #define MUSIC_ITABLE_FLAVOR to MUSIC_SCATTERED. * music/interval_table.hh (IntervalTable::search): Check index against tableSize_ instead of container size. * music/subconnector.hh, music/event_routing_map.hh: Don't #include which contains heavy template stuff. Instead forward declare EventRouter. Since both subconnector.hh and event_routing_map.hh are included by other header files, this speeds up compilation and decreases the dependencies in the code tree. * connector.cc, event_routing_map.cc, port.cc, subconnector.cc: #include "music/event_router.hh". * runtime.cc (Runtime::tick): Only access first element of schedule if non-empty. (Runtime::finalize): Only do schedule-related processing if schedule initially non-empty. * Makefile.am: Added music/interval_table.hh, music/ordered_ilist.hh. * music/interval_table.hh, music/ordered_ilist.hh: New files. * music/event_router.hh: Use new IntervalTable template. 2012-08-19 Mikael Djurfeldt * music/event_routing_map.hh, event_routing_map.cc (EventRoutingMap::build): Removed. Replaced by fillRouter which is now public. music/port.hh (EventOutputPort::setupCleanup), port.cc (EventOutputPort::buildTable), connector.cc (EventInputCollectiveConnector::spatialNegotiation): Use EventRoutingMap::fillRouter and call EventRouter::buildTable directly. Delete the event routing map before calling buildTable so that the data structures used by buildTable don't co-exist in memory with the event routing map. 2012-08-18 Mikael Djurfeldt * music/interval_tree.hh, music/collector.hh, collector.cc, music/distributor.hh, distributor.cc, event_routing_map.cc: Separated the template DataType parameter of IntervalTree into IntervalType and DataType. * Makefile.am, music/event_routing_map.hh, event_routing_map.cc, music/connector.hh, music/port.hh: Renamed event_routingmap.{cc,hh} -> event_routing_map.{cc,hh}. * music/interval_tree.hh: Optimized memory usage. 2012-08-17 Mikael Djurfeldt * music/index_map.hh, music/interval.hh: Removed clone(). * connector.cc, music/event_router.hh, event_router.cc, event_routingmap.cc, music/event.hh: Removal of indirection and virtual pointers for IndexProcessors. * music/event_router, event_router.cc: Removed unused member Data (). * interval.hh, music/event_router.hh, event_router.cc, event_routingmap.cc: Simplifications enabled by previous changes. * music/event_router.hh, event_router.cc: Removed indirection (pointer) to EventRoutingData from the IntervalTree through the use of templates. * port.cc: Let type dispatch happen here instead of in the interval tree. * event_routingmap.cc: Formatting. * music/collector.hh, collector.cc, music/distributor.hh, distributor.cc: Reverted to old use of interval_tree. * music/interval_tree.hh: Reverted to version in trunk, but with an added assignment operator. 2012-08-17 Mikael Djurfeldt * application_map.cc (ApplicationMap::read): Only create file "leaders" if MUSIC_DEBUGGING is defined. * configuration.cc (Configuration::getEnv): Handle the case where the MUSIC configuration variable is not present (launched without MUSIC) properly. 2012-08-13 Mikael Djurfeldt * scheduler.cc (Scheduler::Node::advance): Define time variable only if debugging. Formatting changes. * music/data_map.hh (~DataMap::DataMap), music/event_router.hh (~IndexProcessor::IndexProcessor), music/index_map.hh (~IndexMap::IndexMap) (~IndexMap::IteratorImplementation::IteratorImplementation), music/interval.hh (~Interval::Interval), music/spatial.hh (~NegotiationIterator::Implementation::Implementation: Destructor made virtual. * music/collector.hh (Collector::Interval::clone), music/distributor.hh (Distributor::Interval::clone): Added for consistency. * event_router.cc, music/event_router.hh, music/collector.hh, music/distributor.hh, music/interval.hh, music/index_map.hh, music/interval_tree.hh: Renamed Clone --> clone throughout. * event_router.cc, music/event_router.hh: Renamed "spicialized" --> "specialized" throughout. * application_map.cc (ApplicationMap::assignLeaders): Only create ranks file if MUSIC_DEBUG is defined. 2012-08-07 Mikael Djurfeldt * runtime.cc (runtime.cc): Disable deletion of ports. 2012-08-03 Mikael Djurfeldt * music/version.hh.in: New file. 2012-03-20 Mikael Djurfeldt * setup.cc, music/setup.hh (Setup::maybeProcessMusicArgv): New method. Get argc and argv from MUSIC_ARGV, if available. 2012-03-18 Mikael Djurfeldt * runtime.cc (Runtime::Runtime): Call maybepostponedSetup (). * configuration.cc (MUSIC): Added comment with syntax of _MUSIC_CONFIG_. 2012-03-15 Mikael Djurfeldt * music/setup.hh, setup.cc (maybePostponedSetup, fullInit): New functions. * music/configuration.hh, configuration.cc (Configuration::postponeSetup): New function. * port.cc (Port::Port): Call maybepostponedSetup (). 2011-11-24 Mikael Djurfeldt * Makefile.am (libmusic_la_LDFLAGS): Added libmpidep.la in order to support predictRank. * music/predict_rank.hh, predict_rank.cc: New files. 2011-01-31 Mikael Djurfeldt * Makefile.am (libmusic_c_la_DEPENDENCIES): Added in order to support parallel builds. 2011-01-13 Mikael Djurfeldt * subconnector.cc (ContInputSubconnector::receive): Update receive buffer pointer for subsequent receives when large packages have been split. * BIFO.cc (BIFO::insertBlock): Fixes to logic when buffer has wrapped around. 2010-07-28 Mikael Djurfeldt * Release 1.0.7 * synchronizer.cc (Synchronizer::nextCommunication): Revert buggy handling of tight loops in change of 2009-10-23. * subconnector.cc (MessageOutputSubconnector::MessageOutputSubconnector): Bugfix: Initialize synchronizer pointer properly. 2009-10-25 Mikael Djurfeldt * Release 1.0.6 * ioutils.c, parse.cc: Added #include . 2009-10-24 Mikael Djurfeldt * Release 1.0.5 2009-10-23 Mikael Djurfeldt * synchronizer.cc (Synchronizer::nextCommunication): Handle tight loops (maxBuffered == 0) of spike events. * temporal.cc (TemporalNegotiator::combineParameters): Correctly take MAX_BUFFERED_NO_VALUE arguments into consideration. * music/subconnector.hh, connector.cc, runtime.cc, subconnector.cc: Use COMM_WORLD ranks for the pair-wise communication schedule in Runtime::buildSchedule. * music/port.hh, port.cc (EventOutputPort::EventOutputPort, EventInputPort::EventInputPort): Moved from header file to port.cc. * temporal.cc (TemporalNegotiator::distributeNegotiationData): Use type ClockState for accLatency. 2009-10-20 Mikael Djurfeldt * connector.hh, event_router.hh, interval.hh, port.hh, connector.cc, event_router.cc, port.cc: New version of event routing interval joining code which handles interval sequences for different targets separately. 2009-10-19 Mikael Djurfeldt * event_router.cc (EventRouter::buildTable): Added debugging printout of routing table size (when #define MUSIC_DEBUG is uncommented). * music/interval_tree.hh (IntervalTree::size): New method (for debugging purposes). 2009-10-12 Mikael Djurfeldt * setup.cc (Setup::Setup): Report an error if MPI::Init has been called. 2009-10-05 Mikael Djurfeldt * music/connector.hh, music/event_router.hh, music/port.hh, connector.cc, event_router.cc, port.cc: Join event routing intervals over holes in the routing map. This increases efficiency of event routing but has the consequence that non-mapped indices may now be erroneously routed. 2009-10-04 Mikael Djurfeldt * music-c.h: (MUSIC_EventOutputPort_mapGlobalIndex) (MUSIC_EventOutputPort_mapLocalIndex): Inserted missing declarations. (Thanks to Michael Hines.) * Makefile.am (musicinclude_HEADERS): Removed duplicate message.hh. 2009-04-01 Mikael Djurfeldt * Release 1.0.4 2009-03-15 Mikael Djurfeldt * music/spatial.hh, spatial.cc (NegotiationIterator): Join intervals. (In some cases this allows thousands of routing intervals to be replaced by a single one.) * runtime.cc (Runtime::finalize): Only include Barrier call for OpenMPI versions <= 1.2. * music/temporal.hh, temporal.cc (TemporalNegotiator::computeDefaultMaxBuffered): Select a proper default buffering for message ports. * spatial.cc (SpatialInputNegotiator::negotiateWidth): Set maxLocalWidth_ when given wildcard index. 2009-03-14 Mikael Djurfeldt * music/connector.hh, music/subconnector.hh, connector.cc, subconnector.cc: Moved buffer from subconnector to connector for MessageOutputPorts. * music/subconnector.hh (BufferingOutputSubconnector): New class. * music/FIBO.hh, FIBO.cc (FIBO::clear, FIBO::nextBlockNoClear): New member functions. * port.cc (MessageInputPort::mapImpl): Give correct routing information in the indexMap. * music/port.hh, port.cc (MessageInputPort::map): Cover all argument combinations. * music/index_map.hh, index_map.cc (Index::WILDCARD_MAX): New member. * spatial.cc: Accept wild card indices on receiver side. * subconnector.cc (EventInputSubconnectorGlobal::receive, EventInputSubconnectorLocal::receive, MessageInputSubconnector::receive): Define `data' as vector of char, not vector of char*. 2009-03-13 Mikael Djurfeldt * Release 1.0.3 * setup.cc: #include "config.h" 2009-03-12 Mikael Djurfeldt * music/temporal.hh, temporal.cc (class TemporalNegotiator, TemporalNegotiator::createNegotiationCommunicator, TemporalNegotiator::~TemporalNegotiator): Keep handles to MPI groups throughout communication. * runtime.cc (Runtime::finalize): Call Connector::freeIntercomm (); Include a barrier call to make freeing work under OpenMPI. * music/connector.hh, connector.cc (Connector::freeIntercomm): New member function. 2009-03-12 Mikael Djurfeldt * Release 1.0.2 * version.cc: Updated to version 1.0.2. 2009-03-11 Mikael Djurfeldt * setup.cc: Conditionally delete temporalNegotiator. * music/port.hh (OutputRedistributionPort::OutputRedistributionPort, InputRedistributionPort::InputRedistributionPort): New constructors: Initialize spatialNegotiator to NULL pointer. * port.cc (OutputRedistributionPort::setupCleanup, InputRedistributionPort::setupCleanup): Conditionally delete spatialNegotiator. (It has not been allocated if the port has not been mapped.) * music/BIFO.hh, music/clock.hh, music/connector.hh, music/subconnector.hh, music/synchronizer.hh, music/temporal.hh, BIFO.cc, clock.cc, connector.cc, port.cc, runtime.cc, subconnector.cc, synchronizer.cc, temporal.cc: Major revision of timing logic. Cont ports can now be connected in loops. 2009-03-09 Mikael Djurfeldt * synchronizer.cc (Synchronizer::setMaxDelay (ClockState)): Moved decrementing of localTime to Runtime::initialize. (Synchronizer::setMaxDelay (ClockState, Clock&)): Use Clock::setClockTicks to set startTime. (setMaxDelay may be called multiple times.) * runtime.cc (Runtime::initialize): Decrement localTime one tick here. * music/temporal.hh, temporal.cc (TemporalNegotiator::distributeParameters): New function. * collector.cc: Collector shouldn't make assumptions and compute a "better" maxBlockSize-value for the buffers. Instead use allowedBuffered as given when configured. * connector.cc: Configure compute the actual needed buffer size here instead. * music/clock.hh, clock.cc (Clock::setClockTicks): New function. * BIFO.cc (BFIO::trimBlock): More informative overflow message. 2009-03-08 Mikael Djurfeldt * synchronizer.cc, port.cc, music/temporal.hh: Decrement maxBuffered at the proper place. (This fixes a bug where the loop algorithm worked on different parameters than the timing schedule algorithm.) * music/debug.hh (MUSIC_LOGBR): New debug macro. * synchronizer.cc: Inserted some debugging statements. * port.cc (OutputRedistributionPort::setupCleanup, InputRedistributionPort::setupCleanup): Delete spatialNegotiator at end of setup phase. * music/connector.hh, connector.cc, runtime.cc: Resolve a memory allocation problem so that we leak less memory. * port.cc (ContInputPort::mapImpl): Don't call assertInput () here. * music/error.hh, music/port.hh, music/runtime.hh, music/setup.hh, error.cc, port.cc, runtime.cc, setup.cc (Setup::Setup, Runtime::Runtime, Port::map): Added error messages when trying to call repeatedly. 2009-03-08 Mikael Djurfeldt * Release 1.0.1 * music/connector.hh, music/port.hh, music/spatial.hh, music/subconnector.hh, music/temporal.hh, configuration.cc, connector.cc, port.cc, spatial.cc, subconnector.cc, temporal.cc: Pass MPI::Datatype to ContSubconnectors; Some code cleanups. 2009-03-06 Mikael Djurfeldt * music/synchronizer.hh, synchronizer.cc, connector.cc: Removed some old cruft in timing logic. * sampler.cc: #include * setup.cc (Setup::publishMessageInput, Setup::publishMessageOutput): Added. * Makefile.am: Link shared library against MPI. * music/port.hh, port.cc: Bugfixed error reporting. * Makefile.am: Don't accept unresolved symbols in the shared library. * music/version.hh, version.cc: New files. * Makefile.am: Added ditto. * Makefile.am: Set shared library version 1.0.0. (Note that this version number follows different rules than the MUSIC version.) * port.cc (Port::assertOutput, Port::assertInput, Port::hasWidth, Port::width): Supply port name in error messages. * connectivity.cc (Connectivity::add): Pass port name to ConnectivityInfo constructor. * music/connectivity.hh (ConnectivityInfo): Added portName (to be used for more comprehensible error messages). 2009-03-05 Mikael Djurfeldt * setup.hh (class Setup): Hide internal API as private. * music/connector.hh, music/runtime.hh, music/setup.hh, music/spatial.hh, music/subconnector.hh, music/temporal.hh, connector.cc, port.cc, runtime.cc, setup.cc, spatial.cc, subconnector.cc, synchronizer.cc, temporal.cc: Begin to reorganize connectors so that functionality for setup and not needed during runtime is moved to the new class Connection. * music/connection.hh, connection.cc: New files. * Makefile.am: Updated. * music/temporal.hh, temporal.cc (ConnectionEdge): Renamed from "Connection". 2009-03-03 Mikael Djurfeldt * Release 1.0 2009-02-27 Mikael Djurfeldt * ChangeLog, Makefile.am, music/FIBO.hh, music/array_data.hh, music/clock.hh, music/connector.hh, music/data_map.hh, music/event.hh, music/interval.hh, music/port.hh, music/runtime.hh, music/spatial.hh, music/subconnector.hh, music/synchronizer.hh, music/temporal.hh, FIBO.cc, array_data.cc, clock.cc, connector.cc, port.cc, runtime.cc, spatial.cc, subconnector.cc, synchronizer.cc, temporal.cc: Continous data port framework. * music/BIFO.hh, music/collector.hh, music/distributor.hh, music/sampler.hh, BIFO.cc, collector.cc, distributor.cc, sampler.cc: New files. 2009-02-16 Mikael Djurfeldt * Makefile.am (libmusic_la_SOURCES): Added distributor.cc, music/distributor.cc, collector.cc, music/collector.hh. * music/spatial.hh, spatial.cc: Added destructor which destroys indices. * setup.cc, runtime.cc: Pass connectors even if not launched using the music utility. 2009-02-11 Mikael Djurfeldt * music-c.h, music-c-c.c, music-c.cc (MUSIC_setupCommunicator): Declare properly and don't use MPI_Intracomm. 2009-02-09 Mikael Djurfeldt * music/subconnector.hh, subconnector.cc (InputSubconnector::flushed): Bugfix: Initialize. * error.cc, music/error.hh (error0): Report errors only from MPI process rank 0. * music/temporal.hh, temporal.cc: Implemented distribution of allowed buffering using a loop detection algorithm. 2009-02-08 Mikael Djurfeldt * FIBO.cc, connector.cc, music/FIBO.hh, music/connector.hh, music/event.hh, music/runtime.hh, music/subconnector.hh, music/synchronizer.hh, runtime.cc, subconnector.cc, synchronizer.cc: Flush buffers at MUSIC::finalize. 2009-02-06 Mikael Djurfeldt * music/connector.hh, music/spatial.hh, music/synchronizer.hh, music/temporal.hh, port.cc, spatial.cc, synchronizer.cc, temporal.cc: Compute default maxBuffered value based on temporal.hh:DEFAULT_PACKET_SIZE. 2009-02-05 Mikael Djurfeldt * music/setup.hh, music/synchronizer.hh, music/temporal.hh, runtime.cc, setup.cc, temporal.cc: Bugfix: Convert accLatency to ClockStateT. * clock.cc, connectivity.cc, connector.cc, music/clock.hh, music/connectivity.hh, music/connector.hh, music/debug.hh, music/runtime.hh, music/setup.hh, music/synchronizer.hh, music/temporal.hh, runtime.cc, setup.cc, spatial.cc, synchronizer.cc, temporal.cc: Timing for applications with different inter-tick-intervals may now work. 2009-01-27 Mikael Djurfeldt * clock.cc, connector.cc, music/clock.hh, music/connector.hh, music/runtime.hh, music/setup.hh, music/synchronizer.hh, music/temporal.hh, port.cc, runtime.cc, setup.cc, subconnector.cc, synchronizer.cc, temporal.cc: First steps of the timing algorithm. 2008-12-02 Mikael Djurfeldt * Switch to CamelCase. 2008-11-05 Mikael Djurfeldt * music/interval_tree.hh: Bugfix: Compute the size of the binary tree correctly. 2008-11-04 Mikael Djurfeldt * music/connectivity.hh, connectivity.cc: Modified connectivity_map to use indices rather than pointers (which cause problems when the vector of connections is resized). * music/debug.hh: New file. 2008-11-03 Mikael Djurfeldt * FIBO.cc (FIBO::FIBO, FIBO::grow): Bugfix: Use resize instead of reserve on buffer vector, otherwise old elements are not guaranteed to be copied. * music/event.hh (event::event): New constructor. (event::operator<): New operator. * port.cc (port::has_width, port::width): Added some error checking. * music/spatial.hh, spatial.cc (spatial_negotiator::wrap_intervals): Compute local offset differently depending on index::type argument. * music/index_map.hh (index_interval::set_local): New member function. * linear_index.cc, permutation_index.cc: Correctly compute local index offset. * configuration (configuration::configuration, configuration::~configuration): Create and delete application_map and connectivity also when not launched under music. * event_router.cc (event_router::insert_event): Always subtract local offset (not subtracting requires that all offsets are zero which only happens either if both sides use global indices or if both sides use local indices which even out). 2008-10-31 Mikael Djurfeldt * music/spatial.hh, spatial.cc (negotiate_width): Error check width. * music/event_router.hh (inserter_global): Offsets are negative due to the spatial negotiation algorithm. * music/spatial.hh, spatial.cc (intersect_to_buffers): New implementation which allows index_maps for different MPI processes to overlap. The new algorithm is O (NP^2) where N is the number of indices and P the number of processes. (The old one was O (N).) * music/permutation_index.hh, permutation_index.cc: Implemented. * music/index_map.hh (index_map): Use value semantics (so that we can copy the position by copying the iterator). * music/linear_index.hh (linear_index): Ditto. 2008-10-30 Mikael Djurfeldt * spatial.cc: Bugfix: Changed MPI::INTEGER (Fortran) -> MPI::INT * spatial.hh (TRANSMITTED_INTERVALS_MAX): New constant. * spatial.cc (spatial_negotiator::send, spatial_negotiator::receive): Allow transmission of an arbitrary number of spatial negotiation intervals. * subconnector.hh (SPIKE_BUFFER_MAX): New constant. * subconnector.cc (event_output_subconnector::send, event_input_subconnector_global, event_input_subconnector_local): Allow transmission of an arbitrary number of spikes. * spatial.cc (spatial_output_negotiator::negotiate): Bugfix: Use remote_n_proc instead of n_processes when sending to remote side. * music/application_map.hh, application_map.cc, index_map.cc, music/interval.hh, music/interval_tree.hh, music/ioutils.hh, ioutils.cc, music/spatial.hh, spatial.cc, music/subconnector.hh, subconnector.cc, music/temporal.hh, temporal.cc: New files. * Changes throughout to implement propagation of configuration information and routing of spikes. 2008-10-16 Mikael Djurfeldt * music/FIBO.hh (FIBO::buffer): Bugfix: Changed to vector of char instead of char*. 2008-10-14 Mikael Djurfeldt * music/port.hh, port.cc (port::is_connected): Make sure this method works also in the runtime phase. 2008-10-13 Mikael Djurfeldt * Makefile.am, music/FIBO.hh, FIBO.cc, clock.cc, music/configuration.hh, configuration.cc, music/connector.hh, connector.cc, music/event_router.hh, event_router.cc, music/port.hh, port.cc, music/runtime.hh, runtime.cc, music/setup.hh, setup.cc, synchronizer.cc: A first, cheating, approximation of the implementation of spike communication. Will be followed by cleanups and real implementation. The present implementation only allows two applications with an output and input port respectively. The ports have a constant width given in ports.hh and the sender and receiver application must have equal number of MPI processes. * music/connectivity.hh, connectivity.cc: New files. 2008-10-10 Mikael Djurfeldt * music/index_map.hh (local_index::local_index, local_index::local_index): New constructor. * music-c.h, music-c.cc (MUSIC_event_input_port_map_global_index, MUSIC_event_input_port_map_local_index): Replacing MUSIC_event_input_port_map. * music/port.hh (event_input_port): Added facilities to support C interface. * music/port.hh, port.cc (event_input_port::map): Take event_handler_global_index and event_handler_local_index instead of event_handler in second argument. * music/event.hh (event_handler_global_index, event_handler_local_index): New classes which replace event_handler. * music/port.hh, port.cc (insert_event): Replaced old method with two new, one with a second argument local_index, and an overloaded version with global_index. * music/index_map.hh (global_index, local_index): New classes. 2008-10-09 Mikael Djurfeldt * music/event_data.hh, music/message_data.hh: Removed. * music/event.hh (event_handler::operator ()): Made virtual and corrected arguments to adhere to RFC. * port.cc (event_output_port::insert_event): Send spikes to event router. * Makefile.am (libmusic_la_SOURCES): Added event_router.cc, music/event_router.hh * music/event_router, event_router.cc: New files. 2008-10-08 Mikael Djurfeldt * runtime.cc (runtime::runtime): Initialize my_communicator and schedule. * music/connector.hh, connector.cc: Connectors take over the role of subconnectors. 2008-10-06 Mikael Djurfeldt * music/port.hh, port.cc (event_output_port::insert_event): New method. 2008-09-23 Mikael Djurfeldt * setup.cc (setup::setup): Compile use of MPI::Init_thread conditionally. * music-c.cc: #include . 2007-11-26 Mikael Djurfeldt * Makefile.am (libmusic_la_SOURCES): Added music/spike_data.hh, spike_data.cc. * spike_data.cc: New file. 2007-11-23 Mikael Djurfeldt * music/spike_data.hh: New file. * music/setup.hh (setup::publish): Removed (setup::publish_input, setup::publish_output): New methods. * music/array_data.hh, music/data_map.hh, music/index_map.hh, music/linear_index.hh: Added copyright notice + #ifdef logic. * music/array_data.hh (array_data::array_data): Data type argument moved first; added new constructor for linear arrays. * Makefile.am: Added music/port.hh, port.cc. * music/port.hh, port.cc: New files. * music/runtime.hh (runtime::input_ports, runtime::output_ports): New members. 2007-11-08 Mikael Djurfeldt * configuration.cc (configuration::configuration): Handle dirct launch by mpirun. * music/configuration.hh (setup::launched_by_music): New method. * music/configuration.hh (setup::_launched_by_music): New private member. * music/setup.hh, setup.cc (setup::my_communicator): Renamed from myCommunicator. * parse.cc (parser::parse_string, parser::next_arg): Use int instead of char to handle characters. * configuration.cc (configuration::configuration, configuration::tap): Use int instead of char to handle characters. 2007-11-02 Mikael Djurfeldt * music/setup.hh, music/parse.hh: Don't #include . * music/setup.hh: #include . 2007-11-01 Mikael Djurfeldt * music/error.hh, error.cc: Added. * music/parse.hh, parse.cc: Moved here from utils subdirectory. * music/configuration.hh, condiguration.cc (configuration::configuration, configuration::lookup, configuration::write_env, configuration::insert, configuration::color): New methods. * music/application_map.hh, application_map.cc: Moved to utils subdirectory. * Makefile.am (libmusic_la_SOURCES): Removed music/application_map.hh, application_map.cc; Added music/parse.hh, parse.cc. * music/setup.hh, setup.cc: Rewritten. 2007-10-26 –rjan Ekeberg * runtime.cc, music/runtime.hh: Use type Intracomm for communicator. 2007-10-25 Mikael Djurfeldt * Makefile.am: Added configuration.cc, music/configuration.hh, application_map.cc music/application_map.hh. * application_map.cc, music/application_map.hh: New files. * configuration.cc, music/configuration.hh: New files. 2007-10-23 Mikael Djurfeldt * music/setup.hh, setup.cc (setup::config_string): Renamed from config_get_string. (setup::config_int): Renamed from config_get_int. (setup::config_double): Renamed from config_get_double. 2007-10-19 –rjan Ekeberg * music/runtime.hh, runtime.cc, music/setup.hh, setup.cc: Replace C MPI calls to their equivalent C++ versions. 2007-10-19 Mikael Djurfeldt * music/setup.hh, setup.cc (setup::config_get_string, setup::config_get_int, setup::config_get_double, setup::is_port, setup::port_size): New methods. * array_data.cc, music/array_data.hh: Renamed from arraydata.cc, music/arraydata.hh. * linear_index.cc, music/linear_index.hh: Renamed from linearindex.cc, music/linearindex.hh. * arraydata.cc, linearindex.cc, music/arraydata.hh, music/linearindex.hh, music/setup.hh (array_data, linear_index): Renamed from arraydata and linearindex everywhere. * Makefile.am (libmusic_la_SOURCES): Added linear_index.cc, music/linear_index.hh music/index_map.hh mysic/array_data.hh array_data.cc music/array_data.hh. (musicinclude_HEADERS): Added music/index_map.hh music/data_map.hh music/linear_index.hh music/array_data.hh. 2007-10-19 –rjan Ekeberg * Makefile.am, music/arraydata.hh, music/data_map.hh, music/index_map.hh, music/linearindex.hh, arraydata.cc, linearindex.cc: Added abstraction classes for data indexing. * music/setup.hh, setup.cc: Added publish method. Add communicator access method (duplication from runtime). 2007-09-13 Mikael Djurfeldt * runtime.cc, setup.cc: Rewritten. * Makefile.am, music/setup.hh, music/runtime.hh: New files. * music.hh: Rewritten to include header files under the music directory. 2007-08-17 orjan * music.hh (MUSIC): Add binding routines 2007-08-17 Mikael Djurfeldt * Bong! music-1.1.16/src/predict_rank-c.cc0000644000175000017500000000160313571617503013634 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2011 CSC, KTH * * MUSIC 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. * * MUSIC 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 . */ #include "music/predict_rank.hh" extern "C" { #include "music/predict_rank-c.h" int MUSIC_predictRank (int argc, char **argv) { return MUSIC::predictRank (argc, argv); } } music-1.1.16/src/runtime.cc0000644000175000017500000003737613571617503012452 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007-2012 INCF * * MUSIC 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. * * MUSIC 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 . */ //#define MUSIC_DEBUG //#define MUSIC_AFTER_RUNTIME_CONSTRUCTOR_REPORT #include "music/runtime.hh" #if MUSIC_USE_MPI #include #include "music/temporal.hh" #include "music/error.hh" #include "music/connection.hh" #include "music/memory.hh" #include #include #include #include namespace MUSIC { bool Runtime::isInstantiated_ = false; Runtime::Runtime (Setup* s, double h) : mAgent (0) { checkInstantiatedOnce (isInstantiated_, "Runtime"); s->maybePostponedSetup (); app_name = s->applicationName (); leader_ = s->leader (); /* remedius * new type of subconnectors for collective communication was created. */ //CollectiveSubconnectors collectiveSubconnectors; // Setup the MUSIC clock localTime = Clock (s->timebase (), h); comm = s->communicator (); /* remedius * copy ports in order to delete them afterwards (it was probably a memory leak in previous revision) */ for (std::vector::iterator it = s->ports ()->begin (); it < s->ports ()->end (); it++) ports.push_back ( (*it)); Connections* connections = s->connections (); scheduler = new Scheduler (comm, leader_); if (s->launchedByMusic ()) { takeTickingPorts (s); // create a total order for connectors and // establish connection to peers connectToPeers (connections); // specialize connectors and fill up connectors vector specializeConnectors (connections); // from here we can start using the vector `connectors' // negotiate where to route data and fill up subconnector vectors spatialNegotiation (); // build data routing tables buildTables (s); takePreCommunicators (); takePostCommunicators (); // negotiate timing constraints for synchronizers temporalNegotiation (s, connections); #if 0 if (needsMultiCommunication ()) { #endif sAgents.push_back (mAgent = new MulticommAgent (scheduler)); scheduler->setAgent (mAgent); #if 0 } #endif sAgents.push_back (new UnicommAgent (scheduler)); scheduler->setAgent (sAgents[sAgents.size () - 1]); // final initialization before simulation starts initialize (s); } else { sAgents.push_back (new DummyAgent (scheduler)); scheduler->setAgent (sAgents[0]); scheduler->initializeAgentState (); } delete s; #ifdef MUSIC_AFTER_RUNTIME_CONSTRUCTOR_REPORT if (MPI::COMM_WORLD.Get_rank () == 0) reportMem (); #if 0 // Code used for debugging and analysis for (std::vector::iterator connector = connectors.begin (); connector != connectors.end (); ++connector) (*connector)->report (); #endif #endif } Runtime::~Runtime () { // delete connectors for (std::vector::iterator connector = connectors.begin (); connector != connectors.end (); ++connector) delete *connector; #if 0 /* MDJ 2012-08-07 Some applications assume that they need to delete the ports. Until we have made a decision what is the proper usage pattern, this code is disabled. */ // delete ports for (std::vector::iterator it=ports.begin(); it < ports.end(); it++ ) delete (*it); #endif for (std::vector::iterator it = sAgents.begin (); it != sAgents.end (); it++) delete (*it); delete scheduler; isInstantiated_ = false; } bool Runtime::needsMultiCommunication () { std::vector::iterator c; for (c = connectors.begin (); c != connectors.end (); ++c) if ((*c)->needsMultiCommunication ()) return true; return false; } void Runtime::takeTickingPorts (Setup* s) { std::vector::iterator p; for (p = ports.begin (); p != ports.end (); ++p) { TickingPort* tp = dynamic_cast (*p); if (tp != NULL) tickingPorts.push_back (tp); } } void Runtime::takePreCommunicators () { std::vector::iterator c; for (c = connectors.begin (); c != connectors.end (); ++c) { PreCommunicationConnector* preCommunicationConnector = dynamic_cast (*c); if (preCommunicationConnector != NULL) preCommunication.push_back (preCommunicationConnector); } } void Runtime::takePostCommunicators () { std::vector::iterator c; for (c = connectors.begin (); c != connectors.end (); ++c) { PostCommunicationConnector* postCommunicationConnector = dynamic_cast (*c); if (postCommunicationConnector != NULL) postCommunication.push_back (postCommunicationConnector); } } // This predicate gives a total order for connectors which is the // same on the sender and receiver sides. It belongs here rather // than in connector.hh or connector.cc since it is connected to the // connect algorithm. bool lessConnection (const Connection* cn1, const Connection* cn2) { Connector* c1 = cn1->connector (); Connector* c2 = cn2->connector (); return (c1->receiverAppName () < c2->receiverAppName () || (c1->receiverAppName () == c2->receiverAppName () && c1->receiverPortName () < c2->receiverPortName ())); } void Runtime::connectToPeers (Connections* connections) { // This ordering is necessary so that both sender and receiver // in each pair sets up communication at the same point in time // // Note that we don't need to use the dead-lock scheme used in // build_schedule () here. // sort (connections->begin (), connections->end (), lessConnection); for (Connections::iterator c = connections->begin (); c != connections->end (); ++c) (*c)->connector ()->createIntercomm (); } void Runtime::specializeConnectors (Connections* connections) { for (Connections::iterator c = connections->begin (); c != connections->end (); ++c) { Connector *connector = (*c)->connector (); connector->specialize (localTime); //(*c)->setConnector (connector); connectors.push_back (connector); } } void Runtime::spatialNegotiation () { // Let each connector pair setup their inter-communicators // and create all required subconnectors. unsigned int multiId = 0; for (std::vector::iterator c = connectors.begin (); c != connectors.end (); ++c) { // negotiate and fill up vectors passed as arguments (*c)->spatialNegotiation (); multiId |= (*c)->idFlag (); } } void Runtime::buildTables (Setup* s) { for (std::vector::iterator p = ports.begin (); p != ports.end (); ++p) (*p)->buildTable (); } void Runtime::temporalNegotiation (Setup* s, Connections* connections) { // Temporal negotiation is done globally by a serial algorithm // which yields the same result in each process s->temporalNegotiator ()->negotiate (localTime, connections); } MPI::Intracomm Runtime::communicator () { return comm; } void Runtime::initialize (Setup* s) { scheduler->initialize (s->temporalNegotiator ()->applicationGraph (), connectors); #if 0 if (mAgent) mAgent->initialize (localTime, comm, leader_, connectors); #endif // scheduler->nextCommunication (localTime, schedule); scheduler->tick (localTime); // compensate for first localTime.tick () in Runtime::tick () localTime.ticks (-1); // the time zero tick () (where we may or may not communicate) tick (); } void Runtime::finalize () { #if 1 scheduler->finalize (localTime, connectors); #else /* remedius * set of receiver port codes that still has to be finalized */ std::set cnn_ports; for (std::vector::iterator c = connectors.begin (); c != connectors.end (); ++c) cnn_ports.insert ((*c)->receiverPortCode ()); /* * finalize communication * * For ordinary connectors, Connector::finalize () is called * repeatedly until Connector::isFinalized () returns true. * * For connectors participating in multiConnectors, * Connector::finalize () is called, followed by a multi-tick * until Connector::isFInalized () returns true. */ std::vector cCache; if (!schedule.empty ()) do { std::vector >::iterator comm; for (comm = schedule.begin (); comm != schedule.end (); ++comm) { Connector* connector = comm->second; if (connector == NULL || (cnn_ports.find (connector->receiverPortCode ()) == cnn_ports.end ())) continue; // already finalized if (!connector->idFlag ()) { if (connector->isFinalized ()) // an output port was finalized in tick () { cnn_ports.erase (connector->receiverPortCode ()); continue; } // finalize () needs to come after isFinalized check // since it can itself set finalized state connector->finalize (); continue; } // all multiconnector code should go into scheduler // this is a temporary solution int remoteLeader = connector->remoteLeader (); bool direction = connector->isInput (); unsigned int multiId = connector->idFlag (); cCache.clear (); cCache.push_back (connector); // yes, horrible quadratic algorithm for now for (std::vector< std::pair >::iterator c = comm + 1; c != schedule.end (); ++c) { if (c->second != NULL && c->second->idFlag () && c->second->remoteLeader () == remoteLeader && c->second->isInput () == direction) { cCache.push_back (c->second); multiId |= c->second->idFlag (); c->second = NULL; // taken } } bool isFinalized = true; for (std::vector::iterator c = cCache.begin (); c != cCache.end (); ++c) { if (!(*c)->isFinalized ()) isFinalized = false; } if (isFinalized) { for (std::vector::iterator c = cCache.begin (); c != cCache.end (); ++c) cnn_ports.erase ((*c)->receiverPortCode ()); continue; } for (std::vector::iterator c = cCache.begin (); c != cCache.end (); ++c) if (!(*c)->isFinalized ()) (*c)->finalize (); if (multiConnectors[multiId] == NULL) { std::cout << "Rank " << MPI::COMM_WORLD.Get_rank () << " aborting on multiId " << multiId << " remote leader = " << connector->remoteLeader () << std::endl; assert (0); } multiConnectors[multiId]->tick (); //cCache.clear (); } schedule.clear (); scheduler->nextCommunication (localTime, schedule); //scheduler->tick(localTime); for (std::vector::iterator c = postCommunication.begin (); c != postCommunication.end (); ++c) (*c)->postCommunication (); } while (!cnn_ports.empty ()); #endif #if defined (OPEN_MPI) && MPI_VERSION <= 2 // This is needed in OpenMPI version <= 1.2 for the freeing of the // intercommunicators to go well MPI::COMM_WORLD.Barrier (); #endif for (std::vector::iterator connector = connectors.begin (); connector != connectors.end (); ++connector) (*connector)->freeIntercomm (); MPI::Finalize (); } void Runtime::tick () { // Update local time localTime.tick (); // ContPorts do some per-tick initialization here std::vector::iterator p; for (p = tickingPorts.begin (); p != tickingPorts.end (); ++p) (*p)->tick (); // ContOutputConnectors sample data for (std::vector::iterator c = preCommunication.begin (); c != preCommunication.end (); ++c) (*c)->preCommunication (); #if 1 scheduler->tick (localTime); #else if (!schedule.empty ()) while (schedule[0].first <= localTime.time()) { std::vector< std::pair >::iterator comm; for (comm = schedule.begin (); comm != schedule.end() && comm->first <= localTime.time (); ++comm) { if (comm->second == NULL || comm->second->isFinalized ()) continue; Connector* connector = comm->second; if (!connector->idFlag ()) { // here standard connectors are handled connector->tick (); continue; } // all multiconnector code should go into scheduler // this is a temporary solution int remoteLeader = connector->remoteLeader (); bool direction = connector->isInput (); unsigned int multiId = connector->idFlag (); //cCache.push_back (connector); // yes, horrible quadratic algorithm for now for (std::vector< std::pair >::iterator c = comm + 1; c != schedule.end () && c->first <= localTime.time(); ++c) { if (c->second != NULL && c->second->idFlag () && c->second->remoteLeader () == remoteLeader && c->second->isInput () == direction) { //cCache.push_back (c->second); multiId |= c->second->idFlag (); c->second = NULL;// taken } } //if (MPI::COMM_WORLD.Get_rank () == 2) // std::cout << "multiId = " << multiId << std::endl; if (multiConnectors[multiId] == NULL) { assert (0); } multiConnectors[multiId]->tick (); //cCache.clear (); } schedule.erase (schedule.begin (), comm); scheduler->nextCommunication (localTime, schedule); }*/ #endif // ContInputConnectors write data to application here for (std::vector::iterator c = postCommunication.begin (); c != postCommunication.end (); ++c) (*c)->postCommunication (); } double Runtime::time () { return localTime.time (); } } #endif music-1.1.16/src/parse.cc0000644000175000017500000000462313571617503012066 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/parse.hh" #include #include #include namespace MUSIC { Parser::Parser (std::string s) : in (new std::istringstream (s)) { } Parser::~Parser () { delete in; } void Parser::ignoreWhitespace () { while (isspace (in->peek ())) in->ignore (); } void Parser::parseString (std::ostringstream& arg, char delim) { while (true) { int c; switch (c = in->get ()) { case '\'': case '"': if (c == delim) break; default: arg << (char) c; continue; case '\\': arg << (char) in->get (); continue; case EOF: // NOTE: generate error message break; } break; } } std::string Parser::nextArg () { std::ostringstream arg; while (true) { int c; switch (c = in->get ()) { default: arg << (char) c; continue; case '\\': arg << (char) in->get (); continue; case '\'': case '"': parseString (arg, c); continue; case ' ': case '\t': case EOF: break; } break; } return arg.str (); } char ** parseArgs (std::string cmd, std::string argstring, int* argc) { Parser in (argstring); std::vector args; args.push_back (cmd); in.ignoreWhitespace (); while (! in.eof ()) args.push_back (in.nextArg ()); int nArgs = args.size (); char** result = new char*[nArgs + 1]; for (int i = 0; i < nArgs; ++i) { int len = args[i].length (); result[i] = new char[len + 1]; args[i].copy (result[i], len); result[i][len] = '\0'; } result[nArgs] = 0; *argc = nArgs; return result; } } music-1.1.16/src/temporal.cc0000644000175000017500000003655313571617503012606 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/temporal.hh" // Must be included first on BG/L //#define MUSIC_DEBUG #if MUSIC_USE_MPI #include "music/setup.hh" namespace MUSIC { TemporalNegotiator::TemporalNegotiator (Setup* setup) : setup_ (setup), negotiationBuffer (NULL) { nApplications_ = setup_->applicationMap ()->size (); nAllConnections = 0; nodes = new TemporalNegotiatorGraph (setup_->timebase (), nApplications_, setup_->applicationColor ()); } TemporalNegotiator::~TemporalNegotiator () { delete nodes; freeNegotiationData (negotiationBuffer); // Free negotiation communicator in application leaders if (negotiationComm != MPI::COMM_NULL) negotiationComm.Free (); applicationLeaders.Free (); groupWorld.Free (); } void TemporalNegotiator::separateConnections ( std::vector* connections) { for (std::vector::iterator c = connections->begin (); c != connections->end (); ++c) { if (dynamic_cast (*c) != NULL) outputConnections.push_back (*dynamic_cast (*c)); else inputConnections.push_back (*dynamic_cast (*c)); } } TemporalNegotiatorGraph* TemporalNegotiator::applicationGraph () { return nodes; } bool TemporalNegotiator::isLeader () { return setup_->communicator ().Get_rank () == 0; } bool TemporalNegotiator::hasPeers () { return setup_->communicator ().Get_size () > 1; } void TemporalNegotiator::createNegotiationCommunicator () { ApplicationMap* applicationMap = setup_->applicationMap (); int* ranks = new int[nApplications_]; for (int i = 0; i < nApplications_; ++i) ranks[i] = (*applicationMap)[i].leader (); groupWorld = MPI::COMM_WORLD.Get_group (); applicationLeaders = groupWorld.Incl (nApplications_, ranks); delete[] ranks; negotiationComm = MPI::COMM_WORLD.Create (applicationLeaders); } int TemporalNegotiator::negotiationDataSize (int nConnections) { return negotiationDataSize (1, nConnections); } int TemporalNegotiator::negotiationDataSize (int nBlocks, int nConnections) { // -1 due to definition of connection member return (nBlocks * sizeof(TemporalNegotiationData) + (nConnections - 1) * sizeof(ConnectionDescriptor)); } TemporalNegotiationData* TemporalNegotiator::allocNegotiationData (int nBlocks, int nConnections) { void* memory = new char[negotiationDataSize (nBlocks, nConnections)]; return static_cast (memory); } void TemporalNegotiator::freeNegotiationData (TemporalNegotiationData* data) { if (data != NULL) { delete[] static_cast (static_cast (data)); data = NULL; } } int TemporalNegotiator::computeDefaultMaxBuffered (int maxLocalWidth, int eventSize, ClockState tickInterval, double timebase) { int res; // Do different calculation depending on the kind of port // NOTE: We should not base this choice eventSize but instead on // proper type information if (eventSize == 0) // continuous data res = DEFAULT_PACKET_SIZE / maxLocalWidth; else if (eventSize == 1) // message data res = DEFAULT_MESSAGE_MAX_BUFFERED; else // event data res = (DEFAULT_PACKET_SIZE / (EVENT_FREQUENCY_ESTIMATE * maxLocalWidth * eventSize * timebase * tickInterval)); if (res < 1) res = 1; return res; } int TemporalNegotiator::findNodeColor (int leader) { int color = -1; ApplicationMap* applicationMap = setup_->applicationMap (); for (int i = 0; i < nApplications_; ++i) if (leader == (*applicationMap)[i].leader ()) color = (*applicationMap)[i].color (); assert (color != -1); return color; } void TemporalNegotiator::collectNegotiationData (ClockState ti) { int nOut = outputConnections.size (); int nIn = inputConnections.size (); nLocalConnections = nOut + nIn; MUSIC_LOG ("nLocalConnections = " << nLocalConnections << ", nOut = " << nOut << ", nIn = " << nIn); negotiationData = allocNegotiationData (1, nLocalConnections); negotiationData->timebase = setup_->timebase (); negotiationData->tickInterval = ti; negotiationData->color = setup_->applicationColor (); negotiationData->leader = setup_->leader (); negotiationData->nProcs = setup_->nProcs (); negotiationData->nOutConnections = outputConnections.size (); negotiationData->nInConnections = inputConnections.size (); for (int i = 0; i < nOut; ++i) { Connector* connector = outputConnections[i].connector (); int remote = connector->remoteLeader (); negotiationData->connection[i].remoteNode = findNodeColor (remote); negotiationData->connection[i].receiverPort = connector->receiverPortCode (); negotiationData->connection[i].multiComm = connector->idFlag (); negotiationData->connection[i].maxBuffered = outputConnections[i].maxBuffered (); negotiationData->connection[i].defaultMaxBuffered = computeDefaultMaxBuffered (connector->maxLocalWidth (), outputConnections[i].elementSize (), ti, setup_->timebase ()); negotiationData->connection[i].accLatency = 0; } for (int i = 0; i < nIn; ++i) { int remote = inputConnections[i].connector ()->remoteLeader (); negotiationData->connection[nOut + i].remoteNode = findNodeColor ( remote); negotiationData->connection[nOut + i].receiverPort = inputConnections[i].connector ()->receiverPortCode (); negotiationData->connection[nOut + i].multiComm = inputConnections[i].connector ()->idFlag (); negotiationData->connection[nOut + i].maxBuffered = inputConnections[i].maxBuffered (); negotiationData->connection[nOut + i].defaultMaxBuffered = 0; negotiationData->connection[nOut + i].accLatency = inputConnections[i].accLatency (); MUSIC_LOGR ("port " << inputConnections[i].connector ()->receiverPortName () << ": " << inputConnections[i].accLatency ()); negotiationData->connection[nOut + i].interpolate = inputConnections[i].interpolate (); } } void TemporalNegotiator::fillTemporalNegotiatorGraph () { nodes->setNConnections (nAllConnections / 2); char* memory = static_cast (static_cast (negotiationBuffer)); TemporalNegotiationData* data; for (int i = 0; i < nApplications_; ++i) { data = static_cast (static_cast (memory)); int nOut = data->nOutConnections; int nIn = data->nInConnections; nodes->addNode ( ANode (nOut, nIn, *data), data->color); memory += negotiationDataSize (nOut + nIn); } } void TemporalNegotiator::communicateNegotiationData () { // First talk to others about how many connections each node has int* nConnections = new int[nApplications_]; negotiationComm.Allgather (&nLocalConnections, 1, MPI::INT, nConnections, 1, MPI::INT); for (int i = 0; i < nApplications_; ++i) nAllConnections += nConnections[i]; negotiationBuffer = allocNegotiationData (nApplications_, nAllConnections); int* receiveSizes = new int[nApplications_]; int* displacements = new int[nApplications_]; int displacement = 0; for (int i = 0; i < nApplications_; ++i) { int receiveSize = negotiationDataSize (nConnections[i]); receiveSizes[i] = receiveSize; displacements[i] = displacement; displacement += receiveSize; } delete[] nConnections; int sendSize = negotiationDataSize (nLocalConnections); negotiationComm.Allgatherv (negotiationData, sendSize, MPI::BYTE, negotiationBuffer, receiveSizes, displacements, MPI::BYTE); delete[] displacements; delete[] receiveSizes; freeNegotiationData (negotiationData); fillTemporalNegotiatorGraph (); } ConnectionDescriptor* TemporalNegotiator::findInputConnection (int node, int port) { int nOut = nodes->at (node).data ().nOutConnections; // Get address of first input ConnectionDescriptor ConnectionDescriptor* inputDescriptors = &nodes->at (node).data ().connection[nOut]; for (int i = 0; i < nodes->at (node).data ().nInConnections; ++i) if (inputDescriptors[i].receiverPort == port) return &inputDescriptors[i]; error ("internal error in TemporalNegotiator::findInputConnection"); return 0; // never reached } void TemporalNegotiator::combineParameters () { double timebase = nodes->at (0).data ().timebase; for (int o = 0; o < nApplications_; ++o) { // check timebase if (nodes->at (o).data ().timebase != timebase) error0 ("applications don't use same timebase"); for (int c = 0; c < nodes->at (o).data ().nOutConnections; ++c) { ConnectionDescriptor* out = &nodes->at (o).data ().connection[c]; int i = out->remoteNode; ConnectionDescriptor* in = findInputConnection (i, out->receiverPort); // maxBuffered // check defaults if (out->maxBuffered == MAX_BUFFERED_NO_VALUE && in->maxBuffered == MAX_BUFFERED_NO_VALUE) out->maxBuffered = out->defaultMaxBuffered; else if (in->maxBuffered != MAX_BUFFERED_NO_VALUE) { // convert to sender side ticks ClockState inMaxBufferedTime = in->maxBuffered * nodes->at (i).data ().tickInterval; int inMaxBuffered = (inMaxBufferedTime / nodes->at (o).data ().tickInterval); // take min maxBuffered if (out->maxBuffered == MAX_BUFFERED_NO_VALUE || inMaxBuffered < out->maxBuffered) out->maxBuffered = inMaxBuffered; } // store maxBuffered in sender units in->maxBuffered = out->maxBuffered; MUSIC_LOG0("Max Buffered:"<maxBuffered); // accLatency out->accLatency = in->accLatency; // interpolate out->interpolate = in->interpolate; // remoteTickInterval out->remoteTickInterval = nodes->at (i).data ().tickInterval; in->remoteTickInterval = nodes->at (o).data ().tickInterval; } } } void TemporalNegotiator::distributeParameters () { for (int o = 0; o < nApplications_; ++o) { for (int c = 0; c < nodes->at (o).data ().nOutConnections; ++c) { ConnectionDescriptor* out = &nodes->at (o).data ().connection[c]; int i = out->remoteNode; ConnectionDescriptor* in = findInputConnection (i, out->receiverPort); // store maxBuffered in sender units in->maxBuffered = out->maxBuffered; } } } void TemporalNegotiator::loopAlgorithm () { std::vector > path; TemporalNegotiatorGraph::iterator it; for (it = nodes->begin (); it < nodes->end (); ++it) if (!it->visited) nodes->depthFirst (*it, path); } void TemporalNegotiator::broadcastNegotiationData () { MPI::Intracomm comm = setup_->communicator (); if (hasPeers ()) { comm.Bcast (&nAllConnections, 1, MPI::INT, 0); char* memory = static_cast (static_cast (negotiationBuffer)); comm.Bcast (memory, negotiationDataSize (nApplications_, nAllConnections), MPI::BYTE, 0); } } void TemporalNegotiator::receiveNegotiationData () { MPI::Intracomm comm = setup_->communicator (); comm.Bcast (&nAllConnections, 1, MPI::INT, 0); negotiationBuffer = allocNegotiationData (nApplications_, nAllConnections); char* memory = static_cast (static_cast (negotiationBuffer)); comm.Bcast (memory, negotiationDataSize (nApplications_, nAllConnections), MPI::BYTE, 0); fillTemporalNegotiatorGraph (); } void TemporalNegotiator::negotiate (Clock& localTime, std::vector* connections) { separateConnections (connections); //MUSIC_LOGR (printconns ("NOut: ", outputConnections)); //MUSIC_LOGR (printconns ("NIn: ", inputConnections)); createNegotiationCommunicator (); if (isLeader ()) { collectNegotiationData (localTime.tickInterval ()); communicateNegotiationData (); combineParameters (); loopAlgorithm (); distributeParameters (); broadcastNegotiationData (); } else receiveNegotiationData (); } void TemporalNegotiatorGraph::handleLoop ( ANode &x, std::vector > & path) { // Search path to detect beginning of loop int loop; for (loop = 0; &path[loop].pre () != &x; ++loop) ; // Compute how much headroom we have for buffering ClockState totalDelay = 0; for (unsigned int c = loop; c < path.size (); ++c) { MUSIC_LOGR ("latency = " << path[c].data().accLatency << ", ti = " << path[c].pre ().data().tickInterval); totalDelay += path[c].data ().accLatency - path[c].pre ().data ().tickInterval; } // If negative we will not be able to make it in time // around the loop even without any extra buffering if (totalDelay < 0) { std::ostringstream ostr; ostr << "too short latency (" << -timebase_ * totalDelay << " s) around loop: "; // << path[loop].pre().name(); for (unsigned int c = loop + 1; c < path.size (); ++c) ostr << ", "; // << path[c].pre().name(); error0 (ostr.str ()); } // Distribute totalDelay as allowed buffering uniformly over loop // (we could do better by considering constraints form other loops) int loopLength = path.size () - loop; ClockState bufDelay = totalDelay / loopLength; for (unsigned int c = loop; c < path.size (); ++c) { int allowedTicks = bufDelay / path[c].pre ().data ().tickInterval; path[c].data ().maxBuffered = std::min (path[c].data ().maxBuffered, allowedTicks); } } void TemporalNegotiatorGraph::setNConnections (int nConns) { nConnections_ = nConns; } int TemporalNegotiatorGraph::getNConnections () { return nConnections_; } } #endif music-1.1.16/src/music/0000755000175000017500000000000013571740113011632 500000000000000music-1.1.16/src/music/index_map.hh0000644000175000017500000000566213571617503014056 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_INDEX_MAP_HH #include #include namespace MUSIC { class Index { public: enum Type { GLOBAL, LOCAL, UNDEFINED }; static int WILDCARD_MAX; }; class GlobalIndex : public Index { int id; public: GlobalIndex () { } GlobalIndex (int i) : id (i) { } operator int () const { return id; } }; class LocalIndex : public Index { int id; public: LocalIndex () { } LocalIndex (int i) : id (i) { } operator int () const { return id; } }; class IndexInterval : public Interval { LocalIndex local_; public: IndexInterval () { } IndexInterval (GlobalIndex b, GlobalIndex e, LocalIndex l) : Interval (b, e), local_ (l) { } LocalIndex local () const { return local_; } void setLocal (int l) { local_ = l; } }; bool operator< (const IndexInterval& a, const IndexInterval& b); class IndexMap { public: class IteratorImplementation { public: virtual ~IteratorImplementation () { } virtual const IndexInterval operator* () = 0; virtual const IndexInterval* dereference () = 0; virtual bool isEqual (IteratorImplementation* i) const = 0; virtual void operator++ () = 0; virtual IteratorImplementation* copy () = 0; }; class iterator { IteratorImplementation* implementation_; public: iterator (IteratorImplementation* impl) : implementation_ (impl) { } ~iterator () { delete implementation_; } iterator (const iterator& i) : implementation_ (i.implementation_->copy ()) { } const iterator& operator= (const iterator& i) { delete implementation_; implementation_ = i.implementation_->copy (); return *this; } IteratorImplementation* implementation () const { return implementation_; } const IndexInterval operator* (); const IndexInterval* operator-> (); bool operator== (const iterator& i) const; bool operator!= (const iterator& i) const; iterator& operator++ (); }; virtual ~IndexMap () { } virtual iterator begin () = 0; virtual const iterator end () const = 0; virtual IndexMap* copy () = 0; }; } #define MUSIC_INDEX_MAP_HH #endif music-1.1.16/src/music/communication.hh0000644000175000017500000000206613571617503014752 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_COMMUNICATION_HH #include "music/data_map.hh" namespace MUSIC { // These are the MPI message tags used by the MUSIC library enum MessageTag { CREATE_INTERCOMM_MSG, TICKINTERVAL_MSG, WIDTH_MSG, SPATIAL_NEGOTIATION_MSG, CONT_MSG, SPIKE_MSG, MESSAGE_MSG, FLUSH_MSG }; } #define MUSIC_COMMUNICATION_HH #endif music-1.1.16/src/music/application_map.hh0000644000175000017500000000360113571617503015241 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_APPLICATION_MAP_HH #include "music/music-config.hh" #include #include #include namespace MUSIC { class ApplicationInfo { std::string name_; int nProc_; int color_; //used for convenience int leader_; public: ApplicationInfo (std::string name, int n, int c) : name_ (name), nProc_ (n), color_ (c), leader_(-1) { } std::string name () { return name_; } int color () { return color_; } int nProc () { return nProc_; } int leader () { return leader_; } void setLeader( int leader) { leader_ = leader; } }; class ApplicationMap : public std::vector { public: ApplicationMap (); ApplicationInfo* lookup (std::string appName); ApplicationInfo* lookup (int color); int nProcesses (); void add (std::string name, int n, int c); void write (std::ostringstream& out); void read (std::istringstream& in); #if MUSIC_USE_MPI std::map assignLeaders (std::string my_app_label); #endif }; } #define MUSIC_APPLICATION_MAP_HH #endif music-1.1.16/src/music/ioutils.hh0000644000175000017500000000203213571617503013566 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_IOUTILS_HH #include namespace MUSIC { namespace IOUtils { // NOTE: these could be stream classes void write (std::ostringstream& out, std::string s); std::string read (std::istringstream& in, int delim); std::string read (std::istringstream& in); } } #define MUSIC_IOUTILS_HH #endif music-1.1.16/src/music/subconnector.hh0000644000175000017500000002561013571617503014611 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_SUBCONNECTOR_HH #include "music/music-config.hh" #if MUSIC_USE_MPI #include #include #include #include #include //#include #include #include #include #include namespace MUSIC { // NOTE: Must be divisible by the size of the datatype of the data // maps passed to cont ports const int SPIKE_BUFFER_MAX = 10000 * sizeof (Event); const int CONT_BUFFER_MAX = SPIKE_BUFFER_MAX; //5000 of double values per input connector const int MESSAGE_BUFFER_MAX = 10000; class EventRouter; // The subconnector is responsible for the local side of the // communication between two MPI processes, one for each port of a // port pair. It is created in connector::connect (). class Subconnector { private: protected: //Synchronizer* synch; MPI::Datatype type_; MPI::Intercomm intercomm; int remoteRank_; // rank in inter-communicatir int remoteWorldRank_; // rank in COMM_WORLD int receiverRank_; int receiverPortCode_; bool flushed; public: //*fixme* should not create subconnectors with uninitialized members Subconnector ():type_(MPI::BYTE), flushed(false){}; Subconnector (MPI::Datatype type):type_ (type), flushed(false) { } Subconnector (MPI::Datatype type, MPI::Intercomm intercomm, int remoteLeader, int remoteRank, int receiverRank, int receiverPortCode); virtual ~Subconnector (); virtual void report () { } virtual void initialCommunication (double param) { } virtual void maybeCommunicate () = 0; virtual void maybeCommunicate (std::vector &) {}; virtual void flush (bool& dataStillFlowing) = 0; bool isFlushed () { return flushed; } int localRank () const { return intercomm.Get_rank (); } int remoteRank () const { return remoteRank_; } //*fixme* are the following still needed or can they be removed? int remoteWorldRank () const { return remoteWorldRank_; } int receiverRank () const { return receiverRank_; } int receiverPortCode () const { return receiverPortCode_; } }; class OutputSubconnector : virtual public Subconnector { protected: OutputSubconnector () {}; public: virtual FIBO* outputBuffer () { return NULL; } // the following is part of the MultiConnector protocol virtual void nextBlock () { } virtual unsigned int dataSize () { return 0; } virtual void setOutputBuffer (void* buffer, unsigned int size) { } virtual void fillOutputBuffer () { } }; class BufferingOutputSubconnector : virtual public OutputSubconnector { protected: FIBO buffer_; public: BufferingOutputSubconnector (int elementSize); FIBO* outputBuffer () { return &buffer_; } void report () { std::cout << "Subconnector buffer size: " << buffer_.size () << std::endl; } }; class InputSubconnector : virtual public Subconnector { protected: InputSubconnector (){}; public: virtual BIFO* inputBuffer () { return NULL; } // the following is part of the MultiConnector protocol virtual void processData (void* data, unsigned int size) { } }; class ContOutputSubconnector : public BufferingOutputSubconnector{ protected: ContOutputSubconnector():BufferingOutputSubconnector (0){}; public: ContOutputSubconnector (//Synchronizer* synch, MPI::Intercomm intercomm, int remoteLeader, int remoteRank, int receiverPortCode, MPI::Datatype type); void initialCommunication (double param); void maybeCommunicate (); void send (); void flush (bool& dataStillFlowing); }; class ContInputSubconnector : public InputSubconnector { protected: BIFO buffer_; ContInputSubconnector(){}; public: ContInputSubconnector (//Synchronizer* synch, MPI::Intercomm intercomm, int remoteLeader, int remoteRank, int receiverRank, int receiverPortCode, MPI::Datatype type); BIFO* inputBuffer () { return &buffer_; } void initialCommunication (double initialBufferedTicks); void maybeCommunicate (); void receive (); void flush (bool& dataStillFlowing); }; class EventSubconnector : virtual public Subconnector { protected: static const int FLUSH_MARK = -1; }; class EventOutputSubconnector : public BufferingOutputSubconnector, public EventSubconnector { protected: EventOutputSubconnector(): BufferingOutputSubconnector (sizeof (Event)){}; public: EventOutputSubconnector (//Synchronizer* synch, MPI::Intercomm intercomm, int remoteLeader, int remoteRank, int receiverPortCode); void maybeCommunicate (); void maybeCommunicate (std::vector &); void send (); void send (std::vector &); void flush (bool& dataStillFlowing); }; class EventInputSubconnector : public InputSubconnector, public EventSubconnector { protected: EventInputSubconnector(){}; public: EventInputSubconnector (//Synchronizer* synch, MPI::Intercomm intercomm, int remoteLeader, int remoteRank, int receiverRank, int receiverPortCode); void maybeCommunicate (); virtual void receive () {}; virtual void flush (bool& dataStillFlowing); }; class EventInputSubconnectorGlobal : public EventInputSubconnector { EventHandlerGlobalIndex* handleEvent; // static EventHandlerGlobalIndexDummy dummyHandler; public: EventInputSubconnectorGlobal (//Synchronizer* synch, MPI::Intercomm intercomm, int remoteLeader, int remoteRank, int receiverRank, int receiverPortCode, EventHandlerGlobalIndex* eh); bool receive(char *data, int size); void receive (); // void flush (bool& dataStillFlowing); }; class EventInputSubconnectorLocal : public EventInputSubconnector { EventHandlerLocalIndex* handleEvent; // static EventHandlerLocalIndexDummy dummyHandler; public: EventInputSubconnectorLocal (//Synchronizer* synch, MPI::Intercomm intercomm, int remoteLeader, int remoteRank, int receiverRank, int receiverPortCode, EventHandlerLocalIndex* eh); void receive (); // void flush (bool& dataStillFlowing); }; class MessageSubconnector : virtual public Subconnector { protected: static const int FLUSH_MARK = -1; }; class MessageOutputSubconnector : public OutputSubconnector, public MessageSubconnector { FIBO* buffer_; public: MessageOutputSubconnector (//Synchronizer* synch, MPI::Intercomm intercomm, int remoteLeader, int remoteRank, int receiverPortCode, FIBO* buffer); void maybeCommunicate (); void send (); void flush (bool& dataStillFlowing); }; class MessageInputSubconnector : public InputSubconnector, public MessageSubconnector { MessageHandler* handleMessage; // static MessageHandlerDummy dummyHandler; public: MessageInputSubconnector (//Synchronizer* synch, MPI::Intercomm intercomm, int remoteLeader, int remoteRank, int receiverRank, int receiverPortCode, MessageHandler* mh); void maybeCommunicate (); void receive (); void flush (bool& dataStillFlowing); }; /* remedius * CollectiveSubconnector class is used for collective communication * based on MPI::ALLGATHER function. */ class CollectiveSubconnector : public virtual Subconnector { int nProcesses, *ppBytes, *displ; protected: MPI::Intracomm intracomm_; protected: virtual ~CollectiveSubconnector (); CollectiveSubconnector (MPI::Intracomm intracomm); void maybeCommunicate (); int calcCommDataSize (int local_data_size); std::vector getCommData(char *cur_buff, int size); const int* getDisplArr(){return displ;} const int* getSizeArr(){return ppBytes;} virtual void communicate () { }; void allocAllgathervArrays (); void freeAllgathervArrays (); }; class DirectRouter; class EventOutputCollectiveSubconnector : public OutputSubconnector, public EventSubconnector, public CollectiveSubconnector { DirectRouter* router_; public: EventOutputCollectiveSubconnector () : CollectiveSubconnector (intracomm_) { } void setRouter (DirectRouter* router) { router_ = router; } // the following is part of the MultiConnector protocol void nextBlock () { } unsigned int dataSize (); void setOutputBuffer (void* buffer, unsigned int size); void fillOutputBuffer (); void flush (bool& dataStillFlowing) { } void maybeCommunicate () { } }; class EventInputCollectiveSubconnector : public EventInputSubconnector, public CollectiveSubconnector { protected: EventRouter *router_; public: EventInputCollectiveSubconnector (EventRouter *router) : CollectiveSubconnector (intracomm_), router_(router) { } // the following is part of the MultiConnector protocol void processData (void* data, unsigned int size); private: void maybeCommunicate () { } }; class ContCollectiveSubconnector : public ContInputSubconnector, public ContOutputSubconnector, public CollectiveSubconnector { std::multimap< int, Interval> intervals_; //the data we want std::map blockSizePerRank_; //contains mapping of rank->size of the communication data //(size of communication data/nBuffered per rank is constant). int width_; //port width in bytes public: ContCollectiveSubconnector (std::multimap intervals, int width, MPI::Intracomm intracomm, MPI::Datatype type) : Subconnector(type), CollectiveSubconnector (intracomm), intervals_(intervals), width_(width*type.Get_size ()) { allocAllgathervArrays (); } ~ContCollectiveSubconnector () { void freeAllgathervArrays (); } void initialCommunication (double initialBufferedTicks); void maybeCommunicate (); void flush (bool& dataStillFlowing); private: void communicate(); void fillBlockSizes(); }; } #endif #define MUSIC_SUBCONNECTOR_HH #endif music-1.1.16/src/music/event_routing_map.hh0000644000175000017500000000775613571617503015645 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ /* remedius * event_routingmap.hh and event_routingmap.cc were added to the repository * as a new hierarchy for EventRoutingMap class. * Before EventRoutingMap class was defined in event_router.cc file. * EventRoutingMap class keeps the former methods however it became a template * due to different data types needed for processing events on the receiver and sender sides. */ #ifndef MUSIC_EVENT_ROUTINGMAP_HH #include #include #include #include #include #include namespace MUSIC { class EventRouter; template class EventRoutingMap{ public: virtual ~EventRoutingMap (); virtual void fillRouter (EventRouter *router)=0; virtual void insert (IndexInterval i, DataType data); protected: typedef std::map >DataMap; DataMap dataMap; EventRoutingMap () {} std::vector rebuildIntervals (std::vector &intervals); struct comp{ bool operator() (IndexInterval* i,IndexInterval *j) { return (*i<*j);} } comp_obj; }; template EventRoutingMap::~EventRoutingMap(){ typename DataMap::iterator pos; for (pos = dataMap.begin (); pos != dataMap.end (); ++pos) for (std::vector::iterator i = pos->second.begin (); i != pos->second.end (); i++) delete (*i); } template void EventRoutingMap::insert (IndexInterval i, DataType data) { dataMap[data].push_back (new IndexInterval(i.begin(),i.end(),i.local())); } template std::vector EventRoutingMap::rebuildIntervals (std::vector &intervals) { std::vector newIntervals; // Sort all intervals sort (intervals.begin (), intervals.end (), comp_obj); std::vector::iterator i = intervals.begin (); // Build sequence of unions out of the original interval sequence i = intervals.begin (); while (i != intervals.end ()) { IndexInterval current = **i++; while (i != intervals.end () && (*i)->begin () <= current.end ()) { // join intervals int maxEnd = std::max (current.end (), (*i)->end ()); current.setEnd (maxEnd); ++i; } newIntervals.push_back (current); } return newIntervals; } /* remedius * InputRoutingMap is an EventRoutingMap that's used for processing the events on the receiver side */ class InputRoutingMap:public EventRoutingMap { public: void fillRouter (EventRouter *router); private: void insertRoutingInterval(EventRouter *router, IndexInterval i, EventHandlerPtr *h); }; /* remedius * OutputRoutingMap is an EventRoutingMap that's used for processing the events on the sender side */ class OutputRoutingMap:public EventRoutingMap { std::vector *intervals; public: OutputRoutingMap(){intervals = new std::vector;} ~OutputRoutingMap(); void fillRouter (EventRouter *router); void insert (IndexInterval i, FIBO* data); private: void insertRoutingInterval(EventRouter *router, IndexInterval i, FIBO *b); }; } #define MUSIC_EVENT_ROUTINGMAP_HH #endif music-1.1.16/src/music/FIBO.hh0000644000175000017500000000266013571617503012624 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_FIBO_HH #include "music/music-config.hh" #include namespace MUSIC { class FIBO { private: static const int nInitial = 10; std::vector buffer; int elementSize; int size_; int current; void grow (int newSize); public: FIBO () { } FIBO (int elementSize); void configure (int elementSize); bool isEmpty (); // NOTE: find better return type void* insert (); void insert (void* elements, int n_elements); void clear (); void nextBlockNoClear (void*& data, int& size); void nextBlock (void*& data, int& size); unsigned int size () { return size_; } //*fixme* should be n elements }; } #define MUSIC_FIBO_HH #endif music-1.1.16/src/music/predict_rank.hh0000644000175000017500000000150313571617503014545 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2011 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef PREDICT_RANK_HH namespace MUSIC { int predictRank (int argc, char** argv); } #define PREDICT_RANK_HH #endif music-1.1.16/src/music/permutation_index.hh0000644000175000017500000000364313571617503015645 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_PERMUTATION_INDEX_HH #include #include "music/index_map.hh" namespace MUSIC { /* * This index map is part of the MUSIC API and documented * in section 4.3.8 of the MUSIC manual. */ class PermutationIndex : public IndexMap { std::vector indices_; public: class iterator : public IndexMap::IteratorImplementation { const IndexInterval* intervalPtr; public: iterator (const IndexInterval* ptr) : intervalPtr (ptr) { } virtual const IndexInterval operator* () { return *intervalPtr; } virtual const IndexInterval* dereference () { return intervalPtr; } virtual bool isEqual (IteratorImplementation* i) const { return intervalPtr == static_cast (i)->intervalPtr; } virtual void operator++ () { ++intervalPtr; } virtual IteratorImplementation* copy () { return new iterator (intervalPtr); } }; PermutationIndex (GlobalIndex *indices, int size); PermutationIndex (std::vector& indices); virtual IndexMap::iterator begin (); virtual const IndexMap::iterator end () const; virtual IndexMap* copy (); }; } #define MUSIC_PERMUTATION_INDEX_HH #endif music-1.1.16/src/music/event.hh0000644000175000017500000000556213571617503013232 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_EVENT_HH #include namespace MUSIC { class Event { public: double t; int id; Event (double t_, int id_) : t (t_), id (id_) { } bool operator< (const Event& other) const { return t < other.t; } }; class EventHandlerGlobalIndex { public: virtual ~EventHandlerGlobalIndex() { } virtual void operator () (double t, GlobalIndex id) = 0; }; class EventHandlerGlobalIndexDummy : public EventHandlerGlobalIndex { public: virtual void operator () (double t, GlobalIndex id) { }; }; class EventHandlerGlobalIndexProxy : public EventHandlerGlobalIndex { void (*eventHandler) (double t, int id); public: EventHandlerGlobalIndexProxy () { } EventHandlerGlobalIndexProxy (void (*eh) (double t, int id)) : eventHandler (eh) { } void operator () (double t, GlobalIndex id) { eventHandler (t, id); } }; class EventHandlerLocalIndex { public: virtual ~EventHandlerLocalIndex() { } virtual void operator () (double t, LocalIndex id) = 0; }; class EventHandlerLocalIndexDummy : public EventHandlerLocalIndex { public: virtual void operator () (double t, LocalIndex id) { }; }; class EventHandlerLocalIndexProxy : public EventHandlerLocalIndex { void (*eventHandler) (double t, int id); public: EventHandlerLocalIndexProxy () { } EventHandlerLocalIndexProxy (void (*eh) (double t, int id)) : eventHandler (eh) { } void operator () (double t, LocalIndex id) { eventHandler (t, id); } }; class EventHandlerPtr { union { EventHandlerGlobalIndex* global; EventHandlerLocalIndex* local; } ptr; Index::Type type_; public: EventHandlerPtr () { } EventHandlerPtr (EventHandlerGlobalIndex* p):type_(Index::GLOBAL) { ptr.global = p; } EventHandlerPtr (EventHandlerLocalIndex* p):type_(Index::LOCAL) { ptr.local = p; } typedef EventHandlerGlobalIndex* EventHandlerGlobalIndexPtr; operator EventHandlerGlobalIndex* () { return ptr.global; } operator EventHandlerLocalIndex* () { return ptr.local; } Index::Type getType(){return type_;} }; } #define MUSIC_EVENT_HH #endif music-1.1.16/src/music/multibuffer.hh0000644000175000017500000002540113571617503014427 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2012 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_MULTIBUFFER_HH #define MUSIC_TWOSTAGE_ALLGATHER #include "music/music-config.hh" #include "music/connector.hh" #include #include #include #include #if MUSIC_USE_MPI namespace MUSIC { class Updateable { public: virtual ~Updateable () { } virtual void update () = 0; }; class MultiConnector; class MultiBuffer { /* * The buffer is organized as a sequence of BLOCKs. Each BLOCK * starts with an ERRORFLAG (HeaderType). * * When ERRORFLAG is clear, it is followed by a sequence of * BUFFERs. Each BUFFER starts with current SIZE of data followed * by DATA. * * When the ERRORFLAG is set, it is followed by a sequence of * requested buffer sizes. * * A block with a set ERRORFLAG is prepared at and sent from * displacement 0. * * inputConnectorMap associates each Connector with an * InputSubconnectorInfo. This data structure contains a vector * of BufferInfo, one for each rank in the corresponding * OutputConnector. * * outputConnectorMap associates each OutputConnector with an * OutputSubconnectorInfo containing a pointer to the BufferInfo * corresponding to this rank. */ public: typedef char* BufferType; struct RankInfo { RankInfo () { } RankInfo (int l, int lr) : leader (l), localRank (lr) { } int leader; int localRank; }; typedef std::map > RankMap; struct Interval { Interval () { } Interval (int f, int l) : first (f), last (l) { } int first; int last; }; typedef std::vector Intervals; typedef std::map GroupMap; private: static const unsigned int ERROR_FLAG = 1; static const unsigned int FINALIZE_FLAG = 2; typedef unsigned int HeaderType; static HeaderType* headerPtr (void* ptr) { return static_cast (ptr); } public: #ifdef MUSIC_TWOSTAGE_ALLGATHER static const int TWOSTAGE_FINALIZE_FLAG = 1 << 30; #endif class BufferInfo { unsigned int start_; // points to beginning of DATA unsigned int size_; // current size of BUFFER (max data size) #ifdef MUSIC_TWOSTAGE_ALLGATHER int rank_; #endif public: unsigned int readDataSize (BufferType buffer) const { // SIZE is stored before DATA return headerPtr (buffer + start_) [-1]; } void writeDataSize (BufferType buffer, unsigned int size) { headerPtr (buffer + start_) [-1] = size; } unsigned int start () const { return start_; } void setStart (unsigned int start) { start_ = start; } unsigned int size () const { return size_; } void setSize (unsigned int size) { size_ = size; } #ifdef MUSIC_TWOSTAGE_ALLGATHER int rank () const { return rank_; } void setRank (int rank) { rank_ = rank; } #endif }; typedef std::vector BufferInfos; typedef std::vector BufferInfoPtrs; private: public: class Block { private: int rank_; unsigned int start_; // points to ERRORFLAG unsigned int size_; // includes ERRORFLAG and buffer SIZEs BufferInfoPtrs bufferInfoPtr_; public: int rank () const { return rank_; } void setRank (int rank) { rank_ = rank; } unsigned int start () const { return start_; } void setStart (unsigned int start) { start_ = start; } unsigned int size () const { return size_; } void setSize (unsigned int size) { size_ = size; } unsigned int nBuffers () const { return bufferInfoPtr_.size (); } unsigned int headerSize () const { return sizeof (HeaderType) * (1 + nBuffers ()); } bool errorFlag (BufferType buffer) const { //*fixme* Can set start_ to proper offset unsigned int offset = rank_ == MPI::COMM_WORLD.Get_rank () ? 0 : start_; return *headerPtr (buffer + offset) & MultiBuffer::ERROR_FLAG; } void clearBufferFlags (BufferType buffer) { *headerPtr (buffer + start_) = 0; } void clearBufferErrorFlag (BufferType buffer) { *headerPtr (buffer + start_) &= ~MultiBuffer::ERROR_FLAG; } bool finalizeFlag (BufferType buffer) const { return *headerPtr (buffer + start_) & MultiBuffer::FINALIZE_FLAG; } void setFinalizeFlag (BufferType buffer) { *headerPtr (buffer + start_) |= MultiBuffer::FINALIZE_FLAG; } unsigned int requestedDataSize (BufferType buffer, int i) const { unsigned int offset = rank_ == MPI::COMM_WORLD.Get_rank () ? 0 : start_; return headerPtr (buffer + offset)[1 + i]; } BufferInfoPtrs::iterator begin () { return bufferInfoPtr_.begin (); } BufferInfoPtrs::iterator end () { return bufferInfoPtr_.end (); } BufferInfoPtrs::reverse_iterator rbegin () { return bufferInfoPtr_.rbegin (); } BufferInfoPtrs::reverse_iterator rend () { return bufferInfoPtr_.rend (); } void push_back (BufferInfo* bi) { bufferInfoPtr_.push_back (bi); } }; private: // allocated by realloc in order to use a minimal amount of memory at resize BufferType buffer_; unsigned int size_; unsigned int errorBlockSize_; int localLeader_; public: typedef std::vector Blocks; private: Blocks block_; public: class InputSubconnectorInfo { InputSubconnector* subconnector_; BufferInfos bufferInfo_; public: InputSubconnectorInfo (InputSubconnector* s) : subconnector_ (s) { } InputSubconnector* subconnector () const { return subconnector_; } void setSize (unsigned int size) { bufferInfo_.resize (size); } BufferInfos::iterator begin () { return bufferInfo_.begin (); } BufferInfos::iterator end () { return bufferInfo_.end (); } }; class OutputSubconnectorInfo { OutputSubconnector* subconnector_; BufferInfo* bufferInfo_; public: OutputSubconnectorInfo (OutputSubconnector* s, BufferInfo* bi) : subconnector_ (s), bufferInfo_ (bi) { } OutputSubconnector* subconnector () const { return subconnector_; } BufferInfo* bufferInfo () const { return bufferInfo_; } }; private: //typedef std::vector InputSubconnectorInfos; //InputSubconnectorInfos inputSubconnectorInfo_; typedef std::map OutputConnectorMap; OutputConnectorMap outputConnectorMap_; typedef std::map InputConnectorMap; InputConnectorMap inputConnectorMap_; GroupMap groupMap_; std::vector multiConnectors; public: BufferType buffer () const { return buffer_; } private: void setupRankMap (int, RankMap* rankMap); void registerGroup (unsigned int leader, std::vector& worldRanks); unsigned int computeSize (bool twostage); public: MultiBuffer (MPI::Intracomm comm, int leader, std::vector& connectors); Intervals& getWorldRankIntervals (int leader) { return groupMap_[leader]; } void addMultiConnector (Updateable* multiConnector) { multiConnectors.push_back (multiConnector); } Blocks::iterator getBlock (int rank); Blocks::iterator blockEnd () { return block_.end (); } void dumpBlocks (); int localLeader () const { return localLeader_; } InputSubconnectorInfo* getInputSubconnectorInfo (Connector* connector); OutputSubconnectorInfo* getOutputSubconnectorInfo (Connector* connector); void clearFlags () { headerPtr (buffer_)[0] = 0; } void clearErrorFlag () { headerPtr (buffer_)[0] &= ~MultiBuffer::ERROR_FLAG; } void setErrorFlag () { headerPtr (buffer_)[0] |= MultiBuffer::ERROR_FLAG; } void writeRequestedDataSize (int i, unsigned int size) { headerPtr (buffer_)[1 + i] = size; } void restructure (bool twostage); }; class MultiConnector : public Updateable { private: MultiBuffer* multiBuffer_; MultiBuffer::BufferType buffer_; int connectorCode_; std::vector > connectorIds_; typedef MultiBuffer::Intervals Intervals; struct MCGroupInfo { Intervals* worldRankIntervals; unsigned int size; bool blank; }; typedef MultiBuffer::Block Block; typedef MultiBuffer::Blocks Blocks; typedef std::vector BlockPtrs; BlockPtrs block_; typedef MultiBuffer::BufferInfo BufferInfo; typedef MultiBuffer::BufferInfos BufferInfos; typedef MultiBuffer::BufferInfoPtrs BufferInfoPtrs; typedef std::vector OutputSubconnectorInfos; OutputSubconnectorInfos outputSubconnectorInfo_; typedef std::vector InputSubconnectorInfoPtrs; InputSubconnectorInfoPtrs inputSubconnectorInfo_; bool* blank_; std::string id_; // used for debugging int* recvcounts_; int* displs_; bool recvcountInvalid_; bool restructuring_; //int rank_; //int nRanks_; typedef std::map GroupMap; GroupMap* groupMap_; MPI::Group group_; MPI::Intracomm comm_; #ifdef MUSIC_TWOSTAGE_ALLGATHER static const int TWOSTAGE_FINALIZE_FLAG = MultiBuffer::TWOSTAGE_FINALIZE_FLAG; bool twostage_; bool doAllgather_; #endif bool writeSizes (); void fillBuffers (); void processInput (); void mergeGroup (int leader, bool isInput); int rank () const { return comm_.Get_rank (); } int size () const { return comm_.Get_size (); } //void setErrorFlag (MultiBuffer::BufferType buffer); #ifdef MUSIC_TWOSTAGE_ALLGATHER void processReceived (); void checkRestructure (); #endif public: //MultiConnector () { } MultiConnector (MultiBuffer* multiBuffer); MultiConnector (MultiBuffer* multiBuffer, std::vector& connectors); int connectorCode () const { return connectorCode_; } void add (Connector* connector); void initialize (); void tick (); bool isFinalized (); void finalize (); void update (); }; } #endif // MUSIC_USE_MPI #define MUSIC_MULTIBUFFER_HH #endif music-1.1.16/src/music/error.hh0000644000175000017500000000227613571617503013241 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_ERROR_HH #include #include namespace MUSIC { void error (); void hang (); void error (std::string msg); void error (std::ostringstream& ostr); void error0 (std::string msg); void errorRank (std::string msg); void checkOnce (bool& flag, std::string msg); void checkInstantiatedOnce (bool& flag, std::string className); void checkCalledOnce (bool& isCalled, std::string funcName, std::string suffix); } #define MUSIC_ERROR_HH #endif music-1.1.16/src/music/music-config.hh0000644000175000017500000000204513571631416014464 00000000000000#ifndef MUSIC_CONFIG_HH /* * This file is part of MUSIC. * Copyright (C) 2008, 2019 INCF * * MUSIC 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. * * MUSIC 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 . */ #define MUSIC_HAVE_SIZE_T 1 #define MUSIC_HAVE_LONG_LONG 1 #define MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER 1 #define MUSIC_USE_MPI 1 #define MUSIC_ISENDWAITALL 1 #define MUSIC_ANYSOURCE 1 #if MUSIC_USE_MPI #include // Must be included first on BG/L #endif #define MUSIC_CONFIG_HH #endif /* MUSIC_CONFIG_HH */ music-1.1.16/src/music/connectivity.hh0000644000175000017500000001041713571617503014622 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009, 2012 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_CONNECTIVITY_HH #include #include #include namespace MUSIC { /* * Communication Type () * Processing Method () */ class ConnectorInfo { public: enum CommunicationType { COLLECTIVE, POINTTOPOINT }; enum ProcessingMethod { TREE, TABLE }; static int maxPortCode_; std::string recApp_; std::string recPort_; int recCode_; int remoteLeader_; int nProc_; int commType_; int procMethod_; public: ConnectorInfo () { } ConnectorInfo (std::string recApp, std::string recName, int recCode, int rLeader, int nProc, int commType, int procMethod) : recApp_ (recApp), recPort_ (recName), recCode_ (recCode), remoteLeader_ ( rLeader), nProc_ (nProc), commType_ (commType), procMethod_ ( procMethod) { } static void registerPortCode (int portCode); static int allocPortCode () { return ++maxPortCode_; } std::string receiverAppName () const { return recApp_; } std::string receiverPortName () const { return recPort_; } int receiverPortCode () const { return recCode_; } int remoteLeader () const { return remoteLeader_; } void setRemoteLeader (int leader) { remoteLeader_ = leader; } // NOTE: nProcesses should have "remote" in name int nProcesses () const { return nProc_; } int communicationType () const { return commType_; } int processingMethod () const { return procMethod_; } }; typedef std::vector PortConnectorInfo; class ConnectivityInfo { public: enum PortDirection { OUTPUT, INPUT }; static const int NO_WIDTH = -1; private: std::string portName_; PortDirection dir_; int width_; PortConnectorInfo portConnections_; public: ConnectivityInfo (std::string portName, PortDirection dir, int width) : portName_ (portName), dir_ (dir), width_ (width) { } std::string portName () { return portName_; } PortDirection direction () { return dir_; } int width () { return width_; } // NO_WIDTH if no width specified PortConnectorInfo& connections () { return portConnections_; } void addConnection (std::string recApp, std::string recName, int recCode, int rLeader, int nProc, int commType, int procMethod); }; class Connectivity { std::vector connections_; std::map connectivityMap; public: Connectivity () { } #if __cplusplus > 199711L static constexpr ConnectivityInfo* NO_CONNECTIVITY = nullptr; #else static ConnectivityInfo* const NO_CONNECTIVITY; #endif void add (std::string localPort, ConnectivityInfo::PortDirection dir, int width, std::string recApp, std::string recPort, int recPortCode, int remoteLeader, int remoteNProc, int commType, int procMethod); ConnectivityInfo* info (std::string portName); bool isConnected (std::string portName); ConnectivityInfo::PortDirection direction (std::string portName); int width (std::string portName); PortConnectorInfo connections (std::string portName); void write (std::ostringstream& out); void read (std::istringstream& in, std::map leaders); }; } #define MUSIC_CONNECTIVITY_HH #endif music-1.1.16/src/music/linear_index.hh0000644000175000017500000000316613571617503014550 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_LINEAR_INDEX_HH #include "music/index_map.hh" namespace MUSIC { /* * This index map is part of the MUSIC API and documented * in section 4.3.8 of the MUSIC manual. */ class LinearIndex : public IndexMap { IndexInterval interval_; public: class iterator : public IndexMap::IteratorImplementation { LinearIndex* indices_; public: iterator (LinearIndex* li); virtual const IndexInterval operator* (); virtual const IndexInterval* dereference (); virtual bool isEqual (IteratorImplementation* i) const; virtual void operator++ (); virtual IteratorImplementation* copy () { return new iterator (indices_); } }; LinearIndex (GlobalIndex baseindex, int size); virtual IndexMap::iterator begin (); virtual const IndexMap::iterator end () const; virtual IndexMap* copy (); }; } #define MUSIC_LINEAR_INDEX_HH #endif music-1.1.16/src/music/connector.hh0000644000175000017500000005112613571617503014100 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009, 2012 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_CONNECTOR_HH #include "music/music-config.hh" #if MUSIC_USE_MPI #include #include //#include #include #include #include #include #include #include #include #include #include #include namespace MUSIC { /* remedius * New type of Connector was introduced: CollectiveConnector. * So that Connector class hierarchy undergoes the following changes: * the common functionality for OutputConnector and InputConnector classes was moved to the base Connector class. */ // The Connector is responsible for one side of the communication // between the ports of a port pair. An output port can have // multiple connectors while an input port only has one. The method // connector::connect () creates one subconnector for each MPI // process we will communicate with on the remote side. /* remedius */ class MultiBuffer; class Connector { private: static std::map flagMap_; static unsigned int nextFlag_; static unsigned int nextProxyFlag_; protected: ConnectorInfo info; IndexMap* indices_; Index::Type type_; MPI::Intracomm comm; MPI::Intercomm intercomm; std::vector rsubconn; ClockState latency_; // interpolate rather than picking value closest in time bool interpolate_; int width_; int maxLocalWidth_; unsigned int idFlag_; bool finalized_; Connector () { }; Connector (ConnectorInfo info_, IndexMap* indices, Index::Type type, MPI::Intracomm c); Connector (ConnectorInfo info_, IndexMap* indices, Index::Type type, MPI::Intracomm c, MPI::Intercomm ic); static unsigned int makeFlag (Connector* connector) { unsigned int flag = nextFlag_; nextFlag_ <<= 1; flagMap_[flag] = connector; return flag; } static unsigned int makeProxyFlag () { unsigned int flag = nextProxyFlag_; nextProxyFlag_ <<= 1; return flag; } public: static Connector* connectorFromIdFlag (unsigned int flag) { return flagMap_[flag]; } static unsigned int idRange () { return nextFlag_; } static unsigned int proxyIdRange () { return nextProxyFlag_; } void report () { for (std::vector::iterator subconnector = rsubconn.begin (); subconnector != rsubconn.end (); ++subconnector) (*subconnector)->report (); } virtual ~Connector () { for (std::vector::iterator subconnector = rsubconn.begin (); subconnector != rsubconn.end (); ++subconnector) delete *subconnector; } virtual void specialize (Clock& localTime) { } unsigned int idFlag () const { return idFlag_; } bool needsMultiCommunication () const { return idFlag (); } virtual bool isProxy () const { return false; } virtual bool isInput () const { return false; } std::string receiverAppName () const { return info.receiverAppName (); } std::string receiverPortName () const { return info.receiverPortName (); } int receiverPortCode () const { return info.receiverPortCode (); } int remoteLeader () const { return info.remoteLeader (); } int remoteNProcs () const { return info.nProcesses (); } int width(){return width_;} int maxLocalWidth () { return maxLocalWidth_; } bool isLeader (); virtual void setInterpolate(bool val){interpolate_ = val;} virtual void setLatency( ClockState latency){ latency_ = latency;} // virtual Synchronizer* synchronizer () = 0; virtual void createIntercomm (); virtual void freeIntercomm (); /* remedius * since there can be different types of Subconnectors, * Instead of adding new type of Subconnector, * function parameters' were changed to one parameter without specifying the type of Subconnector and * the common functionality for InputConnector::spatialNegotiation and OutputConnector::spatialNegotiation * was coded in this base Connector::spatialNegotiation() method. * Returns SubconnectorType. */ virtual void spatialNegotiation (); /* remedius * sorts its vector of subconnectors according to its world rank. */ virtual void initialize (); /* remedius * finalize method iterates its subconnectors and calls accordring flush method */ virtual void finalize (); virtual bool isFinalized () { return finalized_; } /* remedius * tick method iterates its subconnectors and call according function to perform communication; * requestCommunication method argument was removed since there is no need anymore to check for next communication. * Communication is scheduled by separate Scheduler objects that Runtime object contains. */ virtual void tick (); /* remedius * In order to carry out the base functionality to the spatialNegotiation() method * the two following common virtual methods were added so that * all successors of this class had to override abstract makeSubconnector method * instead of implementing it's own make^SpecificType^Subconnector() method. */ protected: virtual void addRoutingInterval (IndexInterval i, Subconnector* s){}; virtual Subconnector* makeSubconnector (int remoteRank){return NULL;}; virtual void spatialNegotiation (SpatialNegotiator *spatialNegotiator_); virtual SpatialNegotiator *createSpatialNegotiator(){return NULL;}; }; class ProxyConnector : virtual public Connector { int senderNode_; int senderLeader_; int senderNProcs_; int receiverNode_; int receiverLeader_; int receiverNProcs_; int currentNode_; public: ProxyConnector (int senderNode, int senderLeader, int senderNProcs, int receiverNode, int receiverLeader, int receiverNProcs) : senderLeader_ (senderLeader), senderNProcs_ (senderNProcs), receiverLeader_ (receiverLeader), receiverNProcs_ (receiverNProcs) { idFlag_ = makeProxyFlag (); } ProxyConnector (){idFlag_ =0;} bool isProxy () const { return true; } void tick () { } void setNode (int nodeId) { currentNode_ = nodeId; //*fixme* if (isInput ()) info.setRemoteLeader (senderLeader ()); else info.setRemoteLeader (receiverLeader ()); } bool isInput () { return receiverNode_ == currentNode_; } int senderLeader () const { return senderLeader_; } int senderNProcs () const { return senderNProcs_; } int receiverLeader () const { return receiverLeader_; } int receiverNProcs () const { return receiverNProcs_; } }; class PostCommunicationConnector : virtual public Connector { public: virtual void postCommunication () = 0; }; class PreCommunicationConnector : virtual public Connector { public: virtual void preCommunication () = 0; }; class OutputConnector : virtual public Connector { public: #if MUSIC_ISENDWAITALL virtual void tick (); #endif // MUSIC_ISENDWAITALL protected: OutputConnector(){}; SpatialNegotiator *createSpatialNegotiator(); }; class InputConnector : virtual public Connector { /* public: #ifdef MUSIC_ANYSOURCE virtual void tick (); #endif // MUSIC_ANYSOURCE */ protected: InputConnector(){}; bool isInput () const { return true; } SpatialNegotiator *createSpatialNegotiator(); }; class ContConnector : virtual public Connector { protected: Sampler& sampler_; MPI::Datatype data_type_; Clock *localTime_; Clock remoteTime_; public: ContConnector (Sampler& sampler, MPI::Datatype type) : sampler_ (sampler), data_type_ (type),localTime_(NULL) { } ClockState remoteTickInterval (ClockState tickInterval); MPI::Datatype getDataType(){return data_type_;} virtual void initialize (); protected: virtual void initialCommunication()=0; friend class SpecializedContConnector; }; class ContOutputConnector : public ContConnector, public OutputConnector, public PreCommunicationConnector { protected: Distributor distributor_; PreCommunicationConnector* connector; //specialized connector ContOutputConnector(Sampler& sampler, MPI::Datatype type); public: ContOutputConnector (ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MPI::Intracomm comm, Sampler& sampler, MPI::Datatype data_type); ~ContOutputConnector(); //MUSIC_ISENDWAITALL is not supported temporarily for cont. ports #if MUSIC_ISENDWAITALL void tick (){Connector::tick();}; #endif void specialize (Clock& localTime); void preCommunication () {connector->preCommunication(); } void initialize (){connector->initialize();ContConnector::initialize();}; protected: void addRoutingInterval (IndexInterval i, Subconnector* osubconn); Subconnector* makeSubconnector (int remoteRank); void initialCommunication(); friend class SpecializedContOuputConnector; }; class ContInputConnector : public ContConnector, public InputConnector, public PostCommunicationConnector { protected: Collector collector_; double delay_; PostCommunicationConnector* connector; bool divisibleDelay (Clock& localTime); ContInputConnector(Sampler& sampler,MPI::Datatype type, double delay); public: ContInputConnector (ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MPI::Intracomm comm, Sampler& sampler, MPI::Datatype data_type, double delay); ~ContInputConnector(); void specialize (Clock& localTime); void postCommunication () {connector->postCommunication(); } void initialize (){connector->initialize();ContConnector::initialize();}; //MUSIC_ANYSOURCE is not supported temporarily for cont. ports //#ifdef MUSIC_ANYSOURCE // virtual void tick {Connector::tick();}; //#endif // MUSIC_ANYSOURCE protected: void addRoutingInterval (IndexInterval i, Subconnector* isubconn); void initialCommunication(); Subconnector* makeSubconnector (int remoteRank); private: int initialBufferedTicks(); friend class SpecializedContInputConnector; }; class EventOutputConnector : public OutputConnector{ private: EventRoutingMap* routingMap_; public: EventOutputConnector (ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MPI::Intracomm comm, EventRoutingMap* routingMap): Connector(connInfo, indices, type ,comm), routingMap_(routingMap){ }; ~EventOutputConnector(){} protected: EventOutputConnector():routingMap_(NULL){}; EventOutputConnector(EventRoutingMap* routingMap): routingMap_(routingMap){}; Subconnector* makeSubconnector (int remoteRank); void addRoutingInterval (IndexInterval i, Subconnector* subconn); }; class EventInputConnector : public InputConnector { protected: // EventRoutingMap* routingMap_; EventHandlerPtr handleEvent_; std::map rRank2Subconnector; int flushes; public: EventInputConnector (ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MPI::Intracomm comm, EventHandlerPtr handleEvent):Connector(connInfo, indices, type ,comm), handleEvent_(handleEvent),flushes(0){}; ~EventInputConnector(){} //probably should be moved to InputConnector later #if MUSIC_ANYSOURCE void tick (); #endif // MUSIC_ANYSOURCE protected: EventInputConnector(){}; EventInputConnector (EventHandlerPtr handleEvent): handleEvent_(handleEvent){}; Subconnector* makeSubconnector (int remoteRank); /* remedius * original version of the following function does nothing, * however this function could perform inserting interval to the routingMap_ as well, * that is currently done in CollectiveConnector::addRoutingInterval. * This could give an opportunity to have different event handlers for different ranges of indexes as in collective algorithm. * Do we need this? If not, then it's better to leave as it is. */ void addRoutingInterval (IndexInterval i, Subconnector* subconn); }; class MessageOutputConnector : public OutputConnector, public PostCommunicationConnector { private: // OutputSynchronizer synch; FIBO buffer; // MessageOutputConnectors have only one output buffer bool bufferAdded; std::vector& buffers_; // pointer to the port vector of // connector buffers void send (); public: MessageOutputConnector (ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MPI::Intracomm comm, std::vector& buffers); void postCommunication (); //MUSIC_ISENDWAITALL is not supported temporarily for message ports #if MUSIC_ISENDWAITALL void tick (){Connector::tick();}; #endif protected: void addRoutingInterval (IndexInterval i, Subconnector* subconn); Subconnector* makeSubconnector (int remoteRank); SpatialNegotiator *createSpatialNegotiator() {return OutputConnector::createSpatialNegotiator();}; }; class MessageInputConnector : public InputConnector { private: MessageHandler* handleMessage_; public: MessageInputConnector (ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MessageHandler* handleMessage, MPI::Intracomm comm); //MUSIC_ANYSOURCE is not supported temporarily for message ports /* #ifdef MUSIC_ANYSOURCE virtual void tick {Connector::tick();}; #endif // MUSIC_ANYSOURCE */ protected: Subconnector* makeSubconnector (int remoteRank); }; /* remedius * New class hierarchy CollectiveConnector was introduced in order to create CollectiveSubconnector object. * The difference between InputConnector, OutputConnector instances and CollectiveConnector is * the latest creates one CollectiveSubconnector responsible for the collective communication * among all ranks on the output and input sides, while InputConnector and OutputConnector * instances are responsible for creating as much Subconnectors as necessary for each point2point connectivity * for output and input sides. */ class CollectiveConnector: virtual public Connector { bool high_; protected: MPI::Intracomm intracomm_; Subconnector* subconnector_; public: CollectiveConnector (bool high); virtual Subconnector* makeSubconnector (void *param) = 0; void createIntercomm (); void freeIntercomm (); Subconnector* subconnector () { return subconnector_; } }; class ContCollectiveConnector: public CollectiveConnector { MPI::Datatype data_type; protected: ContCollectiveConnector( MPI::Datatype type, bool high); Subconnector* makeSubconnector (void *param); }; class EventCollectiveConnector: public CollectiveConnector { protected: EventRouter *router_; //is used for processing received information EventCollectiveConnector( bool high); public: void createIntercomm () { Connector::createIntercomm (); } void freeIntercomm () { Connector::freeIntercomm (); } }; class EventInputCollectiveConnector: public EventInputConnector, public EventCollectiveConnector { EventRoutingMap* routingMap_input; //is used to fill the information for the receiver public: EventInputCollectiveConnector(ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MPI::Intracomm comm, EventHandlerPtr handleEvent); ~EventInputCollectiveConnector(); #if MUSIC_ANYSOURCE void tick() { Connector::tick();}; #endif // MUSIC_ANYSOURCE protected: void spatialNegotiation ( SpatialNegotiator* spatialNegotiator_); void addRoutingInterval(IndexInterval i, Subconnector* subconn); Subconnector* makeSubconnector (void *param); void finalize () { }; bool isFinalized () { return subconnector ()->isFlushed (); } }; class DirectRouter; class EventOutputCollectiveConnector: public EventOutputConnector,public EventCollectiveConnector{ DirectRouter* directRouter_; public: EventOutputCollectiveConnector(ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MPI::Intracomm comm, DirectRouter* router); ~EventOutputCollectiveConnector(); #if MUSIC_ISENDWAITALL void tick (){Connector::tick();}; #endif //MUSIC_ISENDWAITALL protected: void spatialNegotiation ( SpatialNegotiator* spatialNegotiator_); Subconnector* makeSubconnector (void *param); }; class ContInputCollectiveConnector: public ContInputConnector, public ContCollectiveConnector { public: ContInputCollectiveConnector(ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MPI::Intracomm comm, Sampler& sampler, MPI::Datatype data_type, double delay); #if MUSIC_ANYSOURCE virtual void tick() {Connector::tick();}; #endif // MUSIC_ANYSOURCE protected: void spatialNegotiation ( SpatialNegotiator* spatialNegotiator_); private: void receiveRemoteCommRankID(std::map &remoteToCollectiveRankMap); }; class ContOutputCollectiveConnector: public ContOutputConnector, public ContCollectiveConnector { public: ContOutputCollectiveConnector(ConnectorInfo connInfo, IndexMap* indices, Index::Type type, MPI::Intracomm comm, Sampler& sampler, MPI::Datatype data_type); #if MUSIC_ISENDWAITALL void tick (){Connector::tick();}; #endif protected: void spatialNegotiation ( SpatialNegotiator* spatialNegotiator_); private: void sendLocalCommRankID(); }; class SpecializedContConnector{ protected: Sampler& sampler_; Clock *localTime_; Clock &remoteTime_; ClockState &latency; bool &interp; SpecializedContConnector(ContConnector *conn): sampler_ ( conn->sampler_), localTime_(conn->localTime_), remoteTime_(conn->remoteTime_), latency( conn->latency_), interp( conn->interpolate_){}; }; class SpecializedContOuputConnector:public SpecializedContConnector{ protected: Distributor &distributor_; SpecializedContOuputConnector( ContOutputConnector *conn): SpecializedContConnector(conn), distributor_(conn->distributor_){ } }; class SpecializedContInputConnector:public SpecializedContConnector{ protected: Collector &collector_; SpecializedContInputConnector( ContInputConnector *conn): SpecializedContConnector(conn), collector_(conn->collector_){} }; class PlainContOutputConnector : public PreCommunicationConnector, public SpecializedContOuputConnector { protected: PlainContOutputConnector ( ContOutputConnector *conn):SpecializedContOuputConnector(conn){}; public: void initialize (); void preCommunication(); private: bool sample(); friend class ContOutputConnector; }; class InterpolatingContOutputConnector : public PreCommunicationConnector, public SpecializedContOuputConnector { protected: InterpolatingContOutputConnector (ContOutputConnector *conn):SpecializedContOuputConnector(conn){}; public: void initialize (); void preCommunication(); private: bool interpolate(); bool sample(); double interpolationCoefficient(); friend class ContOutputConnector; }; class PlainContInputConnector : public PostCommunicationConnector, public SpecializedContInputConnector { protected: PlainContInputConnector (ContInputConnector *conn):SpecializedContInputConnector(conn){}; public: void initialize (); void postCommunication (); friend class ContInputConnector; }; class InterpolatingContInputConnector : public PostCommunicationConnector, public SpecializedContInputConnector { bool first_; protected: InterpolatingContInputConnector (ContInputConnector *conn):SpecializedContInputConnector(conn){}; public: void initialize (); void postCommunication (); private: bool sample(); double interpolationCoefficient(); friend class ContInputConnector; }; } #endif #define MUSIC_CONNECTOR_HH #endif music-1.1.16/src/music/debug.hh0000644000175000017500000000356713571617503013202 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_DEBUG_HH #ifdef MUSIC_DEBUG #include #define MUSIC_LOG(X) (std::cerr << X << std::endl << std::flush) #if MUSIC_USE_MPI #define MUSIC_LOGN(N, X) \ { if (MPI::COMM_WORLD.Get_rank () == N) MUSIC_LOG (X); } #define MUSIC_LOG0(X) MUSIC_LOGN (0, X) #define MUSIC_LOGR(X) \ { \ std::cerr << MPI::COMM_WORLD.Get_rank () << ": " \ << X << std::endl << std::flush; \ } #define MUSIC_LOGRE(X) \ { \ int _r = MPI::COMM_WORLD.Get_rank (); \ char* _e = getenv ("MUSIC_DEBUG_RANK"); \ if (_e != NULL && atoi (_e) == _r) \ { \ std::cerr << _r << ": " \ << X << std::endl << std::flush; \ } \ } #define MUSIC_LOGBR(C, X) \ { \ int _r = (C).Get_rank (); \ int _n = (C).Get_size (); \ for (int _i = 0; _i < _n; ++_i) \ { \ (C).Barrier (); \ if (_i == _r) \ MUSIC_LOGR (X); \ } \ } #define MUSIC_LOGX(X) #endif #else #define MUSIC_LOG(X) #define MUSIC_LOGN(N, X) #define MUSIC_LOG0(X) #define MUSIC_LOGR(X) #define MUSIC_LOGRE(X) #define MUSIC_LOGBR(C, X) #define MUSIC_LOGX(X) #endif #define MUSIC_DEBUG_HH #endif music-1.1.16/src/music/version.hh0000644000175000017500000000160313571631416013565 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_VERSION_HH #include #include #define MUSIC_VERSION "1.1.16" namespace MUSIC { const char* version (); } #define MUSIC_VERSION_HH #endif music-1.1.16/src/music/ordered_ilist.hh0000644000175000017500000001460613571617503014740 00000000000000/* * This file is distributed together with MUSIC. * Copyright (C) 2012 Mikael Djurfeldt * * This interval table implementation 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. * * The interval table implementation 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 . */ #ifndef MUSIC_ORDERED_ILIST_HH #include extern "C" { #include } namespace MUSIC { template class OrderedIList { typedef int ListPtr; static const ListPtr NILPTR = -1; public: class Interval { DataType begin_; DataType end_; public: Interval () { } Interval (DataType b, DataType e) : begin_ (b), end_ (e) { } DataType begin () const { return begin_; } void setBegin (const DataType x) { begin_ = x; } DataType end () const { return end_; } void setEnd (const DataType x) { end_ = x; } }; private: struct Node { Node (DataType b, DataType e, ListPtr n) : ival_ (Interval (b, e)), next_ (n) { } Interval ival_; // inclusive ListPtr next_; }; static std::vector node_; static OrderedIList freePtr_; ListPtr lptr_; DataType begin_ () const { return node_[lptr_].ival_.begin (); } void setBegin_ (const DataType x) { node_[lptr_].ival_.setBegin (x); } DataType end_ () const { return node_[lptr_].ival_.end (); } void setEnd_ (const DataType x) { node_[lptr_].ival_.setEnd (x); } OrderedIList next_ () const { return OrderedIList (node_[lptr_].next_); } void setNext_ (const OrderedIList list) const { node_[lptr_].next_ = list.lptr_; } OrderedIList cons (const DataType b, const DataType e, const OrderedIList n); void free (const OrderedIList list); public: static const OrderedIList NIL; class iterator { ListPtr lptr_; OrderedIList list () const { return OrderedIList (lptr_); } public: iterator (OrderedIList list) : lptr_ (list.lptr_) { } bool operator!= (const iterator& i) const { return lptr_ != i.lptr_; } iterator& operator++ () { lptr_ = list ().next_ ().lptr_; return *this; } const Interval& operator* () const { return node_[lptr_].ival_; } const Interval* operator-> () const { return &node_[lptr_].ival_; } }; OrderedIList () : lptr_ (NILPTR) { } OrderedIList (ListPtr ptr) : lptr_ (ptr) { } bool operator== (const OrderedIList& list) const { return lptr_ == list.lptr_; } bool operator!= (const OrderedIList& list) const { return lptr_ != list.lptr_; } bool isEmpty () const { return lptr_ == NILPTR; } OrderedIList insert (DataType i) { return insert (i, *this); } OrderedIList insert (DataType i, OrderedIList hint); iterator begin () const { return iterator (*this); } iterator end () const { return iterator (NIL); } unsigned int size () const; static unsigned int nNodes () { return node_.size (); } static void trimNodes () { std::vector (node_).swap (node_); } static void reset () { freePtr_ = NIL; node_.clear (); trimNodes (); } #ifdef MUSIC_DEBUG static OrderedIList freeList () { return freePtr_; } #endif }; template std::vector::Node> OrderedIList::node_; template OrderedIList OrderedIList::freePtr_ = OrderedIList::NIL; template const OrderedIList OrderedIList::NIL; template OrderedIList OrderedIList::cons (const DataType b, const DataType e, const OrderedIList n) { if (freePtr_.isEmpty ()) { // create a new node ListPtr lptr = node_.size (); node_.push_back (Node (b, e, n.lptr_)); return OrderedIList (lptr); } else { // unlink from freelist OrderedIList list = freePtr_; freePtr_ = freePtr_.next_ (); list.setBegin_ (b); list.setEnd_ (e); list.setNext_ (n); return list; } } template void OrderedIList::free (const OrderedIList list) { list.setNext_ (freePtr_); freePtr_ = list; } template OrderedIList OrderedIList::insert (DataType i, OrderedIList hint) { if (hint.isEmpty ()) { if (isEmpty ()) return *this = cons (i, i, NIL); if (i < begin_ ()) { if (i + 1 == begin_ ()) setBegin_ (i); else *this = cons (i, i, *this); return *this; } OrderedIList list = *this; while (true) { OrderedIList next = list.next_ (); assert (i > list.end_ ()); if (next.isEmpty ()) { if (i == list.end_ () + 1) { list.setEnd_ (i); return list; } } else { if (i == list.end_ () + 1) { if (i + 1 == next.begin_ ()) { list.setEnd_ (next.end_ ()); list.setNext_ (next.next_ ()); free (next); } else { list.setEnd_ (i); } return list; } } if (next.isEmpty ()) { next = cons (i, i, NIL); list.setNext_ (next); return next; } if (i < next.begin_ ()) { if (i + 1 == next.begin_ ()) next.setBegin_ (i); else { next = cons (i, i, next); list.setNext_ (next); } return next; } list = next; } } else { if (i < hint.begin_ () || !hint.next_ ().isEmpty ()) return insert (i, NIL); assert (i > end_ ()); if (i == hint.end_ () + 1) { hint.setEnd_ (i); return hint; } else { OrderedIList next = cons (i, i, NIL); hint.setNext_ (next); return next; } } } template unsigned int OrderedIList::size () const { unsigned int size = 0; OrderedIList list = *this; while (!list.isEmpty ()) { ++size; list = list.next_ (); } return size; } } #define MUSIC_ORDERED_ILIST_HH #endif // MUSIC_ORDERED_ILIST_HH music-1.1.16/src/music/memory.hh0000644000175000017500000000145513571617503013416 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2012 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_MEMORY_HH namespace MUSIC { void reportMem (); } #define MUSIC_MEMORY_HH #endif music-1.1.16/src/music/port.hh0000644000175000017500000002030513571617503013065 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_PORT_HH #include "music/music-config.hh" #if MUSIC_USE_MPI #include #include #include #include #include #include #include #include #include #include #include namespace MUSIC { class Setup; /* remedius * 1. Since one more type of Connector was added - CollectiveConnector, * to avoid branching of different Connector return types, * all makeOutputConnector, makeInputConnector methods were replaced with * Connector* makeConnector method and placed to the base class Port. * 2. RedistributionPort by its definition didn't fit the current meaning * for Input/Output ports anymore, hence it was removed. * All the functionality from Input/OutputRedistributionPort * has been moved to Input/OutputPort respectively. */ class Port { public: Port () { } Port (Setup* s, std::string identifier); virtual void buildTable () { }; virtual void setupCleanup () { }; bool isConnected (); bool hasWidth (); int width (); void checkIndexMap (IndexMap* indexMap); protected: IndexMap* indices_; Index::Type index_type_; std::string portName_; Setup* setup_; ConnectivityInfo* ConnectivityInfo_; virtual Connector* makeConnector (ConnectorInfo connInfo) = 0; void assertOutput (); void assertInput (); public: // MDJ 2012-08-07 public for now---see comment in runtime.cc virtual ~Port(){}; private: void checkConnected (std::string action); bool isMapped_; friend class Runtime; }; // A ticking port is a port which needs to be updated at every tick () class TickingPort : public virtual Port { public: virtual void tick () = 0; }; class OutputPort : public virtual Port { protected: OutputPort () { } virtual void mapImpl (IndexMap* indices, Index::Type type, int maxBuffered, int dataSize); friend class Implementer; }; class InputPort : public virtual Port { protected: InputPort (){ } void mapImpl (IndexMap* indices, Index::Type type, double accLatency, int maxBuffered, bool interpolate); friend class Implementer; }; class ContPort : public virtual Port { protected: Sampler sampler; MPI::Datatype type_; }; class ContOutputPort : public ContPort, public OutputPort, public TickingPort { void mapImpl (DataMap* indices, int maxBuffered); Connector* makeConnector (ConnectorInfo connInfo); friend class Implementer; public: ContOutputPort (Setup* s, std::string id) : Port (s, id) { } void map (DataMap* dmap); void map (DataMap* dmap, int maxBuffered); void tick (); }; class ContInputPort : public ContPort, public InputPort { double delay_; void mapImpl (DataMap* dmap, double delay, int maxBuffered, bool interpolate); Connector* makeConnector (ConnectorInfo connInfo); friend class Implementer; public: ContInputPort (Setup* s, std::string id) : Port (s, id) { } void map (DataMap* dmap, double delay = 0.0, bool interpolate = true); void map (DataMap* dmap, int maxBuffered, bool interpolate = true); void map (DataMap* dmap, double delay, int maxBuffered, bool interpolate = true); }; /* remedius * EventOutputPort constructor, makeOutputConnector() and buildTable() methods were hided from the user. * In order to give the Setup class access to EventOutputPort constructor, * Setup class was declared as a friend class to EventOutputPort. */ class EventOutputPort : public OutputPort { EventRouter *router; EventRoutingMap* routingMap; public: void map (IndexMap* indices, Index::Type type); void map (IndexMap* indices, Index::Type type, int maxBuffered); void insertEvent (double t, GlobalIndex id); void insertEvent (double t, LocalIndex id); EventOutputPort (Setup* s, std::string id); void mapImpl (IndexMap* indices, Index::Type type, int maxBuffered); void insertEventImpl (double t, int id); private: void setupCleanup () { }; public: // MDJ 2012-08-07 public for now---see comment in runtime.cc ~EventOutputPort(); private: Connector* makeConnector (ConnectorInfo connInfo); void buildTable (); friend class Setup; friend class Implementer; }; /* remedius * EventInputPort constructor was hided from the user. * In order to give the Setup class access to EventInputPort constructor, * Setup class was declared as a friend class to EventInputPort. * routingMap field and buildTable() method were added to EventInputPort class since * the routing of the data can also happen on the input side (collective algorithm). */ class EventInputPort : public InputPort { private: Index::Type type_; EventHandlerPtr handleEvent_; // EventRoutingMap* routingMap; public: void map (IndexMap* indices, EventHandlerGlobalIndex* handleEvent, double accLatency = 0.0); void map (IndexMap* indices, EventHandlerLocalIndex* handleEvent, double accLatency = 0.0); void map (IndexMap* indices, EventHandlerGlobalIndex* handleEvent, double accLatency, int maxBuffered); void map (IndexMap* indices, EventHandlerLocalIndex* handleEvent, double accLatency, int maxBuffered); EventInputPort (Setup* s, std::string id); protected: void mapImpl (IndexMap* indices, Index::Type type, EventHandlerPtr handleEvent, double accLatency, int maxBuffered); Connector* makeConnector (ConnectorInfo connInfo); // Facilities to support the C interface public: EventHandlerGlobalIndexProxy* allocEventHandlerGlobalIndexProxy (void (*) (double, int)); EventHandlerLocalIndexProxy* allocEventHandlerLocalIndexProxy (void (*) (double, int)); private: EventHandlerGlobalIndexProxy cEventHandlerGlobalIndex; EventHandlerLocalIndexProxy cEventHandlerLocalIndex; friend class Setup; friend class Implementer; }; class MessagePort : public virtual Port { protected: int rank_; public: MessagePort (Setup* s); }; class MessageOutputPort : public MessagePort, public OutputPort { std::vector buffers; // one buffer per MessageOutputConnector public: MessageOutputPort (Setup* s, std::string id); void map (); void map (int maxBuffered); void insertMessage (double t, void* msg, size_t size); protected: void mapImpl (int maxBuffered); Connector* makeConnector (ConnectorInfo connInfo); friend class Implementer; }; class MessageInputPort : public MessagePort, public InputPort { MessageHandler* handleMessage_; public: MessageInputPort (Setup* s, std::string id); void map (MessageHandler* handler = 0, double accLatency = 0.0); void map (int maxBuffered); void map (double accLatency, int maxBuffered); void map (MessageHandler* handler, int maxBuffered); void map (MessageHandler* handler, double accLatency, int maxBuffered); protected: void mapImpl (MessageHandler* handleEvent, double accLatency, int maxBuffered); Connector* makeConnector (ConnectorInfo connInfo); friend class Implementer; public: MessageHandlerProxy* allocMessageHandlerProxy (void (*) (double, void*, size_t)); private: MessageHandlerProxy cMessageHandler; }; } #endif #define MUSIC_PORT_HH #endif music-1.1.16/src/music/connection.hh0000644000175000017500000000422313571617503014241 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_CONNECTION_HH #include "music/music-config.hh" #if MUSIC_USE_MPI #include namespace MUSIC { /* * The Connection class carries the extra information needed for * setting up connectors and subconnectors during spatial and * temporal negotiation. Connection objects are deallocated at the * end of the Runtime constructor. */ class Connection { protected: Connector* connector_; int maxBuffered_; public: Connection (Connector* connector, int maxBuffered) : connector_ (connector), maxBuffered_ (maxBuffered) { } virtual ~Connection () { } // needed to make base polymorphic (!) Connector* connector () const { return connector_; } //void setConnector (Connector* connector) { connector_ = connector; } int maxBuffered () { return maxBuffered_; } }; class OutputConnection : public Connection { private: int elementSize_; public: OutputConnection (Connector* connector, int maxBuffered, int elementSize); int elementSize () { return elementSize_; } }; class InputConnection : public Connection { private: ClockState accLatency_; bool interpolate_; public: InputConnection (Connector* connector, int maxBuffered, ClockState accLatency, bool interpolate); ClockState accLatency () { return accLatency_; } bool interpolate () { return interpolate_; } }; } #endif #define MUSIC_CONNECTION_HH #endif music-1.1.16/src/music/scheduler.hh0000644000175000017500000001170113571617503014057 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2011, 2012 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_SCHEDULER_HH #include "music/music-config.hh" #if MUSIC_USE_MPI #include #include #include #include #include #include #include namespace MUSIC { // The Scheduler is responsible for the timing involved in // communication, sampling, interpolation and buffering. class SchedulerAgent; class SchedulerAgent; class SApplData; class SConnData; class Scheduler { public: class SConnData; class SApplData { public: Clock localTime; int leader; int nProcs; int color; }; class SConnData { public: Clock nextSend; Clock nextReceive; Clock sSend; ConnectionDescriptor descr; Connector *connector; bool isLoopConnected; void reset () { nextSend.reset (); nextReceive.reset (); sSend.reset (); isLoopConnected = false; } void postponeNextSend (Clock newTime) { sSend = nextSend; nextSend = newTime; } }; typedef ANode SNode; typedef AEdge SConnection; class SGraph : public AGraph { int tmp_color_; public: SGraph (int color, int nApps, int nEdges) : AGraph (color, nApps, nEdges), tmp_color_ ( color) { } ; void setTempColor (int tmp_color) { tmp_color_ = tmp_color; } void handleLoop (SNode &x, std::vector & path); }; private: SGraph *nodes; SGraph::iterator iter_node; SNode::edge_iterator iter_conn; std::vector agents_; std::vector::iterator cur_agent_; SConnection last_sconn_; SApplData *appl_data_; SConnData *conn_data_; int color_; int leader_; MPI::Intracomm comm_; public: Scheduler (MPI::Intracomm comm, int leader); ~Scheduler (); void initialize (TemporalNegotiatorGraph *appl_graph, std::vector& connectors); void finalize (Clock& localTime, std::vector& connectors); void reset (int self_node); #if 0 void createMultiConnectors (Clock localTime, std::vector& connectors, MultiBuffer* multiBuffer, std::vector& multiConnectors); void createMultiConnNext (int self_node, Clock& localTime, std::vector& connectors, MultiBuffer* multiBuffer, std::vector > &schedule); void createMultiConnStep (int self_node, Clock& localTime, std::vector& connectors, MultiBuffer* multiBuffer, std::vector& multiConnectors, std::vector& multiProxies, std::vector& cCache, std::vector > &schedule, bool finalize); void nextCommunication (Clock& localTime, std::vector > &schedule); #endif void setAgent (SchedulerAgent* agent); void initializeAgentState (); AEdge pushForward (); void tick (Clock& localTime); bool isLocalConnection (SConnection &edge) { return &edge.pre () == &nodes->at (color_) || &edge.post () == &nodes->at (color_); } unsigned int nApplications () { return nodes->nNodes (); } int self_node () { return color_; } SConnection & getLastSConnection () { return last_sconn_; } int getLeader () { return leader_; } MPI::Intracomm comm () { return comm_; } private: void reset (); void setApplications (TemporalNegotiatorGraph *appl_graph); void setConnections (TemporalNegotiatorGraph *appl_graph, std::vector& connectors); Clock nextApplicationReceive (SNode &node); void advanceConnection (SConnData &data); void advanceConnectionClocks (SConnData &data); }; } #endif #define MUSIC_SCHEDULER_HH #endif music-1.1.16/src/music/application_mapper.hh0000644000175000017500000000556713571617503015765 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_APPLICATION_MAPPER_HH #include #include #include #include "config.h" namespace rude { class Config; } namespace MUSIC { class ApplicationSelector { protected: bool selected_; public: ApplicationSelector (): selected_ (false) { } ; virtual ~ApplicationSelector () { } ; virtual bool selected (Configuration* config) = 0; virtual void reset () { selected_ = false; } }; class SelectorINO : public ApplicationSelector { long ino_; int my_chunk_; int next_chunk_; public: SelectorINO (long ino, int index) : ApplicationSelector (), ino_ (ino), my_chunk_ (index), next_chunk_(0) { } ; bool selected (Configuration* config); void reset () { ApplicationSelector::reset(); next_chunk_ = 0; } }; class SelectorOp : public ApplicationSelector { std::string app_label_; public: SelectorOp (std::string appLabel) : ApplicationSelector (), app_label_ (appLabel) { } ; bool selected (Configuration* config); }; class SelectorR : public ApplicationSelector { int rank_; int next_chunk_; public: SelectorR (int rank) : ApplicationSelector (), rank_ (rank), next_chunk_(0) { } ; bool selected (Configuration* config); }; class ApplicationMapper { rude::Config* cfile_; Configuration* config_; ApplicationMap* applications_; Connectivity* connectivityMap_; ApplicationSelector* app_selector_; public: ApplicationMapper (Configuration *config); ~ApplicationMapper(); Configuration* map (std::istream* configFile, int rank); #if MUSIC_USE_MPI Configuration* map (std::istream* configFile, std::string binary, std::string appLabel); #endif #if HAVE_SYS_STAT_H static long getApplicationINO (const char *path); #endif private: void map(std::istream* configFile); void mapApplications (); void mapConnectivity (bool leaders); void mapSection(int index, Configuration* config); }; } #define MUSIC_APPLICATION_MAPPER_HH #endif music-1.1.16/src/music/spatial.hh0000644000175000017500000001465113571617503013545 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_NEGOTIATOR_HH #include "music/music-config.hh" #if MUSIC_USE_MPI #include #include #include #include namespace MUSIC { class SpatialNegotiationData { IndexInterval interval_; int rank_; int displ_; public: SpatialNegotiationData () { } SpatialNegotiationData (IndexInterval i, int r, int displ) : interval_ (i), rank_ (r), displ_(displ) { } SpatialNegotiationData (int b, int e, int l, int r, int displ) : interval_ (b, e, l), rank_ (r), displ_(displ) { } const IndexInterval& interval () const { return interval_; } int begin () const { return interval_.begin (); } int end () const { return interval_.end (); } void setEnd (int e) { interval_.setEnd (e); } int local () const { return interval_.local (); } void setLocal (int l) { interval_.setLocal (l); } void setDispl(int displ) {displ_ = displ;} int rank () const { return rank_; } int displ() const {return displ_; } }; typedef std::vector NegotiationIntervals; class NegotiationIterator { public: class Implementation { public: virtual ~Implementation () { }; virtual bool end () = 0; virtual void operator++ () = 0; virtual SpatialNegotiationData* dereference () = 0; virtual Implementation* copy () = 0; }; class IntervalTraversal : public Implementation { NegotiationIntervals& buffer; unsigned int interval; public: IntervalTraversal (NegotiationIntervals& buffer_) : buffer (buffer_), interval (0) { } bool end () { return interval == buffer.size (); } void operator++ () { ++interval; } SpatialNegotiationData* dereference () { return &buffer[interval]; } virtual Implementation* copy () { return new IntervalTraversal (*this); } }; class BufferTraversal : public Implementation { std::vector& buffers; unsigned int buffer; unsigned int interval; void findInterval (); public: BufferTraversal (std::vector& buffers); bool end (); void operator++ (); SpatialNegotiationData* dereference (); virtual Implementation* copy () { return new BufferTraversal (*this); } }; private: Implementation* implementation_; SpatialNegotiationData current_; bool end_; public: NegotiationIterator (Implementation* impl) { init (impl); } NegotiationIterator (NegotiationIntervals& buffer) { init (new IntervalTraversal (buffer)); } NegotiationIterator (std::vector& buffers) { init (new BufferTraversal (buffers)); } void init (Implementation* impl); ~NegotiationIterator (); NegotiationIterator (const NegotiationIterator& i); const NegotiationIterator& operator= (const NegotiationIterator& i); bool end () { return end_; } NegotiationIterator& operator++ (); SpatialNegotiationData* operator-> (); }; class Connector; // The SpatialNegotiator negotiates with the remote application how // to redistribute data over a port pair. This is done using the // algorithm described in Djurfeldt and Ekeberg (2009) with memory // complexity O (N / P) where N is the port width and P is the // number of MPI processes. class SpatialNegotiator { protected: MPI::Intracomm comm; MPI::Intercomm intercomm; IndexMap* indices; Index::Type type; std::vector remote; int width; int maxLocalWidth_; unsigned int localRank; unsigned int nProcesses; Connector* connector_; // used only for debugging public: SpatialNegotiator (IndexMap* indices, Index::Type type, MPI::Intracomm c); virtual ~SpatialNegotiator (){}; int getWidth(){return width;} int maxLocalWidth () { return maxLocalWidth_; } NegotiationIterator wrapIntervals (IndexMap::iterator beg, IndexMap::iterator end, Index::Type type, int rank); void send (MPI::Comm& comm, int destRank, NegotiationIntervals& intervals); void receive (MPI::Comm& comm, int sourceRank, NegotiationIntervals& intervals); void allToAll (std::vector& out, std::vector& in); NegotiationIterator canonicalDistribution (int width, int nProcesses); void intersectToBuffers (std::vector& source, std::vector& dest, std::vector& buffers); void intersectToBuffers (NegotiationIterator source, NegotiationIterator dest, std::vector& buffers); private: void negotiateWidth (); void intersectToBuffers2 (NegotiationIterator source, NegotiationIterator dest, std::vector& buffers); public: virtual NegotiationIterator negotiate ( int remoteNProc, Connector* connector) = 0; virtual NegotiationIterator negotiateSimple(); }; class SpatialOutputNegotiator : public SpatialNegotiator { std::vector local; std::vector results; public: SpatialOutputNegotiator (IndexMap* indices, Index::Type type, MPI::Intracomm c, MPI::Intercomm intercomm); NegotiationIterator negotiate ( int remoteNProc, Connector* connector); private: void negotiateWidth (); }; class SpatialInputNegotiator : public SpatialNegotiator { public: SpatialInputNegotiator (IndexMap* indices, Index::Type type, MPI::Intracomm c, MPI::Intercomm intercomm); NegotiationIterator negotiate (int remoteNProc, Connector* connector); private: void negotiateWidth (); }; } #endif #define MUSIC_NEGOTIATOR_HH #endif music-1.1.16/src/music/parse.hh0000644000175000017500000000225113571617503013213 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_PARSE_HH #include #include #include namespace MUSIC { class Parser { std::istream* in; void parseString (std::ostringstream& arg, char delim); public: Parser (std::string s); ~Parser(); bool eof () { return in->eof (); } void ignoreWhitespace (); std::string nextArg (); }; char ** parseArgs (std::string cmd, std::string args, int* argc); } #define MUSIC_PARSE_HH #endif music-1.1.16/src/music/BIFO.hh0000644000175000017500000000332113571617503012617 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_BIFO_HH #include "music/music-config.hh" #if MUSIC_USE_MPI #include #include namespace MUSIC { class BIFO { private: std::vector buffer; int elementSize_; int size; // size of buffer // These two variables are used to insert data: int beginning; // beginning of last block int end; // end of last block // These two variables are used to read data: int current; int top; // upper bound of valid data void grow (int newSize); int maxBlockSize_; public: BIFO () { } void configure (int elementSize, int maxBlockSize); // Duplicate the single element in the buffer to a total of nElements // 0 is allowed as argument in which case the buffer is emptied void fill (int nElements); bool isEmpty (); // NOTE: find better return type void* insertBlock (); // size in bytes void trimBlock (int size); void* next (); }; } #endif #define MUSIC_BIFO_HH #endif music-1.1.16/src/music/interval_tree.hh0000644000175000017500000001255013571617503014747 00000000000000/* * This file is distributed together with MUSIC. * Copyright (C) 2008, 2009 Mikael Djurfeldt * * This interval tree implementation 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. * * The interval tree implementation 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 . */ #ifndef MUSIC_INTERVAL_TREE_HH #include #include #include namespace MUSIC { template class IntervalTree { static const int ROOT = 0; // class NodeType needs to be public on BG machines public: class NodeType { IntervalType ival_; PointType maxEnd_; DataType data_; public: NodeType () { } NodeType (const IntervalType& i, const DataType& d) : ival_ (i), maxEnd_ (minVal ()), data_ (d) { } NodeType (const IntervalType& i, const PointType m, const DataType& d) : ival_ (i), maxEnd_ (m), data_ (d) { } NodeType& operator= (const NodeType& node) { ival_ = node.ival_; maxEnd_ = node.maxEnd_; data_ = node.data_; return *this; } static PointType minVal () { return std::numeric_limits::min (); } bool operator< (const NodeType& other) const { return begin () < other.begin (); } IntervalType& interval () { return ival_; } DataType& data () { return data_; } PointType begin () const { return ival_.begin (); } PointType end () const { return ival_.end (); } PointType maxEnd () const { return maxEnd_; } }; private: std::vector nodes; int leftChild (int i) const { return 2 * i + 1; } int rightChild (int i) const { return 2 * i + 2; } int computeSize () const; int maxIndex (int l, int r, int i) const; PointType build (std::vector& dest, int l, int r, int i); public: class Action { public: virtual void operator() (DataType& data) = 0; }; private: void search (unsigned int i, PointType point, Action* a); public: void add (const IntervalType& i, const DataType& data); void build (); void search (PointType point, Action* a); int size () const { return nodes.size (); } }; template void IntervalTree::add (const IntervalType& i, const DataType& data) { nodes.push_back (NodeType (i, data)); } template int IntervalTree::computeSize () const { return maxIndex (0, nodes.size (), ROOT) + 1; } template int IntervalTree::maxIndex (int l, int r, int i) const { if (l >= r) return -1; int m = (l + r) / 2; int max = i; max = std::max (max, maxIndex (l, m, leftChild (i))); return std::max (max, maxIndex (m + 1, r, rightChild (i))); } template void IntervalTree::build () { sort (nodes.begin (), nodes.end ()); std::vector newNodes (computeSize ()); build (newNodes, 0, nodes.size (), ROOT); nodes = newNodes; } template PointType IntervalTree::build (std::vector& dest, int l, int r, int i) { if (l < r) // sequence not empty { int m = (l + r) / 2; PointType max = nodes[m].end (); PointType end = build (dest, l, m, leftChild (i)); max = end < max ? max : end; end = build (dest, m + 1, r, rightChild (i)); max = end < max ? max : end; dest[i] = NodeType (nodes[m].interval (), max, nodes[m].data ()); return max; } else return NodeType::minVal (); } template void IntervalTree::search (PointType p, Action* a) { search (ROOT, p, a); } template void IntervalTree::search (unsigned int i, PointType p, Action* a) { // Newly introduced extra stop condition enabling less memory usage if (i >= nodes.size ()) return; // this condition both checks if the point is to the right of all // nodes in this subtree (and previously stopped recursion at // noNode values) if (p >= nodes[i].maxEnd ()) return; search (leftChild (i), p, a); if (p < nodes[i].begin ()) // point is to the left of this interval and of the right subtree return; if (p < nodes[i].end ()) // perform action on this interval (*a) (nodes[i].data ()); search (rightChild (i), p, a); } } #define MUSIC_INTERVAL_TREE_HH #endif music-1.1.16/src/music/sampler.hh0000644000175000017500000000367313571617503013555 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ // NOTE: rename to Interpolator? #ifndef MUSIC_SAMPLER_HH #include "music/music-config.hh" #if MUSIC_USE_MPI #include namespace MUSIC { class Sampler { DataMap* dataMap_; DataMap* interpolationDataMap_; bool hasSampled; ContDataT* prevSample_; ContDataT* sample_; ContDataT* interpolationData_; int elementSize; int size; public: Sampler (); ~Sampler (); void configure (DataMap* dataMap); void initialize (); DataMap* dataMap () { return dataMap_; } // this class manages one single copy of the interpolation DataMap DataMap* interpolationDataMap (); void newSample (); void sampleOnce (); void sample (); ContDataT* insert (); void interpolate (double interpolationCoefficient); void interpolateToApplication (double interpolationCoefficient); private: void swapBuffers (ContDataT*& b1, ContDataT*& b2); void interpolateTo (DataMap* dataMap, double interpolationCoefficient); void interpolate (int from, int n, double interpolationCoefficient, double* dest); void interpolate (int from, int n, float interpolationCoefficient, float* dest); }; } #endif #define MUSIC_SAMPLER_HH #endif music-1.1.16/src/music/data_map.hh0000644000175000017500000000275713571617503013662 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_DATA_MAP_HH #include "music/music-config.hh" #if MUSIC_USE_MPI #include #include "music/index_map.hh" namespace MUSIC { typedef char ContDataT; /* * The current interface should maybe be changed so that data maps * are read as a set of pairs of intervals and addresses similar to * the EventRoutingData data structure. This allows for easier * extension to more generic types of data maps. */ class DataMap { protected: void* base_; public: DataMap () { }; virtual ~DataMap () { }; DataMap (void* base) : base_ (base) { }; virtual DataMap* copy () = 0; void* base () const { return base_; } virtual MPI::Datatype type () = 0; virtual IndexMap* indexMap () = 0; }; } #endif #define MUSIC_DATA_MAP_HH #endif music-1.1.16/src/music/array_data.hh0000644000175000017500000000261313571617503014212 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_ARRAY_DATA_HH #include "music/music-config.hh" #if MUSIC_USE_MPI #include "music/data_map.hh" namespace MUSIC { /* * This data map is part of the MUSIC API and documented * in section 4.3.9 of the MUSIC manual. */ class ArrayData : public DataMap { MPI::Datatype type_; IndexMap* indexMap_; public: ArrayData (void* buffer, MPI::Datatype type, IndexMap* map); ArrayData (void* buffer, MPI::Datatype type, int baseIndex, int size); virtual ~ArrayData (); virtual DataMap* copy (); virtual MPI::Datatype type () { return type_; } virtual IndexMap* indexMap () { return indexMap_; } }; } #endif #define MUSIC_ARRAY_DATA_HH #endif music-1.1.16/src/music/scheduler_agent.hh0000644000175000017500000001063213571617503015237 00000000000000#ifndef MUSIC_SCHEDULER_AGENT_HH #include "music/music-config.hh" #include "music/scheduler.hh" #include "music/multibuffer.hh" #if MUSIC_USE_MPI namespace MUSIC { class Scheduler; typedef std::pair SConnectionP; typedef std::vector< SConnectionP > SConnectionPV; class SchedulerAgent { protected: Scheduler *scheduler_; SchedulerAgent (Scheduler *scheduler); class CommObject { public: CommObject () { time.set(ClockState(-1.0)); } ; CommObject (Clock time_) : time (time_) { } ; virtual ~CommObject () { } Clock time; void reset () { time.set(ClockState(-1.0)); } bool empty () { return time.integerTime() < 0; } }; virtual bool fillSchedule () = 0; public: virtual ~SchedulerAgent () { } ; virtual void initialize (std::vector& connectors)=0; virtual bool tick (Clock& localTime)=0; #if 0 virtual void preFinalize (std::set &cnn_ports) { } ; #endif virtual void finalize (std::set &cnn_ports) = 0; }; class MulticommAgent : public virtual SchedulerAgent { static const int N_PLANNING_CYCLES = 100; std::map commTimes; int rNodes; Clock time_; MultiBuffer* multiBuffer_; std::vector multiConnectors; class Filter1 { MulticommAgent &multCommObj_; public: Filter1 (MulticommAgent &multCommObj); bool operator() (SConnectionP &conn); }; class Filter2 { MulticommAgent &multCommObj_; public: Filter2 (MulticommAgent &multCommObj); bool operator() (SConnectionP &conn); }; class MultiCommObject : public CommObject { private: unsigned int multiId_; unsigned int proxyId_; public: MultiCommObject (Clock time_, unsigned int multiId, unsigned int proxyId) : CommObject (time_), multiId_ (multiId), proxyId_ (proxyId) { } ; unsigned int multiId () const { return multiId_; } unsigned int proxyId () const { return proxyId_; } }; std::vector schedule; public: MulticommAgent (Scheduler *scheduler); ~MulticommAgent (); void initialize (std::vector& connectors); #if 0 void createMultiConnectors (Clock& localTime, MPI::Intracomm comm, int leader, std::vector& connectors); bool create (Clock& localTime); #endif bool tick (Clock& localTime); #if 0 void preFinalize (std::set &cnn_ports); #endif void finalize (std::set &cnn_ports); private: std::vector* multiProxies; std::vector connectorsFromMultiId (unsigned int multiId); bool fillSchedule (); void NextMultiConnection (SConnectionPV &candidates); void scheduleMulticonn (Clock &time, SConnectionPV::iterator first, SConnectionPV::iterator last); friend class Filter1; friend class Filter2; Filter1 *filter1; Filter2 *filter2; }; class UnicommAgent : public virtual SchedulerAgent { class UniCommObject : public CommObject { public: Connector *connector; UniCommObject () : CommObject () { } ; UniCommObject (Clock time_, Connector *connector_) : CommObject (time_), connector (connector_) { } ; }; UniCommObject schedule; bool fillSchedule (); public: UnicommAgent (Scheduler *scheduler); ~UnicommAgent () { } ; void initialize (std::vector& connectors) { } ; bool tick (Clock& localTime); void finalize (std::set &cnn_ports); }; class DummyAgent : public SchedulerAgent { protected: bool fillSchedule () { return true; } public: DummyAgent (Scheduler* scheduler) : SchedulerAgent (scheduler) { } void initialize (std::vector& connectors) { } bool tick (Clock& localTime) { return true; } void finalize (std::set &cnn_ports) { } }; } #endif #define MUSIC_SCHEDULER_AGENT_HH #endif music-1.1.16/src/music/interval_table.hh0000644000175000017500000002501213571617503015074 00000000000000/* * This file is distributed together with MUSIC. * Copyright (C) 2008, 2009 Mikael Djurfeldt * * This interval table implementation 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. * * The interval table implementation 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 . */ #ifndef MUSIC_INTERVAL_TABLE_HH /* * The interval table implementation can be adjusted by defining the * preprocessor macro MUSIC_ITABLE_FLAVOR to one of the following: */ #define MUSIC_VANILLA 0 // intervals stored in a linked list in one // contiguous memory block #define MUSIC_TRIMMED 1 // linked list block trimmed during build #define MUSIC_COMPACT 2 // linked list block freed during build and // replaced by a single array of intervals #define MUSIC_SCATTERED 3 // list block freed during build and // replaced by many small arrays of // intervals---one per key in the table #ifndef MUSIC_ITABLE_FLAVOR #define MUSIC_ITABLE_FLAVOR MUSIC_VANILLA #endif //#define MUSIC_ITABLE_COMPRESSED #include #include #include #include //#include extern "C" { #include } #include "ordered_ilist.hh" namespace MUSIC { template class IntervalTable { private: typedef unsigned short DataIndex; static const DataIndex MAXDATA = 65535; typedef OrderedIList IList; class PreEntry { IList list_; IList hint_; public: PreEntry () : list_ (IList::NIL), hint_ (list_) { } IList list () { return list_; } void insert (DataIndex i) { hint_ = list_.insert (i, hint_); } }; // was hash_map typedef std::map PreEntryMap; PreEntryMap* preEntryMap_; class Entry { #ifdef MUSIC_ITABLE_COMPRESSED PointType key_; #endif #if MUSIC_ITABLE_FLAVOR == MUSIC_VANILLA || MUSIC_ITABLE_FLAVOR == MUSIC_TRIMMED IList ls_; public: #ifdef MUSIC_ITABLE_COMPRESSED Entry (PointType key) : key_ (key), ls_ (IList::NIL) { } Entry (PointType key, IList ls) : key_ (key), ls_ (ls) { } #else Entry () : ls_ (IList::NIL) { } Entry (IList ls) : ls_ (ls) { } #endif IList list () { return ls_; } #else DataIndex n_; IList::Interval* ivals_; public: #ifdef MUSIC_ITABLE_COMPRESSED Entry (PointType key) : key_ (key), n_ (0), ivals_ (NULL) { } Entry (PointType key, IList::Interval* ivals, int n) : key_ (key), n_ (n), ivals_ (ivals) { } #else Entry () : n_ (0), ivals_ (NULL) { } Entry (IList::Interval* ivals, int n) : n_ (n), ivals_ (ivals) { } #endif IList::Interval* intervals () const { return ivals_; } int nIntervals () const { return n_; } #endif #ifdef MUSIC_ITABLE_COMPRESSED PointType key () { return key_; } #endif }; std::vector entryTable_; std::vector data_; #if MUSIC_ITABLE_FLAVOR == MUSIC_COMPACT IList::Interval* iArray; #endif class SortCriterion { // We use this ugly hack in order to be able to use the stl::map // for looking up Data indices. The more proper approach is to // include a hash map implementation in MUSIC. We might use one // of Googles sparse_map implementations. struct Mem0 { int f0; }; struct Mem1 { void* f0; }; struct Mem2 { int f0; void* f1; }; public: bool operator() (const DataType& x, const DataType& y) const { const DataType* px = &x; const DataType* py = &y; // the compiler optimization will resolve this at compile time if (sizeof (DataType) == sizeof (Mem0)) { const Mem0 u = *reinterpret_cast (px); const Mem0 v = *reinterpret_cast (py); return u.f0 < v.f0; } else if (sizeof (DataType) == sizeof (Mem1)) { const Mem1 u = *reinterpret_cast (px); const Mem1 v = *reinterpret_cast (py); return u.f0 < v.f0; } else if (sizeof (DataType) == sizeof (Mem2)) { const Mem2 u = *reinterpret_cast (px); const Mem2 v = *reinterpret_cast (py); return u.f1 < v.f1 || (u.f1 == v.f1 && u.f0 < v.f0); } else { // report error assert (sizeof (DataType) == sizeof (Mem0)); return false; // satisfy compiler } } }; typedef std::map DataMap; DataMap* dataMap_; PointType lowerBound_; PointType rangeSize_; unsigned int tableSize_; void recordProperties (const IntervalType& ival); unsigned int nIntervals_; public: class Action { public: virtual void operator() (DataType& data) = 0; }; IntervalTable () : lowerBound_ (std::numeric_limits::max ()), rangeSize_ (std::numeric_limits::min ()), tableSize_ (0), nIntervals_ (0) { preEntryMap_ = new PreEntryMap (); dataMap_ = new DataMap (); } ~IntervalTable () { #if MUSIC_ITABLE_FLAVOR == MUSIC_COMPACT delete[] iArray; #elif MUSIC_ITABLE_FLAVOR == MUSIC_SCATTERED for (typename std::vector::iterator i = entryTable_.begin (); i != entryTable_.end (); ++i) delete[] i->intervals(); #endif } void add (const IntervalType& i, const DataType& data); void build (); void search (PointType point, Action* a); int size () const { return nIntervals_; } int tableSize () const { return entryTable_.size (); } }; template void IntervalTable::recordProperties (const IntervalType& ival) { lowerBound_ = std::min (lowerBound_, ival.begin ()); rangeSize_ = std::max (rangeSize_, ival.end ()); nIntervals_ += 1; } template void IntervalTable::add (const IntervalType& ival, const DataType& data) { // assign a DataIndex to data typename DataMap::iterator pos = dataMap_->find (data); DataIndex dataIndex; if (pos == dataMap_->end ()) { dataIndex = data_.size (); assert (dataIndex < MAXDATA); data_.push_back (data); (*dataMap_)[data] = dataIndex; } else dataIndex = pos->second; recordProperties (ival); for (PointType k = ival.begin (); k < ival.end (); ++k) (*preEntryMap_)[k].insert (dataIndex); } template void IntervalTable::build () { delete dataMap_; // trim data_; std::vector (data_).swap (data_); tableSize_ = preEntryMap_->size (); if (rangeSize_ > 0) rangeSize_ = rangeSize_ - lowerBound_; else rangeSize_ = 0; // no intervals #ifdef MUSIC_ITABLE_COMPRESSED if (rangeSize_ == 0) rangeSize_ = 1; entryTable_.reserve (tableSize_ + 2); #else entryTable_.resize (rangeSize_); #endif #if MUSIC_ITABLE_FLAVOR == MUSIC_COMPACT || MUSIC_ITABLE_FLAVOR == MUSIC_SCATTERED IList::Interval* iPtr; #if MUSIC_ITABLE_FLAVOR == MUSIC_COMPACT iArray = new IList::Interval[IList::nNodes ()]; iPtr = iArray; #endif #endif #ifdef MUSIC_ITABLE_COMPRESSED // backward sentinel entryTable_.push_back (Entry (std::numeric_limits::min ())); #endif for (typename PreEntryMap::iterator p = preEntryMap_->begin (); p != preEntryMap_->end (); ++p) { PointType key = p->first; IList list = p->second.list (); #if MUSIC_ITABLE_FLAVOR == MUSIC_VANILLA || MUSIC_ITABLE_FLAVOR == MUSIC_TRIMMED #ifdef MUSIC_ITABLE_COMPRESSED entryTable_.push_back (Entry (key, list)); #else entryTable_[key - lowerBound_] = Entry (list); #endif #else // MUSIC_COMPACT or MUSIC_SCATTERED int n = list.size (); #if MUSIC_ITABLE_FLAVOR == MUSIC_SCATTERED iPtr = new IList::Interval[n]; #endif #ifdef MUSIC_ITABLE_COMPRESSED entryTable_.push_back (Entry (key, iPtr, n)); #else entryTable_[key - lowerBound_] = Entry (iPtr, n); #endif for (IList::iterator j = list.begin (); j != list.end (); ++j) *iPtr++ = *j; #endif } #ifdef MUSIC_ITABLE_COMPRESSED // forward sentinel entryTable_.push_back (Entry (std::numeric_limits::max ())); #endif delete preEntryMap_; #if MUSIC_ITABLE_FLAVOR == MUSIC_TRIMMED IList::trimNodes (); #elif MUSIC_ITABLE_FLAVOR == MUSIC_COMPACT || MUSIC_ITABLE_FLAVOR == MUSIC_SCATTERED IList::reset (); #endif #ifdef MUSIC_DEBUG std::cout << "data: " << data_.size () << std::endl << "nodes: " << IList::nNodes () << std::endl << "freelist: " << IList::freeList ().size () << std::endl; #endif } template void IntervalTable::search (PointType p, Action* a) { #ifndef MUSIC_ITABLE_COMPRESSED PointType i = p - lowerBound_; if (i < 0 || i >= rangeSize_) return; #else // obtain approximate position PointType i = ((p - lowerBound_) * tableSize_) / rangeSize_ + 1; // sentinels are at 0 and tableSize_ + 1 if (i < 1 || i > PointType (tableSize_)) return; if (p != entryTable_[i].key ()) { // search forward if (p > entryTable_[i].key ()) { do ++i; // end of table guarded by sentinel while (p > entryTable_[i].key ()); if (p != entryTable_[i].key ()) return; } else // search backward { do --i; // beginning of table guarded by sentinel while (p < entryTable_[i].key ()); if (p != entryTable_[i].key ()) return; } } #endif #if MUSIC_ITABLE_FLAVOR == MUSIC_VANILLA || MUSIC_ITABLE_FLAVOR == MUSIC_TRIMMED IList ls = entryTable_[i].list (); for (IList::iterator j = ls.begin (); j != ls.end (); ++j) for (int k = j->begin (); k <= j->end (); ++k) (*a) (data_[k]); #else // MUSIC_COMPACT or MUSIC_SCATTERED IList::Interval* ivals = entryTable_[i].intervals (); for (int j = 0; j < entryTable_[i].nIntervals (); ++j) for (int k = ivals[j].begin (); k <= ivals[j].end (); ++k) (*a) (data_[k]); #endif } } #define MUSIC_INTERVAL_TABLE_HH #endif music-1.1.16/src/music/index_map_factory.hh0000644000175000017500000000351313571617503015576 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_INDEX_MAP_FACTORY_HH #include #include "music/index_map.hh" namespace MUSIC { class IndexMapFactory : public IndexMap { std::vector indices_; public: class iterator : public IndexMap::IteratorImplementation { const IndexInterval* intervalPtr; public: iterator (const IndexInterval* ptr) : intervalPtr (ptr) { } virtual const IndexInterval operator* () { return *intervalPtr; } virtual const IndexInterval* dereference () { return intervalPtr; } virtual bool isEqual (IteratorImplementation* i) const { return intervalPtr == static_cast (i)->intervalPtr; } virtual void operator++ () { ++intervalPtr; } virtual IteratorImplementation* copy () { return new iterator (intervalPtr); } }; IndexMapFactory (); IndexMapFactory (std::vector& indices); void add (int begin, int end, int local); void build (); virtual IndexMap::iterator begin (); virtual const IndexMap::iterator end () const; virtual IndexMap* copy (); }; } #define MUSIC_INDEX_MAP_FACTORY_HH #endif music-1.1.16/src/music/setup.hh0000644000175000017500000001044713571617503013247 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_SETUP_HH #include "music/music-config.hh" #if MUSIC_USE_MPI #include #include #include #include #include #include #include #include #include #include using std::string; #define MUSIC_DEFAULT_TIMEBASE 1e-9 namespace MUSIC { class Runtime; /* * This is the Setup object in the MUSIC API * * It is documented in section 4.3 of the MUSIC manual */ class Setup { static const char* const configEnvVarName; static const char* const opConfigFileName; static const char* const opAppLabel; public: Setup (int& argc, char**& argv); Setup (int& argc, char**& argv, int required, int* provided); ~Setup (); MPI::Intracomm communicator (); bool config (string var, string* result); bool config (string var, int* result); bool config (string var, double* result); bool config (string var, bool* result); ContInputPort* publishContInput (string identifier); ContOutputPort* publishContOutput (string identifier); EventInputPort* publishEventInput (string identifier); EventOutputPort* publishEventOutput (string identifier); MessageInputPort* publishMessageInput (string identifier); MessageOutputPort* publishMessageOutput (string identifier); private: MPI::Intracomm comm; Configuration* config_; std::vector ports_; std::vector* connections_; TemporalNegotiator* temporalNegotiator_; double timebase_; static bool isInstantiated_; int& argc_; char**& argv_; bool launchedByMusic_; bool postponeSetup_; // Since we don't want to expose this internal interface to the // user we put the member functions in the private part and give // these classes access through a friend declaration. Classes are // still expected not to access the internal data members // directly. A cleaner solution would be to split this class into // one user API part and one internal interface part. friend class Runtime; friend class Port; friend class OutputPort; friend class InputPort; friend class TemporalNegotiator; friend class ApplicationNode; double timebase () { return timebase_; } bool launchedByMusic (); void init (int& argc, char**& argv); void maybeProcessMusicArgv (int& argc, char**& argv); void maybePostponedSetup (); void fullInit (); ConnectivityInfo* portConnectivity (const std::string localName); ApplicationMap* applicationMap (); int applicationColor(); std::string applicationName(); int leader (); int nProcs (); ConnectivityInfo::PortDirection portDirection (const std::string localName); int portWidth (const std::string localName); PortConnectorInfo portConnections (const std::string localName); std::vector* ports () { return &ports_; } void addPort (Port* p); std::vector* connections () { return connections_; } void addConnection (Connection* c); TemporalNegotiator* temporalNegotiator () { return temporalNegotiator_; } void errorChecks (); bool launchedWithExec (std::string &configStr); bool launchedMPMD (int argc, char** argv, std::string& config); void loadConfigFile (std::string filename, std::string &result); bool getOption (int argc, char** argv, std::string option, std::string& result); }; } #endif #define MUSIC_SETUP_HH #endif music-1.1.16/src/music/distributor.hh0000644000175000017500000000471313571617503014460 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_DISTRIBUTOR_HH #include "music/music-config.hh" #if MUSIC_USE_MPI // data_map.hh needs to be included first since it includes mpi.h. // mpi.h must be included before other header files on BG/L #include #include #include #include #include namespace MUSIC { /** * The Distributor distributes data from state variables represented * by a DataMap ro a set of output buffers in BufferMap. */ class Distributor { public: //for BG compiler class Interval : public MUSIC::Interval { public: Interval (IndexInterval& interval); bool operator< (const Interval& ref) const { return begin () < ref.begin (); } // length field is stored overlapping the end field so that the // interval information can be "recompiled" for space and time // efficiency int length () const { return end (); } void setLength (int length) { setEnd (length); } }; private: class IntervalCalculator : public IntervalTree::Action { Interval& interval_; int elementSize_; public: IntervalCalculator (Interval& interval, int elementSize): interval_ (interval), elementSize_ (elementSize) { }; void operator() (int& offset); }; typedef std::vector Intervals; typedef std::map BufferMap; DataMap* dataMap; BufferMap buffers; IntervalTree* buildTree (); public: // caller manages deallocation but guarantees existence void configure (DataMap* dmap); void initialize (); void addRoutingInterval (IndexInterval i, FIBO* b); void distribute (); }; } #endif #define MUSIC_DISTRIBUTOR_HH #endif music-1.1.16/src/music/collector.hh0000644000175000017500000000521413571617503014071 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_COLLECTOR_HH #include "music/music-config.hh" #if MUSIC_USE_MPI // data_map.hh needs to be included first since it includes mpi.h. // mpi.h must be included before other header files on BG/L #include #include #include #include #include namespace MUSIC { /** * The Collector is responsible for collecting data from a set of * input buffers in BufferMap and store them in the state variables * represented by a DataMap. */ class Collector { public: //for BG compiler class Interval : public MUSIC::Interval { public: Interval (IndexInterval& interval); bool operator< (const Interval& ref) const { return begin () < ref.begin (); } // length field is stored overlapping the end field so that the // interval information can be "recompiled" for space and time // efficiency int length () const { return end (); } void setLength (int length) { setEnd (length); } }; private: class IntervalCalculator : public IntervalTree::Action { Interval& interval_; int elementSize_; public: IntervalCalculator (Interval& interval, int elementSize) : interval_ (interval), elementSize_ (elementSize) { }; void operator() (int& offset); }; typedef std::vector Intervals; typedef std::map BufferMap; DataMap* dataMap; int maxsize_; BufferMap buffers; IntervalTree* buildTree (); public: // caller manages deallocation but guarantees existence /* remedius * second argument int allowedBuffered was changed to int maxsize */ void configure (DataMap* dmap, int maxsize); void initialize (); void addRoutingInterval (IndexInterval i, BIFO* b); void collect (); void collect (ContDataT* base); }; } #endif #define MUSIC_COLLECTOR_HH #endif music-1.1.16/src/music/predict_rank-c.h0000644000175000017500000000151213571617503014615 00000000000000#ifndef PREDICT_RANK_C_H /* * This file is part of MUSIC. * Copyright (C) 2011 INCF * * MUSIC 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. * * MUSIC 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 . */ int MUSIC_predictRank (int argc, char **argv); #define PREDICT_RANK_C_H #endif /* PREDICT_RANK_C_H */ music-1.1.16/src/music/temporal.hh0000644000175000017500000001056113571617503013727 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_TEMPORAL_HH #include "music/music-config.hh" #if MUSIC_USE_MPI #define MAX_BUFFERED_NO_VALUE -1 #define DEFAULT_PACKET_SIZE 64000 #define EVENT_FREQUENCY_ESTIMATE 10.0 #define DEFAULT_MESSAGE_MAX_BUFFERED 10 #include #include #include #include #include "music/error.hh" namespace MUSIC { class Setup; class ConnectionDescriptor { public: int remoteNode; int receiverPort; int maxBuffered; int defaultMaxBuffered; // not used for input connections bool interpolate; bool multiComm; ClockState accLatency; ClockState remoteTickInterval; }; class TemporalNegotiationData { public: int color; int leader; int nProcs; double timebase; ClockState tickInterval; int nOutConnections; int nInConnections; ConnectionDescriptor connection[1]; }; class TemporalNegotiatorGraph : public AGraph { double timebase_; int nConnections_; public: TemporalNegotiatorGraph (double timebase, int nApps, int color) : AGraph (color, nApps), timebase_ ( timebase) { } void setNConnections (int nConns); int getNConnections (); protected: AEdge edge (ANode &x, int c) { ConnectionDescriptor& descr = x.data ().connection[c]; return AEdge (x, nodes_[descr.remoteNode], descr); } void handleLoop (ANode &x, std::vector > & path); }; // The TemporalNegotiator negotiates communication timing parameters // with all other applications. class TemporalNegotiator { Setup* setup_; MPI::Group groupWorld; MPI::Group applicationLeaders; MPI::Intracomm negotiationComm; int nApplications_; // initialized by createNegotiationCommunicator int nLocalConnections; int nAllConnections; std::vector outputConnections; std::vector inputConnections; TemporalNegotiatorGraph *nodes; TemporalNegotiationData* negotiationBuffer; TemporalNegotiationData* negotiationData; public: TemporalNegotiator (Setup* setup); ~TemporalNegotiator (); void negotiate (Clock& localTime, std::vector* connections); TemporalNegotiatorGraph* applicationGraph (); private: void separateConnections (std::vector* connections); void createNegotiationCommunicator (); void collectNegotiationData (ClockState ti); void communicateNegotiationData (); void combineParameters (); void loopAlgorithm (); void distributeParameters (); void broadcastNegotiationData (); void receiveNegotiationData (); void fillTemporalNegotiatorGraph (); int negotiationDataSize (int nConnections); int negotiationDataSize (int nBlock, int nConnections); int computeDefaultMaxBuffered (int maxLocalWidth, int eventSize, ClockState tickInterval, double timebase); TemporalNegotiationData* allocNegotiationData (int nBlocks, int nConnections); void freeNegotiationData (TemporalNegotiationData*); int findNodeColor (int leader); ConnectionDescriptor* findInputConnection (int node, int port); bool isLeader (); bool hasPeers (); }; } #endif #define MUSIC_TEMPORAL_HH #endif music-1.1.16/src/music/music-config.hh.in0000644000175000017500000000224313571617503015072 00000000000000#ifndef MUSIC_CONFIG_HH /* * This file is part of MUSIC. * Copyright (C) 2008, 2019 INCF * * MUSIC 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. * * MUSIC 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 . */ #define MUSIC_HAVE_SIZE_T @MUSIC_HAVE_SIZE_T@ #define MUSIC_HAVE_LONG_LONG @MUSIC_HAVE_LONG_LONG@ #define MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER @MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER@ #define MUSIC_USE_MPI @MUSIC_USE_MPI@ #define MUSIC_ISENDWAITALL @MUSIC_ISENDWAITALL@ #define MUSIC_ANYSOURCE @MUSIC_ANYSOURCE@ #if MUSIC_USE_MPI #include // Must be included first on BG/L #endif #define MUSIC_CONFIG_HH #endif /* MUSIC_CONFIG_HH */ music-1.1.16/src/music/message.hh0000644000175000017500000000360413571617503013530 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_MESSAGE_HH #include namespace MUSIC { class MessageHeader { public: typedef struct { double t; int size; } header_t; private: union { header_t header; char data[sizeof (header_t)]; } u; public: MessageHeader (double t, int size) { u.header.t = t; u.header.size = size; } double t () { return u.header.t; } double size () { return u.header.size; } void* data () { return u.data; } }; class MessageHandler { public: virtual void operator () (double t, void* msg, size_t size) = 0; virtual ~MessageHandler() {} }; class MessageHandlerDummy : public MessageHandler { public: virtual void operator () (double t, void* msg, size_t size) { }; }; class MessageHandlerProxy : public MessageHandler { void (*messageHandler) (double t, void* msg, size_t size); public: MessageHandlerProxy () { } MessageHandlerProxy (void (*mh) (double t, void* msg, size_t size)) : messageHandler (mh) { } void operator () (double t, void* msg, size_t size) { messageHandler (t, msg, size); } }; } #define MUSIC_MESSAGE_HH #endif music-1.1.16/src/music/cont_data.hh0000644000175000017500000000176313571617503014044 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_CONT_DATA_HH #include "music/music-config.hh" #if MUSIC_USE_MPI #include "music/data_map.hh" namespace MUSIC { class ContData : public DataMap { public: ContData (IndexMap* map); ContData (int baseIndex, int size); }; } #endif #define MUSIC_CONT_DATA_HH #endif music-1.1.16/src/music/runtime.hh0000644000175000017500000000465013571617503013571 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_RUNTIME_HH //#define MUSIC_DEBUG #include "music/music-config.hh" #if MUSIC_USE_MPI #include #include #include "music/setup.hh" #include "music/port.hh" #include "music/clock.hh" #include "music/connector.hh" #include "music/scheduler.hh" #include "music/scheduler_agent.hh" namespace MUSIC { /* * This is the Runtime object in the MUSIC API * * It is documented in section 4.4 of the MUSIC manual */ class Runtime { public: Runtime (Setup* s, double h); ~Runtime (); MPI::Intracomm communicator (); void finalize (); void tick (); double time (); private: Clock localTime; //Clock nextComm; std::string app_name; int leader_; std::vector > schedule; MPI::Intracomm comm; std::vector ports; std::vector tickingPorts; std::vector connectors; std::vector postCommunication; std::vector preCommunication; Scheduler *scheduler; std::vector sAgents; MulticommAgent* mAgent; static bool isInstantiated_; typedef std::vector Connections; bool needsMultiCommunication (); void takeTickingPorts (Setup* s); void connectToPeers (Connections* connections); void specializeConnectors (Connections* connections); void spatialNegotiation (); void takePreCommunicators (); void takePostCommunicators (); void buildTables (Setup* s); void temporalNegotiation (Setup* s, Connections* connections); void initialize (Setup* s); }; } #endif #define MUSIC_RUNTIME_HH #endif music-1.1.16/src/music/interval.hh0000644000175000017500000000252513571617503013731 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_INTERVAL_HH #include namespace MUSIC { class Interval { int begin_; int end_; public: Interval () { } Interval (int b, int e) : begin_ (b), end_ (e) { } ~Interval () { } int begin () const { return begin_; } int end () const { return end_; } void setBegin (int begin) { begin_ = begin; } void setEnd (int end) { end_ = end; } bool operator< (const Interval& data) const { return begin () < data.begin (); } }; // support printed representation std::ostream& operator<< (std::ostream& os, const Interval& ival); } #define MUSIC_INTERVAL_HH #endif music-1.1.16/src/music/clock.hh0000644000175000017500000000532013571617503013174 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_CLOCK_HH #include "music/music-config.hh" namespace MUSIC { // ClockState may be negative due to calculations in Synchronizer class ClockState { #ifdef MUSIC_HAVE_LONG_LONG long long state; #else #error 64-bit clocks without long long not yet implemented #endif public: ClockState () { } // The following operations should be defined in this header file // so that they can be inlined by the compiler. inline ClockState (const long long s) : state (s) { } ClockState (double t, double tb); inline operator long long () const { return state; } inline ClockState& operator+= (const ClockState& s) { state += s; return *this; } class Serialized; Serialized serialize (); // The serialized representation of a ClockState is guaranteed to // fit in two sequential long values class Serialized { friend Serialized ClockState::serialize (); public: signed long upper; unsigned long lower; public: ClockState deserialize (); }; }; class Clock { ClockState state_; ClockState tickInterval_; double timebase_; public: Clock () { state_ = 0; }; Clock (double tb, double h); void configure (double tb, ClockState ti); void reset (); void tick (); void ticks (int n); ClockState tickInterval () { return tickInterval_; } void setTickInterval (ClockState ti) { tickInterval_ = ti; } double timebase () { return timebase_; } double time () const; ClockState integerTime () { return state_; } void set (ClockState state) { state_ = state; } bool operator>= (const Clock& ref) const { return state_ >= ref.state_; } bool operator<= (const Clock& ref) const { return state_ <= ref.state_; } bool operator< (const Clock& ref) const { return state_ < ref.state_; } bool operator!= (const Clock& ref) const {return state_ != ref.state_;} bool operator== (const Clock& ref) const { return state_ == ref.state_; } }; } #define MUSIC_CLOCK_HH #endif music-1.1.16/src/music/configuration.hh0000644000175000017500000000427013571617503014753 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_CONFIGURATION_HH #include "music/music-config.hh" #include #include #include "music/application_map.hh" #include "music/connectivity.hh" namespace MUSIC { class Configuration { public: static const char* const configEnvVarName; typedef std::map ConfigDict; private: std::string app_name_; ApplicationMap* applications_; Connectivity* connectivityMap_; Configuration* defaultConfig_; std::map dict_; public: Configuration (); #if MUSIC_USE_MPI Configuration (std::string configStr); #endif ~Configuration (); void writeEnv (); bool lookup (std::string name); bool lookup (std::string name, int* result); bool lookup (std::string name, double* result); bool lookup(std::string name, std::string* result); bool lookup (std::string name, bool* result); void insert (std::string name, std::string value); const ConfigDict &getDict(); void setDict(const ConfigDict &dict); void resetDict(); std::string Name(); void setName( std::string name); int Color (); int Leader (); ApplicationMap* applications (); Connectivity* connectivityMap (); Configuration* defaultConfig(); private: void init (); #if MUSIC_USE_MPI void parse (std::string configStr); #endif void write (std::ostringstream& env, Configuration* mask); }; } #define MUSIC_CONFIGURATION_HH #endif music-1.1.16/src/music/event_router.hh0000644000175000017500000001711213571617503014624 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_EVENT_ROUTER_HH #include #include #include #include #include #include #include #define MUSIC_ITABLE_FLAVOR MUSIC_SCATTERED //#define MUSIC_ITABLE_COMPRESSED #include namespace MUSIC { /* remedius * Since the router can act as on the output (point-to-point communication) * as well as on the input (collective communication) sides and * pre-/post-processing approaches are different * (in one case it's insertion to the buffer , * in another case it's calling appropriate handler ), * two more successors for EventRoutingData were created: * InputRoutingData and OutputRoutingData. */ class EventRoutingData { int offset_; public: EventRoutingData () { } EventRoutingData (const IndexInterval &i) : offset_ (i.local ()) { } EventRoutingData (const EventRoutingData& e) : offset_ (e.offset_) { } ~EventRoutingData(){}; int offset () const { return offset_; } }; template class InputRoutingData : public EventRoutingData { EventHandler* eventHandler_; public: InputRoutingData (const IndexInterval &i, EventHandlerPtr* h) : EventRoutingData (i), eventHandler_ (*h) { } InputRoutingData () : eventHandler_ (NULL) { } void process (double t, int id) { (*eventHandler_) (t, id); } }; class OutputRoutingData : public EventRoutingData { FIBO* buffer_; public: OutputRoutingData (const IndexInterval &i, FIBO* b); OutputRoutingData () {} void process (double t, int id); }; class DirectRouter; //Remove this later /* remedius * We've decided to try different methods for pre-/post-processing the data: * using tree algorithm and using table. * Hence to this two EventRouter successors were created: * TableProcessingRouter and TreeProcessingRouter. * Currently TableProcessingRouter can handle only GlobalIndex processing. */ class EventRouter { public: virtual ~EventRouter() {}; virtual void buildTable () {}; /* remedius * insertEvent method was renamed to processEvent method, * since we've introduced event processing on the input side as well. */ virtual void insertRoutingData (Interval& i, OutputRoutingData& data) {} virtual void insertRoutingData (Interval& i, InputRoutingData& data) {} virtual void insertRoutingData (Interval& i, InputRoutingData& data) {} virtual void processEvent (double t, int id) {}; virtual bool needFewPoints () const { return false; } virtual DirectRouter* directRouter () { return 0; }; //Remove this later }; template class IntervalProcessingRouter : public EventRouter { class Processor : public IntervalLookup::Action { protected: double t_; int id_; public: Processor (double t, int id) : t_ (t), id_ (id) { }; void operator() (RoutingData& data) { /* remedius * for Global index ((RoutingData &)data).offset () is set to 0 during * SpatialNegotiator::wrapIntervals(); */ data.process (t_, id_ - data.offset ()); } }; IntervalLookup routingTable; public: void insertRoutingData (Interval& i, RoutingData& data); void buildTable (); void processEvent (double t, int id); }; template void IntervalProcessingRouter::insertRoutingData (Interval& i, RoutingData &data) { routingTable.add (i, data); } template void IntervalProcessingRouter::buildTable () { routingTable.build (); } template void IntervalProcessingRouter::processEvent (double t, int id) { Processor i (t, id); routingTable.search (id, &i); } class TreeProcessingOutputRouter : public IntervalProcessingRouter > { }; class TreeProcessingInputGlobalRouter : public IntervalProcessingRouter, IntervalTree > > { }; class TreeProcessingInputLocalRouter : public IntervalProcessingRouter, IntervalTree > > { }; class TableProcessingOutputRouter : public IntervalProcessingRouter > { public: bool needFewPoints () const { return true; } }; class TableProcessingInputGlobalRouter : public IntervalProcessingRouter, IntervalTable > > { public: bool needFewPoints () const { return true; } }; class TableProcessingInputLocalRouter : public IntervalProcessingRouter, IntervalTable > > { public: bool needFewPoints () const { return true; } }; class DirectRouter : public EventRouter { char* buffer_; unsigned int size_; unsigned int pos_; std::vector extra_; public: DirectRouter () : size_ (0), pos_ (0) { } DirectRouter* directRouter () { return this; }; //Remove this later unsigned int dataSize () { return pos_ + extra_.size (); } inline void processEvent (double t, int id) { if (pos_ < size_) { Event* e = static_cast (static_cast (buffer_ + pos_)); e->t = t; e->id = id; pos_ += sizeof (Event); } else processExtra (t, id); } void processExtra (double t, int id); void setOutputBuffer (void* buffer, unsigned int size); void fillOutputBuffer () { pos_ = 0; } }; class HybridTreeProcessingOutputRouter : public TreeProcessingOutputRouter { private: DirectRouter directRouter_; public: DirectRouter* directRouter () { return &directRouter_; } inline void processEvent (double t, int id) { TreeProcessingOutputRouter::processEvent (t, id); directRouter_.processEvent (t, id); } }; class HybridTableProcessingOutputRouter : public TableProcessingOutputRouter { private: DirectRouter directRouter_; public: DirectRouter* directRouter () { return &directRouter_; } inline void processEvent (double t, int id) { TableProcessingOutputRouter::processEvent (t, id); directRouter_.processEvent (t, id); } }; } #define MUSIC_EVENT_ROUTER_HH #endif music-1.1.16/src/music/application_graph.hh0000644000175000017500000002002713571617503015566 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_APPLICATION_GRAPH_HH #define MUSIC_APPLICATION_GRAPH_HH #include #include #include namespace MUSIC { template class ANode; template class AEdge { ANode *pre_; ANode *post_; EdgeData *data_; public: AEdge () : pre_ (0), post_ (0), data_ (0) { } AEdge (ANode &pre, ANode &post, EdgeData &data) : pre_ (&pre), post_ (&post), data_ (&data) { } virtual ~AEdge () { } ANode & post () { return *post_; } ANode & pre () { return *pre_; } EdgeData & data () { return *data_; } }; template class ANode { typedef AEdge* AEdgePtr; AEdgePtr *out_edges_; AEdgePtr *in_edges_; int n_out_edges_; int n_in_edges_; int c_out_; int c_in_; NodeData *data_; public: bool in_path; bool visited; ANode () : data_ (0) { init (0, 0); } ANode (int nOut, int nIn, NodeData &data) : data_ (&data) { init (nOut, nIn); } ANode (const ANode& other) { init (other.n_out_edges_, other.n_in_edges_); data_ = other.data_; in_path = other.in_path; visited = other.visited; c_out_ = other.c_out_; c_in_ = other.c_in_; for (int i = 0; i < c_out_; ++i) out_edges_[i] = other.out_edges_[i]; for (int i = 0; i < c_in_; ++i) in_edges_[i] = other.in_edges_[i]; } virtual ~ANode () { delete[] out_edges_; delete[] in_edges_; } ANode& operator= (const ANode& that) { if (this != &that) { delete[] out_edges_; delete[] in_edges_; init (that.n_out_edges_, that.n_in_edges_); data_ = that.data_; in_path = that.in_path; visited = that.visited; c_out_ = that.c_out_; c_in_ = that.c_in_; for (int i = 0; i < c_out_; ++i) out_edges_[i] = that.out_edges_[i]; for (int i = 0; i < c_in_; ++i) in_edges_[i] = that.in_edges_[i]; } return *this; } void addEdge (AEdge &edge, bool input = false) { if (input) { assert (c_in_ < n_in_edges_); in_edges_[c_in_++] = &edge; } else { assert (c_out_ < n_out_edges_); out_edges_[c_out_++] = &edge; } } void reset () { in_path = false; visited = false; } int nOutEdges () { return n_out_edges_; } int nInEdges () { return n_in_edges_; } AEdge & outEdge (int c) { assert (c < c_out_); return *out_edges_[c]; } typedef AEdgePtr* edge_iterator; edge_iterator begin_o () { return &out_edges_[0]; } edge_iterator end_o () { return &out_edges_[c_out_]; } edge_iterator begin_i () { return &in_edges_[0]; } edge_iterator end_i () { return &in_edges_[c_in_]; } NodeData & data () { assert (data_ != 0); return *data_; } private: void init (int nOut, int nIn) { n_out_edges_ = nOut; n_in_edges_ = nIn; out_edges_ = new AEdgePtr[nOut + 1]; in_edges_ = new AEdgePtr[nIn + 1]; c_in_ = 0; c_out_ = 0; reset (); } }; template class AGraph { protected: ANode *nodes_; int c_apps_; AEdge *edges_; int c_edges_; int color_; int n_apps_; int n_edges_; public: AGraph (int color, int nApps, int nEdges) : c_apps_ (0), c_edges_ (0), color_ (color), n_apps_ (nApps), n_edges_ ( nEdges) { nodes_ = new ANode [nApps + 1]; edges_ = new AEdge [nEdges]; } //AGraph can be a simple array of nodes AGraph (int color, int nApps) : c_apps_ (0), c_edges_ (0), color_ (color), n_apps_ (nApps), n_edges_ ( 0) { nodes_ = new ANode [nApps + 1]; edges_ = NULL; } virtual ~AGraph () { if (edges_ != NULL) delete[] edges_; delete[] nodes_; } int nNodes () { return c_apps_; } int nEdges () { return c_edges_; } ANode & addNode (ANode node, int color) { assert (color < n_apps_); nodes_[color] = node; assert (c_apps_ < n_apps_); c_apps_++; return nodes_[color]; } AEdge & addEdge (AEdge edge) { assert (c_edges_ < n_edges_); edges_[c_edges_] = edge; edge.pre ().addEdge (edges_[c_edges_]); edge.post ().addEdge (edges_[c_edges_], true); c_edges_++; return edges_[c_edges_ - 1]; } typedef ANode *iterator; iterator begin () { return &nodes_[0]; } iterator end () { return &nodes_[c_apps_]; } ANode & at (int color) { assert (color < c_apps_); return nodes_[color]; } ANode & local_node () { assert (color_ < c_apps_); return nodes_[color_]; } int local_node_color () { return color_; } virtual void reset () { for (int i = 0; i < c_apps_; ++i) nodes_[i].reset (); } void depthFirst (ANode &x, std::vector > & path) { if (x.in_path) { handleLoop (x, path); //x.handle_in_path(path); return; } // Mark as processed (remove from main loop forest) x.visited = true; x.in_path = true; for (int c = 0; c < x.nOutEdges (); ++c) { path.push_back (edge (x, c)); depthFirst (edge (x, c).post (), path); path.pop_back (); } x.in_path = false; } protected: virtual AEdge edge (ANode &x, int c) { return x.outEdge (c); } virtual void handleLoop (ANode &x, std::vector > & path) { } }; } #endif /* MUSIC_APPLICATION_GRAPH_HH */ music-1.1.16/src/music/version.hh.in0000644000175000017500000000160613571617503014176 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #ifndef MUSIC_VERSION_HH #include #include #define MUSIC_VERSION "@VERSION@" namespace MUSIC { const char* version (); } #define MUSIC_VERSION_HH #endif music-1.1.16/src/interval.cc0000644000175000017500000000167413571617503012603 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2012 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/interval.hh" namespace MUSIC { // support printed representation std::ostream& operator<< (std::ostream& os, const Interval& ival) { os << "[" << ival.begin () << ", " << ival.end () << ")"; return os; } } music-1.1.16/src/application_map.cc0000644000175000017500000000673513571617503014122 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/application_map.hh" #if MUSIC_USE_MPI #include #endif #include "music/ioutils.hh" #include #include namespace MUSIC { ApplicationMap::ApplicationMap () { } int ApplicationMap::nProcesses () { int n = 0; for (ApplicationMap::iterator i = begin (); i != end (); ++i) n += i->nProc (); return n; } ApplicationInfo* ApplicationMap::lookup (std::string appName) { for (iterator i = begin (); i != end (); ++i) { if (i->name () == appName) return &*i; } return 0; } void ApplicationMap::add (std::string name, int n, int c) { push_back (ApplicationInfo (name, n, c)); } void ApplicationMap::write (std::ostringstream& out) { out << size (); for (iterator i = begin (); i != end (); ++i) { out << ':'; IOUtils::write (out, i->name ()); out << ':' << i->nProc (); } } void ApplicationMap::read (std::istringstream& in) { int nApp; in >> nApp; #ifdef MUSIC_DEBUG /* for debugging */ std::ofstream outfile ("leaders"); #endif for (int i = 0; i < nApp; ++i) { in.ignore (); std::string name = IOUtils::read (in); in.ignore (); int np; in >> np; #ifdef MUSIC_DEBUG /* for debugging */ outfile<< name << "\t" << aleader << std::endl; #endif add (name, np, i); } #ifdef MUSIC_DEBUG /* for debugging */ outfile.close(); #endif } ApplicationInfo* ApplicationMap::lookup (int color) { for (iterator i = begin (); i != end (); ++i) { if (i->color () == color) return &*i; } return 0; } #if MUSIC_USE_MPI std::map ApplicationMap::assignLeaders (std::string my_app_label) { std::map leaders; int size = MPI::COMM_WORLD.Get_size (); int my_rank = MPI::COMM_WORLD.Get_rank (); int *colors = new int[size]; colors[my_rank] = lookup (my_app_label)->color (); MPI::COMM_WORLD.Allgather (MPI::IN_PLACE, 0, MPI::INT, colors, 1, MPI::INT); int prev_color = -1; for (int i = 0; i < size; ++i) { if (colors[i] != prev_color) { ApplicationInfo* info = lookup (colors[i]); info->setLeader (i); leaders[info->color ()] = i; prev_color = colors[i]; } } #ifdef MUSIC_DEBUG /* block for debugging */ std::ofstream outfile ("ranks"); for(int i = 0; i < nLeaders; ++i) { outfile<< i <<":"; for(int j = 0; j < gsize; ++j) if(rbuf[j] == i) outfile<< " " << j; outfile< //#define MUSIC_DEBUG #include "music/debug.hh" #if MUSIC_USE_MPI #include #include #include #ifdef MUSIC_DEBUG #include #endif namespace MUSIC { SchedulerAgent::SchedulerAgent (Scheduler *scheduler) : scheduler_ (scheduler) { } MulticommAgent::MulticommAgent (Scheduler *scheduler) : SchedulerAgent (scheduler) { multiProxies = NULL; multiBuffer_ = NULL; filter1 = NULL; filter2 = NULL; } MulticommAgent::Filter1::Filter1 (MulticommAgent &multCommObj) : multCommObj_ (multCommObj) { } /* remedius * This filter is applied to the set of selected connectors in the fillSchedule(). * It partitioned the set of connectors into two groups: * returns True: connectors that can be lumped:if scheduled send times <= multCommObj_.time_. * This condition is sufficient because each conflicting send time can be postponed to the most latter scheduled for the same node. * The most latter possible time is a multCommObj_.time_ (the receive time). * returns False: connectors that go to the Filter2 (connectors that possibly can be added to the current group) */ bool MulticommAgent::Filter1::operator() (SConnectionP &conn) { if (conn.second.sSend <= multCommObj_.time_) { int sId = conn.first.pre ().data ().color; int rId = conn.first.post ().data ().color; //keeps track of all receive nodes multCommObj_.rNodes |= 1 << rId; //guarantees that if there are both send and receive are scheduled to the same node, // the receive time will be chosen. multCommObj_.commTimes[rId] = multCommObj_.time_; // take the most later time if (conn.second.sSend >= multCommObj_.commTimes[sId]) multCommObj_.commTimes[sId] = conn.second.sSend; return true; } return false; } MulticommAgent::Filter2::Filter2 (MulticommAgent &multCommObj) : multCommObj_ (multCommObj) { } /* remedius * This filter is applied to the rest of the selected connectors, that were classified as False by the Filter1. * It adds those of the rest connectors(which scheduled send times > multCommObj_.time_.) that either don't have a conflict * with the already selected connectors by Filter1 or if the conflict is solvable. * The conflict is not solvable if both send and receive are scheduled for the same node. */ bool MulticommAgent::Filter2::operator() (SConnectionP &conn) { int sId = conn.first.pre ().data ().color; int rId = conn.first.post ().data ().color; std::map::iterator it; it = multCommObj_.commTimes.find (sId); if (it == multCommObj_.commTimes.end () || ! (multCommObj_.rNodes & (1 << sId))) { multCommObj_.commTimes[sId] = conn.second.sSend; multCommObj_.commTimes[rId] = multCommObj_.time_; multCommObj_.rNodes |= 1 << rId; return true; } return false; } MulticommAgent::~MulticommAgent () { for (std::vector::iterator connector = multiConnectors.begin (); connector != multiConnectors.end (); ++connector) if (*connector != NULL) delete *connector; if (multiProxies != NULL) delete multiProxies; if (multiBuffer_ != NULL) delete multiBuffer_; if (filter1 != NULL) delete filter1; if (filter2 != NULL) delete filter2; } void MulticommAgent::initialize (std::vector& connectors) { filter1 = new Filter1 (*this); filter2 = new Filter2 (*this); multiBuffer_ = new MultiBuffer (scheduler_->comm(), scheduler_->getLeader(), connectors); //contains the multiconnectors which were created (I'm included) multiConnectors.resize (Connector::idRange ()); //denotes multiIds which were created (I'm not included) multiProxies = new std::vector; multiProxies->resize (Connector::proxyIdRange ()); for (unsigned int i = 0; i < Connector::idRange (); ++i) multiConnectors[i] = NULL; for (unsigned int i = 0; i < Connector::proxyIdRange (); ++i) (*multiProxies)[i] = false; } #if 0 void MulticommAgent::createMultiConnectors (Clock& localTime, MPI::Intracomm comm, int leader, std::vector& connectors) { multiBuffer_ = new MultiBuffer (comm, leader, connectors); multiConnectors.resize (Connector::idRange ()); multiProxies = new std::vector; multiProxies->resize (Connector::proxyIdRange ()); for (unsigned int self_node = 0; self_node < scheduler_->nApplications (); ++self_node) { scheduler_->reset (self_node); if (!create (localTime)) scheduler_->pushForward (); localTime.ticks (-1); for (int i = 0; i < N_PLANNING_CYCLES; ++i) { localTime.tick (); if (!create (localTime)) scheduler_->pushForward (); } //finalize schedule.clear (); localTime.reset (); } scheduler_->reset (-1); delete multiProxies; } #endif std::vector MulticommAgent::connectorsFromMultiId (unsigned int multiId) { std::vector connectors; for (unsigned int flag = 1; multiId != 0; flag <<= 1) if (multiId & flag) { connectors.push_back (Connector::connectorFromIdFlag (flag)); multiId &= ~flag; } return connectors; } #if 0 bool MulticommAgent::create (MUSIC::Clock &localTime) { std::vector::iterator comm; bool continue_; do { continue_ = fillSchedule (); for (comm = schedule.begin (); comm != schedule.end () && (*comm).time <= localTime; ++comm) { unsigned int multiId = (*comm).multiId (); if (multiId != 0) { if (multiConnectors[multiId] == NULL) { std::vector connectors = connectorsFromMultiId ( multiId); multiConnectors[multiId] = new MultiConnector (multiBuffer_, connectors); } } else { unsigned int proxyId = (*comm).proxyId (); if (proxyId != 0 && ! (*multiProxies)[proxyId]) { // std::cout << "Rank " << MPI::COMM_WORLD.Get_rank () // << ": Proxy " << proxyId << std::endl; MPI::COMM_WORLD.Create (MPI::GROUP_EMPTY); MPI::COMM_WORLD.Barrier (); (*multiProxies)[proxyId] = true; } } } schedule.erase (schedule.begin (), comm); } while (continue_ && schedule.empty ()); return !schedule.empty (); } #endif bool MulticommAgent::tick (MUSIC::Clock &localTime) { std::vector::iterator comm; bool continue_; do { continue_ = fillSchedule (); for (comm = schedule.begin (); comm != schedule.end () && (*comm).time <= localTime; ++comm) { unsigned int multiId = (*comm).multiId (); unsigned int proxyId = (*comm).proxyId (); // if we participate in the multicommunication but the multiconnector was not yet created if (multiId != 0 && multiConnectors[multiId] == NULL) { std::vector connectors = connectorsFromMultiId ( multiId); multiConnectors[multiId] = new MultiConnector (multiBuffer_, connectors); }// if we do not participate in the multicommunication and the multiconnector was not yet created else if (multiId == 0 && !((*multiProxies)[proxyId])) { MPI::COMM_WORLD.Create (MPI::GROUP_EMPTY); MPI::COMM_WORLD.Barrier (); (*multiProxies)[proxyId] = true; } if ( multiId != 0) { assert (multiConnectors[multiId] != NULL); multiConnectors[multiId]->tick (); } } schedule.erase (schedule.begin (), comm); // we continue looping while: // 1. we haven't found the communication from the future: !schedule.empty() // 2. or the next SConnection can't be processed by the current agent: continue_= false } while (continue_ && schedule.empty ()); return !schedule.empty (); } // *schedule object can be either non empty or empty // if it's empty it will be filled with collective connectors if appropriate // if it's non empty, it contains collective connectors filled in before // *last_sconn can be either p2p or collective connector bool MulticommAgent::fillSchedule () { if (!schedule.empty ()) return true; Scheduler::SConnection last_sconn = scheduler_->getLastSConnection (); if (!last_sconn.data ().connector->idFlag ()) return false; Clock nextReceive = last_sconn.data ().nextReceive; //last connection SConnectionPV nextSConnections; do { #if 0 if (last_sconn.data ().isLoopConnected || scheduler_->isLocalConnection (last_sconn)) #endif nextSConnections.push_back ( std::make_pair (last_sconn, last_sconn.data ())); last_sconn = scheduler_->pushForward (); } while (last_sconn.data ().connector->idFlag () //those that request multicommunication && (last_sconn.data ().nextReceive == nextReceive)); //those that have scheduled receive at current time // || (!last_sconn.data ().isLoopConnected // // && !scheduler_->isLocalConnection (last_sconn)))); if (nextSConnections.size () > 0) NextMultiConnection (nextSConnections); return last_sconn.data ().connector->idFlag (); } void MulticommAgent::NextMultiConnection (SConnectionPV &candidates) { time_ = candidates[0].second.nextReceive; // std::map prevCommTime; SConnectionPV::iterator iter_bound = candidates.begin (); SConnectionPV::iterator cur_bound = candidates.begin (); do { cur_bound = iter_bound; commTimes.clear (); rNodes = 0; // after the first iteration inner partitioning (Filter1) will always return .begin() iter_bound = std::stable_partition ( std::stable_partition (cur_bound, candidates.end (), *filter1), candidates.end (), *filter2); //postpone sends in the multiconn for consistency for (SConnectionPV::iterator it = cur_bound; it != iter_bound; ++it) (*it).second.postponeNextSend ( commTimes[ (*it).first.pre ().data ().color]); std::map::iterator id_iter; if ( (id_iter = commTimes.find (scheduler_->self_node ())) != commTimes.end ()) scheduleMulticonn ( (*id_iter).second, cur_bound, iter_bound); } while (iter_bound != candidates.end ()); } void MulticommAgent::scheduleMulticonn (Clock &time, SConnectionPV::iterator first, SConnectionPV::iterator last) { unsigned int multiId = 0; unsigned int proxyId = 0; MUSIC_LOGR ("SelfNode: " << scheduler_->self_node() << " Time: "<< time.time() << std::endl << "MultiConnector:"); for (SConnectionPV::iterator it = first; it != last; ++it) { if ( (*it).second.connector->isProxy ()) proxyId |= (*it).second.connector->idFlag (); else multiId |= (*it).second.connector->idFlag (); MUSIC_LOGR ("("<< (*it).preNode ()->getId () <<" -> "<< (*it).postNode ()->getId () << ") at " << (*it).nextSend().time () << " -> "<< (*it).nextReceive ().time ()); } schedule.push_back (MultiCommObject (time, multiId , proxyId)); } #if 0 void MulticommAgent::preFinalize (std::set &cnn_ports) { for (std::vector::iterator m = multiConnectors.begin (); m != multiConnectors.end (); ++m) if (*m != NULL) cnn_ports.insert ( (*m)->connectorCode ()); } #endif void MulticommAgent::finalize (std::set &cnn_ports) { std::vector::iterator comm; bool continue_; do { continue_ = fillSchedule (); for (comm = schedule.begin (); comm != schedule.end () && !cnn_ports.empty (); ++comm) { unsigned int multiId = (*comm).multiId (); unsigned int proxyId = (*comm).proxyId (); // if we participate in the multicommunication but the multiconnector was not yet created if (multiId != 0 && multiConnectors[multiId] == NULL) { std::vector connectors = connectorsFromMultiId ( multiId); multiConnectors[multiId] = new MultiConnector (multiBuffer_, connectors); } // if we do not participate in the multicommunication and the multiconnector was not yet created else if (multiId == 0 && ! ( (*multiProxies)[proxyId])) { MPI::COMM_WORLD.Create (MPI::GROUP_EMPTY); MPI::COMM_WORLD.Barrier (); (*multiProxies)[proxyId] = true; } if (multiId != 0) { MultiConnector* m = multiConnectors[multiId]; #if 0 if (cnn_ports.find (m->connectorCode ()) == cnn_ports.end ()) continue; #endif if (m->isFinalized ()) // an output port was finalized in tick () { #if 0 cnn_ports.erase (m->connectorCode ()); #endif std::vector conns = connectorsFromMultiId (multiId); std::vector::iterator it; for(it = conns.begin(); it != conns.end(); ++it) cnn_ports.erase ((*it)->receiverPortCode()); continue; #if 0 // Sometimes the scheduler fails to generate all // multiConnectors during finalization. Here, we // weed out multiConnectors that were finalized as // a consequence of the finalization of m. for (std::vector::iterator m = multiConnectors.begin (); m != multiConnectors.end (); ++m) if (*m != NULL && (cnn_ports.find ( (*m)->connectorCode ()) != cnn_ports.end ()) && (*m)->isFinalized ()) cnn_ports.erase ( (*m)->connectorCode ()); continue; #endif } // finalize () needs to come after isFinalized check // since it can itself set finalized state m->finalize (); m->tick (); } } schedule.clear (); } while (continue_ && !cnn_ports.empty ()); } UnicommAgent::UnicommAgent (Scheduler *scheduler) : SchedulerAgent (scheduler) { } // *schedule object can be either non empty or empty // if it's empty it will be filled with p2p connector if appropriate // if it's non empty, it contains p2p connectors filled in before // *last_sconn can be either p2p or collective connector bool UnicommAgent::fillSchedule () { if (!schedule.empty ()) return true; Scheduler::SConnection last_sconn = scheduler_->getLastSConnection (); if (last_sconn.data ().connector->idFlag ()) return false; if (scheduler_->isLocalConnection (last_sconn)) { Clock nextComm = ( scheduler_->self_node () == last_sconn.post ().data ().color ? last_sconn.data ().nextReceive : last_sconn.data ().nextSend); schedule.time = nextComm; schedule.connector = last_sconn.data ().connector; MUSIC_LOGR (" :Scheduled communication:"<< last_sconn.preNode ()->getId () <<"->" << last_sconn.postNode ()->getId ()<< "at(" << last_sconn.nextSend ().time () << ", " << last_sconn.nextReceive ().time () <<")"); } scheduler_->pushForward (); return true; } bool UnicommAgent::tick (Clock& localTime) { bool continue_; do { continue_ = fillSchedule (); if (!schedule.empty () && schedule.time <= localTime) { schedule.connector->tick (); schedule.reset (); } } while (continue_ && schedule.empty ()); return !schedule.empty (); } void UnicommAgent::finalize (std::set &cnn_ports) { bool continue_; do { continue_ = fillSchedule (); if (!schedule.empty ()) { Connector* connector = schedule.connector; schedule.reset (); if ( (cnn_ports.find (connector->receiverPortCode ()) == cnn_ports.end ())) continue; if (connector->isFinalized ()) // an output port was finalized in tick () { cnn_ports.erase (connector->receiverPortCode ()); continue; } // finalize () needs to come after isFinalized check // since it can itself set finalized state connector->finalize (); } } while (continue_ && !cnn_ports.empty ()); } } #endif music-1.1.16/src/index_map_factory.cc0000644000175000017500000000301313571617503014437 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/index_map_factory.hh" #include namespace MUSIC { IndexMapFactory::IndexMapFactory () { } IndexMapFactory::IndexMapFactory (std::vector& indices) : indices_ (indices) { } void IndexMapFactory::add (int begin, int end, int local) { indices_.push_back (IndexInterval (begin, end, begin - local)); } void IndexMapFactory::build () { sort (indices_.begin (), indices_.end ()); } IndexMap::iterator IndexMapFactory::begin () { return IndexMap::iterator (new iterator (&indices_.front ())); } const IndexMap::iterator IndexMapFactory::end () const { return IndexMap::iterator (new iterator (&indices_.back () + 1)); } IndexMap* IndexMapFactory::copy () { return new IndexMapFactory (indices_); } } music-1.1.16/src/subconnector.cc0000644000175000017500000004706113571617503013463 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009, 2010 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/subconnector.hh" #include "music/debug.hh" #if MUSIC_USE_MPI #include "music/communication.hh" #include "music/event_router.hh" #include #include #include #include #ifdef MUSIC_DEBUG #include #endif namespace MUSIC { Subconnector::Subconnector (MPI::Datatype type, MPI::Intercomm intercomm_, int remoteLeader, int remoteRank, int receiverRank, int receiverPortCode) : type_ (type), intercomm (intercomm_), remoteRank_ (remoteRank), remoteWorldRank_ (remoteLeader + remoteRank), receiverRank_ (receiverRank), receiverPortCode_ (receiverPortCode), flushed(false) { } Subconnector::~Subconnector () { } BufferingOutputSubconnector::BufferingOutputSubconnector (int elementSize) : buffer_ (elementSize) { } /******************************************************************** * * Cont Subconnectors * ********************************************************************/ ContOutputSubconnector::ContOutputSubconnector (//Synchronizer* synch_, MPI::Intercomm intercomm_, int remoteLeader, int remoteRank, int receiverPortCode_, MPI::Datatype type) : Subconnector (type, intercomm_, remoteLeader, remoteRank, remoteRank, receiverPortCode_), BufferingOutputSubconnector (0) { } void ContOutputSubconnector::initialCommunication (double param) { send (); } void ContOutputSubconnector::maybeCommunicate () { if(!flushed) send (); } void ContOutputSubconnector::send () { void* data; int size; buffer_.nextBlock (data, size); // NOTE: marshalling char* buffer = static_cast (data); while (size >= CONT_BUFFER_MAX) { MUSIC_LOGR ("Sending to rank " << remoteRank_); intercomm.Ssend (buffer, CONT_BUFFER_MAX / type_.Get_size (), type_, remoteRank_, CONT_MSG); buffer += CONT_BUFFER_MAX; size -= CONT_BUFFER_MAX; } MUSIC_LOGR ("Last send to rank " << remoteRank_); intercomm.Ssend (buffer, size / type_.Get_size (), type_, remoteRank_, CONT_MSG); } void ContOutputSubconnector::flush (bool& dataStillFlowing) { if (!flushed) { if (!buffer_.isEmpty ()) { MUSIC_LOGR ("sending data remaining in buffers"); send (); dataStillFlowing = true; } else { char dummy; intercomm.Ssend (&dummy, 0, type_, remoteRank_, FLUSH_MSG); flushed = true; } } } ContInputSubconnector::ContInputSubconnector (//Synchronizer* synch_, MPI::Intercomm intercomm, int remoteLeader, int remoteRank, int receiverRank, int receiverPortCode, MPI::Datatype type) : Subconnector (type, intercomm, remoteLeader, remoteRank, receiverRank, receiverPortCode), InputSubconnector () { } void ContInputSubconnector::initialCommunication (double initialBufferedTicks) { receive (); buffer_.fill (initialBufferedTicks); } void ContInputSubconnector::maybeCommunicate () { if (!flushed) receive (); } void ContInputSubconnector::receive () { char* data; MPI::Status status; int size, maxCount; maxCount = CONT_BUFFER_MAX / type_.Get_size (); do { data = static_cast (buffer_.insertBlock ()); MUSIC_LOGR ("Receiving from rank " << remoteRank_); intercomm.Recv (data, maxCount, type_, remoteRank_, MPI::ANY_TAG, status); if (status.Get_tag () == FLUSH_MSG) { flushed = true; MUSIC_LOGR ("received flush message"); return; } size = status.Get_count (type_); buffer_.trimBlock (type_.Get_size () * size); } while (size == maxCount); } void ContInputSubconnector::flush (bool& dataStillFlowing) { if (!flushed) { //MUSIC_LOGR ("receiving and throwing away data"); receive (); if (!flushed) dataStillFlowing = true; } } /******************************************************************** * * Event Subconnectors * ********************************************************************/ EventOutputSubconnector::EventOutputSubconnector (//Synchronizer* synch_, MPI::Intercomm intercomm, int remoteLeader, int remoteRank, int receiverPortCode) : Subconnector (MPI::BYTE, intercomm, remoteLeader, remoteRank, remoteRank, receiverPortCode), BufferingOutputSubconnector (sizeof (Event)) { } void EventOutputSubconnector::maybeCommunicate () { send (); } void EventOutputSubconnector::maybeCommunicate (std::vector &requests) { send (requests); } void EventOutputSubconnector::send (std::vector &requests) { MUSIC_LOGRE ("ISend"); void* data; int size; buffer_.nextBlock (data, size); char* buffer = static_cast (data); while (size >= SPIKE_BUFFER_MAX) { requests.push_back(intercomm.Isend (buffer, SPIKE_BUFFER_MAX, type_, remoteRank_, SPIKE_MSG)); buffer += SPIKE_BUFFER_MAX; size -= SPIKE_BUFFER_MAX; } requests.push_back( intercomm.Isend (buffer, size, type_, remoteRank_, SPIKE_MSG)); } void EventOutputSubconnector::send () { MUSIC_LOGRE ("Ssend"); void* data; int size; buffer_.nextBlock (data, size); char* buffer = static_cast (data); while (size >= SPIKE_BUFFER_MAX) { intercomm.Ssend (buffer, SPIKE_BUFFER_MAX, type_, remoteRank_, SPIKE_MSG); buffer += SPIKE_BUFFER_MAX; size -= SPIKE_BUFFER_MAX; } intercomm.Ssend (buffer, size, type_, remoteRank_, SPIKE_MSG); } void EventOutputSubconnector::flush (bool& dataStillFlowing) { if (!flushed) { if (!buffer_.isEmpty ()) { MUSIC_LOGR ("sending data remaining in buffers"); send (); dataStillFlowing = true; } /* remedius * flushed flag was added since synchronous communication demands equal sends and receives */ else { Event* e = static_cast (buffer_.insert ()); e->id = FLUSH_MARK; send (); flushed = true; } } } EventInputSubconnector::EventInputSubconnector (//Synchronizer* synch_, MPI::Intercomm intercomm, int remoteLeader, int remoteRank, int receiverRank, int receiverPortCode) : Subconnector (MPI::BYTE, intercomm, remoteLeader, remoteRank, receiverRank, receiverPortCode), InputSubconnector () { } EventInputSubconnectorGlobal::EventInputSubconnectorGlobal (//Synchronizer* synch_, MPI::Intercomm intercomm, int remoteLeader, int remoteRank, int receiverRank, int receiverPortCode, EventHandlerGlobalIndex* eh) : Subconnector (MPI::BYTE, intercomm, remoteLeader, remoteRank, receiverRank, receiverPortCode), EventInputSubconnector (//synch_, intercomm, remoteLeader, remoteRank, receiverRank, receiverPortCode), handleEvent (eh) { } //EventHandlerGlobalIndexDummy //EventInputSubconnectorGlobal::dummyHandler; EventInputSubconnectorLocal::EventInputSubconnectorLocal (//Synchronizer* synch_, MPI::Intercomm intercomm, int remoteLeader, int remoteRank, int receiverRank, int receiverPortCode, EventHandlerLocalIndex* eh) : Subconnector (MPI::BYTE, intercomm, remoteLeader, remoteRank, receiverRank, receiverPortCode), EventInputSubconnector ( intercomm, remoteLeader, remoteRank, receiverRank, receiverPortCode), handleEvent (eh) { } //EventHandlerLocalIndexDummy //EventInputSubconnectorLocal::dummyHandler; void EventInputSubconnector::maybeCommunicate () { if (!flushed ) receive (); } bool EventInputSubconnectorGlobal::receive (char *data, int size) { Event* ev = (Event*) data; /* remedius * since the message can be of size 0 and contains garbage=FLUSH_MARK, * the check for the size of the message was added. */ if (ev[0].id == FLUSH_MARK && size > 0) { flushed = true; MUSIC_LOGR ("received flush message"); } else { int nEvents = size / sizeof (Event); for (int i = 0; i < nEvents; ++i){ (*handleEvent) (ev[i].t, ev[i].id); } } return flushed; } // NOTE: isolate difference between global and local to avoid code repetition void EventInputSubconnectorGlobal::receive () { char data[SPIKE_BUFFER_MAX]; MPI::Status status; int size; //double starttime, endtime; //starttime = MPI_Wtime(); do { intercomm.Recv (data, SPIKE_BUFFER_MAX, type_, remoteRank_, SPIKE_MSG, status); size = status.Get_count (type_); Event* ev = (Event*) data; /* remedius * since the message can be of size 0 and contains garbage=FLUSH_MARK, * the check for the size of the message was added. */ if (ev[0].id == FLUSH_MARK && size > 0) { flushed = true; MUSIC_LOGR ("received flush message"); return; } int nEvents = size / sizeof (Event); for (int i = 0; i < nEvents; ++i){ (*handleEvent) (ev[i].t, ev[i].id); } } while (size == SPIKE_BUFFER_MAX); //endtime = MPI_Wtime(); //endtime = endtime-starttime; //if(tt < endtime) //tt = endtime; } void EventInputSubconnectorLocal::receive () { MUSIC_LOGRE ("receive"); char data[SPIKE_BUFFER_MAX]; MPI::Status status; int size; do { intercomm.Recv (data, SPIKE_BUFFER_MAX, type_, remoteRank_, SPIKE_MSG, status); size = status.Get_count (type_); Event* ev = (Event*) data; /* remedius * since the message can be of size 0 and contains garbage=FLUSH_MARK, * the check for the size of the message was added. */ if (ev[0].id == FLUSH_MARK && size > 0) { flushed = true; return; } int nEvents = size / sizeof (Event); for (int i = 0; i < nEvents; ++i) (*handleEvent) (ev[i].t, ev[i].id); } while (size == SPIKE_BUFFER_MAX); } void EventInputSubconnector::flush (bool& dataStillFlowing) { if (!flushed) { //MUSIC_LOGRE ("receiving and throwing away data"); receive (); if (!flushed) dataStillFlowing = true; } } /*void EventInputSubconnectorGlobal::flush (bool& dataStillFlowing) { //handleEvent = &dummyHandler; EventInputSubconnector::flush (dataStillFlowing); } void EventInputSubconnectorLocal::flush (bool& dataStillFlowing) { //handleEvent = &dummyHandler; EventInputSubconnector::flush (dataStillFlowing); }*/ /******************************************************************** * * Message Subconnectors * ********************************************************************/ MessageOutputSubconnector::MessageOutputSubconnector (//Synchronizer* synch_, MPI::Intercomm intercomm, int remoteLeader, int remoteRank, int receiverPortCode, FIBO* buffer) : Subconnector (MPI::BYTE, intercomm, remoteLeader, remoteRank, remoteRank, receiverPortCode), buffer_ (buffer) { } void MessageOutputSubconnector::maybeCommunicate () { if (!flushed) send (); } void MessageOutputSubconnector::send () { void* data; int size; buffer_->nextBlock (data, size); // NOTE: marshalling char* buffer = static_cast (data); while (size >= MESSAGE_BUFFER_MAX) { intercomm.Ssend (buffer, MESSAGE_BUFFER_MAX, type_, remoteRank_, MESSAGE_MSG); buffer += MESSAGE_BUFFER_MAX; size -= MESSAGE_BUFFER_MAX; } intercomm.Ssend (buffer, size, type_, remoteRank_, MESSAGE_MSG); } void MessageOutputSubconnector::flush (bool& dataStillFlowing) { if (!flushed) { if (!buffer_->isEmpty ()) { MUSIC_LOGRE ("sending data remaining in buffers"); send (); dataStillFlowing = true; } else { char dummy; intercomm.Ssend (&dummy, 0, type_, remoteRank_, FLUSH_MSG); } } } MessageInputSubconnector::MessageInputSubconnector (//Synchronizer* synch_, MPI::Intercomm intercomm, int remoteLeader, int remoteRank, int receiverRank, int receiverPortCode, MessageHandler* mh) : Subconnector (MPI::BYTE, intercomm, remoteLeader, remoteRank, receiverRank, receiverPortCode), handleMessage (mh) { } //MessageHandlerDummy //MessageInputSubconnector::dummyHandler; void MessageInputSubconnector::maybeCommunicate () { if (!flushed)// && synch->communicate ()) receive (); } void MessageInputSubconnector::receive () { char data[MESSAGE_BUFFER_MAX]; MPI::Status status; int size; do { intercomm.Recv (data, MESSAGE_BUFFER_MAX, type_, remoteRank_, MPI::ANY_TAG, status); if (status.Get_tag () == FLUSH_MSG) { flushed = true; MUSIC_LOGRE ("received flush message"); return; } size = status.Get_count (type_); int current = 0; while (current < size) { MessageHeader* header = static_cast (static_cast (&data[current])); current += sizeof (MessageHeader); (*handleMessage) (header->t (), &data[current], header->size ()); current += header->size (); } } while (size == MESSAGE_BUFFER_MAX); } void MessageInputSubconnector::flush (bool& dataStillFlowing) { //handleMessage = &dummyHandler; if (!flushed) { //MUSIC_LOGRE ("receiving and throwing away data"); receive (); if (!flushed) dataStillFlowing = true; } } /******************************************************************** * * Collective Subconnector * ********************************************************************/ CollectiveSubconnector::CollectiveSubconnector (MPI::Intracomm intracomm) : intracomm_ (intracomm) { } CollectiveSubconnector::~CollectiveSubconnector () { } void CollectiveSubconnector::allocAllgathervArrays () { nProcesses = intracomm_.Get_size (); ppBytes = new int[nProcesses]; displ = new int[nProcesses]; } void CollectiveSubconnector::freeAllgathervArrays () { delete ppBytes; delete displ; } void CollectiveSubconnector::maybeCommunicate () { if (!flushed) communicate (); } int CollectiveSubconnector::calcCommDataSize (int local_data_size) { int dsize; //distributing the size of the buffer intracomm_.Allgather (&local_data_size, 1, MPI_INT, ppBytes, 1, MPI_INT); //could it be that dsize is more then unsigned int? dsize = 0; for(int i=0; i < nProcesses; ++i){ displ[i] = dsize; dsize += ppBytes[i]; //ppBytes[i] /= type_.Get_size(); /* if(ppBytes[i] > max_size) max_size = ppBytes[i];*/ } return dsize; } /* remedius * current collective communication is realized through two times calls of * mpi allgather function: first time the size of the data is distributed, * the second time the data by itself is distributed. * Probably that could be not optimal for a huge # of ranks. */ std::vector CollectiveSubconnector::getCommData(char *cur_buff, int size) { unsigned int dsize; char *recv_buff; std::vector commData; recv_buff=NULL; dsize = calcCommDataSize(size); if(dsize > 0){ //distributing the data recv_buff = new char[dsize]; intracomm_.Allgatherv(cur_buff, size, MPI::BYTE, recv_buff, ppBytes, displ, MPI::BYTE ); std::copy(recv_buff,recv_buff+dsize,std::back_inserter(commData)); delete[] recv_buff; } return commData; } void EventOutputCollectiveSubconnector::setOutputBuffer (void* buffer, unsigned int size) { router_->setOutputBuffer (buffer, size); } unsigned int EventOutputCollectiveSubconnector::dataSize () { return router_->dataSize (); } void EventOutputCollectiveSubconnector::fillOutputBuffer () { router_->fillOutputBuffer (); } void EventInputCollectiveSubconnector::processData (void* data, unsigned int size) { Event* e = static_cast (data); while (size > 0) { router_->processEvent (e->t, e->id); ++e; size -= sizeof (Event); } } void ContCollectiveSubconnector::maybeCommunicate() { CollectiveSubconnector::maybeCommunicate(); } void ContCollectiveSubconnector::communicate() { int size, bSize, nBuffered; void *data; char *cur_buff, *dest_buff; std::vector commData; if(flushed) return; ContOutputSubconnector::buffer_.nextBlock (data, size); commData = getCommData(static_cast (data), size); const int* displ = getDisplArr(); //std::copy(commData.begin(),commData.end(),cur_buff); cur_buff = (char*)static_cast (&commData[0]); flushed = commData.size() == 0 ? true : false; nBuffered= commData.size() / width_; //the received data size is always multiple of port width for(int i =0; i < nBuffered ; ++i){ bSize = 0; dest_buff = static_cast (ContInputSubconnector::buffer_.insertBlock ()); for (std::multimap::iterator it= intervals_.begin() ; it != intervals_.end(); it++ ) //iterates all the intervals { memcpy (dest_buff + bSize, cur_buff +displ[(*it).first]//+displacement of data for a current rank +i*blockSizePerRank_[(*it).first] //+displacement of the appropriate buffered chunk of data within current rank data block +(*it).second.begin(), //+displacement of the requested data (*it).second.end()); // length field is stored overlapping the end field bSize += (*it).second.end(); } ContInputSubconnector::buffer_.trimBlock (bSize); } } void ContCollectiveSubconnector::initialCommunication(double initialBufferedTicks) { communicate(); fillBlockSizes(); ContInputSubconnector::buffer_.fill (initialBufferedTicks); } void ContCollectiveSubconnector::fillBlockSizes() { std::map::iterator it; const int* ppBytes = getSizeArr(); for ( it=intervals_.begin() ; it != intervals_.end(); it++ ) //iterates all the intervals blockSizePerRank_[(*it).first]= ppBytes[(*it).first]; } void ContCollectiveSubconnector::flush(bool& dataStillFlowing) { if (!flushed) { if (!ContOutputSubconnector::buffer_.isEmpty ()) { MUSIC_LOGR ("sending data remaining in buffers"); maybeCommunicate (); dataStillFlowing = true; } else { //a sign for the end of communication will be an empty buffer communicate (); if(!flushed) dataStillFlowing = true; } } } } #endif music-1.1.16/src/application_mapper.cc0000644000175000017500000002764213571617503014631 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2007, 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/music-config.hh" #include "music/debug.hh" #include "music/error.hh" #include #include #include #include #include #include #include "music/application_mapper.hh" #include "rudeconfig/src/config.h" #if MUSIC_USE_MPI #include #endif #if HAVE_SYS_STAT_H #include #endif namespace MUSIC { // This is where we parse the configuration file // NOTE: Could check here that obligatory parameters exists ApplicationMapper::ApplicationMapper (Configuration *config) { config_ = config; applications_ = config->applications(); connectivityMap_ = config->connectivityMap(); cfile_ = new rude::Config (); app_selector_ = NULL; } ApplicationMapper::~ApplicationMapper() { if (app_selector_ != NULL) delete app_selector_; delete cfile_; } Configuration* ApplicationMapper::map (std::istream* configFile, int rank) { MUSIC_LOG("Co-simulation launched using music utility"); app_selector_ = new SelectorR (rank); map (configFile); return config_; } #if MUSIC_USE_MPI Configuration* ApplicationMapper::map (std::istream* configFile, std::string binary, std::string appLabel) { //how do we identify ourselves if (appLabel.length () != 0) { MUSIC_LOG("MPMD launch with --app-label option:" << appLabel); app_selector_ = new SelectorOp (appLabel); } else { int my_rank = MPI::COMM_WORLD.Get_rank (); int nRanks = MPI::COMM_WORLD.Get_size (); #if HAVE_SYS_STAT_H long my_ino = ApplicationMapper::getApplicationINO (binary.c_str ()); // communicate st.st_ino long *inos = new long[nRanks]; inos[my_rank] = my_ino; MPI::COMM_WORLD.Allgather (MPI::IN_PLACE, 0, MPI::LONG, inos, 1, MPI::LONG); int index = 0; int i = 0; // among processors with the same ino number // assign current sequential order number. while (i < my_rank) if (inos[i++] == my_ino) index++; delete[] inos; MUSIC_LOG("MPMD launch. Application INO:" << my_ino); app_selector_ = new SelectorINO (my_ino, index); #else std::ostringstream oss; oss << "MUSIC: HAVE_SYS_STAT_H is node defined, use --app-label to specify application label"; error0 (oss.str ()); #endif } map (configFile); return config_; } #endif void ApplicationMapper::map (std::istream* configFile) { if (cfile_->load (*configFile)) { bool leader_avail = false; mapApplications (); #if MUSIC_USE_MPI if (MPI::Is_initialized ()) { applications_->assignLeaders (config_->Name ()); leader_avail = true; } #endif mapConnectivity (leader_avail); } else error0 ("Configuration file load: " + std::string (cfile_->getError ())); } void ApplicationMapper::mapApplications () { // retrieve default configurations for current object config_ mapSection ( 0, config_->defaultConfig()); // create temporal object with the default configurations Configuration *config = new Configuration (); config->defaultConfig ()->setDict(config_->defaultConfig ()->getDict ()); int n_selections = 0; int np; int nSections = cfile_->getNumSections (); // loop through all sections for (int s = 1; s < nSections; ++s) { // retrieve configuration to the temporal object mapSection (s, config); // if retrieved section is current configuration if (app_selector_->selected(config)) { ++n_selections; // copy configuration settings to current object config_->setDict (config->getDict ()); config_->setName(config->Name()); } // save application information config->lookup ("np", &np); applications_->add (config->Name(), np, s - 1); // empty temporal object // NOTE: default configuration is preserved config->resetDict(); } delete config; assert(config_->getDict().size() != 0); // NOTE: given rank -1 causes an assertion failure assert(n_selections == 1); } void ApplicationMapper::mapSection (int index, Configuration* config) { std::string name (cfile_->getSectionNameAt (index)); cfile_->setSection (name.c_str ()); int nMembers = cfile_->getNumDataMembers (); config->setName(name); for (int m = 0; m < nMembers; ++m) { std::string n (cfile_->getDataNameAt (m)); std::string v (cfile_->getStringValue (n.c_str ())); config->insert (n, v); } } void ApplicationMapper::mapConnectivity (bool leaders) { std::map receiverPortCodes; int nextPortCode = 0; int nSections = cfile_->getNumSections (); for (int s = 0; s < nSections; ++s) { std::string secName (cfile_->getSectionNameAt (s)); cfile_->setSection (secName.c_str ()); int nConnections = cfile_->getNumSourceDestMembers (); for (int c = 0; c < nConnections; ++c) { std::string senderApp (cfile_->getSrcAppAt (c)); std::string senderPort (cfile_->getSrcObjAt (c)); std::string receiverApp (cfile_->getDestAppAt (c)); std::string receiverPort (cfile_->getDestObjAt (c)); std::string width (cfile_->getWidthAt (c)); std::string commType (cfile_->getCommTypeAt (c)); std::string procMethod (cfile_->getProcMethodAt (c)); if (senderApp == "") { if (secName == "") error ( "sender application not specified for output port " + senderPort); else senderApp = secName; } if (receiverApp == "") { if (secName == "") error ( "receiver application not specified for input port " + receiverPort); else receiverApp = secName; } if (senderApp == receiverApp) error ( "port " + senderPort + " of application " + senderApp + " connected to the same application"); // Communication type option can be either *point-to-point* or // *collective* written in any case letters. std::transform (commType.begin (), commType.end (), commType.begin (), ::tolower); if (commType.length () > 0 && commType.compare ("collective") && commType.compare ("point-to-point")) error ("communication type " + commType + " is not supported"); // Processing method can be either *tree* or // *table* written in any case letters. std::transform (procMethod.begin (), procMethod.end (), procMethod.begin (), ::tolower); if (procMethod.length () > 0 && procMethod.compare ("table") && procMethod.compare ("tree")) error ("processing method " + procMethod + " is not supported"); // Generate a unique "port code" for each receiver port // name. This will later be used during temporal // negotiation since it easier to communicate integers, // which have constant size, than strings. // // NOTE: This code must be executed in the same order in // all MPI processes. std::string receiverPortFullName = receiverApp + "." + receiverPort; std::map::iterator pos = receiverPortCodes.find ( receiverPortFullName); int portCode; if (pos == receiverPortCodes.end ()) { portCode = nextPortCode++; receiverPortCodes.insert ( std::make_pair (receiverPortFullName, portCode)); } else portCode = pos->second; ConnectivityInfo::PortDirection dir; ApplicationInfo* remoteInfo; if (config_->Name () == senderApp) { dir = ConnectivityInfo::OUTPUT; remoteInfo = applications_->lookup (receiverApp); } else if (config_->Name () == receiverApp) { dir = ConnectivityInfo::INPUT; remoteInfo = applications_->lookup (senderApp); } else continue; int w; if (width == "") w = ConnectivityInfo::NO_WIDTH; else { std::istringstream ws (width); if (! (ws >> w)) error ("could not interpret width"); } // default communication type is *point-to-point* int iCommType; if (commType.length () == 0 || !commType.compare ("point-to-point")) iCommType = ConnectorInfo::POINTTOPOINT; else iCommType = ConnectorInfo::COLLECTIVE; // default processing method is *tree* int iProcMethod; if (procMethod.length () == 0 || !procMethod.compare ("tree")) iProcMethod = ConnectorInfo::TREE; else iProcMethod = ConnectorInfo::TABLE; // NOTE: leader number can be not available at this stage, // if leader is not available, we write down the color of the application int leader = leaders ? remoteInfo->leader () : remoteInfo->color (); connectivityMap_->add ( dir == ConnectivityInfo::OUTPUT ? senderPort : receiverPort, dir, w, receiverApp, receiverPort, portCode, leader, remoteInfo->nProc (), iCommType, iProcMethod); } } } #if HAVE_SYS_STAT_H long ApplicationMapper::getApplicationINO(const char * path) { struct stat st; if (stat(path, &st) == -1) { std::ostringstream oss; oss << "MUSIC: Couldn't retrieve file status (stat()) about: " << path; error0 (oss.str ()); } return st.st_ino; } #endif bool SelectorR::selected (Configuration* config) { #if MUSIC_USE_MPI int np; config->lookup ("np", &np); selected_ = rank_ < next_chunk_; next_chunk_ += np; return rank_ < next_chunk_ && !selected_; #endif return false; } bool SelectorOp::selected (Configuration* config) { std::string sec_name = config->Name(); return !app_label_.compare(sec_name); } bool SelectorINO::selected (Configuration* config) { #if HAVE_SYS_STAT_H std::string sec_name; config->lookup("appLabel", &sec_name); std::string binary; config->lookup("binary", &binary); long ino = ApplicationMapper::getApplicationINO (binary.c_str()); if (ino == ino_) { int np; config->lookup("np", &np); selected_ = my_chunk_ < next_chunk_; next_chunk_+=np; } return ino == ino_ && my_chunk_ < next_chunk_ && !selected_; #endif return false; } } music-1.1.16/src/Makefile.in0000644000175000017500000024246013571626612012516 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 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@ subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(libmusic_c_la_HEADERS) \ $(libmusic_la_HEADERS) $(musicinclude_HEADERS) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h 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)$(libdir)" \ "$(DESTDIR)$(libmusic_c_ladir)" "$(DESTDIR)$(libmusic_ladir)" \ "$(DESTDIR)$(musicincludedir)" LTLIBRARIES = $(lib_LTLIBRARIES) libmusic_c_la_LIBADD = am_libmusic_c_la_OBJECTS = libmusic_c_la-music-c.lo \ libmusic_c_la-music-c-c.lo libmusic_c_la-predict_rank-c.lo libmusic_c_la_OBJECTS = $(am_libmusic_c_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 = libmusic_c_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(libmusic_c_la_CXXFLAGS) $(CXXFLAGS) $(libmusic_c_la_LDFLAGS) \ $(LDFLAGS) -o $@ libmusic_la_LIBADD = am_libmusic_la_OBJECTS = libmusic_la-runtime.lo libmusic_la-setup.lo \ libmusic_la-error.lo libmusic_la-linear_index.lo \ libmusic_la-index_map.lo libmusic_la-array_data.lo \ libmusic_la-configuration.lo libmusic_la-application_map.lo \ libmusic_la-application_mapper.lo libmusic_la-ioutils.lo \ libmusic_la-connectivity.lo libmusic_la-spatial.lo \ libmusic_la-temporal.lo libmusic_la-parse.lo \ libmusic_la-port.lo libmusic_la-sampler.lo \ libmusic_la-event_router.lo libmusic_la-event_routing_map.lo \ libmusic_la-distributor.lo libmusic_la-collector.lo \ libmusic_la-clock.lo libmusic_la-subconnector.lo \ libmusic_la-connector.lo libmusic_la-multibuffer.lo \ libmusic_la-connection.lo libmusic_la-permutation_index.lo \ libmusic_la-index_map_factory.lo \ libmusic_la-scheduler_agent.lo libmusic_la-scheduler.lo \ libmusic_la-BIFO.lo libmusic_la-FIBO.lo \ libmusic_la-interval.lo libmusic_la-memory.lo \ libmusic_la-predict_rank.lo libmusic_la-version.lo libmusic_la_OBJECTS = $(am_libmusic_la_OBJECTS) libmusic_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(libmusic_la_CXXFLAGS) \ $(CXXFLAGS) $(libmusic_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) depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libmusic_c_la-music-c-c.Plo \ ./$(DEPDIR)/libmusic_c_la-music-c.Plo \ ./$(DEPDIR)/libmusic_c_la-predict_rank-c.Plo \ ./$(DEPDIR)/libmusic_la-BIFO.Plo \ ./$(DEPDIR)/libmusic_la-FIBO.Plo \ ./$(DEPDIR)/libmusic_la-application_map.Plo \ ./$(DEPDIR)/libmusic_la-application_mapper.Plo \ ./$(DEPDIR)/libmusic_la-array_data.Plo \ ./$(DEPDIR)/libmusic_la-clock.Plo \ ./$(DEPDIR)/libmusic_la-collector.Plo \ ./$(DEPDIR)/libmusic_la-configuration.Plo \ ./$(DEPDIR)/libmusic_la-connection.Plo \ ./$(DEPDIR)/libmusic_la-connectivity.Plo \ ./$(DEPDIR)/libmusic_la-connector.Plo \ ./$(DEPDIR)/libmusic_la-distributor.Plo \ ./$(DEPDIR)/libmusic_la-error.Plo \ ./$(DEPDIR)/libmusic_la-event_router.Plo \ ./$(DEPDIR)/libmusic_la-event_routing_map.Plo \ ./$(DEPDIR)/libmusic_la-index_map.Plo \ ./$(DEPDIR)/libmusic_la-index_map_factory.Plo \ ./$(DEPDIR)/libmusic_la-interval.Plo \ ./$(DEPDIR)/libmusic_la-ioutils.Plo \ ./$(DEPDIR)/libmusic_la-linear_index.Plo \ ./$(DEPDIR)/libmusic_la-memory.Plo \ ./$(DEPDIR)/libmusic_la-multibuffer.Plo \ ./$(DEPDIR)/libmusic_la-parse.Plo \ ./$(DEPDIR)/libmusic_la-permutation_index.Plo \ ./$(DEPDIR)/libmusic_la-port.Plo \ ./$(DEPDIR)/libmusic_la-predict_rank.Plo \ ./$(DEPDIR)/libmusic_la-runtime.Plo \ ./$(DEPDIR)/libmusic_la-sampler.Plo \ ./$(DEPDIR)/libmusic_la-scheduler.Plo \ ./$(DEPDIR)/libmusic_la-scheduler_agent.Plo \ ./$(DEPDIR)/libmusic_la-setup.Plo \ ./$(DEPDIR)/libmusic_la-spatial.Plo \ ./$(DEPDIR)/libmusic_la-subconnector.Plo \ ./$(DEPDIR)/libmusic_la-temporal.Plo \ ./$(DEPDIR)/libmusic_la-version.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = 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 = $(libmusic_c_la_SOURCES) $(libmusic_la_SOURCES) DIST_SOURCES = $(libmusic_c_la_SOURCES) $(libmusic_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 = $(libmusic_c_la_HEADERS) $(libmusic_la_HEADERS) \ $(musicinclude_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)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp \ ChangeLog DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = $(top_srcdir)/aclocal.sh AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BINDIR = @BINDIR@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXAMPLESDIR = @EXAMPLESDIR@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ FGREP = @FGREP@ GREP = @GREP@ HAVE_PYTHON = @HAVE_PYTHON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LAUNCHSTYLE = @LAUNCHSTYLE@ 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@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPI_CFLAGS = @MPI_CFLAGS@ MPI_CXXFLAGS = @MPI_CXXFLAGS@ MPI_LDFLAGS = @MPI_LDFLAGS@ MPI_UTILS = @MPI_UTILS@ MUSICCONFIGDIR = @MUSICCONFIGDIR@ MUSIC_ANYSOURCE = @MUSIC_ANYSOURCE@ MUSIC_HAVE_LONG_LONG = @MUSIC_HAVE_LONG_LONG@ MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER = @MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER@ MUSIC_HAVE_SIZE_T = @MUSIC_HAVE_SIZE_T@ MUSIC_ISENDWAITALL = @MUSIC_ISENDWAITALL@ MUSIC_USE_MPI = @MUSIC_USE_MPI@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPTIONAL_UTILS = @OPTIONAL_UTILS@ 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@ PKGDATADIR = @PKGDATADIR@ PKGEXTRABINDIR = @PKGEXTRABINDIR@ PYBUFFER_CPPFLAGS = @PYBUFFER_CPPFLAGS@ PYBUFFER_CXXFLAGS = @PYBUFFER_CXXFLAGS@ PYEXECDIR = @PYEXECDIR@ PYMUSIC_CPPFLAGS = @PYMUSIC_CPPFLAGS@ PYMUSIC_CXXFLAGS = @PYMUSIC_CXXFLAGS@ PYMUSIC_SUBDIR = @PYMUSIC_SUBDIR@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ ROS_SUBDIR = @ROS_SUBDIR@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTDIR = @TESTDIR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ lib_LTLIBRARIES = libmusic.la libmusic-c.la libmusic_la_SOURCES = \ runtime.cc music/runtime.hh \ setup.cc music/setup.hh \ error.cc music/error.hh music/debug.hh \ linear_index.cc music/linear_index.hh \ index_map.cc music/index_map.hh \ music/data_map.hh \ array_data.cc music/array_data.hh \ configuration.cc music/configuration.hh \ application_map.cc music/application_map.hh \ application_mapper.cc music/application_mapper.hh \ ioutils.cc music/ioutils.hh \ connectivity.cc music/connectivity.hh \ spatial.cc music/spatial.hh \ music/application_graph.hh \ temporal.cc music/temporal.hh \ parse.cc music/parse.hh \ port.cc music/port.hh \ sampler.cc music/sampler.hh \ event_router.cc music/event_router.hh \ event_routing_map.cc music/event_routing_map.hh \ distributor.cc music/distributor.hh \ collector.cc music/collector.hh \ clock.cc music/clock.hh \ subconnector.cc music/subconnector.hh \ connector.cc music/connector.hh \ multibuffer.cc music/multibuffer.hh \ connection.cc music/connection.hh \ permutation_index.cc music/permutation_index.hh \ index_map_factory.cc music/index_map_factory.hh \ scheduler_agent.cc music/scheduler_agent.hh \ scheduler.cc music/scheduler.hh \ BIFO.cc music/BIFO.hh \ FIBO.cc music/FIBO.hh music/message.hh \ interval.cc music/interval.hh music/interval_tree.hh \ music/interval_table.hh music/ordered_ilist.hh \ music/communication.hh music/memory.hh memory.cc \ music/predict_rank.hh predict_rank.cc \ music/version.hh version.cc libmusic_la_HEADERS = music.hh libmusic_la_CXXFLAGS = -I$(top_srcdir) @MPI_CXXFLAGS@ libmusic_la_LDFLAGS = $(top_builddir)/mpidep/libmpidep.la $(top_builddir)/rudeconfig/librudeconfig.la \ -version-info 1:0:0 -export-dynamic @MPI_LDFLAGS@ libmusic_ladir = $(includedir) libmusic_c_la_SOURCES = \ music-c.cc music-c-c.c music-c.h \ predict_rank-c.cc libmusic_c_la_HEADERS = music-c.h music/predict_rank-c.h libmusic_c_la_CXXFLAGS = -DBUILDING_MUSIC_LIBRARY @MPI_CXXFLAGS@ libmusic_c_la_CFLAGS = -DBUILDING_MUSIC_LIBRARY @MPI_CFLAGS@ libmusic_c_la_LDFLAGS = \ -version-info 1:0:0 -export-dynamic \ $(top_builddir)/src/libmusic.la @MPI_LDFLAGS@ libmusic_c_ladir = $(includedir) libmusic_c_la_DEPENDENCIES = libmusic.la musicincludedir = $(includedir)/music musicinclude_HEADERS = music/runtime.hh music/setup.hh \ music/interval.hh music/interval_tree.hh \ music/interval_table.hh music/ordered_ilist.hh \ music/index_map.hh music/data_map.hh \ music/linear_index.hh music/array_data.hh \ music/configuration.hh music/connectivity.hh \ music/application_map.hh music/ioutils.hh \ music/application_mapper.hh \ music/application_graph.hh \ music/spatial.hh music/temporal.hh music/error.hh \ music/debug.hh music/port.hh music/clock.hh \ music/connector.hh music/subconnector.hh \ music/connection.hh music/multibuffer.hh \ music/permutation_index.hh \ music/scheduler_agent.hh music/scheduler.hh \ music/index_map_factory.hh \ music/sampler.hh music/BIFO.hh \ music/FIBO.hh music/event_router.hh \ music/event_routing_map.hh \ music/collector.hh music/distributor.hh \ music/cont_data.hh music/event.hh \ music/message.hh music/music-config.hh \ music/predict_rank.hh music/predict_rank-c.h \ music/communication.hh music/version.hh \ music/memory.hh MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) all: all-am .SUFFIXES: .SUFFIXES: .c .cc .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): 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}; \ } libmusic-c.la: $(libmusic_c_la_OBJECTS) $(libmusic_c_la_DEPENDENCIES) $(EXTRA_libmusic_c_la_DEPENDENCIES) $(AM_V_CXXLD)$(libmusic_c_la_LINK) -rpath $(libdir) $(libmusic_c_la_OBJECTS) $(libmusic_c_la_LIBADD) $(LIBS) libmusic.la: $(libmusic_la_OBJECTS) $(libmusic_la_DEPENDENCIES) $(EXTRA_libmusic_la_DEPENDENCIES) $(AM_V_CXXLD)$(libmusic_la_LINK) -rpath $(libdir) $(libmusic_la_OBJECTS) $(libmusic_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_c_la-music-c-c.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_c_la-music-c.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_c_la-predict_rank-c.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-BIFO.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-FIBO.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-application_map.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-application_mapper.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-array_data.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-clock.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-collector.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-configuration.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-connection.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-connectivity.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-connector.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-distributor.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-event_router.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-event_routing_map.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-index_map.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-index_map_factory.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-interval.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-ioutils.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-linear_index.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-memory.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-multibuffer.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-parse.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-permutation_index.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-port.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-predict_rank.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-runtime.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-sampler.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-scheduler.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-scheduler_agent.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-setup.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-spatial.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-subconnector.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-temporal.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmusic_la-version.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__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libmusic_c_la-music-c-c.lo: music-c-c.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_c_la_CFLAGS) $(CFLAGS) -MT libmusic_c_la-music-c-c.lo -MD -MP -MF $(DEPDIR)/libmusic_c_la-music-c-c.Tpo -c -o libmusic_c_la-music-c-c.lo `test -f 'music-c-c.c' || echo '$(srcdir)/'`music-c-c.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_c_la-music-c-c.Tpo $(DEPDIR)/libmusic_c_la-music-c-c.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='music-c-c.c' object='libmusic_c_la-music-c-c.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_c_la_CFLAGS) $(CFLAGS) -c -o libmusic_c_la-music-c-c.lo `test -f 'music-c-c.c' || echo '$(srcdir)/'`music-c-c.c .cc.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 $@ $< .cc.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) '$<'` .cc.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 $@ $< libmusic_c_la-music-c.lo: music-c.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_c_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_c_la-music-c.lo -MD -MP -MF $(DEPDIR)/libmusic_c_la-music-c.Tpo -c -o libmusic_c_la-music-c.lo `test -f 'music-c.cc' || echo '$(srcdir)/'`music-c.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_c_la-music-c.Tpo $(DEPDIR)/libmusic_c_la-music-c.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='music-c.cc' object='libmusic_c_la-music-c.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_c_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_c_la-music-c.lo `test -f 'music-c.cc' || echo '$(srcdir)/'`music-c.cc libmusic_c_la-predict_rank-c.lo: predict_rank-c.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_c_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_c_la-predict_rank-c.lo -MD -MP -MF $(DEPDIR)/libmusic_c_la-predict_rank-c.Tpo -c -o libmusic_c_la-predict_rank-c.lo `test -f 'predict_rank-c.cc' || echo '$(srcdir)/'`predict_rank-c.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_c_la-predict_rank-c.Tpo $(DEPDIR)/libmusic_c_la-predict_rank-c.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='predict_rank-c.cc' object='libmusic_c_la-predict_rank-c.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_c_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_c_la-predict_rank-c.lo `test -f 'predict_rank-c.cc' || echo '$(srcdir)/'`predict_rank-c.cc libmusic_la-runtime.lo: runtime.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-runtime.lo -MD -MP -MF $(DEPDIR)/libmusic_la-runtime.Tpo -c -o libmusic_la-runtime.lo `test -f 'runtime.cc' || echo '$(srcdir)/'`runtime.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-runtime.Tpo $(DEPDIR)/libmusic_la-runtime.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='runtime.cc' object='libmusic_la-runtime.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-runtime.lo `test -f 'runtime.cc' || echo '$(srcdir)/'`runtime.cc libmusic_la-setup.lo: setup.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-setup.lo -MD -MP -MF $(DEPDIR)/libmusic_la-setup.Tpo -c -o libmusic_la-setup.lo `test -f 'setup.cc' || echo '$(srcdir)/'`setup.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-setup.Tpo $(DEPDIR)/libmusic_la-setup.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='setup.cc' object='libmusic_la-setup.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-setup.lo `test -f 'setup.cc' || echo '$(srcdir)/'`setup.cc libmusic_la-error.lo: error.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-error.lo -MD -MP -MF $(DEPDIR)/libmusic_la-error.Tpo -c -o libmusic_la-error.lo `test -f 'error.cc' || echo '$(srcdir)/'`error.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-error.Tpo $(DEPDIR)/libmusic_la-error.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='error.cc' object='libmusic_la-error.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-error.lo `test -f 'error.cc' || echo '$(srcdir)/'`error.cc libmusic_la-linear_index.lo: linear_index.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-linear_index.lo -MD -MP -MF $(DEPDIR)/libmusic_la-linear_index.Tpo -c -o libmusic_la-linear_index.lo `test -f 'linear_index.cc' || echo '$(srcdir)/'`linear_index.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-linear_index.Tpo $(DEPDIR)/libmusic_la-linear_index.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='linear_index.cc' object='libmusic_la-linear_index.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-linear_index.lo `test -f 'linear_index.cc' || echo '$(srcdir)/'`linear_index.cc libmusic_la-index_map.lo: index_map.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-index_map.lo -MD -MP -MF $(DEPDIR)/libmusic_la-index_map.Tpo -c -o libmusic_la-index_map.lo `test -f 'index_map.cc' || echo '$(srcdir)/'`index_map.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-index_map.Tpo $(DEPDIR)/libmusic_la-index_map.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='index_map.cc' object='libmusic_la-index_map.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-index_map.lo `test -f 'index_map.cc' || echo '$(srcdir)/'`index_map.cc libmusic_la-array_data.lo: array_data.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-array_data.lo -MD -MP -MF $(DEPDIR)/libmusic_la-array_data.Tpo -c -o libmusic_la-array_data.lo `test -f 'array_data.cc' || echo '$(srcdir)/'`array_data.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-array_data.Tpo $(DEPDIR)/libmusic_la-array_data.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='array_data.cc' object='libmusic_la-array_data.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-array_data.lo `test -f 'array_data.cc' || echo '$(srcdir)/'`array_data.cc libmusic_la-configuration.lo: configuration.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-configuration.lo -MD -MP -MF $(DEPDIR)/libmusic_la-configuration.Tpo -c -o libmusic_la-configuration.lo `test -f 'configuration.cc' || echo '$(srcdir)/'`configuration.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-configuration.Tpo $(DEPDIR)/libmusic_la-configuration.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='configuration.cc' object='libmusic_la-configuration.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-configuration.lo `test -f 'configuration.cc' || echo '$(srcdir)/'`configuration.cc libmusic_la-application_map.lo: application_map.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-application_map.lo -MD -MP -MF $(DEPDIR)/libmusic_la-application_map.Tpo -c -o libmusic_la-application_map.lo `test -f 'application_map.cc' || echo '$(srcdir)/'`application_map.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-application_map.Tpo $(DEPDIR)/libmusic_la-application_map.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='application_map.cc' object='libmusic_la-application_map.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-application_map.lo `test -f 'application_map.cc' || echo '$(srcdir)/'`application_map.cc libmusic_la-application_mapper.lo: application_mapper.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-application_mapper.lo -MD -MP -MF $(DEPDIR)/libmusic_la-application_mapper.Tpo -c -o libmusic_la-application_mapper.lo `test -f 'application_mapper.cc' || echo '$(srcdir)/'`application_mapper.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-application_mapper.Tpo $(DEPDIR)/libmusic_la-application_mapper.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='application_mapper.cc' object='libmusic_la-application_mapper.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-application_mapper.lo `test -f 'application_mapper.cc' || echo '$(srcdir)/'`application_mapper.cc libmusic_la-ioutils.lo: ioutils.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-ioutils.lo -MD -MP -MF $(DEPDIR)/libmusic_la-ioutils.Tpo -c -o libmusic_la-ioutils.lo `test -f 'ioutils.cc' || echo '$(srcdir)/'`ioutils.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-ioutils.Tpo $(DEPDIR)/libmusic_la-ioutils.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='ioutils.cc' object='libmusic_la-ioutils.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-ioutils.lo `test -f 'ioutils.cc' || echo '$(srcdir)/'`ioutils.cc libmusic_la-connectivity.lo: connectivity.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-connectivity.lo -MD -MP -MF $(DEPDIR)/libmusic_la-connectivity.Tpo -c -o libmusic_la-connectivity.lo `test -f 'connectivity.cc' || echo '$(srcdir)/'`connectivity.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-connectivity.Tpo $(DEPDIR)/libmusic_la-connectivity.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='connectivity.cc' object='libmusic_la-connectivity.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-connectivity.lo `test -f 'connectivity.cc' || echo '$(srcdir)/'`connectivity.cc libmusic_la-spatial.lo: spatial.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-spatial.lo -MD -MP -MF $(DEPDIR)/libmusic_la-spatial.Tpo -c -o libmusic_la-spatial.lo `test -f 'spatial.cc' || echo '$(srcdir)/'`spatial.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-spatial.Tpo $(DEPDIR)/libmusic_la-spatial.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='spatial.cc' object='libmusic_la-spatial.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-spatial.lo `test -f 'spatial.cc' || echo '$(srcdir)/'`spatial.cc libmusic_la-temporal.lo: temporal.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-temporal.lo -MD -MP -MF $(DEPDIR)/libmusic_la-temporal.Tpo -c -o libmusic_la-temporal.lo `test -f 'temporal.cc' || echo '$(srcdir)/'`temporal.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-temporal.Tpo $(DEPDIR)/libmusic_la-temporal.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='temporal.cc' object='libmusic_la-temporal.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-temporal.lo `test -f 'temporal.cc' || echo '$(srcdir)/'`temporal.cc libmusic_la-parse.lo: parse.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-parse.lo -MD -MP -MF $(DEPDIR)/libmusic_la-parse.Tpo -c -o libmusic_la-parse.lo `test -f 'parse.cc' || echo '$(srcdir)/'`parse.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-parse.Tpo $(DEPDIR)/libmusic_la-parse.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='parse.cc' object='libmusic_la-parse.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-parse.lo `test -f 'parse.cc' || echo '$(srcdir)/'`parse.cc libmusic_la-port.lo: port.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-port.lo -MD -MP -MF $(DEPDIR)/libmusic_la-port.Tpo -c -o libmusic_la-port.lo `test -f 'port.cc' || echo '$(srcdir)/'`port.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-port.Tpo $(DEPDIR)/libmusic_la-port.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='port.cc' object='libmusic_la-port.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-port.lo `test -f 'port.cc' || echo '$(srcdir)/'`port.cc libmusic_la-sampler.lo: sampler.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-sampler.lo -MD -MP -MF $(DEPDIR)/libmusic_la-sampler.Tpo -c -o libmusic_la-sampler.lo `test -f 'sampler.cc' || echo '$(srcdir)/'`sampler.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-sampler.Tpo $(DEPDIR)/libmusic_la-sampler.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sampler.cc' object='libmusic_la-sampler.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-sampler.lo `test -f 'sampler.cc' || echo '$(srcdir)/'`sampler.cc libmusic_la-event_router.lo: event_router.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-event_router.lo -MD -MP -MF $(DEPDIR)/libmusic_la-event_router.Tpo -c -o libmusic_la-event_router.lo `test -f 'event_router.cc' || echo '$(srcdir)/'`event_router.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-event_router.Tpo $(DEPDIR)/libmusic_la-event_router.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='event_router.cc' object='libmusic_la-event_router.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-event_router.lo `test -f 'event_router.cc' || echo '$(srcdir)/'`event_router.cc libmusic_la-event_routing_map.lo: event_routing_map.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-event_routing_map.lo -MD -MP -MF $(DEPDIR)/libmusic_la-event_routing_map.Tpo -c -o libmusic_la-event_routing_map.lo `test -f 'event_routing_map.cc' || echo '$(srcdir)/'`event_routing_map.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-event_routing_map.Tpo $(DEPDIR)/libmusic_la-event_routing_map.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='event_routing_map.cc' object='libmusic_la-event_routing_map.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-event_routing_map.lo `test -f 'event_routing_map.cc' || echo '$(srcdir)/'`event_routing_map.cc libmusic_la-distributor.lo: distributor.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-distributor.lo -MD -MP -MF $(DEPDIR)/libmusic_la-distributor.Tpo -c -o libmusic_la-distributor.lo `test -f 'distributor.cc' || echo '$(srcdir)/'`distributor.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-distributor.Tpo $(DEPDIR)/libmusic_la-distributor.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='distributor.cc' object='libmusic_la-distributor.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-distributor.lo `test -f 'distributor.cc' || echo '$(srcdir)/'`distributor.cc libmusic_la-collector.lo: collector.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-collector.lo -MD -MP -MF $(DEPDIR)/libmusic_la-collector.Tpo -c -o libmusic_la-collector.lo `test -f 'collector.cc' || echo '$(srcdir)/'`collector.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-collector.Tpo $(DEPDIR)/libmusic_la-collector.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='collector.cc' object='libmusic_la-collector.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-collector.lo `test -f 'collector.cc' || echo '$(srcdir)/'`collector.cc libmusic_la-clock.lo: clock.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-clock.lo -MD -MP -MF $(DEPDIR)/libmusic_la-clock.Tpo -c -o libmusic_la-clock.lo `test -f 'clock.cc' || echo '$(srcdir)/'`clock.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-clock.Tpo $(DEPDIR)/libmusic_la-clock.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='clock.cc' object='libmusic_la-clock.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-clock.lo `test -f 'clock.cc' || echo '$(srcdir)/'`clock.cc libmusic_la-subconnector.lo: subconnector.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-subconnector.lo -MD -MP -MF $(DEPDIR)/libmusic_la-subconnector.Tpo -c -o libmusic_la-subconnector.lo `test -f 'subconnector.cc' || echo '$(srcdir)/'`subconnector.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-subconnector.Tpo $(DEPDIR)/libmusic_la-subconnector.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='subconnector.cc' object='libmusic_la-subconnector.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-subconnector.lo `test -f 'subconnector.cc' || echo '$(srcdir)/'`subconnector.cc libmusic_la-connector.lo: connector.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-connector.lo -MD -MP -MF $(DEPDIR)/libmusic_la-connector.Tpo -c -o libmusic_la-connector.lo `test -f 'connector.cc' || echo '$(srcdir)/'`connector.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-connector.Tpo $(DEPDIR)/libmusic_la-connector.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='connector.cc' object='libmusic_la-connector.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-connector.lo `test -f 'connector.cc' || echo '$(srcdir)/'`connector.cc libmusic_la-multibuffer.lo: multibuffer.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-multibuffer.lo -MD -MP -MF $(DEPDIR)/libmusic_la-multibuffer.Tpo -c -o libmusic_la-multibuffer.lo `test -f 'multibuffer.cc' || echo '$(srcdir)/'`multibuffer.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-multibuffer.Tpo $(DEPDIR)/libmusic_la-multibuffer.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='multibuffer.cc' object='libmusic_la-multibuffer.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-multibuffer.lo `test -f 'multibuffer.cc' || echo '$(srcdir)/'`multibuffer.cc libmusic_la-connection.lo: connection.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-connection.lo -MD -MP -MF $(DEPDIR)/libmusic_la-connection.Tpo -c -o libmusic_la-connection.lo `test -f 'connection.cc' || echo '$(srcdir)/'`connection.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-connection.Tpo $(DEPDIR)/libmusic_la-connection.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='connection.cc' object='libmusic_la-connection.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-connection.lo `test -f 'connection.cc' || echo '$(srcdir)/'`connection.cc libmusic_la-permutation_index.lo: permutation_index.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-permutation_index.lo -MD -MP -MF $(DEPDIR)/libmusic_la-permutation_index.Tpo -c -o libmusic_la-permutation_index.lo `test -f 'permutation_index.cc' || echo '$(srcdir)/'`permutation_index.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-permutation_index.Tpo $(DEPDIR)/libmusic_la-permutation_index.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='permutation_index.cc' object='libmusic_la-permutation_index.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-permutation_index.lo `test -f 'permutation_index.cc' || echo '$(srcdir)/'`permutation_index.cc libmusic_la-index_map_factory.lo: index_map_factory.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-index_map_factory.lo -MD -MP -MF $(DEPDIR)/libmusic_la-index_map_factory.Tpo -c -o libmusic_la-index_map_factory.lo `test -f 'index_map_factory.cc' || echo '$(srcdir)/'`index_map_factory.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-index_map_factory.Tpo $(DEPDIR)/libmusic_la-index_map_factory.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='index_map_factory.cc' object='libmusic_la-index_map_factory.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-index_map_factory.lo `test -f 'index_map_factory.cc' || echo '$(srcdir)/'`index_map_factory.cc libmusic_la-scheduler_agent.lo: scheduler_agent.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-scheduler_agent.lo -MD -MP -MF $(DEPDIR)/libmusic_la-scheduler_agent.Tpo -c -o libmusic_la-scheduler_agent.lo `test -f 'scheduler_agent.cc' || echo '$(srcdir)/'`scheduler_agent.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-scheduler_agent.Tpo $(DEPDIR)/libmusic_la-scheduler_agent.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='scheduler_agent.cc' object='libmusic_la-scheduler_agent.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-scheduler_agent.lo `test -f 'scheduler_agent.cc' || echo '$(srcdir)/'`scheduler_agent.cc libmusic_la-scheduler.lo: scheduler.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-scheduler.lo -MD -MP -MF $(DEPDIR)/libmusic_la-scheduler.Tpo -c -o libmusic_la-scheduler.lo `test -f 'scheduler.cc' || echo '$(srcdir)/'`scheduler.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-scheduler.Tpo $(DEPDIR)/libmusic_la-scheduler.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='scheduler.cc' object='libmusic_la-scheduler.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-scheduler.lo `test -f 'scheduler.cc' || echo '$(srcdir)/'`scheduler.cc libmusic_la-BIFO.lo: BIFO.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-BIFO.lo -MD -MP -MF $(DEPDIR)/libmusic_la-BIFO.Tpo -c -o libmusic_la-BIFO.lo `test -f 'BIFO.cc' || echo '$(srcdir)/'`BIFO.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-BIFO.Tpo $(DEPDIR)/libmusic_la-BIFO.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='BIFO.cc' object='libmusic_la-BIFO.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-BIFO.lo `test -f 'BIFO.cc' || echo '$(srcdir)/'`BIFO.cc libmusic_la-FIBO.lo: FIBO.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-FIBO.lo -MD -MP -MF $(DEPDIR)/libmusic_la-FIBO.Tpo -c -o libmusic_la-FIBO.lo `test -f 'FIBO.cc' || echo '$(srcdir)/'`FIBO.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-FIBO.Tpo $(DEPDIR)/libmusic_la-FIBO.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='FIBO.cc' object='libmusic_la-FIBO.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-FIBO.lo `test -f 'FIBO.cc' || echo '$(srcdir)/'`FIBO.cc libmusic_la-interval.lo: interval.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-interval.lo -MD -MP -MF $(DEPDIR)/libmusic_la-interval.Tpo -c -o libmusic_la-interval.lo `test -f 'interval.cc' || echo '$(srcdir)/'`interval.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-interval.Tpo $(DEPDIR)/libmusic_la-interval.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='interval.cc' object='libmusic_la-interval.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-interval.lo `test -f 'interval.cc' || echo '$(srcdir)/'`interval.cc libmusic_la-memory.lo: memory.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-memory.lo -MD -MP -MF $(DEPDIR)/libmusic_la-memory.Tpo -c -o libmusic_la-memory.lo `test -f 'memory.cc' || echo '$(srcdir)/'`memory.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-memory.Tpo $(DEPDIR)/libmusic_la-memory.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='memory.cc' object='libmusic_la-memory.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-memory.lo `test -f 'memory.cc' || echo '$(srcdir)/'`memory.cc libmusic_la-predict_rank.lo: predict_rank.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-predict_rank.lo -MD -MP -MF $(DEPDIR)/libmusic_la-predict_rank.Tpo -c -o libmusic_la-predict_rank.lo `test -f 'predict_rank.cc' || echo '$(srcdir)/'`predict_rank.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-predict_rank.Tpo $(DEPDIR)/libmusic_la-predict_rank.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='predict_rank.cc' object='libmusic_la-predict_rank.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-predict_rank.lo `test -f 'predict_rank.cc' || echo '$(srcdir)/'`predict_rank.cc libmusic_la-version.lo: version.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -MT libmusic_la-version.lo -MD -MP -MF $(DEPDIR)/libmusic_la-version.Tpo -c -o libmusic_la-version.lo `test -f 'version.cc' || echo '$(srcdir)/'`version.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmusic_la-version.Tpo $(DEPDIR)/libmusic_la-version.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='version.cc' object='libmusic_la-version.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) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmusic_la_CXXFLAGS) $(CXXFLAGS) -c -o libmusic_la-version.lo `test -f 'version.cc' || echo '$(srcdir)/'`version.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-libmusic_c_laHEADERS: $(libmusic_c_la_HEADERS) @$(NORMAL_INSTALL) @list='$(libmusic_c_la_HEADERS)'; test -n "$(libmusic_c_ladir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(libmusic_c_ladir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libmusic_c_ladir)" || 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)$(libmusic_c_ladir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(libmusic_c_ladir)" || exit $$?; \ done uninstall-libmusic_c_laHEADERS: @$(NORMAL_UNINSTALL) @list='$(libmusic_c_la_HEADERS)'; test -n "$(libmusic_c_ladir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(libmusic_c_ladir)'; $(am__uninstall_files_from_dir) install-libmusic_laHEADERS: $(libmusic_la_HEADERS) @$(NORMAL_INSTALL) @list='$(libmusic_la_HEADERS)'; test -n "$(libmusic_ladir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(libmusic_ladir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libmusic_ladir)" || 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)$(libmusic_ladir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(libmusic_ladir)" || exit $$?; \ done uninstall-libmusic_laHEADERS: @$(NORMAL_UNINSTALL) @list='$(libmusic_la_HEADERS)'; test -n "$(libmusic_ladir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(libmusic_ladir)'; $(am__uninstall_files_from_dir) install-musicincludeHEADERS: $(musicinclude_HEADERS) @$(NORMAL_INSTALL) @list='$(musicinclude_HEADERS)'; test -n "$(musicincludedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(musicincludedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(musicincludedir)" || 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)$(musicincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(musicincludedir)" || exit $$?; \ done uninstall-musicincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(musicinclude_HEADERS)'; test -n "$(musicincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(musicincludedir)'; $(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)$(libdir)" "$(DESTDIR)$(libmusic_c_ladir)" "$(DESTDIR)$(libmusic_ladir)" "$(DESTDIR)$(musicincludedir)"; 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 \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/libmusic_c_la-music-c-c.Plo -rm -f ./$(DEPDIR)/libmusic_c_la-music-c.Plo -rm -f ./$(DEPDIR)/libmusic_c_la-predict_rank-c.Plo -rm -f ./$(DEPDIR)/libmusic_la-BIFO.Plo -rm -f ./$(DEPDIR)/libmusic_la-FIBO.Plo -rm -f ./$(DEPDIR)/libmusic_la-application_map.Plo -rm -f ./$(DEPDIR)/libmusic_la-application_mapper.Plo -rm -f ./$(DEPDIR)/libmusic_la-array_data.Plo -rm -f ./$(DEPDIR)/libmusic_la-clock.Plo -rm -f ./$(DEPDIR)/libmusic_la-collector.Plo -rm -f ./$(DEPDIR)/libmusic_la-configuration.Plo -rm -f ./$(DEPDIR)/libmusic_la-connection.Plo -rm -f ./$(DEPDIR)/libmusic_la-connectivity.Plo -rm -f ./$(DEPDIR)/libmusic_la-connector.Plo -rm -f ./$(DEPDIR)/libmusic_la-distributor.Plo -rm -f ./$(DEPDIR)/libmusic_la-error.Plo -rm -f ./$(DEPDIR)/libmusic_la-event_router.Plo -rm -f ./$(DEPDIR)/libmusic_la-event_routing_map.Plo -rm -f ./$(DEPDIR)/libmusic_la-index_map.Plo -rm -f ./$(DEPDIR)/libmusic_la-index_map_factory.Plo -rm -f ./$(DEPDIR)/libmusic_la-interval.Plo -rm -f ./$(DEPDIR)/libmusic_la-ioutils.Plo -rm -f ./$(DEPDIR)/libmusic_la-linear_index.Plo -rm -f ./$(DEPDIR)/libmusic_la-memory.Plo -rm -f ./$(DEPDIR)/libmusic_la-multibuffer.Plo -rm -f ./$(DEPDIR)/libmusic_la-parse.Plo -rm -f ./$(DEPDIR)/libmusic_la-permutation_index.Plo -rm -f ./$(DEPDIR)/libmusic_la-port.Plo -rm -f ./$(DEPDIR)/libmusic_la-predict_rank.Plo -rm -f ./$(DEPDIR)/libmusic_la-runtime.Plo -rm -f ./$(DEPDIR)/libmusic_la-sampler.Plo -rm -f ./$(DEPDIR)/libmusic_la-scheduler.Plo -rm -f ./$(DEPDIR)/libmusic_la-scheduler_agent.Plo -rm -f ./$(DEPDIR)/libmusic_la-setup.Plo -rm -f ./$(DEPDIR)/libmusic_la-spatial.Plo -rm -f ./$(DEPDIR)/libmusic_la-subconnector.Plo -rm -f ./$(DEPDIR)/libmusic_la-temporal.Plo -rm -f ./$(DEPDIR)/libmusic_la-version.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-libmusic_c_laHEADERS \ install-libmusic_laHEADERS install-musicincludeHEADERS 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)/libmusic_c_la-music-c-c.Plo -rm -f ./$(DEPDIR)/libmusic_c_la-music-c.Plo -rm -f ./$(DEPDIR)/libmusic_c_la-predict_rank-c.Plo -rm -f ./$(DEPDIR)/libmusic_la-BIFO.Plo -rm -f ./$(DEPDIR)/libmusic_la-FIBO.Plo -rm -f ./$(DEPDIR)/libmusic_la-application_map.Plo -rm -f ./$(DEPDIR)/libmusic_la-application_mapper.Plo -rm -f ./$(DEPDIR)/libmusic_la-array_data.Plo -rm -f ./$(DEPDIR)/libmusic_la-clock.Plo -rm -f ./$(DEPDIR)/libmusic_la-collector.Plo -rm -f ./$(DEPDIR)/libmusic_la-configuration.Plo -rm -f ./$(DEPDIR)/libmusic_la-connection.Plo -rm -f ./$(DEPDIR)/libmusic_la-connectivity.Plo -rm -f ./$(DEPDIR)/libmusic_la-connector.Plo -rm -f ./$(DEPDIR)/libmusic_la-distributor.Plo -rm -f ./$(DEPDIR)/libmusic_la-error.Plo -rm -f ./$(DEPDIR)/libmusic_la-event_router.Plo -rm -f ./$(DEPDIR)/libmusic_la-event_routing_map.Plo -rm -f ./$(DEPDIR)/libmusic_la-index_map.Plo -rm -f ./$(DEPDIR)/libmusic_la-index_map_factory.Plo -rm -f ./$(DEPDIR)/libmusic_la-interval.Plo -rm -f ./$(DEPDIR)/libmusic_la-ioutils.Plo -rm -f ./$(DEPDIR)/libmusic_la-linear_index.Plo -rm -f ./$(DEPDIR)/libmusic_la-memory.Plo -rm -f ./$(DEPDIR)/libmusic_la-multibuffer.Plo -rm -f ./$(DEPDIR)/libmusic_la-parse.Plo -rm -f ./$(DEPDIR)/libmusic_la-permutation_index.Plo -rm -f ./$(DEPDIR)/libmusic_la-port.Plo -rm -f ./$(DEPDIR)/libmusic_la-predict_rank.Plo -rm -f ./$(DEPDIR)/libmusic_la-runtime.Plo -rm -f ./$(DEPDIR)/libmusic_la-sampler.Plo -rm -f ./$(DEPDIR)/libmusic_la-scheduler.Plo -rm -f ./$(DEPDIR)/libmusic_la-scheduler_agent.Plo -rm -f ./$(DEPDIR)/libmusic_la-setup.Plo -rm -f ./$(DEPDIR)/libmusic_la-spatial.Plo -rm -f ./$(DEPDIR)/libmusic_la-subconnector.Plo -rm -f ./$(DEPDIR)/libmusic_la-temporal.Plo -rm -f ./$(DEPDIR)/libmusic_la-version.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-libmusic_c_laHEADERS \ uninstall-libmusic_laHEADERS uninstall-musicincludeHEADERS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libLTLIBRARIES clean-libtool 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-libmusic_c_laHEADERS install-libmusic_laHEADERS \ install-man install-musicincludeHEADERS 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-libLTLIBRARIES \ uninstall-libmusic_c_laHEADERS uninstall-libmusic_laHEADERS \ uninstall-musicincludeHEADERS .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: music-1.1.16/src/permutation_index.cc0000644000175000017500000000307213571617503014507 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ #include "music/permutation_index.hh" #include namespace MUSIC { PermutationIndex::PermutationIndex (GlobalIndex* indices, int size) { // NOTE: collapse adjacent intervals where possible? for (int i = 0; i < size; ++i) indices_.push_back (IndexInterval (indices[i], indices[i] + 1, indices[i] - i)); sort (indices_.begin (), indices_.end ()); } PermutationIndex::PermutationIndex (std::vector& indices) : indices_ (indices) { } IndexMap::iterator PermutationIndex::begin () { return IndexMap::iterator (new iterator (&indices_.front ())); } const IndexMap::iterator PermutationIndex::end () const { return IndexMap::iterator (new iterator (&indices_.back () + 1)); } IndexMap* PermutationIndex::copy () { return new PermutationIndex (indices_); } } music-1.1.16/src/event_routing_map.cc0000644000175000017500000000707113571617503014501 00000000000000/* * This file is part of MUSIC. * Copyright (C) 2008, 2009 INCF * * MUSIC 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. * * MUSIC 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 . */ //#define MUSIC_DEBUG //#include "music/music-config.hh" #include "music/event_router.hh" #include "music/event_routing_map.hh" namespace MUSIC { void OutputRoutingMap::insertRoutingInterval (EventRouter *router, IndexInterval i, FIBO *b) { OutputRoutingData data_ (i, b); router->insertRoutingData (i, data_); } OutputRoutingMap::~OutputRoutingMap() { delete intervals; } void OutputRoutingMap::insert (IndexInterval i, FIBO* data) { EventRoutingMap::insert (i, data); intervals->push_back (dataMap[data].back ()); } void OutputRoutingMap::fillRouter (EventRouter *router) { std::vector new_intervals = rebuildIntervals (*intervals); //std::vector new_intervals = *intervals; std::map >::iterator pos; for (pos = dataMap.begin (); pos != dataMap.end (); ++pos) { sort (pos->second.begin (), pos->second.end (), comp_obj); std::vector::iterator i = pos->second.begin (); if (router->needFewPoints ()) { // insert intervals without trying to close gaps while (i != pos->second.end ()) insertRoutingInterval (router, **i++, pos->first); continue; } std::vector::iterator mapped = new_intervals.begin (); while (i != pos->second.end ()) { IndexInterval current = **i++; while (i != pos->second.end () && (*i)->local () == current.local ()) { // Define the gap between current and next interval int gapBegin = current.end (); int gapEnd = (*i)->begin (); // Skip mapped intervals which end before gap while (mapped != new_intervals.end () && (*mapped).end () <= gapBegin){ ++mapped; } // Check that gap does not overlap with any mapped interval if (mapped != new_intervals.end () && (*mapped).begin () < gapEnd) break; // Join intervals by closing over gap current.setEnd ((*i)->end ()); ++i; } insertRoutingInterval (router, current, pos->first); } } } void InputRoutingMap::insertRoutingInterval (EventRouter *router, IndexInterval i, EventHandlerPtr *h) { if (h->getType () == Index::GLOBAL) { InputRoutingData data_ (i, h); router->insertRoutingData (i, data_); } else { InputRoutingData data_ (i, h); router->insertRoutingData (i, data_); } } void InputRoutingMap::fillRouter (EventRouter *router) { std::map >::iterator pos; for (pos = dataMap.begin (); pos != dataMap.end (); ++pos) { std::vector new_intervals = rebuildIntervals (((*pos).second)); std::vector::iterator i = new_intervals.begin (); while (i != new_intervals.end ()) insertRoutingInterval (router, *i++, (*pos).first); } } } music-1.1.16/configure.ac0000644000175000017500000002655413571617503012153 00000000000000dnl Process this file with autoconf to produce configure. AC_INIT(music, 1.1.16) AM_INIT_AUTOMAKE AM_CONFIG_HEADER([config.h]) AM_MAINTAINER_MODE if test "$MPI_CXX" != ""; then CXX="$MPI_CXX" fi AC_PROG_CXX([mpiCC mpixlcxx mpixlcxx_r mpicxx CC]) MPI_CXX="$CXX" AC_MSG_CHECKING([which MPI system we think we are using]) case "$MPI_CXX" in mpiCC) changequote({, }) MPI_C=mpicc if $MPI_CXX -compile_info >/dev/null 2>/dev/null; then SYSGUESS=mpich CXX="`$MPI_CXX -compile_info | sed -e 's/^\([^ ]*\).*/\1/'`" else # mpiCC can be a C compiler under OpenMPI if mpicxx -showme >/dev/null 2>/dev/null; then SYSGUESS=openmpi CXX="`mpicxx -showme | sed -e 's/^\([^ ]*\).*/\1/'`" else changequote([, ]) AC_MSG_ERROR([ Confused when trying to determine MPI_CXX, MPI_CXXFLAGS etc. Please set them manually.]) changequote({, }) fi fi LAUNCHSTYLE=_mpirun TESTDIR=testsuite EXTRAS=extras changequote([, ]) ;; mpixlcxx_r) MPI_C=mpixlc_r SYSGUESS=bgp CXX="$MPI_CXX" #CC="`echo $MPI_CXX | sed -e 's/xlcxx$/xlc/;s/cxx$/cc/'`" CC="$MPI_C" ;; mpixlcxx) MPI_C=mpixlc SYSGUESS=bgq CXX="$MPI_CXX" #CC="`echo $MPI_CXX | sed -e 's/xlcxx$/xlc/;s/cxx$/cc/'`" CC="$MPI_C" ;; mpicxx) MPI_C=mpicc CC="$MPI_C" CXX="$MPI_CXX" if mpich2version >/dev/null 2>/dev/null; then SYSGUESS=mpich2 AC_DEFINE(HAVE_MPICH2, 1, [Define to 1 if you have MPICH2.]) else SYSGUESS=bgl fi ;; CC) # We should be checking MPI version but for the Cray we do it differently if uname -r | grep -q cray_gem_s; then SYSGUESS=cray_xe6 AC_DEFINE(CRAY_XE6, 1, [Define if this is a Cray XE6 system.]) CC=cc CXX=CC else SYSGUESS=unknown fi ;; xlC) MPI_C=xlc SYSGUESS=bgq_seq CXX="$MPI_CXX" CC="$MPI_C" ;; *) SYSGUESS=unknown ;; esac echo "SYSGUESS=$SYSGUESS" AC_MSG_CHECKING(MPI_CXXFLAGS) if test "$MPI_CXXFLAGS" != ""; then echo "$MPI_CXXFLAGS" else case "$SYSGUESS" in mpich|mpich2) changequote(<, >) MPI_CXXFLAGS="`$MPI_CXX -compile_info | sed -e 's/^[^ ]* //;s/ -c / /'`" changequote([, ]) ;; openmpi) MPI_CXXFLAGS="`mpicxx -showme:compile`" ;; bgp) MPI_CXXFLAGS="-qarch=450 -qtune=450 -qhot -qnostrict" enable_shared=no ;; bgq) MPI_CXXFLAGS="-qarch=qp -qtune=qp -qhot -qnostrict" enable_shared=no ;; cray_xe6) MPI_CXXFLAGS="" ;; bgq_seq) MPI_CXXFLAGS="" enable_shared=no ;; *) AC_MSG_ERROR([ Could not determine proper value for MPI_CXXFLAGS. Please see README.]) ;; esac echo "$MPI_CXXFLAGS" fi AC_MSG_CHECKING(MPI_CFLAGS) if test "$MPI_CFLAGS" != ""; then echo "$MPI_CFLAGS" else case "$SYSGUESS" in mpich|mpich2) changequote(<, >) MPI_CFLAGS="`$MPI_C -compile_info | sed -e 's/^[^ ]* //;s/ -c / /'`" changequote([, ]) ;; openmpi) MPI_CFLAGS="`mpicc -showme:compile`" ;; bgp) MPI_CFLAGS="-qarch=450 -qtune=450 -qhot -qnostrict" enable_shared=no ;; bgq) MPI_CFLAGS="-qarch=qp -qtune=qp -qhot -qnostrict" enable_shared=no ;; cray_xe6) MPI_CFLAGS="" ;; bgq_seq) MPI_CFLAGS="" enable_shared=no ;; *) AC_MSG_ERROR([ Could not determine proper value for MPI_CFLAGS. Please see README.]) ;; esac echo "$MPI_CFLAGS" fi AC_MSG_CHECKING(MPI_LDFLAGS) if test "$MPI_LDFLAGS" != ""; then echo "$MPI_LDFLAGS" else case "$SYSGUESS" in mpich|mpich2) changequote(<, >) MPI_LDFLAGS="`$MPI_CXX -link_info | sed -e 's/^[^ ]* //;s/ -c / /'`" changequote([, ]) ;; openmpi) MPI_LDFLAGS="`mpicxx -showme:link`" ;; bgp|bgq|cray_xe6|bgq_seq) MPI_LDFLAGS="" ;; *) AC_MSG_ERROR([ Could not determine proper value for MPI_LDFLAGS. Please see README.]) ;; esac echo "$MPI_LDFLAGS" fi CXXFLAGS="-g -O3" #if test "$ac_test_CXXFLAGS" != set; then # if test "$CXXFLAGS" = "-O2"; then # CXXFLAGS="-O3" # else # CXXFLAGS="-O2" # CXXFLAGS="-g -O0" if test $CXX = g++; then CXXFLAGS="-pedantic -Wall -Wno-long-long $CXXFLAGS" fi # fi #fi AC_PROG_CC AC_PROG_LIBTOOL dnl Checks for rudeconfig: AC_HEADER_STDC AC_C_CONST AC_C_INLINE AC_TYPE_SIZE_T AC_CHECK_TYPES([long long]) AC_CHECK_FUNCS([strrchr mallinfo]) dnl Other checks OPTIONAL_UTILS="" AC_CHECK_HEADER([GL/glut.h], OPTIONAL_UTILS+="viewevents ") AC_LANG_PUSH(C++) save_CXX="$CXX" save_LIBS="$LIBS" dnl Must use $CXX, not $MPI_CXX, here CXX="$CXX $MPI_CXXFLAGS" LIBS="$LIBS $MPI_LDFLAGS" AC_CHECK_FUNCS([rts_get_personality ompi_comm_free MPI_Comm_create_errhandler]) AC_MSG_CHECKING([for MPI::Init_thread method]) ac_have_cxx_mpi_init_thread=no AC_COMPILE_IFELSE( [AC_LANG_SOURCE([ #include int main (int argc, char **argv) { int res = MPI::Init_thread (argc, argv, 0); } ])], AC_DEFINE(HAVE_CXX_MPI_INIT_THREAD, 1, [Define to 1 if you have the MPI::Init_thread method]) ac_have_cxx_mpi_init_thread=yes ) AC_MSG_RESULT($ac_have_cxx_mpi_init_thread) AC_ARG_ENABLE(mpi, [ --disable-mpi disable mpi support], MUSIC_USE_MPI="$enableval", MUSIC_USE_MPI="yes") if test $MUSIC_USE_MPI = yes ; then MUSIC_USE_MPI=1 MPI_UTILS="eventsource eventsink eventselect eventgenerator eventcounter eventlogger contsink messagesource" EXAMPLESDIR="examples" else MUSIC_USE_MPI=0 MPI_UTILS="" OPTIONAL_UTILS="" EXAMPLESDIR="" fi AM_CONDITIONAL([COND_USE_MPI], [test x$MUSIC_USE_MPI = x1]) AC_ARG_ENABLE(isend, [ --disable-isend disable isend], MUSIC_ISENDWAITALL="$enableval", MUSIC_ISENDWAITALL="yes") if test $MUSIC_ISENDWAITALL = yes ; then MUSIC_ISENDWAITALL=1 else MUSIC_ISENDWAITALL=0 fi AC_ARG_ENABLE(anysource, [ --disable-anysource disable any source receive], MUSIC_ANYSOURCE="$enableval", MUSIC_ANYSOURCE="yes") if test $MUSIC_ANYSOURCE = yes ; then MUSIC_ANYSOURCE=1 else MUSIC_ANYSOURCE=0 fi LIBS="$save_LIBS" CXX="$save_CXX" AC_LANG_POP(C++) if test $ac_cv_type_size_t = yes; then MUSIC_HAVE_SIZE_T=1 else MUSIC_HAVE_SIZE_T=0 fi if test $ac_cv_type_long_long = yes; then MUSIC_HAVE_LONG_LONG=1 else MUSIC_HAVE_LONG_LONG=0 fi if test $ac_cv_func_MPI_Comm_create_errhandler = yes; then MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER=1 else MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER=0 fi # Pre-evaluating some autoconf variables if test "x$prefix" = xNONE; then PREFIX=$ac_default_prefix prefix=$PREFIX else PREFIX="$prefix" fi if test "x$exec_prefix" = xNONE; then EXEC_PREFIX="$PREFIX" exec_prefix=$EXEC_PREFIX else EXEC_PREFIX="`eval echo $exec_prefix`" fi if test "x$bindir" = 'x${exec_prefix}/bin'; then BINDIR="$EXEC_PREFIX/bin" else BINDIR="`eval echo $bindir`" fi if test "x$libdir" = 'x${exec_prefix}/lib'; then LIBDIR="$EXEC_PREFIX/lib" else LIBDIR="`eval echo $libdir`" fi if test "x$datarootdir" = 'x${prefix}/share'; then DATAROOTDIR="$PREFIX/share" else DATAROOTDIR="`eval echo $datarootdir`" fi if test "x$datadir" = 'x${datarootdir}'; then DATADIR="$DATAROOTDIR" else DATADIR="`eval echo $datadir`" fi PKGDATADIR="$DATADIR/$PACKAGE-$PACKAGE_VERSION" PKGEXTRABINDIR="$LIBDIR/$PACKAGE-$PACKAGE_VERSION" #TEST_SH_LIST=${srcdir}/*.test AC_ARG_WITH([python], [AS_HELP_STRING([--without-python], [ignore the presence of Python and disable PyMUSIC])]) AS_IF([test "x$with_python" != "xno"], [AS_IF([test "x$with_python" != "xyes"], [PYTHON="$with_python"]) AM_PATH_PYTHON([2.6], [have_python=yes], [have_python=no])], [have_python=no]) AS_IF([test "x$have_python" = "xyes"], [ PYTHON_INC=`$PYTHON -c 'import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_inc())'` AC_CHECK_FILE(["${PYTHON_INC}/Python.h"], [PYMUSIC_CPPFLAGS="-I${PYTHON_INC}"; PYBUFFER_CPPFLAGS="-I${PYTHON_INC}"], [have_python=no]) ]) AC_MSG_CHECKING([whether to build PyMUSIC]) AS_IF([test "x$have_python" = "xyes"], [], [AS_IF([test "x$with_python" = "xyes"], [AC_MSG_ERROR([PyMUSIC requested, but Python not found])])]) AC_MSG_RESULT([$have_python]) AX_CHECK_COMPILE_FLAG([-fno-strict-aliasing], [PYMUSIC_CXXFLAGS="-fno-strict-aliasing"; PYBUFFER_CXXFLAGS="-fno-strict-aliasing"], []) PYMUSIC_SUBDIR="" if test -z "${COND_USE_MPI_TRUE}"; then # FIXME: this means that --without-python make will not recurse into pymusic subdir if test "x$have_python" = "xyes"; then MUSICCONFIGDIR="music-config" PYMUSIC_SUBDIR="pymusic" fi AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"]) AC_ARG_ENABLE([deb], [ --enable-deb use deb package layout for install], [case "${enableval}" in yes) deb_package=true ;; no) deb_package=false ;; *) deb_package=true ;; esac],[deb_package=false]) AM_CONDITIONAL([DEB_PACKAGE], [test x$deb_package = xtrue]) if test x$deb_package = xtrue; then pythondir="\${exec_prefix}/lib/python3/dist-packages" pyexecdir="\${exec_prefix}/lib/python3/dist-packages" fi # if Python is found, configure and compile PyMUSIC if test "x$have_python" = "xyes" ; then AC_CONFIG_FILES(pymusic/Makefile) AC_CONFIG_FILES(pymusic/examples/Makefile) AC_CONFIG_FILES(pymusic/setup.py) fi fi AC_MSG_CHECKING([whether to build ROS Toolchain]) AC_ARG_WITH([ros]) ROS_SUBDIR="" AS_IF([test "x$with_ros" = "xyes"], [ROS_SUBDIR="ros"], [with_ros=no]) AC_MSG_RESULT([$with_ros]) # if ROS is to be compiled if test "x$with_ros" = "xyes" ; then AC_CONFIG_FILES(ros/Makefile) AC_CONFIG_FILES(ros/adapters/Makefile) AC_CONFIG_FILES(ros/encoder/Makefile) AC_CONFIG_FILES(ros/decoder/Makefile) fi AC_SUBST([HAVE_PYTHON]) AC_SUBST([MUSICCONFIGDIR]) AC_SUBST([PYMUSIC_SUBDIR]) AC_SUBST([ROS_SUBDIR]) AC_SUBST([PYEXECDIR], ${pyexecdir}) AC_SUBST([PYTHON]) AC_SUBST([PYTHON_VERSION]) AC_SUBST([PYMUSIC_CPPFLAGS]) AC_SUBST([PYMUSIC_CXXFLAGS]) AC_SUBST([PYBUFFER_CPPFLAGS]) AC_SUBST([PYBUFFER_CXXFLAGS]) AC_SUBST(MPI_CXXFLAGS) AC_SUBST(MPI_CFLAGS) AC_SUBST(MPI_LDFLAGS) AC_SUBST(MUSIC_HAVE_SIZE_T) AC_SUBST(MUSIC_HAVE_LONG_LONG) AC_SUBST(MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER) AC_SUBST(MUSIC_USE_MPI) AC_SUBST(MUSIC_ISENDWAITALL) AC_SUBST(MUSIC_ANYSOURCE) AC_SUBST(MPI_UTILS) AC_SUBST(OPTIONAL_UTILS) AC_SUBST(TESTDIR) AC_SUBST(EXAMPLESDIR) AC_SUBST(EXTRAS) AC_SUBST(BINDIR) AC_SUBST(PKGDATADIR) AC_SUBST(PKGEXTRABINDIR) AC_SUBST(LAUNCHSTYLE) AM_CONDITIONAL([LAUNCHSTYLE_SET], [test ! -z "$LAUNCHSTYLE"]) #AC_SUBST([TEST_SH_LIST]) AM_CONDITIONAL([DARWIN], [test $(uname) = Darwin]) AC_CONFIG_FILES([ Makefile mpidep/Makefile src/Makefile src/music/music-config.hh src/music/version.hh rudeconfig/Makefile utils/Makefile examples/Makefile testsuite/Makefile testsuite/music_tests testsuite/unittests/catch/Makefile testsuite/sanitytests/Makefile music-config/Makefile music-config/predict_rank.py doc/Makefile extras/Makefile ]) AC_OUTPUT if test "$ac_cv_header_GL_glut_h" = "no"; then AC_MSG_NOTICE([ NOTE: viewevents will not be built since the GL/glut.h header was not found on this system. This is no problem unless you plan to view spiking activity graphically.]) fi dnl Local Variables: dnl comment-start: "dnl " dnl comment-end: "" dnl comment-start-skip: "\\bdnl\\b\\s *" dnl End: music-1.1.16/README0000644000175000017500000001032613571617503010533 00000000000000* What is MUSIC? MUSIC is an API allowing large scale neuron simulators using MPI internally to exchange data during runtime. MUSIC provides mechanisms to transfer massive amounts of event information and continuous values from one parallel application to another. Special care has been taken to ensure that existing simulators can be adapted to MUSIC. In particular, MUSIC handles data transfer between applications that use different time steps and different data allocation strategies. This is the MUSIC pilot implementation. The two most important components built from this software distribution is the music library `libmusic.a' and the music utility `music'. A MUSIC-aware simulator links against the C++ library and can be launched using mpirun together with the music utility as described below. MUSIC can also be used from a C program using the API in music-c.h. MUSIC is distributed under the GNU General Public License v3. * Required external packages MUSIC is written in C++ and makes use of the MPI message passing library. MUSIC has been tested with versions 1.2 and 1.3 of OpenMPI, mpich and on BG/L. A visualization tool `viewevents' can be built if the GLUT toolkit is installed. MUSIC version 1.0 makes use of the "long long" data type supported by, for example, the GNU C++ compiler g++. * Getting started MUSIC can be built and installed using the generic installation instructions found in the file INSTALL. At the top of the source distribution directory, do: ./autogen.sh ./configure --prefix= make make install (On some UNIX distributions you might need to run `ldconfig' or define LD_LIBRARY_PATH: export LD_LIBRARY_PATH=/usr/local/lib for the music utility to find its library.) A MUSIC co-simulation is specified in a configuration file given as the first argument to the music utility. The test subdirectory contains a collection of examples, for example: cd test mpirun -np 4 /usr/local/bin/music demo.music On some systems, this way of invoking a MUSIC co-simulation isn't supported. Se blow for an alternative method. * Compilation and linking flags configure.ac contains mechanisms which try to identify which MPI implementation/environment is in use and, based on this, decide automagically which compiler, compilation flags and linking flags to use. To circumvent, pass variable definitions ro configure, e.g.: ./configure MPI_CXXFLAGS="-g -O3" The variables are: MPI_CXX The compiler to use for MPI code MPI_CXXFLAGS C++ compilation flags MPI_CFLAGS C compilation flags MPI_LDFLAGS Linking flags * Porting When launching a set of applications in a co-simulation, MUSIC needs to go outside the MPI standard in two respects: 1. It needs to know the MPI process rank of the running process before calling MPI::Init. 2. It needs to extract the first argument given to the music utility before calling MPI::Init. The configuration script tries to figure out which MPI distribution is installed and how to compiler MUSIC for that distribution. The subdirectory mpidep contains all non-standard code. If you are trying to port the MUSIC library to a new version of MPI, please supply new definitions for the functions getRank and getConfig in mpidep/mpidep.c. For more details, see the file PORTING in this directory. * Alternative way to invoke MUSIC co-simulations In case the method of launching MUSIC described under "Getting started" above fails, there is an alternative method: Let's assume that we want to launch application A with binary a and Na processes, and application B with binary b and Nb processes. These are listed in a standard MUSIC config file ab.music with block labels A and B. The standard way to launch these would be: mpirun -np music ab.music (where is a number). These can alternatively be launched in MPMD style as: mpirun -np Na ./a --music-config ab.music --app-label A : -np Nb ./b --music-config ab.music --app-label B * Where to find more information The MUSIC manual and other information can be found on the MUSIC wiki: https://github.com/INCF/MUSIC/wiki Questions and requests can be sent to mdj@pdc.kth.se. * Submitting bug reports Bug reports should be submitted as issues on the MUSIC github page: https://github.com/INCF/MUSIC/issues music-1.1.16/INSTALL0000644000175000017500000002231013571617503010700 00000000000000Installation Instructions ************************* Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, 2006 Free Software Foundation, Inc. This file is free documentation; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Basic Installation ================== Briefly, the shell commands `./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. 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. 4. Type `make install' to install the programs and any data files and documentation. 5. 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. 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 `..'. 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. 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'. 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. 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'. Optional Features ================= 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. Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf bug. Until the bug is fixed you can use this workaround: CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of the options to `configure', and exit. `--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. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. music-1.1.16/aclocal.m40000644000175000017500000135735313571626607011537 00000000000000# generated automatically by aclocal 1.16.1 -*- Autoconf -*- # Copyright (C) 1996-2018 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # Copyright (C) 2002-2018 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.1], [], [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.1])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-2018 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-2018 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-2018 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-2018 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. 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-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2018 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-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering # Copyright (C) 1996-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAINTAINER_MODE([DEFAULT-MODE]) # ---------------------------------- # Control maintainer-specific portions of Makefiles. # Default is to disable them, unless 'enable' is passed literally. # For symmetry, 'disable' may be passed as well. Anyway, the user # can override the default with the --enable/--disable switch. AC_DEFUN([AM_MAINTAINER_MODE], [m4_case(m4_default([$1], [disable]), [enable], [m4_define([am_maintainer_other], [disable])], [disable], [m4_define([am_maintainer_other], [enable])], [m4_define([am_maintainer_other], [enable]) m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode's default is 'disable' unless 'enable' is passed AC_ARG_ENABLE([maintainer-mode], [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], am_maintainer_other[ make rules and dependencies not useful (and sometimes confusing) to the casual installer])], [USE_MAINTAINER_MODE=$enableval], [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST([MAINT])dnl ] ) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2018 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-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # -*- Autoconf -*- # Obsolete and "removed" macros, that must however still report explicit # error messages when used, to smooth transition. # # Copyright (C) 1996-2018 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. AC_DEFUN([AM_CONFIG_HEADER], [AC_DIAGNOSE([obsolete], ['$0': this macro is obsolete. You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl AC_CONFIG_HEADERS($@)]) AC_DEFUN([AM_PROG_CC_STDC], [AC_PROG_CC am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc AC_DIAGNOSE([obsolete], ['$0': this macro is obsolete. You should simply use the 'AC][_PROG_CC' macro instead. Also, your code should no longer depend upon 'am_cv_prog_cc_stdc', but upon 'ac_cv_prog_cc_stdc'.])]) AC_DEFUN([AM_C_PROTOTYPES], [AC_FATAL([automatic de-ANSI-fication support has been removed])]) AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2018 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-2018 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) 1999-2018 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_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # --------------------------------------------------------------------------- # Adds support for distributing Python modules and packages. To # install modules, copy them to $(pythondir), using the python_PYTHON # automake variable. To install a package with the same name as the # automake package, install to $(pkgpythondir), or use the # pkgpython_PYTHON automake variable. # # The variables $(pyexecdir) and $(pkgpyexecdir) are provided as # locations to install python extension modules (shared libraries). # Another macro is required to find the appropriate flags to compile # extension modules. # # If your package is configured with a different prefix to python, # users will have to add the install directory to the PYTHONPATH # environment variable, or create a .pth file (see the python # documentation for details). # # If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will # cause an error if the version of python installed on the system # doesn't meet the requirement. MINIMUM-VERSION should consist of # numbers and dots only. AC_DEFUN([AM_PATH_PYTHON], [ dnl Find a Python interpreter. Python versions prior to 2.0 are not dnl supported. (2.0 was released on October 16, 2000). m4_define_default([_AM_PYTHON_INTERPRETER_LIST], [python python2 python3 dnl python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl python3.2 python3.1 python3.0 dnl python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 dnl python2.0]) AC_ARG_VAR([PYTHON], [the Python interpreter]) m4_if([$1],[],[ dnl No version check is needed. # Find any Python interpreter. if test -z "$PYTHON"; then AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :) fi am_display_PYTHON=python ], [ dnl A version check is needed. if test -n "$PYTHON"; then # If the user set $PYTHON, use it and don't search something else. AC_MSG_CHECKING([whether $PYTHON version is >= $1]) AM_PYTHON_CHECK_VERSION([$PYTHON], [$1], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) AC_MSG_ERROR([Python interpreter is too old])]) am_display_PYTHON=$PYTHON else # Otherwise, try each interpreter until we find one that satisfies # VERSION. AC_CACHE_CHECK([for a Python interpreter with version >= $1], [am_cv_pathless_PYTHON],[ for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do test "$am_cv_pathless_PYTHON" = none && break AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break]) done]) # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. if test "$am_cv_pathless_PYTHON" = none; then PYTHON=: else AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON]) fi am_display_PYTHON=$am_cv_pathless_PYTHON fi ]) if test "$PYTHON" = :; then dnl Run any user-specified action, or abort. m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])]) else dnl Query Python for its version number. Getting [:3] seems to be dnl the best way to do this; it's what "site.py" does in the standard dnl library. AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version], [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`]) AC_SUBST([PYTHON_VERSION], [$am_cv_python_version]) dnl Use the values of $prefix and $exec_prefix for the corresponding dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made dnl distinct variables so they can be overridden if need be. However, dnl general consensus is that you shouldn't need this ability. AC_SUBST([PYTHON_PREFIX], ['${prefix}']) AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}']) dnl At times (like when building shared libraries) you may want dnl to know which OS platform Python thinks this is. AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform], [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`]) AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform]) # Just factor out some code duplication. am_python_setup_sysconfig="\ import sys # Prefer sysconfig over distutils.sysconfig, for better compatibility # with python 3.x. See automake bug#10227. try: import sysconfig except ImportError: can_use_sysconfig = 0 else: can_use_sysconfig = 1 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: # try: from platform import python_implementation if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7': can_use_sysconfig = 0 except ImportError: pass" dnl Set up 4 directories: dnl pythondir -- where to install python scripts. This is the dnl site-packages directory, not the python standard library dnl directory like in previous automake betas. This behavior dnl is more consistent with lispdir.m4 for example. dnl Query distutils for this directory. AC_CACHE_CHECK([for $am_display_PYTHON script directory], [am_cv_python_pythondir], [if test "x$prefix" = xNONE then am_py_prefix=$ac_default_prefix else am_py_prefix=$prefix fi am_cv_python_pythondir=`$PYTHON -c " $am_python_setup_sysconfig if can_use_sysconfig: sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) else: from distutils import sysconfig sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') sys.stdout.write(sitedir)"` case $am_cv_python_pythondir in $am_py_prefix*) am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` ;; *) case $am_py_prefix in /usr|/System*) ;; *) am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages ;; esac ;; esac ]) AC_SUBST([pythondir], [$am_cv_python_pythondir]) dnl pkgpythondir -- $PACKAGE directory under pythondir. Was dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is dnl more consistent with the rest of automake. AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE]) dnl pyexecdir -- directory for installing python extension modules dnl (shared libraries) dnl Query distutils for this directory. AC_CACHE_CHECK([for $am_display_PYTHON extension module directory], [am_cv_python_pyexecdir], [if test "x$exec_prefix" = xNONE then am_py_exec_prefix=$am_py_prefix else am_py_exec_prefix=$exec_prefix fi am_cv_python_pyexecdir=`$PYTHON -c " $am_python_setup_sysconfig if can_use_sysconfig: sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) else: from distutils import sysconfig sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') sys.stdout.write(sitedir)"` case $am_cv_python_pyexecdir in $am_py_exec_prefix*) am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` ;; *) case $am_py_exec_prefix in /usr|/System*) ;; *) am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages ;; esac ;; esac ]) AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir]) dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE) AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE]) dnl Run any user-specified action. $2 fi ]) # AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) # --------------------------------------------------------------------------- # Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION. # Run ACTION-IF-FALSE otherwise. # 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([AM_PYTHON_CHECK_VERSION], [prog="import sys # 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 minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]] minverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]] sys.exit(sys.hexversion < minverhex)" AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])]) # Copyright (C) 2001-2018 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-2018 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-2018 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-2018 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-2018 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-2018 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 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996-2001, 2003-2015 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 58 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_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, # which needs '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _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 # 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], [[!?.]$], [], [.]) )]) # _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 cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR cru 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*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10.[[012]][[,.]]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _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], [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 `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" 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 `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} : ${AR_FLAGS=cru} _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1], [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* | 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 -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac 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*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 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*) # 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='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) 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++, # 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*) # 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 == "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*) _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++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) _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 ;; 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(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 == "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++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC _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 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*) _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' ;; 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 ;; 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 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*) # Native MSVC # 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 ;; 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*) # 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 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 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_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 # Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004-2005, 2007-2009, 2011-2015 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 # _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], []) 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])]) # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007-2008, 2011-2015 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 ]) # ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004, 2011-2015 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 4179 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.4.6]) m4_define([LT_PACKAGE_REVISION], [2.4.6]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.6' macro_revision='2.4.6' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 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])]) m4_include([acinclude.m4]) music-1.1.16/acinclude.m40000644000175000017500000000623613571617503012051 00000000000000# =========================================================================== # 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. 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 music-1.1.16/depcomp0000755000175000017500000005602013571626611011231 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2018-03-07.03; # UTC # Copyright (C) 1999-2018 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: music-1.1.16/Makefile.in0000644000175000017500000006536613571626611011736 00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 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@ subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = src/music/music-config.hh src/music/version.hh 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)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(top_srcdir)/src/music/music-config.hh.in \ $(top_srcdir)/src/music/version.hh.in AUTHORS COPYING \ ChangeLog INSTALL NEWS README TODO compile config.guess \ config.sub install-sh ltmain.sh missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BINDIR = @BINDIR@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXAMPLESDIR = @EXAMPLESDIR@ EXEEXT = @EXEEXT@ EXTRAS = @EXTRAS@ FGREP = @FGREP@ GREP = @GREP@ HAVE_PYTHON = @HAVE_PYTHON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LAUNCHSTYLE = @LAUNCHSTYLE@ 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@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MPI_CFLAGS = @MPI_CFLAGS@ MPI_CXXFLAGS = @MPI_CXXFLAGS@ MPI_LDFLAGS = @MPI_LDFLAGS@ MPI_UTILS = @MPI_UTILS@ MUSICCONFIGDIR = @MUSICCONFIGDIR@ MUSIC_ANYSOURCE = @MUSIC_ANYSOURCE@ MUSIC_HAVE_LONG_LONG = @MUSIC_HAVE_LONG_LONG@ MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER = @MUSIC_HAVE_MPI_COMM_CREATE_ERRHANDLER@ MUSIC_HAVE_SIZE_T = @MUSIC_HAVE_SIZE_T@ MUSIC_ISENDWAITALL = @MUSIC_ISENDWAITALL@ MUSIC_USE_MPI = @MUSIC_USE_MPI@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPTIONAL_UTILS = @OPTIONAL_UTILS@ 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@ PKGDATADIR = @PKGDATADIR@ PKGEXTRABINDIR = @PKGEXTRABINDIR@ PYBUFFER_CPPFLAGS = @PYBUFFER_CPPFLAGS@ PYBUFFER_CXXFLAGS = @PYBUFFER_CXXFLAGS@ PYEXECDIR = @PYEXECDIR@ PYMUSIC_CPPFLAGS = @PYMUSIC_CPPFLAGS@ PYMUSIC_CXXFLAGS = @PYMUSIC_CXXFLAGS@ PYMUSIC_SUBDIR = @PYMUSIC_SUBDIR@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ ROS_SUBDIR = @ROS_SUBDIR@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTDIR = @TESTDIR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = mpidep rudeconfig src utils @TESTDIR@ @EXTRAS@ doc @EXAMPLESDIR@ @MUSICCONFIGDIR@ @PYMUSIC_SUBDIR@ @ROS_SUBDIR@ debdir = ../@PACKAGE_NAME@-@PACKAGE_VERSION@ EXTRA_DIST = BUGS all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 src/music/music-config.hh: $(top_builddir)/config.status $(top_srcdir)/src/music/music-config.hh.in cd $(top_builddir) && $(SHELL) ./config.status $@ src/music/version.hh: $(top_builddir)/config.status $(top_srcdir)/src/music/version.hh.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-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 ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' 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: installcheck-local 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 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 \ installcheck-local 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 debian-source: dist mv @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz ../@PACKAGE_NAME@_@PACKAGE_VERSION@.orig.tar.gz @test ! -e $(debdir) || ( echo "*** Remove directory ../@PACKAGE_NAME@-@PACKAGE_VERSION@" && exit 1 ) ( cd ..; tar zxf @PACKAGE_NAME@_@PACKAGE_VERSION@.orig.tar.gz ) mkdir $(debdir)/debian cp -pr $(srcdir)/debian/* $(debdir)/debian #dist-hook: # rm $(distdir)/TODO installcheck-local: @LAUNCHSTYLE_SET_TRUE@ /bin/sh $(DESTDIR)$(bindir)/music_tests @LAUNCHSTYLE_SET_FALSE@ @echo "checkinstall target is supported only when compiled with openMPI or MPICH libraries." @LAUNCHSTYLE_SET_FALSE@ @exit 1 distuninstallcheck: @: #uninstall: # @echo "make: uninstall target is not supported." # 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: music-1.1.16/NEWS0000644000175000017500000000345513571617503010357 00000000000000MUSIC NEWS --- history of user-visible changes. Copyright (C) 2009, 2010, 2019 INCF Please send MUSIC bug reports to music-bugs@incf.org. Changes in 1.1.16: * music library ** Interim release This is an interim release in preparation for the MUSIC 2.0 release. * music utility ** Novel invocation style The standard method of launching a MUSIC co-simulation is through the music utility. On some systems, this method can't be supported. README documents an alternative novel way of launching MUSIC co-simulations. Changes in 1.0.7: * music library ** Bug fix release. Changes in 1.0.6: * music library ** Fixes for GCC version 4.4. ** Don't include RPATH in libmusic.so. Changes in 1.0.5: * music library ** Optimizations of event routing. MUSIC now discovers ranges of indices which can be handled collectively by one entry in the event router, even in the case that this is not apparent from index maps but due to the effect of negotiations with the port connected on the other side. ** Bug fixes. Changes in 1.0.4: * test directory ** New example: messages.music * music library ** Message ports now work correctly. ** Optimizations. Changes in 1.0.3: * music library ** Fixes a bug which occurs in Runtime::finalize () when using the threading version of the Setup constructor under OpenMPI 1.2.7. ** Other smaller fixes. Changes in 1.0.2: * music library ** Better error reporting. ** Bug fixes. ** New README file in test directory. ** New demo in test directory. Changes in 1.0.1: * music utility ** Bug fixes ** Improved error reporting ** New option '-m' prints application rank mapping ** New option '-v' prints version information ** Debian packaging support First release: 1.0 Local variables: mode: outline paragraph-separate: "[ ]*$" end: